!function(){"use strict";vare=Math.PI/180,r={version:"2.5.1",stages:[],idCounter:0,ids:{},names:{},shapes:{},listenClickTap:!1,inDblClickWindow:!1,isBrowser:"undefined"!=typeofwindow&&("[object Window]"==={}.toString.call(window)||"[object global]"==={}.toString.call(window)),isUnminified:/comment/.test(function(){}),enableTrace:!1,traceArrMax:100,dblClickWindow:400,pixelRatio:void0,dragDistance:3,angleDeg:!0,showWarnings:!0,Filters:{},isDragging:function(){vart=r.DD;return!!t&&t.isDragging},isDragReady:function(){vart=r.DD;return!!t&&!!t.node},_addId:function(t,e){e&&(this.ids[e]=t)},_removeId:function(t){void0!==t&&deletethis.ids[t]},_addName:function(t,e){e&&(this.names[e]||(this.names[e]=[]),this.names[e].push(t))},_removeName:function(t,e){if(t){vari=this.names[t];if(i){for(varn=0;n<i.length;n++){i[n]._id===e&&i.splice(n,1)}0===i.length&&deletethis.names[t]}}},getAngle:function(t){returnthis.angleDeg?t*e:t},_detectIE:function(t){vare=t.indexOf("msie ");if(0<e)returnparseInt(t.substring(e+5,t.indexOf(".",e)),10);if(0<t.indexOf("trident/")){vari=t.indexOf("rv:");returnparseInt(t.substring(i+3,t.indexOf(".",i)),10)}varn=t.indexOf("edge/");return0<n&&parseInt(t.substring(n+5,t.indexOf(".",n)),10)},_parseUA:function(t){vare=t.toLowerCase(),i=/(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)||[],n=!!t.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i),a=!!t.match(/IEMobile/i);return{browser:i[1]||"",version:i[2]||"0",isIE:r._detectIE(e),mobile:n,ieMobile:a}},UA:void0},t="undefined"!=typeofglobal?global:"undefined"!=typeofwindow?window:"undefined"!=typeofWorkerGlobalScope?self:{};r.UA=r._parseUA(t.navigator&&t.navigator.userAgent||""),t.Konva&&console.error("Konva instance is already exist in current eviroment. Please use only one instance."),(t.Konva=r).global=t,r.window=t,r.document=t.document,"object"==typeofexports?module.exports=r:"function"==typeofdefine&&define.amd&&define(function(){returnr})}(),function(){"use strict";Konva.Collection=function(){vart=[].slice.call(arguments),e=t.length,i=0;for(this.length=e;i<e;i++)this[i]=t[i];returnthis},Konva.Collection.prototype=[],Konva.Collection.prototype.each=function(t){for(vare=0;e<this.length;e++)t(this[e],e)},Konva.Collection.prototype.toArray=function(){vart,e=[],i=this.length;for(t=0;t<i;t++)e.push(this[t]);returne},Konva.Collection.toCollection=function(t){vare,i=newKonva.Collection,n=t.length;for(e=0;e<n;e++)i.push(t[e]);returni},Konva.Collection._mapMethod=function(n){Konva.Collection.prototype[n]=function(){vart,e=this.length,i=[].slice.call(arguments);for(t=0;t<e;t++)this[t][n].apply(this[t],i);returnthis}},Konva.Collection.mapMethods=function(t){vare=t.prototype;for(variine)Konva.Collection._mapMethod(i)},Konva.Transform=function(t){this.m=t&&t.slice()||[1,0,0,1,0,0]},Konva.Transform.prototype={copy:function(){returnnewKonva.Transform(this.m)},point:function(t){vare=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]}},translate:function(t,e){returnthis.m[4]+=this.m[0]*t+this.m[2]*e,this.m[5]+=this.m[1]*t+this.m[3]*e,this},scale:function(t,e){returnthis.m[0]*=t,this.m[1]*=t,this.m[2]*=e,this.m[3]*=e,this},rotate:function(t){vare=Math.cos(t),i=Math.sin(t),n=this.m[0]*e+this.m[2]*i,a=this.m[1]*e+this.m[3]*i,r=this.m[0]*-i+this.m[2]*e,o=this.m[1]*-i+this.m[3]*e;returnthis.m[0]=n,this.m[1]=a,this.m[2]=r,this.m[3]=o,this},getTranslation:function(){return{x:this.m[4],y:this.m[5]}},skew:function(t,e){vari=this.m[0]+this.m[2]*e,n=this.m[1]+this.m[3]*e,a=this.m[2]+this.m[0]*t,r=this.m[3]+this.m[1]*t;returnthis.m[0]=i,this.m[1]=n,this.m[2]=a,this.m[3]=r,this},multiply:function(t){vare=this.m[0]*t.m[0]+this.m[2]*t.m[1],i=this.m[1]*t.m[0]+this.m[3]*t.m[1],n=this.m[0]*t.m[2]+this.m[2]*t.m[3],a=this.m[1]*t.m[2]+this.m[3]*t.m[3],r=this.m[0]*t.m[4]+this.m[2]*t.m[5]+this.m[4],o=this.m[1]*t.m[4]+this.m[3]*t.m[5]+this.m[5];returnthis.m[0]=e,this.m[1]=i,