1(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors"],{"00ee":function(t,e,n){var r=n("b622"),i=r("toStringTag"),o={};o[i]="z",t.exports="[object z]"===String(o)},"0366":function(t,e,n){var r=n("1c0b");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},"06cf":function(t,e,n){var r=n("83ab"),i=n("d1e7"),o=n("5c6c"),a=n("fc6a"),s=n("c04e"),c=n("5135"),h=n("0cfb"),u=Object.getOwnPropertyDescriptor;e.f=r?u:function(t,e){if(t=a(t),e=s(e,!0),h)try{return u(t,e)}catch(n){}if(c(t,e))return o(!i.f.call(t,e),t[e])}},"06f8":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("9cb8"),i=n("ed3d"),o=n("4971"),a=n("d777"),s={node:1,duration:1,easing:1,onFinish:1,yoyo:1},c=1,h=2,u=3,l=0,f=["fill","stroke","shadowColor"],d=function(){function t(t,e,n,r,i,o,a){this.prop=t,this.propFunc=e,this.begin=r,this._pos=r,this.duration=o,this._change=0,this.prevPos=0,this.yoyo=a,this._time=0,this._position=0,this._startTime=0,this._finish=0,this.func=n,this._change=i-this.begin,this.pause()}return t.prototype.fire=function(t){var e=this[t];e&&e()},t.prototype.setTime=function(t){t>this.duration?this.yoyo?(this._time=this.duration,this.reverse()):this.finish():t<0?this.yoyo?(this._time=0,this.play()):this.reset():(this._time=t,this.update())},t.prototype.getTime=function(){return this._time},t.prototype.setPosition=function(t){this.prevPos=this._pos,this.propFunc(t),this._pos=t},t.prototype.getPosition=function(t){return void 0===t&&(t=this._time),this.func(t,this.begin,this._change,this.duration)},t.prototype.play=function(){this.state=h,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onPlay")},t.prototype.reverse=function(){this.state=u,this._time=this.duration-this._time,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onReverse")},t.prototype.seek=function(t){this.pause(),this._time=t,this.update(),this.fire("onSeek")},t.prototype.reset=function(){this.pause(),this._time=0,this.update(),this.fire("onReset")},t.prototype.finish=function(){this.pause(),this._time=this.duration,this.update(),this.fire("onFinish")},t.prototype.update=function(){this.setPosition(this.getPosition(this._time))},t.prototype.onEnterFrame=function(){var t=this.getTimer()-this._startTime;this.state===h?this.setTime(t):this.state===u&&this.setTime(this.duration-t)},t.prototype.pause=function(){this.state=c,this.fire("onPause")},t.prototype.getTimer=function(){return(new Date).getTime()},t}(),p=function(){function t(n){var o,c,h=this,u=n.node,f=u._id,p=n.easing||e.Easings.Linear,g=!!n.yoyo;o="undefined"===typeof n.duration?.3:0===n.duration?.001:n.duration,this.node=u,this._id=l++;var v=u.getLayer()||(u instanceof a.Konva["Stage"]?u.getLayers():null);for(c in v||r.Util.error("Tween constructor have `node` that is not in a layer. Please add node into layer first."),this.anim=new i.Animation((function(){h.tween.onEnterFrame()}),v),this.tween=new d(c,(function(t){h._tweenFunc(t)}),p,0,1,1e3*o,g),this._addListeners(),t.attrs[f]||(t.attrs[f]={}),t.attrs[f][this._id]||(t.attrs[f][this._id]={}),t.tweens[f]||(t.tweens[f]={}),n)void 0===s[c]&&this._addAttr(c,n[c]);this.reset(),this.onFinish=n.onFinish,this.onReset=n.onReset}return t.prototype._addAttr=function(e,n){var i,o,a,s,c,h,u,l,d=this.node,p=d._id;if(a=t.tweens[p][e],a&&delete t.attrs[p][a][e],i=d.getAttr(e),r.Util._isArray(n))if(o=[],c=Math.max(n.length,i.length),"points"===e&&n.length!==i.length&&(n.length>i.length?(u=i,i=r.Util._prepareArrayForTween(i,n,d.closed())):(h=n,n=r.Util._prepareArrayForTween(n,i,d.closed()))),0===e.indexOf("fill"))for(s=0;s<c;s++)if(s%2===0)o.push(n[s]-i[s]);else{var g=r.Util.colorToRGBA(i[s]);l=r.Util.colorToRGBA(n[s]),i[s]=g,o.push({r:l.r-g.r,g:l.g-g.g,b:l.b-g.b,a:l.a-g.a})}else for(s=0;s<c;s++)o.push(n[s]-i[s]);else-1!==f.indexOf(e)?(i=r.Util.colorToRGBA(i),l=r.Util.colorToRGBA(n),o={r:l.r-i.r,g:l.g-i.g,b:l.b-i.b,a:l.a-i.a}):o=n-i;t.attrs[p][this._id][e]={start:i,diff:o,end:n,trueEnd:h,trueStart:u},t.tweens[p][e]=this._id},t.prototype._tweenFunc=function(e){var n,i,o,a,s,c,h,u,l=this.node,d=t.attrs[l._id][this._id];for(n in d){if(i=d[n],o=i.start,a=i.diff,u=i.end,r.Util._isArray(o))if(s=[],h=Math.max(o.length,u.length),0===n.indexOf("fill"))for(c=0;c<h;c++)c%2===0?s.push((o[c]||0)+a[c]*e):s.push("rgba("+Math.round(o[c].r+a[c].r*e)+","+Math.round(o[c].g+a[c].g*e)+","+Math.round(o[c].b+a[c].b*e)+","+(o[c].a+a[c].a*e)+")");else for(c=0;c<h;c++)s.push((o[c]||0)+a[c]*e);else s=-1!==f.indexOf(n)?"rgba("+Math.round(o.r+a.r*e)+","+Math.round(o.g+a.g*e)+","+Math.round(o.b+a.b*e)+","+(o.a+a.a*e)+")":o+a*e;l.setAttr(n,s)}},t.prototype._addListeners=function(){var e=this;this.tween.onPlay=function(){e.anim.start()},this.tween.onReverse=function(){e.anim.start()},this.tween.onPause=function(){e.anim.stop()},this.tween.onFinish=function(){var n=e.node,r=t.attrs[n._id][e._id];r.points&&r.points.trueEnd&&n.setAttr("points",r.points.trueEnd),e.onFinish&&e.onFinish.call(e)},this.tween.onReset=function(){var n=e.node,r=t.attrs[n._id][e._id];r.points&&r.points.trueStart&&n.points(r.points.trueStart),e.onReset&&e.onReset()}},t.prototype.play=function(){return this.tween.play(),this},t.prototype.reverse=function(){return this.tween.reverse(),this},t.prototype.reset=function(){return this.tween.reset(),this},t.prototype.seek=function(t){return this.tween.seek(1e3*t),this},t.prototype.pause=function(){return this.tween.pause(),this},t.prototype.finish=function(){return this.tween.finish(),this},t.prototype.destroy=function(){var e,n=this.node._id,r=this._id,i=t.tweens[n];for(e in this.pause(),i)delete t.tweens[n][e];delete t.attrs[n][r]},t.attrs={},t.tweens={},t}();e.Tween=p,o.Node.prototype.to=function(t){var e=t.onFinish;t.node=this,t.onFinish=function(){this.destroy(),e&&e()};var n=new p(t);n.play()},e.Easings={BackEaseIn:function(t,e,n,r){var i=1.70158;return n*(t/=r)*t*((i+1)*t-i)+e},BackEaseOut:function(t,e,n,r){var i=1.70158;return n*((t=t/r-1)*t*((i+1)*t+i)+1)+e},BackEaseInOut:function(t,e,n,r){var i=1.70158;return(t/=r/2)<1?n/2*(t*t*((1+(i*=1.525))*t-i))+e:n/2*((t-=2)*t*((1+(i*=1.525))*t+i)+2)+e},ElasticEaseIn:function(t,e,n,r,i,o){var a=0;return 0===t?e:1===(t/=r)?e+n:(o||(o=.3*r),!i||i<Math.abs(n)?(i=n,a=o/4):a=o/(2*Math.PI)*Math.asin(n/i),-i*Math.pow(2,10*(t-=1))*Math.sin((t*r-a)*(2*Math.PI)/o)+e)},ElasticEaseOut:function(t,e,n,r,i,o){var a=0;return 0===t?e:1===(t/=r)?e+n:(o||(o=.3*r),!i||i<Math.abs(n)?(i=n,a=o/4):a=o/(2*Math.PI)*Math.asin(n/i),i*Math.pow(2,-10*t)*Math.sin((t*r-a)*(2*Math.PI)/o)+n+e)},ElasticEaseInOut:function(t,e,n,r,i,o){var a=0;return 0===t?e:2===(t/=r/2)?e+n:(o||(o=r*(.3*1.5)),!i||i<Math.abs(n)?(i=n,a=o/4):a=o/(2*Math.PI)*Math.asin(n/i),t<1?i*Math.pow(2,10*(t-=1))*Math.sin((t*r-a)*(2*Math.PI)/o)*-.5+e:i*Math.pow(2,-10*(t-=1))*Math.sin((t*r-a)*(2*Math.PI)/o)*.5+n+e)},BounceEaseOut:function(t,e,n,r){return(t/=r)<1/2.75?n*(7.5625*t*t)+e:t<2/2.75?n*(7.5625*(t-=1.5/2.75)*t+.75)+e:t<2.5/2.75?n*(7.5625*(t-=2.25/2.75)*t+.9375)+e:n*(7.5625*(t-=2.625/2.75)*t+.984375)+e},BounceEaseIn:function(t,n,r,i){return r-e.Easings.BounceEaseOut(i-t,0,r,i)+n},BounceEaseInOut:function(t,n,r,i){return t<i/2?.5*e.Easings.BounceEaseIn(2*t,0,r,i)+n:.5*e.Easings.BounceEaseOut(2*t-i,0,r,i)+.5*r+n},EaseIn:function(t,e,n,r){return n*(t/=r)*t+e},EaseOut:function(t,e,n,r){return-n*(t/=r)*(t-2)+e},EaseInOut:function(t,e,n,r){return(t/=r/2)<1?n/2*t*t+e:-n/2*(--t*(t-2)-1)+e},StrongEaseIn:function(t,e,n,r){return n*(t/=r)*t*t*t*t+e},StrongEaseOut:function(t,e,n,r){return n*((t=t/r-1)*t*t*t*t+1)+e},StrongEaseInOut:function(t,e,n,r){return(t/=r/2)<1?n/2*t*t*t*t*t+e:n/2*((t-=2)*t*t*t*t+2)+e},Linear:function(t,e,n,r){return n*t/r+e}}
1},"0cfb":function(t,e,n){var r=n("83ab"),i=n("d039"),o=n("cc12");t.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"0ff5":function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n("9cb8"),o=n("ea61"),a=n("f0b4"),s=n("d6af"),c=n("f655"),h=n("fce6"),u=n("4546"),l=n("d777"),f="#",d="beforeDraw",p="draw",g=[{x:0,y:0},{x:-1,y:-1},{x:1,y:-1},{x:1,y:1},{x:-1,y:1}],v=g.length,y=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hitCanvas=new c.HitCanvas({pixelRatio:1}),e}return r(e,t),e.prototype._setCanvasSize=function(t,e){this.canvas.setSize(t,e),this.hitCanvas.setSize(t,e),this._checkSmooth()},e.prototype._validateAdd=function(t){var e=t.getType();"Group"!==e&&"Shape"!==e&&i.Util.throw("You may only add groups and shapes to a layer.")},e.prototype.getIntersection=function(t,e){var n,r,i,o;if(!this.hitGraphEnabled()||!this.isVisible())return null;var a=1,s=!1;while(1){for(r=0;r<v;r++){if(i=g[r],n=this._getIntersection({x:t.x+i.x*a,y:t.y+i.y*a}),o=n.shape,o&&e)return o.findAncestor(e,!0);if(o)return o;if(s=!!n.antialiased,!n.antialiased)break}if(!s)return null;a+=1}},e.prototype._getIntersection=function(t){var e,n,r=this.hitCanvas.pixelRatio,o=this.hitCanvas.context.getImageData(Math.round(t.x*r),Math.round(t.y*r),1,1).data,a=o[3];return 255===a?(e=i.Util._rgbToHex(o[0],o[1],o[2]),n=h.shapes[f+e],n?{shape:n}:{antialiased:!0}):a>0?{antialiased:!0}:{}},e.prototype.drawScene=function(t,e){var n=this.getLayer(),r=t||n&&n.getCanvas();return this._fire(d,{node:this}),this.clearBeforeDraw()&&r.getContext().clear(),o.Container.prototype.drawScene.call(this,r,e),this._fire(p,{node:this}),this},e.prototype.drawHit=function(t,e){var n=this.getLayer(),r=t||n&&n.hitCanvas;return n&&n.clearBeforeDraw()&&n.getHitCanvas().getContext().clear(),o.Container.prototype.drawHit.call(this,r,e),this},e.prototype.clear=function(t){return s.BaseLayer.prototype.clear.call(this,t),this.getHitCanvas().getContext().clear(t),this},e.prototype.enableHitGraph=function(){return this.hitGraphEnabled(!0),this},e.prototype.disableHitGraph=function(){return this.hitGraphEnabled(!1),this},e.prototype.toggleHitCanvas=function(){if(this.parent){var t=this.parent,e=!!this.hitCanvas._canvas.parentNode;e?t.content.removeChild(this.hitCanvas._canvas):t.content.appendChild(this.hitCanvas._canvas)}},e.prototype.setSize=function(e){var n=e.width,r=e.height;return t.prototype.setSize.call(this,{width:n,height:r}),this.hitCanvas.setSize(n,r),this},e}(s.BaseLayer);e.Layer=y,y.prototype.nodeType="Layer",l._registerNode(y),a.Factory.addGetterSetter(y,"hitGraphEnabled",!0,u.getBooleanValidator()),i.Collection.mapMethods(y)},"122f":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("f0b4"),i=n("4971"),o=n("4546");e.Threshold=function(t){var e,n=255*this.threshold(),r=t.data,i=r.length;for(e=0;e<i;e+=1)r[e]=r[e]<n?0:255},r.Factory.addGetterSetter(i.Node,"threshold",.5,o.getNumberValidator(),r.Factory.afterSetFilter)},"19aa":function(t,e){t.exports=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t}},"1bd8":function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n("9cb8"),o=n("f0b4"),a=n("f709"),s=n("4546"),c=n("d777"),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype._sceneFunc=function(e){t.prototype._sceneFunc.call(this,e);var n=2*Math.PI,r=this.points(),i=r,o=0!==this.tension()&&r.length>4;o&&(i=this.getTensionPoints());var a,s,c=r.length;o?(a=r[c-2]-i[c-2],s=r[c-1]-i[c-1]):(a=r[c-2]-r[c-4],s=r[c-1]-r[c-3]);var h=(Math.atan2(s,a)+n)%n,u=this.pointerLength(),l=this.pointerWidth();e.save(),e.beginPath(),e.translate(r[c-2],r[c-1]),e.rotate(h),e.moveTo(0,0),e.lineTo(-u,l/2),e.lineTo(-u,-l/2),e.closePath(),e.restore(
1),this.pointerAtBeginning()&&(e.save(),e.translate(r[0],r[1]),o?(a=i[0]-r[0],s=i[1]-r[1]):(a=r[2]-r[0],s=r[3]-r[1]),e.rotate((Math.atan2(-s,-a)+n)%n),e.moveTo(0,0),e.lineTo(-u,l/2),e.lineTo(-u,-l/2),e.closePath(),e.restore());var f=this.dashEnabled();f&&(this.attrs.dashEnabled=!1,e.setLineDash([])),e.fillStrokeShape(this),f&&(this.attrs.dashEnabled=!0)},e}(a.Line);e.Arrow=h,h.prototype.className="Arrow",c._registerNode(h),o.Factory.addGetterSetter(h,"pointerLength",10,s.getNumberValidator()),o.Factory.addGetterSetter(h,"pointerWidth",10,s.getNumberValidator()),o.Factory.addGetterSetter(h,"pointerAtBeginning",!1),i.Collection.mapMethods(h)},"1be4":function(t,e,n){var r=n("d066");t.exports=r("document","documentElement")},"1c0b":function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},"1c49":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("f0b4"),i=n("4971"),o=n("9cb8"),a=n("4546"),s=function(t,e,n){var r,i,o,a,s=t.data,c=e.data,h=t.width,u=t.height,l=n.polarCenterX||h/2,f=n.polarCenterY||u/2,d=0,p=0,g=0,v=0,y=Math.sqrt(l*l+f*f);i=h-l,o=u-f,a=Math.sqrt(i*i+o*o),y=a>y?a:y;var m,_,b,w,x=u,S=h,C=360/S*Math.PI/180;for(_=0;_<S;_+=1)for(b=Math.sin(_*C),w=Math.cos(_*C),m=0;m<x;m+=1)i=Math.floor(l+y*m/x*w),o=Math.floor(f+y*m/x*b),r=4*(o*h+i),d=s[r+0],p=s[r+1],g=s[r+2],v=s[r+3],r=4*(_+m*h),c[r+0]=d,c[r+1]=p,c[r+2]=g,c[r+3]=v},c=function(t,e,n){var r,i,o,a,s,c,h=t.data,u=e.data,l=t.width,f=t.height,d=n.polarCenterX||l/2,p=n.polarCenterY||f/2,g=0,v=0,y=0,m=0,_=Math.sqrt(d*d+p*p);i=l-d,o=f-p,c=Math.sqrt(i*i+o*o),_=c>_?c:_;var b,w,x,S,C=f,P=l,O=n.polarRotation||0;for(i=0;i<l;i+=1)for(o=0;o<f;o+=1)a=i-d,s=o-p,b=Math.sqrt(a*a+s*s)*C/_,w=(180*Math.atan2(s,a)/Math.PI+360+O)%360,w=w*P/360,x=Math.floor(w),S=Math.floor(b),r=4*(S*l+x),g=h[r+0],v=h[r+1],y=h[r+2],m=h[r+3],r=4*(o*l+i),u[r+0]=g,u[r+1]=v,u[r+2]=y,u[r+3]=m};e.Kaleidoscope=function(t){var e,n,r,i,a,h,u,l,f,d,p=t.width,g=t.height,v=Math.round(this.kaleidoscopePower()),y=Math.round(this.kaleidoscopeAngle()),m=Math.floor(p*(y%360)/360);if(!(v<1)){var _=o.Util.createCanvasElement();_.width=p,_.height=g;var b=_.getContext("2d").getImageData(0,0,p,g);s(t,b,{polarCenterX:p/2,polarCenterY:g/2});var w=p/Math.pow(2,v);while(w<=8)w*=2,v-=1;w=Math.ceil(w);var x=w,S=0,C=x,P=1;for(m+w>p&&(S=x,C=0,P=-1),n=0;n<g;n+=1)for(e=S;e!==C;e+=P)r=Math.round(e+m)%p,f=4*(p*n+r),a=b.data[f+0],h=b.data[f+1],u=b.data[f+2],l=b.data[f+3],d=4*(p*n+e),b.data[d+0]=a,b.data[d+1]=h,b.data[d+2]=u,b.data[d+3]=l;for(n=0;n<g;n+=1)for(x=Math.floor(w),i=0;i<v;i+=1){for(e=0;e<x+1;e+=1)f=4*(p*n+e),a=b.data[f+0],h=b.data[f+1],u=b.data[f+2],l=b.data[f+3],d=4*(p*n+2*x-e-1),b.data[d+0]=a,b.data[d+1]=h,b.data[d+2]=u,b.data[d+3]=l;x*=2}c(b,t,{polarRotation:0})}},r.Factory.addGetterSetter(i.Node,"kaleidoscopePower",2,a.getNumberValidator(),r.Factory.afterSetFilter),r.Factory.addGetterSetter(i.Node,"kaleidoscopeAngle",0,a.getNumberValidator(),r.Factory.afterSetFilter)},"1c7e":function(t,e,n){var r=n("b622"),i=r("iterator"),o=!1;try{var a=0,s={next:function(){return{done:!!a++}},return:function(){o=!0}};s[i]=function(){return this},Array.from(s,(function(){throw 2}))}catch(c){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var r={};r[i]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(c){}return n}},"1cdc":function(t,e,n){var r=n("342f");t.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},"1d80":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},"1dde":function(t,e,n){var r=n("d039"),i=n("b622"),o=n("2d00"),a=i("species");t.exports=function(t){return o>=51||!r((function(){var e=[],n=e.constructor={};return n[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},"1f21":function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();
1Object.defineProperty(e,"__esModule",{value:!0});var i=n("9cb8"),o=n("f0b4"),a=n("fce6"),s=n("4546"),c=n("d777"),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype._sceneFunc=function(t){t.beginPath(),t.arc(0,0,this.radius(),0,2*Math.PI,!1),t.closePath(),t.fillStrokeShape(this)},e.prototype.getWidth=function(){return 2*this.radius()},e.prototype.getHeight=function(){return 2*this.radius()},e.prototype.setWidth=function(t){this.radius()!==t/2&&this.radius(t/2)},e.prototype.setHeight=function(t){this.radius()!==t/2&&this.radius(t/2)},e}(a.Shape);e.Circle=h,h.prototype._centroid=!0,h.prototype.className="Circle",h.prototype._attrsAffectingSize=["radius"],c._registerNode(h),o.Factory.addGetterSetter(h,"radius",0,s.getNumberValidator()),i.Collection.mapMethods(h)},2013:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("f0b4"),i=n("4971"),o=n("4546");e.Posterize=function(t){var e,n=Math.round(254*this.levels())+1,r=t.data,i=r.length,o=255/n;for(e=0;e<i;e+=1)r[e]=Math.floor(r[e]/o)*o},r.Factory.addGetterSetter(i.Node,"levels",.5,o.getNumberValidator(),r.Factory.afterSetFilter)},2266:function(t,e,n){var r=n("825a"),i=n("e95a"),o=n("50c4"),a=n("0366"),s=n("35a1"),c=n("2a62"),h=function(t,e){this.stopped=t,this.result=e};t.exports=function(t,e,n){var u,l,f,d,p,g,v,y=n&&n.that,m=!(!n||!n.AS_ENTRIES),_=!(!n||!n.IS_ITERATOR),b=!(!n||!n.INTERRUPTED),w=a(e,y,1+m+b),x=function(t){return u&&c(u),new h(!0,t)},S=function(t){return m?(r(t),b?w(t[0],t[1],x):w(t[0],t[1])):b?w(t,x):w(t)};if(_)u=t;else{if(l=s(t),"function"!=typeof l)throw TypeError("Target is not iterable");if(i(l)){for(f=0,d=o(t.length);d>f;f++)if(p=S(t[f]),p&&p instanceof h)return p;return new h(!1)}u=l.call(t)}g=u.next;while(!(v=g.call(u)).done){try{p=S(v.value)}catch(C){throw c(u),C}if("object"==typeof p&&p&&p instanceof h)return p}return new h(!1)}},"229a":function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n("9cb8"),o=n("f0b4"),a=n("fce6"),s=n("4546"),c=n("d777"),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype._useBufferCanvas=function(){return!(!this.hasShadow()&&1===this.getAbsoluteOpacity()||!this.hasStroke()||!this.getStage())},e.prototype._sceneFunc=function(t){var e,n,r,i=this.width(),o=this.height(),a=this.image();a&&(e=this.cropWidth(),n=this.cropHeight(),r=e&&n?[a,this.cropX(),this.cropY(),e,n,0,0,i,o]:[a,0,0,i,o]),(this.hasFill()||this.hasStroke())&&(t.beginPath(),t.rect(0,0,i,o),t.closePath(),t.fillStrokeShape(this)),a&&t.drawImage.apply(t,r)},e.prototype._hitFunc=function(t){var e=this.width(),n=this.height();t.beginPath(),t.rect(0,0,e,n),t.closePath(),t.fillStrokeShape(this)},e.prototype.getWidth=function(){var t=this.image();return this.attrs.width||(t?t.width:0)},e.prototype.getHeight=function(){var t=this.image();return this.attrs.height||(t?t.height:0)},e.fromURL=function(t,n){var r=i.Util.createImageElement();r.onload=function(){var t=new e({image:r});n(t)},r.crossOrigin="Anonymous",r.src=t},e}(a.Shape);e.Image=h,h.prototype.className="Image",c._registerNode(h),o.Factory.addGetterSetter(h,"image"),o.Factory.addComponentsGetterSetter(h,"crop",["x","y","width","height"]),o.Factory.addGetterSetter(h,"cropX",0,s.getNumberValidator()),o.Factory.addGetterSetter(h,"cropY",0,s.getNumberValidator()),o.Factory.addGetterSetter(h,"cropWidth",0,s.getNumberValidator()),o.Factory.addGetterSetter(h,"cropHeight",0,s.getNumberValidator()),i.Collection.mapMethods(h)},"23cb":function(t,e,n){var r=n("a691"),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},"23e7":function(t,e,n){var r=n("da84"),i=n("06cf").f,o=n("9112"),a=n("6eeb"),s=n("ce4e"),c=n("e893"),h=n("94ca");t.exports=function(t,e){var n,u,l,f,d,p,g=t.target,v=t.global,y=t.stat;if(u=v?r:y?r[g]||s(g,{}):(r[g]||{}).prototype,u)for(l in e){if(d=e[l],t.noTargetGet?(p=i(u,l),f=p&&p.value):f=u[l],n=h(v?l:g+(y?".":"#")+l,t.forced),!n&&void 0!==f){if(typeof d===typeof f)continue;c(d,f)}(t.sham||f&&f.sham)&&o(d,"sham",!0),a(u,l,d,t)}}},"241c":function(t,e,n){var r=n("ca84"),i=n("7839"),o=i.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},2532:function(t,e,n){"use strict";var r=n("23e7"),i=n("5a34"),o=n("1d80"),a=n("ab13");r({target:"String",proto:!0,forced:!a("includes")},{includes:function(t){return!!~String(o(this)).indexOf(i(t),arguments.length>1?arguments[1]:void 0)}})},2626:function(t,e,n){"use strict";var r=n("d066"),i=n("9bf2"),o=n("b622"),a=n("83ab"),s=o("species");t.exports=function(t){var e=r(t),n=i.f;a&&e&&!e[s]&&n(e,s,{configurable:!0,get:function(){return this}})}},"26c8":function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();
1Object.defineProperty(e,"__esModule",{value:!0});var i=n("9cb8"),o=n("f0b4"),a=n("fce6"),s=n("4546"),c=n("d777"),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype._sceneFunc=function(t){var e,n,r,i=this.sides(),o=this.radius();for(t.beginPath(),t.moveTo(0,0-o),e=1;e<i;e++)n=o*Math.sin(2*e*Math.PI/i),r=-1*o*Math.cos(2*e*Math.PI/i),t.lineTo(n,r);t.closePath(),t.fillStrokeShape(this)},e.prototype.getWidth=function(){return 2*this.radius()},e.prototype.getHeight=function(){return 2*this.radius()},e.prototype.setWidth=function(t){this.radius(t/2)},e.prototype.setHeight=function(t){this.radius(t/2)},e}(a.Shape);e.RegularPolygon=h,h.prototype.className="RegularPolygon",h.prototype._centroid=!0,h.prototype._attrsAffectingSize=["radius"],c._registerNode(h),o.Factory.addGetterSetter(h,"radius",0,s.getNumberValidator()),o.Factory.addGetterSetter(h,"sides",0,s.getNumberValidator()),i.Collection.mapMethods(h)},2877:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var c,h="function"===typeof t?t.options:t;if(e&&(h.render=e,h.staticRenderFns=n,h._compiled=!0),r&&(h.functional=!0),o&&(h._scopeId="data-v-"+o),a?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},h._ssrRegister=c):i&&(c=s?function(){i.call(this,(h.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(h.functional){h._injectStyles=c;var u=h.render;h.render=function(t,e){return c.call(e),u(t,e)}}else{var l=h.beforeCreate;h.beforeCreate=l?[].concat(l,c):[c]}return{exports:t,options:h}}n.d(e,"a",(function(){return r}))},"2a01":function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n("9cb8"),o=n("f0b4"),a=n("fce6"),s=n("8c18"),c=n("5414"),h=n("4546"),u=n("d777"),l="",f="normal";function d(t){t.fillText(this.partialText,0,0)}function p(t){t.strokeText(this.partialText,0,0)}var g=function(t){function e(e){var n=t.call(this,e)||this;return n.dummyCanvas=i.Util.createCanvasElement(),n.dataArray=[],n.dataArray=s.Path.parsePathData(n.attrs.data),n.on("dataChange.konva",(function(){this.dataArray=s.Path.parsePathData(this.attrs.data),this._setTextData()})),n.on("textChange.konva alignChange.konva letterSpacingChange.konva kerningFuncCh
1ange.konva",n._setTextData),e&&e["getKerning"]&&(i.Util.warn('getKerning TextPath API is deprecated. Please use "kerningFunc" instead.'),n.kerningFunc(e["getKerning"])),n._setTextData(),n}return r(e,t),e.prototype._sceneFunc=function(t){t.setAttr("font",this._getContextFont()),t.setAttr("textBaseline",this.textBaseline()),t.setAttr("textAlign","left"),t.save();var e=this.textDecoration(),n=this.fill(),r=this.fontSize(),i=this.glyphInfo;"underline"===e&&t.beginPath();for(var o=0;o<i.length;o++){t.save();var a=i[o].p0;t.translate(a.x,a.y),t.rotate(i[o].rotation),this.partialText=i[o].text,t.fillStrokeShape(this),"underline"===e&&(0===o&&t.moveTo(0,r/2+1),t.lineTo(r,r/2+1)),t.restore()}"underline"===e&&(t.strokeStyle=n,t.lineWidth=r/20,t.stroke()),t.restore()},e.prototype._hitFunc=function(t){t.beginPath();var e=this.glyphInfo;if(e.length>=1){var n=e[0].p0;t.moveTo(n.x,n.y)}for(var r=0;r<e.length;r++){var i=e[r].p1;t.lineTo(i.x,i.y)}t.setAttr("lineWidth",this.fontSize()),t.setAttr("strokeStyle",this.colorKey),t.stroke()},e.prototype.getTextWidth=function(){return this.textWidth},e.prototype.getTextHeight=function(){return i.Util.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight},e.prototype.setText=function(t){return c.Text.prototype.setText.call(this,t)},e.prototype._getContextFont=function(){return c.Text.prototype._getContextFont.call(this)},e.prototype._getTextSize=function(t){var e=this.dummyCanvas,n=e.getContext("2d");n.save(),n.font=this._getContextFont();var r=n.measureText(t);return n.restore(),{width:r.width,height:parseInt(this.attrs.fontSize,10)}},e.prototype._setTextData=function(){var t=this,e=this._getTextSize(this.attrs.text),n=this.letterSpacing(),r=this.align(),i=this.kerningFunc();this.textWidth=e.width,this.textHeight=e.height;var o=Math.max(this.textWidth+((this.attrs.text||"").length-1)*n,0);this.glyphInfo=[];for(var a=0,c=0;c<t.dataArray.length;c++)t.dataArray[c].pathLength>0&&(a+=t.dataArray[c].pathLength);var h=0;"center"===r&&(h=Math.max(0,a/2-o/2)),"right"===r&&(h=Math.max(0,a-o));for(var u,l,f,d=this.text().split(""),p=this.text().split(" ").length-1,g=-1,v=0,y=function(){v=0;for(var e=t.dataArray,n=g+1;n<e.length;n++){if(e[n].pathLength>0)return g=n,e[n];"M"===e[n].command&&(u={x:e[n].points[0],y:e[n].points[1]})}return{}},m=function(e){var i=t._getTextSize(e).width+n;" "===e&&"justify"===r&&(i+=(a-o)/p);var c=0,h=0;l=void 0;while(Math.abs(i-c)/i>.01&&h<25){h++;var d=c;while(void 0===f)f=y(),f&&d+f.pathLength<i&&(d+=f.pathLength,f=void 0);if(f==={}||void 0===u)return;var g=!1;switch(f.command){case"L":s.Path.getLineLength(u.x,u.y,f.points[0],f.points[1])>i?l=s.Path.getPointOnLine(i,u.x,u.y,f.points[0],f.points[1],u.x,u.y):f=void 0;break;case"A":var m=f.points[4],_=f.points[5],b=f.points[4]+_;0===v?v=m+1e-8:i>c?v+=Math.PI/180*_/Math.abs(_):v-=Math.PI/360*_/Math.abs(_),(_<0&&v<b||_>=0&&v>b)&&(v=b,g=!0),l=s.Path.getPointOnEllipticalArc(f.points[0],f.points[1],f.points[2],f.points[3],v,f.points[6]);break;case"C":0===v?v=i>f.pathLength?1e-8:i/f.pathLength:i>c?v+=(i-c)/f.pathLength:v-=(c-i)/f.pathLength,v>1&&(v=1,g=!0),l=s.Path.getPointOnCubicBezier(v,f.start.x,f.start.y,f.points[0],f.points[1],f.points[2],f.points[3],f.points[4],f.points[5]);break;case"Q":0===v?v=i/f.pathLength:i>c?v+=(i-c)/f.pathLength:v-=(c-i)/f.pathLength,v>1&&(v=1,g=!0),l=s.Path.getPointOnQuadraticBezier(v,f.start.x,f.start.y,f.points[0],f.points[1],f.points[2],f.points[3]);break}void 0!==l&&(c=s.Path.getLineLength(u.x,u.y,l.x,l.y)),g&&(g=!1,f=void 0)}},_="C",b=t._getTextSize(_).width+n,w=0;w<h/b;w++){if(m(_),void 0===u||void 0===l)break;u=l}for(var x=0;x<d.length;x++){if(m(d[x]),void 0===u||void 0===l)break;var S=s.Path.getLineLength(u.x,u.y,l.x,l.y),C=0;if(i)try{C=i(d[x-1],d[x])*this.fontSize()}catch(A){C=0}u.x+=C,l.x+=C,this.textWidth+=C;var P=s.Path.getPointOnLine(C+S/2,u.x,u.y,l.x,l.y),O=Math.atan2(l.y-u.y,l.x-u.x);this.glyphInfo.push({transposeX:P.x,transposeY:P.y,text:d[x],rotation:O,p0:u,p1:l}),u=l}},e.prototype.getSelfRect=function(){var t=[];this.glyphInfo.forEach((function(e){t.push(e.p0.x),t.push(e.p0.y),t.push(e.p1.x),t.push(e.p1.y)}));for(var e,n,r=t[0],i=t[0],o=t[0],a=t[0],s=0;s<t.length/2;s++)e=t[2*s],n=t[2*s+1],r=Math.min(r,e),i=Math.max(i,e),o=Math.min(o,n),a=Math.max(a,n);var c=this.fontSize();return{x:Math.round(r)-c/2,y:Math.round(o)-c/2,width:Math.round(i-r)+c,height:Math.round(a-o)+c}},e}(a.Shape);e.TextPath=g,g.prototype._fillFunc=d,g.prototype._strokeFunc=p,g.prototype._fillFuncHit=d,g.prototype._strokeFuncHit=p,g.prototype.className="TextPath",g.prototype._attrsAffectingSize=["text","fontSize","data"],u._registerNode(g),o.Factory.addGetterSetter(g,"data"),o.Factory.addGetterSetter(g,"fontFamily","Arial"),o.Factory.addGetterSetter(g,"fontSize",12,h.getNumberValidator()),o.Factory.addGetterSetter(g,"fontStyle",f),o.Factory.addGetterSetter(g,"align","left"),o.Factory.addGetterSetter(g,"letterSpacing",0,h.getNumberValidator()),o.Factory.addGetterSetter(g,"textBaseline","middle"),o.Factory.addGetterSetter(g,"fontVariant",f),o.Factory.addGetterSetter(g,"text",l),o.Factory.addGetterSetter(g,"textDecoration",null),o.Factory.addGetterSetter(g,"kerningFunc",null),i.Collection.mapMethods(g)},"2a62":function(t,e,n){var r=n("825a");t.exports=function(t){var e=t["return"];if(void 0!==e)return r(e.call(t)).value}},"2b0e":function(t,e,n){"use strict";(function(t){ 2/*! 3 * Vue.js v2.6.12 4 * (c) 2014-2020 Evan You 5 * Released under the MIT License. 6 */ 7var n=Object.freeze({});function r(t){return void 0===t||null===t}function i(t){return void 0!==t&&null!==t}function o(t){return!0===t}function a(t){return!1===t}function s(t){return"string"===typeof t||"number"===typeof t||"symbol"===typeof t||"boolean"===typeof t}function c(t){return null!==t&&"object"===typeof t}var h=Object.prototype.toString;function u(t){return"[object Object]"===h.call(t)}function l(t){return"[object RegExp]"===h.call(t)}function f(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}
vendor: 8,653 bytes, line 7
7function d(t){return i(t)&&"function"===typeof t.then&&"function"===typeof t.catch}function p(t){return null==t?"":Array.isArray(t)||u(t)&&t.toString===h?JSON.stringify(t,null,2):String(t)}function g(t){var e=parseFloat(t);return isNaN(e)?t:e}function v(t,e){for(var n=Object.create(null),r=t.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return e?function(t){return n[t.toLowerCase()]}:function(t){return n[t]}}v("slot,component",!0);var y=v("key,ref,slot,slot-scope,is");function m(t,e){if(t.length){var n=t.indexOf(e);if(n>-1)return t.splice(n,1)}}var _=Object.prototype.hasOwnProperty;function b(t,e){return _.call(t,e)}function w(t){var e=Object.create(null);return function(n){var r=e[n];return r||(e[n]=t(n))}}var x=/-(\w)/g,S=w((function(t){return t.replace(x,(function(t,e){return e?e.toUpperCase():""}))})),C=w((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),P=/\B([A-Z])/g,O=w((function(t){return t.replace(P,"-$1").toLowerCase()}));function A(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function k(t,e){return t.bind(e)}var T=Function.prototype.bind?k:A;function F(t,e){e=e||0;var n=t.length-e,r=new Array(n);while(n--)r[n]=t[n+e];return r}function M(t,e){for(var n in e)t[n]=e[n];return t}function D(t){for(var e={},n=0;n<t.length;n++)t[n]&&M(e,t[n]);return e}function G(t,e,n){}var E=function(t,e,n){return!1},R=function(t){return t};function N(t,e){if(t===e)return!0;var n=c(t),r=c(e);if(!n||!r)return!n&&!r&&String(t)===String(e);try{var i=Array.isArray(t),o=Array.isArray(e);if(i&&o)return t.length===e.length&&t.every((function(t,n){return N(t,e[n])}));if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(i||o)return!1;var a=Object.keys(t),s=Object.keys(e);return a.length===s.length&&a.every((function(n){return N(t[n],e[n])}))}catch(h){return!1}}function L(t,e){for(var n=0;n<t.length;n++)if(N(t[n],e))return n;return-1}function I(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}}var j="data-server-rendered",U=["component","directive","filter"],B=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],$={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:E,isReservedAttr:E,isUnknownElement:E,getTagNamespace:G,parsePlatformTagName:R,mustUseProp:E,async:!0,_lifecycleHooks:B},z=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function V(t){var e=(t+"").charCodeAt(0);return 36===e||95===e}function H(t,e,n,r){Object.defineProperty(t,e,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var W=new RegExp("[^"+z.source+".$_\\d]");function K(t){if(!W.test(t)){var e=t.split(".");return function(t){for(var n=0;n<e.length;n++){if(!t)return;t=t[e[n]]}return t}}}var Y,X="__proto__"in{},q="undefined"!==typeof window,Q="undefined"!==typeof WXEnvironment&&!!WXEnvironment.platform,J=Q&&WXEnvironment.platform.toLowerCase(),Z=q&&window.navigator.userAgent.toLowerCase(),tt=Z&&/msie|trident/.test(Z),et=Z&&Z.indexOf("msie 9.0")>0,nt=Z&&Z.indexOf("edge/")>0,rt=(Z&&Z.indexOf("android"),Z&&/iphone|ipad|ipod|ios/.test(Z)||"ios"===J),it=(Z&&/chrome\/\d+/.test(Z),Z&&/phantomjs/.test(Z),Z&&Z.match(/firefox\/(\d+)/)),ot={}.watch,at=!1;if(q)try{var st={};Object.defineProperty(st,"passive",{get:function(){at=!0}}),window.addEventListener("test-passive",null,st)}catch(Sa){}var ct=function(){return void 0===Y&&(Y=!q&&!Q&&"undefined"!==typeof t&&(t["process"]&&"server"===t["process"].env.VUE_ENV)),Y},ht=q&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ut(t){return"function"===typeof t&&/native code/.test(t.toString())}var lt,ft="undefined"!==typeof Symbol&&ut(Symbol)&&"undefined"!==typeof Reflect&&ut(Reflect.ownKeys);lt="undefined"!==typeof Set&&ut(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var dt=G,pt=0,gt=function(){this.id=pt++,this.subs=[]};gt.prototype.addSub=function(t){this.subs.push(t)},gt.prototype.removeSub=function(t){m(this.subs,t)},gt.prototype.depend=function(){gt.target&>.target.addDep(this)},gt.prototype.notify=function(){var t=this.subs.slice();for(var e=0,n=t.length;e<n;e++)t[e].update()},gt.target=null;var vt=[];function yt(t){vt.push(t),gt.target=t}function mt(){vt.pop(),gt.target=vt[vt.length-1]}var _t=function(t,e,n,r,i,o,a,s){this.tag=t,this.data=e,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=e&&e.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},bt={child:{configurable:!0}};bt.child.get=function(){return this.componentInstance},Object.defineProperties(_t.prototype,bt);var wt=function(t){void 0===t&&(t="");var e=new _t;return e.text=t,e.isComment=!0,e};function xt(t){return new _t(void 0,void 0,void 0,String(t))}function St(t){var e=new _t(t.tag,t.data,t.children&&t.children.slice(),t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isComment=t.isComment,e.fnContext=t.fnContext,e.fnOptions=t.fnOptions,e.fnScopeId=t.fnScopeId,e.asyncMeta=t.asyncMeta,e.isCloned=!0,e}var Ct=Array.prototype,Pt=Object.create(Ct),Ot=["push","pop","shift","unshift","splice","sort","reverse"];Ot.forEach((function(t){var e=Ct[t];H(Pt,t,(function(){var n=[],r=arguments.length;while(r--)n[r]=arguments[r];var i,o=e.apply(this,n),a=this.__ob__;switch(t){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2);break}return i&&a.observeArray(i),a.dep.notify(),o}))}));var At=Object.getOwnPropertyNames(Pt),kt=!0;function Tt(t){kt=t}var Ft=function(t){this.value=t,this.dep=new gt,this.vmCount=0,H(t,"__ob__",this),Array.isArray(t)?(X?Mt(t,Pt):Dt(t,Pt,At),this.observeArray(t)):this.walk(t)};function Mt(t,e){t.__proto__=e}function Dt(t,e,n){for(var r=0,i=n.length;r<i;r++){var o=n[r];H(t,o,e[o])}}function Gt(t,e){var n;if(c(t)&&!(t instanceof _t))return b(t,"__ob__")&&t.__ob__ instanceof Ft?n=t.__ob__:kt&&!ct()&&(Array.isArray(t)||u(t))&&Object.isExtensible(t)&&!t._isVue&&(n=new Ft(t)),e&&n&&n.vmCount++,n}function Et(t,e,n,r,i){var o=new gt,a=Object.getOwnPropertyDescriptor(t,e);if(!a||!1!==a.configurable){var s=a&&a.get,c=a&&a.set;s&&!c||2!==arguments.length||(n=t[e]);var h=!i&&Gt(n);Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=s?s.call(t):n;return gt.target&&(o.depend(),h&&(h.dep.depend(),Array.isArray(e)&&Lt(e))),e},set:function(e){var r=s?s.call(t):n;e===r||e!==e&&r!==r||s&&!c||(c?c.call(t,e):n=e,h=!i&&Gt(e),o.notify())}})}}function Rt(t,e,n){if(Array.isArray(t)&&f(e))return t.length=Math.max(t.length,e),t.splice(e,1,n),n;if(e in t&&!(e in Object.prototype))return t[e]=n,n;var r=t.__ob__;return t._isVue||r&&r.vmCount?n:r?(Et(r.value,e,n),r.dep.notify(),n):(t[e]=n,n)}function Nt(t,e){if(Array.isArray(t)&&f(e))t.splice(e,1);else{var n=t.__ob__;t._isVue||n&&n.vmCount||b(t,e)&&(delete t[e],n&&n.dep.notify())}}function Lt(t){for(var e=void 0,n=0,r=t.length;n<r;n++)e=t[n],e&&e.__ob__&&e.__ob__.dep.depend(),Array.isArray(e)&&Lt(e)}Ft.prototype.walk=function(t){for(var e=Object.keys(t),n=0;n<e.length;n++)Et(t,e[n])},Ft.prototype.observeArray=function(t){for(var e=0,n=t.length;e<n;e++)Gt(t[e])};var It=$.optionMergeStrategies;function jt(t,e){if(!e)return t;for(var n,r,i,o=ft?Reflect.ownKeys(e):Object.keys(e),a=0;a<o.length;a++)n=o[a],"__ob__"!==n&&(r=t[n],i=e[n],b(t,n)?r!==i&&u(r)&&u(i)&&jt(r,i):Rt(t,n,i));return t}function Ut(t,e,n){return n?function(){var r="function"===typeof e?e.call(n,n):e,i="function"===typeof t?t.call(n,n):t;return r?jt(r,i):i}:e?t?function(){return jt("function"===typeof e?e.call(this,this):e,"function"===typeof t?t.call(this,this):t)}:e:t}function Bt(t,e){var n=e?t?t.concat(e):Array.isArray(e)?e:[e]:t;return n?$t(n):n}function $t(t){for(var e=[],n=0;n<t.length;n++)-1===e.indexOf(t[n])&&e.push(t[n]);return e}function zt(t,e,n,r){var i=Object.create(t||null);return e?M(i,e):i}It.data=function(t,e,n){return n?Ut(t,e,n):e&&"function"!==typeof e?t:Ut(t,e)},B.forEach((function(t){It[t]=Bt}
vendor: 8,558 bytes, line 7
7)),U.forEach((function(t){It[t+"s"]=zt})),It.watch=function(t,e,n,r){if(t===ot&&(t=void 0),e===ot&&(e=void 0),!e)return Object.create(t||null);if(!t)return e;var i={};for(var o in M(i,t),e){var a=i[o],s=e[o];a&&!Array.isArray(a)&&(a=[a]),i[o]=a?a.concat(s):Array.isArray(s)?s:[s]}return i},It.props=It.methods=It.inject=It.computed=function(t,e,n,r){if(!t)return e;var i=Object.create(null);return M(i,t),e&&M(i,e),i},It.provide=Ut;var Vt=function(t,e){return void 0===e?t:e};function Ht(t,e){var n=t.props;if(n){var r,i,o,a={};if(Array.isArray(n)){r=n.length;while(r--)i=n[r],"string"===typeof i&&(o=S(i),a[o]={type:null})}else if(u(n))for(var s in n)i=n[s],o=S(s),a[o]=u(i)?i:{type:i};else 0;t.props=a}}function Wt(t,e){var n=t.inject;if(n){var r=t.inject={};if(Array.isArray(n))for(var i=0;i<n.length;i++)r[n[i]]={from:n[i]};else if(u(n))for(var o in n){var a=n[o];r[o]=u(a)?M({from:o},a):{from:a}}else 0}}function Kt(t){var e=t.directives;if(e)for(var n in e){var r=e[n];"function"===typeof r&&(e[n]={bind:r,update:r})}}function Yt(t,e,n){if("function"===typeof e&&(e=e.options),Ht(e,n),Wt(e,n),Kt(e),!e._base&&(e.extends&&(t=Yt(t,e.extends,n)),e.mixins))for(var r=0,i=e.mixins.length;r<i;r++)t=Yt(t,e.mixins[r],n);var o,a={};for(o in t)s(o);for(o in e)b(t,o)||s(o);function s(r){var i=It[r]||Vt;a[r]=i(t[r],e[r],n,r)}return a}function Xt(t,e,n,r){if("string"===typeof n){var i=t[e];if(b(i,n))return i[n];var o=S(n);if(b(i,o))return i[o];var a=C(o);if(b(i,a))return i[a];var s=i[n]||i[o]||i[a];return s}}function qt(t,e,n,r){var i=e[t],o=!b(n,t),a=n[t],s=te(Boolean,i.type);if(s>-1)if(o&&!b(i,"default"))a=!1;else if(""===a||a===O(t)){var c=te(String,i.type);(c<0||s<c)&&(a=!0)}if(void 0===a){a=Qt(r,i,t);var h=kt;Tt(!0),Gt(a),Tt(h)}return a}function Qt(t,e,n){if(b(e,"default")){var r=e.default;return t&&t.$options.propsData&&void 0===t.$options.propsData[n]&&void 0!==t._props[n]?t._props[n]:"function"===typeof r&&"Function"!==Jt(e.type)?r.call(t):r}}function Jt(t){var e=t&&t.toString().match(/^\s*function (\w+)/);return e?e[1]:""}function Zt(t,e){return Jt(t)===Jt(e)}function te(t,e){if(!Array.isArray(e))return Zt(e,t)?0:-1;for(var n=0,r=e.length;n<r;n++)if(Zt(e[n],t))return n;return-1}function ee(t,e,n){yt();try{if(e){var r=e;while(r=r.$parent){var i=r.$options.errorCaptured;if(i)for(var o=0;o<i.length;o++)try{var a=!1===i[o].call(r,t,e,n);if(a)return}catch(Sa){re(Sa,r,"errorCaptured hook")}}}re(t,e,n)}finally{mt()}}function ne(t,e,n,r,i){var o;try{o=n?t.apply(e,n):t.call(e),o&&!o._isVue&&d(o)&&!o._handled&&(o.catch((function(t){return ee(t,r,i+" (Promise/async)")})),o._handled=!0)}catch(Sa){ee(Sa,r,i)}return o}function re(t,e,n){if($.errorHandler)try{return $.errorHandler.call(null,t,e,n)}catch(Sa){Sa!==t&&ie(Sa,null,"config.errorHandler")}ie(t,e,n)}function ie(t,e,n){if(!q&&!Q||"undefined"===typeof console)throw t;console.error(t)}var oe,ae=!1,se=[],ce=!1;function he(){ce=!1;var t=se.slice(0);se.length=0;for(var e=0;e<t.length;e++)t[e]()}if("undefined"!==typeof Promise&&ut(Promise)){var ue=Promise.resolve();oe=function(){ue.then(he),rt&&setTimeout(G)},ae=!0}else if(tt||"undefined"===typeof MutationObserver||!ut(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())oe="undefined"!==typeof setImmediate&&ut(setImmediate)?function(){setImmediate(he)}:function(){setTimeout(he,0)};else{var le=1,fe=new MutationObserver(he),de=document.createTextNode(String(le));fe.observe(de,{characterData:!0}),oe=function(){le=(le+1)%2,de.data=String(le)},ae=!0}function pe(t,e){var n;if(se.push((function(){if(t)try{t.call(e)}catch(Sa){ee(Sa,e,"nextTick")}else n&&n(e)})),ce||(ce=!0,oe()),!t&&"undefined"!==typeof Promise)return new Promise((function(t){n=t}))}var ge=new lt;function ve(t){ye(t,ge),ge.clear()}function ye(t,e){var n,r,i=Array.isArray(t);if(!(!i&&!c(t)||Object.isFrozen(t)||t instanceof _t)){if(t.__ob__){var o=t.__ob__.dep.id;if(e.has(o))return;e.add(o)}if(i){n=t.length;while(n--)ye(t[n],e)}else{r=Object.keys(t),n=r.length;while(n--)ye(t[r[n]],e)}}}var me=w((function(t){var e="&"===t.charAt(0);t=e?t.slice(1):t;var n="~"===t.charAt(0);t=n?t.slice(1):t;var r="!"===t.charAt(0);return t=r?t.slice(1):t,{name:t,once:n,capture:r,passive:e}}));function _e(t,e){function n(){var t=arguments,r=n.fns;if(!Array.isArray(r))return ne(r,null,arguments,e,"v-on handler");for(var i=r.slice(),o=0;o<i.length;o++)ne(i[o],null,t,e,"v-on handler")}return n.fns=t,n}function be(t,e,n,i,a,s){var c,h,u,l;for(c in t)h=t[c],u=e[c],l=me(c),r(h)||(r(u)?(r(h.fns)&&(h=t[c]=_e(h,s)),o(l.once)&&(h=t[c]=a(l.name,h,l.capture)),n(l.name,h,l.capture,l.passive,l.params)):h!==u&&(u.fns=h,t[c]=u));for(c in e)r(t[c])&&(l=me(c),i(l.name,e[c],l.capture))}function we(t,e,n){var a;t instanceof _t&&(t=t.data.hook||(t.data.hook={}));var s=t[e];function c(){n.apply(this,arguments),m(a.fns,c)}r(s)?a=_e([c]):i(s.fns)&&o(s.merged)?(a=s,a.fns.push(c)):a=_e([s,c]),a.merged=!0,t[e]=a}function xe(t,e,n){var o=e.options.props;if(!r(o)){var a={},s=t.attrs,c=t.props;if(i(s)||i(c))for(var h in o){var u=O(h);Se(a,c,h,u,!0)||Se(a,s,h,u,!1)}return a}}function Se(t,e,n,r,o){if(i(e)){if(b(e,n))return t[n]=e[n],o||delete e[n],!0;if(b(e,r))return t[n]=e[r],o||delete e[r],!0}return!1}function Ce(t){for(var e=0;e<t.length;e++)if(Array.isArray(t[e]))return Array.prototype.concat.apply([],t);return t}function Pe(t){return s(t)?[xt(t)]:Array.isArray(t)?Ae(t):void 0}function Oe(t){return i(t)&&i(t.text)&&a(t.isComment)}function Ae(t,e){var n,a,c,h,u=[];for(n=0;n<t.length;n++)a=t[n],r(a)||"boolean"===typeof a||(c=u.length-1,h=u[c],Array.isArray(a)?a.length>0&&(a=Ae(a,(e||"")+"_"+n),Oe(a[0])&&Oe(h)&&(u[c]=xt(h.text+a[0].text),a.shift()),u.push.apply(u,a)):s(a)?Oe(h)?u[c]=xt(h.text+a):""!==a&&u.push(xt(a)):Oe(a)&&Oe(h)?u[c]=xt(h.text+a.text):(o(t._isVList)&&i(a.tag)&&r(a.key)&&i(e)&&(a.key="__vlist"+e+"_"+n+"__"),u.push(a)));return u}function ke(t){var e=t.$options.provide;e&&(t._provided="function"===typeof e?e.call(t):e)}function Te(t){var e=Fe(t.$options.inject,t);e&&(Tt(!1),Object.keys(e).forEach((function(n){Et(t,n,e[n])})),Tt(!0))}function Fe(t,e){if(t){for(var n=Object.create(null),r=ft?Reflect.ownKeys(t):Object.keys(t),i=0;i<r.length;i++){var o=r[i];if("__ob__"!==o){var a=t[o].from,s=e;while(s){if(s._provided&&b(s._provided,a)){n[o]=s._provided[a];break}s=s.$parent}if(!s)if("default"in t[o]){var c=t[o].default;n[o]="function"===typeof c?c.call(e):c}else 0}}return n}}function Me(t,e){if(!t||!t.length)return{};for(var n={},r=0,i=t.length;r<i;r++){var o=t[r],a=o.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,o.context!==e&&o.fnContext!==e||!a||null==a.slot)(n.default||(n.default=[])).push(o);else{var s=a.slot,c=n[s]||(n[s]=[]);"template"===o.tag?c.push.apply(c,o.children||[]):c.push(o)}}for(var h in n)n[h].every(De)&&delete n[h];return n}function De(t){return t.isComment&&!t.asyncFactory||" "===t.text}function Ge(t,e,r){var i,o=Object.keys(e).length>0,a=t?!!t.$stable:!o,s=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(a&&r&&r!==n&&s===r.$key&&!o&&!r.$hasNormal)return r;for(var c in i={},t)t[c]&&"$"!==c[0]&&(i[c]=Ee(e,c,t[c]))}else i={};for(var h in e)h in i||(i[h]=Re(e,h));return t&&Object.isExtensible(t)&&(t._normalized=i),H(i,"$stable",a),H(i,"$key",s),H(i,"$hasNormal",o),i}function Ee(t,e,n){var r=function(){var t=arguments.length?n.apply(null,arguments):n({});return t=t&&"object"===typeof t&&!Array.isArray(t)?[t]:Pe(t),t&&(0===t.length||1===t.length&&t[0].isComment)?void 0:t};return n.proxy&&Object.defineProperty(t,e,{get:r,enumerable:!0,configurable:!0}),r}function Re(t,e){return function(){return t[e]}}function Ne(t,e){var n,r,o,a,s;if(Array.isArray(t)||"string"===typeof t)for(n=new Array(t.length),r=0,o=t.length;r<o;r++)n[r]=e(t[r],r);else if("number"===typeof t)for(n=new Array(t),r=0;r<t;r++)n[r]=e(r+1,r);else if(c(t))if(ft&&t[Symbol.iterator]){n=[];var h=t[Symbol.iterator](),u=h.next();while(!u.done)n.push(e(u.value,n.length)),u=h.next()}else for(a=Object.keys(t),n=new Array(a.length),r=0,o=a.length;r<o;r++)s=a[r],n[r]=e(t[s],s,r);return i(n)||(n=[]),n._isVList=!0,n}function Le(t,e,n,r){var i,o=this.$scopedSlots[t];o?(n=n||{},r&&(n=M(M({},r),n)),i=o(n)||e):i=this.$slots[t]||e;var a=n&&n.slot;return a?this.$createElement("template",{slot:a},i):i}function Ie(t){return Xt(this.$options,"filters",t,!0)||R}function je(t,e){return Array.isArray(t)?-1===t.indexOf(e):t!==e}function Ue(t,e,n,r,i){var o=$.keyCodes[e]||n;return i&&r&&!$.keyCodes[e]?je(i,r):o?je(o,t):r?O(r)!==e:void 0}function Be(t,e,n,r,i){if(n)if(c(n)){var o;Array.isArray(n)&&(n=D(n));
vendor: 6,167 bytes, line 7
7var a=function(a){if("class"===a||"style"===a||y(a))o=t;else{var s=t.attrs&&t.attrs.type;o=r||$.mustUseProp(e,s,a)?t.domProps||(t.domProps={}):t.attrs||(t.attrs={})}var c=S(a),h=O(a);if(!(c in o)&&!(h in o)&&(o[a]=n[a],i)){var u=t.on||(t.on={});u["update:"+a]=function(t){n[a]=t}}};for(var s in n)a(s)}else;return t}function $e(t,e){var n=this._staticTrees||(this._staticTrees=[]),r=n[t];return r&&!e||(r=n[t]=this.$options.staticRenderFns[t].call(this._renderProxy,null,this),Ve(r,"__static__"+t,!1)),r}function ze(t,e,n){return Ve(t,"__once__"+e+(n?"_"+n:""),!0),t}function Ve(t,e,n){if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]&&"string"!==typeof t[r]&&He(t[r],e+"_"+r,n);else He(t,e,n)}function He(t,e,n){t.isStatic=!0,t.key=e,t.isOnce=n}function We(t,e){if(e)if(u(e)){var n=t.on=t.on?M({},t.on):{};for(var r in e){var i=n[r],o=e[r];n[r]=i?[].concat(i,o):o}}else;return t}function Ke(t,e,n,r){e=e||{$stable:!n};for(var i=0;i<t.length;i++){var o=t[i];Array.isArray(o)?Ke(o,e,n):o&&(o.proxy&&(o.fn.proxy=!0),e[o.key]=o.fn)}return r&&(e.$key=r),e}function Ye(t,e){for(var n=0;n<e.length;n+=2){var r=e[n];"string"===typeof r&&r&&(t[e[n]]=e[n+1])}return t}function Xe(t,e){return"string"===typeof t?e+t:t}function qe(t){t._o=ze,t._n=g,t._s=p,t._l=Ne,t._t=Le,t._q=N,t._i=L,t._m=$e,t._f=Ie,t._k=Ue,t._b=Be,t._v=xt,t._e=wt,t._u=Ke,t._g=We,t._d=Ye,t._p=Xe}function Qe(t,e,r,i,a){var s,c=this,h=a.options;b(i,"_uid")?(s=Object.create(i),s._original=i):(s=i,i=i._original);var u=o(h._compiled),l=!u;this.data=t,this.props=e,this.children=r,this.parent=i,this.listeners=t.on||n,this.injections=Fe(h.inject,i),this.slots=function(){return c.$slots||Ge(t.scopedSlots,c.$slots=Me(r,i)),c.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return Ge(t.scopedSlots,this.slots())}}),u&&(this.$options=h,this.$slots=this.slots(),this.$scopedSlots=Ge(t.scopedSlots,this.$slots)),h._scopeId?this._c=function(t,e,n,r){var o=ln(s,t,e,n,r,l);return o&&!Array.isArray(o)&&(o.fnScopeId=h._scopeId,o.fnContext=i),o}:this._c=function(t,e,n,r){return ln(s,t,e,n,r,l)}}function Je(t,e,r,o,a){var s=t.options,c={},h=s.props;if(i(h))for(var u in h)c[u]=qt(u,h,e||n);else i(r.attrs)&&tn(c,r.attrs),i(r.props)&&tn(c,r.props);var l=new Qe(r,c,a,o,t),f=s.render.call(null,l._c,l);if(f instanceof _t)return Ze(f,r,l.parent,s,l);if(Array.isArray(f)){for(var d=Pe(f)||[],p=new Array(d.length),g=0;g<d.length;g++)p[g]=Ze(d[g],r,l.parent,s,l);return p}}function Ze(t,e,n,r,i){var o=St(t);return o.fnContext=n,o.fnOptions=r,e.slot&&((o.data||(o.data={})).slot=e.slot),o}function tn(t,e){for(var n in e)t[S(n)]=e[n]}qe(Qe.prototype);var en={init:function(t,e){if(t.componentInstance&&!t.componentInstance._isDestroyed&&t.data.keepAlive){var n=t;en.prepatch(n,n)}else{var r=t.componentInstance=on(t,Fn);r.$mount(e?t.elm:void 0,e)}},prepatch:function(t,e){var n=e.componentOptions,r=e.componentInstance=t.componentInstance;Rn(r,n.propsData,n.listeners,e,n.children)},insert:function(t){var e=t.context,n=t.componentInstance;n._isMounted||(n._isMounted=!0,jn(n,"mounted")),t.data.keepAlive&&(e._isMounted?Jn(n):Ln(n,!0))},destroy:function(t){var e=t.componentInstance;e._isDestroyed||(t.data.keepAlive?In(e,!0):e.$destroy())}},nn=Object.keys(en);function rn(t,e,n,a,s){if(!r(t)){var h=n.$options._base;if(c(t)&&(t=h.extend(t)),"function"===typeof t){var u;if(r(t.cid)&&(u=t,t=wn(u,h),void 0===t))return bn(u,e,n,a,s);e=e||{},wr(t),i(e.model)&&cn(t.options,e);var l=xe(e,t,s);if(o(t.options.functional))return Je(t,l,e,n,a);var f=e.on;if(e.on=e.nativeOn,o(t.options.abstract)){var d=e.slot;e={},d&&(e.slot=d)}an(e);var p=t.options.name||s,g=new _t("vue-component-"+t.cid+(p?"-"+p:""),e,void 0,void 0,void 0,n,{Ctor:t,propsData:l,listeners:f,tag:s,children:a},u);return g}}}function on(t,e){var n={_isComponent:!0,_parentVnode:t,parent:e},r=t.data.inlineTemplate;return i(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns),new t.componentOptions.Ctor(n)}function an(t){for(var e=t.hook||(t.hook={}),n=0;n<nn.length;n++){var r=nn[n],i=e[r],o=en[r];i===o||i&&i._merged||(e[r]=i?sn(o,i):o)}}function sn(t,e){var n=function(n,r){t(n,r),e(n,r)};return n._merged=!0,n}function cn(t,e){var n=t.model&&t.model.prop||"value",r=t.model&&t.model.event||"input";(e.attrs||(e.attrs={}))[n]=e.model.value;var o=e.on||(e.on={}),a=o[r],s=e.model.callback;i(a)?(Array.isArray(a)?-1===a.indexOf(s):a!==s)&&(o[r]=[s].concat(a)):o[r]=s}var hn=1,un=2;function ln(t,e,n,r,i,a){return(Array.isArray(n)||s(n))&&(i=r,r=n,n=void 0),o(a)&&(i=un),fn(t,e,n,r,i)}function fn(t,e,n,r,o){if(i(n)&&i(n.__ob__))return wt();if(i(n)&&i(n.is)&&(e=n.is),!e)return wt();var a,s,c;(Array.isArray(r)&&"function"===typeof r[0]&&(n=n||{},n.scopedSlots={default:r[0]},r.length=0),o===un?r=Pe(r):o===hn&&(r=Ce(r)),"string"===typeof e)?(s=t.$vnode&&t.$vnode.ns||$.getTagNamespace(e),a=$.isReservedTag(e)?new _t($.parsePlatformTagName(e),n,r,void 0,void 0,t):n&&n.pre||!i(c=Xt(t.$options,"components",e))?new _t(e,n,r,void 0,void 0,t):rn(c,n,t,r,e)):a=rn(e,n,t,r);return Array.isArray(a)?a:i(a)?(i(s)&&dn(a,s),i(n)&&pn(n),a):wt()}function dn(t,e,n){if(t.ns=e,"foreignObject"===t.tag&&(e=void 0,n=!0),i(t.children))for(var a=0,s=t.children.length;a<s;a++){var c=t.children[a];i(c.tag)&&(r(c.ns)||o(n)&&"svg"!==c.tag)&&dn(c,e,n)}}function pn(t){c(t.style)&&ve(t.style),c(t.class)&&ve(t.class)}function gn(t){t._vnode=null,t._staticTrees=null;var e=t.$options,r=t.$vnode=e._parentVnode,i=r&&r.context;t.$slots=Me(e._renderChildren,i),t.$scopedSlots=n,t._c=function(e,n,r,i){return ln(t,e,n,r,i,!1)},t.$createElement=function(e,n,r,i){return ln(t,e,n,r,i,!0)};var o=r&&r.data;Et(t,"$attrs",o&&o.attrs||n,null,!0),Et(t,"$listeners",e._parentListeners||n,null,!0)}var vn,yn=null;function mn(t){qe(t.prototype),t.prototype.$nextTick=function(t){return pe(t,this)},t.prototype._render=function(){var t,e=this,n=e.$options,r=n.render,i=n._parentVnode;i&&(e.$scopedSlots=Ge(i.data.scopedSlots,e.$slots,e.$scopedSlots)),e.$vnode=i;try{yn=e,t=r.call(e._renderProxy,e.$createElement)}catch(Sa){ee(Sa,e,"render"),t=e._vnode}finally{yn=null}return Array.isArray(t)&&1===t.length&&(t=t[0]),t instanceof _t||(t=wt()),t.parent=i,t}}
vendor: 24,384 bytes, line 7
7function _n(t,e){return(t.__esModule||ft&&"Module"===t[Symbol.toStringTag])&&(t=t.default),c(t)?e.extend(t):t}function bn(t,e,n,r,i){var o=wt();return o.asyncFactory=t,o.asyncMeta={data:e,context:n,children:r,tag:i},o}function wn(t,e){if(o(t.error)&&i(t.errorComp))return t.errorComp;if(i(t.resolved))return t.resolved;var n=yn;if(n&&i(t.owners)&&-1===t.owners.indexOf(n)&&t.owners.push(n),o(t.loading)&&i(t.loadingComp))return t.loadingComp;if(n&&!i(t.owners)){var a=t.owners=[n],s=!0,h=null,u=null;n.$on("hook:destroyed",(function(){return m(a,n)}));var l=function(t){for(var e=0,n=a.length;e<n;e++)a[e].$forceUpdate();t&&(a.length=0,null!==h&&(clearTimeout(h),h=null),null!==u&&(clearTimeout(u),u=null))},f=I((function(n){t.resolved=_n(n,e),s?a.length=0:l(!0)})),p=I((function(e){i(t.errorComp)&&(t.error=!0,l(!0))})),g=t(f,p);return c(g)&&(d(g)?r(t.resolved)&&g.then(f,p):d(g.component)&&(g.component.then(f,p),i(g.error)&&(t.errorComp=_n(g.error,e)),i(g.loading)&&(t.loadingComp=_n(g.loading,e),0===g.delay?t.loading=!0:h=setTimeout((function(){h=null,r(t.resolved)&&r(t.error)&&(t.loading=!0,l(!1))}),g.delay||200)),i(g.timeout)&&(u=setTimeout((function(){u=null,r(t.resolved)&&p(null)}),g.timeout)))),s=!1,t.loading?t.loadingComp:t.resolved}}function xn(t){return t.isComment&&t.asyncFactory}function Sn(t){if(Array.isArray(t))for(var e=0;e<t.length;e++){var n=t[e];if(i(n)&&(i(n.componentOptions)||xn(n)))return n}}function Cn(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&kn(t,e)}function Pn(t,e){vn.$on(t,e)}function On(t,e){vn.$off(t,e)}function An(t,e){var n=vn;return function r(){var i=e.apply(null,arguments);null!==i&&n.$off(t,r)}}function kn(t,e,n){vn=t,be(e,n||{},Pn,On,An,t),vn=void 0}function Tn(t){var e=/^hook:/;t.prototype.$on=function(t,n){var r=this;if(Array.isArray(t))for(var i=0,o=t.length;i<o;i++)r.$on(t[i],n);else(r._events[t]||(r._events[t]=[])).push(n),e.test(t)&&(r._hasHookEvent=!0);return r},t.prototype.$once=function(t,e){var n=this;function r(){n.$off(t,r),e.apply(n,arguments)}return r.fn=e,n.$on(t,r),n},t.prototype.$off=function(t,e){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(t)){for(var r=0,i=t.length;r<i;r++)n.$off(t[r],e);return n}var o,a=n._events[t];if(!a)return n;if(!e)return n._events[t]=null,n;var s=a.length;while(s--)if(o=a[s],o===e||o.fn===e){a.splice(s,1);break}return n},t.prototype.$emit=function(t){var e=this,n=e._events[t];if(n){n=n.length>1?F(n):n;for(var r=F(arguments,1),i='event handler for "'+t+'"',o=0,a=n.length;o<a;o++)ne(n[o],e,r,e,i)}return e}}var Fn=null;function Mn(t){var e=Fn;return Fn=t,function(){Fn=e}}function Dn(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){while(n.$options.abstract&&n.$parent)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}function Gn(t){t.prototype._update=function(t,e){var n=this,r=n.$el,i=n._vnode,o=Mn(n);n._vnode=t,n.$el=i?n.__patch__(i,t):n.__patch__(n.$el,t,e,!1),o(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},t.prototype.$forceUpdate=function(){var t=this;t._watcher&&t._watcher.update()},t.prototype.$destroy=function(){var t=this;if(!t._isBeingDestroyed){jn(t,"beforeDestroy"),t._isBeingDestroyed=!0;var e=t.$parent;!e||e._isBeingDestroyed||t.$options.abstract||m(e.$children,t),t._watcher&&t._watcher.teardown();var n=t._watchers.length;while(n--)t._watchers[n].teardown();t._data.__ob__&&t._data.__ob__.vmCount--,t._isDestroyed=!0,t.__patch__(t._vnode,null),jn(t,"destroyed"),t.$off(),t.$el&&(t.$el.__vue__=null),t.$vnode&&(t.$vnode.parent=null)}}}function En(t,e,n){var r;return t.$el=e,t.$options.render||(t.$options.render=wt),jn(t,"beforeMount"),r=function(){t._update(t._render(),n)},new nr(t,r,G,{before:function(){t._isMounted&&!t._isDestroyed&&jn(t,"beforeUpdate")}},!0),n=!1,null==t.$vnode&&(t._isMounted=!0,jn(t,"mounted")),t}function Rn(t,e,r,i,o){var a=i.data.scopedSlots,s=t.$scopedSlots,c=!!(a&&!a.$stable||s!==n&&!s.$stable||a&&t.$scopedSlots.$key!==a.$key),h=!!(o||t.$options._renderChildren||c);if(t.$options._parentVnode=i,t.$vnode=i,t._vnode&&(t._vnode.parent=i),t.$options._renderChildren=o,t.$attrs=i.data.attrs||n,t.$listeners=r||n,e&&t.$options.props){Tt(!1);for(var u=t._props,l=t.$options._propKeys||[],f=0;f<l.length;f++){var d=l[f],p=t.$options.props;u[d]=qt(d,p,e,t)}Tt(!0),t.$options.propsData=e}r=r||n;var g=t.$options._parentListeners;t.$options._parentListeners=r,kn(t,r,g),h&&(t.$slots=Me(o,i.context),t.$forceUpdate())}function Nn(t){while(t&&(t=t.$parent))if(t._inactive)return!0;return!1}function Ln(t,e){if(e){if(t._directInactive=!1,Nn(t))return}else if(t._directInactive)return;if(t._inactive||null===t._inactive){t._inactive=!1;for(var n=0;n<t.$children.length;n++)Ln(t.$children[n]);jn(t,"activated")}}function In(t,e){if((!e||(t._directInactive=!0,!Nn(t)))&&!t._inactive){t._inactive=!0;for(var n=0;n<t.$children.length;n++)In(t.$children[n]);jn(t,"deactivated")}}function jn(t,e){yt();var n=t.$options[e],r=e+" hook";if(n)for(var i=0,o=n.length;i<o;i++)ne(n[i],t,null,t,r);t._hasHookEvent&&t.$emit("hook:"+e),mt()}var Un=[],Bn=[],$n={},zn=!1,Vn=!1,Hn=0;function Wn(){Hn=Un.length=Bn.length=0,$n={},zn=Vn=!1}var Kn=0,Yn=Date.now;if(q&&!tt){var Xn=window.performance;Xn&&"function"===typeof Xn.now&&Yn()>document.createEvent("Event").timeStamp&&(Yn=function(){return Xn.now()})}function qn(){var t,e;for(Kn=Yn(),Vn=!0,Un.sort((function(t,e){return t.id-e.id})),Hn=0;Hn<Un.length;Hn++)t=Un[Hn],t.before&&t.before(),e=t.id,$n[e]=null,t.run();var n=Bn.slice(),r=Un.slice();Wn(),Zn(n),Qn(r),ht&&$.devtools&&ht.emit("flush")}function Qn(t){var e=t.length;while(e--){var n=t[e],r=n.vm;r._watcher===n&&r._isMounted&&!r._isDestroyed&&jn(r,"updated")}}function Jn(t){t._inactive=!1,Bn.push(t)}function Zn(t){for(var e=0;e<t.length;e++)t[e]._inactive=!0,Ln(t[e],!0)}function tr(t){var e=t.id;if(null==$n[e]){if($n[e]=!0,Vn){var n=Un.length-1;while(n>Hn&&Un[n].id>t.id)n--;Un.splice(n+1,0,t)}else Un.push(t);zn||(zn=!0,pe(qn))}}var er=0,nr=function(t,e,n,r,i){this.vm=t,i&&(t._watcher=this),t._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++er,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new lt,this.newDepIds=new lt,this.expression="","function"===typeof e?this.getter=e:(this.getter=K(e),this.getter||(this.getter=G)),this.value=this.lazy?void 0:this.get()};nr.prototype.get=function(){var t;yt(this);var e=this.vm;try{t=this.getter.call(e,e)}catch(Sa){if(!this.user)throw Sa;ee(Sa,e,'getter for watcher "'+this.expression+'"')}finally{this.deep&&ve(t),mt(),this.cleanupDeps()}return t},nr.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},nr.prototype.cleanupDeps=function(){var t=this.deps.length;while(t--){var e=this.deps[t];this.newDepIds.has(e.id)||e.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},nr.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():tr(this)},nr.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||c(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(Sa){ee(Sa,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},nr.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},nr.prototype.depend=function(){var t=this.deps.length;while(t--)this.deps[t].depend()},nr.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||m(this.vm._watchers,this);var t=this.deps.length;while(t--)this.deps[t].removeSub(this);this.active=!1}};var rr={enumerable:!0,configurable:!0,get:G,set:G};function ir(t,e,n){rr.get=function(){return this[e][n]},rr.set=function(t){this[e][n]=t},Object.defineProperty(t,n,rr)}function or(t){t._watchers=[];var e=t.$options;e.props&&ar(t,e.props),e.methods&&pr(t,e.methods),e.data?sr(t):Gt(t._data={},!0),e.computed&&ur(t,e.computed),e.watch&&e.watch!==ot&&gr(t,e.watch)}function ar(t,e){var n=t.$options.propsData||{},r=t._props={},i=t.$options._propKeys=[],o=!t.$parent;o||Tt(!1);var a=function(o){i.push(o);var a=qt(o,e,n,t);Et(r,o,a),o in t||ir(t,"_props",o)};for(var s in e)a(s);Tt(!0)}function sr(t){var e=t.$options.data;e=t._data="function"===typeof e?cr(e,t):e||{},u(e)||(e={});var n=Object.keys(e),r=t.$options.props,i=(t.$options.methods,n.length);while(i--){var o=n[i];0,r&&b(r,o)||V(o)||ir(t,"_data",o)}Gt(e,!0)}function cr(t,e){yt();try{return t.call(e,e)}catch(Sa){return ee(Sa,e,"data()"),{}}finally{mt()}}var hr={lazy:!0};function ur(t,e){var n=t._computedWatchers=Object.create(null),r=ct();for(var i in e){var o=e[i],a="function"===typeof o?o:o.get;0,r||(n[i]=new nr(t,a||G,G,hr)),i in t||lr(t,i,o)}}function lr(t,e,n){var r=!ct();"function"===typeof n?(rr.get=r?fr(e):dr(n),rr.set=G):(rr.get=n.get?r&&!1!==n.cache?fr(e):dr(n.get):G,rr.set=n.set||G),Object.defineProperty(t,e,rr)}function fr(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),gt.target&&e.depend(),e.value}}function dr(t){return function(){return t.call(this,this)}}function pr(t,e){t.$options.props;for(var n in e)t[n]="function"!==typeof e[n]?G:T(e[n],t)}function gr(t,e){for(var n in e){var r=e[n];if(Array.isArray(r))for(var i=0;i<r.length;i++)vr(t,n,r[i]);else vr(t,n,r)}}function vr(t,e,n,r){return u(n)&&(r=n,n=n.handler),"string"===typeof n&&(n=t[n]),t.$watch(e,n,r)}function yr(t){var e={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",n),t.prototype.$set=Rt,t.prototype.$delete=Nt,t.prototype.$watch=function(t,e,n){var r=this;if(u(e))return vr(r,t,e,n);n=n||{},n.user=!0;var i=new nr(r,t,e,n);if(n.immediate)try{e.call(r,i.value)}catch(o){ee(o,r,'callback for immediate watcher "'+i.expression+'"')}return function(){i.teardown()}}}var mr=0;function _r(t){t.prototype._init=function(t){var e=this;e._uid=mr++,e._isVue=!0,t&&t._isComponent?br(e,t):e.$options=Yt(wr(e.constructor),t||{},e),e._renderProxy=e,e._self=e,Dn(e),Cn(e),gn(e),jn(e,"beforeCreate"),Te(e),or(e),ke(e),jn(e,"created"),e.$options.el&&e.$mount(e.$options.el)}}function br(t,e){var n=t.$options=Object.create(t.constructor.options),r=e._parentVnode;n.parent=e.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}function wr(t){var e=t.options;if(t.super){var n=wr(t.super),r=t.superOptions;if(n!==r){t.superOptions=n;var i=xr(t);i&&M(t.extendOptions,i),e=t.options=Yt(n,t.extendOptions),e.name&&(e.components[e.name]=t)}}return e}function xr(t){var e,n=t.options,r=t.sealedOptions;for(var i in n)n[i]!==r[i]&&(e||(e={}),e[i]=n[i]);return e}function Sr(t){this._init(t)}function Cr(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=F(arguments,1);return n.unshift(this),"function"===typeof t.install?t.install.apply(t,n):"function"===typeof t&&t.apply(null,n),e.push(t),this}}function Pr(t){t.mixin=function(t){return this.options=Yt(this.options,t),this}}function Or(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,r=n.cid,i=t._Ctor||(t._Ctor={});if(i[r])return i[r];var o=t.name||n.options.name;var a=function(t){this._init(t)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=e++,a.options=Yt(n.options,t),a["super"]=n,a.options.props&&Ar(a),a.options.computed&&kr(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,U.forEach((function(t){a[t]=n[t]})),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=t,a.sealedOptions=M({},a.options),i[r]=a,a}}function Ar(t){var e=t.options.props;for(var n in e)ir(t.prototype,"_props",n)}function kr(t){var e=t.options.computed;for(var n in e)lr(t.prototype,n,e[n])}function Tr(t){U.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&u(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"===typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}function Fr(t){return t&&(t.Ctor.options.name||t.tag)}function Mr(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"===typeof t?t.split(",").indexOf(e)>-1:!!l(t)&&t.test(e)}function Dr(t,e){var n=t.cache,r=t.keys,i=t._vnode;for(var o in n){var a=n[o];if(a){var s=Fr(a.componentOptions);s&&!e(s)&&Gr(n,o,r,i)}}}function Gr(t,e,n,r){var i=t[e];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),t[e]=null,m(n,e)}_r(Sr),yr(Sr),Tn(Sr),Gn(Sr),mn(Sr);var Er=[String,RegExp,Array],Rr={name:"keep-alive",abstract:!0,props:{include:Er,exclude:Er,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)Gr(this.cache,t,this.keys)},mounted:function(){var t=this;this.$watch("include",(function(e){Dr(t,(function(t){return Mr(e,t)}))})),this.$watch("exclude",(function(e){Dr(t,(function(t){return!Mr(e,t)}))}))},render:function(){var t=this.$slots.default,e=Sn(t),n=e&&e.componentOptions;if(n){var r=Fr(n),i=this,o=i.include,a=i.exclude;if(o&&(!r||!Mr(o,r))||a&&r&&Mr(a,r))return e;var s=this,c=s.cache,h=s.keys,u=null==e.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):e.key;c[u]?(e.componentInstance=c[u].componentInstance,m(h,u),h.push(u)):(c[u]=e,h.push(u),this.max&&h.length>parseInt(this.max)&&Gr(c,h[0],h,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}},Nr={KeepAlive:Rr};function Lr(t){var e={get:function(){return $}};Object.defineProperty(t,"config",e),t.util={warn:dt,extend:M,mergeOptions:Yt,defineReactive:Et},t.set=Rt,t.delete=Nt,t.nextTick=pe,t.observable=function(t){return Gt(t),t},t.options=Object.create(null),U.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,M(t.options.components,Nr),Cr(t),Pr(t),Or(t),Tr(t)}Lr(Sr),Object.defineProperty(Sr.prototype,"$isServer",{get:ct}),Object.defineProperty(Sr.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Sr,"FunctionalRenderContext",{value:Qe}),Sr.version="2.6.12";var Ir=v("style,class"),jr=v("input,textarea,option,select,progress"),Ur=function(t,e,n){return"value"===n&&jr(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},Br=v("contenteditable,draggable,spellcheck"),$r=v("events,caret,typing,plaintext-only"),zr=function(t,e){return Yr(e)||"false"===e?"false":"contenteditable"===t&&$r(e)?e:"true"},Vr=v("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Hr="http://www.w3.org/1999/xlink",Wr=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Kr=function(t){return Wr(t)?t.slice(6,t.length):""},Yr=function(t){return null==t||!1===t};function Xr(t){var e=t.data,n=t,r=t;while(i(r.componentInstance))r=r.componentInstance._vnode,r&&r.data&&(e=qr(r.data,e));while(i(n=n.parent))n&&n.data&&(e=qr(e,n.data));return Qr(e.staticClass,e.class)}function qr(t,e){return{staticClass:Jr(t.staticClass,e.staticClass),class:i(t.class)?[t.class,e.class]:e.class}}function Qr(t,e){return i(t)||i(e)?Jr(t,Zr(e)):""}function Jr(t,e){return t?e?t+" "+e:t:e||""}function Zr(t){return Array.isArray(t)?ti(t):c(t)?ei(t):"string"===typeof t?t:""}function ti(t){for(var e,n="",r=0,o=t.length;r<o;r++)i(e=Zr(t[r]))&&""!==e&&(n&&(n+=" "),n+=e);return n}function ei(t){var e="";for(var n in t)t[n]&&(e&&(e+=" "),e+=n);return e}var ni={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},ri=v("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),ii=v("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),oi=function(t){return ri(t)||ii(t)};function ai(t){return ii(t)?"svg":"math"===t?"math":void 0}var si=Object.create(null);function ci(t){if(!q)return!0;if(oi(t))return!1;if(t=t.toLowerCase(),null!=si[t])return si[t];var e=document.createElement(t);return t.indexOf("-")>-1?si[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:si[t]=/HTMLUnknownElement/.test(e.toString())}var hi=v("text,number,password,search,email,tel,url");function ui(t){if("string"===typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}function li(t,e){var n=document.createElement(t);return"select"!==t||e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n}function fi(t,e){return document.createElementNS(ni[t],e)}function di(t){return document.createTextNode(t)}function pi(t){return document.createComment(t)}function gi(t,e,n){t.insertBefore(e,n)}function vi(t,e){t.removeChild(e)}function yi(t,e){t.appendChild(e)}function mi(t){return t.parentNode}function _i(t){return t.nextSibling}function bi(t){return t.tagName}function wi(t,e){t.textContent=e}function xi(t,e){t.setAttribute(e,"")}var Si=Object.freeze({createElement:li,createElementNS:fi,createTextNode:di,createComment:pi,insertBefore:gi,removeChild:vi,appendChild:yi,parentNode:mi,nextSibling:_i,tagName:bi,setTextContent:wi,setStyleScope:xi}),Ci={create:function(t,e){Pi(e)},update:function(t,e){t.data.ref!==e.data.ref&&(Pi(t,!0),Pi(e))},destroy:function(t){Pi(t,!0)}};function Pi(t,e){var n=t.data.ref;if(i(n)){var r=t.context,o=t.componentInstance||t.elm,a=r.$refs;e?Array.isArray(a[n])?m(a[n],o):a[n]===o&&(a[n]=void 0):t.data.refInFor?Array.isArray(a[n])?a[n].indexOf(o)<0&&a[n].push(o):a[n]=[o]:a[n]=o}}var Oi=new _t("",{},[]),Ai=["create","activate","update","remove","destroy"];function ki(t,e){return t.key===e.key&&(t.tag===e.tag&&t.isComment===e.isComment&&i(t.data)===i(e.data)&&Ti(t,e)||o(t.isAsyncPlaceholder)&&t.asyncFactory===e.asyncFactory&&r(e.asyncFactory.error))}function Ti(t,e){if("input"!==t.tag)return!0;var n,r=i(n=t.data)&&i(n=n.attrs)&&n.type,o=i(n=e.data)&&i(n=n.attrs)&&n.type;return r===o||hi(r)&&hi(o)}function Fi(t,e,n){var r,o,a={};for(r=e;r<=n;++r)o=t[r].key,i(o)&&(a[o]=r);return a}function Mi(t){var e,n,a={},c=t.modules,h=t.nodeOps;for(e=0;e<Ai.length;++e)for(a[Ai[e]]=[],n=0;n<c.length;++n)i(c[n][Ai[e]])&&a[Ai[e]].push(c[n][Ai[e]]);function u(t){return new _t(h.tagName(t).toLowerCase(),{},[],void 0,t)}function l(t,e){function n(){0===--n.listeners&&f(t)}return n.listeners=e,n}function f(t){var e=h.parentNode(t);i(e)&&h.removeChild(e,t)}function d(t,e,n,r,a,s,c){if(i(t.elm)&&i(s)&&(t=s[c]=St(t)),t.isRootInsert=!a,!p(t,e,n,r)){var u=t.data,l=t.children,f=t.tag;i(f)?(t.elm=t.ns?h.createElementNS(t.ns,f):h.createElement(f,t),x(t),_(t,l,e),i(u)&&w(t,e),m(n,t.elm,r)):o(t.isComment)?(t.elm=h.createComment(t.text),m(n,t.elm,r)):(t.elm=h.createTextNode(t.text),m(n,t.elm,r))}}function p(t,e,n,r){var a=t.data;if(i(a)){var s=i(t.componentInstance)&&a.keepAlive;if(i(a=a.hook)&&i(a=a.init)&&a(t,!1),i(t.componentInstance))return g(t,e),m(n,t.elm,r),o(s)&&y(t,e,n,r),!0}}function g(t,e){i(t.data.pendingInsert)&&(e.push.apply(e,t.data.pendingInsert),t.data.pendingInsert=null),t.elm=t.componentInstance.$el,b(t)?(w(t,e),x(t)):(Pi(t),e.push(t))}function y(t,e,n,r){var o,s=t;while(s.componentInstance)if(s=s.componentInstance._vnode,i(o=s.data)&&i(o=o.transition)){for(o=0;o<a.activate.length;++o)a.activate[o](Oi,s);e.push(s);break}m(n,t.elm,r)}function m(t,e,n){i(t)&&(i(n)?h.parentNode(n)===t&&h.insertBefore(t,e,n):h.appendChild(t,e))}function _(t,e,n){if(Array.isArray(e)){0;for(var r=0;r<e.length;++r)d(e[r],n,t.elm,null,!0,e,r)}else s(t.text)&&h.appendChild(t.elm,h.createTextNode(String(t.text)))}function b(t){while(t.componentInstance)t=t.componentInstance._vnode;return i(t.tag)}function w(t,n){for(var r=0;r<a.create.length;++r)a.create[r](Oi,t);e=t.data.hook,i(e)&&(i(e.create)&&e.create(Oi,t),i(e.insert)&&n.push(t))}function x(t){var e;if(i(e=t.fnScopeId))h.setStyleScope(t.elm,e);else{var n=t;while(n)i(e=n.context)&&i(e=e.$options._scopeId)&&h.setStyleScope(t.elm,e),n=n.parent}i(e=Fn)&&e!==t.context&&e!==t.fnContext&&i(e=e.$options._scopeId)&&h.setStyleScope(t.elm,e)}function S(t,e,n,r,i,o){for(;r<=i;++r)d(n[r],o,t,e,!1,n,r)}function C(t){var e,n,r=t.data;if(i(r))for(i(e=r.hook)&&i(e=e.destroy)&&e(t),e=0;e<a.destroy.length;++e)a.destroy[e](t);if(i(e=t.children))for(n=0;n<t.children.length;++n)C(t.children[n])}function P(t,e,n){for(;e<=n;++e){var r=t[e];i(r)&&(i(r.tag)?(O(r),C(r)):f(r.elm))}}function O(t,e){if(i(e)||i(t.data)){var n,r=a.remove.length+1;for(i(e)?e.listeners+=r:e=l(t.elm,r),i(n=t.componentInstance)&&i(n=n._vnode)&&i(n.data)&&O(n,e),n=0;n<a.remove.length;++n)a.remove[n](t,e);i(n=t.data.hook)&&i(n=n.remove)?n(t,e):e()}else f(t.elm)}function A(t,e,n,o,a){var s,c,u,l,f=0,p=0,g=e.length-1,v=e[0],y=e[g],m=n.length-1,_=n[0],b=n[m],w=!a;while(f<=g&&p<=m)r(v)?v=e[++f]:r(y)?y=e[--g]:ki(v,_)?(T(v,_,o,n,p),v=e[++f],_=n[++p]):ki(y,b)?(T(y,b,o,n,m),y=e[--g],b=n[--m]):ki(v,b)?(T(v,b,o,n,m),w&&h.insertBefore(t,v.elm,h.nextSibling(y.elm)),v=e[++f],b=n[--m]):ki(y,_)?(T(y,_,o,n,p),w&&h.insertBefore(t,y.elm,v.elm),y=e[--g],_=n[++p]):(r(s)&&(s=Fi(e,f,g)),c=i(_.key)?s[_.key]:k(_,e,f,g),r(c)?d(_,o,t,v.elm,!1,n,p):(u=e[c],ki(u,_)?(T(u,_,o,n,p),e[c]=void 0,w&&h.insertBefore(t,u.elm,v.elm)):d(_,o,t,v.elm,!1,n,p)),_=n[++p]);f>g?(l=r(n[m+1])?null:n[m+1].elm,S(t,l,n,p,m,o)):p>m&&P(e,f,g)}function k(t,e,n,r){for(var o=n;o<r;o++){var a=e[o];if(i(a)&&ki(t,a))return o}}function T(t,e,n,s,c,u){if(t!==e){i(e.elm)&&i(s)&&(e=s[c]=St(e));var l=e.elm=t.elm;if(o(t.isAsyncPlaceholder))i(e.asyncFactory.resolved)?D(t.elm,e,n):e.isAsyncPlaceholder=!0;else if(o(e.isStatic)&&o(t.isStatic)&&e.key===t.key&&(o(e.isCloned)||o(e.isOnce)))e.componentInstance=t.componentInstance;else{var f,d=e.data;i(d)&&i(f=d.hook)&&i(f=f.prepatch)&&f(t,e);var p=t.children,g=e.children;if(i(d)&&b(e)){for(f=0;f<a.update.length;++f)a.update[f](t,e);i(f=d.hook)&&i(f=f.update)&&f(t,e)}r(e.text)?i(p)&&i(g)?p!==g&&A(l,p,g,n,u):i(g)?(i(t.text)&&h.setTextContent(l,""),S(l,null,g,0,g.length-1,n)):i(p)?P(p,0,p.length-1):i(t.text)&&h.setTextContent(l,""):t.text!==e.text&&h.setTextContent(l,e.text),i(d)&&i(f=d.hook)&&i(f=f.postpatch)&&f(t,e)}}}function F(t,e,n){if(o(n)&&i(t.parent))t.parent.data.pendingInsert=e;else for(var r=0;r<e.length;++r)e[r].data.hook.insert(e[r])}var M=v("attrs,class,staticClass,staticStyle,key");function D(t,e,n,r){var a,s=e.tag,c=e.data,h=e.children;if(r=r||c&&c.pre,e.elm=t,o(e.isComment)&&i(e.asyncFactory))return e.isAsyncPlaceholder=!0,!0;if(i(c)&&(i(a=c.hook)&&i(a=a.init)&&a(e,!0),i(a=e.componentInstance)))return g(e,n),!0;if(i(s)){if(i(h))if(t.hasChildNodes())if(i(a=c)&&i(a=a.domProps)&&i(a=a.innerHTML)){if(a!==t.innerHTML)return!1}else{for(var u=!0,l=t.firstChild,f=0;f<h.length;f++){if(!l||!D(l,h[f],n,r)){u=!1;break}l=l.nextSibling}if(!u||l)return!1}else _(e,h,n);if(i(c)){var d=!1;for(var p in c)if(!M(p)){d=!0,w(e,n);break}!d&&c["class"]&&ve(c["class"])}}else t.data!==e.text&&(t.data=e.text);return!0}return function(t,e,n,s){if(!r(e)){var c=!1,l=[];
vendor: 1,768 bytes, line 7
7if(r(t))c=!0,d(e,l);else{var f=i(t.nodeType);if(!f&&ki(t,e))T(t,e,l,null,null,s);else{if(f){if(1===t.nodeType&&t.hasAttribute(j)&&(t.removeAttribute(j),n=!0),o(n)&&D(t,e,l))return F(e,l,!0),t;t=u(t)}var p=t.elm,g=h.parentNode(p);if(d(e,l,p._leaveCb?null:g,h.nextSibling(p)),i(e.parent)){var v=e.parent,y=b(e);while(v){for(var m=0;m<a.destroy.length;++m)a.destroy[m](v);if(v.elm=e.elm,y){for(var _=0;_<a.create.length;++_)a.create[_](Oi,v);var w=v.data.hook.insert;if(w.merged)for(var x=1;x<w.fns.length;x++)w.fns[x]()}else Pi(v);v=v.parent}}i(g)?P([t],0,0):i(t.tag)&&C(t)}}return F(e,l,c),e.elm}i(t)&&C(t)}}var Di={create:Gi,update:Gi,destroy:function(t){Gi(t,Oi)}};function Gi(t,e){(t.data.directives||e.data.directives)&&Ei(t,e)}function Ei(t,e){var n,r,i,o=t===Oi,a=e===Oi,s=Ni(t.data.directives,t.context),c=Ni(e.data.directives,e.context),h=[],u=[];for(n in c)r=s[n],i=c[n],r?(i.oldValue=r.value,i.oldArg=r.arg,Ii(i,"update",e,t),i.def&&i.def.componentUpdated&&u.push(i)):(Ii(i,"bind",e,t),i.def&&i.def.inserted&&h.push(i));if(h.length){var l=function(){for(var n=0;n<h.length;n++)Ii(h[n],"inserted",e,t)};o?we(e,"insert",l):l()}if(u.length&&we(e,"postpatch",(function(){for(var n=0;n<u.length;n++)Ii(u[n],"componentUpdated",e,t)})),!o)for(n in s)c[n]||Ii(s[n],"unbind",t,t,a)}var Ri=Object.create(null);function Ni(t,e){var n,r,i=Object.create(null);if(!t)return i;for(n=0;n<t.length;n++)r=t[n],r.modifiers||(r.modifiers=Ri),i[Li(r)]=r,r.def=Xt(e.$options,"directives",r.name,!0);return i}function Li(t){return t.rawName||t.name+"."+Object.keys(t.modifiers||{}).join(".")}function Ii(t,e,n,r,i){var o=t.def&&t.def[e];if(o)try{o(n.elm,t,n,r,i)}catch(Sa){ee(Sa,n.context,"directive "+t.name+" "+e+" hook")}}var ji=[Ci,Di];function Ui(t,e){var n=e.componentOptions;
vendor: 4,563 bytes, line 7
7if((!i(n)||!1!==n.Ctor.options.inheritAttrs)&&(!r(t.data.attrs)||!r(e.data.attrs))){var o,a,s,c=e.elm,h=t.data.attrs||{},u=e.data.attrs||{};for(o in i(u.__ob__)&&(u=e.data.attrs=M({},u)),u)a=u[o],s=h[o],s!==a&&Bi(c,o,a);for(o in(tt||nt)&&u.value!==h.value&&Bi(c,"value",u.value),h)r(u[o])&&(Wr(o)?c.removeAttributeNS(Hr,Kr(o)):Br(o)||c.removeAttribute(o))}}function Bi(t,e,n){t.tagName.indexOf("-")>-1?$i(t,e,n):Vr(e)?Yr(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):Br(e)?t.setAttribute(e,zr(e,n)):Wr(e)?Yr(n)?t.removeAttributeNS(Hr,Kr(e)):t.setAttributeNS(Hr,e,n):$i(t,e,n)}function $i(t,e,n){if(Yr(n))t.removeAttribute(e);else{if(tt&&!et&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var r=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(e,n)}}var zi={create:Ui,update:Ui};function Vi(t,e){var n=e.elm,o=e.data,a=t.data;if(!(r(o.staticClass)&&r(o.class)&&(r(a)||r(a.staticClass)&&r(a.class)))){var s=Xr(e),c=n._transitionClasses;i(c)&&(s=Jr(s,Zr(c))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var Hi,Wi={create:Vi,update:Vi},Ki="__r",Yi="__c";function Xi(t){if(i(t[Ki])){var e=tt?"change":"input";t[e]=[].concat(t[Ki],t[e]||[]),delete t[Ki]}i(t[Yi])&&(t.change=[].concat(t[Yi],t.change||[]),delete t[Yi])}function qi(t,e,n){var r=Hi;return function i(){var o=e.apply(null,arguments);null!==o&&Zi(t,i,n,r)}}var Qi=ae&&!(it&&Number(it[1])<=53);function Ji(t,e,n,r){if(Qi){var i=Kn,o=e;e=o._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=i||t.timeStamp<=0||t.target.ownerDocument!==document)return o.apply(this,arguments)}}Hi.addEventListener(t,e,at?{capture:n,passive:r}:n)}function Zi(t,e,n,r){(r||Hi).removeEventListener(t,e._wrapper||e,n)}function to(t,e){if(!r(t.data.on)||!r(e.data.on)){var n=e.data.on||{},i=t.data.on||{};Hi=e.elm,Xi(n),be(n,i,Ji,Zi,qi,e.context),Hi=void 0}}var eo,no={create:to,update:to};function ro(t,e){if(!r(t.data.domProps)||!r(e.data.domProps)){var n,o,a=e.elm,s=t.data.domProps||{},c=e.data.domProps||{};for(n in i(c.__ob__)&&(c=e.data.domProps=M({},c)),s)n in c||(a[n]="");for(n in c){if(o=c[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),o===s[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n&&"PROGRESS"!==a.tagName){a._value=o;var h=r(o)?"":String(o);io(a,h)&&(a.value=h)}else if("innerHTML"===n&&ii(a.tagName)&&r(a.innerHTML)){eo=eo||document.createElement("div"),eo.innerHTML="<svg>"+o+"</svg>";var u=eo.firstChild;while(a.firstChild)a.removeChild(a.firstChild);while(u.firstChild)a.appendChild(u.firstChild)}else if(o!==s[n])try{a[n]=o}catch(Sa){}}}}function io(t,e){return!t.composing&&("OPTION"===t.tagName||oo(t,e)||ao(t,e))}function oo(t,e){var n=!0;try{n=document.activeElement!==t}catch(Sa){}return n&&t.value!==e}function ao(t,e){var n=t.value,r=t._vModifiers;if(i(r)){if(r.number)return g(n)!==g(e);if(r.trim)return n.trim()!==e.trim()}return n!==e}var so={create:ro,update:ro},co=w((function(t){var e={},n=/;(?![^(]*\))/g,r=/:(.+)/;return t.split(n).forEach((function(t){if(t){var n=t.split(r);n.length>1&&(e[n[0].trim()]=n[1].trim())}})),e}));function ho(t){var e=uo(t.style);return t.staticStyle?M(t.staticStyle,e):e}function uo(t){return Array.isArray(t)?D(t):"string"===typeof t?co(t):t}function lo(t,e){var n,r={};if(e){var i=t;while(i.componentInstance)i=i.componentInstance._vnode,i&&i.data&&(n=ho(i.data))&&M(r,n)}(n=ho(t.data))&&M(r,n);var o=t;while(o=o.parent)o.data&&(n=ho(o.data))&&M(r,n);return r}var fo,po=/^--/,go=/\s*!important$/,vo=function(t,e,n){if(po.test(e))t.style.setProperty(e,n);else if(go.test(n))t.style.setProperty(O(e),n.replace(go,""),"important");else{var r=mo(e);if(Array.isArray(n))for(var i=0,o=n.length;i<o;i++)t.style[r]=n[i];else t.style[r]=n}},yo=["Webkit","Moz","ms"],mo=w((function(t){if(fo=fo||document.createElement("div").style,t=S(t),"filter"!==t&&t in fo)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),n=0;n<yo.length;n++){var r=yo[n]+e;if(r in fo)return r}}));function _o(t,e){var n=e.data,o=t.data;if(!(r(n.staticStyle)&&r(n.style)&&r(o.staticStyle)&&r(o.style))){var a,s,c=e.elm,h=o.staticStyle,u=o.normalizedStyle||o.style||{},l=h||u,f=uo(e.data.style)||{};e.data.normalizedStyle=i(f.__ob__)?M({},f):f;var d=lo(e,!0);for(s in l)r(d[s])&&vo(c,s,"");for(s in d)a=d[s],a!==l[s]&&vo(c,s,null==a?"":a)}}var bo={create:_o,update:_o},wo=/\s+/;function xo(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>
vendor: 10,138 bytes, line 7
7-1?e.split(wo).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function So(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(wo).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{var n=" "+(t.getAttribute("class")||"")+" ",r=" "+e+" ";while(n.indexOf(r)>=0)n=n.replace(r," ");n=n.trim(),n?t.setAttribute("class",n):t.removeAttribute("class")}}function Co(t){if(t){if("object"===typeof t){var e={};return!1!==t.css&&M(e,Po(t.name||"v")),M(e,t),e}return"string"===typeof t?Po(t):void 0}}var Po=w((function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}})),Oo=q&&!et,Ao="transition",ko="animation",To="transition",Fo="transitionend",Mo="animation",Do="animationend";Oo&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(To="WebkitTransition",Fo="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Mo="WebkitAnimation",Do="webkitAnimationEnd"));var Go=q?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function Eo(t){Go((function(){Go(t)}))}function Ro(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),xo(t,e))}function No(t,e){t._transitionClasses&&m(t._transitionClasses,e),So(t,e)}function Lo(t,e,n){var r=jo(t,e),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===Ao?Fo:Do,c=0,h=function(){t.removeEventListener(s,u),n()},u=function(e){e.target===t&&++c>=a&&h()};setTimeout((function(){c<a&&h()}),o+1),t.addEventListener(s,u)}var Io=/\b(transform|all)(,|$)/;function jo(t,e){var n,r=window.getComputedStyle(t),i=(r[To+"Delay"]||"").split(", "),o=(r[To+"Duration"]||"").split(", "),a=Uo(i,o),s=(r[Mo+"Delay"]||"").split(", "),c=(r[Mo+"Duration"]||"").split(", "),h=Uo(s,c),u=0,l=0;e===Ao?a>0&&(n=Ao,u=a,l=o.length):e===ko?h>0&&(n=ko,u=h,l=c.length):(u=Math.max(a,h),n=u>0?a>h?Ao:ko:null,l=n?n===Ao?o.length:c.length:0);var f=n===Ao&&Io.test(r[To+"Property"]);return{type:n,timeout:u,propCount:l,hasTransform:f}}function Uo(t,e){while(t.length<e.length)t=t.concat(t);return Math.max.apply(null,e.map((function(e,n){return Bo(e)+Bo(t[n])})))}function Bo(t){return 1e3*Number(t.slice(0,-1).replace(",","."))}function $o(t,e){var n=t.elm;i(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var o=Co(t.data.transition);if(!r(o)&&!i(n._enterCb)&&1===n.nodeType){var a=o.css,s=o.type,h=o.enterClass,u=o.enterToClass,l=o.enterActiveClass,f=o.appearClass,d=o.appearToClass,p=o.appearActiveClass,v=o.beforeEnter,y=o.enter,m=o.afterEnter,_=o.enterCancelled,b=o.beforeAppear,w=o.appear,x=o.afterAppear,S=o.appearCancelled,C=o.duration,P=Fn,O=Fn.$vnode;while(O&&O.parent)P=O.context,O=O.parent;var A=!P._isMounted||!t.isRootInsert;if(!A||w||""===w){var k=A&&f?f:h,T=A&&p?p:l,F=A&&d?d:u,M=A&&b||v,D=A&&"function"===typeof w?w:y,G=A&&x||m,E=A&&S||_,R=g(c(C)?C.enter:C);0;var N=!1!==a&&!et,L=Ho(D),j=n._enterCb=I((function(){N&&(No(n,F),No(n,T)),j.cancelled?(N&&No(n,k),E&&E(n)):G&&G(n),n._enterCb=null}));t.data.show||we(t,"insert",(function(){var e=n.parentNode,r=e&&e._pending&&e._pending[t.key];r&&r.tag===t.tag&&r.elm._leaveCb&&r.elm._leaveCb(),D&&D(n,j)})),M&&M(n),N&&(Ro(n,k),Ro(n,T),Eo((function(){No(n,k),j.cancelled||(Ro(n,F),L||(Vo(R)?setTimeout(j,R):Lo(n,s,j)))}))),t.data.show&&(e&&e(),D&&D(n,j)),N||L||j()}}}function zo(t,e){var n=t.elm;i(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var o=Co(t.data.transition);if(r(o)||1!==n.nodeType)return e();if(!i(n._leaveCb)){var a=o.css,s=o.type,h=o.leaveClass,u=o.leaveToClass,l=o.leaveActiveClass,f=o.beforeLeave,d=o.leave,p=o.afterLeave,v=o.leaveCancelled,y=o.delayLeave,m=o.duration,_=!1!==a&&!et,b=Ho(d),w=g(c(m)?m.leave:m);0;var x=n._leaveCb=I((function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[t.key]=null),_&&(No(n,u),No(n,l)),x.cancelled?(_&&No(n,h),v&&v(n)):(e(),p&&p(n)),n._leaveCb=null}));y?y(S):S()}function S(){x.cancelled||(!t.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[t.key]=t),f&&f(n),_&&(Ro(n,h),Ro(n,l),Eo((function(){No(n,h),x.cancelled||(Ro(n,u),b||(Vo(w)?setTimeout(x,w):Lo(n,s,x)))}))),d&&d(n,x),_||b||x())}}function Vo(t){return"number"===typeof t&&!isNaN(t)}function Ho(t){if(r(t))return!1;var e=t.fns;return i(e)?Ho(Array.isArray(e)?e[0]:e):(t._length||t.length)>1}function Wo(t,e){!0!==e.data.show&&$o(e)}var Ko=q?{create:Wo,activate:Wo,remove:function(t,e){!0!==t.data.show?zo(t,e):e()}}:{},Yo=[zi,Wi,no,so,bo,Ko],Xo=Yo.concat(ji),qo=Mi({nodeOps:Si,modules:Xo});et&&document.addEventListener("selectionchange",(function(){var t=document.activeElement;t&&t.vmodel&&ia(t,"input")}));var Qo={inserted:function(t,e,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?we(n,"postpatch",(function(){Qo.componentUpdated(t,e,n)})):Jo(t,e,n.context),t._vOptions=[].map.call(t.options,ea)):("textarea"===n.tag||hi(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",na),t.addEventListener("compositionend",ra),t.addEventListener("change",ra),et&&(t.vmodel=!0)))},componentUpdated:function(t,e,n){if("select"===n.tag){Jo(t,e,n.context);var r=t._vOptions,i=t._vOptions=[].map.call(t.options,ea);if(i.some((function(t,e){return!N(t,r[e])}))){var o=t.multiple?e.value.some((function(t){return ta(t,i)})):e.value!==e.oldValue&&ta(e.value,i);o&&ia(t,"change")}}}};function Jo(t,e,n){Zo(t,e,n),(tt||nt)&&setTimeout((function(){Zo(t,e,n)}),0)}function Zo(t,e,n){var r=e.value,i=t.multiple;if(!i||Array.isArray(r)){for(var o,a,s=0,c=t.options.length;s<c;s++)if(a=t.options[s],i)o=L(r,ea(a))>-1,a.selected!==o&&(a.selected=o);else if(N(ea(a),r))return void(t.selectedIndex!==s&&(t.selectedIndex=s));i||(t.selectedIndex=-1)}}function ta(t,e){return e.every((function(e){return!N(e,t)}))}function ea(t){return"_value"in t?t._value:t.value}function na(t){t.target.composing=!0}function ra(t){t.target.composing&&(t.target.composing=!1,ia(t.target,"input"))}function ia(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function oa(t){return!t.componentInstance||t.data&&t.data.transition?t:oa(t.componentInstance._vnode)}var aa={bind:function(t,e,n){var r=e.value;n=oa(n);var i=n.data&&n.data.transition,o=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;r&&i?(n.data.show=!0,$o(n,(function(){t.style.display=o}))):t.style.display=r?o:"none"},update:function(t,e,n){var r=e.value,i=e.oldValue;if(!r!==!i){n=oa(n);var o=n.data&&n.data.transition;o?(n.data.show=!0,r?$o(n,(function(){t.style.display=t.__vOriginalDisplay})):zo(n,(function(){t.style.display="none"}))):t.style.display=r?t.__vOriginalDisplay:"none"}},unbind:function(t,e,n,r,i){i||(t.style.display=t.__vOriginalDisplay)}},sa={model:Qo,show:aa},ca={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function ha(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?ha(Sn(e.children)):t}function ua(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var i=n._parentListeners;for(var o in i)e[S(o)]=i[o];return e}function la(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}function fa(t){while(t=t.parent)if(t.data.transition)return!0}function da(t,e){return e.key===t.key&&e.tag===t.tag}var pa=function(t){return t.tag||xn(t)},ga=function(t){return"show"===t.name},va={name:"transition",props:ca,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(pa),n.length)){0;var r=this.mode;0;var i=n[0];if(fa(this.$vnode))return i;var o=ha(i);if(!o)return i;if(this._leaving)return la(t,i);var a="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?a+"comment":a+o.tag:s(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var c=(o.data||(o.data={})).transition=ua(this),h=this._vnode,u=ha(h);if(o.data.directives&&o.data.directives.some(ga)&&(o.data.show=!0),u&&u.data&&!da(o,u)&&!xn(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var l=u.data.transition=M({},c);if("out-in"===r)return this._leaving=!0,we(l,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),la(t,i);if("in-out"===r){if(xn(o))return h;var f,d=function(){f()};we(c,"afterEnter",d),we(c,"enterCancelled",d),we(l,"delayLeave",(function(t){f=t}))}}return i}}},ya=M({tag:String,moveClass:String},ca);delete ya.mode;var ma={props:ya,beforeMount:function(){var t=this,e=this._update;this._update=function(n,r){var i=Mn(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,i(),e.call(t,n,r)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=ua(this),s=0;s<i.length;s++){var c=i[s];if(c.tag)if(null!=c.key&&0!==String(c.key).indexOf("__vlist"))o.push(c),n[c.key]=c,(c.data||(c.data={})).transition=a;else;}if(r){for(var h=[],u=[],l=0;l<r.length;l++){var f=r[l];f.data.transition=a,f.data.pos=f.elm.getBoundingClientRect(),n[f.key]?h.push(f):u.push(f)}this.kept=t(e,null,h),this.removed=u}return t(e,null,o)},updated:function(){var t=this.prevChildren,e=this.moveClass||(this.name||"v")+"-move";t.length&&this.hasMove(t[0].elm,e)&&(t.forEach(_a),t.forEach(ba),t.forEach(wa),this._reflow=document.body.offsetHeight,t.forEach((function(t){if(t.data.moved){var n=t.elm,r=n.style;Ro(n,e),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(Fo,n._moveCb=function t(r){r&&r.target!==n||r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(Fo,t),n._moveCb=null,No(n,e))})}})))},methods:{hasMove:function(t,e){if(!Oo)return!1;if(this._hasMove)return this._hasMove;var n=t.cloneNode();
7t._transitionClasses&&t._transitionClasses.forEach((function(t){So(n,t)})),xo(n,e),n.style.display="none",this.$el.appendChild(n);var r=jo(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}};function _a(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function ba(t){t.data.newPos=t.elm.getBoundingClientRect()}function wa(t){var e=t.data.pos,n=t.data.newPos,r=e.left-n.left,i=e.top-n.top;if(r||i){t.data.moved=!0;var o=t.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}var xa={Transition:va,TransitionGroup:ma};Sr.config.mustUseProp=Ur,Sr.config.isReservedTag=oi,Sr.config.isReservedAttr=Ir,Sr.config.getTagNamespace=ai,Sr.config.isUnknownElement=ci,M(Sr.options.directives,sa),M(Sr.options.components,xa),Sr.prototype.__patch__=q?qo:G,Sr.prototype.$mount=function(t,e){return t=t&&q?ui(t):void 0,En(this,t,e)},q&&setTimeout((function(){$.devtools&&ht&&ht.emit("init",Sr)}),0),e["a"]=Sr}).call(this,n("c8ba"))},"2cf4":function(t,e,n){var r,i,o,a=n("da84"),s=n("d039"),c=n("0366"),h=n("1be4"),u=n("cc12"),l=n("1cdc"),f=n("605d"),d=a.location,p=a.setImmediate,g=a.clearImmediate,v=a.process,y=a.MessageChannel,m=a.Dispatch,_=0,b={},w="onreadystatechange",x=function(t){if(b.hasOwnProperty(t)){var e=b[t];delete b[t],e()}},S=function(t){return function(){x(t)}},C=function(t){x(t.data)},P=function(t){a.postMessage(t+"",d.protocol+"//"+d.host)};p&&g||(p=function(t){var e=[],n=1;while(arguments.length>n)e.push(arguments[n++]);return b[++_]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},r(_),_},g=function(t){delete b[t]},f?r=function(t){v.nextTick(S(t))}:m&&m.now?r=function(t){m.now(S(t))}:y&&!l?(i=new y,o=i.port2,i.port1.onmessage=C,r=c(o.postMessage,o,1)):a.addEventListener&&"function"==typeof postMessage&&!a.importScripts&&d&&"file:"!==d.protocol&&!s(P)?(r=P,a.addEventListener("message",C,!1)):r=w in u("script")?function(t){h.appendChild(u("script"))[w]=function(){h.removeChild(this),x(t)}}:function(t){setTimeout(S(t),0)}),t.exports={set:p,clear:g}},"2d00":function(t,e,n){var r,i,o=n("da84"),a=n("342f"),s=o.process,c=s&&s.versions,h=c&&c.v8;h?(r=h.split("."),i=r[0]+r[1]):a&&(r=a.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/),r&&(i=r[1]))),t.exports=i&&+i},"2fb2":function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n("9cb8"),o=n("ea61"),a=n("d6af"),s=n("d777"),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype._validateAdd=function(t){var e=t.getType();"Shape"!==e&&i.Util.throw("You may only add shapes to a fast layer.")},e.prototype._setCanvasSize=function(t,e){this.canvas.setSize(t,e),this._checkSmooth()},e.prototype.hitGraphEnabled=function(){return!1},e.prototype.drawScene=function(t){var e=this.getLayer(),n=t||e&&e.getCanvas();return this.clearBeforeDraw()&&n.getContext().clear(),o.Container.prototype.drawScene.call(this,n),this},e.prototype.draw=function(){return this.drawScene(),this},e}(a.BaseLayer);e.FastLayer=c,c.prototype.nodeType="FastLayer",s._registerNode(c),i.Collection.mapMethods(c)},"342f":function(t,e,n){var r=n("d066");t.exports=r("navigator","userAgent")||""},"35a1":function(t,e,n){var r=n("f5df"),i=n("3f8c"),o=n("b622"),a=o("iterator");t.exports=function(t){if(void 0!=t)return t[a]||t["@@iterator"]||i[r(t)]}},"362d":function(t,e,n){var r=n("fd15").Konva;r._injectGlobal(r),e["default"]=r,t.exports=e["default"]},"36da":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("d777"),i=n("9cb8"),o=n("4971"),a=n("ea61"),s=n("eba4"),c=n("0ff5"),h=n("2fb2"),u=n("f35c"),l=n("df93"),f=n("fce6"),d=n("ed3d"),p=n("06f8"),g=n("c527"),v=n("f655");e.Konva=i.Util._assign(r.Konva,{Collection:i.Collection,Util:i.Util,Node:o.Node,ids:o.ids,names:o.names,Container:a.Container,Stage:s.Stage,stages:s.stages,Layer:c.Layer,FastLayer:h.FastLayer,Group:u.Group,DD:l.DD,Shape:f.Shape,shapes:f.shapes,Animation:d.Animation,Tween:p.Tween,Easings:p.Easings,Context:g.Context,Canvas:v.Canvas})},"37e8":function(t,e,n){var r=n("83ab"),i=n("9bf2"),o=n("825a"),a=n("df75");t.exports=r?Object.defineProperties:function(t,e){o(t);var n,r=a(e),s=r.length,c=0;while(s>c)i.f(t,n=r[c++],e[n]);return t}},"383f":function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();
7Object.defineProperty(e,"__esModule",{value:!0});var i=n("9cb8"),o=n("f0b4"),a=n("fce6"),s=n("4546"),c=n("d777"),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype._sceneFunc=function(t){var e=this.radiusX(),n=this.radiusY();t.beginPath(),t.save(),e!==n&&t.scale(1,n/e),t.arc(0,0,e,0,2*Math.PI,!1),t.restore(),t.closePath(),t.fillStrokeShape(this)},e.prototype.getWidth=function(){return 2*this.radiusX()},e.prototype.getHeight=function(){return 2*this.radiusY()},e.prototype.setWidth=function(t){this.radiusX(t/2)},e.prototype.setHeight=function(t){this.radiusY(t/2)},e}(a.Shape);e.Ellipse=h,h.prototype.className="Ellipse",h.prototype._centroid=!0,h.prototype._attrsAffectingSize=["radiusX","radiusY"],c._registerNode(h),o.Factory.addComponentsGetterSetter(h,"radius",["x","y"]),o.Factory.addGetterSetter(h,"radiusX",0,s.getNumberValidator()),o.Factory.addGetterSetter(h,"radiusY",0,s.getNumberValidator()),i.Collection.mapMethods(h)},"3bbe":function(t,e,n){var r=n("861d");t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},"3f8c":function(t,e){t.exports={}},"405a":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("f0b4"),i=n("9cb8"),o=n("4971"),a=n("4546");e.Pixelate=function(t){var e,n,r,o,a,s,c,h,u,l,f,d,p,g,v=Math.ceil(this.pixelSize()),y=t.width,m=t.height,_=Math.ceil(y/v),b=Math.ceil(m/v),w=t.data;if(v<=0)i.Util.error("pixelSize value can not be <= 0");else for(d=0;d<_;d+=1)for(p=0;p<b;p+=1){for(o=0,a=0,s=0,c=0,h=d*v,u=h+v,l=p*v,f=l+v,g=0,e=h;e<u;e+=1)if(!(e>=y))for(n=l;n<f;n+=1)n>=m||(r=4*(y*n+e),o+=w[r+0],a+=w[r+1],s+=w[r+2],c+=w[r+3],g+=1);for(o/=g,a/=g,s/=g,c/=g,e=h;e<u;e+=1)if(!(e>=y))for(n=l;n<f;n+=1)n>=m||(r=4*(y*n+e),w[r+0]=o,w[r+1]=a,w[r+2]=s,w[r+3]=c)}},r.Factory.addGetterSetter(o.Node,"pixelSize",8,a.getNumberValidator(),r.Factory.afterSetFilter)},"428f":function(t,e,n){var r=n("da84");t.exports=r},"44ad":function(t,e,n){var r=n("d039"),i=n("c6b6"),o="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?o.call(t,""):Object(t)}:Object},"44d2":function(t,e,n){var r=n("b622"),i=n("7c73"),o=n("9bf2"),a=r("unscopables"),s=Array.prototype;void 0==s[a]&&o.f(s,a,{configurable:!0,value:i(null)}),t.exports=function(t){s[a][t]=!0}},"44de":function(t,e,n){var r=n("da84");t.exports=function(t,e){var n=r.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}},"44e7":function(t,e,n){var r=n("861d"),i=n("c6b6"),o=n("b622"),a=o("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[a])?!!e:"RegExp"==i(t))}},4546:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("d777"),i=n("9cb8");function o(t){return i.Util._isString(t)?'"'+t+'"':"[object Number]"===Object.prototype.toString.call(t)||i.Util._isBoolean(t)?t:Object.prototype.toString.call(t)}function a(t){return t>255?255:t<0?0:Math.round(t)}function s(t){return t>1?1:t<1e-4?1e-4:t}function c(){if(r.Konva.isUnminified)return function(t,e){return i.Util._isNumber(t)||i.Util.warn(o(t)+' is a not val
7id value for "'+e+'" attribute. The value should be a number.'),t}}function h(){if(r.Konva.isUnminified)return function(t,e){var n=i.Util._isNumber(t),r="auto"===t;return n||r||i.Util.warn(o(t)+' is a not valid value for "'+e+'" attribute. The value should be a number or "auto".'),t}}function u(){if(r.Konva.isUnminified)return function(t,e){return i.Util._isString(t)||i.Util.warn(o(t)+' is a not valid value for "'+e+'" attribute. The value should be a string.'),t}}function l(){if(r.Konva.isUnminified)return function(t,e){return i.Util._isFunction(t)||i.Util.warn(o(t)+' is a not valid value for "'+e+'" attribute. The value should be a function.'),t}}function f(){if(r.Konva.isUnminified)return function(t,e){return i.Util._isArray(t)?t.forEach((function(t){i.Util._isNumber(t)||i.Util.warn('"'+e+'" attribute has non numeric element '+t+". Make sure that all elements are numbers.")})):i.Util.warn(o(t)+' is a not valid value for "'+e+'" attribute. The value should be a array of numbers.'),t}}function d(){if(r.Konva.isUnminified)return function(t,e){var n=!0===t||!1===t;
7return n||i.Util.warn(o(t)+' is a not valid value for "'+e+'" attribute. The value should be a boolean.'),t}}function p(t){if(r.Konva.isUnminified)return function(e,n){return i.Util.isObject(e)||i.Util.warn(o(e)+' is a not valid value for "'+n+'" attribute. The value should be an object with properties '+t),e}}e.RGBComponent=a,e.alphaComponent=s,e.getNumberValidator=c,e.getNumberOrAutoValidator=h,e.getStringValidator=u,e.getFunctionValidator=l,e.getNumberArrayValidator=f,e.getBooleanValidator=d,e.getComponentValidator=p},"461e":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("f0b4"),i=n("4971"),o=n("4546");e.HSV=function(t){var e,n,r,i,o,a=t.data,s=a.length,c=Math.pow(2,this.value()),h=Math.pow(2,this.saturation()),u=Math.abs(this.hue()+360)%360,l=c*h*Math.cos(u*Math.PI/180),f=c*h*Math.sin(u*Math.PI/180),d=.299*c+.701*l+.167*f,p=.587*c-.587*l+.33*f,g=.114*c-.114*l-.497*f,v=.299*c-.299*l-.328*f,y=.587*c+.413*l+.035*f,m=.114*c-.114*l+.293*f,_=.299*c-.3*l+1.25*f,b=.587*c-.586*l-1.05*f,w=.114*c+.886*l-.2*f;for(e=0;e<s;e+=4)n=a[e+0],r=a[e+1],i=a[e+2],o=a[e+3],a[e+0]=d*n+p*r+g*i,a[e+1]=v*n+y*r+m*i,a[e+2]=_*n+b*r+w*i,a[e+3]=o},r.Factory.addGetterSetter(i.Node,"hue",0,o.getNumberValidator(),r.Factory.afterSetFilter),r.Factory.addGetterSetter(i.Node,"saturation",0,o.getNumberValidator(),r.Factory.afterSetFilter),r.Factory.addGetterSetter(i.Node,"value",0,o.getNumberValidator(),r.Factory.afterSetFilter)},4840:function(t,e,n){var r=n("825a"),i=n("1c0b"),o=n("b622"),a=o("species");t.exports=function(t,e){var n,o=r(t).constructor;return void 0===o||void 0==(n=r(o)[a])?e:i(n)}},4930:function(t,e,n){var r=n("605d"),i=n("2d00"),o=n("d039");t.exports=!!Object.getOwnPropertySymbols&&!o((function(){return!Symbol.sham&&(r?38===i:i>37&&i<41)}))},4971:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("9cb8"),i=n("f0b4"),o=n("f655"),a=n("d777"),s=n("df93"),c=n("4546");e.ids={},e.names={};var h=function(t,n){n&&(e.ids[n]=t)};e._removeId=function(t,n){t&&e.ids[t]===n&&delete e.ids[t]},e._addName=function(t,n){n&&(e.names[n]||(e.names[n]=[]),e.names[n].push(t))},e._removeName=function(t,n){if(t){var r=e.names[t];if(r){for(var i=0;i<r.length;i++){var o=r[i];o._id===n&&r.splice(i,1)}0===r.length&&delete e.names[t]}}};var u="absoluteOpacity",l="absoluteTransform",f="absoluteScale",d="canvas",p="Change",g="children",v="konva",y="listening",m="mouseenter",_="mouseleave",b="name",w="set",x="Shape",S=" ",C="stage",P="transform",O="Stage",A="visible",k=["id"],T=["xChange.konva","yChange.konva","scaleXChange.konva","scaleYChange.konva","skewXChange.konva","skewYChange.konva","rotationChange.konva","offsetXChange.konva","offsetYChange.konva","transformsEnabledChange.konva"].join(S),F=["scaleXChange.konva","scaleYChange.konva"].join(S),M=new r.Collection,D=1,G=function(){function t(t){var e=this;this._id=D++,this.eventListeners={},this.attrs={},this.index=0,this.parent=null,this._cache=new Map,this._lastPos=null,this._filterUpToDate=!1,this._isUnderCache=!1,this.children=M,this.setAttrs(t),this.on(T,(function(){e._clearCache(P),e._clearSelfAndDescendantCache(l)})),this.on(F,(function(){e._clearSelfAndDescendantCache(f)})),this.on("visibleChange.konva",(function(){e._clearSelfAndDescendantCache(A)})),this.on("listeningChange.konva",(function(){e._clearSelfAndDescendantCache(y)})),this.on("opacityChange.konva",(function(){e._clearSelfAndDescendantCache(u)}))}return t.prototype.hasChildren=function(){return!1},t.prototype.getChildren=function(){return M},t.prototype._clearCache=function(t){t?this._cache.delete(t):this._cache.clear()},t.prototype._getCache=function(t,e){var n=this._cache.get(t);return void 0===n&&(n=e.call(this),this._cache.set(t,n)),n},t.prototype._getCanvasCache=function(){return this._cache.get(d)},t.prototype._clearSelfAndDescendantCache=function(t){this._clearCache(t),this._getCanvasCache()||this.children&&this.children.each((function(e){e._clearSelfAndDescendantCache(t)}))},t.prototype.clearCache=function(){return this._cache.delete(d),this._clearSelfAndDescendantCache(),this},t.prototype.cache=function(t){var e=t||{},n={};void 0!==e.x&&void 0!==e.y&&void 0!==e.width&&void 0!==e.height||(n=this.getClientRect({skipTransform:!0,relativeTo:this.getParent()}));var i=e.width||n.width,a=e.height||n.height,s=e.pixelRatio,c=void 0===e.x?n.x:e.x,h=void 0===e.y?n.y:e.y,l=e.offset||0,p=e.drawBorder||!1;if(i&&a){i+=2*l,a+=2*l,c-=l,h-=l;var g=new o.SceneCanvas({pixelRatio:s,width:i,height:a}),v=new o.SceneCanvas({pixelRatio:s,width:i,height:a}),y=new o.HitCanvas({pixelRatio:1,width:i,height:a}),m=g.getContext(),_=y.getContext();return y.isCache=!0,this._cache.delete("canvas"),this._filterUpToDate=!1,!1===e.imageSmoothingEnabled&&(g.getContext()._context.
7imageSmoothingEnabled=!1,v.getContext()._context.imageSmoothingEnabled=!1,y.getContext()._context.imageSmoothingEnabled=!1),m.save(),_.save(),m.translate(-c,-h),_.translate(-c,-h),this._isUnderCache=!0,this._clearSelfAndDescendantCache(u),this._clearSelfAndDescendantCache(f),this.drawScene(g,this,!0),this.drawHit(y,this,!0),this._isUnderCache=!1,m.restore(),_.restore(),p&&(m.save(),m.beginPath(),m.rect(0,0,i,a),m.closePath(),m.setAttr("strokeStyle","red"),m.setAttr("lineWidth",5),m.stroke(),m.restore()),this._cache.set(d,{scene:g,filter:v,hit:y,x:c,y:h}),this}r.Util.error("Can not cache the node. Width or height of the node equals 0. Caching is skipped.")},t.prototype.getClientRect=function(t){throw new Error('abstract "getClientRect" method call')},t.prototype._transformedRect=function(t,e){var n,r,i,o,a=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],s=this.getAbsoluteTransform(e);return a.forEach((function(t){var e=s.point(t);void 0===n&&(n=i=e.x,r=o=e.y),n=Math.min(n,e.x),r=Math.min(r,e.y),i=Math.max(i,e.x),o=Math.max(o,e.y)})),{x:n,y:r,width:i-n,height:o-r}},t.prototype._drawCachedSceneCanvas=function(t){t.save(),t._applyOpacity(this),t._applyGlobalCompositeOperation(this);var e=this._getCanvasCache();t.translate(e.x,e.y);var n=this._getCachedSceneCanvas(),r=n.pixelRatio;t.drawImage(n._canvas,0,0,n.width/r,n.height/r),t.restore()},t.prototype._drawCachedHitCanvas=function(t){var e=this._getCanvasCache(),n=e.hit;t.save(),t._applyGlobalCompositeOperation(this),t.translate(e.x,e.y),t.drawImage(n._canvas,0,0),t.restore()},t.prototype._getCachedSceneCanvas=function(){var t,e,n,i,o=this.filters(),a=this._getCanvasCache(),s=a.scene,c=a.filter,h=c.getContext();if(o){if(!this._filterUpToDate){var u=s.pixelRatio;try{for(t=o.length,h.clear(),h.drawImage(s._canvas,0,0,s.getWidth()/u,s.getHeight()/u),e=h.getImageData(0,0,c.getWidth(),c.getHeight()),n=0;n<t;n++)i=o[n],"function"===typeof i?(i.call(this,e),h.putImageData(e,0,0)):r.Util.error("Filter should be type of function, but got "+typeof i+" insted. Please check correct filters")}catch(l){r.Util.error("Unable to apply filter. "+l.message)}this._filterUpToDate=!0}return c}return s},t.prototype.on=function(t,e){if(3===arguments.length)return this._delegate.apply(this,arguments);var n,r,i,o,a,s=t.split(S),c=s.length;for(n=0;n<c;n++)r=s[n],i=r.split("."),o=i[0],a=i[1]||"",this.eventListeners[o]||(this.eventListeners[o]=[]),this.eventListeners[o].push({name:a,handler:e});return this},t.prototype.off=function(t,e){var n,r,i,o,a,s,c=(t||"").split(S),h=c.length;if(!t)for(r in this.eventListeners)this._off(r);for(n=0;n<h;n++)if(i=c[n],o=i.split("."),a=o[0],s=o[1],a)this.eventListeners[a]&&this._off(a,s,e);else for(r in this.eventListeners)this._off(r,s,e);return this},t.prototype.dispatchEvent=function(t){var e={target:this,type:t.type,evt:t};return this.fire(t.type,e),this},t.prototype.addEventListener=function(t,e){return this.on(t,(function(t){e.call(this,t.evt)})),this},t.prototype.removeEventListener=function(t){return this.off(t),this},t.prototype._delegate=function(t,e,n){var i=this;this.on(t,(function(t){for(var o=t.target.findAncestors(e,!0,i),a=0;a<o.length;a++)t=r.Util.cloneObject(t),t.currentTarget=o[a],n.call(o[a],t)}))},t.prototype.remove=function(){return s.DD.node&&s.DD.node===this&&this.stopDrag(
7),this._remove(),this},t.prototype._remove=function(){this._clearSelfAndDescendantCache(C),this._clearSelfAndDescendantCache(l),this._clearSelfAndDescendantCache(A),this._clearSelfAndDescendantCache(y),this._clearSelfAndDescendantCache(u);var t=this.getParent();t&&t.children&&(t.children.splice(this.index,1),t._setChildrenIndices(),this.parent=null)},t.prototype.destroy=function(){e._removeId(this.id(),this);for(var t=(this.name()||"").split(/\s/g),n=0;n<t.length;n++){var r=t[n];e._removeName(r,this._id)}return this.remove(),this},t.prototype.getAttr=function(t){var e="get"+r.Util._capitalize(t);return r.Util._isFunction(this[e])?this[e]():this.attrs[t]},t.prototype.getAncestors=function(){var t=this.getParent(),e=new r.Collection;while(t)e.push(t),t=t.getParent();return e},t.prototype.getAttrs=function(){return this.attrs||{}},t.prototype.setAttrs=function(t){var e,n;if(!t)return this;for(e in t)e!==g&&(n=w+r.Util._capitalize(e),r.Util._isFunction(this[n])?this[n](t[e]):this._setAttr(e,t[e]));return this},t.prototype.isListening=function(){return this._getCache(y,this._isListening)},t.prototype._isListening=function(){var t=this.listening(),e=this.getParent();return"inherit"===t?!e||e.isListening():t},t.prototype.isVisible=function(){return this._getCache(A,this._isVisible)},t.prototype._isVisible=function(t){var e=this.visible(),n=this.getParent();return"inherit"===e?!n||n===t||n._isVisible(t):e},t.prototype.shouldDrawHit=function(){var t=this.getLayer();return!t&&this.isListening()&&this.isVisible()||t&&t.hitGraphEnabled()&&this.isListening()&&this.isVisible()},t.prototype.show=function(){return this.visible(!0),this},t.prototype.hide=function(){return this.visible(!1),this},t.prototype.getZIndex=function(){return this.index||0},t.prototype.getAbsoluteZIndex=function(){var t,e,n,r,i=this.getDepth(),o=this,a=0;function s(c){for(t=[],e=c.length,n=0;n<e;n++)r=c[n],a++,r.nodeType!==x&&(t=t.concat(r.getChildren().toArray())),r._id===o._id&&(n=e);t.length>0&&t[0].getDepth()<=i&&s(t)}return o.nodeType!==O&&s(o.getStage().getChildren()),a},t.prototype.getDepth=function(){var t=0,e=this.parent;while(e)t++,e=e.parent;return t},t.prototype.setPosition=function(t){return this.x(t.x),this.y(t.y),this},t.prototype.getPosition=function(){return{x:this.x(),y:this.y()}},t.prototype.getAbsolutePosition=function(t){var e=this.getAbsoluteTransform(t).getMatrix(),n=new r.Transform,i=this.offset();return n.m=e.slice(),n.translate(i.x,i.y),n.getTranslation()},t.prototype.setAbsolutePosition=function(t){var e,n=this._clearTransform();return this.attrs.x=n.x,this.attrs.y=n.y,delete n.x,delete n.y,e=this.getAbsoluteTransform(),e.invert(),e.translate(t.x,t.y),t={x:this.attrs.x+e.getTranslation().x,y:this.attrs.y+e.getTranslation().y},this.setPosition({x:t.x,y:t.y}),this._setTransform(n),this},t.prototype._setTransform=function(t){var e;for(e in t)this.attrs[e]=t[e];this._clearCache(P),this._clearSelfAndDescendantCache(l)},t.prototype._clearTransform=function(){var t={x:this.x(),y:this.y(),rotation:this.rotation(),scaleX:this.scaleX(),scaleY:this.scaleY(),offsetX:this.offsetX(),offsetY:this.offsetY(),skewX:this.skewX(),skewY:this.skewY()};return this.attrs.x=0,this.attrs.y=0,this.attrs.rotation=0,this.attrs.scaleX=1,this.attrs.scaleY=1,this.attrs.offsetX=0,this.attrs.offsetY=0,this.attrs.skewX=0,this.attrs.skewY=0,this._clearCache(P),this._clearSelfAndDescendantCache(l),t},t.prototype.move=function(t){var e=t.x,n=t.y,r=this.x(),i=this.y();return void 0!==e&&(r+=e),void 0!==n&&(i+=n),this.setPosition({x:r,y:i}),this},t.prototype._eachAncestorReverse=function(t,e){var n,r,i=[],o=this.getParent();if(e&&e._id===this._id)t(this);else{i.unshift(this);while(o&&(!e||o._id!==e._id))i.unshift(o),o=o.parent;for(n=i.length,r=0;r<n;r++)t(i[r])}},t.prototype.rotate=function(t){return this.rotation(this.rotation()+t),this},t.prototype.moveToTop=function(){if(!this.parent)return r.Util.warn("Node has no parent. moveToTop function is ignored."),!1;var t=this.index;return this.parent.children.splice(t,1),this.parent.children.push(this),this.parent._setChildrenIndices(),!0},t.prototype.moveUp=function(){if(!this.parent)return r.Util.warn("Node has no parent. moveUp function is ignored."),!1;var t=this.index,e=this.parent.getChildren().length;return t<e-1&&(this.parent.children.splice(t,1),this.parent.children.splice(t+1,0,this),this.parent._setChildrenIndices(),!0)},t.prototype.moveDown=function(){if(!this.parent)return r.Util.warn("Node has no parent. moveDown function is ignored."),!1;var t=this.index;return t>0&&(this.parent.children.splice(t,1),this.parent.children.splice(t-1,0,this),this.parent._setChildrenIndices(),!0)},t.prototype.moveToBottom=function(){if(!this.parent)return r.Util.warn("Node has no parent. moveToBottom function is ignored."),!1;var t=this.index;return t>0&&(this.parent.children.splice(t,1),this.parent.children.unshift(this),this.parent._setChildrenIndices(),!0)},t.prototype.setZIndex=function(t){if(!this.parent)return r.Util.warn("Node has no parent. zIndex parameter is ignored."),this;(t<0||t>=this.parent.children.length)&&r.Util.warn("Unexpected value "+t+" for zIndex property. zIndex is just index of a node in children of its parent. Expected value is from 0 to "+(this.parent.children.length-1)+".");var e=this.index;return this.parent.children.splice(e,1),this.parent.children.splice(t,0,this),this.parent._setChildrenIndices(),this},t.prototype.getAbsoluteOpacity=function(){return this._getCache(u,this._getAbsoluteOpacity)},t.prototype._getAbsoluteOpacity=function(){var t=this.opacity(),e=this.getParent();return e&&!e._isUnderCache&&(t*=e.getAbsoluteOpacity()),t},t.prototype.moveTo=function(t){return this.getParent()!==t&&(this._remove(),t.add(this)),this},t.prototype.toObject=function(){var t,e,n,i,o,a={},s=this.getAttrs();for(t in a.attrs={},s)e=s[t],o=r.Util.isObject(e)&&!r.Util._isPlainObject(e)&&!r.Util._isArray(e),o||(n="function"===typeof this[t]&&this[t],delete s[t],i=n?n.call(this):null,s[t]=e,i!==e&&(a.attrs[t]=e));return a.className=this.getClassName(),r.Util._prepareToStringify(a)},t.prototype.toJSON=function(){return JSON.stringify(this.toObject())},t.prototype.getParent=function(){return this.parent}
7,t.prototype.findAncestors=function(t,e,n){var r=[];e&&this._isMatch(t)&&r.push(this);var i=this.parent;while(i){if(i===n)return r;i._isMatch(t)&&r.push(i),i=i.parent}return r},t.prototype.isAncestorOf=function(t){return!1},t.prototype.findAncestor=function(t,e,n){return this.findAncestors(t,e,n)[0]},t.prototype._isMatch=function(t){if(!t)return!1;if("function"===typeof t)return t(this);var e,n,i=t.replace(/ /g,"").split(","),o=i.length;for(e=0;e<o;e++)if(n=i[e],r.Util.isValidSelector(n)||(r.Util.warn('Selector "'+n+'" is invalid. Allowed selectors examples are "#foo", ".bar" or "Group".'),r.Util.warn('If you have a custom shape with such className, please change it to start with upper letter like "Triangle".'),r.Util.warn("Konva is awesome, right?")),"#"===n.charAt(0)){if(this.id()===n.slice(1))return!0}else if("."===n.charAt(0)){if(this.hasName(n.slice(1)))return!0}else if(this.className===t||this.nodeType===t)return!0;return!1},t.prototype.getLayer=function(){var t=this.getParent();return t?t.getLayer():null},t.prototype.getStage=function(){return this._getCache(C,this._getStage)},t.prototype._getStage=function(){var t=this.getParent();return t?t.getStage():void 0},t.prototype.fire=function(t,e,n){return e=e||{},e.target=e.target||this,n?this._fireAndBubble(t,e):this._fire(t,e),this},t.prototype.getAbsoluteTransform=function(t){return t?this._getAbsoluteTransform(t):this._getCache(l,this._getAbsoluteTransform)},t.prototype._getAbsoluteTransform=function(t){var e=new r.Transform;return this._eachAncestorReverse((function(t){var n=t.getTransformsEnabled();"all"===n?e.multiply(t.getTransform()):"position"===n&&e.translate(t.getX()-t.getOffsetX(),t.getY()-t.getOffsetY())}),t),e},t.prototype.getAbsoluteScale=function(t){return t?this._getAbsoluteScale(t):this._getCache(f,this._getAbsoluteScale)},t.prototype._getAbsoluteScale=function(t){var e=this;while(e)e._isUnderCache&&(t=e),e=e.getParent();var n=1,r=1;return this._eachAncestorReverse((function(t){n*=t.scaleX(),r*=t.scaleY()}),t),{x:n,y:r}},t.prototype.getTransform=function(){return this._getCache(P,this._getTransform)},t.prototype._getTransform=function(){var t=new r.Transform,e=this.x(),n=this.y(),i=a.Konva.getAngle(this.rotation()),o=this.scaleX(),s=this.scaleY(),c=this.skewX(),h=this.skewY(),u=this.offsetX(),l=this.offsetY();return 0===e&&0===n||t.translate(e,n),0!==i&&t.rotate(i),0===c&&0===h||t.skew(c,h),1===o&&1===s||t.scale(o,s),0===u&&0===l||t.translate(-1*u,-1*l),t},t.prototype.clone=function(t){var e,n,i,o,a,s=r.Util.cloneObject(this.attrs);for(var c in k){var h=k[c];delete s[h]}for(e in t)s[e]=t[e];var u=new this.constructor(s);for(e in this.eventListeners)for(n=this.eventListeners[e],i=n.length,o=0;o<i;o++)a=n[o],a.name.indexOf(v)<0&&(u.eventListeners[e]||(u.eventListeners[e]=[]),u.eventListeners[e].push(a));return u},t.prototype._toKonvaCanvas=function(t){t=t||{};var e=this.getClientRect(),n=this.getStage(),r=void 0!==t.x?t.x:e.x,i=void 0!==t.y?t.y:e.y,a=t.pixelRatio||1,s=new o.SceneCanvas({width:t.width||e.width||(n?n.getWidth():0),height:t.height||e.height||(n?n.getHeight():0),pixelRatio:a}),c=s.getContext();return c.save(),(r||i)&&c.translate(-1*r,-1*i),this.drawScene(s),c.restore(),s},t.prototype.toCanvas=function(t){return this._toKonvaCanvas(t)._canvas},t.prototype.toDataURL=function(t){t=t||{};var e=t.mimeType||null,n=t.quality||null,r=this._toKonvaCanvas(t).toDataURL(e,n);return t.callback&&t.callback(r),r},t.prototype.toImage=function(t){if(!t||!t.callback)throw"callback required for toImage method config argument";var e=t.callback;delete t.callback,r.Util._urlToImage(this.toDataURL(t),(function(t){e(t)}))},t.prototype.setSize=function(t){return this.width(t.width),this.height(t.height),this},t.prototype.getSize=function(){return{width:this.width(),height:this.height()}},t.prototype.getClassName=function(){return this.className||this.nodeType},t.prototype.getType=function(){return this.nodeType},t.prototype.getDragDistance=function(){return void 0!==this.attrs.dragDistance?this.attrs.dragDistance:this.parent?this.parent.getDragDistance():a.Konva.dragDistance},t.prototype._off=function(t,e,n){var r,i,o,a=this.eventListeners[t];for(r=0;r<a.length;r++)if(i=a[r].name,o=a[r].handler,("konva"!==i||"konva"===e)&&(!e||i===e)&&(!n||n===o)){if(a.splice(r,1),0===a.length){delete this.eventListeners[t];break}r--}},t.prototype._fireChangeEvent=function(t,e,n){this._fire(t+p,{oldVal:e,newVal:n})},t.prototype.setId=function(t){var n=this.id();return e._removeId(n,this),h(this,t),this._setAttr("id",t),this},t.prototype.setName=function(t){var n,r,i=(this.name()||"").split(/\s/g),o=(t||"").split(/\s/g);for(r=0;r<i.length;r++)n=i[r],-1===o.indexOf(n)&&n&&e._removeName(n,this._id);for(r=0;r<o.length;r++)n=o[r],-1===i.indexOf(n)&&n&&e._addName(this,n);return this._setAttr(b,t),this},t.prototype.addName=function(t){if(!this.hasName(t)){var e=this.name(),n=e?e+" "+t:t;this.setName(n)}return this},t.prototype.hasName=function(t){if(!t)return!1;var e=this.name();if(!e)return!1;var n=(e||"").split(/\s/g);return-1!==n.indexOf(t)},t.prototype.removeName=function(t){var e=(this.name()||"").split(/\s/g),n=e.indexOf(t);return-1!==n&&(e.splice(n,1),this.setName(e.join(" "))),this}
7,t.prototype.setAttr=function(t,e){var n=this[w+r.Util._capitalize(t)];return r.Util._isFunction(n)?n.call(this,e):this._setAttr(t,e),this},t.prototype._setAttr=function(t,e){var n=this.attrs[t];(n!==e||r.Util.isObject(e))&&(void 0===e||null===e?delete this.attrs[t]:this.attrs[t]=e,this._fireChangeEvent(t,n,e))},t.prototype._setComponentAttr=function(t,e,n){var r;void 0!==n&&(r=this.attrs[t],r||(this.attrs[t]=this.getAttr(t)),this.attrs[t][e]=n,this._fireChangeEvent(t,r,n))},t.prototype._fireAndBubble=function(t,e,n){e&&this.nodeType===x&&(e.target=this);var r=(t===m||t===_)&&(n&&(this===n||this.isAncestorOf&&this.isAncestorOf(n))||"Stage"===this.nodeType&&!n);if(!r){this._fire(t,e);var i=(t===m||t===_)&&n&&n.isAncestorOf&&n.isAncestorOf(this)&&!n.isAncestorOf(this.parent);(e&&!e.cancelBubble||!e)&&this.parent&&this.parent.isListening()&&!i&&(n&&n.parent?this._fireAndBubble.call(this.parent,t,e,n.parent):this._fireAndBubble.call(this.parent,t,e))}},t.prototype._fire=function(t,e){var n,r=this.eventListeners[t];if(r)for(e=e||{},e.currentTarget=this,e.type=t,n=0;n<r.length;n++)r[n].handler.call(this,e)},t.prototype.draw=function(){return this.drawScene(),this.drawHit(),this},t.prototype.startDrag=function(){var t=this.getStage(),e=this.getLayer(),n=t.getPointerPosition(),r=this.getAbsolutePosition();n&&(s.DD.node&&s.DD.node.stopDrag(),s.DD.node=this,s.DD.startPointerPos=n,s.DD.offset.x=n.x-r.x,s.DD.offset.y=n.y-r.y,s.DD.anim.setLayers(e||this["getLayers"]()),s.DD.anim.start(),this._setDragPosition())},t.prototype._setDragPosition=function(t){var e=this.getStage().getPointerPosition(),n=this.dragBoundFunc();if(e){var r={x:e.x-s.DD.offset.x,y:e.y-s.DD.offset.y};void 0!==n&&(r=n.call(this,r,t)),this.setAbsolutePosition(r),this._lastPos&&this._lastPos.x===r.x&&this._lastPos.y===r.y||(s.DD.anim["dirty"]=!0),this._lastPos=r}},t.prototype.stopDrag=function(){var t={};s.DD._endDragBefore(t),s.DD._endDragAfter(t)},t.prototype.setDraggable=function(t){this._setAttr("draggable",t),this._dragChange()},t.prototype.isDragging=function(){return!(!s.DD.node||s.DD.node!==this||!s.DD.isDragging)},t.prototype._listenDrag=function(){this._dragCleanup(),this.on("mousedown.konva touchstart.konva",(function(t){var e=void 0!==t.evt["button"],n=!e||a.Konva.dragButtons.indexOf(t.evt["button"])>=0;n&&(s.DD.node||this.startDrag())}))},t.prototype._dragChange=function(){if(this.attrs.draggable)this._listenDrag();else{this._dragCleanup();var t=this.getStage(),e=s.DD;t&&e.node&&e.node._id===this._id&&e.node.stopDrag()}},t.prototype._dragCleanup=function(){this.off("mousedown.konva"),this.off("touchstart.konva")},t.create=function(t,e){return r.Util._isString(t)&&(t=JSON.parse(t)),this._createNode(t,e)},t._createNode=function(e,n){var i,o,s,c=t.prototype.getClassName.call(e),h=e.children;n&&(e.attrs.container=n),a._NODES_REGISTRY[c]||(r.Util.warn('Can not find a node with class name "'+c+'". Fallback to "Shape".'),c="Shape");var u=a._NODES_REGISTRY[c];if(i=new u(e.attrs),h)for(o=h.length,s=0;s<o;s++)i.add(t._createNode(h[s]));return i},t}();e.Node=G,G.prototype.nodeType="Node",G.prototype._attrsAffectingSize=[],i.Factory.addGetterSetter(G,"zIndex"),i.Factory.addGetterSetter(G,"absolutePosition"),i.Factory.addGetterSetter(G,"position"),i.Factory.addGetterSetter(G,"x",0,c.getNumberValidator()),i.Factory.addGetterSetter(G,"y",0,c.getNumberValidator()),i.Factory.addGetterSetter(G,"globalCompositeOperation","source-over",c.getStringValidator()),i.Factory.addGetterSetter(G,"opacity",1,c.getNumberValidator()),i.Factory.addGetterSetter(G,"name","",c.getStringValidator()),i.Factory.addGetterSetter(G,"id","",c.getStringValidator()),i.Factory.addGetterSetter(G,"rotation",0,c.getNumberValidator()),i.Factory.addComponentsGetterSetter(G,"scale",["x","y"]),i.Factory.addGetterSetter(G,"scaleX",1,c.getNumberValidator()),i.Factory.addGetterSetter(G,"scaleY",1,c.getNumberValidator()),i.Factory.addComponentsGetterSetter(G,"skew",["x","y"]),i.Factory.addGetterSetter(G,"skewX",0,c.getNumberValidator()),i.Factory.addGetterSetter(G,"skewY",0,c.getNumberValidator()),i.Factory.addComponentsGetterSetter(G,"offset",["x","y"]),i.Factory.addGetterSetter(G,"offsetX",0,c.getNumberValidator()),i.Factory.addGetterSetter(G,"offsetY",0,c.getNumberValidator()),i.Factory.addGetterSetter(G,"dragDistance",null,c.getNumberValidator()),i.Factory.addGetterSetter(G,"width",0,c.getNumberValidator()),i.Factory.addGetterSetter(G,"height",0,c.getNumberValidator()),i.Factory.addGetterSetter(G,"listening","inherit",(function(t){var e=!0===t||!1===t||"inherit"===t;
7return e||r.Util.warn(t+' is a not valid value for "listening" attribute. The value may be true, false or "inherit".'),t})),i.Factory.addGetterSetter(G,"preventDefault",!0,c.getBooleanValidator()),i.Factory.addGetterSetter(G,"filters",null,(function(t){return this._filterUpToDate=!1,t})),i.Factory.addGetterSetter(G,"visible","inherit",(function(t){var e=!0===t||!1===t||"inherit"===t;return e||r.Util.warn(t+' is a not valid value for "visible" attribute. The value may be true, false or "inherit".'),t})),i.Factory.addGetterSetter(G,"transformsEnabled","all",c.getStringValidator()),i.Factory.addGetterSetter(G,"size"),i.Factory.addGetterSetter(G,"dragBoundFunc"),i.Factory.addGetterSetter(G,"draggable",!1,c.getBooleanValidator()),i.Factory.backCompat(G,{rotateDeg:"rotate",setRotationDeg:"setRotation",getRotationDeg:"getRotation"}),r.Collection.mapMethods(G)},"4d64":function(t,e,n){var r=n("fc6a"),i=n("50c4"),o=n("23cb"),a=function(t){return function(e,n,a){var s,c=r(e),h=i(c.length),u=o(a,h);if(t&&n!=n){while(h>u)if(s=c[u++],s!=s)return!0}else for(;h>u;u++)if((t||u in c)&&c[u]===n)return t||u||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},"4de4":function(t,e,n){"use strict";var r=n("23e7"),i=n("b727").filter,o=n("1dde"),a=o("filter");r({target:"Array",proto:!0,forced:!a},{filter:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},"50c4":function(t,e,n){var r=n("a691"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},5135:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},5414:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i,o=n("9cb8"),a=n("f0b4"),s=n("fce6"),c=n("d777"),h=n("4546"),u=n("d777"),l="auto",f="center",d="justify",p="Change.konva",g="2d",v="-",y="left",m="text",_="Text",b="top",w="bottom",x="middle",S="normal",C="px ",P=" ",O="right",A="word",k="char",T="none",F="…",M=["fontFamily","fontSize","fontStyle","fontVariant","padding","align","verticalAlign","lineHeight","text","width","height","wrap","ellipsis","letterSpacing"],D=M.length;function G(){return i||(i=o.Util.createCanvasElement().getContext(g),i)}function E(t){t.fillText(this._partialText,this._partialTextX,this._partialTextY)}function R(t){t.strokeText(this._partialText,this._partialTextX,this._partialTextY)}function N(t){return t=t||{},t.fillLinearGradientColorStops||t.fillRadialGradientColorStops||t.fillPatternImage||(t.fill=t.fill||"black"),t}var L=function(t){function e(e){var n=t.call(this,N(e))||this;n._partialTextX=0,n._partialTextY=0;for(var r=0;r<D;r++)n.on(M[r]+p,n._setTextData);return n._setTextData(),n}return r(e,t),e.prototype._sceneFunc=function(t){var e,n=this.padding(),r=this.fontSize(),i=this.lineHeight()*r,o=this.textArr,a=o.length,s=this.verticalAlign(),c=0,h=this.align(),u=this.getWidth(),l=this.letterSpacing(),p=this.fill(),g=this.textDecoration(),v=-1!==g.indexOf("underline"),m=-1!==g.indexOf("line-through"),_=0,b=(_=i/2,0),S=0;for(t.setAttr("font",this._getContextFont()),t.setAttr("textBaseline",x),t.setAttr("textAlign",y),s===x?c=(this.getHeight()-a*i-2*n)/2:s===w&&(c=this.getHeight()-a*i-2*n),t.translate(n,c+n),e=0;e<a;e++){b=0,S=0;var C,P,A,k=o[e],T=k.text,F=k.width,M=e!==a-1;if(t.save(),h===O?b+=u-F-2*n:h===f&&(b+=(u-F-2*n)/2),v&&(t.save(),t.beginPath(),t.moveTo(b,_+S+Math.round(r/2)),C=T.split(" ").length-1,P=0===C,A=h===d&&M&&!P?u-2*n:F,t.lineTo(b+Math.round(A),_+S+Math.round(r/2)),t.lineWidth=r/15,t.strokeStyle=p,t.stroke(),t.restore()),m&&(t.save(),t.beginPath(),t.moveTo(b,_+S),C=T.split(" ").length-1,P=0===C,A=h===d&&M&&!P?u-2*n:F,t.lineTo(b+Math.round(A),_+S),t.lineWidth=r/15,t.strokeStyle=p,t.stroke(),t.restore()),0!==l||h===d){C=T.split(" ").length-1;for(var D=0;D<T.length;
7D++){var G=T[D];" "===G&&e!==a-1&&h===d&&(b+=Math.floor((u-2*n-F)/C)),this._partialTextX=b,this._partialTextY=_+S,this._partialText=G,t.fillStrokeShape(this),b+=Math.round(this.measureSize(G).width)+l}}else this._partialTextX=b,this._partialTextY=_+S,this._partialText=T,t.fillStrokeShape(this);t.restore(),a>1&&(_+=i)}},e.prototype._hitFunc=function(t){var e=this.getWidth(),n=this.getHeight();t.beginPath(),t.rect(0,0,e,n),t.closePath(),t.fillStrokeShape(this)},e.prototype.setText=function(t){var e=o.Util._isString(t)?t:(t||"").toString();return this._setAttr(m,e),this},e.prototype.getWidth=function(){var t=this.attrs.width===l||void 0===this.attrs.width;return t?this.getTextWidth()+2*this.padding():this.attrs.width},e.prototype.getHeight=function(){var t=this.attrs.height===l||void 0===this.attrs.height;return t?this.fontSize()*this.textArr.length*this.lineHeight()+2*this.padding():this.attrs.height},e.prototype.getTextWidth=function(){return this.textWidth},e.prototype.getTextHeight=function(){return o.Util.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight},e.prototype.measureSize=function(t){var e,n=G(),r=this.fontSize();return n.save(),n.font=this._getContextFont(),e=n.measureText(t),n.restore(),{width:e.width,height:r}},e.prototype._getContextFont=function(){return c.Konva.UA.isIE?this.fontStyle()+P+this.fontSize()+C+this.fontFamily():this.fontStyle()+P+this.fontVariant()+P+this.fontSize()+C+this.fontFamily()},e.prototype._addTextLine=function(t){this.align()===d&&(t=t.trim());var e=this._getTextWidth(t);return this.textArr.push({text:t,width:e})},e.prototype._getTextWidth=function(t){var e=this.letterSpacing(),n=t.length;return G().measureText(t).width+(n?e*(n-1):0)},e.prototype._setTextData=function(){var t=this.text().split("\n"),e=+this.fontSize(),n=0,r=this.lineHeight()*e,i=this.attrs.width,o=this.attrs.height,a=i!==l&&void 0!==i,s=o!==l&&void 0!==o,c=this.padding(),h=i-2*c,u=o-2*c,f=0,d=this.wrap(),p=d!==T,g=d!==k&&p,y=this.ellipsis()&&!p;this.textArr=[],G().font=this._getContextFont();for(var m=y?this._getTextWidth(F):0,_=0,b=t.length;_<b;++_){var w=t[_],x=this._getTextWidth(w);if(a&&x>h)while(w.length>0){var S=0,C=w.length,O="",A=0;while(S<C){var M=S+C>>>1,D=w.slice(0,M+1),E=this._getTextWidth(D)+m;E<=h?(S=M+1,O=D+(y?F:""),A=E):C=M}if(!O)break;
7if(g){var R,N=w[O.length],L=N===P||N===v;R=L&&A<=h?O.length:Math.max(O.lastIndexOf(P),O.lastIndexOf(v))+1,R>0&&(S=R,O=O.slice(0,S),A=this._getTextWidth(O))}if(O=O.trimRight(),this._addTextLine(O),n=Math.max(n,A),f+=r,!p||s&&f+r>u)break;if(w=w.slice(S),w=w.trimLeft(),w.length>0&&(x=this._getTextWidth(w),x<=h)){this._addTextLine(w),f+=r,n=Math.max(n,x);break}}else this._addTextLine(w),f+=r,n=Math.max(n,x);if(s&&f+r>u)break}this.textHeight=e,this.textWidth=n},e.prototype.getStrokeScaleEnabled=function(){return!0},e}(s.Shape);e.Text=L,L.prototype._fillFunc=E,L.prototype._strokeFunc=R,L.prototype.className=_,L.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight"],u._registerNode(L),a.Factory.overWriteSetter(L,"width",h.getNumberOrAutoValidator()),a.Factory.overWriteSetter(L,"height",h.getNumberOrAutoValidator()),a.Factory.addGetterSetter(L,"fontFamily","Arial"),a.Factory.addGetterSetter(L,"fontSize",12,h.getNumberValidator()),a.Factory.addGetterSetter(L,"fontStyle",S),a.Factory.addGetterSetter(L,"fontVariant",S),a.Factory.addGetterSetter(L,"padding",0,h.getNumberValidator()),a.Factory.addGetterSetter(L,"align",y),a.Factory.addGetterSetter(L,"verticalAlign",b),a.Factory.addGetterSetter(L,"lineHeight",1,h.getNumberValidator()),a.Factory.addGetterSetter(L,"wrap",A),a.Factory.addGetterSetter(L,"ellipsis",!1),a.Factory.addGetterSetter(L,"letterSpacing",0,h.getNumberValidator()),a.Factory.addGetterSetter(L,"text","",h.getStringValidator()),a.Factory.addGetterSetter(L,"textDecoration",""),o.Collection.mapMethods(L)},5692:function(t,e,n){var r=n("c430"),i=n("c6cd");(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.9.1",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},"56ef":function(t,e,n){var r=n("d066"),i=n("241c"),o=n("7418"),a=n("825a");t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(a(t)),n=o.f;return n?e.concat(n(t)):e}},"5a34":function(t,e,n){var r=n("44e7");t.exports=function(t){if(r(t))throw TypeError("The method doesn't accept regular expressions");return t}},"5c6c":function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"5d5a":function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n("9cb8"),o=n("f0b4"),a=n("fce6"),s=n("d777"),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype._sceneFunc=function(t){var e=this.cornerRadius(),n=this.width(),r=this.height();if(t.beginPath(),e){var i=0,o=0,a=0,s=0;"number"===typeof e?i=o=a=s=Math.min(e,n/2,r/2):(i=Math.min(e[0],n/2,r/2),o=Math.min(e[1],n/2,r/2),s=Math.min(e[2],n/2,r/2),a=Math.min(e[3],n/2,r/2)),t.moveTo(i,0),t.lineTo(n-o,0),t.arc(n-o,o,o,3*Math.PI/2,0,!1),t.lineTo(n,r-s),t.arc(n-s,r-s,s,0,Math.PI/2,!1),t.lineTo(a,r),t.arc(a,r-a,a,Math.PI/2,Math.PI,!1),t.lineTo(0,i),t.arc(i,i,i,Math.PI,3*Math.PI/2,!1)}else t.rect(0,0,n,r);t.closePath(),t.fillStrokeShape(this)},e}(a.Shape);e.Rect=c,c.prototype.className="Rect",s._registerNode(c),o.Factory.addGetterSetter(c,"cornerRadius",0),i.Collection.mapMethods(c)},"605d":function(t,e,n){var r=n("c6b6"),i=n("da84");t.exports="process"==r(i.process)},"60da":function(t,e,n){"use strict";var r=n("83ab"),i=n("d039"),o=n("df75"),a=n("7418"),s=n("d1e7"),c=n("7b0b"),h=n("44ad"),u=Object.assign,l=Object.defineProperty;t.exports=!u||i((function(){if(r&&1!==u({b:1},u(l({},"a",{enumerable:!0,get:function(){l(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach((function(t){e[t]=t})),7!=u({},t)[n]||o(u({},e)).join("")!=i}))?function(t,e){var n=c(t),i=arguments.length,u=1,l=a.f,f=s.f;while(i>u){var d,p=h(arguments[u++]),g=l?o(p).concat(l(p)):o(p),v=g.length,y=0;while(v>y)d=g[y++],r&&!f.call(p,d)||(n[d]=p[d])}return n}:u},"65f0":function(t,e,n){var r=n("861d"),i=n("e8b5"),o=n("b622"),a=o("species");t.exports=function(t,e){var n;return i(t)&&(n=t.constructor,"function"!=typeof n||n!==Array&&!i(n.prototype)?r(n)&&(n=n[a],null===n&&(n=void 0)):n=void 0),new(void 0===n?Array:n)(0===e?0:e)}},"69f3":function(t,e,n){var r,i,o,a=n("7f9a"),s=n("da84"),c=n("861d"),h=n("9112"),u=n("5135"),l=n("c6cd"),f=n("f772"),d=n("d012"),p=s.WeakMap,g=function(t){return o(t)?i(t):r(t,{})},v=function(t){return function(e){var n;if(!c(e)||(n=i(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}};if(a){var y=l.state||(l.state=new p),m=y.get,_=y.has,b=y.set;r=function(t,e){return e.facade=t,b.call(y,t,e),e},i=function(t){return m.call(y,t)||{}},o=function(t){return _.call(y,t)}}else{var w=f("state");d[w]=!0,r=function(t,e){return e.facade=t,h(t,w,e),e},i=function(t){return u(t,w)?t[w]:{}},o=function(t){return u(t,w)}}t.exports={set:r,get:i,has:o,enforce:g,getterFor:v}},"6b7e":function(t,e,n){"use strict";
7Object.defineProperty(e,"__esModule",{value:!0});var r=n("f0b4"),i=n("4971"),o=n("4546");e.Brighten=function(t){var e,n=255*this.brightness(),r=t.data,i=r.length;for(e=0;e<i;e+=4)r[e]+=n,r[e+1]+=n,r[e+2]+=n},r.Factory.addGetterSetter(i.Node,"brightness",0,o.getNumberValidator(),r.Factory.afterSetFilter)},"6eeb":function(t,e,n){var r=n("da84"),i=n("9112"),o=n("5135"),a=n("ce4e"),s=n("8925"),c=n("69f3"),h=c.get,u=c.enforce,l=String(String).split("String");(t.exports=function(t,e,n,s){var c,h=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof e||o(n,"name")||i(n,"name",e),c=u(n),c.source||(c.source=l.join("string"==typeof e?e:""))),t!==r?(h?!d&&t[e]&&(f=!0):delete t[e],f?t[e]=n:i(t,e,n)):f?t[e]=n:a(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&h(this).source||s(this)}))},7418:function(t,e){e.f=Object.getOwnPropertySymbols},"769d":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Sepia=function(t){var e,n,r,i,o=t.data,a=o.length;for(e=0;e<a;e+=4)n=o[e+0],r=o[e+1],i=o[e+2],o[e+0]=Math.min(255,.393*n+.769*r+.189*i),o[e+1]=Math.min(255,.349*n+.686*r+.168*i),o[e+2]=Math.min(255,.272*n+.534*r+.131*i)}},7839:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(t,e,n){var r=n("1d80");t.exports=function(t){return Object(r(t))}},"7c73":function(t,e,n){var r,i=n("825a"),o=n("37e8"),a=n("7839"),s=n("d012"),c=n("1be4"),h=n("cc12"),u=n("f772"),l=">",f="<",d="prototype",p="script",g=u("IE_PROTO"),v=function(){},y=function(t){return f+p+l+t+f+"/"+p+l},m=function(t){t.write(y("")),t.close();var e=t.parentWindow.Object;return t=null,e},_=function(){var t,e=h("iframe"),n="java"+p+":";return e.style.display="none",c.appendChild(e),e.src=String(n),t=e.contentWindow.document,t.open(),t.write(y("document.F=Object")),t.close(),t.F},b=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}b=r?m(r):_();var t=a.length;while(t--)delete b[d][a[t]];return b()};s[g]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(v[d]=i(t),n=new v,v[d]=null,n[g]=t):n=b(),void 0===e?n:o(n,e)}},"7cc1":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Solarize=function(t){var e=t.data,n=t.width,r=t.height,i=4*n,o=r;do{var a=(o-1)*i,s=n;do{var c=a+4*(s-1),h=e[c],u=e[c+1],l=e[c+2];h>127&&(h=255-h),u>127&&(u=255-u),l>127&&(l=255-l),e[c]=h,e[c+1]=u,e[c+2]=l}while(--s)}while(--o)}},"7d2a":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=new Map;function i(t){return r.get(t)}function o(t){return{evt:t,pointerId:t.pointerId}}function a(t,e){return r.get(t)===e}function s(t,e){c(t);var n=e.getStage();n&&(r.set(t,e),e._fire("gotpointercapture",o(new PointerEvent("gotpointercapture"))))}function c(t,e){var n=r.get(t);if(n){var i=n.getStage();i&&i.content&&i.content.releasePointerCapture(t),r.delete(t),n._fire("lostpointercapture",o(new PointerEvent("lostpointercapture")))}}e.getCapturedShape=i,e.createEvent=o,e.hasPointerCapture=a,e.setPointerCapture=s,e.releaseCapture=c},"7dd0":function(t,e,n){"use strict";var r=n("23e7"),i=n("9ed3"),o=n("e163"),a=n("d2bb"),s=n("d44e"),c=n("9112"),h=n("6eeb"),u=n("b622"),l=n("c430"),f=n("3f8c"),d=n("ae93"),p=d.IteratorPrototype,g=d.BUGGY_SAFARI_ITERATORS,v=u("iterator"),y="keys",m="values",_="entries",b=function(){return this};t.exports=function(t,e,n,u,d,w,x){i(n,e,u);var S,C,P,O=function(t){if(t===d&&M)return M;if(!g&&t in T)return T[t];switch(t){case y:return function(){return new n(this,t)};case m:return function(){return new n(this,t)};case _:return function(){return new n(this,t)}}return function(){return new n(this)}},A=e+" Iterator",k=!1,T=t.prototype,F=T[v]||T["@@iterator"]||d&&T[d],M=!g&&F||O(d),D="Array"==e&&T.entries||F;if(D&&(S=o(D.call(new t)),p!==Object.prototype&&S.next&&(l||o(S)===p||(a?a(S,p):"function"!=typeof S[v]&&c(S,v,b)),s(S,A,!0,!0),l&&(f[A]=b))),d==m&&F&&F.name!==m&&(k=!0,M=function(){return F.call(this)}),l&&!x||T[v]===M||c(T,v,M),f[e]=M,d)if(C={values:O(m),keys:w?M:O(y),entr
7ies:O(_)},x)for(P in C)(g||k||!(P in T))&&h(T,P,C[P]);else r({target:e,proto:!0,forced:g||k},C);return C}},"7f9a":function(t,e,n){var r=n("da84"),i=n("8925"),o=r.WeakMap;t.exports="function"===typeof o&&/native code/.test(i(o))},"825a":function(t,e,n){var r=n("861d");t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},"83ab":function(t,e,n){var r=n("d039");t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8418:function(t,e,n){"use strict";var r=n("c04e"),i=n("9bf2"),o=n("5c6c");t.exports=function(t,e,n){var a=r(e);a in t?i.f(t,a,o(0,n)):t[a]=n}},8603:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n("9cb8"),o=n("f0b4"),a=n("fce6"),s=n("d777"),c=n("4546"),h=n("d777"),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype._sceneFunc=function(t){var e=s.Konva.getAngle(this.angle()),n=this.clockwise();t.beginPath(),t.arc(0,0,this.outerRadius(),0,e,n),t.arc(0,0,this.innerRadius(),e,0,!n),t.closePath(),t.fillStrokeShape(this)},e.prototype.getWidth=function(){return 2*this.outerRadius()},e.prototype.getHeight=function(){return 2*this.outerRadius()},e.prototype.setWidth=function(t){this.outerRadius(t/2)},e.prototype.setHeight=function(t){this.outerRadius(t/2)},e}(a.Shape);e.Arc=u,u.prototype._centroid=!0,u.prototype.className="Arc",u.prototype._attrsAffectingSize=["innerRadius","outerRadius"],h._registerNode(u),o.Factory.addGetterSetter(u,"innerRadius",0,c.getNumberValidator()),o.Factory.addGetterSetter(u,"outerRadius",0,c.getNumberValidator()),o.Factory.addGetterSetter(u,"angle",0,c.getNumberValidator()),o.Factory.addGetterSetter(u,"clockwise",!1,c.getBooleanValidator()),i.Collection.mapMethods(u)},"861d":function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},8925:function(t,e,n){var r=n("c6cd"),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return i.call(t)}),t.exports=r.inspectSource},"89c1":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Invert=function(t){var e,n=t.data,r=n.length;for(e=0;e<r;e+=4)n[e]=255-n[e],n[e+1]=255-n[e+1],n[e+2]=255-n[e+2]}},"8c18":function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n("9cb8"),o=n("f0b4"),a=n("fce6"),s=n("d777"),c=function(t){function e(n){var r=t.call(this,n)||this;r.dataArray=[],r.pathLength=0,r.dataArray=e.parsePathData(r.data()),r.pathLength=0;for(var i=0;i<r.dataArray.length;++i)r.pathLength+=r.dataArray[i].pathLength;return r.on("dataChange.konva",(function(){this.dataArray=e.parsePathData(this.data()),this.pathLength=0;for(var t=0;t<this.dataArray.length;++t)this.pathLength+=this.dataArray[t].pathLength})),r}return r(e,t),e.prototype._sceneFunc=function(t){var e=this.dataArray;t.beginPath();for(var n=0;n<e.length;n++){var r=e[n].command,i=e[n].points;switch(r){case"L":t.lineTo(i[0],i[1]);break;case"M":t.moveTo(i[0],i[1]);break;case"C":t.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5]);break;case"Q":t.quadraticCurveTo(i[0],i[1],i[2],i[3]);break;case"A":var o=i[0],a=i[1],s=i[2],c=i[3],h=i[4],u=i[5],l=i[6],f=i[7],d=s>c?s:c,p=s>c?1:s/c,g=s>c?c/s:1;t.translate(o,a),t.rotate(l),t.scale(p,g),t.arc(0,0,d,h,h+u,1-f),t.scale(1/p,1/g),t.rotate(-l),t.translate(-o,-a);break;case"z":t.closePath();break}}t.fillStrokeShape(this)},e.prototype.getSelfRect=function(){var t=[];this.dataArray.forEach((function(e){t=t.concat(e.points)}));for(var e,n,r=t[0],i=t[0],o=t[1],a=t[1],s=0;s<t.length/2;s++)e=t[2*s],n=t[2*s+1],isNaN(e)||(r=Math.min(r,e),i=Math.max(i,e)),isNaN(n)||(o=Math.min(o,n),a=Math.max(a,n));return{x:Math.round(r),y:Math.round(o),width:Math.round(i-r),height:Math.round(a-o)}},e.prototype.getLength=function(){return this.pathLength},e.prototype.getPointAtLength=function(t){var n,r=0,i=this.dataArray.length;if(!i)return null;while(r<i&&t>this.dataArray[r].pathLength)t-=this.dataArray[r].pathLength,++r;if(r===i)return n=this.dataArray[r-1].points.slice(-2),{x:n[0],y:n[1]};if(t<.01)return n=this.dataArray[r].points.slice(0,2),{x:n[0],y:n[1]};var o=this.dataArray[r],a=o.points;switch(o.command){case"L":return e.getPointOnLine(t,o.start.x,o.start.y,a[0],a[1]);case"C":return e.getPointOnCubicBezier(t/o.pathLength,o.start.x,o.start.y,a[0],a[1],a[2],a[3],a[4],a[5]);case"Q":return e.getPointOnQuadraticBezier(t/o.pathLength,o.start.x,o.start.y,a[0],a[1],a[2],a[3]);
7case"A":var s=a[0],c=a[1],h=a[2],u=a[3],l=a[4],f=a[5],d=a[6];return l+=f*t/o.pathLength,e.getPointOnEllipticalArc(s,c,h,u,l,d)}return null},e.getLineLength=function(t,e,n,r){return Math.sqrt((n-t)*(n-t)+(r-e)*(r-e))},e.getPointOnLine=function(t,e,n,r,i,o,a){void 0===o&&(o=e),void 0===a&&(a=n);var s=(i-n)/(r-e+1e-8),c=Math.sqrt(t*t/(1+s*s));r<e&&(c*=-1);var h,u=s*c;if(r===e)h={x:o,y:a+u};else if((a-n)/(o-e+1e-8)===s)h={x:o+c,y:a+u};else{var l,f,d=this.getLineLength(e,n,r,i);if(d<1e-8)return;var p=(o-e)*(r-e)+(a-n)*(i-n);p/=d*d,l=e+p*(r-e),f=n+p*(i-n);var g=this.getLineLength(o,a,l,f),v=Math.sqrt(t*t-g*g);c=Math.sqrt(v*v/(1+s*s)),r<e&&(c*=-1),u=s*c,h={x:l+c,y:f+u}}return h},e.getPointOnCubicBezier=function(t,e,n,r,i,o,a,s,c){function h(t){return t*t*t}function u(t){return 3*t*t*(1-t)}function l(t){return 3*t*(1-t)*(1-t)}function f(t){return(1-t)*(1-t)*(1-t)}var d=s*h(t)+o*u(t)+r*l(t)+e*f(t),p=c*h(t)+a*u(t)+i*l(t)+n*f(t);return{x:d,y:p}},e.getPointOnQuadraticBezier=function(t,e,n,r,i,o,a){function s(t){return t*t}function c(t){return 2*t*(1-t)}function h(t){return(1-t)*(1-t)}var u=o*s(t)+r*c(t)+e*h(t),l=a*s(t)+i*c(t)+n*h(t);return{x:u,y:l}},e.getPointOnEllipticalArc=function(t,e,n,r,i,o){var a=Math.cos(o),s=Math.sin(o),c={x:n*Math.cos(i),y:r*Math.sin(i)};return{x:t+(c.x*a-c.y*s),y:e+(c.x*s+c.y*a)}},e.parsePathData=function(t){if(!t)return[];var e=t,n=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"];e=e.replace(new RegExp(" ","g"),",");for(var r=0;r<n.length;r++)e=e.replace(new RegExp(n[r],"g"),"|"+n[r]);var i,o=e.split("|"),a=[],s=[],c=0,h=0,u=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:e[-+]?\d+)?)/gi;for(r=1;r<o.length;r++){var l=o[r],f=l.charAt(0);l=l.slice(1),s.length=0;while(i=u.exec(l))s.push(i[0]);for(var d=[],p=0,g=s.length;p<g;p++){var v=parseFloat(s[p]);isNaN(v)?d.push(0):d.push(v)}while(d.length>0){if(isNaN(d[0]))break;var y,m,_,b,w,x,S,C,P,O,A=null,k=[],T=c,F=h;switch(f){case"l":c+=d.shift(),h+=d.shift(),A="L",k.push(c,h);break;case"L":c=d.shift(),h=d.shift(),k.push(c,h);break;case"m":var M=d.shift(),D=d.shift();if(c+=M,h+=D,A="M",a.length>2&&"z"===a[a.length-1].command)for(var G=a.length-2;G>=0;G--)if("M"===a[G].command){c=a[G].points[0]+M,h=a[G].points[1]+D;break}k.push(c,h),f="l";break;case"M":c=d.shift(),h=d.shift(),A="M",k.push(c,h),f="L";break;case"h":c+=d.shift(),A="L",k.push(c,h);break;case"H":c=d.shift(),A="L",k.push(c,h);break;case"v":h+=d.shift(),A="L",k.push(c,h);break;case"V":h=d.shift(),A="L",k.push(c,h);break;case"C":k.push(d.shift(),d.shift(),d.shift(),d.shift()),c=d.shift(),h=d.shift(),k.push(c,h);break;case"c":k.push(c+d.shift(),h+d.shift(),c+d.shift(),h+d.shift()),c+=d.shift(),h+=d.shift(),A="C",k.push(c,h);break;case"S":m=c,_=h,y=a[a.length-1],"C"===y.command&&(m=c+(c-y.points[2]),_=h+(h-y.points[3])),k.push(m,_,d.shift(),d.shift()),c=d.shift(),h=d.shift(),A="C",k.push(c,h);break;case"s":m=c,_=h,y=a[a.length-1],"C"===y.command&&(m=c+(c-y.points[2]),_=h+(h-y.points[3])),k.push(m,_,c+d.shift(),h+d.shift()),c+=d.shift(),h+=d.shift(),A="C",k.push(c,h);break;case"Q":k.push(d.shift(),d.shift()),c=d.shift(),h=d.shift(),k.push(c,h);break;case"q":k.push(c+d.shift(),h+d.shift()),c+=d.shift(),h+=d.shift(),A="Q",k.push(c,h);break;case"T":m=c,_=h,y=a[a.length-1],"Q"===y.command&&(m=c+(c-y.points[0]),_=h+(h-y.points[1])),c=d.shift(),h=d.shift(),A="Q",k.push(m,_,c,h);break;case"t":m=c,_=h,y=a[a.length-1],"Q"===y.command&&(m=c+(c-y.points[0]),_=h+(h-y.points[1])),c+=d.shift(),h+=d.shift(),A="Q",k.push(m,_,c,h);break;case"A":b=d.shift(),w=d.shift(),x=d.shift(),S=d.shift(),C=d.shift(),P=c,O=h,c=d.shift(),h=d.shift(),A="A",k=this.convertEndpointToCenterParameterization(P,O,c,h,S,C,b,w,x);break;case"a":b=d.shift(),w=d.shift(),x=d.shift(),S=d.shift(),C=d.shift(),P=c,O=h,c+=d.shift(),h+=d.shift(),A="A",k=this.convertEndpointToCenterParameterization(P,O,c,h,S,C,b,w,x);break}a.push({command:A||f,points:k,start:{x:T,y:F},pathLength:this.calcLength(T,F,A||f,k)})}"z"!==f&&"Z"!==f||a.push({command:"z",points:[],start:void 0,pathLength:0})}return a},e.calcLength=function(t,n,r,i){var o,a,s,c,h=e;switch(r){case"L":return h.getLineLength(t,n,i[0],i[1]);case"C":for(o=0,a=h.getPointOnCubicBezier(0,t,n,i[0],i[1],i[2],i[3],i[4],i[5]),c=.01;c<=1;c+=.01)s=h.getPointOnCubicBezier(c,t,n,i[0],i[1],i[2],i[3],i[4],i[5]),o+=h.getLineLength(a.x,a.y,s.x,s.y),a=s;return o;case"Q":for(o=0,a=h.getPointOnQuadraticBezier(0,t,n,i[0],i[1],i[2],i[3]),c=.01;c<=1;c+=.01)s=h.getPointOnQuadraticBezier(c,t,n,i[0],i[1],i[2],i[3]),o+=h.getLineLength(a.x,a.y,s.x,s.y),a=s;return o;case"A":o=0;var u=i[4],l=i[5],f=i[4]+l,d=Math.PI/180;
7if(Math.abs(u-f)<d&&(d=Math.abs(u-f)),a=h.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],u,0),l<0)for(c=u-d;c>f;c-=d)s=h.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],c,0),o+=h.getLineLength(a.x,a.y,s.x,s.y),a=s;else for(c=u+d;c<f;c+=d)s=h.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],c,0),o+=h.getLineLength(a.x,a.y,s.x,s.y),a=s;return s=h.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],f,0),o+=h.getLineLength(a.x,a.y,s.x,s.y),o}return 0},e.convertEndpointToCenterParameterization=function(t,e,n,r,i,o,a,s,c){var h=c*(Math.PI/180),u=Math.cos(h)*(t-n)/2+Math.sin(h)*(e-r)/2,l=-1*Math.sin(h)*(t-n)/2+Math.cos(h)*(e-r)/2,f=u*u/(a*a)+l*l/(s*s);f>1&&(a*=Math.sqrt(f),s*=Math.sqrt(f));var d=Math.sqrt((a*a*(s*s)-a*a*(l*l)-s*s*(u*u))/(a*a*(l*l)+s*s*(u*u)));i===o&&(d*=-1),isNaN(d)&&(d=0);var p=d*a*l/s,g=d*-s*u/a,v=(t+n)/2+Math.cos(h)*p-Math.sin(h)*g,y=(e+r)/2+Math.sin(h)*p+Math.cos(h)*g,m=function(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])},_=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(m(t)*m(e))},b=function(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(_(t,e))},w=b([1,0],[(u-p)/a,(l-g)/s]),x=[(u-p)/a,(l-g)/s],S=[(-1*u-p)/a,(-1*l-g)/s],C=b(x,S);return _(x,S)<=-1&&(C=Math.PI),_(x,S)>=1&&(C=0),0===o&&C>0&&(C-=2*Math.PI),1===o&&C<0&&(C+=2*Math.PI),[v,y,a,s,w,C,h,o]},e}(a.Shape);e.Path=c,c.prototype.className="Path",c.prototype._attrsAffectingSize=["data"],s._registerNode(c),o.Factory.addGetterSetter(c,"data"),i.Collection.mapMethods(c)},"8e84":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("f0b4"),i=n("4971"),o=n("4546");e.RGB=function(t){var e,n,r=t.data,i=r.length,o=this.red(),a=this.green(),s=this.blue();for(e=0;e<i;e+=4)n=(.34*r[e]+.5*r[e+1]+.16*r[e+2])/255,r[e]=n*o,r[e+1]=n*a,r[e+2]=n*s,r[e+3]=r[e+3]},r.Factory.addGetterSetter(i.Node,"red",0,(function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)})),r.Factory.addGetterSetter(i.Node,"green",0,(function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)})),r.Factory.addGetterSetter(i.Node,"blue",0,o.RGBComponent,r.Factory.afterSetFilter)},"90e3":function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+r).toString(36)}},9112:function(t,e,n){var r=n("83ab"),i=n("9bf2"),o=n("5c6c");t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},"926b":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("f0b4"),i=n("4971"),o=n("4546");r.Factory.addGetterSetter(i.Node,"hue",0,o.getNumberValidator(),r.Factory.afterSetFilter),r.Factory.addGetterSetter(i.Node,"saturation",0,o.getNumberValidator(),r.Factory.afterSetFilter),r.Factory.addGetterSetter(i.Node,"luminance",0,o.getNumberValidator(),r.Factory.afterSetFilter),e.HSL=function(t){var e,n,r,i,o,a=t.data,s=a.length,c=1,h=Math.pow(2,this.saturation()),u=Math.abs(this.hue()+360)%360,l=127*this.luminance(),f=c*h*Math.cos(u*Math.PI/180),d=c*h*Math.sin(u*Math.PI/180),p=.299*c+.701*f+.167*d,g=.587*c-.587*f+.33*d,v=.114*c-.114*f-.497*d,y=.299*c-.299*f-.328*d,m=.587*c+.413*f+.035*d,_=.114*c-.114*f+.293*d,b=.299*c-.3*f+1.25*d,w=.587*c-.586*f-1.05*d,x=.114*c+.886*f-.2*d;for(e=0;e<s;e+=4)n=a[e+0],r=a[e+1],i=a[e+2],o=a[e+3],a[e+0]=p*n+g*r+v*i+l,a[e+1]=y*n+m*r+_*i+l,a[e+2]=b*n+w*r+x*i+l,a[e+3]=o}},9470:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("f0b4"),i=n("4971"),o=n("4546");function a(t,e,n){var r=4*(n*t.width+e),i=[];return i.push(t.data[r++],t.data[r++],t.data[r++],t.data[r++]),i}function s(t,e){return Math.sqrt(Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2))}function c(t){for(var e=[0,0,0],n=0;n<t.length;n++)e[0]+=t[n][0],e[1]+=t[n][1],e[2]+=t[n][2];return e[0]/=t.length,e[1]/=t.length,e[2]/=t.length,e}function h(t,e){var n=a(t,0,0),r=a(t,t.width-1,0),i=a(t,0,t.height-1),o=a(t,t.width-1,t.height-1),h=e||10;if(s(n,r)<h&&s(r,o)<h&&s(o,i)<h&&s(i,n)<h){for(var u=c([r,n,o,i]),l=[],f=0;f<t.width*t.height;f++){var d=s(u,[t.data[4*f],t.data[4*f+1],t.data[4*f+2]]);l[f]=d<h?0:255}return l}}function u(t,e){for(var n=0;n<t.width*t.height;n++)t.data[4*n+3]=e[n]}function l(t,e,n){for(var r=[1,1,1,1,0,1,1,1,1],i=Math.round(Math.sqrt(r.length)),o=Math.floor(i/2),a=[],s=0;s<n;s++)for(var c=0;c<e;c++){for(var h=s*e+c,u=0,l=0;l<i;l++)for(var f=0;f<i;f++){var d=s+l-o,p=c+f-o;if(d>=0&&d<n&&p>=0&&p<e){var g=d*e+p,v=r[l*i+f];u+=t[g]*v}}a[h]=2040===u?255:0}return a}function f(t,e,n){for(var r=[1,1,1,1,1,1,1,1,1],i=Math.round(Math.sqrt(r.length)),o=Math.floor(i/2),a=[],s=0;s<n;s++)for(var c=0;c<e;c++){for(var h=s*e+c,u=0,l=0;l<i;l++)for(var f=0;f<i;f++){var d=s+l-o,p=c+f-o;if(d>=0&&d<n&&p>=0&&p<e){var g=d*e+p,v=r[l*i+f];u+=t[g]*v}}a[h]=u>=1020?255:0}return a}function d(t,e,n){for(var r=[1/9,1/9,1/9,1/9,1/9,1/9,1/9,1/9,1/9],i=Math.round(Math.sqrt(r.length)),o=Math.floor(i/2),a=[],s=0;s<n;s++)for(var c=0;c<e;c++){for(var h=s*e+c,u=0,l=0;l<i;l++)for(var f=0;f<i;f++){var d=s+l-o,p=c+f-o;if(d>=0&&d<n&&p>=0&&p<e){var g=d*e+p,v=r[l*i+f];u+=t[g]*v}}a[h]=u}return a}e.Mask=function(t){var e=this.threshold(),n=h(t,e);return n&&(n=l(n,t.width,t.height),n=f(n,t.width,t.height),n=d(n,t.width,t.height),u(t,n)),t},r.Factory.addGetterSetter(i.Node,"threshold",0,o.getNumberValidator(),r.Factory.afterSetFilter)},"94ca":function(t,e,n){var r=n("d039"),i=/#|\.prototype\./,o=function(t,e){var n=s[a(t)];return n==h||n!=c&&("function"==typeof e?r(e):!!e)},a=o.normalize=function(t){return String(t).replace(i,".").toLowerCase()},s=o.data={},c=o.NATIVE="N",h=o.POLYFILL="P";t.exports=o},"96ee":function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();
7Object.defineProperty(e,"__esModule",{value:!0});var i=n("9cb8"),o=n("f0b4"),a=n("fce6"),s=n("d777"),c=n("4546"),h=n("d777"),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype._sceneFunc=function(t){t.beginPath(),t.arc(0,0,this.radius(),0,s.Konva.getAngle(this.angle()),this.clockwise()),t.lineTo(0,0),t.closePath(),t.fillStrokeShape(this)},e.prototype.getWidth=function(){return 2*this.radius()},e.prototype.getHeight=function(){return 2*this.radius()},e.prototype.setWidth=function(t){this.radius(t/2)},e.prototype.setHeight=function(t){this.radius(t/2)},e}(a.Shape);e.Wedge=u,u.prototype.className="Wedge",u.prototype._centroid=!0,u.prototype._attrsAffectingSize=["radius"],h._registerNode(u),o.Factory.addGetterSetter(u,"radius",0,c.getNumberValidator()),o.Factory.addGetterSetter(u,"angle",0,c.getNumberValidator()),o.Factory.addGetterSetter(u,"clockwise",!1),o.Factory.backCompat(u,{angleDeg:"angle",getAngleDeg:"getAngle",setAngleDeg:"setAngle"}),i.Collection.mapMethods(u)},"99af":function(t,e,n){"use strict";var r=n("23e7"),i=n("d039"),o=n("e8b5"),a=n("861d"),s=n("7b0b"),c=n("50c4"),h=n("8418"),u=n("65f0"),l=n("1dde"),f=n("b622"),d=n("2d00"),p=f("isConcatSpreadable"),g=9007199254740991,v="Maximum allowed index exceeded",y=d>=51||!i((function(){var t=[];return t[p]=!1,t.concat()[0]!==t})),m=l("concat"),_=function(t){if(!a(t))return!1;var e=t[p];return void 0!==e?!!e:o(t)},b=!y||!m;r({target:"Array",proto:!0,forced:b},{concat:function(t){var e,n,r,i,o,a=s(this),l=u(a,0),f=0;for(e=-1,r=arguments.length;e<r;e++)if(o=-1===e?a:arguments[e],_(o)){if(i=c(o.length),f+i>g)throw TypeError(v);for(n=0;n<i;n++,f++)n in o&&h(l,f,o[n])}else{if(f>=g)throw TypeError(v);h(l,f++,o)}return l.length=f,l}})},"9bf2":function(t,e,n){var r=n("83ab"),i=n("0cfb"),o=n("825a"),a=n("c04e"),s=Object.defineProperty;e.f=r?s:function(t,e,n){if(o(t),e=a(e,!0),o(n),i)try{return s(t,e,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},"9cb8":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("d777"),i=function(){function t(){}return t.toCollection=function(e){var n,r=new t,i=e.length;for(n=0;n<i;n++)r.push(e[n]);return r},t._mapMethod=function(e){t.prototype[e]=function(){var t,n=this.length,r=[].slice.call(arguments);for(t=0;t<n;t++)this[t][e].apply(this[t],r);return this}},t.mapMethods=function(e){var n=e.prototype;for(var r in n)t._mapMethod(r)},t}();e.Collection=i,i.prototype=[],i.prototype.each=function(t){for(var e=0;e<this.length;e++)t(this[e],e)},i.prototype.toArray=function(){var t,e=[],n=this.length;for(t=0;t<n;t++)e.push(this[t]);return e};var o=function(){function t(t){void 0===t&&(t=[1,0,0,1,0,0]),this.m=t&&t.slice()||[1,0,0,1,0,0]}return t.prototype.copy=function(){return new t(this.m)},t.prototype.point=function(t){var e=this.m;return{x:e[0]*t.x+e[2]*t.y+e[4],y:e[1]*t.x+e[3]*t.y+e[5]}},t.prototype.translate=function(t,e){return this.m[4]+=this.m[0]*t+this.m[2]*e,this.m[5]+=this.m[1]*t+this.m[3]*e,this},t.prototype.scale=function(t,e){return this.m[0]*=t,this.m[1]*=t,this.m[2]*=e,this.m[3]*=e,this},t.prototype.rotate=function(t){var e=Math.cos(t),n=Math.sin(t),r=this.m[0]*e+this.m[2]*n,i=this.m[1]*e+this.m[3]*n,o=this.m[0]*-n+this.m[2]*e,a=this.m[1]*-n+this.m[3]*e;return this.m[0]=r,this.m[1]=i,this.m[2]=o,this.m[3]=a,this},t.prototype.getTranslation=function(){return{x:this.m[4],y:this.m[5]}},t.prototype.skew=function(t,e){var n=this.m[0]+this.m[2]*e,r=this.m[1]+this.m[3]*e,i=this.m[2]+this.m[0]*t,o=this.m[3]+this.m[1]*t;return this.m[0]=n,this.m[1]=r,this.m[2]=i,this.m[3]=o,this},t.prototype.multiply=function(t){var e=this.m[0]*t.m[0]+this.m[2]*t.m[1],n=this.m[1]*t.m[0]+this.m[3]*t.m[1],r=this.m[0]*t.m[2]+this.m[2]*t.m[3],i=this.m[1]*t.m[2]+this.m[3]*t.m[3],o=this.m[0]*t.m[4]+this.m[2]*t.m[5]+this.m[4],a=this.m[1]*t.m[4]+this.m[3]*t.m[5]+this.m[5];return this.m[0]=e,this.m[1]=n,this.m[2]=r,this.m[3]=i,this.m[4]=o,this.m[5]=a,this},t.prototype.invert=function(){var t=1/(this.m[0]*this.m[3]-this.m[1]*this.m[2]),e=this.m[3]*t,n=-this.m[1]*t,r=-this.m[2]*t,i=this.m[0]*t,o=t*(this.m[2]*this.m[5]-this.m[3]*this.m[4]),a=t*(this.m[1]*this.m[4]-this.m[0]*this.m[5]);return this.m[0]=e,this.m[1]=n,this.m[2]=r,this.m[3]=i,this.m[4]=o,this.m[5]=a,this},t.prototype.getMatrix=function(){return this.m},t.prototype.setAbsolutePosition=function(t,e){var n=this.m[0],r=this.m[1],i=this.m[2],o=this.m[3],a=this.m[4],s=this.m[5],c=(n*(e-s)-r*(t-a))/(n*o-r*i),h=(t-a-i*c)/n;return this.translate(h,c)},t}();e.Transform=o;var a="[object Array]",s="[object Number]",c="[object String]",h="[object Boolean]",u=Math.PI/180,l=180/Math.PI,f="#",d="",p="0",g="Konva warning: ",v="Konva error: ",y="rgb(",m={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,132,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,255,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],ol
7ive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,203],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[119,128,144],slategrey:[119,128,144],snow:[255,255,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],transparent:[255,255,255,0],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,5]},_=/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/,b=[];e.Util={_isElement:function(t){return!(!t||1!=t.nodeType)},_isFunction:function(t){return!!(t&&t.constructor&&t.call&&t.apply)},_isPlainObject:function(t){return!!t&&t.constructor===Object},_isArray:function(t){return Object.prototype.toString.call(t)===a},_isNumber:function(t){return Object.prototype.toString.call(t)===s&&!isNaN(t)&&isFinite(t)},_isString:function(t){return Object.prototype.toString.call(t)===c},_isBoolean:function(t){return Object.prototype.toString.call(t)===h},isObject:function(t){return t instanceof Object},isValidSelector:function(t){if("string"!==typeof t)return!1;var e=t[0];return"#"===e||"."===e||e===e.toUpperCase()},_sign:function(t){return 0===t?0:t>0?1:-1},requestAnimFrame:function(t){b.push(t),1===b.length&&requestAnimationFrame((function(){var t=b;b=[],t.forEach((function(t){t()}))}))},createCanvasElement:function(){var t=document.createElement("canvas");try{t.style=t.style||{}}catch(e){}return t},createImageElement:function(){return document.createElement("img")},_isInDocument:function(t){while(t=t.parentNode)if(t==document)return!0;return!1},_simplifyArray:function(t){var n,r,i=[],o=t.length,a=e.Util;for(n=0;n<o;n++)r=t[n],a._isNumber(r)?r=Math.round(1e3*r)/1e3:a._isString(r)||(r=r.toString()),i.push(r);return i},_urlToImage:function(t,e){var n=new r.glob.Image;n.onload=function(){e(n)},n.src=t},_rgbToHex:function(t,e,n){return((1<<24)+(t<<16)+(e<<8)+n).toString(16).slice(1)},_hexToRgb:function(t){t=t.replace(f,d);var e=parseInt(t,16);return{r:e>>16&255,g:e>>8&255,b:255&e}},getRandomColor:function(){var t=(16777215*Math.random()<<0).toString(16);while(t.length<6)t=p+t;return f+t},get:function(t,e){return void 0===t?e:t},getRGB:function(t){var e;return t in m?(e=m[t],{r:e[0],g:e[1],b:e[2]}):t[0]===f?this._hexToRgb(t.substring(1)):t.substr(0,4)===y?(e=_.exec(t.replace(/ /g,"")),{r:parseInt(e[1],10),g:parseInt(e[2],10),b:parseInt(e[3],10)}):{r:0,g:0,b:0}},colorToRGBA:function(t){return t=t||"black",e.Util._namedColorToRBA(t)||e.Util._hex3ColorToRGBA(t)||e.Util._hex6ColorToRGBA(t)||e.Util._rgbColorToRGBA(t)||e.Util._rgbaColorToRGBA(t)},_namedColorToRBA:function(t){var e=m[t.toLowerCase()];return e?{r:e[0],g:e[1],b:e[2],a:1}:null},_rgbColorToRGBA:function(t){if(0===t.indexOf("rgb(")){t=t.match(/rgb\(([^)]+)\)/)[1];var e=t.split(/ *, */).map(Number);return{r:e[0],g:e[1],b:e[2],a:1}}},_rgbaColorToRGBA:function(t){if(0===t.indexOf("rgba(")){t=t.match(/rgba\(([^)]+)\)/)[1];var e=t.split(/ *, */).map(Number);return{r:e[0],g:e[1],b:e[2],a:e[3]}}},_hex6ColorToRGBA:function(t){if("#"===t[0]&&7===t.length)return{r:parseInt(t.slice(1,3),16),g:parseInt(t.slice(3,5),16),b:parseInt(t.slice(5,7),16),a:1}},_hex3ColorToRGBA:function(t){if("#"===t[0]&&4===t.length)return{r:parseInt(t[1]+t[1],16),g:parseInt(t[2]+t[2],16),b:parseInt(t[3]+t[3],16),a:1}},haveIntersection:function(t,e){return!(e.x>t.x+t.width||e.x+e.width<t.x||e.y>t.y+t.height||e.y+e.height<t.y)},cloneObject:function(t){var e={};for(var n in t)this._isPlainObject(t[n])?e[n]=this.cloneObject(t[n]):this._isArray(t[n])?e[n]=this.cloneArray(t[n]):e[n]=t[n];return e},cloneArray:function(t){return t.slice(0)},_degToRad:function(t){return t*u},_radToDeg:function(t){return t*l},_capitalize:function(t){return t.charAt(0).toUpperCase()+t.slice(1)},throw:function(t){throw new Error(v+t)},error:function(t){console.error(v+t)},warn:function(t){r.Konva.showWarnings&&console.warn(g+t)},extend:function(t,e){function n(){this.constructor=t}n.prototype=e.prototype;var r=t.prototype;for(var i in t.prototype=new n,r)r.hasOwnProperty(i)&&(t.prototype[i]=r[i]);t.__super__=e.prototype,t.super=e},_getControlPoints:function(t,e,n,r,i,o,a){var s=Math.sqrt(Math.pow(n-t,2)+Math.pow(r-e,2)),c=Math.sqrt(Math.pow(i-n,2)+Math.pow(o-r,2)),h=a*s/(s+c),u=a*c/(s+c),l=n-h*(i-t),f=r-h*(o-e),d=n+u*(i-t),p=r+u*(o-e);return[l,f,d,p]},_expandPoints:function(t,n){var r,i,o=t.length,a=[];for(r=2;r<o-2;r+=2)i=e.Util._getControlPoints(t[r-2],t[r-1],t[r],t[r+1],t[r+2],t[r+3],n),a.push(i[0]),a.push(i[1]),a.push(t[r]),a.push(t[r+1]),a.push(i[2]),a.push(i[3]);return a},each:function(t,e){for(var n in t)e(n,t[n])},_inRange:function(t,e,n){return e<=t&&t<n},_getProjectionToSegment:function(t,e,n,r,i,o){var a,s,c,h=(t-n)*(t-n)+(e-r)*(e-r);if(0==h)a=t,s=e,c=(i-n)*(i-n)+(o-r)*(o-r);else{var u=((i-t)*(n-t)+(o-e)*(r-e))/h;u<0?(a=t,s=e,c=(t-i)*(t-i)+(e-o)*(e-o)):u>
71?(a=n,s=r,c=(n-i)*(n-i)+(r-o)*(r-o)):(a=t+u*(n-t),s=e+u*(r-e),c=(a-i)*(a-i)+(s-o)*(s-o))}return[a,s,c]},_getProjectionToLine:function(t,n,r){var i=e.Util.cloneObject(t),o=Number.MAX_VALUE;return n.forEach((function(a,s){if(r||s!==n.length-1){var c=n[(s+1)%n.length],h=e.Util._getProjectionToSegment(a.x,a.y,c.x,c.y,t.x,t.y),u=h[0],l=h[1],f=h[2];f<o&&(i.x=u,i.y=l,o=f)}})),i},_prepareArrayForTween:function(t,n,r){var i,o=[],a=[];if(t.length>n.length){var s=n;n=t,t=s}for(i=0;i<t.length;i+=2)o.push({x:t[i],y:t[i+1]});for(i=0;i<n.length;i+=2)a.push({x:n[i],y:n[i+1]});var c=[];return a.forEach((function(t){var n=e.Util._getProjectionToLine(t,o,r);c.push(n.x),c.push(n.y)})),c},_prepareToStringify:function(t){var n;for(var r in t.visitedByCircularReferenceRemoval=!0,t)if(t.hasOwnProperty(r)&&t[r]&&"object"==typeof t[r])if(n=Object.getOwnPropertyDescriptor(t,r),t[r].visitedByCircularReferenceRemoval||e.Util._isElement(t[r])){if(!n.configurable)return null;delete t[r]}else if(null===e.Util._prepareToStringify(t[r])){if(!n.configurable)return null;delete t[r]}return delete t.visitedByCircularReferenceRemoval,t},_assign:function(t,e){for(var n in e)t[n]=e[n];return t}}},"9ed3":function(t,e,n){"use strict";var r=n("ae93").IteratorPrototype,i=n("7c73"),o=n("5c6c"),a=n("d44e"),s=n("3f8c"),c=function(){return this};t.exports=function(t,e,n){var h=e+" Iterator";return t.prototype=i(r,{next:o(1,n)}),a(t,h,!1,!0),s[h]=c,t}},a34e:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n("9cb8"),o=n("f0b4"),a=n("fce6"),s=n("ed3d"),c=n("4546"),h=n("d777"),u=function(t){function e(e){var n=t.call(this,e)||this;return n._updated=!0,n.anim=new s.Animation((function(){var t=n._updated;return n._updated=!1,t})),n.on("animationChange.konva",(function(){this.frameIndex(0)})),n.on("frameIndexChange.konva",(function(){this._updated=!0})),n.on("frameRateChange.konva",(function(){this.anim.isRunning()&&(clearInterval(this.interval),this._setInterval())})),n}return r(e,t),e.prototype._sceneFunc=function(t){var e=this.animation(),n=this.frameIndex(),r=4*n,i=this.animations()[e],o=this.frameOffsets(),a=i[r+0],s=i[r+1],c=i[r+2],h=i[r+3],u=this.image();if((this.hasFill()||this.hasStroke())&&(t.beginPath(),t.rect(0,0,c,h),t.closePath(),t.fillStrokeShape(this)),u)if(o){var l=o[e],f=2*n;t.drawImage(u,a,s,c,h,l[f+0],l[f+1],c,h)}else t.drawImage(u,a,s,c,h,0,0,c,h)},e.prototype._hitFunc=function(t){var e=this.animation(),n=this.frameIndex(),r=4*n,i=this.animations()[e],o=this.frameOffsets(),a=i[r+2],s=i[r+3];if(t.beginPath(),o){var c=o[e],h=2*n;t.rect(c[h+0],c[h+1],a,s)}else t.rect(0,0,a,s);t.closePath(),t.fillShape(this)},e.prototype._useBufferCanvas=function(){return(this.hasShadow()||1!==this.getAbsoluteOpacity())&&this.hasStroke()},e.prototype._setInterval=function(){var t=this;this.interval=setInterval((function(){t._updateIndex()}),1e3/this.frameRate())},e.prototype.start=function(){if(!this.isRunning()){var t=this.getLayer();this.anim.setLayers(t),this._setInterval(),this.anim.start()}},e.prototype.stop=function(){this.anim.stop(),clearInterval(this.interval)},e.prototype.isRunning=function(){return this.anim.isRunning()},e.prototype._updateIndex=function(){var t=this.frameIndex(),e=this.animation(),n=this.animations(),r=n[e],i=r.length/4;t<i-1?this.frameIndex(t+1):this.frameIndex(0)},e}(a.Shape);e.Sprite=u,u.prototype.className="Sprite",h._registerNode(u),o.Factory.addGetterSetter(u,"animation"),o.Factory.addGetterSetter(u,"animations"),o.Factory.addGetterSetter(u,"frameOffsets"),o.Factory.addGetterSetter(u,"image"),o.Factory.addGetterSetter(u,"frameIndex",0,c.getNumberValidator()),o.Factory.addGetterSetter(u,"frameRate",17,c.getNumberValidator()),o.Factory.backCompat(u,{index:"frameIndex",getIndex:"getFrameIndex",setIndex:"setFrameIndex"}),i.Collection.mapMethods(u)},a4b4:function(t,e,n){var r=n("342f");t.exports=/web0s(?!.*chrome)/i.test(r)},a691:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},a79d:function(t,e,n){"use strict";var r=n("23e7"),i=n("c430"),o=n("fea9"),a=n("d039"),s=n("d066"),c=n("4840"),h=n("cdf9"),u=n("6eeb"),l=!!o&&a((function(){o.prototype["finally"].call({then:function(){}},(function(){}))}));r({target:"Promise",proto:!0,real:!0,forced:l},{finally:function(t){var e=c(this,s("Promise")),n="function"==typeof t;return this.then(n?function(n){return h(e,t()).then((function(){return n}))}:t,n?function(n){return h(e,t()).then((function(){throw n}))}:t)}}),i||"function"!=typeof o||o.prototype["finally"]||u(o.prototype,"finally",s("Promise").prototype["finally"])},a8b4:function(t,e,n){"use strict";n("362d");function r(t){return i(t)||o(t)||a()}function i(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}function o(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function a(){throw new TypeError("Invalid attempt to spread non-iterable instance")}var s={props:{list:{type:Array,default:function(){return[{text:"Apple",color:"#FF6666"},{text:"Watermelon",color:"#66FF8C"},{text:"Banana",color:"#FFD966"},{text:"Grape",color:"#B366FF"},{text:"Peach",color:"#FF66D9"}]}},trigger:{type:Date,default:null},currentIndex:{type:Number,default:-1},width:{type:Number,default:500},height:{type:Number,default:200},responsive:{type:Boolean,default:!1}},data:function(){return{items:[],stageConfig:{height:null,width:null,centerY:0},itemConfig:{x:0,y:0,fontSize:0,spacing:0,width:0,height:0,startY:0,align:"center",wrap:"none",ellipsis:!0},animation:null,stopping:!1,currentItem:null,acc:100,stage:null,layer:null}},methods:{initSetting:function(){this.stageConfig.height=this.height,this.stageConfig.width=this.width,this.stageConfig.centerY=this.stageConfig.height/2},refreshTextSetting:function(){this.itemConfig.width=this.stageConfig.width,this.itemConfig.fontSize=Math.ceil(this.stageConfig.height/2.5),this.itemConfig.height=Math.ceil(1.2*this.itemConfig.fontSize),this.itemConfig.startY=1.3*-this.itemConfig.height},initCanvas:function(){this.stage=new Konva.Stage({container:this.$refs["stage-container"],width:this.stageConfig.width,height:this.stageConfig.height}),this.layer=new Konva.Layer,this.stage.add(this.layer),this.responsive&&(this.$refs["stage-container"].children[0].style.width="100%",this.$refs["stage-container"].children[0].style.height="auto",this.$refs["stage-container"].children[0].style["padding-bottom"]="".concat(this.stageConfig.height/this.stageConfig.width*100,"%"),this.$refs["stage-container"].children[0].children[0].style.width="100%",this.$refs["stage-container"].children[0].children[0].style.height="100%")},drawBorder:function(){this.layer.add(new Konva.Line({x:0,y:0,points:[0,this.stageConfig.centerY+this.itemConfig.height/2,this.stageConfig.width,this.stageConfig.centerY+this.itemConfig.height/2],stroke:"black",dash:[1],opacity:.5})),this.layer.add(new Konva.Line({x:0,y:0,points:[0,this.stageConfig.centerY-this.itemConfig.height/2,this.stageConfig.width,this.stageConfig.centerY-this.itemConfig.height/2],stroke:"black",dash:[1],opacity:.5})),this.layer.add(new Konva.Rect({x:0,y:0,width:this.stageConfig.width,height:this.stageConfig.height,stroke:"black",strokeWidth:5})),this.stage.draw()},drawItems:function(){var t=this;
7this.items.forEach((function(t){t.remove()})),this.items=[];var e=this.list.length>3?r(this.list):[].concat(r(this.list),r(this.list));e.forEach((function(e,n){var r=new Konva.Text(Object.assign(t.itemConfig,{text:e.text,fill:e.color||"#000",y:n*t.itemConfig.height+t.itemConfig.startY,data:e}));t.layer.add(r),t.items.push(r)})),this.stage.draw()},drawAll:function(){this.layer.children.forEach((function(t){return t.remove()})),this.drawItems(),this.drawBorder()},start:function(){this.acc=100,this.stopping=!1,this.currentItem=-1===this.currentIndex?this.items[this.random(0,this.items.length-1)]:this.items[this.currentIndex],this.animation.start()},complete:function(){this.$emit("onComplete",this.currentItem.attrs.data)},moveItems:function(t){var e=this;this.items.forEach((function(n){var r=(t+n.y()-e.itemConfig.startY)%(e.items.length*e.itemConfig.height)+e.itemConfig.startY;n.setY(r)}))},tweenMoveItems:function(t){this.items.forEach((function(e){var n=new Konva.Tween({node:e,duration:.1,y:e.y()+t});n.play()}))},createAnimation:function(){var t=this;this.animation=new Konva.Animation((function(){t.moveItems(t.acc),!t.stopping&&t.acc>25?t.acc=Math.max(t.acc-Math.random(),25):t.stopping=!0,t.stopping&&t.currentItem.y()>0&&t.currentItem.y()<t.stageConfig.centerY?(t.tweenMoveItems(t.stageConfig.centerY-(t.currentItem.y()+t.itemConfig.fontSize/2.5)),t.acc=0,t.animation.stop(),t.complete()):t.stopping&&t.currentItem.y()>t.stageConfig.centerY&&(t.acc=Math.max(t.acc-Math.random()%.2,5))}),this.layer)},random:function(t,e){return t+Math.floor(Math.random()*(e-t+1))}},watch:{trigger:function(){this.start()},list:function(){null!=this.stage&&this.drawAll()}},mounted:function(){this.initSetting(),this.initCanvas(),this.refreshTextSetting(),this.createAnimation(),this.drawAll()}};function c(t,e,n,r,i,o,a,s,c,h){"boolean"!==typeof a&&(c=s,s=a,a=!1);var u,l="function"===typeof n?n.options:n;if(t&&t.render&&(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),r&&(l._scopeId=r),o?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,c(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},l._ssrRegister=u):e&&(u=a?function(){e.call(this,h(this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),u)if(l.functional){var f=l.render;l.render=function(t,e){return u.call(e),f(t,e)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,u):[u]}return n}var h=c;const u=s;var l=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"stage-parent"},[n("div",{ref:"stage-container"})])},f=[];const d=void 0,p="data-v-04cf23c2",g=void 0,v=!1;var y=h({render:l,staticRenderFns:f},d,u,p,v,g,void 0,void 0),m={install:function(t,e){t.component("slot-machine",y)}};e["a"]=m},ab13:function(t,e,n){var r=n("b622"),i=r("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[i]=!1,"/./"[t](e)}catch(r){}}return!1}},ae93:function(t,e,n){"use strict";var r,i,o,a=n("d039"),s=n("e163"),c=n("9112"),h=n("5135"),u=n("b622"),l=n("c430"),f=u("iterator"),d=!1,p=function(){return this};[].keys&&(o=[].keys(),"next"in o?(i=s(s(o)),i!==Object.prototype&&(r=i)):d=!0);var g=void 0==r||a((function(){var t={};return r[f].call(t)!==t}));g&&(r={}),l&&!g||h(r,f)||c(r,f,p),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},b041:function(t,e,n){"use strict";var r=n("00ee"),i=n("f5df");t.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},b33b:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("f0b4"),i=n("4971"),o=n("4546");e.RGBA=function(t){var e,n,r=t.data,i=r.length,o=this.red(),a=this.green(),s=this.blue(),c=this.alpha();for(e=0;e<i;
7e+=4)n=1-c,r[e]=o*c+r[e]*n,r[e+1]=a*c+r[e+1]*n,r[e+2]=s*c+r[e+2]*n},r.Factory.addGetterSetter(i.Node,"red",0,(function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)})),r.Factory.addGetterSetter(i.Node,"green",0,(function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)})),r.Factory.addGetterSetter(i.Node,"blue",0,o.RGBComponent,r.Factory.afterSetFilter),r.Factory.addGetterSetter(i.Node,"alpha",1,(function(t){return this._filterUpToDate=!1,t>1?1:t<0?0:t}))},b575:function(t,e,n){var r,i,o,a,s,c,h,u,l=n("da84"),f=n("06cf").f,d=n("2cf4").set,p=n("1cdc"),g=n("a4b4"),v=n("605d"),y=l.MutationObserver||l.WebKitMutationObserver,m=l.document,_=l.process,b=l.Promise,w=f(l,"queueMicrotask"),x=w&&w.value;x||(r=function(){var t,e;v&&(t=_.domain)&&t.exit();while(i){e=i.fn,i=i.next;try{e()}catch(n){throw i?a():o=void 0,n}}o=void 0,t&&t.enter()},p||v||g||!y||!m?b&&b.resolve?(h=b.resolve(void 0),u=h.then,a=function(){u.call(h,r)}):a=v?function(){_.nextTick(r)}:function(){d.call(l,r)}:(s=!0,c=m.createTextNode(""),new y(r).observe(c,{characterData:!0}),a=function(){c.data=s=!s})),t.exports=x||function(t){var e={fn:t,next:void 0};o&&(o.next=e),i||(i=e,a()),o=e}},b622:function(t,e,n){var r=n("da84"),i=n("5692"),o=n("5135"),a=n("90e3"),s=n("4930"),c=n("fdbf"),h=i("wks"),u=r.Symbol,l=c?u:u&&u.withoutSetter||a;t.exports=function(t){return o(h,t)&&(s||"string"==typeof h[t])||(s&&o(u,t)?h[t]=u[t]:h[t]=l("Symbol."+t)),h[t]}},b727:function(t,e,n){var r=n("0366"),i=n("44ad"),o=n("7b0b"),a=n("50c4"),s=n("65f0"),c=[].push,h=function(t){var e=1==t,n=2==t,h=3==t,u=4==t,l=6==t,f=7==t,d=5==t||l;return function(p,g,v,y){for(var m,_,b=o(p),w=i(b),x=r(g,v,3),S=a(w.length),C=0,P=y||s,O=e?P(p,S):n||f?P(p,0):void 0;S>C;C++)if((d||C in w)&&(m=w[C],_=x(m,C,b),t))if(e)O[C]=_;else if(_)switch(t){case 3:return!0;case 5:return m;case 6:return C;case 2:c.call(O,m)}else switch(t){case 4:return!1;case 7:c.call(O,m)}return l?-1:h||u?u:O}};t.exports={forEach:h(0),map:h(1),filter:h(2),some:h(3),every:h(4),find:h(5),findIndex:h(6),filterOut:h(7)}},bbce:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("f0b4"),i=n("4971"),o=n("4546");e.Noise=function(t){var e,n=255*this.noise(),r=t.data,i=r.length,o=n/2;for(e=0;e<i;e+=4)r[e+0]+=o-2*o*Math.random(),r[e+1]+=o-2*o*Math.random(),r[e+2]+=o-2*o*Math.random()},r.Factory.addGetterSetter(i.Node,"noise",.2,o.getNumberValidator(),r.Factory.afterSetFilter)},bcb1:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("f0b4"),i=n("4971"),o=n("4546");function a(t,e,n,r,i){var o,a=n-e,s=i-r;return 0===a?r+s/2:0===s?r:(o=(t-e)/a,o=s*o+r,o)}e.Enhance=function(t){var e,n,r,i,o=t.data,s=o.length,c=o[0],h=c,u=o[1],l=u,f=o[2],d=f,p=this.enhance();if(0!==p){for(i=0;i<s;i+=4)e=o[i+0],e<c?c=e:e>h&&(h=e),n=o[i+1],n<u?u=n:n>l&&(l=n),r=o[i+2],r<f?f=r:r>d&&(d=r);var g,v,y,m,_,b,w,x,S;for(h===c&&(h=255,c=0),l===u&&(l=255,u=0),d===f&&(d=255,f=0),p>0?(v=h+p*(255-h),y=c-p*(c-0),_=l+p*(255-l),b=u-p*(u-0),x=d+p*(255-d),S=f-p*(f-0)):(g=.5*(h+c),v=h+p*(h-g),y=c+p*(c-g),m=.5*(l+u),_=l+p*(l-m),b=u+p*(u-m),w=.5*(d+f),x=d+p*(d-w),S=f+p*(f-w)),i=0;i<s;i+=4)o[i+0]=a(o[i+0],c,h,y,v),o[i+1]=a(o[i+1],u,l,b,_),o[i+2]=a(o[i+2],f,d,S,x)}},r.Factory.addGetterSetter(i.Node,"enhance",0,o.getNumberValidator(),r.Factory.afterSetFilter)},bdee:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("f0b4"),i=n("4971"),o=n("4546");function a(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}var s=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,39
76,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],c=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function h(t,e){var n,r,i,o,h,u,l,f,d,p,g,v,y,m,_,b,w,x,S,C,P,O,A,k,T=t.data,F=t.width,M=t.height,D=e+e+1,G=F-1,E=M-1,R=e+1,N=R*(R+1)/2,L=new a,I=null,j=L,U=null,B=null,$=s[e],z=c[e];for(i=1;i<D;i++)j=j.next=new a,i===R&&(I=j);for(j.next=L,l=u=0,r=0;r<M;r++){for(b=w=x=S=f=d=p=g=0,v=R*(C=T[u]),y=R*(P=T[u+1]),m=R*(O=T[u+2]),_=R*(A=T[u+3]),f+=N*C,d+=N*P,p+=N*O,g+=N*A,j=L,i=0;i<R;i++)j.r=C,j.g=P,j.b=O,j.a=A,j=j.next;for(i=1;i<R;i++)o=u+((G<i?G:i)<<2),f+=(j.r=C=T[o])*(k=R-i),d+=(j.g=P=T[o+1])*k,p+=(j.b=O=T[o+2])*k,g+=(j.a=A=T[o+3])*k,b+=C,w+=P,x+=O,S+=A,j=j.next;for(U=L,B=I,n=0;n<F;n++)T[u+3]=A=g*$>>z,0!==A?(A=255/A,T[u]=(f*$>>z)*A,T[u+1]=(d*$>>z)*A,T[u+2]=(p*$>>z)*A):T[u]=T[u+1]=T[u+2]=0,f-=v,d-=y,p-=m,g-=_,v-=U.r,y-=U.g,m-=U.b,_-=U.a,o=l+((o=n+e+1)<G?o:G)<<2,b+=U.r=T[o],w+=U.g=T[o+1],x+=U.b=T[o+2],S+=U.a=T[o+3],f+=b,d+=w,p+=x,g+=S,U=U.next,v+=C=B.r,y+=P=B.g,m+=O=B.b,_+=A=B.a,b-=C,w-=P,x-=O,S-=A,B=B.next,u+=4;l+=F}for(n=0;n<F;n++){for(w=x=S=b=d=p=g=f=0,u=n<<2,v=R*(C=T[u]),y=R*(P=T[u+1]),m=R*(O=T[u+2]),_=R*(A=T[u+3]),f+=N*C,d+=N*P,p+=N*O,g+=N*A,j=L,i=0;i<R;i++)j.r=C,j.g=P,j.b=O,j.a=A,j=j.next;for(h=F,i=1;i<=e;i++)u=h+n<<2,f+=(j.r=C=T[u])*(k=R-i),d+=(j.g=P=T[u+1])*k,p+=(j.b=O=T[u+2])*k,g+=(j.a=A=T[u+3])*k,b+=C,w+=P,x+=O,S+=A,j=j.next,i<E&&(h+=F);for(u=n,U=L,B=I,r=0;r<M;r++)o=u<<2,T[o+3]=A=g*$>>z,A>0?(A=255/A,T[o]=(f*$>>z)*A,T[o+1]=(d*$>>z)*A,T[o+2]=(p*$>>z)*A):T[o]=T[o+1]=T[o+2]=0,f-=v,d-=y,p-=m,g-=_,v-=U.r,y-=U.g,m-=U.b,_-=U.a,o=n+((o=r+R)<E?o:E)*F<<2,f+=b+=U.r=T[o],d+=w+=U.g=T[o+1],p+=x+=U.b=T[o+2],g+=S+=U.a=T[o+3],U=U.next,v+=C=B.r,y+=P=B.g,m+=O=B.b,_+=A=B.a,b-=C,w-=P,x-=O,S-=A,B=B.next,u+=F}}e.Blur=function(t){var e=Math.round(this.blurRadius());e>0&&h(t,e)},r.Factory.addGetterSetter(i.Node,"blurRadius",0,o.getNumberValidator(),r.Factory.afterSetFilter)},bf11:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n("9cb8"),o=n("f0b4"),a=n("fce6"),s=n("4546"),c=n("d777"),h=2*Math.PI,u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype._sceneFunc=function(t){t.beginPath(),t.arc(0,0,this.innerRadius(),0,h,!1),t.moveTo(this.outerRadius(),0),t.arc(0,0,this.outerRadius(),h,0,!0),t.closePath(),t.fillStrokeShape(this)},e.prototype.getWidth=function(){return 2*this.outerRadius()},e.prototype.getHeight=function(){return 2*this.outerRadius()},e.prototype.setWidth=function(t){this.outerRadius(t/2)},e.prototype.setHeight=function(t){this.outerRadius(t/2)},e}(a.Shape);e.Ring=u,u.prototype.className="Ring",u.prototype._centroid=!0,u.prototype._attrsAffectingSize=["innerRadius","outerRadius"],c._registerNode(u),o.Factory.addGetterSetter(u,"innerRadius",0,s.getNumberValidator()),o.Factory.addGetterSetter(u,"outerRadius",0,s.getNumberValidator()),i.Collection.mapMethods(u)},c04e:function(t,e,n){var r=n("861d");t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},c430:function(t,e){t.exports=!1},c527:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();
7Object.defineProperty(e,"__esModule",{value:!0});var i=n("9cb8"),o=n("d777"),a=",",s="(",c=")",h="([",u="])",l=";",f="()",d="=",p=["arc","arcTo","beginPath","bezierCurveTo","clearRect","clip","closePath","createLinearGradient","createPattern","createRadialGradient","drawImage","ellipse","fill","fillText","getImageData","createImageData","lineTo","moveTo","putImageData","quadraticCurveTo","rect","restore","rotate","save","scale","setLineDash","setTransform","stroke","strokeText","transform","translate"],g=["fillStyle","strokeStyle","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","lineCap","lineDashOffset","lineJoin","lineWidth","miterLimit","font","textAlign","textBaseline","globalAlpha","globalCompositeOperation","imageSmoothingEnabled"],v=100,y=function(){function t(t){this.canvas=t,this._context=t._canvas.getContext("2d"),o.Konva.enableTrace&&(this.traceArr=[],this._enableTrace())}return t.prototype.fillShape=function(t){t.getFillEnabled()&&this._fill(t)},t.prototype._fill=function(t){},t.prototype.strokeShape=function(t){t.getStrokeEnabled()&&this._stroke(t)},t.prototype._stroke=function(t){},t.prototype.fillStrokeShape=function(t){t.getFillEnabled()&&this._fill(t),t.getStrokeEnabled()&&this._stroke(t)},t.prototype.getTrace=function(t){var e,n,r,o,p=this.traceArr,g=p.length,v="";for(e=0;e<g;e++)n=p[e],r=n.method,r?(o=n.args,v+=r,t?v+=f:i.Util._isArray(o[0])?v+=h+o.join(a)+u:v+=s+o.join(a)+c):(v+=n.property,t||(v+=d+n.val)),v+=l;return v},t.prototype.clearTrace=function(){this.traceArr=[]},t.prototype._trace=function(t){var e,n=this.traceArr;n.push(t),e=n.length,e>=v&&n.shift()},t.prototype.reset=function(){var t=this.getCanvas().getPixelRatio();this.setTransform(1*t,0,0,1*t,0,0)},t.prototype.getCanvas=function(){return this.canvas},t.prototype.clear=function(t){var e=this.getCanvas();t?this.clearRect(t.x||0,t.y||0,t.width||0,t.height||0):this.clearRect(0,0,e.getWidth()/e.pixelRatio,e.getHeight()/e.pixelRatio)},t.prototype._applyLineCap=function(t){var e=t.getLineCap();e&&this.setAttr("lineCap",e)},t.prototype._applyOpacity=function(t){var e=t.getAbsoluteOpacity();1!==e&&this.setAttr("globalAlpha",e)},t.prototype._applyLineJoin=function(t){var e=t.getLineJoin();e&&this.setAttr("lineJoin",e)},t.prototype.setAttr=function(t,e){this._context[t]=e},t.prototype.arc=function(t,e,n,r,i,o){this._context.arc(t,e,n,r,i,o)},t.prototype.arcTo=function(t,e,n,r,i,o){this._context.arc(t,e,n,r,i,o)},t.prototype.beginPath=function(){this._context.beginPath()},t.prototype.bezierCurveTo=function(t,e,n,r,i,o){this._context.bezierCurveTo(t,e,n,r,i,o)},t.prototype.clearRect=function(t,e,n,r){this._context.clearRect(t,e,n,r)},t.prototype.clip=function(){this._context.clip()},t.prototype.closePath=function(){this._context.closePath()},t.prototype.createImageData=function(t,e){var n=arguments;return 2===n.length?this._context.createImageData(t,e):1===n.length?this._context.createImageData(t):void 0},t.prototype.createLinearGradient=function(t,e,n,r){return this._context.createLinearGradient(t,e,n,r)},t.prototype.createPattern=function(t,e){return this._context.createPattern(t,e)},t.prototype.createRadialGradient=function(t,e,n,r,i,o){return this._context.createRadialGradient(t,e,n,r,i,o)},t.prototype.drawImage=function(t,e,n,r,i,o,a,s,c){var h=arguments,u=this._context;3===h.length?u.drawImage(t,e,n):5===h.length?u.drawImage(t,e,n,r,i):9===h.length&&u.drawImage(t,e,n,r,i,o,a,s,c)},t.prototype.ellipse=function(t,e,n,r,i,o,a,s){this._context.ellipse(t,e,n,r,i,o,a,s)},t.prototype.isPointInPath=function(t,e){return this._context.isPointInPath(t,e)},t.prototype.fill=function(){this._context.fill()},t.prototype.fillRect=function(t,e,n,r){this._context.fillRect(t,e,n,r)},t.prototype.strokeRect=function(t,e,n,r){this._context.strokeRect(t,e,n,r)},t.prototype.fillText=function(t,e,n){this._context.fillText(t,e,n)},t.prototype.measureText=function(t){return this._context.measureText(t)},t.prototype.getImageData=function(t,e,n,r){return this._context.getImageData(t,e,n,r)},t.prototype.lineTo=function(t,e){this._context.lineTo(t,e)},t.prototype.moveTo=function(t,e){this._context.moveTo(t,e)},t.prototype.rect=function(t,e,n,r){this._context.rect(t,e,n,r)},t.prototype.putImageData=function(t,e,n){this._context.putImageData(t,e,n)},t.prototype.quadraticCurveTo=function(t,e,n,r){this._context.quadraticCurveTo(t,e,n,r)}
7,t.prototype.restore=function(){this._context.restore()},t.prototype.rotate=function(t){this._context.rotate(t)},t.prototype.save=function(){this._context.save()},t.prototype.scale=function(t,e){this._context.scale(t,e)},t.prototype.setLineDash=function(t){this._context.setLineDash?this._context.setLineDash(t):"mozDash"in this._context?this._context["mozDash"]=t:"webkitLineDash"in this._context&&(this._context["webkitLineDash"]=t)},t.prototype.getLineDash=function(){return this._context.getLineDash()},t.prototype.setTransform=function(t,e,n,r,i,o){this._context.setTransform(t,e,n,r,i,o)},t.prototype.stroke=function(){this._context.stroke()},t.prototype.strokeText=function(t,e,n,r){this._context.strokeText(t,e,n,r)},t.prototype.transform=function(t,e,n,r,i,o){this._context.transform(t,e,n,r,i,o)},t.prototype.translate=function(t,e){this._context.translate(t,e)},t.prototype._enableTrace=function(){var t,e,n=this,r=p.length,o=i.Util._simplifyArray,a=this.setAttr,s=function(t){var r,i=n[t];n[t]=function(){return e=o(Array.prototype.slice.call(arguments,0)),r=i.apply(n,arguments),n._trace({method:t,args:e}),r}};for(t=0;t<r;t++)s(p[t]);n.setAttr=function(){a.apply(n,arguments);var t=arguments[0],e=arguments[1];"shadowOffsetX"!==t&&"shadowOffsetY"!==t&&"shadowBlur"!==t||(e/=this.canvas.getPixelRatio()),n._trace({property:t,val:e})}},t.prototype._applyGlobalCompositeOperation=function(t){var e=t.getGlobalCompositeOperation();"source-over"!==e&&this.setAttr("globalCompositeOperation",e)},t}();e.Context=y,g.forEach((function(t){Object.defineProperty(y.prototype,t,{get:function(){return this._context[t]},set:function(e){this._context[t]=e}})}));var m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype._fillColor=function(t){var e=t.fill();this.setAttr("fillStyle",e),t._fillFunc(this)},e.prototype._fillPattern=function(t){var e=t.getFillPatternX(),n=t.getFillPatternY(),r=t.getFillPatternScaleX(),i=t.getFillPatternScaleY(),a=o.Konva.getAngle(t.getFillPatternRotation()),s=t.getFillPatternOffsetX(),c=t.getFillPatternOffsetY();(e||n)&&this.translate(e||0,n||0),a&&this.rotate(a),(r||i)&&this.scale(r,i),(s||c)&&this.translate(-1*s,-1*c),this.setAttr("fillStyle",t._getFillPattern()),t._fillFunc(this)},e.prototype._fillLinearGradient=function(t){var e=t._getLinearGradient();e&&(this.setAttr("fillStyle",e),t._fillFunc(this))},e.prototype._fillRadialGradient=function(t){var e=t._getRadialGradient();e&&(this.setAttr("fillStyle",e),t._fillFunc(this))},e.prototype._fill=function(t){var e=t.fill(),n=t.getFillPriority();if(e&&"color"===n)this._fillColor(t);else{var r=t.getFillPatternImage();if(r&&"pattern"===n)this._fillPattern(t);else{var i=t.getFillLinearGradientColorStops();if(i&&"linear-gradient"===n)this._fillLinearGradient(t);else{var o=t.getFillRadialGradientColorStops();o&&"radial-gradient"===n?this._fillRadialGradient(t):e?this._fillColor(t):r?this._fillPattern(t):i?this._fillLinearGradient(t):o&&this._fillRadialGradient(t)}}}},e.prototype._strokeLinearGradient=function(t){var e=t.getStrokeLinearGradientStartPoint(),n=t.getStrokeLinearGradientEndPoint(),r=t.getStrokeLinearGradientColorStops(),i=this.createLinearGradient(e.x,e.y,n.x,n.y);if(r){for(var o=0;o<r.length;o+=2)i.addColorStop(r[o],r[o+1]);this.setAttr("strokeStyle",i)}},e.prototype._stroke=function(t){var e=t.dash(),n=t.getStrokeScaleEnabled();if(t.hasStroke()){if(!n){this.save();var r=this.getCanvas().getPixelRatio();this.setTransform(r,0,0,r,0,0)}this._applyLineCap(t),e&&t.dashEnabled()&&(this.setLineDash(e),this.setAttr("lineDashOffset",t.dashOffset())),this.setAttr("lineWidth",t.strokeWidth()),t.getShadowForStrokeEnabled()||this.setAttr("shadowColor","rgba(0,0,0,0)");var i=t.getStrokeLinearGradientColorStops();i?this._strokeLinearGradient(t):this.setAttr("strokeStyle",t.stroke()),t._strokeFunc(this),n||this.restore()}},e.prototype._applyShadow=function(t){var e=i.Util,n=e.get(t.getShadowRGBA(),"black"),r=e.get(t.getShadowBlur(),5),o=e.get(t.getShadowOffset(),{x:0,y:0}),a=t.getAbsoluteScale(),s=this.canvas.getPixelRatio(),c=a.x*s,h=a.y*s;this.setAttr("shadowColor",n),this.setAttr("shadowBlur",r*Math.min(Math.abs(c),Math.abs(h))),this.setAttr("shadowOffsetX",o.x*c),this.setAttr("shadowOffsetY",o.y*h)},e}(y);e.SceneContext=m;var _=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype._fill=function(t){this.save(),this.setAttr("fillStyle",t.colorKey),t._fillFuncHit(this),this.restore(
7)},e.prototype._stroke=function(t){if(t.hasStroke()&&t.hitStrokeWidth()){var e=t.getStrokeScaleEnabled();if(!e){this.save();var n=this.getCanvas().getPixelRatio();this.setTransform(n,0,0,n,0,0)}this._applyLineCap(t);var r=t.hitStrokeWidth(),i="auto"===r?t.strokeWidth():r;this.setAttr("lineWidth",i),this.setAttr("strokeStyle",t.colorKey),t._strokeFuncHit(this),e||this.restore()}},e}(y);e.HitContext=_},c6b6:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},c6cd:function(t,e,n){var r=n("da84"),i=n("ce4e"),o="__core-js_shared__",a=r[o]||i(o,{});t.exports=a},c742:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("f0b4"),i=n("4971"),o=n("4546");e.Contrast=function(t){var e,n=Math.pow((this.contrast()+100)/100,2),r=t.data,i=r.length,o=150,a=150,s=150;for(e=0;e<i;e+=4)o=r[e],a=r[e+1],s=r[e+2],o/=255,o-=.5,o*=n,o+=.5,o*=255,a/=255,a-=.5,a*=n,a+=.5,a*=255,s/=255,s-=.5,s*=n,s+=.5,s*=255,o=o<0?0:o>255?255:o,a=a<0?0:a>255?255:a,s=s<0?0:s>255?255:s,r[e]=o,r[e+1]=a,r[e+2]=s},r.Factory.addGetterSetter(i.Node,"contrast",0,o.getNumberValidator(),r.Factory.afterSetFilter)},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},ca84:function(t,e,n){var r=n("5135"),i=n("fc6a"),o=n("4d64").indexOf,a=n("d012");t.exports=function(t,e){var n,s=i(t),c=0,h=[];for(n in s)!r(a,n)&&r(s,n)&&h.push(n);while(e.length>c)r(s,n=e[c++])&&(~o(h,n)||h.push(n));return h}},caad:function(t,e,n){"use strict";var r=n("23e7"),i=n("4d64").includes,o=n("44d2");r({target:"Array",proto:!0},{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o("includes")},cc12:function(t,e,n){var r=n("da84"),i=n("861d"),o=r.document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},cca6:function(t,e,n){var r=n("23e7"),i=n("60da");r({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},cdf9:function(t,e,n){var r=n("825a"),i=n("861d"),o=n("f069");t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t),a=n.resolve;return a(e),n.promise}},ce4e:function(t,e,n){var r=n("da84"),i=n("9112");t.exports=function(t,e){try{i(r,t,e)}catch(n){r[t]=e}return e}},cf29:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Grayscale=function(t){var e,n,r=t.data,i=r.length;for(e=0;e<i;e+=4)n=.34*r[e]+.5*r[e+1]+.16*r[e+2],r[e]=n,r[e+1]=n,r[e+2]=n}},d012:function(t,e){t.exports={}},d039:function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},d066:function(t,e,n){var r=n("428f"),i=n("da84"),o=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t])||o(i[t]):r[t]&&r[t][e]||i[t]&&i[t][e]}},d1e7:function(t,e,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);e.f=o?function(t){var e=i(this,t);return!!e&&e.enumerable}:r},d2bb:function(t,e,n){var r=n("825a"),i=n("3bbe");
7t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(n,[]),e=n instanceof Array}catch(o){}return function(n,o){return r(n),i(o),e?t.call(n,o):n.__proto__=o,n}}():void 0)},d3b7:function(t,e,n){var r=n("00ee"),i=n("6eeb"),o=n("b041");r||i(Object.prototype,"toString",o,{unsafe:!0})},d44e:function(t,e,n){var r=n("9bf2").f,i=n("5135"),o=n("b622"),a=o("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,a)&&r(t,a,{configurable:!0,value:e})}},d488:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n("9cb8"),o=n("f0b4"),a=n("4971"),s=n("fce6"),c=n("5d5a"),h=n("f35c"),u=n("d777"),l=n("4546"),f=n("d777"),d=["resizeEnabledChange","rotateAnchorOffsetChange","rotateEnabledChange","enabledAnchorsChange","anchorSizeChange","borderEnabledChange","borderStrokeChange","borderStrokeWidthChange","borderDashChange","anchorStrokeChange","anchorStrokeWidthChange","anchorFillChange","anchorCornerRadiusChange","ignoreStrokeChange"].join(" "),p="nodeRect",g=["widthChange.tr","heightChange.tr","scaleXChange.tr","scaleYChange.tr","skewXChange.tr","skewYChange.tr","rotationChange.tr","offsetXChange.tr","offsetYChange.tr","transformsEnabledChange.tr","strokeWidthChange.tr"].join(" "),v={"top-left":-45,"top-center":0,"top-right":45,"middle-right":-90,"middle-left":90,"bottom-left":-135,"bottom-center":180,"bottom-right":135};function y(t,e,n){if("rotater"===t)return"crosshair";e+=i.Util._degToRad(v[t]||0),n&&(e*=-1);var r=(i.Util._radToDeg(e)%360+360)%360;return i.Util._inRange(r,337.5,360)||i.Util._inRange(r,0,22.5)?"ns-resize":i.Util._inRange(r,22.5,67.5)?"nesw-resize":i.Util._inRange(r,67.5,112.5)?"ew-resize":i.Util._inRange(r,112.5,157.5)?"nwse-resize":i.Util._inRange(r,157.5,202.5)?"ns-resize":i.Util._inRange(r,202.5,247.5)?"nesw-resize":i.Util._inRange(r,247.5,292.5)?"ew-resize":i.Util._inRange(r,292.5,337.5)?"nwse-resize":(i.Util.error("Transformer has unknown angle for cursor detection: "+r),"pointer")}var m=["top-left","top-center","top-right","middle-right","middle-left","bottom-left","bottom-center","bottom-right"],_=1e8,b=function(t){function e(e){var n=t.call(this,e)||this;return n._transforming=!1,n._createElements(),n._handleMouseMove=n._handleMouseMove.bind(n),n._handleMouseUp=n._handleMouseUp.bind(n),n.update=n.update.bind(n),n.on(d,n.update),n.getNode()&&n.update(),n}return r(e,t),e.prototype.attachTo=function(t){return this.setNode(t),this},e.prototype.setNode=function(t){var e=this;this._node&&this.detach(),this._node=t,this._resetTransformCache();var n=t._attrsAffectingSize.map((function(t){return t+"Change.tr"})).join(" "),r=function(){e._resetTransformCache(),e._transforming||e.update()};t.on(n,r),t.on(g,r),t.on("xChange.tr yChange.tr",(function(){return e._resetTransformCache()}));var i=!!this.findOne(".top-left");return i&&this.update(),this},e.prototype.getNode=function(){return this._node},e.prototype.detach=function(){this.getNode()&&(this.getNode().off(".tr"),this._node=void 0),this._resetTransformCache()},e.prototype._resetTransformCache=function(){this._clearCache(p),this._clearCache("transform"),this._clearSelfAndDescendantCache("absoluteTransform")},e.prototype._getNodeRect=function(){return this._getCache(p,this.__getNodeRect)},e.prototype.__getNodeRect=function(){var t=this.getNode();if(!t)return{x:-_,y:-_,width:0,height:0,rotation:0};t.parent&&this.parent&&t.parent!==this.parent&&i.Util.warn("Transformer and attached node have different parents. Konva does not support such case right now. Please move Transformer to the parent of attaching node.");var e=t.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),n=u.Konva.getAngle(t.rotation()),r=e.x*t.scaleX()-t.offsetX()*t.scaleX(),o=e.y*t.scaleY()-t.offsetY()*t.scaleY();return{x:t.x()+r*Math.cos(n)+o*Math.sin(-n),y:t.y()+o*Math.cos(n)+r*Math.sin(n),width:e.width*t.scaleX(),height:e.height*t.scaleY(),rotation:t.rotation()}},e.prototype.getX=function(){return this._getNodeRect().x},e.prototype.getY=function(){return this._getNodeRect().y},e.prototype.getRotation=function(){return this._getNodeRect().rotation},e.prototype.getWidth=function(){return this._getNodeRect().width},e.prototype.getHeight=function(){return this._getNodeRect().height},e.prototype._createElements=function(){this._createBack(),m.forEach(function(t){this._createAnchor(t)}.bind(this)),this._createAnchor("rotater")},e.prototype._createAnchor=function(t){var e=this,n=new c.Rect({stroke:"rgb(0, 161, 255)",fill:"white",strokeWidth:1,name:t+" _anchor",dragDistance:0,draggable:!0}),r=this;n.on("mousedown touchstart",(function(t){r._handleMouseDown(t)})),n.on("dragstart",(function(t){t.cancelBubble=!0})),n.on("dragmove",(function(t){t.cancelBubble=!0})),n.on("dragend",(function(t){t.cancelBubble=!0}
7)),n.on("mouseenter",(function(){var r=u.Konva.getAngle(e.rotation()),i=e.getNode().getAbsoluteScale(),o=i.y*i.x<0,a=y(t,r,o);n.getStage().content.style.cursor=a,e._cursorChange=!0})),n.on("mouseout",(function(){n.getStage()&&n.getParent()&&(n.getStage().content.style.cursor="",e._cursorChange=!1)})),this.add(n)},e.prototype._createBack=function(){var t=new s.Shape({name:"back",width:0,height:0,listening:!1,sceneFunc:function(t){var e=this.getParent(),n=e.padding();t.beginPath(),t.rect(-n,-n,this.width()+2*n,this.height()+2*n),t.moveTo(this.width()/2,-n),e.rotateEnabled()&&t.lineTo(this.width()/2,-e.rotateAnchorOffset()*i.Util._sign(this.height())),t.fillStrokeShape(this)}});this.add(t)},e.prototype._handleMouseDown=function(t){this.movingResizer=t.target.name().split(" ")[0];var e=this._getNodeRect(),n=e.width,r=e.height,i=Math.sqrt(Math.pow(n,2)+Math.pow(r,2));this.sin=Math.abs(r/i),this.cos=Math.abs(n/i),window.addEventListener("mousemove",this._handleMouseMove),window.addEventListener("touchmove",this._handleMouseMove),window.addEventListener("mouseup",this._handleMouseUp,!0),window.addEventListener("touchend",this._handleMouseUp,!0),this._transforming=!0,this._fire("transformstart",{evt:t}),this.getNode()._fire("transformstart",{evt:t})},e.prototype._handleMouseMove=function(t){var e,n,r,o=this.findOne("."+this.movingResizer),a=o.getStage(),s=a.getContent().getBoundingClientRect(),c={x:s.left,y:s.top},h={left:void 0!==t.clientX?t.clientX:t.touches[0].clientX,top:void 0!==t.clientX?t.clientY:t.touches[0].clientY},l={x:h.left-c.x,y:h.top-c.y};o.setAbsolutePosition(l);var f=this.keepRatio()||t.shiftKey;if("top-left"===this.movingResizer){if(f){r=Math.sqrt(Math.pow(this.findOne(".bottom-right").x()-o.x(),2)+Math.pow(this.findOne(".bottom-right").y()-o.y(),2));var d=this.findOne(".top-left").x()>this.findOne(".bottom-right").x()?-1:1;e=r*this.cos*d,n=r*this.sin*d,this.findOne(".top-left").x(this.findOne(".bottom-right").x()-e),this.findOne(".top-left").y(this.findOne(".bottom-right").y()-n)}}else if("top-center"===this.movingResizer)this.findOne(".top-left").y(o.y());else if("top-right"===this.movingResizer){if(f){r=Math.sqrt(Math.pow(this.findOne(".bottom-left").x()-o.x(),2)+Math.pow(this.findOne(".bottom-left").y()-o.y(),2));d=this.findOne(".top-right").x()<this.findOne(".top-left").x()?-1:1;e=r*this.cos*d,n=r*this.sin*d,this.findOne(".top-right").x(e),this.findOne(".top-right").y(this.findOne(".bottom-left").y()-n)}var p=o.position();this.findOne(".top-left").y(p.y),this.findOne(".bottom-right").x(p.x)}else if("middle-left"===this.movingResizer)this.findOne(".top-left").x(o.x());else if("middle-right"===this.movingResizer)this.findOne(".bottom-right").x(o.x());else if("bottom-left"===this.movingResizer){if(f){r=Math.sqrt(Math.pow(this.findOne(".top-right").x()-o.x(),2)+Math.pow(this.findOne(".top-right").y()-o.y(),2));d=this.findOne(".top-right").x()<this.findOne(".bottom-left").x()?-1:1;e=r*this.cos*d,n=r*this.sin*d,this.findOne(".bottom-left").x(this.findOne(".top-right").x()-e),this.findOne(".bottom-left").y(n)}p=o.position(),this.findOne(".top-left").x(p.x),this.findOne(".bottom-right").y(p.y)}else if("bottom-center"===this.movingResizer)this.findOne(".bottom-right").y(o.y());else if("bottom-right"===this.movingResizer){if(f){r=Math.sqrt(Math.pow(this.findOne(".bottom-right").x(),2)+Math.pow(this.findOne(".bottom-right").y(),2));d=this.findOne(".top-left").x()>this.findOne(".bottom-right").x()?-1:1;e=r*this.cos*d,n=r*this.sin*d,this.findOne(".bottom-right").x(e),this.findOne(".bottom-right").y(n)}}else if("rotater"===this.movingResizer){var g=this.padding(),v=this._getNodeRect();e=o.x()-v.width/2,n=-o.y()+v.height/2;var y=Math.atan2(-n,e)+Math.PI/2;v.height<0&&(y-=Math.PI);for(var m=u.Konva.getAngle(this.rotation()),_=i.Util._radToDeg(m)+i.Util._radToDeg(y),b=u.Konva.getAngle(this.getNode().rotation()),w=i.Util._degToRad(_),x=this.rotationSnaps(),S=.1,C=0;C<x.length;C++){var P=u.Konva.getAngle(x[C]),O=Math.abs(P-i.Util._degToRad(_))%(2*Math.PI);O<S&&(_=i.Util._radToDeg(P),w=i.Util._degToRad(_))}var A=g,k=g;this._fitNodeInto({rotation:u.Konva.angleDeg?_:i.Util._degToRad(_),x:v.x+(v.width/2+g)*(Math.cos(b)-Math.cos(w))+(v.height/2+g)*(Math.sin(-b)-Math.sin(-w))-(A*Math.cos(m)+k*Math.sin(-m)),y:v.y+(v.height/2+g)*(Math.cos(b)-Math.cos(w))+(v.width/2+g)*(Math.sin(b)-Math.sin(w))-(k*Math.cos(m)+A*Math.sin(m)),width:v.width+2*g,height:v.height+2*g},t)}else console.error(new Error("Wrong position argument of selection resizer: "+this.movingResizer));if("rotater"!==this.movingResizer){var T=this.findOne(".top-left").getAbsolutePosition(this.getParent()),F=this.centeredScaling()||t.altKey;if(F){var M=this.findOne(".top-left"),D=this.findOne(".bottom-right"),G=M.x(),E=M.y(),R=this.getWidth()-D.x(),N=this.getHeight()-D.y();D.move({x:-G,y:-E}),M.move({x:R,y:N}),T=M.getAbsolutePosition(this.getParent())}e=T.x,n=T.y;var L=this.findOne(".bottom-right").x()-this.findOne(".top-left").x(),I=this.findOne(".bottom-right").y()-this.findOne(".top-left").y();this._fitNodeInto({x:e+this.offsetX(),y:n+this.offsetY(),width:L,height:I},t)}},e.prototype._handleMouseUp=function(t){this._removeEvents(t)},e.prototype._removeEvents=function(t){if(this._transforming){this._transforming=!1,window.removeEventListener("mousemove",this._handleMouseMove),window.removeEventListener("touchmove",this._handleMouseMove),window.removeEventListener("mouseup",this._handleMouseUp,!0),window.removeEventListener("touchend",this._handleMouseUp,!0),this._fire("transformend",{evt:t});var e=this.getNode();e&&e.fire("transformend",{evt:t})}},e.prototype._fitNodeInto=function(t,e){var n=this.boundBoxFunc();if(n){var r=this._getNodeRect();t=n.call(this,r,t)}var i=this.getNode();void 0!==t.rotation&&this.getNode().rotation(t.rotation);var o=i.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),a=this.padding(),s=(t.width-2*a)/o.width,c=(t.height-2*a)/o.height,h=u.Konva.getAngle(i.rotation()),l=o.x*s-a-i.offsetX()*s,f=o.y*c-a-i.offsetY()*c;this.getNode().setAttrs({scaleX:s,scaleY:c,x:t.x-(l*Math.cos(h)+f*Math.sin(-h)),y:t.y-(f*Math.cos(h)+l*Math.sin(h))}),this._fire("transform",{evt:e}),this.getNode()._fire("transform",{evt:e}),this.update(),this.getLayer().batchDraw()},e.prototype.forceUpdate=function(){this._resetTransformCache(),this.update()},e.prototype.update=function(){var t=this,e=this._getNodeRect(),n=this.getNode(),r={x:1,y:1};
7n&&n.getParent()&&(r=n.getParent().getAbsoluteScale());var o={x:1/r.x,y:1/r.y},a=e.width,s=e.height,c=this.enabledAnchors(),h=this.resizeEnabled(),u=this.padding(),l=this.anchorSize();this.find("._anchor").each((function(e){return e.setAttrs({width:l,height:l,offsetX:l/2,offsetY:l/2,stroke:t.anchorStroke(),strokeWidth:t.anchorStrokeWidth(),fill:t.anchorFill(),cornerRadius:t.anchorCornerRadius()})})),this.findOne(".top-left").setAttrs({x:-u,y:-u,scale:o,visible:h&&c.indexOf("top-left")>=0}),this.findOne(".top-center").setAttrs({x:a/2,y:-u,scale:o,visible:h&&c.indexOf("top-center")>=0}),this.findOne(".top-right").setAttrs({x:a+u,y:-u,scale:o,visible:h&&c.indexOf("top-right")>=0}),this.findOne(".middle-left").setAttrs({x:-u,y:s/2,scale:o,visible:h&&c.indexOf("middle-left")>=0}),this.findOne(".middle-right").setAttrs({x:a+u,y:s/2,scale:o,visible:h&&c.indexOf("middle-right")>=0}),this.findOne(".bottom-left").setAttrs({x:-u,y:s+u,scale:o,visible:h&&c.indexOf("bottom-left")>=0}),this.findOne(".bottom-center").setAttrs({x:a/2,y:s+u,scale:o,visible:h&&c.indexOf("bottom-center")>=0}),this.findOne(".bottom-right").setAttrs({x:a+u,y:s+u,scale:o,visible:h&&c.indexOf("bottom-right")>=0});var f=-this.rotateAnchorOffset()*Math.abs(o.y);this.findOne(".rotater").setAttrs({x:a/2,y:f*i.Util._sign(s),scale:o,visible:this.rotateEnabled()}),this.findOne(".back").setAttrs({width:a*r.x,height:s*r.y,scale:o,visible:this.borderEnabled(),stroke:this.borderStroke(),strokeWidth:this.borderStrokeWidth(),dash:this.borderDash()})},e.prototype.isTransforming=function(){return this._transforming},e.prototype.stopTransform=function(){if(this._transforming){this._removeEvents();var t=this.findOne("."+this.movingResizer);t&&t.stopDrag()}},e.prototype.destroy=function(){return this.getStage()&&this._cursorChange&&(this.getStage().content.style.cursor=""),h.Group.prototype.destroy.call(this),this.detach(),this._removeEvents(),this},e.prototype.toObject=function(){return a.Node.prototype.toObject.call(this)},e}(h.Group);function w(t){return t instanceof Array||i.Util.warn("enabledAnchors value should be an array"),t instanceof Array&&t.forEach((function(t){-1===m.indexOf(t)&&i.Util.warn("Unknown anchor name: "+t+". Available names are: "+m.join(", "))})),t||[]}e.Transformer=b,b.prototype.className="Transformer",f._registerNode(b),o.Factory.addGetterSetter(b,"enabledAnchors",m,w),o.Factory.addGetterSetter(b,"resizeEnabled",!0),o.Factory.addGetterSetter(b,"anchorSize",10,l.getNumberValidator()),o.Factory.addGetterSetter(b,"rotateEnabled",!0),o.Factory.addGetterSetter(b,"rotationSnaps",[]),o.Factory.addGetterSetter(b,"rotateAnchorOffset",50,l.getNumberValidator()),o.Factory.addGetterSetter(b,"borderEnabled",!0),o.Factory.addGetterSetter(b,"anchorStroke","rgb(0, 161, 255)"),o.Factory.addGetterSetter(b,"anchorStrokeWidth",1,l.getNumberValidator()),o.Factory.addGetterSetter(b,"anchorFill","white"),o.Factory.addGetterSetter(b,"anchorCornerRadius",0,l.getNumberValidator()),o.Factory.addGetterSetter(b,"borderStroke","rgb(0, 161, 255)"),o.Factory.addGetterSetter(b,"borderStrokeWidth",1,l.getNumberValidator()),o.Factory.addGetterSetter(b,"borderDash"),o.Factory.addGetterSetter(b,"keepRatio",!0),o.Factory.addGetterSetter(b,"centeredScaling",!1),o.Factory.addGetterSetter(b,"ignoreStroke",!1),o.Factory.addGetterSetter(b,"padding",0,l.getNumberValidator()),o.Factory.addGetterSetter(b,"node"),o.Factory.addGetterSetter(b,"boundBoxFunc"),o.Factory.backCompat(b,{lineEnabled:"borderEnabled",rotateHandlerOffset:"rotateAnchorOffset",enabledH
7andlers:"enabledAnchors"}),i.Collection.mapMethods(b)},d6af:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n("9cb8"),o=n("ea61"),a=n("4971"),s=n("f0b4"),c=n("f655"),h=function(t){function e(e){var n=t.call(this,e)||this;return n.canvas=new c.SceneCanvas,n._waitingForDraw=!1,n.on("visibleChange",n._checkVisibility),n._checkVisibility(),n.on("imageSmoothingEnabledChange",n._checkSmooth),n._checkSmooth(),n}return r(e,t),e.prototype.createPNGStream=function(){var t=this.canvas._canvas;return t.createPNGStream()},e.prototype.getCanvas=function(){return this.canvas},e.prototype.getHitCanvas=function(){return this.hitCanvas},e.prototype.getContext=function(){return this.getCanvas().getContext()},e.prototype.clear=function(t){return this.getContext().clear(t),this},e.prototype.setZIndex=function(e){t.prototype.setZIndex.call(this,e);var n=this.getStage();return n&&(n.content.removeChild(this.getCanvas()._canvas),e<n.getChildren().length-1?n.content.insertBefore(this.getCanvas()._canvas,n.getChildren()[e+1].getCanvas()._canvas):n.content.appendChild(this.getCanvas()._canvas)),this},e.prototype.moveToTop=function(){a.Node.prototype.moveToTop.call(this);var t=this.getStage();return t&&(t.content.removeChild(this.getCanvas()._canvas),t.content.appendChild(this.getCanvas()._canvas)),!0},e.prototype.moveUp=function(){var t=a.Node.prototype.moveUp.call(this);if(!t)return!1;var e=this.getStage();return!!e&&(e.content.removeChild(this.getCanvas()._canvas),this.index<e.getChildren().length-1?e.content.insertBefore(this.getCanvas()._canvas,e.getChildren()[this.index+1].getCanvas()._canvas):e.content.appendChild(this.getCanvas()._canvas),!0)},e.prototype.moveDown=function(){if(a.Node.prototype.moveDown.call(this)){var t=this.getStage();if(t){var e=t.getChildren();t.content.removeChild(this.getCanvas()._canvas),t.content.insertBefore(this.getCanvas()._canvas,e[this.index+1].getCanvas()._canvas)}return!0}return!1},e.prototype.moveToBottom=function(){if(a.Node.prototype.moveToBottom.call(this)){var t=this.getStage();if(t){var e=t.getChildren();t.content.removeChild(this.getCanvas()._canvas),t.content.insertBefore(this.getCanvas()._canvas,e[1].getCanvas()._canvas)}return!0}return!1},e.prototype.getLayer=function(){return this},e.prototype.remove=function(){var t=this.getCanvas()._canvas;return a.Node.prototype.remove.call(this),t&&t.parentNode&&i.Util._isInDocument(t)&&t.parentNode.removeChild(t),this},e.prototype.getStage=function(){return this.parent},e.prototype.setSize=function(t){var e=t.width,n=t.height;return this.canvas.setSize(e,n),this},e.prototype._toKonvaCanvas=function(t){return t=t||{},t.width=t.width||this.getWidth(),t.height=t.height||this.getHeight(),t.x=void 0!==t.x?t.x:this.x(),t.y=void 0!==t.y?t.y:this.y(),a.Node.prototype._toKonvaCanvas.call(this,t)},e.prototype._checkVisibility=function(){var t=this.visible();this.canvas._canvas.style.display=t?"block":"none"},e.prototype._checkSmooth=function(){this.getContext()._context.imageSmoothingEnabled=this.imageSmoothingEnabled()},e.prototype.getWidth=function(){if(this.parent)return this.parent.width()},e.prototype.setWidth=function(){i.Util.warn('Can not change width of layer. Use "stage.width(value)" function instead.')},e.prototype.getHeight=function(){if(this.parent)return this.parent.height()},e.prototype.setHeight=function(){i.Util.warn('Can not change height of layer. Use "stage.height(value)" function instead.')},e.prototype.getIntersection=function(t,e){return null},e.prototype.batchDraw=function(){var t=this;return this._waitingForDraw||(this._waitingForDraw=!0,i.Util.requestAnimFrame((function(){t.draw(),t._waitingForDraw=!1}))),this},e.prototype._applyTransform=function(t,e,n){var r=t.getAbsoluteTransform(n).getMatrix();e.transform(r[0],r[1],r[2],r[3],r[4],r[5])},e}(o.Container);e.BaseLayer=h,h.prototype.nodeType="BaseLayer",s.Factory.addGetterSetter(h,"imageSmoothingEnabled",!0),s.Factory.addGetterSetter(h,"clearBeforeDraw",!0),i.Collection.mapMethods(h)},d777:function(t,e,n){"use strict";
7(function(t){Object.defineProperty(e,"__esModule",{value:!0});var n=Math.PI/180;function r(){return"undefined"!==typeof window&&("[object Window]"==={}.toString.call(window)||"[object global]"==={}.toString.call(window))}var i=function(t){var e=t.indexOf("msie ");if(e>0)return parseInt(t.substring(e+5,t.indexOf(".",e)),10);var n=t.indexOf("trident/");if(n>0){var r=t.indexOf("rv:");return parseInt(t.substring(r+3,t.indexOf(".",r)),10)}var i=t.indexOf("edge/");return i>0&&parseInt(t.substring(i+5,t.indexOf(".",i)),10)};e._parseUA=function(t){var e=t.toLowerCase(),n=/(chrome)[ /]([\w.]+)/.exec(e)||/(webkit)[ /]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ /]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[],r=!!t.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i),o=!!t.match(/IEMobile/i);return{browser:n[1]||"",version:n[2]||"0",isIE:i(e),mobile:r,ieMobile:o}},e.glob="undefined"!==typeof t?t:"undefined"!==typeof window?window:"undefined"!==typeof WorkerGlobalScope?self:{},e.Konva={_global:e.glob,version:"3.4.1",isBrowser:r(),isUnminified:/param/.test(function(t){}.toString()),dblClickWindow:400,getAngle:function(t){return e.Konva.angleDeg?t*n:t},enableTrace:!1,_pointerEventsEnabled:!1,listenClickTap:!1,inDblClickWindow:!1,pixelRatio:void 0,dragDistance:3,angleDeg:!0,showWarnings:!0,dragButtons:[0,1],isDragging:function(){return e.Konva["DD"].isDragging},isDragReady:function(){return!!e.Konva["DD"].node},UA:e._parseUA(e.glob.navigator&&e.glob.navigator.userAgent||""),document:e.glob.document,_injectGlobal:function(t){e.glob.Konva=t},_parseUA:e._parseUA},e._NODES_REGISTRY={},e._registerNode=function(t){e._NODES_REGISTRY[t.prototype.getClassName()]=t,e.Konva[t.prototype.getClassName()]=t}}).call(this,n("c8ba"))},da04:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n("9cb8"),o=n("f0b4"),a=n("fce6"),s=n("f35c"),c=n("4546"),h=n("d777"),u=["fontFamily","fontSize","fontStyle","padding","lineHeight","text","width"],l="Change.konva",f="none",d="up",p="right",g="down",v="left",y=u.length,m=function(t){function e(e){var n=t.call(this,e)||this;return n.on("add.konva",(function(t){this._addListeners(t.child),this._sync()})),n}return r(e,t),e.prototype.getText=function(){return this.find("Text")[0]},e.prototype.getTag=function(){return this.find("Tag")[0]},e.prototype._addListeners=function(t){var e,n=this,r=function(){n._sync()};for(e=0;e<y;e++)t.on(u[e]+l,r)},e.prototype.getWidth=function(){return this.getText().width()},e.prototype.getHeight=function(){return this.getText().height()},e.prototype._sync=function(){var t,e,n,r,i,o,a,s=this.getText(),c=this.getTag();if(s&&c){switch(t=s.width(),e=s.height(),n=c.pointerDirection(),r=c.pointerWidth(),a=c.pointerHeight(),i=0,o=0,n){case d:i=t/2,o=-1*a;break;case p:i=t+r,o=e/2;break;case g:i=t/2,o=e+a;break;case v:i=-1*r,o=e/2;break}c.setAttrs({x:-1*i,y:-1*o,width:t,height:e}),s.setAttrs({x:-1*i,y:-1*o})}},e}(s.Group);e.Label=m,m.prototype.className="Label",h._registerNode(m),i.Collection.mapMethods(m);var _=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype._sceneFunc=function(t){var e=this.width(),n=this.height(),r=this.pointerDirection(),i=this.pointerWidth(),o=this.pointerHeight(),a=Math.min(this.cornerRadius(),e/2,n/2);t.beginPath(),a?t.moveTo(a,0):t.moveTo(0,0),r===d&&(t.lineTo((e-i)/2,0),t.lineTo(e/2,-1*o),t.lineTo((e+i)/2,0)
7),a?(t.lineTo(e-a,0),t.arc(e-a,a,a,3*Math.PI/2,0,!1)):t.lineTo(e,0),r===p&&(t.lineTo(e,(n-o)/2),t.lineTo(e+i,n/2),t.lineTo(e,(n+o)/2)),a?(t.lineTo(e,n-a),t.arc(e-a,n-a,a,0,Math.PI/2,!1)):t.lineTo(e,n),r===g&&(t.lineTo((e+i)/2,n),t.lineTo(e/2,n+o),t.lineTo((e-i)/2,n)),a?(t.lineTo(a,n),t.arc(a,n-a,a,Math.PI/2,Math.PI,!1)):t.lineTo(0,n),r===v&&(t.lineTo(0,(n+o)/2),t.lineTo(-1*i,n/2),t.lineTo(0,(n-o)/2)),a&&(t.lineTo(0,a),t.arc(a,a,a,Math.PI,3*Math.PI/2,!1)),t.closePath(),t.fillStrokeShape(this)},e.prototype.getSelfRect=function(){var t=0,e=0,n=this.pointerWidth(),r=this.pointerHeight(),i=this.pointerDirection(),o=this.width(),a=this.height();return i===d?(e-=r,a+=r):i===g?a+=r:i===v?(t-=1.5*n,o+=n):i===p&&(o+=1.5*n),{x:t,y:e,width:o,height:a}},e}(a.Shape);e.Tag=_,_.prototype.className="Tag",h._registerNode(_),o.Factory.addGetterSetter(_,"pointerDirection",f),o.Factory.addGetterSetter(_,"pointerWidth",0,c.getNumberValidator()),o.Factory.addGetterSetter(_,"pointerHeight",0,c.getNumberValidator()),o.Factory.addGetterSetter(_,"cornerRadius",0,c.getNumberValidator()),i.Collection.mapMethods(_)},da84:function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(this,n("c8ba"))},df75:function(t,e,n){var r=n("ca84"),i=n("7839");t.exports=Object.keys||function(t){return r(t,i)}},df93:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("ed3d"),i=n("d777");e.DD={startPointerPos:{x:0,y:0},anim:new r.Animation((function(){var t=this.dirty;return this.dirty=!1,t})),isDragging:!1,justDragged:!1,offset:{x:0,y:0},node:null,_drag:function(t){var n=e.DD.node;if(n){if(!e.DD.isDragging){var r=n.getStage().getPointerPosition();r||(n.getStage().setPointersPositions(t),r=n.getStage().getPointerPosition());var i=n.dragDistance(),o=Math.max(Math.abs(r.x-e.DD.startPointerPos.x),Math.abs(r.y-e.DD.startPointerPos.y));if(o<i)return}if(n.getStage().setPointersPositions(t),!e.DD.isDragging&&(e.DD.isDragging=!0,n.fire("dragstart",{type:"dragstart",target:n,evt:t},!0),!n.isDragging()))return;n._setDragPosition(t),n.fire("dragmove",{type:"dragmove",target:n,evt:t},!0)}},_endDragBefore:function(t){var n=e.DD.node;if(n){e.DD.anim.stop(),e.DD.isDragging&&(e.DD.isDragging=!1,e.DD.justDragged=!0,i.Konva.listenClickTap=!1,t&&(t.dragEndNode=n)),e.DD.node=null;var r=n.getLayer()||n instanceof i.Konva["Stage"]&&n;r&&r.draw()}},_endDragAfter:function(t){t=t||{};var e=t.dragEndNode;t&&e&&e.fire("dragend",{type:"dragend",target:e,evt:t},!0)}},i.Konva.isBrowser&&(window.addEventListener("mouseup",e.DD._endDragBefore,!0),window.addEventListener("touchend",e.DD._endDragBefore,!0),window.addEventListener("mousemove",e.DD._drag),window.addEventListener("touchmove",e.DD._drag),window.addEventListener("mouseup",e.DD._endDragAfter,!1),window.addEventListener("touchend",e.DD._endDragAfter,!1))},e163:function(t,e,n){var r=n("5135"),i=n("7b0b"),o=n("f772"),a=n("e177"),s=o("IE_PROTO"),c=Object.prototype;t.exports=a?Object.getPrototypeOf:function(t){return t=i(t),r(t,s)?t[s]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?c:null}},e177:function(t,e,n){var r=n("d039");t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},e260:function(t,e,n){"use strict";var r=n("fc6a"),i=n("44d2"),o=n("3f8c"),a=n("69f3"),s=n("7dd0"),c="Array Iterator",h=a.set,u=a.getterFor(c);t.exports=s(Array,"Array",(function(t,e){h(this,{type:c,target:r(t),index:0,kind:e})}),(function(){var t=u(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},e2cc:function(t,e,n){var r=n("6eeb");t.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},e3af:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();
7Object.defineProperty(e,"__esModule",{value:!0});var i=n("9cb8"),o=n("f0b4"),a=n("fce6"),s=n("4546"),c=n("d777"),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype._sceneFunc=function(t){var e=this.innerRadius(),n=this.outerRadius(),r=this.numPoints();t.beginPath(),t.moveTo(0,0-n);for(var i=1;i<2*r;i++){var o=i%2===0?n:e,a=o*Math.sin(i*Math.PI/r),s=-1*o*Math.cos(i*Math.PI/r);t.lineTo(a,s)}t.closePath(),t.fillStrokeShape(this)},e.prototype.getWidth=function(){return 2*this.outerRadius()},e.prototype.getHeight=function(){return 2*this.outerRadius()},e.prototype.setWidth=function(t){this.outerRadius(t/2)},e.prototype.setHeight=function(t){this.outerRadius(t/2)},e}(a.Shape);e.Star=h,h.prototype.className="Star",h.prototype._centroid=!0,h.prototype._attrsAffectingSize=["innerRadius","outerRadius"],c._registerNode(h),o.Factory.addGetterSetter(h,"numPoints",5,s.getNumberValidator()),o.Factory.addGetterSetter(h,"innerRadius",0,s.getNumberValidator()),o.Factory.addGetterSetter(h,"outerRadius",0,s.getNumberValidator()),i.Collection.mapMethods(h)},e4b0:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("f0b4"),i=n("4971"),o=n("9cb8"),a=n("4546");e.Emboss=function(t){var e=10*this.embossStrength(),n=255*this.embossWhiteLevel(),r=this.embossDirection(),i=this.embossBlend(),a=0,s=0,c=t.data,h=t.width,u=t.height,l=4*h,f=u;switch(r){case"top-left":a=-1,s=-1;break;case"top":a=-1,s=0;break;case"top-right":a=-1,s=1;break;case"right":a=0,s=1;break;case"bottom-right":a=1,s=1;break;case"bottom":a=1,s=0;break;case"bottom-left":a=1,s=-1;break;case"left":a=0,s=-1;break;default:o.Util.error("Unknown emboss direction: "+r)}do{var d=(f-1)*l,p=a;f+p<1&&(p=0),f+p>u&&(p=0);var g=(f-1+p)*h*4,v=h;do{var y=d+4*(v-1),m=s;v+m<1&&(m=0),v+m>h&&(m=0);var _=g+4*(v-1+m),b=c[y]-c[_],w=c[y+1]-c[_+1],x=c[y+2]-c[_+2],S=b,C=S>0?S:-S,P=w>0?w:-w,O=x>0?x:-x;if(P>C&&(S=w),O>C&&(S=x),S*=e,i){var A=c[y]+S,k=c[y+1]+S,T=c[y+2]+S;c[y]=A>255?255:A<0?0:A,c[y+1]=k>255?255:k<0?0:k,c[y+2]=T>255?255:T<0?0:T}else{var F=n-S;F<0?F=0:F>255&&(F=255),c[y]=c[y+1]=c[y+2]=F}}while(--v)}while(--f)},r.Factory.addGetterSetter(i.Node,"embossStrength",.5,a.getNumberValidator(),r.Factory.afterSetFilter),r.Factory.addGetterSetter(i.Node,"embossWhiteLevel",.5,a.getNumberValidator(),r.Factory.afterSetFilter),r.Factory.addGetterSetter(i.Node,"embossDirection","top-left",null,r.Factory.afterSetFilter),r.Factory.addGetterSetter(i.Node,"embossBlend",!1,null,r.Factory.afterSetFilter)},e667:function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}}},e6cf:function(t,e,n){"use strict";var r,i,o,a,s=n("23e7"),c=n("c430"),h=n("da84"),u=n("d066"),l=n("fea9"),f=n("6eeb"),d=n("e2cc"),p=n("d44e"),g=n("2626"),v=n("861d"),y=n("1c0b"),m=n("19aa"),_=n("8925"),b=n("2266"),w=n("1c7e"),x=n("4840"),S=n("2cf4").set,C=n("b575"),P=n("cdf9"),O=n("44de"),A=n("f069"),k=n("e667"),T=n("69f3"),F=n("94ca"),M=n("b622"),D=n("605d"),G=n("2d00"),E=M("species"),R="Promise",N=T.get,L=T.set,I=T.getterFor(R),j=l,U=h.TypeError,B=h.document,$=h.process,z=u("fetch"),V=A.f,H=V,W=!!(B&&B.createEvent&&h.dispatchEvent),K="function"==typeof PromiseRejectionEvent,Y="unhandledrejection",X="rejectionhandled",q=0,Q=1,J=2,Z=1,tt=2,et=F(R,(function(){var t=_(j)!==String(j);if(!t){if(66===G)return!0;if(!D&&!K)return!0}if(c&&!j.prototype["finally"])return!0;if(G>=51&&/native code/.test(j))return!1;var e=j.resolve(1),n=function(t){t((function(){}),(function(){}))},r=e.constructor={};return r[E]=n,!(e.then((function(){}))instanceof n)})),nt=et||!w((function(t){j.all(t)["catch"]((function(){}))})),rt=function(t){var e;return!(!v(t)||"function"!=typeof(e=t.then))&&e},it=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;C((function(){var r=t.value,i=t.state==Q,o=0;while(n.length>o){var a,s,c,h=n[o++],u=i?h.ok:h.fail,l=h.resolve,f=h.reject,d=h.domain;try{u?(i||(t.rejection===tt&&ct(t),t.rejection=Z),!0===u?a=r:(d&&d.enter(),a=u(r),d&&(d.exit(),c=!0)),a===h.promise?f(U("Promise-chain cycle")):(s=rt(a))?s.call(a,l,f):l(a)):f(r)}catch(p){d&&!c&&d.exit(),f(p)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&at(t)}
vendor: 4,446 bytes, line 7
7))}},ot=function(t,e,n){var r,i;W?(r=B.createEvent("Event"),r.promise=e,r.reason=n,r.initEvent(t,!1,!0),h.dispatchEvent(r)):r={promise:e,reason:n},!K&&(i=h["on"+t])?i(r):t===Y&&O("Unhandled promise rejection",n)},at=function(t){S.call(h,(function(){var e,n=t.facade,r=t.value,i=st(t);if(i&&(e=k((function(){D?$.emit("unhandledRejection",r,n):ot(Y,n,r)})),t.rejection=D||st(t)?tt:Z,e.error))throw e.value}))},st=function(t){return t.rejection!==Z&&!t.parent},ct=function(t){S.call(h,(function(){var e=t.facade;D?$.emit("rejectionHandled",e):ot(X,e,t.value)}))},ht=function(t,e,n){return function(r){t(e,r,n)}},ut=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=J,it(t,!0))},lt=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw U("Promise can't be resolved itself");var r=rt(e);r?C((function(){var n={done:!1};try{r.call(e,ht(lt,n,t),ht(ut,n,t))}catch(i){ut(n,i,t)}})):(t.value=e,t.state=Q,it(t,!1))}catch(i){ut({done:!1},i,t)}}};et&&(j=function(t){m(this,j,R),y(t),r.call(this);var e=N(this);try{t(ht(lt,e),ht(ut,e))}catch(n){ut(e,n)}},r=function(t){L(this,{type:R,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:q,value:void 0})},r.prototype=d(j.prototype,{then:function(t,e){var n=I(this),r=V(x(this,j));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=D?$.domain:void 0,n.parent=!0,n.reactions.push(r),n.state!=q&&it(n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r,e=N(t);this.promise=t,this.resolve=ht(lt,e),this.reject=ht(ut,e)},A.f=V=function(t){return t===j||t===o?new i(t):H(t)},c||"function"!=typeof l||(a=l.prototype.then,f(l.prototype,"then",(function(t,e){var n=this;return new j((function(t,e){a.call(n,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof z&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return P(j,z.apply(h,arguments))}}))),s({global:!0,wrap:!0,forced:et},{Promise:j}),p(j,R,!1,!0),g(R),o=u(R),s({target:R,stat:!0,forced:et},{reject:function(t){var e=V(this);return e.reject.call(void 0,t),e.promise}}),s({target:R,stat:!0,forced:c||et},{resolve:function(t){return P(c&&this===o?j:this,t)}}),s({target:R,stat:!0,forced:nt},{all:function(t){var e=this,n=V(e),r=n.resolve,i=n.reject,o=k((function(){var n=y(e.resolve),o=[],a=0,s=1;b(t,(function(t){var c=a++,h=!1;o.push(void 0),s++,n.call(e,t).then((function(t){h||(h=!0,o[c]=t,--s||r(o))}),i)})),--s||r(o)}));return o.error&&i(o.value),n.promise},race:function(t){var e=this,n=V(e),r=n.reject,i=k((function(){var i=y(e.resolve);b(t,(function(t){i.call(e,t).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}})},e893:function(t,e,n){var r=n("5135"),i=n("56ef"),o=n("06cf"),a=n("9bf2");t.exports=function(t,e){for(var n=i(e),s=a.f,c=o.f,h=0;h<n.length;h++){var u=n[h];r(t,u)||s(t,u,c(e,u))}}},e8b5:function(t,e,n){var r=n("c6b6");t.exports=Array.isArray||function(t){return"Array"==r(t)}},e95a:function(t,e,n){var r=n("b622"),i=n("3f8c"),o=r("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||a[o]===t)}},ea61:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n("9cb8"),o=n("f0b4"),a=n("4971"),s=n("df93"),c=n("4546"),h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.children=new i.Collection,e}return r(e,t),e.prototype.getChildren=function(t){if(!t)return this.children;var e=new i.Collection;return this.children.each((function(n){t(n)&&e.push(n)})),e},e.prototype.hasChildren=function(){return this.getChildren().length>0},e.prototype.removeChildren=function(){for(var t,e=0;e<this.children.length;e++)t=this.children[e],t.parent=null,t.index=0,t.remove();return this.children=new i.Collection,this},e.prototype.destroyChildren=function(){for(var t,e=0;e<this.children.length;e++)t=this.children[e],t.parent=null,t.index=0,t.destroy();return this.children=new i.Collection,this},e.prototype.add=function(t){if(arguments.length>1){for(var e=0;e<arguments.length;e++)this.add(arguments[e]);return this}if(t.getParent())return t.moveTo(this),this;var n=this.children;
7return this._validateAdd(t),t.index=n.length,t.parent=this,n.push(t),this._fire("add",{child:t}),t.isDragging()&&s.DD.anim.setLayers(t.getLayer()),this},e.prototype.destroy=function(){return this.hasChildren()&&this.destroyChildren(),t.prototype.destroy.call(this),this},e.prototype.find=function(t){return this._generalFind(t,!1)},e.prototype.get=function(t){return i.Util.warn("collection.get() method is deprecated. Please use collection.find() instead."),this.find(t)},e.prototype.findOne=function(t){var e=this._generalFind(t,!0);return e.length>0?e[0]:void 0},e.prototype._generalFind=function(t,e){var n=[];return this._descendants((function(r){var i=r._isMatch(t);return i&&n.push(r),!(!i||!e)})),i.Collection.toCollection(n)},e.prototype._descendants=function(t){for(var e=!1,n=0;n<this.children.length;n++){var r=this.children[n];if(e=t(r),e)return!0;if(r.hasChildren()&&(e=r._descendants(t),e))return!0}return!1},e.prototype.toObject=function(){var t=a.Node.prototype.toObject.call(this);t.children=[];for(var e=this.getChildren(),n=e.length,r=0;r<n;r++){var i=e[r];t.children.push(i.toObject())}return t},e.prototype._getDescendants=function(t){for(var e=[],n=t.length,r=0;r<n;r++){var i=t[r];this.isAncestorOf(i)&&e.push(i)}return e},e.prototype.isAncestorOf=function(t){var e=t.getParent();while(e){if(e._id===this._id)return!0;e=e.getParent()}return!1},e.prototype.clone=function(t){var e=a.Node.prototype.clone.call(this,t);return this.getChildren().each((function(t){e.add(t.clone())})),e},e.prototype.getAllIntersections=function(t){var e=[];return this.find("Shape").each((function(n){n.isVisible()&&n.intersects(t)&&e.push(n)})),e},e.prototype._setChildrenIndices=function(){this.children.each((function(t,e){t.index=e}))},e.prototype.drawScene=function(t,e,n){var r=this.getLayer(),i=t||r&&r.getCanvas(),o=i&&i.getContext(),a=this._getCanvasCache(),s=a&&a.scene;return(this.isVisible()||n)&&(!n&&s?(o.save(),r._applyTransform(this,o,e),this._drawCachedSceneCanvas(o),o.restore()):this._drawChildren(i,"drawScene",e,!1,n,n)),this},e.prototype.drawHit=function(t,e,n){var r=this.getLayer(),i=t||r&&r.hitCanvas,o=i&&i.getContext(),a=this._getCanvasCache(),s=a&&a.hit;return(this.shouldDrawHit(i)||n)&&(!n&&s?(o.save(),r._applyTransform(this,o,e),this._drawCachedHitCanvas(o),o.restore()):this._drawChildren(i,"drawHit",e,!1,n,n)),this},e.prototype._drawChildren=function(t,e,n,r,i,o){var a,s,c=this.getLayer(),h=t&&t.getContext(),u=this.clipWidth(),l=this.clipHeight(),f=this.clipFunc(),d=u&&l||f;if(d&&c){h.save();var p=this.getAbsoluteTransform(n),g=p.getMatrix();h.transform(g[0],g[1],g[2],g[3],g[4],g[5]),h.beginPath(),f?f.call(this,h,this):(a=this.clipX(),s=this.clipY(),h.rect(a,s,u,l)),h.clip(),g=p.copy().invert().getMatrix(),h.transform(g[0],g[1],g[2],g[3],g[4],g[5])}var v="source-over"!==this.globalCompositeOperation()&&!o;v&&c&&(h.save(),h._applyGlobalCompositeOperation(this)),this.children.each((function(o){o[e](t,n,r,i)}
7)),v&&c&&h.restore(),d&&c&&h.restore()},e.prototype.shouldDrawHit=function(t){var e=this.getLayer(),n=s.DD.isDragging&&-1!==s.DD.anim.getLayers().indexOf(e);return t&&t.isCache||e&&e.hitGraphEnabled()&&this.isVisible()&&!n},e.prototype.getClientRect=function(t){t=t||{};var e,n,r,i,o=t.skipTransform,a=t.relativeTo,s={x:1/0,y:1/0,width:0,height:0},c=this;this.children.each((function(o){if(o.visible()){var a=o.getClientRect({relativeTo:c,skipShadow:t.skipShadow,skipStroke:t.skipStroke});0===a.width&&0===a.height||(void 0===e?(e=a.x,n=a.y,r=a.x+a.width,i=a.y+a.height):(e=Math.min(e,a.x),n=Math.min(n,a.y),r=Math.max(r,a.x+a.width),i=Math.max(i,a.y+a.height)))}}));for(var h=this.find("Shape"),u=!1,l=0;l<h.length;l++){var f=h[l];if(f._isVisible(this)){u=!0;break}}return s=u?{x:e,y:n,width:r-e,height:i-n}:{x:0,y:0,width:0,height:0},o?s:this._transformedRect(s,a)},e}(a.Node);e.Container=h,o.Factory.addComponentsGetterSetter(h,"clip",["x","y","width","height"]),o.Factory.addGetterSetter(h,"clipX",void 0,c.getNumberValidator()),o.Factory.addGetterSetter(h,"clipY",void 0,c.getNumberValidator()),o.Factory.addGetterSetter(h,"clipWidth",void 0,c.getNumberValidator()),o.Factory.addGetterSetter(h,"clipHeight",void 0,c.getNumberValidator()),o.Factory.addGetterSetter(h,"clipFunc"),i.Collection.mapMethods(h)},eba4:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n("9cb8"),o=n("f0b4"),a=n("ea61"),s=n("d777"),c=n("f655"),h=n("df93"),u=n("d777"),l=n("7d2a"),f="Stage",d="string",p="px",g="mouseout",v="mouseleave",y="mouseover",m="mouseenter",_="mousemove",b="mousedown",w="mouseup",x="pointermove",S="pointerdown",C="pointerup",P="pointercancel",O="lostpointercapture",A="contextmenu",k="click",T="dblclick",F="touchstart",M="touchend",D="tap",G="dbltap",E="touchmove",R="wheel",N="contentMouseout",L="contentMouseover",I="contentMousemove",j="contentMousedown",U="contentMouseup",B="contentContextmenu",$="contentClick",z="contentDblclick",V="contentTouchstart",H="contentTouchend",W="contentDbltap",K="contentTap",Y="contentTouchmove",X="contentWheel",q="relative",Q="konvajs-content",J="_",Z="container",tt=5,et="",nt=[m,b,_,w,g,F,E,M,y,R,A,S,x,C,P,O],rt=nt.length;function it(t,e){t.content.addEventListener(e,(function(n){t[J+e](n)}),!1)}var ot="Pointer position is missing and not registered by the stage. Looks like it is outside of the stage container. You can set it manually from event: stage.setPointersPositions(event);";function at(t){return void 0===t&&(t={}),(t.clipFunc||t.clipWidth||t.clipHeight)&&i.Util.warn("Stage does not support clipping. Please use clip for Layers or Groups."),t}e.stages=[];var st=function(t){function n(n){var r=t.call(this,at(n))||this;return r._buildDOM(),r._bindContentEvents(),e.stages.push(r),r.on("widthChange.konva heightChange.konva",r._resizeDOM),r.on("visibleChange.konva",r._checkVisibility),r.on("clipWidthChange.konva clipHeightChange.konva clipFuncChange.konva",(function(){at(r.attrs)})),r._checkVisibility(),r}return r(n,t),n.prototype._validateAdd=function(t){var e="Layer"===t.getType(),n="FastLayer"===t.getType(),r=e||n;r||i.Util.throw("You may only add layers to the stage.")},n.prototype._checkVisibility=function(){var t=this.visible()?"":"none";this.content.style.display=t},n.prototype.setContainer=function(t){if(typeof t===d){if("."===t.charAt(0)){var e=t.slice(1);t=document.getElementsByClassName(e)[0]}else{var n;n="#"!==t.charAt(0)?t:t.slice(1),t=document.getElementById(n)}if(!t)throw"Can not find container in document with id "+n}return this._setAttr(Z,t),this.content&&(this.content.parentElement&&this.content.parentElement.removeChild(this.content),t.appendChild(this.content)),this},n.prototype.shouldDrawHit=function(){return!0},n.prototype.clear=function(){var t,e=this.children,n=e.length;for(t=0;t<n;t++)e[t].clear();return this},n.prototype.clone=function(t){return t||(t={}),t.container=document.createElement("div"),a.Container.prototype.clone.call(this,t)},n.prototype.destroy=function(){t.prototype.destroy.call(this);var n=this.content;n&&i.Util._isInDocument(n)&&this.container().removeChild(n);var r=e.stages.indexOf(this);return r>-1&&e.stages.splice(r,1),this},n.prototype.getPointerPosition=function(){return this.pointerPos||i.Util.warn(ot),this.pointerPos},n.prototype.getStage=function(){return this},n.prototype.getContent=function(){return this.content},n.prototype._toKonvaCanvas=function(t){t=t||{};var e=t.x||0,n=t.y||0,r=new c.SceneCanvas({width:t.width||this.width(),height:t.height||this.height(),pixelRatio:t.pixelRatio||1}),i=r.getContext()._context,o=this.children;return(e||n)&&i.translate(-1*e,-1*n),o.each((function(r){if(r.isVisible()){var o=r._toKonvaCanvas(t);i.drawImage(o._canvas,e,n,o.getWidth()/o.getPixelRatio(),o.getHeight()/o.getPixelRatio())}})),r},n.prototype.getIntersection=function(t,e){var n,r,i=this.children,o=i.length,a=o-1;for(n=a;n>=0;n--)if(r=i[n].getIntersection(t,e),r)return r;return null},n.prototype._resizeDOM=function(){if(this.content){var t,e,n=this.width(),r=this.height(),i=this.getChildren(),o=i.length;for(this.content.style.width=n+p,this.content.style.height=r+p,this.bufferCanvas.setSize(n,r),this.bufferHitCanvas.setSize(n,r),t=0;t<o;t++)e=i[t],e.setSize({width:n,height:r}),e.draw()}},n.prototype.add=function(e){if(arguments.length>1){for(var n=0;n<arguments.length;n++)this.add(arguments[n]);return this}t.prototype.add.call(this,e);var r=this.children.length;return r>tt&&i.Util.warn("The stage has "+r+" layers. Recommended maximin number of layers is 3-5. Adding more layers into the stage may drop the performance. Rethink your tree structure, you can use Konva.Group."),e._setCanvasSize(this.width(),this.height()),e.draw(),s.Konva.isBrowser&&this.content.appendChild(e.canvas._canvas),this},n.prototype.getParent=function(){return null},n.prototype.getLayer=function(){return null},n.prototype.hasPointerCapture=function(t){return l.hasPointerCapture(t,this)},n.prototype.setPointerCapture=function(t){l.setPointerCapture(t,this)},n.prototype.releaseCapture=function(t){l.releaseCapture(t,this)},n.prototype.getLayers=function(){return this.getChildren()},n.prototype._bindContentEvents=function(){if(s.Konva.isBrowser)for(var t=0;t<rt;t++)it(this,nt[t])},n.prototype._mouseenter=function(t){this.setPointersPositions(t),this._fire(m,{evt:t,target:this,currentTarget:this})},n.prototype._mouseover=function(t){this.setPointersPositions(t),this._fire(L,{evt:t}),this._fire(y,{evt:t,target:this,currentTarget:this})},n.prototype._mouseout=function(t){this.setPointersPositions(t);var e=this.targetShape;e&&!h.DD.isDragging?(e._fireAndBubble(g,{evt:t}),e._fireAndBubble(v,{evt:t}),this.targetShape=null):h.DD.isDragging||(this._fire(v,{evt:t,target:this,currentTarget:this}),this._fire(g,{evt:t,target:this,currentTarget:this})),this.pointerPos=void 0,this._fire(N,{evt:t})},n.prototype._mousemove=function(t){if(s.Konva.UA.ieMobile)return this._touchmove(t);var e;if(this.setPointersPositions(t),!h.DD.isDragging){if(e=this.getIntersection(this.getPointerPosition()),e&&e.isListening()){var n=!this.targetShape||this.targetShape!==e;!h.DD.isDragging&&n?(this.targetShape&&(this.targetShape._fireAndBubble(g,{evt:t},e),this.targetShape._fireAndBubble(v,{evt:t},e)),e._fireAndBubble(y,{evt:t},this.targetShape),e._fireAndBubble(m,{evt:t},this.targetShape),this.targetShape=e):e._fireAndBubble(_,{evt:t})}else this.targetShape&&!h.DD.isDragging&&(this.targetShape._fireAndBubble(g,{evt:t}),this.targetShape._fireAndBubble(v,{evt:t}),this._fire(y,{evt:t,target:this,currentTarget:this}),this.targetShape=null),this._fire(_,{evt:t,target:this,currentTarget:this});this._fire(I,{evt:t})}t.cancelable&&t.preventDefault()},n.prototype._mousedown=function(t){if(s.Konva.UA.ieMobile)return this._touchstart(t);this.setPointersPositions(t);var e=this.getIntersection(this.getPointerPosition());s.Konva.listenClickTap=!0,e&&e.isListening()?(this.clickStartShape=e,e._fireAndBubble(b,{evt:t})):this._fire(b,{evt:t,target:this,currentTarget:this}),this._fire(j,{evt:t})},n.prototype._mouseup=function(t){if(s.Konva.UA.ieMobile)return this._touchend(t);this.setPointersPositions(t);var e=this.getIntersection(this.getPointerPosition()),n=this.clickStartShape,r=this.clickEndShape,i=!1;s.Konva.inDblClickWindow?(i=!0,clearTimeout(this.dblTimeout)):h.DD.justDragged?h.DD&&(h.DD.justDragged=!1):(s.Konva.inDblClickWindow=!0,clearTimeout(this.dblTimeout)),this.dblTimeout=setTimeout((function(){s.Konva.inDblClickWindow=!1}),s.Konva.dblClickWindow),e&&e.isListening()?(this.clickEndShape=e,e._fireAndBubble(w,{evt:t}),s.Konva.listenClickTap&&n&&n._id===e._id&&(e._fireAndBubble(k,{evt:t}),i&&r&&r===e&&e._fireAndBubble(T,{evt:t}))):(this._fire(w,{evt:t,target:this,currentTarget:this}),s.Konva.listenClickTap&&this._fire(k,{evt:t,target:this,currentTarget:this}),i&&this._fire(T,{evt:t,target:this,currentTarget:this})),this._fire(U,{evt:t}),s.Konva.listenClickTap&&(this._fire($,{evt:t}),i&&this._fire(z,{evt:t})),s.Konva.listenClickTap=!1,t.cancelable&&t.preventDefault()},n.prototype._contextmenu=function(t){this.setPointersPositions(t);var e=this.getIntersection(this.getPointerPosition());e&&e.isListening()?e._fireAndBubble(A,{evt:t}):this._fire(A,{evt:t,target:this,currentTarget:this}),this._fire(B,{evt:t})},n.prototype._touchstart=function(t){this.setPointersPositions(t);var e=this.getIntersection(this.getPointerPosition());s.Konva.listenClickTap=!0,e&&e.isListening()?(this.tapStartShape=e,e._fireAndBubble(F,{evt:t}),e.isListening()&&e.preventDefault()&&t.cancelable&&t.preventDefault()):this._fire(F,{evt:t,target:this,currentTarget:this}),this._fire(V,{evt:t})},n.prototype._touchend=function(t){this.setPointersPositions(t);var e=this.getIntersection(this.getPointerPosition()),n=this.clickEndShape,r=!1;s.Konva.inDblClickWindow?(r=!0,clearTimeout(this.dblTimeout)):(s.Konva.inDblClickWindow=!0,clearTimeout(this.dblTimeout)),this.dblTimeout=setTimeout((function(){s.Konva.inDblClickWindow=!1}),s.Konva.dblClickWindow),e&&e.isListening()?(this.clickEndShape=e,e._fireAndBubble(M,{evt:t}),s.Konva.listenClickTap&&this.tapStartShape&&e._id===this.tapStartShape._id&&(e._fireAndBubble(D,{evt:t}),r&&n&&n===e&&e._fireAndBubble(G,{evt:t})),e.isListening()&&e.preventDefault()&&t.cancelable&&t.preventDefault()):(this._fire(M,{evt:t,target:this,currentTarget:this}),s.Konva.listenClickTap&&this._fire(D,{evt:t,target:this,currentTarget:this}),r&&this._fire(G,{evt:t,target:this,currentTarget:this})),this._fire(H,{evt:t}),s.Konva.listenClickTap&&(this._fire(K,{evt:t}),r&&this._fire(W,{evt:t})),s.Konva.listenClickTap=!1},n.prototype._touchmove=function(t){var e;this.setPointersPositions(t),h.DD.isDragging||(e=this.getIntersection(this.getPointerPosition()),e&&e.isListening()?(e._fireAndBubble(E,{evt:t}),e.isListening()&&e.preventDefault()&&t.cancelable&&t.preventDefault()):this._fire(E,{evt:t,target:this,currentTarget:this}),this._fire(Y,{evt:t})),h.DD.isDragging&&h.DD.node.preventDefault()&&t.cancelable&&t.preventDefault()},n.prototype._wheel=function(t){this.setPointersPositions(t);var e=this.getIntersection(this.getPointerPosition());e&&e.isListening()?e._fireAndBubble(R,{evt:t}):this._fire(R,{evt:t,target:this,currentTarget:this}),this._fire(X,{evt:t})},n.prototype._pointerdown=function(t){if(s.Konva._pointerEventsEnabled){this.setPointersPositions(t);var e=l.getCapturedShape(t.pointerId)||this.getIntersection(this.getPointerPosition());e&&e._fireAndBubble(S,l.createEvent(t))}},n.prototype._pointermove=function(t){if(s.Konva._pointerEventsEnabled){this.setPointersPositions(t);var e=l.getCapturedShape(t.pointerId)||this.getIntersection(this.getPointerPosition());e&&e._fireAndBubble(x,l.createEvent(t))}},n.prototype._pointerup=function(t){if(s.Konva._pointerEventsEnabled){this.setPointersPositions(t);var e=l.getCapturedShape(t.pointerId)||this.getIntersection(this.getPointerPosition());e&&e._fireAndBubble(C,l.createEvent(t)),l.releaseCapture(t.pointerId)}},n.prototype._pointercancel=function(t){if(s.Konva._pointerEventsEnabled){this.setPointersPositions(t);var e=l.getCapturedShape(t.pointerId)||this.getIntersection(this.getPointerPosition());e&&e._fireAndBubble(C,l.createEvent(t)),l.releaseCapture(t.pointerId)}},n.prototype._lostpointercapture=function(t){l.releaseCapture(t.pointerId)},n.prototype.setPointersPositions=function(t){var e=this._getContentPosition(),n=null,r=null;if(t=t||window.event,void 0!==t.touches){if(t.touches.length>0){var i=t.touches[0];n=i.clientX-e.left,r=i.clientY-e.top}}else n=t.clientX-e.left,r=t.clientY-e.top;null!==n&&null!==r&&(this.pointerPos={x:n,y:r})},n.prototype._setPointerPosition=function(t){i.Util.warn('Method _setPointerPosition is deprecated. Use "stage.setPointersPositions(event)" instead.'),this.setPointersPositions(t)},n.prototype._getContentPosition=function(){var t=this.content.getBoundingClientRect?this.content.getBoundingClientRect():{top:0,left:0};
7return{top:t.top,left:t.left}},n.prototype._buildDOM=function(){if(this.bufferCanvas=new c.SceneCanvas,this.bufferHitCanvas=new c.HitCanvas({pixelRatio:1}),s.Konva.isBrowser){var t=this.container();if(!t)throw"Stage has no container. A container is required.";t.innerHTML=et,this.content=document.createElement("div"),this.content.style.position=q,this.content.style.userSelect="none",this.content.className=Q,this.content.setAttribute("role","presentation"),t.appendChild(this.content),this._resizeDOM()}},n.prototype.cache=function(){return i.Util.warn("Cache function is not allowed for stage. You may use cache only for layers, groups and shapes."),this},n.prototype.clearCache=function(){return this},n.prototype.batchDraw=function(){return this.children.each((function(t){t.batchDraw()})),this},n}(a.Container);e.Stage=st,st.prototype.nodeType=f,u._registerNode(st),o.Factory.addGetterSetter(st,"container")},ed3d:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("d777"),i=function(){return r.glob.performance&&r.glob.performance.now?function(){return r.glob.performance.now()}:function(){return(new Date).getTime()}}(),o=function(){function t(e,n){this.id=t.animIdCounter++,this.frame={time:0,timeDiff:0,lastTime:i(),frameRate:0},this.func=e,this.setLayers(n)}return t.prototype.setLayers=function(t){var e=[];return e=t?t.length>0?t:[t]:[],this.layers=e,this},t.prototype.getLayers=function(){return this.layers},t.prototype.addLayer=function(t){var e,n=this.layers,r=n.length;for(e=0;e<r;e++)if(n[e]._id===t._id)return!1;return this.layers.push(t),!0},t.prototype.isRunning=function(){var e,n=t,r=n.animations,i=r.length;for(e=0;e<i;e++)if(r[e].id===this.id)return!0;return!1},t.prototype.start=function(){return this.stop(),this.frame.timeDiff=0,this.frame.lastTime=i(),t._addAnimation(this),this},t.prototype.stop=function(){return t._removeAnimation(this),this},t.prototype._updateFrameObject=function(t){this.frame.timeDiff=t-this.frame.lastTime,this.frame.lastTime=t,this.frame.time+=this.frame.timeDiff,this.frame.frameRate=1e3/this.frame.timeDiff},t._addAnimation=function(t){this.animations.push(t),this._handleAnimation()},t._removeAnimation=function(t){var e,n=t.id,r=this.animations,i=r.length;for(e=0;e<i;e++)if(r[e].id===n){this.animations.splice(e,1);break}},t._runFrames=function(){var t,e,n,r,o,a,s,c,h,u={},l=this.animations;for(r=0;r<l.length;r++)if(t=l[r],e=t.layers,n=t.func,t._updateFrameObject(i()),a=e.length,h=!n||!1!==n.call(t,t.frame),h)for(o=0;o<a;o++)s=e[o],void 0!==s._id&&(u[s._id]=s);for(c in u)u.hasOwnProperty(c)&&u[c].draw()},t._animationLoop=function(){var e=t;e.animations.length?(e._runFrames(),requestAnimationFrame(e._animationLoop)):e.animRunning=!1},t._handleAnimation=function(){this.animRunning||(this.animRunning=!0,requestAnimationFrame(this._animationLoop))},t.animations=[],t.animIdCounter=0,t.animRunning=!1,t}();e.Animation=o},f069:function(t,e,n){"use strict";var r=n("1c0b"),i=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new i(t)}},f0b4:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("9cb8"),i=n("4546"),o="get",a="set";e.Factory={addGetterSetter:function(t,e,n,r,i){this.addGetter(t,e,n),this.addSetter(t,e,r,i),this.addOverloadedGetterSetter(t,e)},addGetter:function(t,e,n){var i=o+r.Util._capitalize(e);t.prototype[i]=t.prototype[i]||function(){var t=this.attrs[e];return void 0===t?n:t}},addSetter:function(t,n,i,o){var s=a+r.Util._capitalize(n);t.prototype[s]||e.Factory.overWriteSetter(t,n,i,o)},overWriteSetter:function(t,e,n,i){var o=a+r.Util._capitalize(e);t.prototype[o]=function(t){return n&&void 0!==t&&null!==t&&(t=n.call(this,t,e)),this._setAttr(e,t),i&&i.call(this),this}},addComponentsGetterSetter:function(t,e,n,s,c){var h,u,l=n.length,f=r.Util._capitalize,d=o+f(e),p=a+f(e);t.prototype[d]=function(){var t={};for(h=0;h<l;h++)u=n[h],t[u]=this.getAttr(e+f(u));return t};var g=i.getComponentValidator(n);t.prototype[p]=function(t){var n,r=this.attrs[e];for(n in s&&(t=s.call(this,t)),g&&g.call(this,t,e),t)t.hasOwnProperty(n)&&this._setAttr(e+f(n),t[n]);return this._fireChangeEvent(e,r,t),c&&c.call(this),this},this.addOverloadedGetterSetter(t,e)}
7,addOverloadedGetterSetter:function(t,e){var n=r.Util._capitalize(e),i=a+n,s=o+n;t.prototype[e]=function(){return arguments.length?(this[i](arguments[0]),this):this[s]()}},addDeprecatedGetterSetter:function(t,e,n,i){r.Util.error("Adding deprecated "+e);var a=o+r.Util._capitalize(e),s=e+" property is deprecated and will be removed soon. Look at Konva change log for more information.";t.prototype[a]=function(){r.Util.error(s);var t=this.attrs[e];return void 0===t?n:t},this.addSetter(t,e,i,(function(){r.Util.error(s)})),this.addOverloadedGetterSetter(t,e)},backCompat:function(t,e){r.Util.each(e,(function(e,n){var i=t.prototype[n],s=o+r.Util._capitalize(e),c=a+r.Util._capitalize(e);function h(){i.apply(this,arguments),r.Util.error('"'+e+'" method is deprecated and will be removed soon. Use ""'+n+'" instead.')}t.prototype[e]=h,t.prototype[s]=h,t.prototype[c]=h}))},afterSetFilter:function(){this._filterUpToDate=!1}}},f35c:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n("9cb8"),o=n("ea61"),a=n("d777"),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype._validateAdd=function(t){var e=t.getType();"Group"!==e&&"Shape"!==e&&i.Util.throw("You may only add groups and shapes to groups.")},e}(o.Container);e.Group=s,s.prototype.nodeType="Group",a._registerNode(s),i.Collection.mapMethods(s)},f5df:function(t,e,n){var r=n("00ee"),i=n("c6b6"),o=n("b622"),a=o("toStringTag"),s="Arguments"==i(function(){return arguments}()),c=function(t,e){try{return t[e]}catch(n){}};t.exports=r?i:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=c(e=Object(t),a))?n:s?i(e):"Object"==(r=i(e))&&"function"==typeof e.callee?"Arguments":r}},f655:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i,o=n("9cb8"),a=n("c527"),s=n("d777"),c=n("f0b4"),h=n("4546");function u(){if(i)return i;var t=o.Util.createCanvasElement(),e=t.getContext("2d");return i=function(){var t=s.Konva._global.devicePixelRatio||1,n=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return t/n}(),i}var l=function(){function t(t){this.pixelRatio=1,this.width=0,this.height=0,this.isCache=!1;var e=t||{},n=e.pixelRatio||s.Konva.pixelRatio||u();this.pixelRatio=n,this._canvas=o.Util.createCanvasElement(),this._canvas.style.padding="0",this._canvas.style.margin="0",this._canvas.style.border="0",this._canvas.style.background="transparent",this._canvas.style.position="absolute",this._canvas.style.top="0",this._canvas.style.left="0"}return t.prototype.getContext=function(){return this.context},t.prototype.getPixelRatio=function(){return this.pixelRatio},t.prototype.setPixelRatio=function(t){var e=this.pixelRatio;this.pixelRatio=t,this.setSize(this.getWidth()/e,this.getHeight()/e)},t.prototype.setWidth=function(t){this.width=this._canvas.width=t*this.pixelRatio,this._canvas.style.width=t+"px";var e=this.pixelRatio,n=this.getContext()._context;n.scale(e,e)},t.prototype.setHeight=function(t){this.height=this._canvas.height=t*this.pixelRatio,this._canvas.style.height=t+"px";var e=this.pixelRatio,n=this.getContext()._context;n.scale(e,e)},t.prototype.getWidth=function(){return this.width},t.prototype.getHeight=function(){return this.height},t.prototype.setSize=function(t,e){this.setWidth(t),this.setHeight(e)},t.prototype.toDataURL=function(t,e){try{return this._canvas.toDataURL(t,e)}catch(n){try{return this._canvas.toDataURL()}catch(r){return o.Util.error("Unable to get data URL. "+r.message),""}}},t}();e.Canvas=l,c.Factory.addGetterSetter(l,"pixelRatio",void 0,h.getNumberValidator());var f=function(t){function e(e){void 0===e&&(e={width:0,height:0});var n=t.call(this,e)||this;return n.context=new a.SceneContext(n),n.setSize(e.width,e.height),n}return r(e,t),e}(l);e.SceneCanvas=f;var d=function(t){function e(e){void 0===e&&(e={width:0,height:0});var n=t.call(this,e)||this;return n.hitCanvas=!0,n.context=new a.HitContext(n),n.setSize(e.width,e.height),n}return r(e,t),e}(l);e.HitCanvas=d},f709:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();
7Object.defineProperty(e,"__esModule",{value:!0});var i=n("9cb8"),o=n("f0b4"),a=n("fce6"),s=n("4546"),c=n("d777"),h=function(t){function e(e){var n=t.call(this,e)||this;return n.on("pointsChange.konva tensionChange.konva closedChange.konva bezierChange.konva",(function(){this._clearCache("tensionPoints")})),n}return r(e,t),e.prototype._sceneFunc=function(t){var e,n,r,i=this.points(),o=i.length,a=this.tension(),s=this.closed(),c=this.bezier();if(o){if(t.beginPath(),t.moveTo(i[0],i[1]),0!==a&&o>4){e=this.getTensionPoints(),n=e.length,r=s?0:4,s||t.quadraticCurveTo(e[0],e[1],e[2],e[3]);while(r<n-2)t.bezierCurveTo(e[r++],e[r++],e[r++],e[r++],e[r++],e[r++]);s||t.quadraticCurveTo(e[n-2],e[n-1],i[o-2],i[o-1])}else if(c){r=2;while(r<o)t.bezierCurveTo(i[r++],i[r++],i[r++],i[r++],i[r++],i[r++])}else for(r=2;r<o;r+=2)t.lineTo(i[r],i[r+1]);s?(t.closePath(),t.fillStrokeShape(this)):t.strokeShape(this)}},e.prototype.getTensionPoints=function(){return this._getCache("tensionPoints",this._getTensionPoints)},e.prototype._getTensionPoints=function(){return this.closed()?this._getTensionPointsClosed():i.Util._expandPoints(this.points(),this.tension())},e.prototype._getTensionPointsClosed=function(){var t=this.points(),e=t.length,n=this.tension(),r=i.Util._getControlPoints(t[e-2],t[e-1],t[0],t[1],t[2],t[3],n),o=i.Util._getControlPoints(t[e-4],t[e-3],t[e-2],t[e-1],t[0],t[1],n),a=i.Util._expandPoints(t,n),s=[r[2],r[3]].concat(a).concat([o[0],o[1],t[e-2],t[e-1],o[2],o[3],r[0],r[1],t[0],t[1]]);return s},e.prototype.getWidth=function(){return this.getSelfRect().width},e.prototype.getHeight=function(){return this.getSelfRect().height},e.prototype.getSelfRect=function(){var t;t=0!==this.tension()?this._getTensionPoints():this.points();for(var e,n,r=t[0],i=t[0],o=t[1],a=t[1],s=0;s<t.length/2;s++)e=t[2*s],n=t[2*s+1],r=Math.min(r,e),i=Math.max(i,e),o=Math.min(o,n),a=Math.max(a,n);return{x:Math.round(r),y:Math.round(o),width:Math.round(i-r),height:Math.round(a-o)}},e}(a.Shape);e.Line=h,h.prototype.className="Line",h.prototype._attrsAffectingSize=["points","bezier","tension"],c._registerNode(h),o.Factory.addGetterSetter(h,"closed",!1),o.Factory.addGetterSetter(h,"bezier",!1),o.Factory.addGetterSetter(h,"tension",0,s.getNumberValidator()),o.Factory.addGetterSetter(h,"points",[],s.getNumberArrayValidator()),i.Collection.mapMethods(h)},f772:function(t,e,n){var r=n("5692"),i=n("90e3"),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},fc6a:function(t,e,n){var r=n("44ad"),i=n("1d80");t.exports=function(t){return r(i(t))}},fce6:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i,o=n("9cb8"),a=n("f0b4"),s=n("4971"),c=n("4546"),h=n("d777"),u=n("7d2a"),l="hasShadow",f="shadowRGBA",d="patternImage",p="linearGradient",g="radialGradient";function v(){return i||(i=o.Util.createCanvasElement().getContext("2d"),i)}function y(t){t.fill()}function m(t){t.stroke()}function _(t){t.fill()}function b(t){t.stroke()}function w(){this._clearCache(l)}function x(){this._clearCache(f)}function S(){this._clearCache(d)}function C(){this._clearCache(p)}function P(){this._clearCache(g)}e.shapes={};var O=function(t){function n(n){var r,i=t.call(this,n)||this;while(1)if(r=o.Util.getRandomColor(),r&&!(r in e.shapes))break;return i.colorKey=r,e.shapes[r]=i,i.on("shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",w),i.on("shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",x),i.on("fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva",S),i.on("fillPriorityChange.konva fillLinearGradientColorStopsChange.konva fillLinearGradientStartPointXChange.konva fillLinearGradientStartPointYChange.konva fillLinearGradientEndPointXChange.konva fillLinearGradientEndPointYChange.konva",C),i.on("fillPriorityChange.konva fillRadialGradientColorStopsChange.konva fillRadialGradientStartPointXChange.konva fillRadialGradientStartPointYChange.konva fillRadialGradientEndPointXChange.konva fillRadialGradientEndPointYChange.konva fillRadialGradientStartRadiusChange.konva fillRadialGradientEndRadiusChange.konva",P),i}return r(n,t),n.prototype.getContext=function(){return this.getLayer().getContext()},n.prototype.getCanvas=function(){return this.getLayer().getCanvas()},n.prototype.getSceneFunc=function(){return this.attrs.sceneFunc||this["_sceneFunc"]},n.prototype.getHitFunc=function(){return this.attrs.hitFunc||this["_hitFunc"]},n.prototype.hasShadow=function(){return this._getCache(l,this._hasShadow)},n.prototype._hasShadow=function(){return this.shadowEnabled()&&0!==this.shadowOpacity()&&!!(this.shadowColor()||this.shadowBlur()||this.shadowOffsetX()||this.shadowOffsetY())},n.prototype._getFillPattern=function(){return this._getCache(d,this.__getFillPattern)},n.prototype.__getFillPattern=function(){if(this.fillPatternImage()){var t=v();return t.createPattern(this.fillPatternImage(),this.fillPatternRepeat()||"repeat")}},n.prototype._getLinearGradient=function(){return this._getCache(p,this.__getLinearGradient)},n.prototype.__getLinearGradient=function(){var t=this.fillLinearGradientColorStops();if(t){for(var e=v(),n=this.fillLinearGradientStartPoint(),r=this.fillLinearGradientEndPoint(),i=e.createLinearGradient(n.x,n.y,r.x,r.y),o=0;o<t.length;o+=2)i.addColorStop(t[o],t[o+1]);return i}},n.prototype._getRadialGradient=function(){return this._getCache(g,this.__getRadialGradient)},n.prototype.__getRadialGradient=function(){var t=this.fillRadialGradientColorStops();if(t){for(var e=v(),n=this.fillRadialGradientStartPoint(),r=this.fillRadialGradientEndPoint(),i=e.createRadialGradient(n.x,n.y,this.fillRadialGradientStartRadius(),r.x,r.y,this.fillRadialGradientEndRadius()),o=0;o<t.length;o+=2)i.addColorStop(t[o],t[o+1]);return i}},n.prototype.getShadowRGBA=function(){return this._getCache(f,this._getShadowRGBA)},n.prototype._getShadowRGBA=function(){if(this.hasShadow()){var t=o.Util.colorToRGBA(this.shadowColor());return"rgba("+t.r+","+t.g+","+t.b+","+t.a*(this.shadowOpacity()||1)+")"}},n.prototype.hasFill=function(){return!!(this.fill()||this.fillPatternImage()||this.fillLinearGradientColorStops()||this.fillRadialGradientColorStops())},n.prototype.hasStroke=function(){return this.strokeEnabled()&&this.strokeWidth()&&!(!this.stroke()&&!this.strokeLinearGradientColorStops())},n.prototype.intersects=function(t){var e,n=this.getStage(),r=n.bufferHitCanvas;return r.getContext().clear(),this.drawHit(r),e=r.context.getImageData(Math.round(t.x),Math.round(t.y),1,1).data,e[3]>0},n.prototype.destroy=function(){return s.Node.prototype.destroy.call(this),delete e.shapes[this.colorKey],delete this.colorKey,this},n.prototype._useBufferCanvas=function(t){return!(t&&!this.hasShadow()||!this.perfectDrawEnabled()||1===this.getAbsoluteOpacity()||!this.hasFill()||!this.hasStroke()||!this.getStage())},n.prototype.setStrokeHitEnabled=function(t){t?this.hitStrokeWidth("auto"):this.hitStrokeWidth(0)},n.prototype.getStrokeHitEnabled=function(){return 0!==this.hitStrokeWidth()},n.prototype.getSelfRect=function(){var t=this.size();return{x:this._centroid?Math.round(-t.width/2):0,y:this._centroid?Math.round(-t.height/2):0,width:t.width,height:t.height}},n.prototype.getClientRect=function(t){t=t||{};var e=t.skipTransform,n=t.relativeTo,r=this.getSelfRect(),i=!t.skipStroke&&this.hasStroke(),o=i&&this.strokeWidth()||0,a=r.width+o,s=r.height+o,c=!t.skipShadow&&this.hasShadow(),h=c?this.shadowOffsetX():0,u=c?this.shadowOffsetY():0,l=a+Math.abs(h),f=s+Math.abs(u),d=c&&this.shadowBlur()||0,p=l+2*d,g=f+2*d,v=0;Math.round(o/2)!==o/2&&(v=1);var y={width:p+v,height:g+v,x:-Math.round(o/2+d)+Math.min(h,0)+r.x,y:-Math.round(o/2+d)+Math.min(u,0)+r.y};return e?y:this._transformedRect(y,n)},n.prototype.drawScene=function(t,e,n,r){var i,o,a,s=this.getLayer(),c=t||s.getCanvas(),h=c.getContext(),u=this._getCanvasCache(),l=this.sceneFunc(),f=this.hasShadow(),d=this.hasStroke();if(!this.isVisible()&&!n)return this;if(u)return h.save(),s._applyTransform(this,h,e),this._drawCachedSceneCanvas(h),h.restore(
7),this;if(!l)return this;if(h.save(),this._useBufferCanvas(n)&&!r){if(i=this.getStage(),o=i.bufferCanvas,a=o.getContext(),a.clear(),a.save(),a._applyLineJoin(this),!n)if(s)s._applyTransform(this,a,e);else{var p=this.getAbsoluteTransform(e).getMatrix();h.transform(p[0],p[1],p[2],p[3],p[4],p[5])}l.call(this,a,this),a.restore();var g=o.pixelRatio;f&&!c.hitCanvas?(h.save(),h._applyShadow(this),h._applyOpacity(this),h._applyGlobalCompositeOperation(this),h.drawImage(o._canvas,0,0,o.width/g,o.height/g),h.restore()):(h._applyOpacity(this),h._applyGlobalCompositeOperation(this),h.drawImage(o._canvas,0,0,o.width/g,o.height/g))}else{if(h._applyLineJoin(this),!n)if(s)s._applyTransform(this,h,e);else{var v=this.getAbsoluteTransform(e).getMatrix();h.transform(v[0],v[1],v[2],v[3],v[4],v[5])}f&&d&&!c.hitCanvas?(h.save(),n||(h._applyOpacity(this),h._applyGlobalCompositeOperation(this)),h._applyShadow(this),l.call(this,h,this),h.restore(),this.hasFill()&&this.shadowForStrokeEnabled()&&l.call(this,h,this)):f&&!c.hitCanvas?(h.save(),n||(h._applyOpacity(this),h._applyGlobalCompositeOperation(this)),h._applyShadow(this),l.call(this,h,this),h.restore()):(n||(h._applyOpacity(this),h._applyGlobalCompositeOperation(this)),l.call(this,h,this))}return h.restore(),this},n.prototype.drawHit=function(t,e,n){var r=this.getLayer(),i=t||r.hitCanvas,a=i&&i.getContext(),s=this.hitFunc()||this.sceneFunc(),c=this._getCanvasCache(),h=c&&c.hit;if(this.colorKey||o.Util.warn("Looks like your canvas has a destroyed shape in it. Do not reuse shape after you destroyed it. See the shape in logs above. If you want to reuse shape you should call remove() instead of destroy()"),!this.shouldDrawHit()&&!n)return this;if(h)return a.save(),r._applyTransform(this,a,e),this._drawCachedHitCanvas(a),a.restore(),this;if(!s)return this;if(a.save(),a._applyLineJoin(this),!n)if(r)r._applyTransform(this,a,e);else{var u=this.getAbsoluteTransform(e).getMatrix();a.transform(u[0],u[1],u[2],u[3],u[4],u[5])}return s.call(this,a,this),a.restore(),this},n.prototype.drawHitFromCache=function(t){void 0===t&&(t=0);var e,n,r,i,a,s,c=this._getCanvasCache(),h=this._getCachedSceneCanvas(),u=c.hit,l=u.getContext(),f=u.getWidth(),d=u.getHeight();l.clear(),l.drawImage(h._canvas,0,0,f,d);try{for(e=l.getImageData(0,0,f,d),n=e.data,r=n.length,i=o.Util._hexToRgb(this.colorKey),a=0;a<r;a+=4)s=n[a+3],s>t?(n[a]=i.r,n[a+1]=i.g,n[a+2]=i.b,n[a+3]=255):n[a+3]=0;l.putImageData(e,0,0)}catch(p){o.Util.error("Unable to draw hit graph from cached scene canvas. "+p.message)}return this},n.prototype.hasPointerCapture=function(t){return u.hasPointerCapture(t,this)},n.prototype.setPointerCapture=function(t){u.setPointerCapture(t,this)},n.prototype.releaseCapture=function(t){u.releaseCapture(t,this)},n}(s.Node);e.Shape=O,O.prototype._fillFunc=y,O.prototype._strokeFunc=m,O.prototype._fillFuncHit=_,O.prototype._strokeFuncHit=b,O.prototype._centroid=!1,O.prototype.nodeType="Shape",h._registerNode(O),a.Factory.addGetterSetter(O,"stroke",void 0,c.getStringValidator()),a.Factory.addGetterSetter(O,"strokeWidth",2,c.getNumberValidator()),a.Factory.addGetterSetter(O,"hitStrokeWidth","auto",c.getNumberOrAutoValidator()),a.Factory.addGetterSetter(O,"strokeHitEnabled",!0,c.getBooleanValidator()),a.Factory.addGetterSetter(O,"perfectDrawEnabled",!0,c.getBooleanValidator()),a.Factory.addGetterSetter(O,"shadowForStrokeEnabled",!0,c.getBooleanValidator()),a.Factory.addGetterSetter(O,"lineJoin"),a.Factory.addGetterSetter(O,"lineCap"),a.Factory.addGetterSetter(O,"sceneFunc"),a.Factory.addGetterSetter(O,"hitFunc"),a.Factory.addGetterSetter(O,"dash"),a.Factory.addGetterSetter(O,"dashOffset",0,c.getNumberValidator()),a.Factory.addGetterSetter(O,"shadowColor",void 0,c.getStringValidator()),a.Factory.addGetterSetter(O,"shadowBlur",0,c.getNumberValidator()),a.Factory.addGetterSetter(O,"shadowOpacity",1,c.getNumberValidator()),a.Factory.addComponentsGetterSetter(O,"shadowOffset",["x","y"]),a.Factory.addGetterSetter(O,"shadowOffsetX",0,c.getNumberValidator()),a.Factory.addGetterSetter(O,"shadowOffsetY",0,c.getNumberValidator()),a.Factory.addGetterSetter(O,"fillPatternImage"),a.Factory.addGetterSetter(O,"fill",void 0,c.getStringValidator()),a.Factory.addGetterSetter(O,"fillPatternX",0,c.getNumberValidator()),a.Factory.addGetterSetter(O,"fillPatternY",0,c.getNumberValidator()),a.Factory.addGetterSetter(O,"fillLinearGradientColorStops"),a.Factory.addGetterSetter(O,"strokeLinearGradientColorStops"),a.Factory.addGetterSetter(O,"fillRadialGradientStartRadius",0),a.Factory.addGetterSetter(O,"fillRadialGradientEndRadius",0),a.Factory.addGetterSetter(O,"fillRadialGradientColorStops"),a.Factory.addGetterSetter(O,"fillPatternRepeat","repeat"),a.Factory.addGetterSetter(O,"fillEnabled",!0),a.Factory.addGetterSetter(O,"strokeEnabled",!0),a.Factory.addGetterSetter(O,"shadowEnabled",!0),a.Factory.addGetterSetter(O,"dashEnabled",!0),a.Factory.addGetterSetter(O,"strokeScaleEnabled",!0),a.Factory.addGetterSetter(O,"fillPriority","color"),a.Factory.addComponentsGetterSetter(O,"fillPatternOffset",["x","y"]),a.Factory.addGetterSetter(O,"fillPatternOffsetX",0,c.getNumberValidator()),a.Factory.addGetterSetter(O,"fillPatternOffsetY",0,c.getNumberValidator()),a.Factory.addComponentsGetterSetter(O,"fillPatternScale",["x","y"]),a.Factory.addGetterSetter(O,"fillPatternScaleX",1,c.getNumberValidator()),a.Factory.addGetterSetter(O,"fillPatternScaleY",1,c.getNumberValidator()),a.Factory.addComponentsGetterSetter(O,"fillLinearGradientStartPoint",["x","y"]),a.Factory.addComponentsGetterSetter(O,"strokeLinearGradientStartPoint",["x","y"]),a.Factory.addGetterSetter(O,"fillLinearGradientStartPointX",0),a.Factory.addGetterSetter(O,"strokeLinearGradientStartPointX",0),a.Factory.addGetterSetter(O,"fillLinearGradientStartPointY",0),a.Factory.addGetterSetter(O,"strokeLinearGradientStartPointY",0),a.Factory.addComponentsGetterSetter(O,"fillLinearGradientEndPoint",["x","y"]),a.Factory.addComponentsGetterSetter(O,"strokeLinearGradientEndPoint",["x","y"]),a.Factory.addGetterSetter(O,"fillLinearGradientEndPointX",0),a.Factory.addGetterSetter(O,"strokeLinearGradientEndPointX",0),a.Factory.addGetterSetter(O,"fillLinearGradientEndPointY",0),a.Factory.addGetterSetter(O,"strokeLinearGradientEndPointY",0),a.Factory.addComponentsGetterSetter(O,"fillRadialGradientStartPoint",["x","y"]),a.Factory.addGetterSetter(O,"fillRadialGradientStartPointX",0),a.Factory.addGetterSetter(O,"fillRadialGradientStartPointY",0),a.Factory.addComponentsGetterSetter(O,"fillRadialGradientEndPoint",["x","y"]),a.Factory.addGetterSetter(O,"fillRadialGradientEndPointX",0),a.Factory.addGetterSetter(O,"fillRadialGradientEndPointY",0),a.Factory.addGetterSetter(O,"fillPatternRotation",0),a.Factory.backCompat(O,{dashArray:"dash",getDashArray:"getDash",setDashArray:"getDash",drawFunc:"sceneFunc",getDrawFunc:"getSceneFunc",setDrawFunc:"setSceneFunc",drawHitFunc:"hitFunc",getDrawHitFunc:"getHitFunc",setDrawHitFunc:"setHitFunc"}),o.Collection.mapMethods(O)},fd15:function(t,e,n){"use strict";
7Object.defineProperty(e,"__esModule",{value:!0});var r=n("36da"),i=n("8603"),o=n("1bd8"),a=n("1f21"),s=n("383f"),c=n("229a"),h=n("da04"),u=n("f709"),l=n("8c18"),f=n("5d5a"),d=n("26c8"),p=n("bf11"),g=n("a34e"),v=n("e3af"),y=n("5414"),m=n("2a01"),_=n("d488"),b=n("96ee"),w=n("bdee"),x=n("6b7e"),S=n("c742"),C=n("e4b0"),P=n("bcb1"),O=n("cf29"),A=n("926b"),k=n("461e"),T=n("89c1"),F=n("1c49"),M=n("9470"),D=n("bbce"),G=n("405a"),E=n("2013"),R=n("8e84"),N=n("b33b"),L=n("769d"),I=n("7cc1"),j=n("122f");e.Konva=r.Konva.Util._assign(r.Konva,{Arc:i.Arc,Arrow:o.Arrow,Circle:a.Circle,Ellipse:s.Ellipse,Image:c.Image,Label:h.Label,Tag:h.Tag,Line:u.Line,Path:l.Path,Rect:f.Rect,RegularPolygon:d.RegularPolygon,Ring:p.Ring,Sprite:g.Sprite,Star:v.Star,Text:y.Text,TextPath:m.TextPath,Transformer:_.Transformer,Wedge:b.Wedge,Filters:{Blur:w.Blur,Brighten:x.Brighten,Contrast:S.Contrast,Emboss:C.Emboss,Enhance:P.Enhance,Grayscale:O.Grayscale,HSL:A.HSL,HSV:k.HSV,Invert:T.Invert,Kaleidoscope:F.Kaleidoscope,Mask:M.Mask,Noise:D.Noise,Pixelate:G.Pixelate,Posterize:E.Posterize,RGB:R.RGB,RGBA:N.RGBA,Sepia:L.Sepia,Solarize:I.Solarize,Threshold:j.Threshold}})},fdbf:function(t,e,n){var r=n("4930");t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},fea9:function(t,e,n){var r=n("da84");t.exports=r.Promise}}]); 8//# sourceMappingURL=chunk-vendors.5808f133.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.