try{let t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="0725e0da-649b-4e88-9e6b-0746a2c29a48",t._sentryDebugIdIdentifier="sentry-dbid-0725e0da-649b-4e88-9e6b-0746a2c29a48")}catch(t){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2753],{3424:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Easings=e.Tween=void 0;let a=i(26509),n=i(86345),r=i(20913),o=i(66878),s={node:1,duration:1,easing:1,onFinish:1,yoyo:1},l=["fill","stroke","shadowColor"],V=0;class c{constructor(t,e,i,a,n,r,o){this.prop=t,this.propFunc=e,this.begin=a,this._pos=a,this.duration=r,this._change=0,this.prevPos=0,this.yoyo=o,this._time=0,this._position=0,this._startTime=0,this._finish=0,this.func=i,this._change=n-this.begin,this.pause()}fire(t){let e=this[t];e&&e()}setTime(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())}getTime(){return this._time}setPosition(t){this.prevPos=this._pos,this.propFunc(t),this._pos=t}getPosition(t){return void 0===t&&(t=this._time),this.func(t,this.begin,this._change,this.duration)}play(){this.state=2,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onPlay")}reverse(){this.state=3,this._time=this.duration-this._time,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onReverse")}seek(t){this.pause(),this._time=t,this.update(),this.fire("onSeek")}reset(){this.pause(),this._time=0,this.update(),this.fire("onReset")}finish(){this.pause(),this._time=this.duration,this.update(),this.fire("onFinish")}update(){this.setPosition(this.getPosition(this._time)),this.fire("onUpdate")}onEnterFrame(){let t=this.getTimer()-this._startTime;2===this.state?this.setTime(t):3===this.state&&this.setTime(this.duration-t)}pause(){this.state=1,this.fire("onPause")}getTimer(){return new Date().getTime()}}class h{constructor(t){let i,r,l=this,d=t.node,p=d._id,u=t.easing||e.Easings.Linear,g=!!t.yoyo;i=void 0===t.duration?.3:0===t.duration?.001:t.duration,this.node=d,this._id=V++;let f=d.getLayer()||(d instanceof o.Konva.Stage?d.getLayers():null);for(r in f||a.Util.error("Tween constructor have `node` that is not in a layer. Please add node into layer first."),this.anim=new n.Animation(function(){l.tween.onEnterFrame()},f),this.tween=new c(r,function(t){l._tweenFunc(t)},u,0,1,1e3*i,g),this._addListeners(),h.attrs[p]||(h.attrs[p]={}),h.attrs[p][this._id]||(h.attrs[p][this._id]={}),h.tweens[p]||(h.tweens[p]={}),t)void 0===s[r]&&this._addAttr(r,t[r]);this.reset(),this.onFinish=t.onFinish,this.onReset=t.onReset,this.onUpdate=t.onUpdate}_addAttr(t,e){let i,n,r,o,s,V=this.node,c=V._id,d=h.tweens[c][t];d&&delete h.attrs[c][d][t];let p=V.getAttr(t);if(a.Util._isArray(e))if(i=[],n=Math.max(e.length,p.length),"points"===t&&e.length!==p.length&&(e.length>p.length?(o=p,p=a.Util._prepareArrayForTween(p,e,V.closed())):(r=e,e=a.Util._prepareArrayForTween(e,p,V.closed()))),0===t.indexOf("fill"))for(let t=0;t{this.anim.start()},this.tween.onReverse=()=>{this.anim.start()},this.tween.onPause=()=>{this.anim.stop()},this.tween.onFinish=()=>{let t=this.node,e=h.attrs[t._id][this._id];e.points&&e.points.trueEnd&&t.setAttr("points",e.points.trueEnd),this.onFinish&&this.onFinish.call(this)},this.tween.onReset=()=>{let t=this.node,e=h.attrs[t._id][this._id];e.points&&e.points.trueStart&&t.points(e.points.trueStart),this.onReset&&this.onReset()},this.tween.onUpdate=()=>{this.onUpdate&&this.onUpdate.call(this)}}play(){return this.tween.play(),this}reverse(){return this.tween.reverse(),this}reset(){return this.tween.reset(),this}seek(t){return this.tween.seek(1e3*t),this}pause(){return this.tween.pause(),this}finish(){return this.tween.finish(),this}destroy(){let t=this.node._id,e=this._id,i=h.tweens[t];for(let e in this.pause(),this.anim&&this.anim.stop(),i)delete h.tweens[t][e];delete h.attrs[t][e],h.tweens[t]&&(0===Object.keys(h.tweens[t]).length&&delete h.tweens[t],0===Object.keys(h.attrs[t]).length&&delete h.attrs[t])}}e.Tween=h,h.attrs={},h.tweens={},r.Node.prototype.to=function(t){let e=t.onFinish;t.node=this,t.onFinish=function(){this.destroy(),e&&e()},new h(t).play()},e.Easings={BackEaseIn:(t,e,i,a)=>i*(t/=a)*t*(2.70158*t-1.70158)+e,BackEaseOut:(t,e,i,a)=>i*((t=t/a-1)*t*(2.70158*t+1.70158)+1)+e,BackEaseInOut(t,e,i,a){let n=1.70158;return(t/=a/2)<1?i/2*(t*t*(((n*=1.525)+1)*t-n))+e:i/2*((t-=2)*t*(((n*=1.525)+1)*t+n)+2)+e},ElasticEaseIn(t,e,i,a,n,r){let o=0;return 0===t?e:1==(t/=a)?e+i:(r||(r=.3*a),!n||n(t/=a)<1/2.75?7.5625*t*t*i+e:t<2/2.75?i*(7.5625*(t-=1.5/2.75)*t+.75)+e:t<2.5/2.75?i*(7.5625*(t-=2.25/2.75)*t+.9375)+e:i*(7.5625*(t-=2.625/2.75)*t+.984375)+e,BounceEaseIn:(t,i,a,n)=>a-e.Easings.BounceEaseOut(n-t,0,a,n)+i,BounceEaseInOut:(t,i,a,n)=>ti*(t/=a)*t+e,EaseOut:(t,e,i,a)=>-i*(t/=a)*(t-2)+e,EaseInOut:(t,e,i,a)=>(t/=a/2)<1?i/2*t*t+e:-i/2*(--t*(t-2)-1)+e,StrongEaseIn:(t,e,i,a)=>i*(t/=a)*t*t*t*t+e,StrongEaseOut:(t,e,i,a)=>i*((t=t/a-1)*t*t*t*t+1)+e,StrongEaseInOut:(t,e,i,a)=>(t/=a/2)<1?i/2*t*t*t*t*t+e:i/2*((t-=2)*t*t*t*t+2)+e,Linear:(t,e,i,a)=>i*t/a+e}},4364:function(t,e,i){t.exports=function(t){var e=[function(e,i){e.exports=t},function(t,e,i){t.exports=i(7)()},function(t,e,i){t.exports=function(){var t=[function(t,e,i){"use strict";i.d(e,"b",function(){return r}),i.d(e,"c",function(){return o});var a=i(1),n=i(7);i.d(e,"a",function(){return n.a}),i.d(e,"d",function(){return a.b});var r=a.a.FACING_MODES,o=a.a.IMAGE_TYPES},function(t,e,i){"use strict";var a=i(6);i.d(e,"a",function(){return a.a});var n=i(2);i.d(e,"b",function(){return n.a})},function(t,e,i){"use strict";function a(){var t=window.navigator.platform,e=window.navigator.userAgent;return t||e}function n(){return"ontouchend"in document}function r(){var t=a();if(/iPad|iPhone|iPod/.test(t))return!0;var e=n();return!(!/Mac/.test(t)||!e)}e.c=function(t,e,i){var a=t*parseFloat(i);return{imageWidth:a,imageHeight:e/(t/a)}},e.b=function(t,e,i){return function(t,e){var i={};try{(function(t,e){if(!(e>=0&&e<=1))throw Error(e+" is invalid imageCompression, choose between: [0, 1]");if(!o.f.includes(t))throw Error(t+" is invalid imageType, choose between: "+o.f.join(", "))})(t,e),i.imageType=t,i.imageCompression=e}catch(t){console.error(t),console.error("default value of "+o.c.PNG+" is used"),i.imageType=o.c.PNG,i.imageCompression=null}return i}(e,i).imageType===o.c.JPG?i?t.toDataURL(o.b[o.c.JPG],i):t.toDataURL(o.b[o.c.JPG]):t.toDataURL(o.b[e])},e.e=function(t,e){return t||e},e.d=r,e.a=function(){return{userAgent:window.navigator.userAgent,platform:window.navigator.platform,_getStringWithPlatform:a(),_getHasTouchEvents:n(),getIsIOS:r()}};var o=i(3)},function(t,e,i){"use strict";function a(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}i.d(e,"e",function(){return r}),i.d(e,"a",function(){return o}),i.d(e,"f",function(){return s}),i.d(e,"c",function(){return l}),i.d(e,"b",function(){return V}),i.d(e,"d",function(){return c});var n,r=["user","environment"],o={USER:"user",ENVIRONMENT:"environment"},s=["jpg","png"],l={PNG:"png",JPG:"jpg"},V=(a(n={},"jpg","image/jpeg"),a(n,"png","image/png"),n),c={audio:!1,video:!0}},function(t,e,i){t.exports=i(5)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i(0);i.d(e,"FACING_MODES",function(){return a.b}),i.d(e,"IMAGE_TYPES",function(){return a.c}),i.d(e,"_getDebugPlatformInfo",function(){return a.d});var n=i(9);i.d(e,"downloadPhoto",function(){return n.a}),e.default=a.a},function(t,e,i){"use strict";i.d(e,"a",function(){return o});var a=i(2),n=i(3),r=function(){function t(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:"",i=arguments[1];console.warn("getMaxResolutionConstraints() numberOfMaxResolutionTry:",i);var n=[{width:{min:640}},{width:{min:800}},{width:{min:900}},{width:{min:1024}},{width:{min:1080}},{width:{min:1280}},{width:{min:1920}},{width:{min:2560}},{width:{min:3840}}],r=t.getIdealConstraints(e,{});if(0===i)return Object(a.d)()?(console.warn("fallback to iOS constraints"),t.getIdealConstraints(e,{width:{min:640,ideal:3840},height:{min:480,ideal:2160}})):(r.video.advanced=n,r);if(i0&&e[0].getSettings&&(this.settings=e[0].getSettings())}},{key:"_enumerateCamerasPromise",value:function(){var t=this;return new Promise(function(e,i){var a=[];t.mediaDevices.enumerateDevices().then(function(t){t.forEach(function(t){"videoinput"===t.kind&&t.deviceId&&a.push(t)}),e(a)}).catch(function(t){i(t)})})}},{key:"_gotStream",value:function(t){this.stream=t,this._setSettings(t),this._setVideoSrc(t)}},{key:"getCameraSettings",value:function(){return this.settings}},{key:"enumerateCameras",value:function(){var t=this;return this.stream?this._enumerateCamerasPromise():this.stopCamera().then(function(){}).catch(function(){}).then(function(){return t.mediaDevices.getUserMedia({video:!0}).then(function(t){setTimeout(function(){t.getTracks().forEach(function(t){t.stop()})},20)}).then(function(){}).catch(function(){}).then(function(){return t._enumerateCamerasPromise()})})}},{key:"startCamera",value:function(t,e){var i=this;return this.stopCamera().then(function(){}).catch(function(){}).then(function(){return i._getStreamDevice(t,e)})}},{key:"startCameraMaxResolution",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.numberOfMaxResolutionTry=0,this.stopCamera().then(function(){}).catch(function(){}).then(function(){return t._getStreamDeviceMaxResolution(e)})}},{key:"getDataUri",value:function(t){var e={sizeFactor:void 0===t.sizeFactor?n.c:t.sizeFactor,imageType:void 0===t.imageType?o:t.imageType,imageCompression:void 0===t.imageCompression?n.a:t.imageCompression,isImageMirror:void 0===t.isImageMirror?n.b:t.isImageMirror};return a.a.getDataUri(this.videoElement,e)}},{key:"stopCamera",value:function(){var t=this;return new Promise(function(e,i){t.stream&&(t.stream.getTracks().forEach(function(t){t.stop()}),t.videoElement.src="",t.stream=null,t._setSettings(null),e()),i(Error("no stream to stop!"))})}}]),t}()},function(t,e,i){"use strict";i.d(e,"c",function(){return a}),i.d(e,"a",function(){return n}),i.d(e,"b",function(){return r});var a=1,n=null,r=!1},function(t,e,i){"use strict";var a=i(10);i.d(e,"a",function(){return a.a})},function(t,e,i){"use strict";e.a=function(t){var e,i,n,r,o,s,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"photo",V=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;e=function(t){for(var e=atob(t.split(",")[1]),i=t.split(",")[0].split(":")[1].split(";")[0],a=new ArrayBuffer(e.length),n=new Uint8Array(a),r=0;r=4?r:Array(4-r.length+1).join("0")+r)+"."+(o=a.c.PNG,"image/jpeg"===n&&(o=a.c.JPG),o),i.href=window.URL.createObjectURL(e),(s=document.createEvent("MouseEvents")).initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,0,null),i.dispatchEvent(s)};var a=i(0)}];function e(a){if(i[a])return i[a].exports;var n=i[a]={i:a,l:!1,exports:{}};return t[a].call(n.exports,n,n.exports,e),n.l=!0,n.exports}var i={};return e.m=t,e.c=i,e.d=function(t,i,a){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:a})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=4)}()},function(t,e,i){t.exports=i(4)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i(5);i.d(e,"Camera",function(){return a.c}),i.d(e,"FACING_MODES",function(){return a.a}),i.d(e,"IMAGE_TYPES",function(){return a.b}),e.default=a.c},function(t,e,i){"use strict";var a=i(6);i.d(e,"a",function(){return a.a}),i.d(e,"b",function(){return a.b}),e.c=a.c},function(t,e,i){"use strict";function a(t){function e(){return void 0!==t.isImageMirror?t.isImageMirror:t.idealFacingMode===l.FACING_MODES.USER}var i=g(Object(n.useState)(""),2),a=i[0],o=i[1],s=g(Object(n.useState)(!0),2),u=s[0],m=s[1],v=g(Object(n.useState)(""),2),x=v[0],y=v[1],b=Object(n.useRef)(null),_=g(Object(V.a)(b,t.idealFacingMode,t.idealResolution,t.isMaxResolution),4),A=_[0],w=_[1],S=_[2],C=_[3];Object(n.useEffect)(function(){A?"function"==typeof t.onCameraStart&&t.onCameraStart(A):"function"==typeof t.onCameraStop&&t.onCameraStop()},[A]),Object(n.useEffect)(function(){w&&(y(w.name+" "+w.message),"function"==typeof t.onCameraError&&t.onCameraError(w))},[w]),Object(n.useEffect)(function(){S&&Object(p.d)(S.message)},[S]);var k=Object(p.b)(u,e()),P=Object(p.a)(!u),T=t.isFullscreen?"react-html5-camera-photo-fullscreen":"";return r.a.createElement("div",{className:"react-html5-camera-photo "+T},r.a.createElement(d.a,{cssClass:"display-error",isDisplayError:t.isDisplayStartCameraError,errorMsg:x}),r.a.createElement(h.a,{isShowWhiteFlash:!u}),r.a.createElement("img",{style:P,alt:"camera",src:a}),r.a.createElement("video",{style:k,ref:b,autoPlay:!0,muted:!0,playsInline:!0}),r.a.createElement(c.a,{isClicked:!u,onClick:function(){var i=C({sizeFactor:t.sizeFactor,imageType:t.imageType,imageCompression:t.imageCompression,isImageMirror:e()});t.isSilentMode||Object(p.c)(),"function"==typeof t.onTakePhoto&&t.onTakePhoto(i),o(i),m(!1),f&&clearTimeout(f),f=setTimeout(function(){m(!0),"function"==typeof t.onTakePhotoAnimationDone&&t.onTakePhotoAnimationDone(i)},900)}}))}var n=i(0),r=i.n(n),o=i(1),s=i.n(o),l=i(2),V=(i.n(l),i(9)),c=i(13),h=i(15),d=i(17),p=i(19),u=i(21);i.n(u),i.o(l,"FACING_MODES")&&i.d(e,"a",function(){return l.FACING_MODES}),i.o(l,"IMAGE_TYPES")&&i.d(e,"b",function(){return l.IMAGE_TYPES});var g=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var i=[],a=!0,n=!1,r=void 0;try{for(var o,s=t[Symbol.iterator]();!(a=(o=s.next()).done)&&(i.push(o.value),!e||i.length!==e);a=!0);}catch(t){n=!0,r=t}finally{try{!a&&s.return&&s.return()}finally{if(n)throw r}}return i}(t,e);throw TypeError("Invalid attempt to destructure non-iterable instance")},f=null;e.c=a,a.propTypes={onTakePhoto:s.a.func,onTakePhotoAnimationDone:s.a.func,onCameraError:s.a.func,idealFacingMode:s.a.string,idealResolution:s.a.object,imageType:s.a.string,isImageMirror:s.a.bool,isSilentMode:s.a.bool,isDisplayStartCameraError:s.a.bool,imageCompression:s.a.number,isMaxResolution:s.a.bool,isFullscreen:s.a.bool,sizeFactor:s.a.number,onCameraStart:s.a.func,onCameraStop:s.a.func},a.defaultProps={isDisplayStartCameraError:!0}},function(t,e,i){"use strict";function a(){}function n(){}var r=i(8);n.resetWarningCache=a,t.exports=function(){function t(t,e,i,a,n,o){if(o!==r){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function e(){return t}t.isRequired=t;var i={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:n,resetWarningCache:a};return i.PropTypes=i,i}},function(t,e,i){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,i){"use strict";function a(t){return function(){var e=t.apply(this,arguments);return new Promise(function(t,i){return function a(n,r){try{var o=e[n](r),s=o.value}catch(t){return void i(t)}if(!o.done)return Promise.resolve(s).then(function(t){a("next",t)},function(t){a("throw",t)});t(s)}("next")})}}e.a=function(t,e,i,n){var s=V(Object(o.useState)(null),2),d=s[0],p=s[1],u=V(Object(o.useState)(null),2),g=u[0],f=u[1],m=V(Object(o.useState)(null),2),v=m[0],x=m[1];return Object(o.useEffect)(function(){t&&t.current&&(c=new l.a(t.current))},[t]),Object(o.useEffect)(function(){var o,s,l=(o=a(r.a.mark(function a(){var o;return r.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(h=!0,a.prev=1,o=null,!n){a.next=9;break}return a.next=6,c.startCameraMaxResolution(e);case 6:o=a.sent,a.next=12;break;case 9:return a.next=11,c.startCamera(e,i);case 11:o=a.sent;case 12:if(!t||!t.current){a.next=17;break}p(o),f(null),a.next=19;break;case 17:return a.next=19,c.stopCamera();case 19:a.next=24;break;case 21:a.prev=21,a.t0=a.catch(1),t&&t.current&&f(a.t0);case 24:case"end":return a.stop()}},a,this,[[1,21]])})),function(){return o.apply(this,arguments)});if(d)return s=a(r.a.mark(function e(){return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!h){e.next=5;break}return h=!1,e.next=5,c.stopCamera();case 5:t&&t.current&&(p(null),x(null)),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),x(e.t0);case 11:case"end":return e.stop()}},e,this,[[0,8]])})),function(){return s.apply(this,arguments)};l()},[t,d,e,i,n]),[d,g,v,function(t){return c.getDataUri(t)}]};var n=i(10),r=i.n(n),o=i(0),s=(i.n(o),i(2)),l=i.n(s),V=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var i=[],a=!0,n=!1,r=void 0;try{for(var o,s=t[Symbol.iterator]();!(a=(o=s.next()).done)&&(i.push(o.value),!e||i.length!==e);a=!0);}catch(t){n=!0,r=t}finally{try{!a&&s.return&&s.return()}finally{if(n)throw r}}return i}(t,e);throw TypeError("Invalid attempt to destructure non-iterable instance")},c=null,h=!1},function(t,e,i){t.exports=i(11)},function(t,e,i){var a=function(){return this}()||Function("return this")(),n=a.regeneratorRuntime&&Object.getOwnPropertyNames(a).indexOf("regeneratorRuntime")>=0,r=n&&a.regeneratorRuntime;if(a.regeneratorRuntime=void 0,t.exports=i(12),n)a.regeneratorRuntime=r;else try{delete a.regeneratorRuntime}catch(t){a.regeneratorRuntime=void 0}},function(t,e){!function(e){"use strict";function i(t,e,i,r){var o,s,l,V,c=Object.create((e&&e.prototype instanceof n?e:n).prototype);return o=t,s=i,l=new h(r||[]),V=A,c._invoke=function(t,e){if(V===S)throw Error("Generator is already running");if(V===C){if("throw"===t)throw e;return p()}for(l.method=t,l.arg=e;;){var i=l.delegate;if(i){var n=function t(e,i){var n=e.iterator[i.method];if(n===u){if(i.delegate=null,"throw"===i.method){if(e.iterator.return&&(i.method="return",i.arg=u,t(e,i),"throw"===i.method))return k;i.method="throw",i.arg=TypeError("The iterator does not provide a 'throw' method")}return k}var r=a(n,e.iterator,i.arg);if("throw"===r.type)return i.method="throw",i.arg=r.arg,i.delegate=null,k;var o=r.arg;return o?o.done?(i[e.resultName]=o.value,i.next=e.nextLoc,"return"!==i.method&&(i.method="next",i.arg=u),i.delegate=null,k):o:(i.method="throw",i.arg=TypeError("iterator result is not an object"),i.delegate=null,k)}(i,l);if(n){if(n===k)continue;return n}}if("next"===l.method)l.sent=l._sent=l.arg;else if("throw"===l.method){if(V===A)throw V=C,l.arg;l.dispatchException(l.arg)}else"return"===l.method&&l.abrupt("return",l.arg);V=S;var r=a(o,s,l);if("normal"===r.type){if(V=l.done?C:w,r.arg===k)continue;return{value:r.arg,done:l.done}}"throw"===r.type&&(V=C,l.method="throw",l.arg=r.arg)}},c}function a(t,e,i){try{return{type:"normal",arg:t.call(e,i)}}catch(t){return{type:"throw",arg:t}}}function n(){}function r(){}function o(){}function s(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function l(t){var e;this._invoke=function(i,n){function r(){return new Promise(function(e,r){!function e(i,n,r,o){var s=a(t[i],t,n);if("throw"!==s.type){var l=s.arg,V=l.value;return V&&"object"==typeof V&&f.call(V,"__await")?Promise.resolve(V.__await).then(function(t){e("next",t,r,o)},function(t){e("throw",t,r,o)}):Promise.resolve(V).then(function(t){l.value=t,r(l)},o)}o(s.arg)}(i,n,e,r)})}return e=e?e.then(r,r):r()}}function V(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function c(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function h(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(V,this),this.reset(!0)}function d(t){if(t){var e=t[v];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function e(){for(;++i=0;--a){var n=this.tryEntries[a],r=n.completion;if("root"===n.tryLoc)return e("end");if(n.tryLoc<=this.prev){var o=f.call(n,"catchLoc"),s=f.call(n,"finallyLoc");if(o&&s){if(this.prev=0;--i){var a=this.tryEntries[i];if(a.tryLoc<=this.prev&&f.call(a,"finallyLoc")&&this.prev=0;--e){var i=this.tryEntries[e];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),c(i),k}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc===t){var a=i.completion;if("throw"===a.type){var n=a.arg;c(i)}return n}}throw Error("illegal catch attempt")},delegateYield:function(t,e,i){return this.delegate={iterator:d(t),resultName:e,nextLoc:i},"next"===this.method&&(this.arg=u),k}}}(function(){return this}()||Function("return this")())},function(t,e,i){"use strict";var a=i(0),n=i.n(a),r=i(1),o=i.n(r),s=i(14),l=(i.n(s),function(t){var e=t.onClick,i=t.isClicked;return n.a.createElement("div",{id:"container-circles"},n.a.createElement("div",{id:"outer-circle",onClick:function(t){i||e()}},n.a.createElement("div",{id:"inner-circle",className:i?"is-clicked":""})))});l.propTypes={onClick:o.a.func.isRequired,isClicked:o.a.bool.isRequired},e.a=l},function(t,e){},function(t,e,i){"use strict";var a=i(0),n=i.n(a),r=i(1),o=i.n(r),s=i(16),l=(i.n(s),function(t){var e=t.isShowWhiteFlash;return n.a.createElement("div",{id:"white-flash",className:(e?"do-transition":"")+" normal"})});l.propTypes={isShowWhiteFlash:o.a.bool.isRequired},e.a=l},function(t,e){},function(t,e,i){"use strict";var a=i(0),n=i.n(a),r=i(1),o=i.n(r),s=i(18),l=(i.n(s),function(t){var e=t.isDisplayError,i=t.errorMsg,a=t.cssClass;return e&&i&&i.length>0?(console.log("cssClass",a),n.a.createElement("div",{className:a,id:"display-error"},n.a.createElement("h1",null,"Camera error: ",i))):null});l.propTypes={isDisplayError:o.a.bool,errorMsg:o.a.string,cssClass:o.a.string},e.a=l},function(t,e){},function(t,e,i){"use strict";function a(t){return t?{display:"inline-block"}:{display:"none"}}e.a=a,e.b=function(t,e){return Object.assign({},e?{transform:"rotateY(180deg)"}:{transform:"none"},a(t))},e.c=function(){new Audio("data:audio/mp3;base64,"+r.a.base64).play()},e.d=function(t){console.info("react-html5-camera-photo info:",t)};var n=i(20),r=i.n(n)},function(t,e){t.exports={base64:"SUQzBAAAAAAASVRQRTEAAAAcAAADU291bmRKYXkuY29tIFNvdW5kIEVmZmVjdHMAVFNTRQAAAA8AAANMYXZmNTcuNzIuMTAxAAAAAAAAAAAAAAD/+1QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABJbmZvAAAADwAAAB0AACxAAA0NDRUVFR4eHh4nJycvLy8vODg4QUFBQUlJSVJSUlJbW1tjY2NsbGxsdXV1fX19fYaG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VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVU="}},function(t,e){}];function i(t){if(a[t])return a[t].exports;var n=a[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,i),n.l=!0,n.exports}var a={};return i.m=e,i.c=a,i.d=function(t,e,a){i.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:a})},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=3)}(i(12115))},4421:(t,e,i)=>{"use strict";let a;Object.defineProperty(e,"__esModule",{value:!0}),e.HitCanvas=e.SceneCanvas=e.Canvas=void 0;let n=i(26509),r=i(69012),o=i(66878);class s{constructor(t){this.pixelRatio=1,this.width=0,this.height=0,this.isCache=!1;let e=(t||{}).pixelRatio||o.Konva.pixelRatio||function(){if(a)return a;let t=n.Util.createCanvasElement(),e=t.getContext("2d");return a=(o.Konva._global.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1),n.Util.releaseCanvas(t),a}();this.pixelRatio=e,this._canvas=n.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"}getContext(){return this.context}getPixelRatio(){return this.pixelRatio}setPixelRatio(t){let e=this.pixelRatio;this.pixelRatio=t,this.setSize(this.getWidth()/e,this.getHeight()/e)}setWidth(t){this.width=this._canvas.width=t*this.pixelRatio,this._canvas.style.width=t+"px";let e=this.pixelRatio;this.getContext()._context.scale(e,e)}setHeight(t){this.height=this._canvas.height=t*this.pixelRatio,this._canvas.style.height=t+"px";let e=this.pixelRatio;this.getContext()._context.scale(e,e)}getWidth(){return this.width}getHeight(){return this.height}setSize(t,e){this.setWidth(t||0),this.setHeight(e||0)}toDataURL(t,e){try{return this._canvas.toDataURL(t,e)}catch(t){try{return this._canvas.toDataURL()}catch(t){return n.Util.error("Unable to get data URL. "+t.message+" For more info read https://konvajs.org/docs/posts/Tainted_Canvas.html."),""}}}}e.Canvas=s;class l extends s{constructor(t={width:0,height:0,willReadFrequently:!1}){super(t),this.context=new r.SceneContext(this,{willReadFrequently:t.willReadFrequently}),this.setSize(t.width,t.height)}}e.SceneCanvas=l;class V extends s{constructor(t={width:0,height:0}){super(t),this.hitCanvas=!0,this.context=new r.HitContext(this),this.setSize(t.width,t.height)}}e.HitCanvas=V},6090:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Ring=void 0;let a=i(98949),n=i(83306),r=i(66394),o=i(66878),s=2*Math.PI;class l extends n.Shape{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.innerRadius(),0,s,!1),t.moveTo(this.outerRadius(),0),t.arc(0,0,this.outerRadius(),s,0,!0),t.closePath(),t.fillStrokeShape(this)}getWidth(){return 2*this.outerRadius()}getHeight(){return 2*this.outerRadius()}setWidth(t){this.outerRadius(t/2)}setHeight(t){this.outerRadius(t/2)}}e.Ring=l,l.prototype.className="Ring",l.prototype._centroid=!0,l.prototype._attrsAffectingSize=["innerRadius","outerRadius"],(0,o._registerNode)(l),a.Factory.addGetterSetter(l,"innerRadius",0,(0,r.getNumberValidator)()),a.Factory.addGetterSetter(l,"outerRadius",0,(0,r.getNumberValidator)())},6955:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Contrast=void 0;let a=i(98949),n=i(20913),r=i(66394);e.Contrast=function(t){let e=Math.pow((this.contrast()+100)/100,2),i=t.data,a=i.length,n=150,r=150,o=150;for(let t=0;t255?255:n,r=r<0?0:r>255?255:r,o=o<0?0:o>255?255:o,i[t]=n,i[t+1]=r,i[t+2]=o},a.Factory.addGetterSetter(n.Node,"contrast",0,(0,r.getNumberValidator)(),a.Factory.afterSetFilter)},8116:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HSL=void 0;let a=i(98949),n=i(20913),r=i(66394);a.Factory.addGetterSetter(n.Node,"hue",0,(0,r.getNumberValidator)(),a.Factory.afterSetFilter),a.Factory.addGetterSetter(n.Node,"saturation",0,(0,r.getNumberValidator)(),a.Factory.afterSetFilter),a.Factory.addGetterSetter(n.Node,"luminance",0,(0,r.getNumberValidator)(),a.Factory.afterSetFilter),e.HSL=function(t){let e,i,a,n,r=t.data,o=r.length,s=Math.pow(2,this.saturation()),l=Math.abs(this.hue()+360)%360,V=127*this.luminance(),c=s*Math.cos(l*Math.PI/180),h=s*Math.sin(l*Math.PI/180),d=.299+.701*c+.167*h,p=.587-.587*c+.33*h,u=.114-.114*c-.497*h,g=.299-.299*c-.328*h,f=.587+.413*c+.035*h,m=.114-.114*c+.293*h,v=.299-.3*c+1.25*h,x=.587-.586*c-1.05*h,y=.114+.886*c-.2*h;for(let t=0;t{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Emboss=void 0;let a=i(98949),n=i(20913),r=i(26509),o=i(66394);e.Emboss=function(t){let e=10*this.embossStrength(),i=255*this.embossWhiteLevel(),a=this.embossDirection(),n=this.embossBlend(),o=t.data,s=t.width,l=t.height,V=4*s,c=0,h=0,d=l;switch(a){case"top-left":c=-1,h=-1;break;case"top":c=-1,h=0;break;case"top-right":c=-1,h=1;break;case"right":c=0,h=1;break;case"bottom-right":c=1,h=1;break;case"bottom":c=1,h=0;break;case"bottom-left":c=1,h=-1;break;case"left":c=0,h=-1;break;default:r.Util.error("Unknown emboss direction: "+a)}do{let t=(d-1)*V,a=c;d+a<1&&(a=0),d+a>l&&(a=0);let r=(d-1+a)*s*4,p=s;do{let a=t+(p-1)*4,l=h;p+l<1&&(l=0),p+l>s&&(l=0);let V=r+(p-1+l)*4,c=o[a]-o[V],d=o[a+1]-o[V+1],u=o[a+2]-o[V+2],g=c,f=g>0?g:-g,m=u>0?u:-u;if((d>0?d:-d)>f&&(g=d),m>f&&(g=u),g*=e,n){let t=o[a]+g,e=o[a+1]+g,i=o[a+2]+g;o[a]=t>255?255:t<0?0:t,o[a+1]=e>255?255:e<0?0:e,o[a+2]=i>255?255:i<0?0:i}else{let t=i-g;t<0?t=0:t>255&&(t=255),o[a]=o[a+1]=o[a+2]=t}}while(--p)}while(--d)},a.Factory.addGetterSetter(n.Node,"embossStrength",.5,(0,o.getNumberValidator)(),a.Factory.afterSetFilter),a.Factory.addGetterSetter(n.Node,"embossWhiteLevel",.5,(0,o.getNumberValidator)(),a.Factory.afterSetFilter),a.Factory.addGetterSetter(n.Node,"embossDirection","top-left",void 0,a.Factory.afterSetFilter),a.Factory.addGetterSetter(n.Node,"embossBlend",!1,void 0,a.Factory.afterSetFilter)},11231:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RGBA=void 0;let a=i(98949),n=i(20913),r=i(66394);e.RGBA=function(t){let e=t.data,i=e.length,a=this.red(),n=this.green(),r=this.blue(),o=this.alpha();for(let t=0;t255)?255:t<0?0:Math.round(t)}),a.Factory.addGetterSetter(n.Node,"green",0,function(t){return(this._filterUpToDate=!1,t>255)?255:t<0?0:Math.round(t)}),a.Factory.addGetterSetter(n.Node,"blue",0,r.RGBComponent,a.Factory.afterSetFilter),a.Factory.addGetterSetter(n.Node,"alpha",1,function(t){return(this._filterUpToDate=!1,t>1)?1:t<0?0:t})},12462:(t,e)=>{"use strict";e.__esModule=!0,e.default=function(t,e){if(t&&e){var i=Array.isArray(e)?e:e.split(",");if(0===i.length)return!0;var a=t.name||"",n=(t.type||"").toLowerCase(),r=n.replace(/\/.*$/,"");return i.some(function(t){var e=t.trim().toLowerCase();return"."===e.charAt(0)?a.toLowerCase().endsWith(e):e.endsWith("/*")?r===e.replace(/\/.*$/,""):n===e})}return!0}},13053:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Sprite=void 0;let a=i(98949),n=i(83306),r=i(86345),o=i(66394),s=i(66878);class l extends n.Shape{constructor(t){super(t),this._updated=!0,this.anim=new r.Animation(()=>{let t=this._updated;return this._updated=!1,t}),this.on("animationChange.konva",function(){this.frameIndex(0)}),this.on("frameIndexChange.konva",function(){this._updated=!0}),this.on("frameRateChange.konva",function(){this.anim.isRunning()&&(clearInterval(this.interval),this._setInterval())})}_sceneFunc(t){let e=this.animation(),i=this.frameIndex(),a=4*i,n=this.animations()[e],r=this.frameOffsets(),o=n[a+0],s=n[a+1],l=n[a+2],V=n[a+3],c=this.image();if((this.hasFill()||this.hasStroke())&&(t.beginPath(),t.rect(0,0,l,V),t.closePath(),t.fillStrokeShape(this)),c)if(r){let a=r[e],n=2*i;t.drawImage(c,o,s,l,V,a[n+0],a[n+1],l,V)}else t.drawImage(c,o,s,l,V,0,0,l,V)}_hitFunc(t){let e=this.animation(),i=this.frameIndex(),a=4*i,n=this.animations()[e],r=this.frameOffsets(),o=n[a+2],s=n[a+3];if(t.beginPath(),r){let a=r[e],n=2*i;t.rect(a[n+0],a[n+1],o,s)}else t.rect(0,0,o,s);t.closePath(),t.fillShape(this)}_useBufferCanvas(){return super._useBufferCanvas(!0)}_setInterval(){let t=this;this.interval=setInterval(function(){t._updateIndex()},1e3/this.frameRate())}start(){if(this.isRunning())return;let t=this.getLayer();this.anim.setLayers(t),this._setInterval(),this.anim.start()}stop(){this.anim.stop(),clearInterval(this.interval)}isRunning(){return this.anim.isRunning()}_updateIndex(){let t=this.frameIndex(),e=this.animation();t{"use strict";e.ConcurrentRoot=1,e.DefaultEventPriority=32,e.DiscreteEventPriority=2},16892:(t,e)=>{"use strict";function i(t,e){var i=t.length;for(t.push(e);0>>1,n=t[a];if(0>>1;ar(l,i))Vr(c,l)?(t[a]=c,t[V]=i,a=V):(t[a]=l,t[s]=i,a=s);else if(Vr(c,i))t[a]=c,t[V]=i,a=V;else break}}return e}function r(t,e){var i=t.sortIndex-e.sortIndex;return 0!==i?i:t.id-e.id}if(e.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var o,s=performance;e.unstable_now=function(){return s.now()}}else{var l=Date,V=l.now();e.unstable_now=function(){return l.now()-V}}var c=[],h=[],d=1,p=null,u=3,g=!1,f=!1,m=!1,v=!1,x="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function _(t){for(var e=a(h);null!==e;){if(null===e.callback)n(h);else if(e.startTime<=t)n(h),e.sortIndex=e.expirationTime,i(c,e);else break;e=a(h)}}function A(t){if(m=!1,_(t),!f)if(null!==a(c))f=!0,w||(w=!0,o());else{var e=a(h);null!==e&&M(A,e.startTime-t)}}var w=!1,S=-1,C=5,k=-1;function P(){return!!v||!(e.unstable_now()-kt&&P());){var s=p.callback;if("function"==typeof s){p.callback=null,u=p.priorityLevel;var l=s(p.expirationTime<=t);if(t=e.unstable_now(),"function"==typeof l){p.callback=l,_(t),i=!0;break e}p===a(c)&&n(c),_(t)}else n(c);p=a(c)}if(null!==p)i=!0;else{var V=a(h);null!==V&&M(A,V.startTime-t),i=!1}}break t}finally{p=null,u=r,g=!1}}}finally{i?o():w=!1}}}if("function"==typeof b)o=function(){b(T)};else if("undefined"!=typeof MessageChannel){var E=new MessageChannel,F=E.port2;E.port1.onmessage=T,o=function(){F.postMessage(null)}}else o=function(){x(T,0)};function M(t,i){S=x(function(){t(e.unstable_now())},i)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(t){t.callback=null},e.unstable_forceFrameRate=function(t){0>t||125s?(t.sortIndex=r,i(h,t),null===a(c)&&t===a(h)&&(m?(y(S),S=-1):m=!0,M(A,r-s))):(t.sortIndex=l,i(c,t),f||g||(f=!0,w||(w=!0,o()))),t},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(t){var e=u;return function(){var i=u;u=e;try{return t.apply(this,arguments)}finally{u=i}}}},18850:(t,e,i)=>{"use strict";i.d(e,{j:()=>s});var a=i(73750),n=i(51828),r=i(80148),o=i(12115);function s(t={}){let{id:e,defaultOpen:i,isOpen:l,onClose:V,onOpen:c,onChange:h=()=>{}}=t,d=(0,r.c)(c),p=(0,r.c)(V),[u,g]=(0,n.P)(l,i||!1,h),f=(0,o.useId)(),m=e||f,v=void 0!==l,x=(0,o.useCallback)(()=>{v||g(!1),null==p||p()},[v,p]),y=(0,o.useCallback)(()=>{v||g(!0),null==d||d()},[v,d]),b=(0,o.useCallback)(()=>{(u?x:y)()},[u,y,x]);return{isOpen:!!u,onOpen:y,onClose:x,onOpenChange:b,isControlled:v,getButtonProps:(t={})=>({...t,"aria-expanded":u,"aria-controls":m,onClick:(0,a.c)(t.onClick,b)}),getDisclosureProps:(t={})=>({...t,hidden:!u,id:m})}}},19340:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Arc=void 0;let a=i(98949),n=i(83306),r=i(66878),o=i(66394),s=i(66878);class l extends n.Shape{_sceneFunc(t){let e=r.Konva.getAngle(this.angle()),i=this.clockwise();t.beginPath(),t.arc(0,0,this.outerRadius(),0,e,i),t.arc(0,0,this.innerRadius(),e,0,!i),t.closePath(),t.fillStrokeShape(this)}getWidth(){return 2*this.outerRadius()}getHeight(){return 2*this.outerRadius()}setWidth(t){this.outerRadius(t/2)}setHeight(t){this.outerRadius(t/2)}getSelfRect(){let t=this.innerRadius(),e=this.outerRadius(),i=this.clockwise(),a=r.Konva.getAngle(i?360-this.angle():this.angle()),n=Math.cos(Math.min(a,Math.PI)),o=Math.sin(Math.min(Math.max(Math.PI,a),3*Math.PI/2)),s=Math.sin(Math.min(a,Math.PI/2)),l=n*(n>0?t:e),V=o*(o>0?t:e),c=s*(s>0?e:t);return{x:l,y:i?-1*c:V,width:e-l,height:c-V}}}e.Arc=l,l.prototype._centroid=!0,l.prototype.className="Arc",l.prototype._attrsAffectingSize=["innerRadius","outerRadius","angle","clockwise"],(0,s._registerNode)(l),a.Factory.addGetterSetter(l,"innerRadius",0,(0,o.getNumberValidator)()),a.Factory.addGetterSetter(l,"outerRadius",0,(0,o.getNumberValidator)()),a.Factory.addGetterSetter(l,"angle",0,(0,o.getNumberValidator)()),a.Factory.addGetterSetter(l,"clockwise",!1,(0,o.getBooleanValidator)())},19480:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RGB=void 0;let a=i(98949),n=i(20913),r=i(66394);e.RGB=function(t){let e=t.data,i=e.length,a=this.red(),n=this.green(),r=this.blue();for(let t=0;t255)?255:t<0?0:Math.round(t)}),a.Factory.addGetterSetter(n.Node,"green",0,function(t){return(this._filterUpToDate=!1,t>255)?255:t<0?0:Math.round(t)}),a.Factory.addGetterSetter(n.Node,"blue",0,r.RGBComponent,a.Factory.afterSetFilter)},20913:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Node=void 0;let a=i(4421),n=i(80165),r=i(98949),o=i(66878),s=i(26509),l=i(66394),V="absoluteOpacity",c="allEventListeners",h="absoluteTransform",d="absoluteScale",p="canvas",u="listening",g="Shape",f="stage",m="transform",v="visible",x=1;class y{constructor(t){this._id=x++,this.eventListeners={},this.attrs={},this.index=0,this._allEventListeners=null,this.parent=null,this._cache=new Map,this._attachedDepsListeners=new Map,this._lastPos=null,this._batchingTransformChange=!1,this._needClearTransformCache=!1,this._filterUpToDate=!1,this._isUnderCache=!1,this._dragEventId=null,this._shouldFireChangeEvents=!1,this.setAttrs(t),this._shouldFireChangeEvents=!0}hasChildren(){return!1}_clearCache(t){(t===m||t===h)&&this._cache.get(t)?this._cache.get(t).dirty=!0:t?this._cache.delete(t):this._cache.clear()}_getCache(t,e){let i=this._cache.get(t),a=t===m||t===h;return(void 0===i||a&&!0===i.dirty)&&(i=e.call(this),this._cache.set(t,i)),i}_calculate(t,e,i){if(!this._attachedDepsListeners.get(t)){let i=e.map(t=>t+"Change.konva").join(" ");this.on(i,()=>{this._clearCache(t)}),this._attachedDepsListeners.set(t,!0)}return this._getCache(t,i)}_getCanvasCache(){return this._cache.get(p)}_clearSelfAndDescendantCache(t){this._clearCache(t),t===h&&this.fire("absoluteTransformChange")}clearCache(){if(this._cache.has(p)){let{scene:t,filter:e,hit:i,buffer:a}=this._cache.get(p);s.Util.releaseCanvas(t,e,i,a),this._cache.delete(p)}return this._clearSelfAndDescendantCache(),this._requestDraw(),this}cache(t){let e=t||{},i={};(void 0===e.x||void 0===e.y||void 0===e.width||void 0===e.height)&&(i=this.getClientRect({skipTransform:!0,relativeTo:this.getParent()||void 0}));let n=Math.ceil(e.width||i.width),r=Math.ceil(e.height||i.height),o=e.pixelRatio,l=void 0===e.x?Math.floor(i.x):e.x,c=void 0===e.y?Math.floor(i.y):e.y,h=e.offset||0,u=e.drawBorder||!1,g=e.hitCanvasPixelRatio||1;if(!n||!r)return void s.Util.error("Can not cache the node. Width or height of the node equals 0. Caching is skipped.");let f=+(Math.abs(Math.round(i.x)-l)>.5),m=+(Math.abs(Math.round(i.y)-c)>.5);n+=2*h+f,r+=2*h+m,l-=h,c-=h;let v=new a.SceneCanvas({pixelRatio:o,width:n,height:r}),x=new a.SceneCanvas({pixelRatio:o,width:0,height:0,willReadFrequently:!0}),y=new a.HitCanvas({pixelRatio:g,width:n,height:r}),b=v.getContext(),_=y.getContext(),A=new a.SceneCanvas({width:v.width/v.pixelRatio+Math.abs(l),height:v.height/v.pixelRatio+Math.abs(c),pixelRatio:v.pixelRatio}),w=A.getContext();return y.isCache=!0,v.isCache=!0,this._cache.delete(p),this._filterUpToDate=!1,!1===e.imageSmoothingEnabled&&(v.getContext()._context.imageSmoothingEnabled=!1,x.getContext()._context.imageSmoothingEnabled=!1),b.save(),_.save(),w.save(),b.translate(-l,-c),_.translate(-l,-c),w.translate(-l,-c),A.x=l,A.y=c,this._isUnderCache=!0,this._clearSelfAndDescendantCache(V),this._clearSelfAndDescendantCache(d),this.drawScene(v,this,A),this.drawHit(y,this),this._isUnderCache=!1,b.restore(),_.restore(),u&&(b.save(),b.beginPath(),b.rect(0,0,n,r),b.closePath(),b.setAttr("strokeStyle","red"),b.setAttr("lineWidth",5),b.stroke(),b.restore()),this._cache.set(p,{scene:v,filter:x,hit:y,buffer:A,x:l,y:c}),this._requestDraw(),this}isCached(){return this._cache.has(p)}getClientRect(t){throw Error('abstract "getClientRect" method call')}_transformedRect(t,e){let i=[{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}],a=1/0,n=1/0,r=-1/0,o=-1/0,s=this.getAbsoluteTransform(e);return i.forEach(function(t){let e=s.point(t);void 0===a&&(a=r=e.x,n=o=e.y),a=Math.min(a,e.x),n=Math.min(n,e.y),r=Math.max(r,e.x),o=Math.max(o,e.y)}),{x:a,y:n,width:r-a,height:o-n}}_drawCachedSceneCanvas(t){t.save(),t._applyOpacity(this),t._applyGlobalCompositeOperation(this);let e=this._getCanvasCache();t.translate(e.x,e.y);let i=this._getCachedSceneCanvas(),a=i.pixelRatio;t.drawImage(i._canvas,0,0,i.width/a,i.height/a),t.restore()}_drawCachedHitCanvas(t){let e=this._getCanvasCache(),i=e.hit;t.save(),t.translate(e.x,e.y),t.drawImage(i._canvas,0,0,i.width/i.pixelRatio,i.height/i.pixelRatio),t.restore()}_getCachedSceneCanvas(){let t=this.filters(),e=this._getCanvasCache(),i=e.scene,a=e.filter,n=a.getContext(),r,o,l,V;if(t){if(!this._filterUpToDate){let e=i.pixelRatio;a.setSize(i.width/i.pixelRatio,i.height/i.pixelRatio);try{for(r=t.length,n.clear(),n.drawImage(i._canvas,0,0,i.getWidth()/e,i.getHeight()/e),o=n.getImageData(0,0,a.getWidth(),a.getHeight()),l=0;l{let e,i;if(!t)return this;for(e in t)"children"!==e&&(i="set"+s.Util._capitalize(e),s.Util._isFunction(this[i])?this[i](t[e]):this._setAttr(e,t[e]))}),this}isListening(){return this._getCache(u,this._isListening)}_isListening(t){if(!this.listening())return!1;let e=this.getParent();return!e||e===t||this===t||e._isListening(t)}isVisible(){return this._getCache(v,this._isVisible)}_isVisible(t){if(!this.visible())return!1;let e=this.getParent();return!e||e===t||this===t||e._isVisible(t)}shouldDrawHit(t,e=!1){if(t)return this._isVisible(t)&&this._isListening(t);let i=this.getLayer(),a=!1;n.DD._dragElements.forEach(t=>{"dragging"===t.dragStatus&&("Stage"===t.node.nodeType?a=!0:t.node.getLayer()===i&&(a=!0))});let r=!e&&!o.Konva.hitOnDragEnabled&&(a||o.Konva.isTransforming());return this.isListening()&&this.isVisible()&&!r}show(){return this.visible(!0),this}hide(){return this.visible(!1),this}getZIndex(){return this.index||0}getAbsoluteZIndex(){let t=this.getDepth(),e=this,i=0,a,n,r,o,s=this.getStage();return"Stage"!==e.nodeType&&s&&function s(l){for(r=0,a=[],n=l.length;r0&&a[0].getDepth()<=t&&s(a)}(s.getChildren()),i}getDepth(){let t=0,e=this.parent;for(;e;)t++,e=e.parent;return t}_batchTransformChanges(t){this._batchingTransformChange=!0,t(),this._batchingTransformChange=!1,this._needClearTransformCache&&(this._clearCache(m),this._clearSelfAndDescendantCache(h)),this._needClearTransformCache=!1}setPosition(t){return this._batchTransformChanges(()=>{this.x(t.x),this.y(t.y)}),this}getPosition(){return{x:this.x(),y:this.y()}}getRelativePointerPosition(){let t=this.getStage();if(!t)return null;let e=t.getPointerPosition();if(!e)return null;let i=this.getAbsoluteTransform().copy();return i.invert(),i.point(e)}getAbsolutePosition(t){let e=!1,i=this.parent;for(;i;){if(i.isCached()){e=!0;break}i=i.parent}e&&!t&&(t=!0);let a=this.getAbsoluteTransform(t).getMatrix(),n=new s.Transform,r=this.offset();return n.m=a.slice(),n.translate(r.x,r.y),n.getTranslation()}setAbsolutePosition(t){let{x:e,y:i,...a}=this._clearTransform();this.attrs.x=e,this.attrs.y=i,this._clearCache(m);let n=this._getAbsoluteTransform().copy();return n.invert(),n.translate(t.x,t.y),t={x:this.attrs.x+n.getTranslation().x,y:this.attrs.y+n.getTranslation().y},this._setTransform(a),this.setPosition({x:t.x,y:t.y}),this._clearCache(m),this._clearSelfAndDescendantCache(h),this}_setTransform(t){let e;for(e in t)this.attrs[e]=t[e]}_clearTransform(){let 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,t}move(t){let e=t.x,i=t.y,a=this.x(),n=this.y();return void 0!==e&&(a+=e),void 0!==i&&(n+=i),this.setPosition({x:a,y:n}),this}_eachAncestorReverse(t,e){let i=[],a=this.getParent(),n,r;if(!e||e._id!==this._id){for(i.unshift(this);a&&(!e||a._id!==e._id);)i.unshift(a),a=a.parent;for(r=0,n=i.length;r0&&(this.parent.children.splice(t,1),this.parent.children.splice(t-1,0,this),this.parent._setChildrenIndices(),!0)}moveToBottom(){if(!this.parent)return s.Util.warn("Node has no parent. moveToBottom function is ignored."),!1;let t=this.index;return t>0&&(this.parent.children.splice(t,1),this.parent.children.unshift(this),this.parent._setChildrenIndices(),!0)}setZIndex(t){if(!this.parent)return s.Util.warn("Node has no parent. zIndex parameter is ignored."),this;(t<0||t>=this.parent.children.length)&&s.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)+".");let e=this.index;return this.parent.children.splice(e,1),this.parent.children.splice(t,0,this),this.parent._setChildrenIndices(),this}getAbsoluteOpacity(){return this._getCache(V,this._getAbsoluteOpacity)}_getAbsoluteOpacity(){let t=this.opacity(),e=this.getParent();return e&&!e._isUnderCache&&(t*=e.getAbsoluteOpacity()),t}moveTo(t){return this.getParent()!==t&&(this._remove(),t.add(this)),this}toObject(){let t=this.getAttrs(),e,i,a,n,r={attrs:{},className:this.getClassName()};for(e in t)i=t[e],(!s.Util.isObject(i)||s.Util._isPlainObject(i)||s.Util._isArray(i))&&(a="function"==typeof this[e]&&this[e],delete t[e],n=a?a.call(this):null,t[e]=i,n!==i&&(r.attrs[e]=i));return s.Util._prepareToStringify(r)}toJSON(){return JSON.stringify(this.toObject())}getParent(){return this.parent}findAncestors(t,e,i){let a=[];e&&this._isMatch(t)&&a.push(this);let n=this.parent;for(;n&&n!==i;)n._isMatch(t)&&a.push(n),n=n.parent;return a}isAncestorOf(t){return!1}findAncestor(t,e,i){return this.findAncestors(t,e,i)[0]}_isMatch(t){if(!t)return!1;if("function"==typeof t)return t(this);let e=t.replace(/ /g,"").split(","),i=e.length,a,n;for(a=0;a(o=a[r]).name.indexOf("konva")&&(l.eventListeners[i]||(l.eventListeners[i]=[]),l.eventListeners[i].push(o));return l}_toKonvaCanvas(t){t=t||{};let e=this.getClientRect(),i=this.getStage(),n=void 0!==t.x?t.x:Math.floor(e.x),r=void 0!==t.y?t.y:Math.floor(e.y),o=t.pixelRatio||1,s=new a.SceneCanvas({width:t.width||Math.ceil(e.width)||(i?i.width():0),height:t.height||Math.ceil(e.height)||(i?i.height():0),pixelRatio:o}),l=s.getContext(),V=new a.SceneCanvas({width:s.width/s.pixelRatio+Math.abs(n),height:s.height/s.pixelRatio+Math.abs(r),pixelRatio:s.pixelRatio});return!1===t.imageSmoothingEnabled&&(l._context.imageSmoothingEnabled=!1),l.save(),(n||r)&&l.translate(-1*n,-1*r),this.drawScene(s,void 0,V),l.restore(),s}toCanvas(t){return this._toKonvaCanvas(t)._canvas}toDataURL(t){let e=(t=t||{}).mimeType||null,i=t.quality||null,a=this._toKonvaCanvas(t).toDataURL(e,i);return t.callback&&t.callback(a),a}toImage(t){return new Promise((e,i)=>{try{let i=null==t?void 0:t.callback;i&&delete t.callback,s.Util._urlToImage(this.toDataURL(t),function(t){e(t),null==i||i(t)})}catch(t){i(t)}})}toBlob(t){return new Promise((e,i)=>{try{let i=null==t?void 0:t.callback;i&&delete t.callback,this.toCanvas(t).toBlob(t=>{e(t),null==i||i(t)},null==t?void 0:t.mimeType,null==t?void 0:t.quality)}catch(t){i(t)}})}setSize(t){return this.width(t.width),this.height(t.height),this}getSize(){return{width:this.width(),height:this.height()}}getClassName(){return this.className||this.nodeType}getType(){return this.nodeType}getDragDistance(){return void 0!==this.attrs.dragDistance?this.attrs.dragDistance:this.parent?this.parent.getDragDistance():o.Konva.dragDistance}_off(t,e,i){let a=this.eventListeners[t],n,r,o;for(n=0;n=0)||this.isDragging())return;let e=!1;n.DD._dragElements.forEach(t=>{this.isAncestorOf(t.node)&&(e=!0)}),e||this._createDragElement(t)})}_dragChange(){if(this.attrs.draggable)this._listenDrag();else{if(this._dragCleanup(),!this.getStage())return;let t=n.DD._dragElements.get(this._id),e=t&&"dragging"===t.dragStatus,i=t&&"ready"===t.dragStatus;e?this.stopDrag():i&&n.DD._dragElements.delete(this._id)}}_dragCleanup(){this.off("mousedown.konva"),this.off("touchstart.konva")}isClientRectOnScreen(t={x:0,y:0}){let e=this.getStage();if(!e)return!1;let i={x:-t.x,y:-t.y,width:e.width()+2*t.x,height:e.height()+2*t.y};return s.Util.haveIntersection(i,this.getClientRect())}static create(t,e){return s.Util._isString(t)&&(t=JSON.parse(t)),this._createNode(t,e)}static _createNode(t,e){let i=y.prototype.getClassName.call(t),a=t.children,n,r,l;if(e&&(t.attrs.container=e),o.Konva[i]||(s.Util.warn('Can not find a node with class name "'+i+'". Fallback to "Shape".'),i="Shape"),n=new o.Konva[i](t.attrs),a)for(l=0,r=a.length;l{},24555:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getCapturedShape=function(t){return n.get(t)},e.createEvent=o,e.hasPointerCapture=function(t,e){return n.get(t)===e},e.setPointerCapture=function(t,e){s(t),e.getStage()&&(n.set(t,e),r&&e._fire("gotpointercapture",o(new PointerEvent("gotpointercapture"))))},e.releaseCapture=s;let a=i(66878),n=new Map,r=void 0!==a.Konva._global.PointerEvent;function o(t){return{evt:t,pointerId:t.pointerId}}function s(t,e){let i=n.get(t);if(!i)return;let a=i.getStage();a&&a.content,n.delete(t),r&&i._fire("lostpointercapture",o(new PointerEvent("lostpointercapture")))}},26509:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Util=e.Transform=void 0;let a=i(66878);class n{constructor(t=[1,0,0,1,0,0]){this.dirty=!1,this.m=t&&t.slice()||[1,0,0,1,0,0]}reset(){this.m[0]=1,this.m[1]=0,this.m[2]=0,this.m[3]=1,this.m[4]=0,this.m[5]=0}copy(){return new n(this.m)}copyInto(t){t.m[0]=this.m[0],t.m[1]=this.m[1],t.m[2]=this.m[2],t.m[3]=this.m[3],t.m[4]=this.m[4],t.m[5]=this.m[5]}point(t){let 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]}}translate(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}scale(t,e){return this.m[0]*=t,this.m[1]*=t,this.m[2]*=e,this.m[3]*=e,this}rotate(t){let e=Math.cos(t),i=Math.sin(t),a=this.m[0]*e+this.m[2]*i,n=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;return this.m[0]=a,this.m[1]=n,this.m[2]=r,this.m[3]=o,this}getTranslation(){return{x:this.m[4],y:this.m[5]}}skew(t,e){let i=this.m[0]+this.m[2]*e,a=this.m[1]+this.m[3]*e,n=this.m[2]+this.m[0]*t,r=this.m[3]+this.m[1]*t;return this.m[0]=i,this.m[1]=a,this.m[2]=n,this.m[3]=r,this}multiply(t){let e=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],a=this.m[0]*t.m[2]+this.m[2]*t.m[3],n=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];return this.m[0]=e,this.m[1]=i,this.m[2]=a,this.m[3]=n,this.m[4]=r,this.m[5]=o,this}invert(){let t=1/(this.m[0]*this.m[3]-this.m[1]*this.m[2]),e=this.m[3]*t,i=-this.m[1]*t,a=-this.m[2]*t,n=this.m[0]*t,r=t*(this.m[2]*this.m[5]-this.m[3]*this.m[4]),o=t*(this.m[1]*this.m[4]-this.m[0]*this.m[5]);return this.m[0]=e,this.m[1]=i,this.m[2]=a,this.m[3]=n,this.m[4]=r,this.m[5]=o,this}getMatrix(){return this.m}decompose(){let t=this.m[0],i=this.m[1],a=this.m[2],n=this.m[3],r=this.m[4],o=this.m[5],s=t*n-i*a,l={x:r,y:o,rotation:0,scaleX:0,scaleY:0,skewX:0,skewY:0};if(0!=t||0!=i){let e=Math.sqrt(t*t+i*i);l.rotation=i>0?Math.acos(t/e):-Math.acos(t/e),l.scaleX=e,l.scaleY=s/e,l.skewX=(t*a+i*n)/s,l.skewY=0}else if(0!=a||0!=n){let e=Math.sqrt(a*a+n*n);l.rotation=Math.PI/2-(n>0?Math.acos(-a/e):-Math.acos(a/e)),l.scaleX=s/e,l.scaleY=e,l.skewX=0,l.skewY=(t*a+i*n)/s}return l.rotation=e.Util._getRotation(l.rotation),l}}e.Transform=n;let r=Math.PI/180,o=180/Math.PI,s="Konva error: ",l={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],olive:[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]},V=/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/,c=[],h="undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||function(t){setTimeout(t,60)};e.Util={_isElement:t=>!!(t&&1==t.nodeType),_isFunction:t=>!!(t&&t.constructor&&t.call&&t.apply),_isPlainObject:t=>!!t&&t.constructor===Object,_isArray:t=>"[object Array]"===Object.prototype.toString.call(t),_isNumber:t=>"[object Number]"===Object.prototype.toString.call(t)&&!isNaN(t)&&isFinite(t),_isString:t=>"[object String]"===Object.prototype.toString.call(t),_isBoolean:t=>"[object Boolean]"===Object.prototype.toString.call(t),isObject:t=>t instanceof Object,isValidSelector(t){if("string"!=typeof t)return!1;let e=t[0];return"#"===e||"."===e||e===e.toUpperCase()},_sign:t=>0===t||t>0?1:-1,requestAnimFrame(t){c.push(t),1===c.length&&h(function(){let t=c;c=[],t.forEach(function(t){t()})})},createCanvasElement(){let t=document.createElement("canvas");try{t.style=t.style||{}}catch(t){}return t},createImageElement:()=>document.createElement("img"),_isInDocument(t){for(;t=t.parentNode;)if(t==document)return!0;return!1},_urlToImage(t,i){let a=e.Util.createImageElement();a.onload=function(){i(a)},a.src=t},_rgbToHex:(t,e,i)=>(0x1000000+(t<<16)+(e<<8)+i).toString(16).slice(1),_hexToRgb(t){let e=parseInt(t=t.replace("#",""),16);return{r:e>>16&255,g:e>>8&255,b:255&e}},getRandomColor(){let t=(0xffffff*Math.random()|0).toString(16);for(;t.length<6;)t="0"+t;return"#"+t},getRGB(t){let e;return t in l?{r:(e=l[t])[0],g:e[1],b:e[2]}:"#"===t[0]?this._hexToRgb(t.substring(1)):"rgb("===t.substr(0,4)?{r:parseInt((e=V.exec(t.replace(/ /g,"")))[1],10),g:parseInt(e[2],10),b:parseInt(e[3],10)}:{r:0,g:0,b:0}},colorToRGBA:t=>(t=t||"black",e.Util._namedColorToRBA(t)||e.Util._hex3ColorToRGBA(t)||e.Util._hex4ColorToRGBA(t)||e.Util._hex6ColorToRGBA(t)||e.Util._hex8ColorToRGBA(t)||e.Util._rgbColorToRGBA(t)||e.Util._rgbaColorToRGBA(t)||e.Util._hslColorToRGBA(t)),_namedColorToRBA(t){let e=l[t.toLowerCase()];return e?{r:e[0],g:e[1],b:e[2],a:1}:null},_rgbColorToRGBA(t){if(0===t.indexOf("rgb(")){let e=(t=t.match(/rgb\(([^)]+)\)/)[1]).split(/ *, */).map(Number);return{r:e[0],g:e[1],b:e[2],a:1}}},_rgbaColorToRGBA(t){if(0===t.indexOf("rgba(")){let e=(t=t.match(/rgba\(([^)]+)\)/)[1]).split(/ *, */).map((t,e)=>"%"===t.slice(-1)?3===e?parseInt(t)/100:parseInt(t)/100*255:Number(t));return{r:e[0],g:e[1],b:e[2],a:e[3]}}},_hex8ColorToRGBA(t){if("#"===t[0]&&9===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:parseInt(t.slice(7,9),16)/255}},_hex6ColorToRGBA(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}},_hex4ColorToRGBA(t){if("#"===t[0]&&5===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:parseInt(t[4]+t[4],16)/255}},_hex3ColorToRGBA(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}},_hslColorToRGBA(t){if(/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.test(t)){let e,i,a,[n,...r]=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(t),o=Number(r[0])/360,s=Number(r[1])/100,l=Number(r[2])/100;if(0===s)return{r:Math.round(a=255*l),g:Math.round(a),b:Math.round(a),a:1};e=l<.5?l*(1+s):l+s-l*s;let V=2*l-e,c=[0,0,0];for(let t=0;t<3;t++)(i=o+-(1/3*(t-1)))<0&&i++,i>1&&i--,a=6*i<1?V+(e-V)*6*i:2*i<1?e:3*i<2?V+(e-V)*(2/3-i)*6:V,c[t]=255*a;return{r:Math.round(c[0]),g:Math.round(c[1]),b:Math.round(c[2]),a:1}}},haveIntersection:(t,e)=>!(e.x>t.x+t.width||e.x+e.widtht.y+t.height||e.y+e.heightt.slice(0),degToRad:t=>t*r,radToDeg:t=>t*o,_degToRad:t=>(e.Util.warn("Util._degToRad is removed. Please use public Util.degToRad instead."),e.Util.degToRad(t)),_radToDeg:t=>(e.Util.warn("Util._radToDeg is removed. Please use public Util.radToDeg instead."),e.Util.radToDeg(t)),_getRotation:t=>a.Konva.angleDeg?e.Util.radToDeg(t):t,_capitalize:t=>t.charAt(0).toUpperCase()+t.slice(1),throw(t){throw Error(s+t)},error(t){console.error(s+t)},warn(t){a.Konva.showWarnings&&console.warn("Konva warning: "+t)},each(t,e){for(let i in t)e(i,t[i])},_inRange:(t,e,i)=>e<=t&&t1?(o=i,s=a,l=(i-n)*(i-n)+(a-r)*(a-r)):l=((o=t+c*(i-t))-n)*(o-n)+((s=e+c*(a-e))-r)*(s-r)}return[o,s,l]},_getProjectionToLine(t,i,a){let n=e.Util.cloneObject(t),r=Number.MAX_VALUE;return i.forEach(function(o,s){if(!a&&s===i.length-1)return;let l=i[(s+1)%i.length],V=e.Util._getProjectionToSegment(o.x,o.y,l.x,l.y,t.x,t.y),c=V[0],h=V[1],d=V[2];di.length){let e=i;i=t,t=e}for(let e=0;et.touches?t.changedTouches[0].identifier:t.pointerId||999,releaseCanvas(...t){a.Konva.releaseCanvasOnDestroy&&t.forEach(t=>{t.width=0,t.height=0})},drawRoundedRectPath(t,e,i,a){let n=0,r=0,o=0,s=0;"number"==typeof a?n=r=o=s=Math.min(a,e/2,i/2):(n=Math.min(a[0]||0,e/2,i/2),r=Math.min(a[1]||0,e/2,i/2),s=Math.min(a[2]||0,e/2,i/2),o=Math.min(a[3]||0,e/2,i/2)),t.moveTo(n,0),t.lineTo(e-r,0),t.arc(e-r,r,r,3*Math.PI/2,0,!1),t.lineTo(e,i-s),t.arc(e-s,i-s,s,0,Math.PI/2,!1),t.lineTo(o,i),t.arc(o,i-o,o,Math.PI/2,Math.PI,!1),t.lineTo(0,n),t.arc(n,n,n,Math.PI,3*Math.PI/2,!1)}}},26659:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.t2length=e.getQuadraticArcLength=e.getCubicArcLength=e.binomialCoefficients=e.cValues=e.tValues=void 0,e.tValues=[[],[],[-.5773502691896257,.5773502691896257],[0,-.7745966692414834,.7745966692414834],[-.33998104358485626,.33998104358485626,-.8611363115940526,.8611363115940526],[0,-.5384693101056831,.5384693101056831,-.906179845938664,.906179845938664],[.6612093864662645,-.6612093864662645,-.2386191860831969,.2386191860831969,-.932469514203152,.932469514203152],[0,.4058451513773972,-.4058451513773972,-.7415311855993945,.7415311855993945,-.9491079123427585,.9491079123427585],[-.1834346424956498,.1834346424956498,-.525532409916329,.525532409916329,-.7966664774136267,.7966664774136267,-.9602898564975363,.9602898564975363],[0,-.8360311073266358,.8360311073266358,-.9681602395076261,.9681602395076261,-.3242534234038089,.3242534234038089,-.6133714327005904,.6133714327005904],[-.14887433898163122,.14887433898163122,-.4333953941292472,.4333953941292472,-.6794095682990244,.6794095682990244,-.8650633666889845,.8650633666889845,-.9739065285171717,.9739065285171717],[0,-.26954315595234496,.26954315595234496,-.5190961292068118,.5190961292068118,-.7301520055740494,.7301520055740494,-.8870625997680953,.8870625997680953,-.978228658146057,.978228658146057],[-.1252334085114689,.1252334085114689,-.3678314989981802,.3678314989981802,-.5873179542866175,.5873179542866175,-.7699026741943047,.7699026741943047,-.9041172563704749,.9041172563704749,-.9815606342467192,.9815606342467192],[0,-.2304583159551348,.2304583159551348,-.44849275103644687,.44849275103644687,-.6423493394403402,.6423493394403402,-.8015780907333099,.8015780907333099,-.9175983992229779,.9175983992229779,-.9841830547185881,.9841830547185881],[-.10805494870734367,.10805494870734367,-.31911236892788974,.31911236892788974,-.5152486363581541,.5152486363581541,-.6872929048116855,.6872929048116855,-.827201315069765,.827201315069765,-.9284348836635735,.9284348836635735,-.9862838086968123,.9862838086968123],[0,-.20119409399743451,.20119409399743451,-.3941513470775634,.3941513470775634,-.5709721726085388,.5709721726085388,-.7244177313601701,.7244177313601701,-.8482065834104272,.8482065834104272,-.937273392400706,.937273392400706,-.9879925180204854,.9879925180204854],[-.09501250983763744,.09501250983763744,-.2816035507792589,.2816035507792589,-.45801677765722737,.45801677765722737,-.6178762444026438,.6178762444026438,-.755404408355003,.755404408355003,-.8656312023878318,.8656312023878318,-.9445750230732326,.9445750230732326,-.9894009349916499,.9894009349916499],[0,-.17848418149584785,.17848418149584785,-.3512317634538763,.3512317634538763,-.5126905370864769,.5126905370864769,-.6576711592166907,.6576711592166907,-.7815140038968014,.7815140038968014,-.8802391537269859,.8802391537269859,-.9506755217687678,.9506755217687678,-.9905754753144174,.9905754753144174],[-.0847750130417353,.0847750130417353,-.2518862256915055,.2518862256915055,-.41175116146284263,.41175116146284263,-.5597708310739475,.5597708310739475,-.6916870430603532,.6916870430603532,-.8037049589725231,.8037049589725231,-.8926024664975557,.8926024664975557,-.9558239495713977,.9558239495713977,-.9915651684209309,.9915651684209309],[0,-.16035864564022537,.16035864564022537,-.31656409996362983,.31656409996362983,-.46457074137596094,.46457074137596094,-.600545304661681,.600545304661681,-.7209661773352294,.7209661773352294,-.8227146565371428,.8227146565371428,-.9031559036148179,.9031559036148179,-.96020815213483,.96020815213483,-.9924068438435844,.9924068438435844],[-.07652652113349734,.07652652113349734,-.22778585114164507,.22778585114164507,-.37370608871541955,.37370608871541955,-.5108670019508271,.5108670019508271,-.636053680726515,.636053680726515,-.7463319064601508,.7463319064601508,-.8391169718222188,.8391169718222188,-.912234428251326,.912234428251326,-.9639719272779138,.9639719272779138,-.9931285991850949,.9931285991850949],[0,-.1455618541608951,.1455618541608951,-.2880213168024011,.2880213168024011,-.4243421202074388,.4243421202074388,-.5516188358872198,.5516188358872198,-.6671388041974123,.6671388041974123,-.7684399634756779,.7684399634756779,-.8533633645833173,.8533633645833173,-.9200993341504008,.9200993341504008,-.9672268385663063,.9672268385663063,-.9937521706203895,.9937521706203895],[-.06973927331972223,.06973927331972223,-.20786042668822127,.20786042668822127,-.34193582089208424,.34193582089208424,-.469355837986757,.469355837986757,-.5876404035069116,.5876404035069116,-.6944872631866827,.6944872631866827,-.7878168059792081,.7878168059792081,-.8658125777203002,.8658125777203002,-.926956772187174,.926956772187174,-.9700604978354287,.9700604978354287,-.9942945854823992,.9942945854823992],[0,-.1332568242984661,.1332568242984661,-.26413568097034495,.26413568097034495,-.3903010380302908,.3903010380302908,-.5095014778460075,.5095014778460075,-.6196098757636461,.6196098757636461,-.7186613631319502,.7186613631319502,-.8048884016188399,.8048884016188399,-.8767523582704416,.8767523582704416,-.9329710868260161,.9329710868260161,-.9725424712181152,.9725424712181152,-.9947693349975522,.9947693349975522],[-.06405689286260563,.06405689286260563,-.1911188674736163,.1911188674736163,-.3150426796961634,.3150426796961634,-.4337935076260451,.4337935076260451,-.5454214713888396,.5454214713888396,-.6480936519369755,.6480936519369755,-.7401241915785544,.7401241915785544,-.820001985973903,.820001985973903,-.8864155270044011,.8864155270044011,-.9382745520027328,.9382745520027328,-.9747285559713095,.9747285559713095,-.9951872199970213,.9951872199970213]],e.cValues=[[],[],[1,1],[.8888888888888888,.5555555555555556,.5555555555555556],[.6521451548625461,.6521451548625461,.34785484513745385,.34785484513745385],[.5688888888888889,.47862867049936647,.47862867049936647,.23692688505618908,.23692688505618908],[.3607615730481386,.3607615730481386,.46791393457269104,.46791393457269104,.17132449237917036,.17132449237917036],[.4179591836734694,.3818300505051189,.3818300505051189,.27970539148927664,.27970539148927664,.1294849661688697,.1294849661688697],[.362683783378362,.362683783378362,.31370664587788727,.31370664587788727,.22238103445337448,.22238103445337448,.10122853629037626,.10122853629037626],[.3302393550012598,.1806481606948574,.1806481606948574,.08127438836157441,.08127438836157441,.31234707704000286,.31234707704000286,.26061069640293544,.26061069640293544],[.29552422471475287,.29552422471475287,.26926671930999635,.26926671930999635,.21908636251598204,.21908636251598204,.1494513491505806,.1494513491505806,.06667134430868814,.06667134430868814],[.2729250867779006,.26280454451024665,.26280454451024665,.23319376459199048,.23319376459199048,.18629021092773426,.18629021092773426,.1255803694649046,.1255803694649046,.05566856711617366,.05566856711617366],[.24914704581340277,.24914704581340277,.2334925365383548,.2334925365383548,.20316742672306592,.20316742672306592,.16007832854334622,.16007832854334622,.10693932599531843,.10693932599531843,.04717533638651183,.04717533638651183],[.2325515532308739,.22628318026289723,.22628318026289723,.2078160475368885,.2078160475368885,.17814598076194574,.17814598076194574,.13887351021978725,.13887351021978725,.09212149983772845,.09212149983772845,.04048400476531588,.04048400476531588],[.2152638534631578,.2152638534631578,.2051984637212956,.2051984637212956,.18553839747793782,.18553839747793782,.15720316715819355,.15720316715819355,.12151857068790319,.12151857068790319,.08015808715976021,.08015808715976021,.03511946033175186,.03511946033175186],[.2025782419255613,.19843148532711158,.19843148532711158,.1861610000155622,.1861610000155622,.16626920581699392,.16626920581699392,.13957067792615432,.13957067792615432,.10715922046717194,.10715922046717194,.07036604748810812,.07036604748810812,.03075324199611727,.03075324199611727],[.1894506104550685,.1894506104550685,.18260341504492358,.18260341504492358,.16915651939500254,.16915651939500254,.14959598881657674,.14959598881657674,.12462897125553388,.12462897125553388,.09515851168249279,.09515851168249279,.062253523938647894,.062253523938647894,.027152459411754096,.027152459411754096],[.17944647035620653,.17656270536699264,.17656270536699264,.16800410215645004,.16800410215645004,.15404576107681028,.15404576107681028,.13513636846852548,.13513636846852548,.11188384719340397,.11188384719340397,.08503614831717918,.08503614831717918,.0554595293739872,.0554595293739872,.02414830286854793,.02414830286854793],[.1691423829631436,.1691423829631436,.16427648374583273,.16427648374583273,.15468467512626524,.15468467512626524,.14064291467065065,.14064291467065065,.12255520671147846,.12255520671147846,.10094204410628717,.10094204410628717,.07642573025488905,.07642573025488905,.0497145488949698,.0497145488949698,.02161601352648331,.02161601352648331],[.1610544498487837,.15896884339395434,.15896884339395434,.15276604206585967,.15276604206585967,.1426067021736066,.1426067021736066,.12875396253933621,.12875396253933621,.11156664554733399,.11156664554733399,.09149002162245,.09149002162245,.06904454273764123,.06904454273764123,.0448142267656996,.0448142267656996,.019461788229726478,.019461788229726478],[.15275338713072584,.15275338713072584,.14917298647260374,.14917298647260374,.14209610931838204,.14209610931838204,.13168863844917664,.13168863844917664,.11819453196151841,.11819453196151841,.10193011981724044,.10193011981724044,.08327674157670475,.08327674157670475,.06267204833410907,.06267204833410907,.04060142980038694,.04060142980038694,.017614007139152118,.017614007139152118],[.14608113364969041,.14452440398997005,.14452440398997005,.13988739479107315,.13988739479107315,.13226893863333747,.13226893863333747,.12183141605372853,.12183141605372853,.10879729916714838,.10879729916714838,.09344442345603386,.09344442345603386,.0761001136283793,.0761001136283793,.057134425426857205,.057134425426857205,.036953789770852494,.036953789770852494,.016017228257774335,.016017228257774335],[.13925187285563198,.13925187285563198,.13654149834601517,.13654149834601517,.13117350478706238,.13117350478706238,.12325237681051242,.12325237681051242,.11293229608053922,.11293229608053922,.10041414444288096,.10041414444288096,.08594160621706773,.08594160621706773,.06979646842452049,.06979646842452049,.052293335152683286,.052293335152683286,.03377490158481415,.03377490158481415,.0146279952982722,.0146279952982722],[.13365457218610619,.1324620394046966,.1324620394046966,.12890572218808216,.12890572218808216,.12304908430672953,.12304908430672953,.11499664022241136,.11499664022241136,.10489209146454141,.10489209146454141,.09291576606003515,.09291576606003515,.07928141177671895,.07928141177671895,.06423242140852585,.06423242140852585,.04803767173108467,.04803767173108467,.030988005856979445,.030988005856979445,.013411859487141771,.013411859487141771],[.12793819534675216,.12793819534675216,.1258374563468283,.1258374563468283,.12167047292780339,.12167047292780339,.1155056680537256,.1155056680537256,.10744427011596563,.10744427011596563,.09761865210411388,.09761865210411388,.08619016153195327,.08619016153195327,.0733464814110803,.0733464814110803,.05929858491543678,.05929858491543678,.04427743881741981,.04427743881741981,.028531388628933663,.028531388628933663,.0123412297999872,.0123412297999872]],e.binomialCoefficients=[[1],[1,1],[1,2,1],[1,3,3,1]],e.getCubicArcLength=(t,a,n)=>{let r,o,s=n/2;r=0;for(let n=0;n<20;n++)o=s*e.tValues[20][n]+s,r+=e.cValues[20][n]*function(t,e,a){let n=i(1,a,t),r=i(1,a,e);return Math.sqrt(n*n+r*r)}(t,a,o);return s*r},e.getQuadraticArcLength=(t,e,i)=>{void 0===i&&(i=1);let a=t[0]-2*t[1]+t[2],n=e[0]-2*e[1]+e[2],r=2*t[1]-2*t[0],o=2*e[1]-2*e[0],s=4*(a*a+n*n);if(0===s)return i*Math.sqrt(Math.pow(t[2]-t[0],2)+Math.pow(e[2]-e[0],2));let l=4*(a*r+n*o)/(2*s),V=i+l,c=(r*r+o*o)/s-l*l,h=V*V+c>0?Math.sqrt(V*V+c):0,d=l*l+c>0?Math.sqrt(l*l+c):0,p=l+Math.sqrt(l*l+c)!==0?c*Math.log(Math.abs((V+h)/(l+d))):0;return Math.sqrt(s)/2*(V*h-l*d+p)};let i=(t,a,n)=>{let r,o,s=n.length-1;if(0===s)return 0;if(0===t){o=0;for(let t=0;t<=s;t++)o+=e.binomialCoefficients[s][t]*Math.pow(1-a,s-t)*Math.pow(a,t)*n[t];return o}r=Array(s);for(let t=0;t{let a=1,n=t/e,r=(t-i(n))/e,o=0;for(;a>.001;){let s=Math.abs(t-i(n+r))/e;if(s500)break}return n}},29408:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Wedge=void 0;let a=i(98949),n=i(83306),r=i(66878),o=i(66394),s=i(66878);class l extends n.Shape{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.radius(),0,r.Konva.getAngle(this.angle()),this.clockwise()),t.lineTo(0,0),t.closePath(),t.fillStrokeShape(this)}getWidth(){return 2*this.radius()}getHeight(){return 2*this.radius()}setWidth(t){this.radius(t/2)}setHeight(t){this.radius(t/2)}}e.Wedge=l,l.prototype.className="Wedge",l.prototype._centroid=!0,l.prototype._attrsAffectingSize=["radius"],(0,s._registerNode)(l),a.Factory.addGetterSetter(l,"radius",0,(0,o.getNumberValidator)()),a.Factory.addGetterSetter(l,"angle",0,(0,o.getNumberValidator)()),a.Factory.addGetterSetter(l,"clockwise",!1),a.Factory.backCompat(l,{angleDeg:"angle",getAngleDeg:"getAngle",setAngleDeg:"setAngle"})},34185:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Image=void 0;let a=i(26509),n=i(98949),r=i(83306),o=i(66878),s=i(66394);class l extends r.Shape{constructor(t){super(t),this._loadListener=()=>{this._requestDraw()},this.on("imageChange.konva",t=>{this._removeImageLoad(t.oldVal),this._setImageLoad()}),this._setImageLoad()}_setImageLoad(){let t=this.image();t&&t.complete||(!t||4!==t.readyState)&&t&&t.addEventListener&&t.addEventListener("load",this._loadListener)}_removeImageLoad(t){t&&t.removeEventListener&&t.removeEventListener("load",this._loadListener)}destroy(){return this._removeImageLoad(this.image()),super.destroy(),this}_useBufferCanvas(){let t=!!this.cornerRadius(),e=this.hasShadow();return!!t&&!!e||super._useBufferCanvas(!0)}_sceneFunc(t){let e,i=this.getWidth(),n=this.getHeight(),r=this.cornerRadius(),o=this.attrs.image;if(o){let t=this.attrs.cropWidth,a=this.attrs.cropHeight;e=t&&a?[o,this.cropX(),this.cropY(),t,a,0,0,i,n]:[o,0,0,i,n]}(this.hasFill()||this.hasStroke()||r)&&(t.beginPath(),r?a.Util.drawRoundedRectPath(t,i,n,r):t.rect(0,0,i,n),t.closePath(),t.fillStrokeShape(this)),o&&(r&&t.clip(),t.drawImage.apply(t,e))}_hitFunc(t){let e=this.width(),i=this.height(),n=this.cornerRadius();t.beginPath(),n?a.Util.drawRoundedRectPath(t,e,i,n):t.rect(0,0,e,i),t.closePath(),t.fillStrokeShape(this)}getWidth(){var t,e;return null!=(t=this.attrs.width)?t:null==(e=this.image())?void 0:e.width}getHeight(){var t,e;return null!=(t=this.attrs.height)?t:null==(e=this.image())?void 0:e.height}static fromURL(t,e,i=null){let n=a.Util.createImageElement();n.onload=function(){e(new l({image:n}))},n.onerror=i,n.crossOrigin="Anonymous",n.src=t}}e.Image=l,l.prototype.className="Image",(0,o._registerNode)(l),n.Factory.addGetterSetter(l,"cornerRadius",0,(0,s.getNumberOrArrayOfNumbersValidator)(4)),n.Factory.addGetterSetter(l,"image"),n.Factory.addComponentsGetterSetter(l,"crop",["x","y","width","height"]),n.Factory.addGetterSetter(l,"cropX",0,(0,s.getNumberValidator)()),n.Factory.addGetterSetter(l,"cropY",0,(0,s.getNumberValidator)()),n.Factory.addGetterSetter(l,"cropWidth",0,(0,s.getNumberValidator)()),n.Factory.addGetterSetter(l,"cropHeight",0,(0,s.getNumberValidator)())},37579:(t,e,i)=>{"use strict";i.d(e,{YJ:()=>tF,_V:()=>tD,Wd:()=>tE,N1:()=>tM,BI:()=>tO});var a={};i.r(a),i.d(a,{NotPendingTransition:()=>t_,appendChild:()=>Y,appendChildToContainer:()=>X,appendInitialChild:()=>w,cancelTimeout:()=>G,clearContainer:()=>ts,commitMount:()=>te,commitTextUpdate:()=>tt,commitUpdate:()=>ti,createInstance:()=>S,createTextInstance:()=>C,detachDeletedInstance:()=>tl,finalizeInitialChildren:()=>k,getChildHostContext:()=>I,getCurrentEventPriority:()=>tV,getCurrentUpdatePriority:()=>tp,getInstanceFromScope:()=>th,getPublicInstance:()=>P,getRootHostContext:()=>O,hideInstance:()=>ta,hideTextInstance:()=>tn,idlePriority:()=>y.unstable_IdlePriority,insertBefore:()=>Q,insertInContainerBefore:()=>J,isPrimaryRenderer:()=>z,maySuspendCommit:()=>tm,noTimeout:()=>U,now:()=>y.unstable_now,preloadInstance:()=>tv,prepareForCommit:()=>T,preparePortalMount:()=>E,prepareScopeUpdate:()=>tc,prepareUpdate:()=>F,removeChild:()=>Z,removeChildFromContainer:()=>$,requestPostPaintCallback:()=>tf,resetAfterCommit:()=>M,resetFormInstance:()=>tA,resetTextContent:()=>D,resolveUpdatePriority:()=>tu,run:()=>y.unstable_runWithPriority,scheduleMicrotask:()=>N,scheduleTimeout:()=>L,setCurrentUpdatePriority:()=>td,shouldAttemptEagerTransition:()=>tg,shouldDeprioritizeSubtree:()=>R,shouldSetTextContent:()=>B,startSuspendingCommit:()=>tx,supportsHydration:()=>q,supportsMicrotasks:()=>j,supportsMutation:()=>K,supportsPersistence:()=>H,suspendInstance:()=>ty,unhideInstance:()=>tr,unhideTextInstance:()=>to,waitForCommitToBeReady:()=>tb,warnsIfNotActing:()=>W}),i(55003);var n=i(12115),r=i(62670),o=i.n(r),s=i(45220),l=i.n(s),V=i(61933),c=i(66878);let h={children:!0,ref:!0,key:!0,style:!0,forwardedRef:!0,unstable_applyCache:!0,unstable_applyDrawHitFromCache:!0},d=!1,p=!1,u=".react-konva-event",g=`ReactKonva: You have a Konva node with draggable = true and position defined but no onDragMove or onDragEnd events are handled. Position of a node will be changed during drag&drop, so you should update state of the react app as well. Consider to add onDragMove or onDragEnd events. For more info see: https://github.com/konvajs/react-konva/issues/256 `,f=`ReactKonva: You are using "zIndex" attribute for a Konva node. react-konva may get confused with ordering. Just define correct order of elements in your render function of a component. For more info see: https://github.com/konvajs/react-konva/issues/194 `,m={};function v(t,e,i=m){if(!d&&"zIndex"in e&&(console.warn(f),d=!0),!p&&e.draggable){var a=void 0!==e.x||void 0!==e.y,n=e.onDragEnd||e.onDragMove;a&&!n&&(console.warn(g),p=!0)}for(var r in i)if(!h[r]){var o="on"===r.slice(0,2),s=i[r]!==e[r];if(o&&s){var l=r.substr(2).toLowerCase();"content"===l.substr(0,7)&&(l="content"+l.substr(7,1).toUpperCase()+l.substr(8)),t.off(l,i[r])}e.hasOwnProperty(r)||t.setAttr(r,void 0)}var V=e._useStrictMode,c={},y=!1;let b={};for(var r in e)if(!h[r]){var o="on"===r.slice(0,2),_=i[r]!==e[r];if(o&&_){var l=r.substr(2).toLowerCase();"content"===l.substr(0,7)&&(l="content"+l.substr(7,1).toUpperCase()+l.substr(8)),e[r]&&(b[l]=e[r])}!o&&(e[r]!==i[r]||V&&e[r]!==t.getAttr(r))&&(y=!0,c[r]=e[r])}for(var l in y&&(t.setAttrs(c),x(t)),b)t.off(l+u),t.on(l+u,b[l])}function x(t){if(!c.Konva.autoDrawEnabled){var e=t.getLayer()||t.getStage();e&&e.batchDraw()}}var y=i(72407);let b={},_={};o().Node.prototype._applyProps=v;let A=V.DefaultEventPriority;function w(t,e){if("string"==typeof e)return void console.error(`Do not use plain text as child of Konva.Node. You are using text: ${e}`);t.add(e),x(t)}function S(t,e,i){let a=o()[t];a||(console.error(`Konva has no node with the type ${t}. Group will be used instead. If you use minimal version of react-konva, just import required nodes into Konva: "import "konva/lib/shapes/${t}" If you want to render DOM elements as part of canvas tree take a look into this demo: https://konvajs.github.io/docs/react/DOM_Portal.html`),a=o().Group);let n={},r={};for(var s in e)"ref"!==s&&("on"===s.slice(0,2)?r[s]=e[s]:n[s]=e[s]);let l=new a(n);return v(l,r),l}function C(t,e,i){console.error(`Text components are not supported for now in ReactKonva. Your text is: "${t}"`)}function k(t,e,i){return!1}function P(t){return t}function T(){return null}function E(){return null}function F(t,e,i,a){return _}function M(){}function D(t){}function R(t,e){return!1}function O(){return b}function I(){return b}let L=setTimeout,G=clearTimeout,j=!0,N=t=>{t()},U=-1;function B(t,e){return!1}let z=!1,W=!1,K=!0,H=!1,q=!1;function Y(t,e){e.parent===t?e.moveToTop():t.add(e),x(t)}function X(t,e){e.parent===t?e.moveToTop():t.add(e),x(t)}function Q(t,e,i){e._remove(),t.add(e),e.setZIndex(i.getZIndex()),x(t)}function J(t,e,i){Q(t,e,i)}function Z(t,e){e.destroy(),e.off(u),x(t)}function $(t,e){e.destroy(),e.off(u),x(t)}function tt(t,e,i){console.error(`Text components are not yet supported in ReactKonva. You text is: "${i}"`)}function te(t,e,i){}function ti(t,e,i,a){v(t,a,i)}function ta(t){t.hide(),x(t)}function tn(t){}function tr(t,e){(null==e.visible||e.visible)&&t.show()}function to(t,e){}function ts(t){}function tl(){}function tV(){return V.DefaultEventPriority}function tc(){}function th(){return null}function td(t){A=t}function tp(){return A}function tu(){return V.DiscreteEventPriority}function tg(){return!1}function tf(){}function tm(){return!1}function tv(){return!0}function tx(){}function ty(){}function tb(){return null}let t_=null;function tA(){}function tw(t){try{return Object.defineProperties(t,{_currentRenderer:{get:()=>null,set(){}},_currentRenderer2:{get:()=>null,set(){}}})}catch(e){return t}}(()=>{var t,e;return"undefined"!=typeof window&&((null==(t=window.document)?void 0:t.createElement)||(null==(e=window.navigator)?void 0:e.product)==="ReactNative")})()?n.useLayoutEffect:n.useEffect;let tS=tw(n.createContext(null));class tC extends n.Component{render(){return n.createElement(tS.Provider,{value:this._reactInternals},this.props.children)}}let tk=Symbol.for("react.context"),tP=t=>null!==t&&"object"==typeof t&&"$$typeof"in t&&t.$$typeof===tk;if(-1===n.version.indexOf("19"))throw Error("react-konva version 19 is only compatible with React 19. Make sure to have the last version of react-konva and react or downgrade react-konva to version 18.");let tT=t=>{let e=n.useRef(null),i=n.useRef(null),a=n.useRef(null),r=function(t){let e=n.useRef({});return n.useLayoutEffect(()=>{e.current=t}),n.useLayoutEffect(()=>()=>{e.current={}},[]),e.current}(t),s=function(){let t=function(){let t=function(){let t=n.useContext(tS);if(null===t)throw Error("its-fine: useFiber must be called within a !");let e=n.useId();return n.useMemo(()=>{for(let i of[t,null==t?void 0:t.alternate]){if(!i)continue;let t=function t(e,i,a){if(!e)return;if(!0===a(e))return e;let n=i?e.return:e.child;for(;n;){let e=t(n,i,a);if(e)return e;n=i?null:n.sibling}}(i,!1,t=>{let i=t.memoizedState;for(;i;){if(i.memoizedState===e)return!0;i=i.next}});if(t)return t}},[t,e])}(),[e]=n.useState(()=>new Map);e.clear();let i=t;for(;i;){let t=i.type;tP(t)&&t!==tS&&!e.has(t)&&e.set(t,n.use(tw(t))),i=i.return}return e}();return n.useMemo(()=>Array.from(t.keys()).reduce((e,i)=>a=>n.createElement(e,null,n.createElement(i.Provider,{...a,value:t.get(i)})),t=>n.createElement(tC,{...t})),[t])}(),l=n.useRef(!1),c=e=>{let{forwardedRef:i}=t;i&&("function"==typeof i?i(e):i.current=e)},h=(()=>{let t=n.useRef(0);return n.useMemo(()=>{t.current++},[]),t.current>1})();return n.useLayoutEffect(()=>l.current&&h?()=>{l.current=!1,c(null),tR.updateContainer(null,a.current,null),i.current.destroy()}:(l.current=!0,i.current=new(o()).Stage({width:t.width,height:t.height,container:e.current}),c(i.current),a.current=tR.createContainer(i.current,V.ConcurrentRoot,null,!1,null,"",console.error,console.error,console.error,null),tR.updateContainer(n.createElement(s,{},t.children),a.current,null,()=>{}),()=>{h||(c(null),tR.updateContainer(null,a.current,null),i.current.destroy())}),[]),n.useLayoutEffect(()=>{c(i.current),v(i.current,t,r),tR.updateContainer(n.createElement(s,{},t.children),a.current,null)}),n.createElement("div",{ref:e,id:t.id,accessKey:t.accessKey,className:t.className,role:t.role,style:t.style,tabIndex:t.tabIndex,title:t.title})},tE="Layer",tF="Group",tM="Line",tD="Image",tR=l()(a);tR.injectIntoDevTools({findHostInstanceByFiber:()=>null,bundleType:0,version:n.version,rendererPackageName:"react-konva"});let tO=n.forwardRef((t,e)=>n.createElement(tC,{},n.createElement(tT,{...t,forwardedRef:e})))},38637:(t,e,i)=>{t.exports=i(79399)()},39732:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Blur=void 0;let a=i(98949),n=i(20913),r=i(66394);function o(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}let 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,396,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],l=[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];e.Blur=function(t){let e=Math.round(this.blurRadius());e>0&&function(t,e){let i,a,n,r,V,c,h,d,p,u,g,f,m,v,x,y,b,_,A,w,S=t.data,C=t.width,k=t.height,P=e+e+1,T=C-1,E=k-1,F=e+1,M=F*(F+1)/2,D=new o,R=s[e],O=l[e],I=null,L=D,G=null,j=null;for(let t=1;t>O,0!==A?(A=255/A,S[a]=(r*R>>O)*A,S[a+1]=(V*R>>O)*A,S[a+2]=(c*R>>O)*A):S[a]=S[a+1]=S[a+2]=0,r-=d,V-=p,c-=u,h-=g,d-=G.r,p-=G.g,u-=G.b,g-=G.a,i=n+((i=t+e+1)>O,A>0?(A=255/A,S[i]=(r*R>>O)*A,S[i+1]=(V*R>>O)*A,S[i+2]=(c*R>>O)*A):S[i]=S[i+1]=S[i+2]=0,r-=d,V-=p,c-=u,h-=g,d-=G.r,p-=G.g,u-=G.b,g-=G.a,i=t+((i=e+F){"use strict";i.d(e,{VB:()=>$});var a=i(12115),n=i(38637),r=i(39249);let o=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function s(t,e,i){let a=function(t){let{name:e}=t;if(e&&-1!==e.lastIndexOf(".")&&!t.type){let i=e.split(".").pop().toLowerCase(),a=o.get(i);a&&Object.defineProperty(t,"type",{value:a,writable:!1,configurable:!1,enumerable:!0})}return t}(t),{webkitRelativePath:n}=t,r="string"==typeof e?e:"string"==typeof n&&n.length>0?n:`./${t.name}`;return"string"!=typeof a.path&&l(a,"path",r),void 0!==i&&Object.defineProperty(a,"handle",{value:i,writable:!1,configurable:!1,enumerable:!0}),l(a,"relativePath",r),a}function l(t,e,i){Object.defineProperty(t,e,{value:i,writable:!1,configurable:!1,enumerable:!0})}let V=[".DS_Store","Thumbs.db"];function c(t){return"object"==typeof t&&null!==t}function h(t){return t.filter(t=>-1===V.indexOf(t.name))}function d(t){if(null===t)return[];let e=[];for(let i=0;i{t.file(i=>{e(s(i,t.fullPath))},t=>{i(t)})})})}(t)})}function f(t){let e=t.createReader();return new Promise((t,i)=>{let a=[];!function n(){e.readEntries(e=>(0,r.sH)(this,void 0,void 0,function*(){if(e.length){let t=Promise.all(e.map(g));a.push(t),n()}else try{let e=yield Promise.all(a);t(e)}catch(t){i(t)}}),t=>{i(t)})}()})}var m=i(12462);function v(t){return function(t){if(Array.isArray(t))return w(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||A(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,a)}return i}function y(t){for(var e=1;et.length)&&(e=t.length);for(var i=0,a=Array(e);i0&&void 0!==arguments[0]?arguments[0]:"",e=t.split(","),i=e.length>1?"one of ".concat(e.join(", ")):e[0];return{code:"file-invalid-type",message:"File type must be ".concat(i)}},k=function(t){return{code:"file-too-large",message:"File is larger than ".concat(t," ").concat(1===t?"byte":"bytes")}},P=function(t){return{code:"file-too-small",message:"File is smaller than ".concat(t," ").concat(1===t?"byte":"bytes")}},T={code:"too-many-files",message:"Too many files"};function E(t,e){var i="application/x-moz-file"===t.type||S(t,e);return[i,i?null:C(e)]}function F(t,e,i){if(M(t.size)){if(M(e)&&M(i)){if(t.size>i)return[!1,k(i)];if(t.sizei)return[!1,k(i)]}return[!0,null]}function M(t){return null!=t}function D(t){return"function"==typeof t.isPropagationStopped?t.isPropagationStopped():void 0!==t.cancelBubble&&t.cancelBubble}function R(t){return t.dataTransfer?Array.prototype.some.call(t.dataTransfer.types,function(t){return"Files"===t||"application/x-moz-file"===t}):!!t.target&&!!t.target.files}function O(t){t.preventDefault()}function I(){for(var t=arguments.length,e=Array(t),i=0;i1?i-1:0),n=1;nt.length)&&(e=t.length);for(var i=0,a=Array(e);i=0||(n[i]=t[i]);return n}(t,e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(t,i)&&(n[i]=t[i])}return n}var Q=(0,a.forwardRef)(function(t,e){var i=t.children,n=$(X(t,j)),r=n.open,o=X(n,N);return(0,a.useImperativeHandle)(e,function(){return{open:r}},[r]),a.createElement(a.Fragment,null,i(q(q({},o),{},{open:r})))});Q.displayName="Dropzone";var J={disabled:!1,getFilesFromEvent:function(t){return(0,r.sH)(this,void 0,void 0,function*(){var e;if(c(t)&&c(t.dataTransfer))return function(t,e){return(0,r.sH)(this,void 0,void 0,function*(){if(t.items){let i=d(t.items).filter(t=>"file"===t.kind);return"drop"!==e?i:h(function t(e){return e.reduce((e,i)=>[...e,...Array.isArray(i)?t(i):[i]],[])}((yield Promise.all(i.map(p)))))}return h(d(t.files).map(t=>s(t)))})}(t.dataTransfer,t.type);if(c(e=t)&&c(e.target))return d(t.target.files).map(t=>s(t));return Array.isArray(t)&&t.every(t=>"getFile"in t&&"function"==typeof t.getFile)?function(t){return(0,r.sH)(this,void 0,void 0,function*(){return(yield Promise.all(t.map(t=>t.getFile()))).map(t=>s(t))})}(t):[]})},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};Q.defaultProps=J,Q.propTypes={children:n.func,accept:n.objectOf(n.arrayOf(n.string)),multiple:n.bool,preventDropOnDocument:n.bool,noClick:n.bool,noKeyboard:n.bool,noDrag:n.bool,noDragEventsBubbling:n.bool,minSize:n.number,maxSize:n.number,maxFiles:n.number,disabled:n.bool,getFilesFromEvent:n.func,onFileDialogCancel:n.func,onFileDialogOpen:n.func,useFsAccessApi:n.bool,autoFocus:n.bool,onDragEnter:n.func,onDragLeave:n.func,onDragOver:n.func,onDrop:n.func,onDropAccepted:n.func,onDropRejected:n.func,onError:n.func,validator:n.func};var Z={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function $(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=q(q({},J),t),i=e.accept,n=e.disabled,r=e.getFilesFromEvent,o=e.maxSize,s=e.minSize,l=e.multiple,V=e.maxFiles,c=e.onDragEnter,h=e.onDragLeave,d=e.onDragOver,p=e.onDrop,u=e.onDropAccepted,g=e.onDropRejected,f=e.onFileDialogCancel,m=e.onFileDialogOpen,x=e.useFsAccessApi,A=e.autoFocus,w=e.preventDropOnDocument,S=e.noClick,C=e.noKeyboard,k=e.noDrag,P=e.noDragEventsBubbling,j=e.onError,N=e.validator,H=(0,a.useMemo)(function(){return M(i)?Object.entries(i).reduce(function(t,e){var i=_(e,2),a=i[0],n=i[1];return[].concat(v(t),[a],v(n))},[]).filter(function(t){return L(t)||G(t)}).join(","):void 0},[i]),Q=(0,a.useMemo)(function(){return M(i)?[{description:"Files",accept:Object.entries(i).filter(function(t){var e=_(t,2),i=e[0],a=e[1],n=!0;return L(i)||(console.warn('Skipped "'.concat(i,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),n=!1),Array.isArray(a)&&a.every(G)||(console.warn('Skipped "'.concat(i,'" because an invalid file extension was provided.')),n=!1),n}).reduce(function(t,e){var i=_(e,2),a=i[0],n=i[1];return y(y({},t),{},b({},a,n))},{})}]:i},[i]),$=(0,a.useMemo)(function(){return"function"==typeof m?m:te},[m]),ti=(0,a.useMemo)(function(){return"function"==typeof f?f:te},[f]),ta=(0,a.useRef)(null),tn=(0,a.useRef)(null),tr=z((0,a.useReducer)(tt,Z),2),to=tr[0],ts=tr[1],tl=to.isFocused,tV=to.isFileDialogActive,tc=(0,a.useRef)("undefined"!=typeof window&&window.isSecureContext&&x&&"showOpenFilePicker"in window),th=function(){!tc.current&&tV&&setTimeout(function(){tn.current&&(tn.current.files.length||(ts({type:"closeDialog"}),ti()))},300)};(0,a.useEffect)(function(){return window.addEventListener("focus",th,!1),function(){window.removeEventListener("focus",th,!1)}},[tn,tV,ti,tc]);var td=(0,a.useRef)([]),tp=function(t){ta.current&&ta.current.contains(t.target)||(t.preventDefault(),td.current=[])};(0,a.useEffect)(function(){return w&&(document.addEventListener("dragover",O,!1),document.addEventListener("drop",tp,!1)),function(){w&&(document.removeEventListener("dragover",O),document.removeEventListener("drop",tp))}},[ta,w]),(0,a.useEffect)(function(){return!n&&A&&ta.current&&ta.current.focus(),function(){}},[ta,A,n]);var tu=(0,a.useCallback)(function(t){j?j(t):console.error(t)},[j]),tg=(0,a.useCallback)(function(t){var e;t.preventDefault(),t.persist(),tP(t),td.current=[].concat(function(t){if(Array.isArray(t))return K(t)}(e=td.current)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||W(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[t.target]),R(t)&&Promise.resolve(r(t)).then(function(e){if(!D(t)||P){var i,a,n,r,h,d,p,u,g=e.length,f=g>0&&(a=(i={files:e,accept:H,minSize:s,maxSize:o,multiple:l,maxFiles:V,validator:N}).files,n=i.accept,r=i.minSize,h=i.maxSize,d=i.multiple,p=i.maxFiles,u=i.validator,(!!d||!(a.length>1))&&(!d||!(p>=1)||!(a.length>p))&&a.every(function(t){var e=_(E(t,n),1)[0],i=_(F(t,r,h),1)[0],a=u?u(t):null;return e&&i&&!a}));ts({isDragAccept:f,isDragReject:g>0&&!f,isDragActive:!0,type:"setDraggedFiles"}),c&&c(t)}}).catch(function(t){return tu(t)})},[r,c,tu,P,H,s,o,l,V,N]),tf=(0,a.useCallback)(function(t){t.preventDefault(),t.persist(),tP(t);var e=R(t);if(e&&t.dataTransfer)try{t.dataTransfer.dropEffect="copy"}catch(t){}return e&&d&&d(t),!1},[d,P]),tm=(0,a.useCallback)(function(t){t.preventDefault(),t.persist(),tP(t);var e=td.current.filter(function(t){return ta.current&&ta.current.contains(t)}),i=e.indexOf(t.target);-1!==i&&e.splice(i,1),td.current=e,!(e.length>0)&&(ts({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),R(t)&&h&&h(t))},[ta,h,P]),tv=(0,a.useCallback)(function(t,e){var i=[],a=[];t.forEach(function(t){var e=z(E(t,H),2),n=e[0],r=e[1],l=z(F(t,s,o),2),V=l[0],c=l[1],h=N?N(t):null;if(n&&V&&!h)i.push(t);else{var d=[r,c];h&&(d=d.concat(h)),a.push({file:t,errors:d.filter(function(t){return t})})}}),(!l&&i.length>1||l&&V>=1&&i.length>V)&&(i.forEach(function(t){a.push({file:t,errors:[T]})}),i.splice(0)),ts({acceptedFiles:i,fileRejections:a,isDragReject:a.length>0,type:"setFiles"}),p&&p(i,a,e),a.length>0&&g&&g(a,e),i.length>0&&u&&u(i,e)},[ts,l,H,s,o,V,p,u,g,N]),tx=(0,a.useCallback)(function(t){t.preventDefault(),t.persist(),tP(t),td.current=[],R(t)&&Promise.resolve(r(t)).then(function(e){(!D(t)||P)&&tv(e,t)}).catch(function(t){return tu(t)}),ts({type:"reset"})},[r,tv,tu,P]),ty=(0,a.useCallback)(function(){if(tc.current){ts({type:"openDialog"}),$(),window.showOpenFilePicker({multiple:l,types:Q}).then(function(t){return r(t)}).then(function(t){tv(t,null),ts({type:"closeDialog"})}).catch(function(t){t instanceof DOMException&&("AbortError"===t.name||t.code===t.ABORT_ERR)?(ti(t),ts({type:"closeDialog"})):t instanceof DOMException&&("SecurityError"===t.name||t.code===t.SECURITY_ERR)?(tc.current=!1,tn.current?(tn.current.value=null,tn.current.click()):tu(Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no was provided."))):tu(t)});return}tn.current&&(ts({type:"openDialog"}),$(),tn.current.value=null,tn.current.click())},[ts,$,ti,x,tv,tu,Q,l]),tb=(0,a.useCallback)(function(t){ta.current&&ta.current.isEqualNode(t.target)&&(" "===t.key||"Enter"===t.key||32===t.keyCode||13===t.keyCode)&&(t.preventDefault(),ty())},[ta,ty]),t_=(0,a.useCallback)(function(){ts({type:"focus"})},[]),tA=(0,a.useCallback)(function(){ts({type:"blur"})},[]),tw=(0,a.useCallback)(function(){S||(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return -1!==t.indexOf("MSIE")||-1!==t.indexOf("Trident/")||-1!==t.indexOf("Edge/")}()?setTimeout(ty,0):ty())},[S,ty]),tS=function(t){return n?null:t},tC=function(t){return C?null:tS(t)},tk=function(t){return k?null:tS(t)},tP=function(t){P&&t.stopPropagation()},tT=(0,a.useMemo)(function(){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.refKey,i=t.role,a=t.onKeyDown,r=t.onFocus,o=t.onBlur,s=t.onClick,l=t.onDragEnter,V=t.onDragOver,c=t.onDragLeave,h=t.onDrop,d=X(t,U);return q(q(Y({onKeyDown:tC(I(a,tb)),onFocus:tC(I(r,t_)),onBlur:tC(I(o,tA)),onClick:tS(I(s,tw)),onDragEnter:tk(I(l,tg)),onDragOver:tk(I(V,tf)),onDragLeave:tk(I(c,tm)),onDrop:tk(I(h,tx)),role:"string"==typeof i&&""!==i?i:"presentation"},void 0===e?"ref":e,ta),n||C?{}:{tabIndex:0}),d)}},[ta,tb,t_,tA,tw,tg,tf,tm,tx,C,k,n]),tE=(0,a.useCallback)(function(t){t.stopPropagation()},[]),tF=(0,a.useMemo)(function(){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.refKey,i=t.onChange,a=t.onClick,n=X(t,B);return q(q({},Y({accept:H,multiple:l,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:tS(I(i,tx)),onClick:tS(I(a,tE)),tabIndex:-1},void 0===e?"ref":e,tn)),n)}},[tn,i,l,tx,n]);return q(q({},to),{},{isFocused:tl&&!n,getRootProps:tT,getInputProps:tF,rootRef:ta,inputRef:tn,open:tS(ty)})}function tt(t,e){switch(e.type){case"focus":return q(q({},t),{},{isFocused:!0});case"blur":return q(q({},t),{},{isFocused:!1});case"openDialog":return q(q({},Z),{},{isFileDialogActive:!0});case"closeDialog":return q(q({},t),{},{isFileDialogActive:!1});case"setDraggedFiles":return q(q({},t),{},{isDragActive:e.isDragActive,isDragAccept:e.isDragAccept,isDragReject:e.isDragReject});case"setFiles":return q(q({},t),{},{acceptedFiles:e.acceptedFiles,fileRejections:e.fileRejections,isDragReject:e.isDragReject});case"reset":return q({},Z);default:return t}}function te(){}},42967:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Konva=void 0;let a=i(92465),n=i(19340),r=i(75673),o=i(95344),s=i(45010),l=i(34185),V=i(69482),c=i(48650),h=i(83927),d=i(53186),p=i(96466),u=i(6090),g=i(13053),f=i(53624),m=i(93215),v=i(91144),x=i(97371),y=i(29408),b=i(39732),_=i(88770),A=i(6955),w=i(9902),S=i(70801),C=i(92104),k=i(8116),P=i(96522),T=i(58197),E=i(80048),F=i(59705),M=i(63529),D=i(50029),R=i(49490),O=i(19480),I=i(11231),L=i(61249),G=i(90748),j=i(49044);e.Konva=a.Konva.Util._assign(a.Konva,{Arc:n.Arc,Arrow:r.Arrow,Circle:o.Circle,Ellipse:s.Ellipse,Image:l.Image,Label:V.Label,Tag:V.Tag,Line:c.Line,Path:h.Path,Rect:d.Rect,RegularPolygon:p.RegularPolygon,Ring:u.Ring,Sprite:g.Sprite,Star:f.Star,Text:m.Text,TextPath:v.TextPath,Transformer:x.Transformer,Wedge:y.Wedge,Filters:{Blur:b.Blur,Brighten:_.Brighten,Contrast:A.Contrast,Emboss:w.Emboss,Enhance:S.Enhance,Grayscale:C.Grayscale,HSL:k.HSL,HSV:P.HSV,Invert:T.Invert,Kaleidoscope:E.Kaleidoscope,Mask:F.Mask,Noise:M.Noise,Pixelate:D.Pixelate,Posterize:R.Posterize,RGB:O.RGB,RGBA:I.RGBA,Sepia:L.Sepia,Solarize:G.Solarize,Threshold:j.Threshold}})},45010:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Ellipse=void 0;let a=i(98949),n=i(83306),r=i(66394),o=i(66878);class s extends n.Shape{_sceneFunc(t){let e=this.radiusX(),i=this.radiusY();t.beginPath(),t.save(),e!==i&&t.scale(1,i/e),t.arc(0,0,e,0,2*Math.PI,!1),t.restore(),t.closePath(),t.fillStrokeShape(this)}getWidth(){return 2*this.radiusX()}getHeight(){return 2*this.radiusY()}setWidth(t){this.radiusX(t/2)}setHeight(t){this.radiusY(t/2)}}e.Ellipse=s,s.prototype.className="Ellipse",s.prototype._centroid=!0,s.prototype._attrsAffectingSize=["radiusX","radiusY"],(0,o._registerNode)(s),a.Factory.addComponentsGetterSetter(s,"radius",["x","y"]),a.Factory.addGetterSetter(s,"radiusX",0,(0,r.getNumberValidator)()),a.Factory.addGetterSetter(s,"radiusY",0,(0,r.getNumberValidator)())},45220:(t,e,i)=>{"use strict";t.exports=i(21724)},48650:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Line=void 0;let a=i(98949),n=i(66878),r=i(83306),o=i(66394);function s(t,e,i,a,n,r,o){let s=Math.sqrt(Math.pow(i-t,2)+Math.pow(a-e,2)),l=Math.sqrt(Math.pow(n-i,2)+Math.pow(r-a,2)),V=o*s/(s+l),c=o*l/(s+l);return[i-V*(n-t),a-V*(r-e),i+c*(n-t),a+c*(r-e)]}function l(t,e){let i=t.length,a=[];for(let n=2;n4){let a=this.getTensionPoints(),r=a.length;for(o=4*!n,n||t.quadraticCurveTo(a[0],a[1],a[2],a[3]);o{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Threshold=void 0;let a=i(98949),n=i(20913),r=i(66394);e.Threshold=function(t){let e=255*this.threshold(),i=t.data,a=i.length;for(let t=0;t{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Posterize=void 0;let a=i(98949),n=i(20913),r=i(66394);e.Posterize=function(t){let e=Math.round(254*this.levels())+1,i=t.data,a=i.length,n=255/e;for(let t=0;t{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Pixelate=void 0;let a=i(98949),n=i(26509),r=i(20913),o=i(66394);e.Pixelate=function(t){let e=Math.ceil(this.pixelSize()),i=t.width,a=t.height,r=Math.ceil(i/e),o=Math.ceil(a/e),s=t.data;if(e<=0)return void n.Util.error("pixelSize value can not be <= 0");for(let t=0;t=i))for(let e=d;e=a)continue;let n=(i*e+t)*4;r+=s[n+0],o+=s[n+1],l+=s[n+2],V+=s[n+3],u+=1}r/=u,o/=u,l/=u,V/=u;for(let t=c;t=i))for(let e=d;e=a)continue;let n=(i*e+t)*4;s[n+0]=r,s[n+1]=o,s[n+2]=l,s[n+3]=V}}},a.Factory.addGetterSetter(r.Node,"pixelSize",8,(0,o.getNumberValidator)(),a.Factory.afterSetFilter)},53186:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Rect=void 0;let a=i(98949),n=i(83306),r=i(66878),o=i(26509),s=i(66394);class l extends n.Shape{_sceneFunc(t){let e=this.cornerRadius(),i=this.width(),a=this.height();t.beginPath(),e?o.Util.drawRoundedRectPath(t,i,a,e):t.rect(0,0,i,a),t.closePath(),t.fillStrokeShape(this)}}e.Rect=l,l.prototype.className="Rect",(0,r._registerNode)(l),a.Factory.addGetterSetter(l,"cornerRadius",0,(0,s.getNumberOrArrayOfNumbersValidator)(4))},53624:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Star=void 0;let a=i(98949),n=i(83306),r=i(66394),o=i(66878);class s extends n.Shape{_sceneFunc(t){let e=this.innerRadius(),i=this.outerRadius(),a=this.numPoints();t.beginPath(),t.moveTo(0,0-i);for(let n=1;n<2*a;n++){let r=n%2==0?i:e,o=r*Math.sin(n*Math.PI/a),s=-1*r*Math.cos(n*Math.PI/a);t.lineTo(o,s)}t.closePath(),t.fillStrokeShape(this)}getWidth(){return 2*this.outerRadius()}getHeight(){return 2*this.outerRadius()}setWidth(t){this.outerRadius(t/2)}setHeight(t){this.outerRadius(t/2)}}e.Star=s,s.prototype.className="Star",s.prototype._centroid=!0,s.prototype._attrsAffectingSize=["innerRadius","outerRadius"],(0,o._registerNode)(s),a.Factory.addGetterSetter(s,"numPoints",5,(0,r.getNumberValidator)()),a.Factory.addGetterSetter(s,"innerRadius",0,(0,r.getNumberValidator)()),a.Factory.addGetterSetter(s,"outerRadius",0,(0,r.getNumberValidator)())},55003:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),t.exports=i(42967).Konva},58197:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Invert=void 0,e.Invert=function(t){let e=t.data,i=e.length;for(let t=0;t{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Mask=void 0;let a=i(98949),n=i(20913),r=i(66394);function o(t,e,i){let a=(i*t.width+e)*4,n=[];return n.push(t.data[a++],t.data[a++],t.data[a++],t.data[a++]),n}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))}e.Mask=function(t){let e=function(t,e){let i=o(t,0,0),a=o(t,t.width-1,0),n=o(t,0,t.height-1),r=o(t,t.width-1,t.height-1),l=e||10;if(s(i,a)=0&&h=0&&d=0&&h=0&&d=1020)}return o}(e=function(t,e,i){let a=[1,1,1,1,0,1,1,1,1],n=Math.round(Math.sqrt(a.length)),r=Math.floor(n/2),o=[];for(let s=0;s=0&&h=0&&d{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Sepia=void 0,e.Sepia=function(t){let e=t.data,i=e.length;for(let t=0;t{"use strict";t.exports=i(16500)},62670:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Konva=void 0;var a=i(92465);Object.defineProperty(e,"Konva",{enumerable:!0,get:function(){return a.Konva}}),t.exports=i(92465).Konva},63529:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Noise=void 0;let a=i(98949),n=i(20913),r=i(66394);e.Noise=function(t){let e=255*this.noise(),i=t.data,a=i.length,n=e/2;for(let t=0;t{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RGBComponent=function(t){return t>255?255:t<0?0:Math.round(t)},e.alphaComponent=function(t){return t>1?1:t<1e-4?1e-4:t},e.getNumberValidator=function(){if(a.Konva.isUnminified)return function(t,e){return n.Util._isNumber(t)||n.Util.warn(r(t)+' is a not valid value for "'+e+'" attribute. The value should be a number.'),t}},e.getNumberOrArrayOfNumbersValidator=function(t){if(a.Konva.isUnminified)return function(e,i){let a=n.Util._isNumber(e),o=n.Util._isArray(e)&&e.length==t;return a||o||n.Util.warn(r(e)+' is a not valid value for "'+i+'" attribute. The value should be a number or Array('+t+")"),e}},e.getNumberOrAutoValidator=function(){if(a.Konva.isUnminified)return function(t,e){let i=n.Util._isNumber(t),a="auto"===t;return i||a||n.Util.warn(r(t)+' is a not valid value for "'+e+'" attribute. The value should be a number or "auto".'),t}},e.getStringValidator=function(){if(a.Konva.isUnminified)return function(t,e){return n.Util._isString(t)||n.Util.warn(r(t)+' is a not valid value for "'+e+'" attribute. The value should be a string.'),t}},e.getStringOrGradientValidator=function(){if(a.Konva.isUnminified)return function(t,e){let i=n.Util._isString(t),a="[object CanvasGradient]"===Object.prototype.toString.call(t)||t&&t.addColorStop;return i||a||n.Util.warn(r(t)+' is a not valid value for "'+e+'" attribute. The value should be a string or a native gradient.'),t}},e.getFunctionValidator=function(){if(a.Konva.isUnminified)return function(t,e){return n.Util._isFunction(t)||n.Util.warn(r(t)+' is a not valid value for "'+e+'" attribute. The value should be a function.'),t}},e.getNumberArrayValidator=function(){if(a.Konva.isUnminified)return function(t,e){let i=Int8Array?Object.getPrototypeOf(Int8Array):null;return i&&t instanceof i||(n.Util._isArray(t)?t.forEach(function(t){n.Util._isNumber(t)||n.Util.warn('"'+e+'" attribute has non numeric element '+t+". Make sure that all elements are numbers.")}):n.Util.warn(r(t)+' is a not valid value for "'+e+'" attribute. The value should be a array of numbers.')),t}},e.getBooleanValidator=function(){if(a.Konva.isUnminified)return function(t,e){return!0!==t&&!1!==t&&n.Util.warn(r(t)+' is a not valid value for "'+e+'" attribute. The value should be a boolean.'),t}},e.getComponentValidator=function(t){if(a.Konva.isUnminified)return function(e,i){return null==e||n.Util.isObject(e)||n.Util.warn(r(e)+' is a not valid value for "'+i+'" attribute. The value should be an object with properties '+t),e}};let a=i(66878),n=i(26509);function r(t){return n.Util._isString(t)?'"'+t+'"':"[object Number]"===Object.prototype.toString.call(t)||n.Util._isBoolean(t)?t:Object.prototype.toString.call(t)}},66878:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e._registerNode=e.Konva=e.glob=void 0;let a=Math.PI/180;e.glob=void 0!==i.g?i.g:"undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope?self:{},e.Konva={_global:e.glob,version:"9.3.22",isBrowser:"undefined"!=typeof window&&("[object Window]"===({}).toString.call(window)||"[object global]"===({}).toString.call(window)),isUnminified:/param/.test((function(t){}).toString()),dblClickWindow:400,getAngle:t=>e.Konva.angleDeg?t*a:t,enableTrace:!1,pointerEventsEnabled:!0,autoDrawEnabled:!0,hitOnDragEnabled:!1,capturePointerEventsEnabled:!1,_mouseListenClick:!1,_touchListenClick:!1,_pointerListenClick:!1,_mouseInDblClickWindow:!1,_touchInDblClickWindow:!1,_pointerInDblClickWindow:!1,_mouseDblClickPointerId:null,_touchDblClickPointerId:null,_pointerDblClickPointerId:null,_fixTextRendering:!1,pixelRatio:"undefined"!=typeof window&&window.devicePixelRatio||1,dragDistance:3,angleDeg:!0,showWarnings:!0,dragButtons:[0,1],isDragging:()=>e.Konva.DD.isDragging,isTransforming(){var t;return null==(t=e.Konva.Transformer)?void 0:t.isTransforming()},isDragReady:()=>!!e.Konva.DD.node,releaseCanvasOnDestroy:!0,document:e.glob.document,_injectGlobal(t){e.glob.Konva=t}},e._registerNode=t=>{e.Konva[t.prototype.getClassName()]=t},e.Konva._injectGlobal(e.Konva)},69012:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HitContext=e.SceneContext=e.Context=void 0;let a=i(26509),n=i(66878),r=["arc","arcTo","beginPath","bezierCurveTo","clearRect","clip","closePath","createLinearGradient","createPattern","createRadialGradient","drawImage","ellipse","fill","fillText","getImageData","createImageData","lineTo","moveTo","putImageData","quadraticCurveTo","rect","roundRect","restore","rotate","save","scale","setLineDash","setTransform","stroke","strokeText","transform","translate"];class o{constructor(t){this.canvas=t,n.Konva.enableTrace&&(this.traceArr=[],this._enableTrace())}fillShape(t){t.fillEnabled()&&this._fill(t)}_fill(t){}strokeShape(t){t.hasStroke()&&this._stroke(t)}_stroke(t){}fillStrokeShape(t){t.attrs.fillAfterStrokeEnabled?(this.strokeShape(t),this.fillShape(t)):(this.fillShape(t),this.strokeShape(t))}getTrace(t,e){let i=this.traceArr,n=i.length,r="",o,s,l,V;for(o=0;o"number"==typeof t?Math.floor(t):t)),r+="("+V.join(",")+")")):(r+=s.property,t||(r+="="+s.val)),r+=";";return r}clearTrace(){this.traceArr=[]}_trace(t){let e=this.traceArr;e.push(t),e.length>=100&&e.shift()}reset(){let t=this.getCanvas().getPixelRatio();this.setTransform(+t,0,0,+t,0,0)}getCanvas(){return this.canvas}clear(t){let 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)}_applyLineCap(t){let e=t.attrs.lineCap;e&&this.setAttr("lineCap",e)}_applyOpacity(t){let e=t.getAbsoluteOpacity();1!==e&&this.setAttr("globalAlpha",e)}_applyLineJoin(t){let e=t.attrs.lineJoin;e&&this.setAttr("lineJoin",e)}setAttr(t,e){this._context[t]=e}arc(t,e,i,a,n,r){this._context.arc(t,e,i,a,n,r)}arcTo(t,e,i,a,n){this._context.arcTo(t,e,i,a,n)}beginPath(){this._context.beginPath()}bezierCurveTo(t,e,i,a,n,r){this._context.bezierCurveTo(t,e,i,a,n,r)}clearRect(t,e,i,a){this._context.clearRect(t,e,i,a)}clip(...t){this._context.clip.apply(this._context,t)}closePath(){this._context.closePath()}createImageData(t,e){let i=arguments;return 2===i.length?this._context.createImageData(t,e):1===i.length?this._context.createImageData(t):void 0}createLinearGradient(t,e,i,a){return this._context.createLinearGradient(t,e,i,a)}createPattern(t,e){return this._context.createPattern(t,e)}createRadialGradient(t,e,i,a,n,r){return this._context.createRadialGradient(t,e,i,a,n,r)}drawImage(t,e,i,a,n,r,o,s,l){let V=arguments,c=this._context;3===V.length?c.drawImage(t,e,i):5===V.length?c.drawImage(t,e,i,a,n):9===V.length&&c.drawImage(t,e,i,a,n,r,o,s,l)}ellipse(t,e,i,a,n,r,o,s){this._context.ellipse(t,e,i,a,n,r,o,s)}isPointInPath(t,e,i,a){return i?this._context.isPointInPath(i,t,e,a):this._context.isPointInPath(t,e,a)}fill(...t){this._context.fill.apply(this._context,t)}fillRect(t,e,i,a){this._context.fillRect(t,e,i,a)}strokeRect(t,e,i,a){this._context.strokeRect(t,e,i,a)}fillText(t,e,i,a){a?this._context.fillText(t,e,i,a):this._context.fillText(t,e,i)}measureText(t){return this._context.measureText(t)}getImageData(t,e,i,a){return this._context.getImageData(t,e,i,a)}lineTo(t,e){this._context.lineTo(t,e)}moveTo(t,e){this._context.moveTo(t,e)}rect(t,e,i,a){this._context.rect(t,e,i,a)}roundRect(t,e,i,a,n){this._context.roundRect(t,e,i,a,n)}putImageData(t,e,i){this._context.putImageData(t,e,i)}quadraticCurveTo(t,e,i,a){this._context.quadraticCurveTo(t,e,i,a)}restore(){this._context.restore()}rotate(t){this._context.rotate(t)}save(){this._context.save()}scale(t,e){this._context.scale(t,e)}setLineDash(t){this._context.setLineDash?this._context.setLineDash(t):"mozDash"in this._context?this._context.mozDash=t:"webkitLineDash"in this._context&&(this._context.webkitLineDash=t)}getLineDash(){return this._context.getLineDash()}setTransform(t,e,i,a,n,r){this._context.setTransform(t,e,i,a,n,r)}stroke(t){t?this._context.stroke(t):this._context.stroke()}strokeText(t,e,i,a){this._context.strokeText(t,e,i,a)}transform(t,e,i,a,n,r){this._context.transform(t,e,i,a,n,r)}translate(t,e){this._context.translate(t,e)}_enableTrace(){let t=this,e=r.length,i=this.setAttr,n,o,s=function(e){let i=t[e],n;t[e]=function(){return o=function(t){let e=[],i=t.length,n=a.Util;for(let a=0;a{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Tag=e.Label=void 0;let a=i(98949),n=i(83306),r=i(80836),o=i(66394),s=i(66878),l=["fontFamily","fontSize","fontStyle","padding","lineHeight","text","width","height","pointerDirection","pointerWidth","pointerHeight"],V="right",c="down",h="left",d=l.length;class p extends r.Group{constructor(t){super(t),this.on("add.konva",function(t){this._addListeners(t.child),this._sync()})}getText(){return this.find("Text")[0]}getTag(){return this.find("Tag")[0]}_addListeners(t){let e=this,i,a=function(){e._sync()};for(i=0;i{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Enhance=void 0;let a=i(98949),n=i(20913),r=i(66394);function o(t,e,i,a,n){let r=i-e,o=n-a;if(0===r)return a+o/2;if(0===o)return a;let s=(t-e)/r;return o*s+a}e.Enhance=function(t){let e,i,a,n,r,s,l=t.data,V=l.length,c=l[0],h=c,d,p=l[1],u=p,g,f=l[2],m=f,v,x=this.enhance();if(0!==x){for(let t=0;th&&(h=d),(g=l[t+1])u&&(u=g),(v=l[t+2])m&&(m=v);if(h===c&&(h=255,c=0),u===p&&(u=255,p=0),m===f&&(m=255,f=0),x>0)e=h+x*(255-h),i=c-x*(c-0),a=u+x*(255-u),n=p-x*(p-0),r=m+x*(255-m),s=f-x*(f-0);else{let t=(h+c)*.5;e=h+x*(h-t),i=c+x*(c-t);let o=(u+p)*.5;a=u+x*(u-o),n=p+x*(p-o);let l=(m+f)*.5;r=m+x*(m-l),s=f+x*(f-l)}for(let t=0;t{"use strict";t.exports=i(16892)},72948:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},75673:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Arrow=void 0;let a=i(98949),n=i(48650),r=i(66394),o=i(66878),s=i(83927);class l extends n.Line{_sceneFunc(t){let e,i;super._sceneFunc(t);let a=2*Math.PI,n=this.points(),r=n,o=0!==this.tension()&&n.length>4;o&&(r=this.getTensionPoints());let l=this.pointerLength(),V=n.length;if(o){let t=[r[r.length-4],r[r.length-3],r[r.length-2],r[r.length-1],n[V-2],n[V-1]],a=s.Path.calcLength(r[r.length-4],r[r.length-3],"C",t),o=s.Path.getPointOnQuadraticBezier(Math.min(1,1-l/a),t[0],t[1],t[2],t[3],t[4],t[5]);e=n[V-2]-o.x,i=n[V-1]-o.y}else e=n[V-2]-n[V-4],i=n[V-1]-n[V-3];let c=(Math.atan2(i,e)+a)%a,h=this.pointerWidth();this.pointerAtEnding()&&(t.save(),t.beginPath(),t.translate(n[V-2],n[V-1]),t.rotate(c),t.moveTo(0,0),t.lineTo(-l,h/2),t.lineTo(-l,-h/2),t.closePath(),t.restore(),this.__fillStroke(t)),this.pointerAtBeginning()&&(t.save(),t.beginPath(),t.translate(n[0],n[1]),o?(e=(r[0]+r[2])/2-n[0],i=(r[1]+r[3])/2-n[1]):(e=n[2]-n[0],i=n[3]-n[1]),t.rotate((Math.atan2(-i,-e)+a)%a),t.moveTo(0,0),t.lineTo(-l,h/2),t.lineTo(-l,-h/2),t.closePath(),t.restore(),this.__fillStroke(t))}__fillStroke(t){let e=this.dashEnabled();e&&(this.attrs.dashEnabled=!1,t.setLineDash([])),t.fillStrokeShape(this),e&&(this.attrs.dashEnabled=!0)}getSelfRect(){let t=super.getSelfRect(),e=this.pointerWidth()/2;return{x:t.x,y:t.y-e,width:t.width,height:t.height+2*e}}}e.Arrow=l,l.prototype.className="Arrow",(0,o._registerNode)(l),a.Factory.addGetterSetter(l,"pointerLength",10,(0,r.getNumberValidator)()),a.Factory.addGetterSetter(l,"pointerWidth",10,(0,r.getNumberValidator)()),a.Factory.addGetterSetter(l,"pointerAtBeginning",!1),a.Factory.addGetterSetter(l,"pointerAtEnding",!0)},79399:(t,e,i)=>{"use strict";var a=i(72948);function n(){}function r(){}r.resetWarningCache=n,t.exports=function(){function t(t,e,i,n,r,o){if(o!==a){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function e(){return t}t.isRequired=t;var i={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:r,resetWarningCache:n};return i.PropTypes=i,i}},80048:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Kaleidoscope=void 0;let a=i(98949),n=i(20913),r=i(26509),o=i(66394),s=function(t,e,i){let a=t.data,n=e.data,r=t.width,o=t.height,s=i.polarCenterX||r/2,l=i.polarCenterY||o/2,V=Math.sqrt(s*s+l*l),c=r-s,h=o-l,d=Math.sqrt(c*c+h*h);V=d>V?d:V;let p=360/r*Math.PI/180;for(let t=0;tc?p:c;let u=i.polarRotation||0;for(h=0;hu&&(_=b,A=0,w=-1),i=0;i{"use strict";i.d(e,{c:()=>r});var a=i(12115),n=i(97399);function r(t,e=[]){let i=(0,a.useRef)(t);return(0,n.U)(()=>{i.current=t}),(0,a.useCallback)((...t)=>{var e;return null==(e=i.current)?void 0:e.call(i,...t)},e)}},80165:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DD=void 0;let a=i(66878),n=i(26509);e.DD={get isDragging(){let t=!1;return e.DD._dragElements.forEach(e=>{"dragging"===e.dragStatus&&(t=!0)}),t},justDragged:!1,get node(){let t;return e.DD._dragElements.forEach(e=>{t=e.node}),t},_dragElements:new Map,_drag(t){let i=[];e.DD._dragElements.forEach((e,a)=>{let{node:r}=e,o=r.getStage();o.setPointersPositions(t),void 0===e.pointerId&&(e.pointerId=n.Util._getFirstPointerId(t));let s=o._changedPointerPositions.find(t=>t.id===e.pointerId);if(s){if("dragging"!==e.dragStatus){let i=r.dragDistance();if(Math.max(Math.abs(s.x-e.startPointerPos.x),Math.abs(s.y-e.startPointerPos.y)){e.fire("dragmove",{type:"dragmove",target:e,evt:t},!0)})},_endDragBefore(t){let i=[];e.DD._dragElements.forEach(n=>{let{node:r}=n,o=r.getStage();if(t&&o.setPointersPositions(t),!o._changedPointerPositions.find(t=>t.id===n.pointerId))return;("dragging"===n.dragStatus||"stopped"===n.dragStatus)&&(e.DD.justDragged=!0,a.Konva._mouseListenClick=!1,a.Konva._touchListenClick=!1,a.Konva._pointerListenClick=!1,n.dragStatus="stopped");let s=n.node.getLayer()||n.node instanceof a.Konva.Stage&&n.node;s&&-1===i.indexOf(s)&&i.push(s)}),i.forEach(t=>{t.draw()})},_endDragAfter(t){e.DD._dragElements.forEach((i,a)=>{"stopped"===i.dragStatus&&i.node.fire("dragend",{type:"dragend",target:i.node,evt:t},!0),"dragging"!==i.dragStatus&&e.DD._dragElements.delete(a)})}},a.Konva.isBrowser&&(window.addEventListener("mouseup",e.DD._endDragBefore,!0),window.addEventListener("touchend",e.DD._endDragBefore,!0),window.addEventListener("touchcancel",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),window.addEventListener("touchcancel",e.DD._endDragAfter,!1))},80773:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Stage=e.stages=void 0;let a=i(26509),n=i(98949),r=i(91248),o=i(66878),s=i(4421),l=i(80165),V=i(66878),c=i(24555),h="mouseleave",d="mouseover",p="mouseenter",u="mousemove",g="mousedown",f="mouseup",m="pointermove",v="pointerdown",x="pointerup",y="pointercancel",b="pointerout",_="pointerleave",A="pointerover",w="pointerenter",S="contextmenu",C="touchstart",k="touchend",P="touchmove",T="touchcancel",E="wheel",F=[[p,"_pointerenter"],[g,"_pointerdown"],[u,"_pointermove"],[f,"_pointerup"],[h,"_pointerleave"],[C,"_pointerdown"],[P,"_pointermove"],[k,"_pointerup"],[T,"_pointercancel"],[d,"_pointerover"],[E,"_wheel"],[S,"_contextmenu"],[v,"_pointerdown"],[m,"_pointermove"],[x,"_pointerup"],[y,"_pointercancel"],[_,"_pointerleave"],["lostpointercapture","_lostpointercapture"]],M={mouse:{[b]:"mouseout",[_]:h,[A]:d,[w]:p,[m]:u,[v]:g,[x]:f,[y]:"mousecancel",pointerclick:"click",pointerdblclick:"dblclick"},touch:{[b]:"touchout",[_]:"touchleave",[A]:"touchover",[w]:"touchenter",[m]:P,[v]:C,[x]:k,[y]:T,pointerclick:"tap",pointerdblclick:"dbltap"},pointer:{[b]:b,[_]:_,[A]:A,[w]:w,[m]:m,[v]:v,[x]:x,[y]:y,pointerclick:"pointerclick",pointerdblclick:"pointerdblclick"}},D=t=>t.indexOf("pointer")>=0?"pointer":t.indexOf("touch")>=0?"touch":"mouse",R=t=>{let e=D(t);return"pointer"===e?o.Konva.pointerEventsEnabled&&M.pointer:"touch"===e?M.touch:"mouse"===e?M.mouse:void 0};function O(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(t.clipFunc||t.clipWidth||t.clipHeight)&&a.Util.warn("Stage does not support clipping. Please use clip for Layers or Groups."),t}e.stages=[];class I extends r.Container{_validateAdd(t){let e="Layer"===t.getType(),i="FastLayer"===t.getType();e||i||a.Util.throw("You may only add layers to the stage.")}_checkVisibility(){if(!this.content)return;let t=this.visible()?"":"none";this.content.style.display=t}setContainer(t){if("string"==typeof t){let e;if("."===t.charAt(0)){let e=t.slice(1);t=document.getElementsByClassName(e)[0]}else e="#"!==t.charAt(0)?t:t.slice(1),t=document.getElementById(e);if(!t)throw"Can not find container in document with id "+e}return this._setAttr("container",t),this.content&&(this.content.parentElement&&this.content.parentElement.removeChild(this.content),t.appendChild(this.content)),this}shouldDrawHit(){return!0}clear(){let t=this.children,e=t.length;for(let i=0;i-1&&e.stages.splice(i,1),a.Util.releaseCanvas(this.bufferCanvas._canvas,this.bufferHitCanvas._canvas),this}getPointerPosition(){let t=this._pointerPositions[0]||this._changedPointerPositions[0];return t?{x:t.x,y:t.y}:(a.Util.warn("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);"),null)}_getPointerById(t){return this._pointerPositions.find(e=>e.id===t)}getPointersPositions(){return this._pointerPositions}getStage(){return this}getContent(){return this.content}_toKonvaCanvas(t){(t=t||{}).x=t.x||0,t.y=t.y||0,t.width=t.width||this.width(),t.height=t.height||this.height();let e=new s.SceneCanvas({width:t.width,height:t.height,pixelRatio:t.pixelRatio||1}),i=e.getContext()._context,a=this.children;return(t.x||t.y)&&i.translate(-1*t.x,-1*t.y),a.forEach(function(e){if(!e.isVisible())return;let a=e._toKonvaCanvas(t);i.drawImage(a._canvas,t.x,t.y,a.getWidth()/a.getPixelRatio(),a.getHeight()/a.getPixelRatio())}),e}getIntersection(t){if(!t)return null;let e=this.children,i=e.length-1;for(let a=i;a>=0;a--){let i=e[a].getIntersection(t);if(i)return i}return null}_resizeDOM(){let t=this.width(),e=this.height();this.content&&(this.content.style.width=t+"px",this.content.style.height=e+"px"),this.bufferCanvas.setSize(t,e),this.bufferHitCanvas.setSize(t,e),this.children.forEach(i=>{i.setSize({width:t,height:e}),i.draw()})}add(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n1){for(let t=0;t5&&a.Util.warn("The stage has "+r+" layers. Recommended maximum 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."),t.setSize({width:this.width(),height:this.height()}),t.draw(),o.Konva.isBrowser&&this.content.appendChild(t.canvas._canvas),this}getParent(){return null}getLayer(){return null}hasPointerCapture(t){return c.hasPointerCapture(t,this)}setPointerCapture(t){c.setPointerCapture(t,this)}releaseCapture(t){c.releaseCapture(t,this)}getLayers(){return this.children}_bindContentEvents(){o.Konva.isBrowser&&F.forEach(t=>{let[e,i]=t;this.content.addEventListener(e,t=>{this[i](t)},{passive:!1})})}_pointerenter(t){this.setPointersPositions(t);let e=R(t.type);e&&this._fire(e.pointerenter,{evt:t,target:this,currentTarget:this})}_pointerover(t){this.setPointersPositions(t);let e=R(t.type);e&&this._fire(e.pointerover,{evt:t,target:this,currentTarget:this})}_getTargetShape(t){let e=this[t+"targetShape"];return e&&!e.getStage()&&(e=null),e}_pointerleave(t){let e=R(t.type),i=D(t.type);if(!e)return;this.setPointersPositions(t);let a=this._getTargetShape(i),n=!(o.Konva.isDragging()||o.Konva.isTransforming())||o.Konva.hitOnDragEnabled;a&&n?(a._fireAndBubble(e.pointerout,{evt:t}),a._fireAndBubble(e.pointerleave,{evt:t}),this._fire(e.pointerleave,{evt:t,target:this,currentTarget:this}),this[i+"targetShape"]=null):n&&(this._fire(e.pointerleave,{evt:t,target:this,currentTarget:this}),this._fire(e.pointerout,{evt:t,target:this,currentTarget:this})),this.pointerPos=null,this._pointerPositions=[]}_pointerdown(t){let e=R(t.type),i=D(t.type);if(!e)return;this.setPointersPositions(t);let a=!1;this._changedPointerPositions.forEach(n=>{let r=this.getIntersection(n);if(l.DD.justDragged=!1,o.Konva["_"+i+"ListenClick"]=!0,!r||!r.isListening()){this[i+"ClickStartShape"]=void 0;return}o.Konva.capturePointerEventsEnabled&&r.setPointerCapture(n.id),this[i+"ClickStartShape"]=r,r._fireAndBubble(e.pointerdown,{evt:t,pointerId:n.id}),a=!0;let s=t.type.indexOf("touch")>=0;r.preventDefault()&&t.cancelable&&s&&t.preventDefault()}),a||this._fire(e.pointerdown,{evt:t,target:this,currentTarget:this,pointerId:this._pointerPositions[0].id})}_pointermove(t){let e=R(t.type),i=D(t.type);if(!e||(o.Konva.isDragging()&&l.DD.node.preventDefault()&&t.cancelable&&t.preventDefault(),this.setPointersPositions(t),!(!(o.Konva.isDragging()||o.Konva.isTransforming())||o.Konva.hitOnDragEnabled)))return;let a={},n=!1,r=this._getTargetShape(i);this._changedPointerPositions.forEach(o=>{let s=c.getCapturedShape(o.id)||this.getIntersection(o),l=o.id,V={evt:t,pointerId:l},h=r!==s;if(h&&r&&(r._fireAndBubble(e.pointerout,{...V},s),r._fireAndBubble(e.pointerleave,{...V},s)),s){if(a[s._id])return;a[s._id]=!0}s&&s.isListening()?(n=!0,h&&(s._fireAndBubble(e.pointerover,{...V},r),s._fireAndBubble(e.pointerenter,{...V},r),this[i+"targetShape"]=s),s._fireAndBubble(e.pointermove,{...V})):r&&(this._fire(e.pointerover,{evt:t,target:this,currentTarget:this,pointerId:l}),this[i+"targetShape"]=null)}),n||this._fire(e.pointermove,{evt:t,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id})}_pointerup(t){let e=R(t.type),i=D(t.type);if(!e)return;this.setPointersPositions(t);let a=this[i+"ClickStartShape"],n=this[i+"ClickEndShape"],r={},s=!1;this._changedPointerPositions.forEach(V=>{let h=c.getCapturedShape(V.id)||this.getIntersection(V);if(h){if(h.releaseCapture(V.id),r[h._id])return;r[h._id]=!0}let d=V.id,p={evt:t,pointerId:d},u=!1;o.Konva["_"+i+"InDblClickWindow"]?(u=!0,clearTimeout(this[i+"DblTimeout"])):l.DD.justDragged||(o.Konva["_"+i+"InDblClickWindow"]=!0,clearTimeout(this[i+"DblTimeout"])),this[i+"DblTimeout"]=setTimeout(function(){o.Konva["_"+i+"InDblClickWindow"]=!1},o.Konva.dblClickWindow),h&&h.isListening()?(s=!0,this[i+"ClickEndShape"]=h,h._fireAndBubble(e.pointerup,{...p}),o.Konva["_"+i+"ListenClick"]&&a&&a===h&&(h._fireAndBubble(e.pointerclick,{...p}),u&&n&&n===h&&h._fireAndBubble(e.pointerdblclick,{...p}))):(this[i+"ClickEndShape"]=null,o.Konva["_"+i+"ListenClick"]&&this._fire(e.pointerclick,{evt:t,target:this,currentTarget:this,pointerId:d}),u&&this._fire(e.pointerdblclick,{evt:t,target:this,currentTarget:this,pointerId:d}))}),s||this._fire(e.pointerup,{evt:t,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),o.Konva["_"+i+"ListenClick"]=!1,t.cancelable&&"touch"!==i&&"pointer"!==i&&t.preventDefault()}_contextmenu(t){this.setPointersPositions(t);let e=this.getIntersection(this.getPointerPosition());e&&e.isListening()?e._fireAndBubble(S,{evt:t}):this._fire(S,{evt:t,target:this,currentTarget:this})}_wheel(t){this.setPointersPositions(t);let e=this.getIntersection(this.getPointerPosition());e&&e.isListening()?e._fireAndBubble(E,{evt:t}):this._fire(E,{evt:t,target:this,currentTarget:this})}_pointercancel(t){this.setPointersPositions(t);let e=c.getCapturedShape(t.pointerId)||this.getIntersection(this.getPointerPosition());e&&e._fireAndBubble(x,c.createEvent(t)),c.releaseCapture(t.pointerId)}_lostpointercapture(t){c.releaseCapture(t.pointerId)}setPointersPositions(t){let e=this._getContentPosition(),i=null,n=null;void 0!==(t=t||window.event).touches?(this._pointerPositions=[],this._changedPointerPositions=[],Array.prototype.forEach.call(t.touches,t=>{this._pointerPositions.push({id:t.identifier,x:(t.clientX-e.left)/e.scaleX,y:(t.clientY-e.top)/e.scaleY})}),Array.prototype.forEach.call(t.changedTouches||t.touches,t=>{this._changedPointerPositions.push({id:t.identifier,x:(t.clientX-e.left)/e.scaleX,y:(t.clientY-e.top)/e.scaleY})})):(i=(t.clientX-e.left)/e.scaleX,n=(t.clientY-e.top)/e.scaleY,this.pointerPos={x:i,y:n},this._pointerPositions=[{x:i,y:n,id:a.Util._getFirstPointerId(t)}],this._changedPointerPositions=[{x:i,y:n,id:a.Util._getFirstPointerId(t)}])}_setPointerPosition(t){a.Util.warn('Method _setPointerPosition is deprecated. Use "stage.setPointersPositions(event)" instead.'),this.setPointersPositions(t)}_getContentPosition(){if(!this.content||!this.content.getBoundingClientRect)return{top:0,left:0,scaleX:1,scaleY:1};let t=this.content.getBoundingClientRect();return{top:t.top,left:t.left,scaleX:t.width/this.content.clientWidth||1,scaleY:t.height/this.content.clientHeight||1}}_buildDOM(){if(this.bufferCanvas=new s.SceneCanvas({width:this.width(),height:this.height()}),this.bufferHitCanvas=new s.HitCanvas({pixelRatio:1,width:this.width(),height:this.height()}),!o.Konva.isBrowser)return;let t=this.container();if(!t)throw"Stage has no container. A container is required.";t.innerHTML="",this.content=document.createElement("div"),this.content.style.position="relative",this.content.style.userSelect="none",this.content.className="konvajs-content",this.content.setAttribute("role","presentation"),t.appendChild(this.content),this._resizeDOM()}cache(){return a.Util.warn("Cache function is not allowed for stage. You may use cache only for layers, groups and shapes."),this}clearCache(){return this}batchDraw(){return this.getChildren().forEach(function(t){t.batchDraw()}),this}constructor(t){super(O(t)),this._pointerPositions=[],this._changedPointerPositions=[],this._buildDOM(),this._bindContentEvents(),e.stages.push(this),this.on("widthChange.konva heightChange.konva",this._resizeDOM),this.on("visibleChange.konva",this._checkVisibility),this.on("clipWidthChange.konva clipHeightChange.konva clipFuncChange.konva",()=>{O(this.attrs)}),this._checkVisibility()}}e.Stage=I,I.prototype.nodeType="Stage",(0,V._registerNode)(I),n.Factory.addGetterSetter(I,"container"),o.Konva.isBrowser&&document.addEventListener("visibilitychange",()=>{e.stages.forEach(t=>{t.batchDraw()})})},80836:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Group=void 0;let a=i(26509),n=i(91248),r=i(66878);class o extends n.Container{_validateAdd(t){let e=t.getType();"Group"!==e&&"Shape"!==e&&a.Util.throw("You may only add groups and shapes to groups.")}}e.Group=o,o.prototype.nodeType="Group",(0,r._registerNode)(o)},83306:(t,e,i)=>{"use strict";let a;Object.defineProperty(e,"__esModule",{value:!0}),e.Shape=e.shapes=void 0;let n=i(66878),r=i(26509),o=i(98949),s=i(20913),l=i(66394),V=i(66878),c=i(24555),h="hasShadow",d="shadowRGBA",p="patternImage",u="linearGradient",g="radialGradient";function f(){return a||(a=r.Util.createCanvasElement().getContext("2d"))}e.shapes={};class m extends s.Node{constructor(t){let i;for(super(t);!(i=r.Util.getRandomColor())||i in e.shapes;);this.colorKey=i,e.shapes[i]=this}getContext(){return r.Util.warn("shape.getContext() method is deprecated. Please do not use it."),this.getLayer().getContext()}getCanvas(){return r.Util.warn("shape.getCanvas() method is deprecated. Please do not use it."),this.getLayer().getCanvas()}getSceneFunc(){return this.attrs.sceneFunc||this._sceneFunc}getHitFunc(){return this.attrs.hitFunc||this._hitFunc}hasShadow(){return this._getCache(h,this._hasShadow)}_hasShadow(){return this.shadowEnabled()&&0!==this.shadowOpacity()&&!!(this.shadowColor()||this.shadowBlur()||this.shadowOffsetX()||this.shadowOffsetY())}_getFillPattern(){return this._getCache(p,this.__getFillPattern)}__getFillPattern(){if(this.fillPatternImage()){let t=f().createPattern(this.fillPatternImage(),this.fillPatternRepeat()||"repeat");if(t&&t.setTransform){let e=new r.Transform;e.translate(this.fillPatternX(),this.fillPatternY()),e.rotate(n.Konva.getAngle(this.fillPatternRotation())),e.scale(this.fillPatternScaleX(),this.fillPatternScaleY()),e.translate(-1*this.fillPatternOffsetX(),-1*this.fillPatternOffsetY());let i=e.getMatrix(),a="undefined"==typeof DOMMatrix?{a:i[0],b:i[1],c:i[2],d:i[3],e:i[4],f:i[5]}:new DOMMatrix(i);t.setTransform(a)}return t}}_getLinearGradient(){return this._getCache(u,this.__getLinearGradient)}__getLinearGradient(){let t=this.fillLinearGradientColorStops();if(t){let e=f(),i=this.fillLinearGradientStartPoint(),a=this.fillLinearGradientEndPoint(),n=e.createLinearGradient(i.x,i.y,a.x,a.y);for(let e=0;ethis.fillEnabled()&&!!(this.fill()||this.fillPatternImage()||this.fillLinearGradientColorStops()||this.fillRadialGradientColorStops()))}hasStroke(){return this._calculate("hasStroke",["strokeEnabled","strokeWidth","stroke","strokeLinearGradientColorStops"],()=>this.strokeEnabled()&&this.strokeWidth()&&!!(this.stroke()||this.strokeLinearGradientColorStops()))}hasHitStroke(){let t=this.hitStrokeWidth();return"auto"===t?this.hasStroke():this.strokeEnabled()&&!!t}intersects(t){let e=this.getStage();if(!e)return!1;let i=e.bufferHitCanvas;return i.getContext().clear(),this.drawHit(i,void 0,!0),i.context.getImageData(Math.round(t.x),Math.round(t.y),1,1).data[3]>0}destroy(){return s.Node.prototype.destroy.call(this),delete e.shapes[this.colorKey],delete this.colorKey,this}_useBufferCanvas(t){var e;if(!(null==(e=this.attrs.perfectDrawEnabled)||e))return!1;let i=t||this.hasFill(),a=this.hasStroke(),n=1!==this.getAbsoluteOpacity();if(i&&a&&n)return!0;let r=this.hasShadow(),o=this.shadowForStrokeEnabled();return!!i&&!!a&&!!r&&!!o}setStrokeHitEnabled(t){r.Util.warn("strokeHitEnabled property is deprecated. Please use hitStrokeWidth instead."),t?this.hitStrokeWidth("auto"):this.hitStrokeWidth(0)}getStrokeHitEnabled(){return 0!==this.hitStrokeWidth()}getSelfRect(){let t=this.size();return{x:this._centroid?-t.width/2:0,y:this._centroid?-t.height/2:0,width:t.width,height:t.height}}getClientRect(t={}){let e=!1,i=this.getParent();for(;i;){if(i.isCached()){e=!0;break}i=i.getParent()}let a=t.skipTransform,n=t.relativeTo||e&&this.getStage()||void 0,r=this.getSelfRect(),o=!t.skipStroke&&this.hasStroke()&&this.strokeWidth()||0,s=r.width+o,l=r.height+o,V=!t.skipShadow&&this.hasShadow(),c=V?this.shadowOffsetX():0,h=V?this.shadowOffsetY():0,d=s+Math.abs(c),p=l+Math.abs(h),u=V&&this.shadowBlur()||0,g={width:d+2*u,height:p+2*u,x:-(o/2+u)+Math.min(c,0)+r.x,y:-(o/2+u)+Math.min(h,0)+r.y};return a?g:this._transformedRect(g,n)}drawScene(t,e,i){let a,n=this.getLayer(),r=(t||n.getCanvas()).getContext(),o=this._getCanvasCache(),s=this.getSceneFunc(),l=this.hasShadow(),V=e===this;if(!this.isVisible()&&!V)return this;if(o){r.save();let t=this.getAbsoluteTransform(e).getMatrix();return r.transform(t[0],t[1],t[2],t[3],t[4],t[5]),this._drawCachedSceneCanvas(r),r.restore(),this}if(!s)return this;if(r.save(),this._useBufferCanvas()&&1){a=this.getStage();let t=i||a.bufferCanvas,n=t.getContext();n.clear(),n.save(),n._applyLineJoin(this);let o=this.getAbsoluteTransform(e).getMatrix();n.transform(o[0],o[1],o[2],o[3],o[4],o[5]),s.call(this,n,this),n.restore();let V=t.pixelRatio;l&&r._applyShadow(this),r._applyOpacity(this),r._applyGlobalCompositeOperation(this),r.drawImage(t._canvas,t.x||0,t.y||0,t.width/V,t.height/V)}else{if(r._applyLineJoin(this),!V){let t=this.getAbsoluteTransform(e).getMatrix();r.transform(t[0],t[1],t[2],t[3],t[4],t[5]),r._applyOpacity(this),r._applyGlobalCompositeOperation(this)}l&&r._applyShadow(this),s.call(this,r,this)}return r.restore(),this}drawHit(t,e,i=!1){if(!this.shouldDrawHit(e,i))return this;let a=this.getLayer(),n=t||a.hitCanvas,o=n&&n.getContext(),s=this.hitFunc()||this.sceneFunc(),l=this._getCanvasCache(),V=l&&l.hit;if(this.colorKey||r.Util.warn("Looks like your canvas has a destroyed shape in it. Do not reuse shape after you destroyed it. If you want to reuse shape you should call remove() instead of destroy()"),V){o.save();let t=this.getAbsoluteTransform(e).getMatrix();return o.transform(t[0],t[1],t[2],t[3],t[4],t[5]),this._drawCachedHitCanvas(o),o.restore(),this}if(!s)return this;if(o.save(),o._applyLineJoin(this),this!==e){let t=this.getAbsoluteTransform(e).getMatrix();o.transform(t[0],t[1],t[2],t[3],t[4],t[5])}return s.call(this,o,this),o.restore(),this}drawHitFromCache(t=0){let e=this._getCanvasCache(),i=this._getCachedSceneCanvas(),a=e.hit,n=a.getContext(),o=a.getWidth(),s=a.getHeight();n.clear(),n.drawImage(i._canvas,0,0,o,s);try{let e=n.getImageData(0,0,o,s),i=e.data,a=i.length,l=r.Util._hexToRgb(this.colorKey);for(let e=0;et?(i[e]=l.r,i[e+1]=l.g,i[e+2]=l.b,i[e+3]=255):i[e+3]=0;n.putImageData(e,0,0)}catch(t){r.Util.error("Unable to draw hit graph from cached scene canvas. "+t.message)}return this}hasPointerCapture(t){return c.hasPointerCapture(t,this)}setPointerCapture(t){c.setPointerCapture(t,this)}releaseCapture(t){c.releaseCapture(t,this)}}e.Shape=m,m.prototype._fillFunc=function(t){let e=this.attrs.fillRule;e?t.fill(e):t.fill()},m.prototype._strokeFunc=function(t){t.stroke()},m.prototype._fillFuncHit=function(t){let e=this.attrs.fillRule;e?t.fill(e):t.fill()},m.prototype._strokeFuncHit=function(t){t.stroke()},m.prototype._centroid=!1,m.prototype.nodeType="Shape",(0,V._registerNode)(m),m.prototype.eventListeners={},m.prototype.on.call(m.prototype,"shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",function(){this._clearCache(h)}),m.prototype.on.call(m.prototype,"shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",function(){this._clearCache(d)}),m.prototype.on.call(m.prototype,"fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva fillPatternScaleXChange.konva fillPatternScaleYChange.konva fillPatternOffsetXChange.konva fillPatternOffsetYChange.konva fillPatternXChange.konva fillPatternYChange.konva fillPatternRotationChange.konva",function(){this._clearCache(p)}),m.prototype.on.call(m.prototype,"fillPriorityChange.konva fillLinearGradientColorStopsChange.konva fillLinearGradientStartPointXChange.konva fillLinearGradientStartPointYChange.konva fillLinearGradientEndPointXChange.konva fillLinearGradientEndPointYChange.konva",function(){this._clearCache(u)}),m.prototype.on.call(m.prototype,"fillPriorityChange.konva fillRadialGradientColorStopsChange.konva fillRadialGradientStartPointXChange.konva fillRadialGradientStartPointYChange.konva fillRadialGradientEndPointXChange.konva fillRadialGradientEndPointYChange.konva fillRadialGradientStartRadiusChange.konva fillRadialGradientEndRadiusChange.konva",function(){this._clearCache(g)}),o.Factory.addGetterSetter(m,"stroke",void 0,(0,l.getStringOrGradientValidator)()),o.Factory.addGetterSetter(m,"strokeWidth",2,(0,l.getNumberValidator)()),o.Factory.addGetterSetter(m,"fillAfterStrokeEnabled",!1),o.Factory.addGetterSetter(m,"hitStrokeWidth","auto",(0,l.getNumberOrAutoValidator)()),o.Factory.addGetterSetter(m,"strokeHitEnabled",!0,(0,l.getBooleanValidator)()),o.Factory.addGetterSetter(m,"perfectDrawEnabled",!0,(0,l.getBooleanValidator)()),o.Factory.addGetterSetter(m,"shadowForStrokeEnabled",!0,(0,l.getBooleanValidator)()),o.Factory.addGetterSetter(m,"lineJoin"),o.Factory.addGetterSetter(m,"lineCap"),o.Factory.addGetterSetter(m,"sceneFunc"),o.Factory.addGetterSetter(m,"hitFunc"),o.Factory.addGetterSetter(m,"dash"),o.Factory.addGetterSetter(m,"dashOffset",0,(0,l.getNumberValidator)()),o.Factory.addGetterSetter(m,"shadowColor",void 0,(0,l.getStringValidator)()),o.Factory.addGetterSetter(m,"shadowBlur",0,(0,l.getNumberValidator)()),o.Factory.addGetterSetter(m,"shadowOpacity",1,(0,l.getNumberValidator)()),o.Factory.addComponentsGetterSetter(m,"shadowOffset",["x","y"]),o.Factory.addGetterSetter(m,"shadowOffsetX",0,(0,l.getNumberValidator)()),o.Factory.addGetterSetter(m,"shadowOffsetY",0,(0,l.getNumberValidator)()),o.Factory.addGetterSetter(m,"fillPatternImage"),o.Factory.addGetterSetter(m,"fill",void 0,(0,l.getStringOrGradientValidator)()),o.Factory.addGetterSetter(m,"fillPatternX",0,(0,l.getNumberValidator)()),o.Factory.addGetterSetter(m,"fillPatternY",0,(0,l.getNumberValidator)()),o.Factory.addGetterSetter(m,"fillLinearGradientColorStops"),o.Factory.addGetterSetter(m,"strokeLinearGradientColorStops"),o.Factory.addGetterSetter(m,"fillRadialGradientStartRadius",0),o.Factory.addGetterSetter(m,"fillRadialGradientEndRadius",0),o.Factory.addGetterSetter(m,"fillRadialGradientColorStops"),o.Factory.addGetterSetter(m,"fillPatternRepeat","repeat"),o.Factory.addGetterSetter(m,"fillEnabled",!0),o.Factory.addGetterSetter(m,"strokeEnabled",!0),o.Factory.addGetterSetter(m,"shadowEnabled",!0),o.Factory.addGetterSetter(m,"dashEnabled",!0),o.Factory.addGetterSetter(m,"strokeScaleEnabled",!0),o.Factory.addGetterSetter(m,"fillPriority","color"),o.Factory.addComponentsGetterSetter(m,"fillPatternOffset",["x","y"]),o.Factory.addGetterSetter(m,"fillPatternOffsetX",0,(0,l.getNumberValidator)()),o.Factory.addGetterSetter(m,"fillPatternOffsetY",0,(0,l.getNumberValidator)()),o.Factory.addComponentsGetterSetter(m,"fillPatternScale",["x","y"]),o.Factory.addGetterSetter(m,"fillPatternScaleX",1,(0,l.getNumberValidator)()),o.Factory.addGetterSetter(m,"fillPatternScaleY",1,(0,l.getNumberValidator)()),o.Factory.addComponentsGetterSetter(m,"fillLinearGradientStartPoint",["x","y"]),o.Factory.addComponentsGetterSetter(m,"strokeLinearGradientStartPoint",["x","y"]),o.Factory.addGetterSetter(m,"fillLinearGradientStartPointX",0),o.Factory.addGetterSetter(m,"strokeLinearGradientStartPointX",0),o.Factory.addGetterSetter(m,"fillLinearGradientStartPointY",0),o.Factory.addGetterSetter(m,"strokeLinearGradientStartPointY",0),o.Factory.addComponentsGetterSetter(m,"fillLinearGradientEndPoint",["x","y"]),o.Factory.addComponentsGetterSetter(m,"strokeLinearGradientEndPoint",["x","y"]),o.Factory.addGetterSetter(m,"fillLinearGradientEndPointX",0),o.Factory.addGetterSetter(m,"strokeLinearGradientEndPointX",0),o.Factory.addGetterSetter(m,"fillLinearGradientEndPointY",0),o.Factory.addGetterSetter(m,"strokeLinearGradientEndPointY",0),o.Factory.addComponentsGetterSetter(m,"fillRadialGradientStartPoint",["x","y"]),o.Factory.addGetterSetter(m,"fillRadialGradientStartPointX",0),o.Factory.addGetterSetter(m,"fillRadialGradientStartPointY",0),o.Factory.addComponentsGetterSetter(m,"fillRadialGradientEndPoint",["x","y"]),o.Factory.addGetterSetter(m,"fillRadialGradientEndPointX",0),o.Factory.addGetterSetter(m,"fillRadialGradientEndPointY",0),o.Factory.addGetterSetter(m,"fillPatternRotation",0),o.Factory.addGetterSetter(m,"fillRule",void 0,(0,l.getStringValidator)()),o.Factory.backCompat(m,{dashArray:"dash",getDashArray:"getDash",setDashArray:"getDash",drawFunc:"sceneFunc",getDrawFunc:"getSceneFunc",setDrawFunc:"setSceneFunc",drawHitFunc:"hitFunc",getDrawHitFunc:"getHitFunc",setDrawHitFunc:"setHitFunc"})},83927:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Path=void 0;let a=i(98949),n=i(66878),r=i(83306),o=i(26659);class s extends r.Shape{constructor(t){super(t),this.dataArray=[],this.pathLength=0,this._readDataAttribute(),this.on("dataChange.konva",function(){this._readDataAttribute()})}_readDataAttribute(){this.dataArray=s.parsePathData(this.data()),this.pathLength=s.getPathLength(this.dataArray)}_sceneFunc(t){let e=this.dataArray;t.beginPath();let i=!1;for(let a=0;aV?l:V,g=l>V?1:l/V,f=l>V?V/l:1;t.translate(o,s),t.rotate(d),t.scale(g,f),t.arc(0,0,u,c,c+h,1-p),t.scale(1/g,1/f),t.rotate(-d),t.translate(-o,-s);break;case"z":i=!0,t.closePath()}}i||this.hasFill()?t.fillStrokeShape(this):t.strokeShape(this)}getSelfRect(){let t,e,i=[];this.dataArray.forEach(function(t){if("A"===t.command){let e=t.points[4],a=t.points[5],n=t.points[4]+a,r=Math.PI/180;if(Math.abs(e-n)n;a-=r){let e=s.getPointOnEllipticalArc(t.points[0],t.points[1],t.points[2],t.points[3],a,0);i.push(e.x,e.y)}else for(let a=e+r;ae[a].pathLength;)t-=e[a].pathLength,++a;if(a===n)return{x:(i=e[a-1].points.slice(-2))[0],y:i[1]};if(t<.01)return"M"===e[a].command?{x:(i=e[a].points.slice(0,2))[0],y:i[1]}:{x:e[a].start.x,y:e[a].start.y};let r=e[a],l=r.points;switch(r.command){case"L":return s.getPointOnLine(t,r.start.x,r.start.y,l[0],l[1]);case"C":return s.getPointOnCubicBezier((0,o.t2length)(t,s.getPathLength(e),t=>(0,o.getCubicArcLength)([r.start.x,l[0],l[2],l[4]],[r.start.y,l[1],l[3],l[5]],t)),r.start.x,r.start.y,l[0],l[1],l[2],l[3],l[4],l[5]);case"Q":return s.getPointOnQuadraticBezier((0,o.t2length)(t,s.getPathLength(e),t=>(0,o.getQuadraticArcLength)([r.start.x,l[0],l[2]],[r.start.y,l[1],l[3]],t)),r.start.x,r.start.y,l[0],l[1],l[2],l[3]);case"A":let V=l[0],c=l[1],h=l[2],d=l[3],p=l[5],u=l[6],g=l[4];return g+=p*t/r.pathLength,s.getPointOnEllipticalArc(V,c,h,d,g,u)}return null}static getPointOnLine(t,e,i,a,n,r,o){r=null!=r?r:e,o=null!=o?o:i;let s=this.getLineLength(e,i,a,n);if(s<1e-10)return{x:e,y:i};if(a===e)return{x:r,y:o+(n>i?t:-t)};let l=(n-i)/(a-e),V=Math.sqrt(t*t/(1+l*l))*(aMath.abs(o-i-l*(r-e)))return{x:r+V,y:o+l*V};let c=((r-e)*(a-e)+(o-i)*(n-i))/(s*s),h=e+c*(a-e),d=i+c*(n-i),p=this.getLineLength(r,o,h,d),u=Math.sqrt(t*t-p*p),g=Math.sqrt(u*u/(1+l*l))*(a0;){let t,e,i,n,o,V,h,d,p,u;if(isNaN(c[0]))break;let g="",f=[],m=s,v=l;switch(a){case"l":s+=c.shift(),l+=c.shift(),g="L",f.push(s,l);break;case"L":s=c.shift(),l=c.shift(),f.push(s,l);break;case"m":let x=c.shift(),y=c.shift();if(s+=x,l+=y,g="M",r.length>2&&"z"===r[r.length-1].command){for(let t=r.length-2;t>=0;t--)if("M"===r[t].command){s=r[t].points[0]+x,l=r[t].points[1]+y;break}}f.push(s,l),a="l";break;case"M":s=c.shift(),l=c.shift(),g="M",f.push(s,l),a="L";break;case"h":s+=c.shift(),g="L",f.push(s,l);break;case"H":s=c.shift(),g="L",f.push(s,l);break;case"v":l+=c.shift(),g="L",f.push(s,l);break;case"V":l=c.shift(),g="L",f.push(s,l);break;case"C":f.push(c.shift(),c.shift(),c.shift(),c.shift()),s=c.shift(),l=c.shift(),f.push(s,l);break;case"c":f.push(s+c.shift(),l+c.shift(),s+c.shift(),l+c.shift()),s+=c.shift(),l+=c.shift(),g="C",f.push(s,l);break;case"S":e=s,i=l,"C"===(t=r[r.length-1]).command&&(e=s+(s-t.points[2]),i=l+(l-t.points[3])),f.push(e,i,c.shift(),c.shift()),s=c.shift(),l=c.shift(),g="C",f.push(s,l);break;case"s":e=s,i=l,"C"===(t=r[r.length-1]).command&&(e=s+(s-t.points[2]),i=l+(l-t.points[3])),f.push(e,i,s+c.shift(),l+c.shift()),s+=c.shift(),l+=c.shift(),g="C",f.push(s,l);break;case"Q":f.push(c.shift(),c.shift()),s=c.shift(),l=c.shift(),f.push(s,l);break;case"q":f.push(s+c.shift(),l+c.shift()),s+=c.shift(),l+=c.shift(),g="Q",f.push(s,l);break;case"T":e=s,i=l,"Q"===(t=r[r.length-1]).command&&(e=s+(s-t.points[0]),i=l+(l-t.points[1])),s=c.shift(),l=c.shift(),g="Q",f.push(e,i,s,l);break;case"t":e=s,i=l,"Q"===(t=r[r.length-1]).command&&(e=s+(s-t.points[0]),i=l+(l-t.points[1])),s+=c.shift(),l+=c.shift(),g="Q",f.push(e,i,s,l);break;case"A":n=c.shift(),o=c.shift(),V=c.shift(),h=c.shift(),d=c.shift(),p=s,u=l,s=c.shift(),l=c.shift(),g="A",f=this.convertEndpointToCenterParameterization(p,u,s,l,h,d,n,o,V);break;case"a":n=c.shift(),o=c.shift(),V=c.shift(),h=c.shift(),d=c.shift(),p=s,u=l,s+=c.shift(),l+=c.shift(),g="A",f=this.convertEndpointToCenterParameterization(p,u,s,l,h,d,n,o,V)}r.push({command:g||a,points:f,start:{x:m,y:v},pathLength:this.calcLength(m,v,g||a,f)})}("z"===a||"Z"===a)&&r.push({command:"z",points:[],start:void 0,pathLength:0})}return r}static calcLength(t,e,i,a){let n,r,l,V;switch(i){case"L":return s.getLineLength(t,e,a[0],a[1]);case"C":return(0,o.getCubicArcLength)([t,a[0],a[2],a[4]],[e,a[1],a[3],a[5]],1);case"Q":return(0,o.getQuadraticArcLength)([t,a[0],a[2]],[e,a[1],a[3]],1);case"A":n=0;let c=a[4],h=a[5],d=a[4]+h,p=Math.PI/180;if(Math.abs(c-d)d;V-=p)l=s.getPointOnEllipticalArc(a[0],a[1],a[2],a[3],V,0),n+=s.getLineLength(r.x,r.y,l.x,l.y),r=l;else for(V=c+p;V1&&(o*=Math.sqrt(d),s*=Math.sqrt(d));let p=Math.sqrt((o*o*(s*s)-o*o*(h*h)-s*s*(c*c))/(o*o*(h*h)+s*s*(c*c)));n===r&&(p*=-1),isNaN(p)&&(p=0);let u=p*o*h/s,g=-(p*s)*c/o,f=(t+i)/2+Math.cos(V)*u-Math.sin(V)*g,m=(e+a)/2+Math.sin(V)*u+Math.cos(V)*g,v=function(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])},x=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(v(t)*v(e))},y=function(t,e){return(t[0]*e[1]=x(_,A)&&(w=Math.PI),x(_,A)>=1&&(w=0),0===r&&w>0&&(w-=2*Math.PI),1===r&&w<0&&(w+=2*Math.PI),[f,m,o,s,b,w,V,r]}}e.Path=s,s.prototype.className="Path",s.prototype._attrsAffectingSize=["data"],(0,n._registerNode)(s),a.Factory.addGetterSetter(s,"data")},86345:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Animation=void 0;let a=i(66878),n=i(26509),r=a.glob.performance&&a.glob.performance.now?function(){return a.glob.performance.now()}:function(){return new Date().getTime()};class o{constructor(t,e){this.id=o.animIdCounter++,this.frame={time:0,timeDiff:0,lastTime:r(),frameRate:0},this.func=t,this.setLayers(e)}setLayers(t){let e=[];return t&&(e=Array.isArray(t)?t:[t]),this.layers=e,this}getLayers(){return this.layers}addLayer(t){let e=this.layers,i=e.length;for(let a=0;a{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FastLayer=void 0;let a=i(26509),n=i(97498),r=i(66878);class o extends n.Layer{constructor(t){super(t),this.listening(!1),a.Util.warn('Konva.Fast layer is deprecated. Please use "new Konva.Layer({ listening: false })" instead.')}}e.FastLayer=o,o.prototype.nodeType="FastLayer",(0,r._registerNode)(o)},88770:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Brighten=void 0;let a=i(98949),n=i(20913),r=i(66394);e.Brighten=function(t){let e=255*this.brightness(),i=t.data,a=i.length;for(let t=0;t{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Solarize=void 0,e.Solarize=function(t){let e=t.data,i=t.width,a=t.height,n=4*i,r=a;do{let t=(r-1)*n,a=i;do{let i=t+(a-1)*4,n=e[i],r=e[i+1],o=e[i+2];n>127&&(n=255-n),r>127&&(r=255-r),o>127&&(o=255-o),e[i]=n,e[i+1]=r,e[i+2]=o}while(--a)}while(--r)}},91144:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TextPath=void 0;let a=i(26509),n=i(98949),r=i(83306),o=i(83927),s=i(93215),l=i(66394),V=i(66878),c="normal";function h(t){t.fillText(this.partialText,0,0)}function d(t){t.strokeText(this.partialText,0,0)}class p extends r.Shape{constructor(t){super(t),this.dummyCanvas=a.Util.createCanvasElement(),this.dataArray=[],this._readDataAttribute(),this.on("dataChange.konva",function(){this._readDataAttribute(),this._setTextData()}),this.on("textChange.konva alignChange.konva letterSpacingChange.konva kerningFuncChange.konva fontSizeChange.konva fontFamilyChange.konva",this._setTextData),this._setTextData()}_getTextPathLength(){return o.Path.getPathLength(this.dataArray)}_getPointAtLength(t){return!this.attrs.data||t-1>this.pathLength?null:o.Path.getPointAtLengthOfDataArray(t,this.dataArray)}_readDataAttribute(){this.dataArray=o.Path.parsePathData(this.attrs.data),this.pathLength=this._getTextPathLength()}_sceneFunc(t){t.setAttr("font",this._getContextFont()),t.setAttr("textBaseline",this.textBaseline()),t.setAttr("textAlign","left"),t.save();let e=this.textDecoration(),i=this.fill(),a=this.fontSize(),n=this.glyphInfo;"underline"===e&&t.beginPath();for(let i=0;i=1){let i=e[0].p0;t.moveTo(i.x,i.y)}for(let i=0;i{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Container=void 0;let a=i(98949),n=i(20913),r=i(66394);class o extends n.Node{constructor(){super(...arguments),this.children=[]}getChildren(t){let e=this.children||[];return t?e.filter(t):e}hasChildren(){return this.getChildren().length>0}removeChildren(){return this.getChildren().forEach(t=>{t.parent=null,t.index=0,t.remove()}),this.children=[],this._requestDraw(),this}destroyChildren(){return this.getChildren().forEach(t=>{t.parent=null,t.index=0,t.destroy()}),this.children=[],this._requestDraw(),this}add(...t){if(0===t.length)return this;if(t.length>1){for(let e=0;e0?e[0]:void 0}_generalFind(t,e){let i=[];return this._descendants(a=>{let n=a._isMatch(t);return n&&i.push(a),!!n&&!!e}),i}_descendants(t){for(let e of this.getChildren())if(t(e)||e.hasChildren()&&e._descendants(t))return!0;return!1}toObject(){let t=n.Node.prototype.toObject.call(this);return t.children=[],this.getChildren().forEach(e=>{t.children.push(e.toObject())}),t}isAncestorOf(t){let e=t.getParent();for(;e;){if(e._id===this._id)return!0;e=e.getParent()}return!1}clone(t){let e=n.Node.prototype.clone.call(this,t);return this.getChildren().forEach(function(t){e.add(t.clone())}),e}getAllIntersections(t){let e=[];return this.find("Shape").forEach(i=>{i.isVisible()&&i.intersects(t)&&e.push(i)}),e}_clearSelfAndDescendantCache(t){var e;super._clearSelfAndDescendantCache(t),this.isCached()||null==(e=this.children)||e.forEach(function(e){e._clearSelfAndDescendantCache(t)})}_setChildrenIndices(){var t;null==(t=this.children)||t.forEach(function(t,e){t.index=e}),this._requestDraw()}drawScene(t,e,i){let a=this.getLayer(),n=t||a&&a.getCanvas(),r=n&&n.getContext(),o=this._getCanvasCache(),s=o&&o.scene,l=n&&n.isCache;if(!this.isVisible()&&!l)return this;if(s){r.save();let t=this.getAbsoluteTransform(e).getMatrix();r.transform(t[0],t[1],t[2],t[3],t[4],t[5]),this._drawCachedSceneCanvas(r),r.restore()}else this._drawChildren("drawScene",n,e,i);return this}drawHit(t,e){if(!this.shouldDrawHit(e))return this;let i=this.getLayer(),a=t||i&&i.hitCanvas,n=a&&a.getContext(),r=this._getCanvasCache();if(r&&r.hit){n.save();let t=this.getAbsoluteTransform(e).getMatrix();n.transform(t[0],t[1],t[2],t[3],t[4],t[5]),this._drawCachedHitCanvas(n),n.restore()}else this._drawChildren("drawHit",a,e);return this}_drawChildren(t,e,i,a){var n;let r=e&&e.getContext(),o=this.clipWidth(),s=this.clipHeight(),l=this.clipFunc(),V="number"==typeof o&&"number"==typeof s||l,c=i===this;if(V){let t;r.save();let e=this.getAbsoluteTransform(i),a=e.getMatrix();if(r.transform(a[0],a[1],a[2],a[3],a[4],a[5]),r.beginPath(),l)t=l.call(this,r,this);else{let t=this.clipX(),e=this.clipY();r.rect(t||0,e||0,o,s)}r.clip.apply(r,t),a=e.copy().invert().getMatrix(),r.transform(a[0],a[1],a[2],a[3],a[4],a[5])}let h=!c&&"source-over"!==this.globalCompositeOperation()&&"drawScene"===t;h&&(r.save(),r._applyGlobalCompositeOperation(this)),null==(n=this.children)||n.forEach(function(n){n[t](e,i,a)}),h&&r.restore(),V&&r.restore()}getClientRect(t={}){var e;let i,a,n,r,o=t.skipTransform,s=t.relativeTo,l={x:1/0,y:1/0,width:0,height:0},V=this;null==(e=this.children)||e.forEach(function(e){if(!e.visible())return;let o=e.getClientRect({relativeTo:V,skipShadow:t.skipShadow,skipStroke:t.skipStroke});(0!==o.width||0!==o.height)&&(void 0===i?(i=o.x,a=o.y,n=o.x+o.width,r=o.y+o.height):(i=Math.min(i,o.x),a=Math.min(a,o.y),n=Math.max(n,o.x+o.width),r=Math.max(r,o.y+o.height)))});let c=this.find("Shape"),h=!1;for(let t=0;t{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Grayscale=void 0,e.Grayscale=function(t){let e=t.data,i=e.length;for(let t=0;t{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Konva=void 0;let a=i(66878),n=i(26509),r=i(20913),o=i(91248),s=i(80773),l=i(97498),V=i(87728),c=i(80836),h=i(80165),d=i(83306),p=i(86345),u=i(3424),g=i(69012),f=i(4421);e.Konva=n.Util._assign(a.Konva,{Util:n.Util,Transform:n.Transform,Node:r.Node,Container:o.Container,Stage:s.Stage,stages:s.stages,Layer:l.Layer,FastLayer:V.FastLayer,Group:c.Group,DD:h.DD,Shape:d.Shape,shapes:d.shapes,Animation:p.Animation,Tween:u.Tween,Easings:u.Easings,Context:g.Context,Canvas:f.Canvas}),e.default=e.Konva},93215:(t,e,i)=>{"use strict";let a;Object.defineProperty(e,"__esModule",{value:!0}),e.Text=void 0,e.stringToArray=c;let n=i(26509),r=i(98949),o=i(83306),s=i(66878),l=i(66394),V=i(66878);function c(t){return[...t].reduce((t,e,i,a)=>{if(/\p{Emoji}/u.test(e)){let n=a[i+1];n&&/\p{Emoji_Modifier}|\u200D/u.test(n)?(t.push(e+n),a[i+1]=""):t.push(e)}else/\p{Regional_Indicator}{2}/u.test(e+(a[i+1]||""))?t.push(e+a[i+1]):i>0&&/\p{Mn}|\p{Me}|\p{Mc}/u.test(e)?t[t.length-1]+=e:e&&t.push(e);return t},[])}let h="auto",d="inherit",p="justify",u="left",g="middle",f="normal",m="none",v=["direction","fontFamily","fontSize","fontStyle","fontVariant","padding","align","verticalAlign","lineHeight","text","width","height","wrap","ellipsis","letterSpacing"],x=v.length;function y(){return a||(a=n.Util.createCanvasElement().getContext("2d"))}class b extends o.Shape{constructor(t){super(function(t){return(t=t||{}).fillLinearGradientColorStops||t.fillRadialGradientColorStops||t.fillPatternImage||(t.fill=t.fill||"black"),t}(t)),this._partialTextX=0,this._partialTextY=0;for(let t=0;t1&&(A+=r)}}_hitFunc(t){let e=this.getWidth(),i=this.getHeight();t.beginPath(),t.rect(0,0,e,i),t.closePath(),t.fillStrokeShape(this)}setText(t){let e=n.Util._isString(t)?t:null==t?"":t+"";return this._setAttr("text",e),this}getWidth(){return this.attrs.width===h||void 0===this.attrs.width?this.getTextWidth()+2*this.padding():this.attrs.width}getHeight(){return this.attrs.height===h||void 0===this.attrs.height?this.fontSize()*this.textArr.length*this.lineHeight()+2*this.padding():this.attrs.height}getTextWidth(){return this.textWidth}getTextHeight(){return n.Util.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}measureSize(t){var e,i,a,n,r,o,s,l,V,c,h;let d=y(),p=this.fontSize(),u;d.save(),d.font=this._getContextFont(),u=d.measureText(t),d.restore();let g=p/100;return{actualBoundingBoxAscent:null!=(e=u.actualBoundingBoxAscent)?e:71.58203125*g,actualBoundingBoxDescent:null!=(i=u.actualBoundingBoxDescent)?i:0,actualBoundingBoxLeft:null!=(a=u.actualBoundingBoxLeft)?a:-7.421875*g,actualBoundingBoxRight:null!=(n=u.actualBoundingBoxRight)?n:75.732421875*g,alphabeticBaseline:null!=(r=u.alphabeticBaseline)?r:0,emHeightAscent:null!=(o=u.emHeightAscent)?o:100*g,emHeightDescent:null!=(s=u.emHeightDescent)?s:-20*g,fontBoundingBoxAscent:null!=(l=u.fontBoundingBoxAscent)?l:91*g,fontBoundingBoxDescent:null!=(V=u.fontBoundingBoxDescent)?V:21*g,hangingBaseline:null!=(c=u.hangingBaseline)?c:72.80000305175781*g,ideographicBaseline:null!=(h=u.ideographicBaseline)?h:-21*g,width:u.width,height:p}}_getContextFont(){return this.fontStyle()+" "+this.fontVariant()+" "+this.fontSize()+"px "+this.fontFamily().split(",").map(t=>{let e=(t=t.trim()).indexOf(" ")>=0,i=t.indexOf('"')>=0||t.indexOf("'")>=0;return e&&!i&&(t=`"${t}"`),t}).join(", ")}_addTextLine(t){this.align()===p&&(t=t.trim());let e=this._getTextWidth(t);return this.textArr.push({text:t,width:e,lastInParagraph:!1})}_getTextWidth(t){let e=this.letterSpacing(),i=t.length;return y().measureText(t).width+e*i}_setTextData(){let t=this.text().split("\n"),e=+this.fontSize(),i=0,a=this.lineHeight()*e,n=this.attrs.width,r=this.attrs.height,o=n!==h&&void 0!==n,s=r!==h&&void 0!==r,l=this.padding(),V=n-2*l,d=r-2*l,p=0,u=this.wrap(),g="char"!==u&&u!==m,f=this.ellipsis();this.textArr=[],y().font=this._getContextFont();let v=f?this._getTextWidth("…"):0;for(let e=0,n=t.length;eV)for(;r.length>0;){let t=0,e=c(r).length,n="",o=0;for(;t>>1,l=c(r).slice(0,i+1).join(""),h=this._getTextWidth(l);(f&&s&&p+a>d?h+v:h)<=V?(t=i+1,n=l,o=h):e=i}if(n){if(g){let e,i=c(r),a=c(n),s=i[a.length];(e=(" "===s||"-"===s)&&o<=V?a.length:Math.max(a.lastIndexOf(" "),a.lastIndexOf("-"))+1)>0&&(t=e,n=i.slice(0,t).join(""),o=this._getTextWidth(n))}if(n=n.trimRight(),this._addTextLine(n),i=Math.max(i,o),p+=a,this._shouldHandleEllipsis(p)){this._tryToAddEllipsisToLastLine();break}if((r=c(r).slice(t).join("").trimLeft()).length>0&&(l=this._getTextWidth(r))<=V){this._addTextLine(r),p+=a,i=Math.max(i,l);break}}else break}else this._addTextLine(r),p+=a,i=Math.max(i,l),this._shouldHandleEllipsis(p)&&ed)break}this.textHeight=e,this.textWidth=i}_shouldHandleEllipsis(t){let e=+this.fontSize(),i=this.lineHeight()*e,a=this.attrs.height,n=this.padding();return this.wrap()===m||a!==h&&void 0!==a&&t+i>a-2*n}_tryToAddEllipsisToLastLine(){let t=this.attrs.width,e=this.padding(),i=this.ellipsis(),a=this.textArr[this.textArr.length-1];a&&i&&(t!==h&&void 0!==t&&(this._getTextWidth(a.text+"…"){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Circle=void 0;let a=i(98949),n=i(83306),r=i(66394),o=i(66878);class s extends n.Shape{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.attrs.radius||0,0,2*Math.PI,!1),t.closePath(),t.fillStrokeShape(this)}getWidth(){return 2*this.radius()}getHeight(){return 2*this.radius()}setWidth(t){this.radius()!==t/2&&this.radius(t/2)}setHeight(t){this.radius()!==t/2&&this.radius(t/2)}}e.Circle=s,s.prototype._centroid=!0,s.prototype.className="Circle",s.prototype._attrsAffectingSize=["radius"],(0,o._registerNode)(s),a.Factory.addGetterSetter(s,"radius",0,(0,r.getNumberValidator)())},96466:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RegularPolygon=void 0;let a=i(98949),n=i(83306),r=i(66394),o=i(66878);class s extends n.Shape{_sceneFunc(t){let e=this._getPoints();t.beginPath(),t.moveTo(e[0].x,e[0].y);for(let i=1;i{e=Math.min(e,t.x),i=Math.max(i,t.x),a=Math.min(a,t.y),n=Math.max(n,t.y)}),{x:e,y:a,width:i-e,height:n-a}}getWidth(){return 2*this.radius()}getHeight(){return 2*this.radius()}setWidth(t){this.radius(t/2)}setHeight(t){this.radius(t/2)}}e.RegularPolygon=s,s.prototype.className="RegularPolygon",s.prototype._centroid=!0,s.prototype._attrsAffectingSize=["radius"],(0,o._registerNode)(s),a.Factory.addGetterSetter(s,"radius",0,(0,r.getNumberValidator)()),a.Factory.addGetterSetter(s,"sides",0,(0,r.getNumberValidator)())},96522:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HSV=void 0;let a=i(98949),n=i(20913),r=i(66394);e.HSV=function(t){let e=t.data,i=e.length,a=Math.pow(2,this.value()),n=Math.pow(2,this.saturation()),r=Math.abs(this.hue()+360)%360,o=a*n*Math.cos(r*Math.PI/180),s=a*n*Math.sin(r*Math.PI/180),l=.299*a+.701*o+.167*s,V=.587*a-.587*o+.33*s,c=.114*a-.114*o-.497*s,h=.299*a-.299*o-.328*s,d=.587*a+.413*o+.035*s,p=.114*a-.114*o+.293*s,u=.299*a-.3*o+1.25*s,g=.587*a-.586*o-1.05*s,f=.114*a+.886*o-.2*s;for(let t=0;t{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Transformer=void 0;let a=i(26509),n=i(98949),r=i(20913),o=i(83306),s=i(53186),l=i(80836),V=i(66878),c=i(66394),h=i(66878),d="tr-konva",p=["resizeEnabledChange","rotateAnchorOffsetChange","rotateEnabledChange","enabledAnchorsChange","anchorSizeChange","borderEnabledChange","borderStrokeChange","borderStrokeWidthChange","borderDashChange","anchorStrokeChange","anchorStrokeWidthChange","anchorFillChange","anchorCornerRadiusChange","ignoreStrokeChange","anchorStyleFuncChange"].map(t=>t+`.${d}`).join(" "),u="nodesRect",g=["widthChange","heightChange","scaleXChange","scaleYChange","skewXChange","skewYChange","rotationChange","offsetXChange","offsetYChange","transformsEnabledChange","strokeWidthChange"],f={"top-left":-45,"top-center":0,"top-right":45,"middle-right":-90,"middle-left":90,"bottom-left":-135,"bottom-center":180,"bottom-right":135},m="ontouchstart"in V.Konva._global,v=["top-left","top-center","top-right","middle-right","middle-left","bottom-left","bottom-center","bottom-right"];function x(t,e,i){let a=i.x+(t.x-i.x)*Math.cos(e)-(t.y-i.y)*Math.sin(e),n=i.y+(t.x-i.x)*Math.sin(e)+(t.y-i.y)*Math.cos(e);return{...t,rotation:t.rotation+e,x:a,y:n}}let y=0;class b extends l.Group{constructor(t){super(t),this._movingAnchorName=null,this._transforming=!1,this._createElements(),this._handleMouseMove=this._handleMouseMove.bind(this),this._handleMouseUp=this._handleMouseUp.bind(this),this.update=this.update.bind(this),this.on(p,this.update),this.getNode()&&this.update()}attachTo(t){return this.setNode(t),this}setNode(t){return a.Util.warn("tr.setNode(shape), tr.node(shape) and tr.attachTo(shape) methods are deprecated. Please use tr.nodes(nodesArray) instead."),this.setNodes([t])}getNode(){return this._nodes&&this._nodes[0]}_getEventNamespace(){return d+this._id}setNodes(t=[]){this._nodes&&this._nodes.length&&this.detach();let e=t.filter(t=>!t.isAncestorOf(this)||(a.Util.error("Konva.Transformer cannot be an a child of the node you are trying to attach"),!1));return this._nodes=t=e,1===t.length&&this.useSingleNodeRotation()?this.rotation(t[0].getAbsoluteRotation()):this.rotation(0),this._nodes.forEach(t=>{let e=()=>{1===this.nodes().length&&this.useSingleNodeRotation()&&this.rotation(this.nodes()[0].getAbsoluteRotation()),this._resetTransformCache(),this._transforming||this.isDragging()||this.update()};if(t._attrsAffectingSize.length){let i=t._attrsAffectingSize.map(t=>t+"Change."+this._getEventNamespace()).join(" ");t.on(i,e)}t.on(g.map(t=>t+`.${this._getEventNamespace()}`).join(" "),e),t.on(`absoluteTransformChange.${this._getEventNamespace()}`,e),this._proxyDrag(t)}),this._resetTransformCache(),this.findOne(".top-left")&&this.update(),this}_proxyDrag(t){let e;t.on(`dragstart.${this._getEventNamespace()}`,i=>{e=t.getAbsolutePosition(),this.isDragging()||t===this.findOne(".back")||this.startDrag(i,!1)}),t.on(`dragmove.${this._getEventNamespace()}`,i=>{if(!e)return;let a=t.getAbsolutePosition(),n=a.x-e.x,r=a.y-e.y;this.nodes().forEach(e=>{if(e===t||e.isDragging())return;let a=e.getAbsolutePosition();e.setAbsolutePosition({x:a.x+n,y:a.y+r}),e.startDrag(i)}),e=null})}getNodes(){return this._nodes||[]}getActiveAnchor(){return this._movingAnchorName}detach(){this._nodes&&this._nodes.forEach(t=>{t.off("."+this._getEventNamespace())}),this._nodes=[],this._resetTransformCache()}_resetTransformCache(){this._clearCache(u),this._clearCache("transform"),this._clearSelfAndDescendantCache("absoluteTransform")}_getNodeRect(){return this._getCache(u,this.__getNodeRect)}__getNodeShape(t,e=this.rotation(),i){let a=t.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),n=t.getAbsoluteScale(i),r=t.getAbsolutePosition(i),o=a.x*n.x-t.offsetX()*n.x,s=a.y*n.y-t.offsetY()*n.y,l=(V.Konva.getAngle(t.getAbsoluteRotation())+2*Math.PI)%(2*Math.PI);return x({x:r.x+o*Math.cos(l)+s*Math.sin(-l),y:r.y+s*Math.cos(l)+o*Math.sin(l),width:a.width*n.x,height:a.height*n.y,rotation:l},-V.Konva.getAngle(e),{x:0,y:0})}__getNodeRect(){if(!this.getNode())return{x:-1e8,y:-1e8,width:0,height:0,rotation:0};let t=[];this.nodes().map(e=>{let i=e.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),a=[{x:i.x,y:i.y},{x:i.x+i.width,y:i.y},{x:i.x+i.width,y:i.y+i.height},{x:i.x,y:i.y+i.height}],n=e.getAbsoluteTransform();a.forEach(function(e){let i=n.point(e);t.push(i)})});let e=new a.Transform;e.rotate(-V.Konva.getAngle(this.rotation()));let i=1/0,n=1/0,r=-1/0,o=-1/0;t.forEach(function(t){let a=e.point(t);void 0===i&&(i=r=a.x,n=o=a.y),i=Math.min(i,a.x),n=Math.min(n,a.y),r=Math.max(r,a.x),o=Math.max(o,a.y)}),e.invert();let s=e.point({x:i,y:n});return{x:s.x,y:s.y,width:r-i,height:o-n,rotation:V.Konva.getAngle(this.rotation())}}getX(){return this._getNodeRect().x}getY(){return this._getNodeRect().y}getWidth(){return this._getNodeRect().width}getHeight(){return this._getNodeRect().height}_createElements(){this._createBack(),v.forEach(t=>{this._createAnchor(t)}),this._createAnchor("rotater")}_createAnchor(t){let e=new s.Rect({stroke:"rgb(0, 161, 255)",fill:"white",strokeWidth:1,name:t+" _anchor",dragDistance:0,draggable:!0,hitStrokeWidth:m?10:"auto"}),i=this;e.on("mousedown touchstart",function(t){i._handleMouseDown(t)}),e.on("dragstart",t=>{e.stopDrag(),t.cancelBubble=!0}),e.on("dragend",t=>{t.cancelBubble=!0}),e.on("mouseenter",()=>{let i=function(t,e,i){if("rotater"===t)return i;e+=a.Util.degToRad(f[t]||0);let n=(a.Util.radToDeg(e)%360+360)%360;return a.Util._inRange(n,337.5,360)||a.Util._inRange(n,0,22.5)?"ns-resize":a.Util._inRange(n,22.5,67.5)?"nesw-resize":a.Util._inRange(n,67.5,112.5)?"ew-resize":a.Util._inRange(n,112.5,157.5)?"nwse-resize":a.Util._inRange(n,157.5,202.5)?"ns-resize":a.Util._inRange(n,202.5,247.5)?"nesw-resize":a.Util._inRange(n,247.5,292.5)?"ew-resize":a.Util._inRange(n,292.5,337.5)?"nwse-resize":(a.Util.error("Transformer has unknown angle for cursor detection: "+n),"pointer")}(t,V.Konva.getAngle(this.rotation()),this.rotateAnchorCursor());e.getStage().content&&(e.getStage().content.style.cursor=i),this._cursorChange=!0}),e.on("mouseout",()=>{e.getStage().content&&(e.getStage().content.style.cursor=""),this._cursorChange=!1}),this.add(e)}_createBack(){let t=new o.Shape({name:"back",width:0,height:0,draggable:!0,sceneFunc(t,e){let i=e.getParent(),n=i.padding();t.beginPath(),t.rect(-n,-n,e.width()+2*n,e.height()+2*n),t.moveTo(e.width()/2,-n),i.rotateEnabled()&&i.rotateLineVisible()&&t.lineTo(e.width()/2,-i.rotateAnchorOffset()*a.Util._sign(e.height())-n),t.fillStrokeShape(e)},hitFunc:(t,e)=>{if(!this.shouldOverdrawWholeArea())return;let i=this.padding();t.beginPath(),t.rect(-i,-i,e.width()+2*i,e.height()+2*i),t.fillStrokeShape(e)}});this.add(t),this._proxyDrag(t),t.on("dragstart",t=>{t.cancelBubble=!0}),t.on("dragmove",t=>{t.cancelBubble=!0}),t.on("dragend",t=>{t.cancelBubble=!0}),this.on("dragmove",t=>{this.update()})}_handleMouseDown(t){if(this._transforming)return;this._movingAnchorName=t.target.name().split(" ")[0];let e=this._getNodeRect(),i=e.width,a=e.height,n=Math.sqrt(Math.pow(i,2)+Math.pow(a,2));this.sin=Math.abs(a/n),this.cos=Math.abs(i/n),"undefined"!=typeof window&&(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;let r=t.target.getAbsolutePosition(),o=t.target.getStage().getPointerPosition();this._anchorDragOffset={x:o.x-r.x,y:o.y-r.y},y++,this._fire("transformstart",{evt:t.evt,target:this.getNode()}),this._nodes.forEach(e=>{e._fire("transformstart",{evt:t.evt,target:e})})}_handleMouseMove(t){let e,i,a,n,r=this.findOne("."+this._movingAnchorName),o=r.getStage();o.setPointersPositions(t);let s=o.getPointerPosition(),l={x:s.x-this._anchorDragOffset.x,y:s.y-this._anchorDragOffset.y},c=r.getAbsolutePosition();this.anchorDragBoundFunc()&&(l=this.anchorDragBoundFunc()(c,l,t)),r.setAbsolutePosition(l);let h=r.getAbsolutePosition();if(c.x===h.x&&c.y===h.y)return;if("rotater"===this._movingAnchorName){let a=this._getNodeRect();e=r.x()-a.width/2;let n=Math.atan2(-(i=-r.y()+a.height/2),e)+Math.PI/2;a.height<0&&(n-=Math.PI);let o=V.Konva.getAngle(this.rotation())+n,s=V.Konva.getAngle(this.rotationSnapTolerance()),l=function(t,e,i){let a=e;for(let n=0;nt.x?-1:1,o=this.findOne(".top-left").y()>t.y?-1:1;e=a*this.cos*n,i=a*this.sin*o,this.findOne(".top-left").x(t.x-e),this.findOne(".top-left").y(t.y-i)}}else if("top-center"===this._movingAnchorName)this.findOne(".top-left").y(r.y());else if("top-right"===this._movingAnchorName){if(n){let t=p?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-left").x(),y:this.findOne(".bottom-left").y()};a=Math.sqrt(Math.pow(r.x()-t.x,2)+Math.pow(t.y-r.y(),2));let n=this.findOne(".top-right").x()t.y?-1:1;e=a*this.cos*n,i=a*this.sin*o,this.findOne(".top-right").x(t.x+e),this.findOne(".top-right").y(t.y-i)}var u=r.position();this.findOne(".top-left").y(u.y),this.findOne(".bottom-right").x(u.x)}else if("middle-left"===this._movingAnchorName)this.findOne(".top-left").x(r.x());else if("middle-right"===this._movingAnchorName)this.findOne(".bottom-right").x(r.x());else if("bottom-left"===this._movingAnchorName){if(n){let t=p?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-right").x(),y:this.findOne(".top-right").y()};a=Math.sqrt(Math.pow(t.x-r.x(),2)+Math.pow(r.y()-t.y,2));let n=t.x{var i;e._fire("transformend",{evt:t,target:e}),null==(i=e.getLayer())||i.batchDraw()}),this._movingAnchorName=null}}_fitNodesInto(t,e){let i=this._getNodeRect();if(a.Util._inRange(t.width,-(2*this.padding())-1,1)||a.Util._inRange(t.height,-(2*this.padding())-1,1))return void this.update();let n=new a.Transform;if(n.rotate(V.Konva.getAngle(this.rotation())),this._movingAnchorName&&t.width<0&&this._movingAnchorName.indexOf("left")>=0){let e=n.point({x:-(2*this.padding()),y:0});t.x+=e.x,t.y+=e.y,t.width+=2*this.padding(),this._movingAnchorName=this._movingAnchorName.replace("left","right"),this._anchorDragOffset.x-=e.x,this._anchorDragOffset.y-=e.y}else if(this._movingAnchorName&&t.width<0&&this._movingAnchorName.indexOf("right")>=0){let e=n.point({x:2*this.padding(),y:0});this._movingAnchorName=this._movingAnchorName.replace("right","left"),this._anchorDragOffset.x-=e.x,this._anchorDragOffset.y-=e.y,t.width+=2*this.padding()}if(this._movingAnchorName&&t.height<0&&this._movingAnchorName.indexOf("top")>=0){let e=n.point({x:0,y:-(2*this.padding())});t.x+=e.x,t.y+=e.y,this._movingAnchorName=this._movingAnchorName.replace("top","bottom"),this._anchorDragOffset.x-=e.x,this._anchorDragOffset.y-=e.y,t.height+=2*this.padding()}else if(this._movingAnchorName&&t.height<0&&this._movingAnchorName.indexOf("bottom")>=0){let e=n.point({x:0,y:2*this.padding()});this._movingAnchorName=this._movingAnchorName.replace("bottom","top"),this._anchorDragOffset.x-=e.x,this._anchorDragOffset.y-=e.y,t.height+=2*this.padding()}if(this.boundBoxFunc()){let e=this.boundBoxFunc()(i,t);e?t=e:a.Util.warn("boundBoxFunc returned falsy. You should return new bound rect from it!")}let r=new a.Transform;r.translate(i.x,i.y),r.rotate(i.rotation),r.scale(i.width/1e7,i.height/1e7);let o=new a.Transform,s=t.width/1e7,l=t.height/1e7;!1===this.flipEnabled()?(o.translate(t.x,t.y),o.rotate(t.rotation),o.translate(t.width<0?t.width:0,t.height<0?t.height:0),o.scale(Math.abs(s),Math.abs(l))):(o.translate(t.x,t.y),o.rotate(t.rotation),o.scale(s,l));let c=o.multiply(r.invert());this._nodes.forEach(t=>{var e;let i=t.getParent().getAbsoluteTransform(),n=t.getTransform().copy();n.translate(t.offsetX(),t.offsetY());let r=new a.Transform;r.multiply(i.copy().invert()).multiply(c).multiply(i).multiply(n);let o=r.decompose();t.setAttrs(o),null==(e=t.getLayer())||e.batchDraw()}),this.rotation(a.Util._getRotation(t.rotation)),this._nodes.forEach(t=>{this._fire("transform",{evt:e,target:t}),t._fire("transform",{evt:e,target:t})}),this._resetTransformCache(),this.update(),this.getLayer().batchDraw()}forceUpdate(){this._resetTransformCache(),this.update()}_batchChangeChild(t,e){this.findOne(t).setAttrs(e)}update(){var t;let e=this._getNodeRect();this.rotation(a.Util._getRotation(e.rotation));let i=e.width,n=e.height,r=this.enabledAnchors(),o=this.resizeEnabled(),s=this.padding(),l=this.anchorSize(),V=this.find("._anchor");V.forEach(t=>{t.setAttrs({width:l,height:l,offsetX:l/2,offsetY:l/2,stroke:this.anchorStroke(),strokeWidth:this.anchorStrokeWidth(),fill:this.anchorFill(),cornerRadius:this.anchorCornerRadius()})}),this._batchChangeChild(".top-left",{x:0,y:0,offsetX:l/2+s,offsetY:l/2+s,visible:o&&r.indexOf("top-left")>=0}),this._batchChangeChild(".top-center",{x:i/2,y:0,offsetY:l/2+s,visible:o&&r.indexOf("top-center")>=0}),this._batchChangeChild(".top-right",{x:i,y:0,offsetX:l/2-s,offsetY:l/2+s,visible:o&&r.indexOf("top-right")>=0}),this._batchChangeChild(".middle-left",{x:0,y:n/2,offsetX:l/2+s,visible:o&&r.indexOf("middle-left")>=0}),this._batchChangeChild(".middle-right",{x:i,y:n/2,offsetX:l/2-s,visible:o&&r.indexOf("middle-right")>=0}),this._batchChangeChild(".bottom-left",{x:0,y:n,offsetX:l/2+s,offsetY:l/2-s,visible:o&&r.indexOf("bottom-left")>=0}),this._batchChangeChild(".bottom-center",{x:i/2,y:n,offsetY:l/2-s,visible:o&&r.indexOf("bottom-center")>=0}),this._batchChangeChild(".bottom-right",{x:i,y:n,offsetX:l/2-s,offsetY:l/2-s,visible:o&&r.indexOf("bottom-right")>=0}),this._batchChangeChild(".rotater",{x:i/2,y:-this.rotateAnchorOffset()*a.Util._sign(n)-s,visible:this.rotateEnabled()}),this._batchChangeChild(".back",{width:i,height:n,visible:this.borderEnabled(),stroke:this.borderStroke(),strokeWidth:this.borderStrokeWidth(),dash:this.borderDash(),x:0,y:0});let c=this.anchorStyleFunc();c&&V.forEach(t=>{c(t)}),null==(t=this.getLayer())||t.batchDraw()}isTransforming(){return this._transforming}stopTransform(){if(this._transforming){this._removeEvents();let t=this.findOne("."+this._movingAnchorName);t&&t.stopDrag()}}destroy(){return this.getStage()&&this._cursorChange&&this.getStage().content&&(this.getStage().content.style.cursor=""),l.Group.prototype.destroy.call(this),this.detach(),this._removeEvents(),this}toObject(){return r.Node.prototype.toObject.call(this)}clone(t){return r.Node.prototype.clone.call(this,t)}getClientRect(){return this.nodes().length>0?super.getClientRect():{x:0,y:0,width:0,height:0}}}e.Transformer=b,b.isTransforming=()=>y>0,b.prototype.className="Transformer",(0,h._registerNode)(b),n.Factory.addGetterSetter(b,"enabledAnchors",v,function(t){return t instanceof Array||a.Util.warn("enabledAnchors value should be an array"),t instanceof Array&&t.forEach(function(t){-1===v.indexOf(t)&&a.Util.warn("Unknown anchor name: "+t+". Available names are: "+v.join(", "))}),t||[]}),n.Factory.addGetterSetter(b,"flipEnabled",!0,(0,c.getBooleanValidator)()),n.Factory.addGetterSetter(b,"resizeEnabled",!0),n.Factory.addGetterSetter(b,"anchorSize",10,(0,c.getNumberValidator)()),n.Factory.addGetterSetter(b,"rotateEnabled",!0),n.Factory.addGetterSetter(b,"rotateLineVisible",!0),n.Factory.addGetterSetter(b,"rotationSnaps",[]),n.Factory.addGetterSetter(b,"rotateAnchorOffset",50,(0,c.getNumberValidator)()),n.Factory.addGetterSetter(b,"rotateAnchorCursor","crosshair"),n.Factory.addGetterSetter(b,"rotationSnapTolerance",5,(0,c.getNumberValidator)()),n.Factory.addGetterSetter(b,"borderEnabled",!0),n.Factory.addGetterSetter(b,"anchorStroke","rgb(0, 161, 255)"),n.Factory.addGetterSetter(b,"anchorStrokeWidth",1,(0,c.getNumberValidator)()),n.Factory.addGetterSetter(b,"anchorFill","white"),n.Factory.addGetterSetter(b,"anchorCornerRadius",0,(0,c.getNumberValidator)()),n.Factory.addGetterSetter(b,"borderStroke","rgb(0, 161, 255)"),n.Factory.addGetterSetter(b,"borderStrokeWidth",1,(0,c.getNumberValidator)()),n.Factory.addGetterSetter(b,"borderDash"),n.Factory.addGetterSetter(b,"keepRatio",!0),n.Factory.addGetterSetter(b,"shiftBehavior","default"),n.Factory.addGetterSetter(b,"centeredScaling",!1),n.Factory.addGetterSetter(b,"ignoreStroke",!1),n.Factory.addGetterSetter(b,"padding",0,(0,c.getNumberValidator)()),n.Factory.addGetterSetter(b,"nodes"),n.Factory.addGetterSetter(b,"node"),n.Factory.addGetterSetter(b,"boundBoxFunc"),n.Factory.addGetterSetter(b,"anchorDragBoundFunc"),n.Factory.addGetterSetter(b,"anchorStyleFunc"),n.Factory.addGetterSetter(b,"shouldOverdrawWholeArea",!1),n.Factory.addGetterSetter(b,"useSingleNodeRotation",!0),n.Factory.backCompat(b,{lineEnabled:"borderEnabled",rotateHandlerOffset:"rotateAnchorOffset",enabledHandlers:"enabledAnchors"})},97498:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Layer=void 0;let a=i(26509),n=i(91248),r=i(20913),o=i(98949),s=i(4421),l=i(66394),V=i(83306),c=i(66878),h=[{x:0,y:0},{x:-1,y:-1},{x:1,y:-1},{x:1,y:1},{x:-1,y:1}],d=h.length;class p extends n.Container{constructor(t){super(t),this.canvas=new s.SceneCanvas,this.hitCanvas=new s.HitCanvas({pixelRatio:1}),this._waitingForDraw=!1,this.on("visibleChange.konva",this._checkVisibility),this._checkVisibility(),this.on("imageSmoothingEnabledChange.konva",this._setSmoothEnabled),this._setSmoothEnabled()}createPNGStream(){return this.canvas._canvas.createPNGStream()}getCanvas(){return this.canvas}getNativeCanvasElement(){return this.canvas._canvas}getHitCanvas(){return this.hitCanvas}getContext(){return this.getCanvas().getContext()}clear(t){return this.getContext().clear(t),this.getHitCanvas().getContext().clear(t),this}setZIndex(t){super.setZIndex(t);let e=this.getStage();return e&&e.content&&(e.content.removeChild(this.getNativeCanvasElement()),t{this.draw(),this._waitingForDraw=!1})),this}getIntersection(t){if(!this.isListening()||!this.isVisible())return null;let e=1,i=!1;for(;;){for(let a=0;a0?{antialiased:!0}:{}}drawScene(t,e,i){let a=this.getLayer(),r=t||a&&a.getCanvas();return this._fire("beforeDraw",{node:this}),this.clearBeforeDraw()&&r.getContext().clear(),n.Container.prototype.drawScene.call(this,r,e,i),this._fire("draw",{node:this}),this}drawHit(t,e){let i=this.getLayer(),a=t||i&&i.hitCanvas;return i&&i.clearBeforeDraw()&&i.getHitCanvas().getContext().clear(),n.Container.prototype.drawHit.call(this,a,e),this}enableHitGraph(){return this.hitGraphEnabled(!0),this}disableHitGraph(){return this.hitGraphEnabled(!1),this}setHitGraphEnabled(t){a.Util.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening(t)}getHitGraphEnabled(t){return a.Util.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening()}toggleHitCanvas(){if(!this.parent||!this.parent.content)return;let t=this.parent;this.hitCanvas._canvas.parentNode?t.content.removeChild(this.hitCanvas._canvas):t.content.appendChild(this.hitCanvas._canvas)}destroy(){return a.Util.releaseCanvas(this.getNativeCanvasElement(),this.getHitCanvas()._canvas),super.destroy()}}e.Layer=p,p.prototype.nodeType="Layer",(0,c._registerNode)(p),o.Factory.addGetterSetter(p,"imageSmoothingEnabled",!0),o.Factory.addGetterSetter(p,"clearBeforeDraw",!0),o.Factory.addGetterSetter(p,"hitGraphEnabled",!0,(0,l.getBooleanValidator)())},98949:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Factory=void 0;let a=i(26509),n=i(66394);e.Factory={addGetterSetter(t,i,a,n,r){e.Factory.addGetter(t,i,a),e.Factory.addSetter(t,i,n,r),e.Factory.addOverloadedGetterSetter(t,i)},addGetter(t,e,i){let n="get"+a.Util._capitalize(e);t.prototype[n]=t.prototype[n]||function(){let t=this.attrs[e];return void 0===t?i:t}},addSetter(t,i,n,r){let o="set"+a.Util._capitalize(i);t.prototype[o]||e.Factory.overWriteSetter(t,i,n,r)},overWriteSetter(t,e,i,n){let r="set"+a.Util._capitalize(e);t.prototype[r]=function(t){return i&&null!=t&&(t=i.call(this,t,e)),this._setAttr(e,t),n&&n.call(this),this}},addComponentsGetterSetter(t,i,r,o,s){let l=r.length,V=a.Util._capitalize,c="get"+V(i),h="set"+V(i);t.prototype[c]=function(){let t={};for(let e=0;e{this._setAttr(i+V(t),void 0)}),this._fireChangeEvent(i,e,t),s&&s.call(this),this},e.Factory.addOverloadedGetterSetter(t,i)},addOverloadedGetterSetter(t,e){let i=a.Util._capitalize(e),n="set"+i,r="get"+i;t.prototype[e]=function(){return arguments.length?(this[n](arguments[0]),this):this[r]()}},addDeprecatedGetterSetter(t,i,n,r){a.Util.error("Adding deprecated "+i);let o="get"+a.Util._capitalize(i),s=i+" property is deprecated and will be removed soon. Look at Konva change log for more information.";t.prototype[o]=function(){a.Util.error(s);let t=this.attrs[i];return void 0===t?n:t},e.Factory.addSetter(t,i,r,function(){a.Util.error(s)}),e.Factory.addOverloadedGetterSetter(t,i)},backCompat(t,e){a.Util.each(e,function(e,i){let n=t.prototype[i],r="get"+a.Util._capitalize(e),o="set"+a.Util._capitalize(e);function s(){n.apply(this,arguments),a.Util.error('"'+e+'" method is deprecated and will be removed soon. Use ""'+i+'" instead.')}t.prototype[e]=s,t.prototype[r]=s,t.prototype[o]=s})},afterSetFilter(){this._filterUpToDate=!1}}}}]);