@cocalc/static
Version:
CoCalc's static frontend Webpack-based build system and framework
2 lines • 60.8 kB
JavaScript
/*! For license information please see 75897b065d28173c72d5.js.LICENSE.txt */
(self.webpackChunk_cocalc_static=self.webpackChunk_cocalc_static||[]).push([[1804],{70771:(t,e,r)=>{"use strict";r.d(e,{Z:()=>n});var o=r(75025),i=r.n(o)()((function(t){return t[1]}));i.push([t.id,'.ReactCrop{position:relative;display:inline-block;cursor:crosshair;overflow:hidden;max-width:100%}.ReactCrop:focus{outline:none}.ReactCrop--disabled,.ReactCrop--locked{cursor:inherit}.ReactCrop__image{display:block;max-width:100%;touch-action:none}.ReactCrop__crop-selection{position:absolute;top:0;left:0;transform:translate3d(0, 0, 0);box-sizing:border-box;cursor:move;box-shadow:0 0 0 9999em rgba(0,0,0,.5);touch-action:none;border:1px solid;border-image-source:url(data:image/gif;base64,R0lGODlhCgAKAJECAAAAAP///////wAAACH/C05FVFNDQVBFMi4wAwEAAAAh/wtYTVAgRGF0YVhNUDw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6OEI5RDc5MTFDNkE2MTFFM0JCMDZEODI2QTI4MzJBOTIiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6OEI5RDc5MTBDNkE2MTFFM0JCMDZEODI2QTI4MzJBOTIiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuZGlkOjAyODAxMTc0MDcyMDY4MTE4MDgzQzNDMjA5MzREQ0ZDIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjAyODAxMTc0MDcyMDY4MTE4MDgzQzNDMjA5MzREQ0ZDIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+Af/+/fz7+vn49/b19PPy8fDv7u3s6+rp6Ofm5eTj4uHg397d3Nva2djX1tXU09LR0M/OzczLysnIx8bFxMPCwcC/vr28u7q5uLe2tbSzsrGwr66trKuqqainpqWko6KhoJ+enZybmpmYl5aVlJOSkZCPjo2Mi4qJiIeGhYSDgoGAf359fHt6eXh3dnV0c3JxcG9ubWxramloZ2ZlZGNiYWBfXl1cW1pZWFdWVVRTUlFQT05NTEtKSUhHRkVEQ0JBQD8+PTw7Ojk4NzY1NDMyMTAvLi0sKyopKCcmJSQjIiEgHx4dHBsaGRgXFhUUExIREA8ODQwLCgkIBwYFBAMCAQAAIfkEBQoAAgAsAAAAAAoACgAAAhWEERkn7W3ei7KlagMWF/dKgYeyGAUAIfkEBQoAAgAsAAAAAAoACgAAAg+UYwLJ7RnQm7QmsCyVKhUAIfkEBQoAAgAsAAAAAAoACgAAAhCUYgLJHdiinNSAVfOEKoUCACH5BAUKAAIALAAAAAAKAAoAAAIRVISAdusPo3RAzYtjaMIaUQAAIfkEBQoAAgAsAAAAAAoACgAAAg+MDiem7Q8bSLFaG5il6xQAIfkEBQoAAgAsAAAAAAoACgAAAg+UYRLJ7QnQm7SmsCyVKhUAIfkEBQoAAgAsAAAAAAoACgAAAhCUYBLJDdiinNSEVfOEKoECACH5BAUKAAIALAAAAAAKAAoAAAIRFISBdusPo3RBzYsjaMIaUQAAOw==);border-image-slice:1;border-image-repeat:repeat}.ReactCrop--disabled .ReactCrop__crop-selection{cursor:inherit}.ReactCrop--circular-crop .ReactCrop__crop-selection{border-radius:50%;box-shadow:0px 0px 1px 1px #fff,0 0 0 9999em rgba(0,0,0,.5)}.ReactCrop--invisible-crop .ReactCrop__crop-selection{display:none}.ReactCrop__rule-of-thirds-vt::before,.ReactCrop__rule-of-thirds-vt::after,.ReactCrop__rule-of-thirds-hz::before,.ReactCrop__rule-of-thirds-hz::after{content:"";display:block;position:absolute;background-color:rgba(255,255,255,.4)}.ReactCrop__rule-of-thirds-vt::before,.ReactCrop__rule-of-thirds-vt::after{width:1px;height:100%}.ReactCrop__rule-of-thirds-vt::before{left:33.3333%;left:calc(100% / 3)}.ReactCrop__rule-of-thirds-vt::after{left:66.6666%;left:calc(100% / 3 * 2)}.ReactCrop__rule-of-thirds-hz::before,.ReactCrop__rule-of-thirds-hz::after{width:100%;height:1px}.ReactCrop__rule-of-thirds-hz::before{top:33.3333%;top:calc(100% / 3)}.ReactCrop__rule-of-thirds-hz::after{top:66.6666%;top:calc(100% / 3 * 2)}.ReactCrop__drag-handle{position:absolute}.ReactCrop__drag-handle::after{position:absolute;content:"";display:block;width:10px;height:10px;background-color:rgba(0,0,0,.2);border:1px solid rgba(255,255,255,.7);box-sizing:border-box;outline:1px solid transparent}.ReactCrop .ord-nw{top:0;left:0;margin-top:-5px;margin-left:-5px;cursor:nw-resize}.ReactCrop .ord-nw::after{top:0;left:0}.ReactCrop .ord-n{top:0;left:50%;margin-top:-5px;margin-left:-5px;cursor:n-resize}.ReactCrop .ord-n::after{top:0}.ReactCrop .ord-ne{top:0;right:0;margin-top:-5px;margin-right:-5px;cursor:ne-resize}.ReactCrop .ord-ne::after{top:0;right:0}.ReactCrop .ord-e{top:50%;right:0;margin-top:-5px;margin-right:-5px;cursor:e-resize}.ReactCrop .ord-e::after{right:0}.ReactCrop .ord-se{bottom:0;right:0;margin-bottom:-5px;margin-right:-5px;cursor:se-resize}.ReactCrop .ord-se::after{bottom:0;right:0}.ReactCrop .ord-s{bottom:0;left:50%;margin-bottom:-5px;margin-left:-5px;cursor:s-resize}.ReactCrop .ord-s::after{bottom:0}.ReactCrop .ord-sw{bottom:0;left:0;margin-bottom:-5px;margin-left:-5px;cursor:sw-resize}.ReactCrop .ord-sw::after{bottom:0;left:0}.ReactCrop .ord-w{top:50%;left:0;margin-top:-5px;margin-left:-5px;cursor:w-resize}.ReactCrop .ord-w::after{left:0}.ReactCrop__disabled .ReactCrop__drag-handle{cursor:inherit}.ReactCrop__drag-bar{position:absolute}.ReactCrop__drag-bar.ord-n{top:0;left:0;width:100%;height:6px;margin-top:-3px}.ReactCrop__drag-bar.ord-e{right:0;top:0;width:6px;height:100%;margin-right:-3px}.ReactCrop__drag-bar.ord-s{bottom:0;left:0;width:100%;height:6px;margin-bottom:-3px}.ReactCrop__drag-bar.ord-w{top:0;left:0;width:6px;height:100%;margin-left:-3px}.ReactCrop--new-crop .ReactCrop__drag-bar,.ReactCrop--new-crop .ReactCrop__drag-handle,.ReactCrop--fixed-aspect .ReactCrop__drag-bar{display:none}.ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-n,.ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-e,.ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-s,.ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-w{display:none}@media(pointer: coarse){.ReactCrop .ord-n,.ReactCrop .ord-e,.ReactCrop .ord-s,.ReactCrop .ord-w{display:none}.ReactCrop__drag-handle{width:24px;height:24px}}\n',""]);const n=i},58200:(t,e,r)=>{"use strict";var o=r(75701),i=r.n(o),n=r(70771);i()(n.Z,{insert:"head",singleton:!1}),n.Z.locals},56077:t=>{function e(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}t.exports=function(t){return null!=t&&(e(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&e(t.slice(0,0))}(t)||!!t._isBuffer)}},10845:(t,e,r)=>{var o,i,n,a,s;o=r(70610),i=r(1566).utf8,n=r(56077),a=r(1566).bin,(s=function(t,e){t.constructor==String?t=e&&"binary"===e.encoding?a.stringToBytes(t):i.stringToBytes(t):n(t)?t=Array.prototype.slice.call(t,0):Array.isArray(t)||t.constructor===Uint8Array||(t=t.toString());for(var r=o.bytesToWords(t),A=8*t.length,c=1732584193,h=-271733879,u=-1732584194,p=271733878,d=0;d<r.length;d++)r[d]=16711935&(r[d]<<8|r[d]>>>24)|4278255360&(r[d]<<24|r[d]>>>8);r[A>>>5]|=128<<A%32,r[14+(A+64>>>9<<4)]=A;var f=s._ff,l=s._gg,g=s._hh,m=s._ii;for(d=0;d<r.length;d+=16){var w=c,v=h,y=u,b=p;c=f(c,h,u,p,r[d+0],7,-680876936),p=f(p,c,h,u,r[d+1],12,-389564586),u=f(u,p,c,h,r[d+2],17,606105819),h=f(h,u,p,c,r[d+3],22,-1044525330),c=f(c,h,u,p,r[d+4],7,-176418897),p=f(p,c,h,u,r[d+5],12,1200080426),u=f(u,p,c,h,r[d+6],17,-1473231341),h=f(h,u,p,c,r[d+7],22,-45705983),c=f(c,h,u,p,r[d+8],7,1770035416),p=f(p,c,h,u,r[d+9],12,-1958414417),u=f(u,p,c,h,r[d+10],17,-42063),h=f(h,u,p,c,r[d+11],22,-1990404162),c=f(c,h,u,p,r[d+12],7,1804603682),p=f(p,c,h,u,r[d+13],12,-40341101),u=f(u,p,c,h,r[d+14],17,-1502002290),c=l(c,h=f(h,u,p,c,r[d+15],22,1236535329),u,p,r[d+1],5,-165796510),p=l(p,c,h,u,r[d+6],9,-1069501632),u=l(u,p,c,h,r[d+11],14,643717713),h=l(h,u,p,c,r[d+0],20,-373897302),c=l(c,h,u,p,r[d+5],5,-701558691),p=l(p,c,h,u,r[d+10],9,38016083),u=l(u,p,c,h,r[d+15],14,-660478335),h=l(h,u,p,c,r[d+4],20,-405537848),c=l(c,h,u,p,r[d+9],5,568446438),p=l(p,c,h,u,r[d+14],9,-1019803690),u=l(u,p,c,h,r[d+3],14,-187363961),h=l(h,u,p,c,r[d+8],20,1163531501),c=l(c,h,u,p,r[d+13],5,-1444681467),p=l(p,c,h,u,r[d+2],9,-51403784),u=l(u,p,c,h,r[d+7],14,1735328473),c=g(c,h=l(h,u,p,c,r[d+12],20,-1926607734),u,p,r[d+5],4,-378558),p=g(p,c,h,u,r[d+8],11,-2022574463),u=g(u,p,c,h,r[d+11],16,1839030562),h=g(h,u,p,c,r[d+14],23,-35309556),c=g(c,h,u,p,r[d+1],4,-1530992060),p=g(p,c,h,u,r[d+4],11,1272893353),u=g(u,p,c,h,r[d+7],16,-155497632),h=g(h,u,p,c,r[d+10],23,-1094730640),c=g(c,h,u,p,r[d+13],4,681279174),p=g(p,c,h,u,r[d+0],11,-358537222),u=g(u,p,c,h,r[d+3],16,-722521979),h=g(h,u,p,c,r[d+6],23,76029189),c=g(c,h,u,p,r[d+9],4,-640364487),p=g(p,c,h,u,r[d+12],11,-421815835),u=g(u,p,c,h,r[d+15],16,530742520),c=m(c,h=g(h,u,p,c,r[d+2],23,-995338651),u,p,r[d+0],6,-198630844),p=m(p,c,h,u,r[d+7],10,1126891415),u=m(u,p,c,h,r[d+14],15,-1416354905),h=m(h,u,p,c,r[d+5],21,-57434055),c=m(c,h,u,p,r[d+12],6,1700485571),p=m(p,c,h,u,r[d+3],10,-1894986606),u=m(u,p,c,h,r[d+10],15,-1051523),h=m(h,u,p,c,r[d+1],21,-2054922799),c=m(c,h,u,p,r[d+8],6,1873313359),p=m(p,c,h,u,r[d+15],10,-30611744),u=m(u,p,c,h,r[d+6],15,-1560198380),h=m(h,u,p,c,r[d+13],21,1309151649),c=m(c,h,u,p,r[d+4],6,-145523070),p=m(p,c,h,u,r[d+11],10,-1120210379),u=m(u,p,c,h,r[d+2],15,718787259),h=m(h,u,p,c,r[d+9],21,-343485551),c=c+w>>>0,h=h+v>>>0,u=u+y>>>0,p=p+b>>>0}return o.endian([c,h,u,p])})._ff=function(t,e,r,o,i,n,a){var s=t+(e&r|~e&o)+(i>>>0)+a;return(s<<n|s>>>32-n)+e},s._gg=function(t,e,r,o,i,n,a){var s=t+(e&o|r&~o)+(i>>>0)+a;return(s<<n|s>>>32-n)+e},s._hh=function(t,e,r,o,i,n,a){var s=t+(e^r^o)+(i>>>0)+a;return(s<<n|s>>>32-n)+e},s._ii=function(t,e,r,o,i,n,a){var s=t+(r^(e|~o))+(i>>>0)+a;return(s<<n|s>>>32-n)+e},s._blocksize=16,s._digestsize=16,t.exports=function(t,e){if(null==t)throw new Error("Illegal argument "+t);var r=o.wordsToBytes(s(t,e));return e&&e.asBytes?r:e&&e.asString?a.bytesToString(r):o.bytesToHex(r)}},84018:t=>{function e(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}t.exports=function t(e,r,o){function i(a,s){if(!r[a]){if(!e[a]){if(n)return n(a,!0);var A=new Error("Cannot find module '"+a+"'");throw A.code="MODULE_NOT_FOUND",A}var c=r[a]={exports:{}};e[a][0].call(c.exports,(function(t){return i(e[a][1][t]||t)}),c,c.exports,t,e,r,o)}return r[a].exports}for(var n=void 0,a=0;a<o.length;a++)i(o[a]);return i}({1:[function(t,e,r){"use strict";var o=function(t){var e=t||[],r={js:e.indexOf("js")>=0,wasm:e.indexOf("wasm")>=0};n.call(this,r),this.features={js:r.js,wasm:r.wasm&&this.has_wasm()},this.use(a),this.use(s)},i=t("inherits"),n=t("multimath"),a=t("./mm_unsharp_mask"),s=t("./mm_resize");i(o,n),o.prototype.resizeAndUnsharp=function(t,e){var r=this.resize(t,e);return t.unsharpAmount&&this.unsharp_mask(r,t.toWidth,t.toHeight,t.unsharpAmount,t.unsharpRadius,t.unsharpThreshold),r},e.exports=o},{"./mm_resize":4,"./mm_unsharp_mask":9,inherits:19,multimath:20}],2:[function(t,e,r){"use strict";var o=function(t){return t<0?0:t>255?255:t};e.exports={convolveHorizontally:function(t,e,r,i,n,a){var s,A,c,h,u,p,d,f,l,g,m,w=0,v=0;for(l=0;l<i;l++){for(u=0,g=0;g<n;g++){for(p=a[u++],d=a[u++],f=w+4*p|0,s=A=c=h=0;d>0;d--)h=h+(m=a[u++])*t[f+3]|0,c=c+m*t[f+2]|0,A=A+m*t[f+1]|0,s=s+m*t[f]|0,f=f+4|0;e[v+3]=o(h+8192>>14),e[v+2]=o(c+8192>>14),e[v+1]=o(A+8192>>14),e[v]=o(s+8192>>14),v=v+4*i|0}v=4*(l+1)|0,w=(l+1)*r*4|0}},convolveVertically:function(t,e,r,i,n,a){var s,A,c,h,u,p,d,f,l,g,m,w=0,v=0;for(l=0;l<i;l++){for(u=0,g=0;g<n;g++){for(p=a[u++],d=a[u++],f=w+4*p|0,s=A=c=h=0;d>0;d--)h=h+(m=a[u++])*t[f+3]|0,c=c+m*t[f+2]|0,A=A+m*t[f+1]|0,s=s+m*t[f]|0,f=f+4|0;e[v+3]=o(h+8192>>14),e[v+2]=o(c+8192>>14),e[v+1]=o(A+8192>>14),e[v]=o(s+8192>>14),v=v+4*i|0}v=4*(l+1)|0,w=(l+1)*r*4|0}}}},{}],3:[function(t,e,r){"use strict";e.exports="AGFzbQEAAAAADAZkeWxpbmsAAAAAAAEXA2AAAGAGf39/f39/AGAHf39/f39/fwACDwEDZW52Bm1lbW9yeQIAAAMEAwABAgYGAX8AQQALB1cFEV9fd2FzbV9jYWxsX2N0b3JzAAAIY29udm9sdmUAAQpjb252b2x2ZUhWAAIMX19kc29faGFuZGxlAwAYX193YXNtX2FwcGx5X2RhdGFfcmVsb2NzAAAK7AMDAwABC8YDAQ9/AkAgA0UNACAERQ0AA0AgDCENQQAhE0EAIQcDQCAHQQJqIQYCfyAHQQF0IAVqIgcuAQIiFEUEQEGAwAAhCEGAwAAhCUGAwAAhCkGAwAAhCyAGDAELIBIgBy4BAGohCEEAIQsgFCEHQQAhDiAGIQlBACEPQQAhEANAIAUgCUEBdGouAQAiESAAIAhBAnRqKAIAIgpBGHZsIBBqIRAgCkH/AXEgEWwgC2ohCyAKQRB2Qf8BcSARbCAPaiEPIApBCHZB/wFxIBFsIA5qIQ4gCEEBaiEIIAlBAWohCSAHQQFrIgcNAAsgC0GAQGshCCAOQYBAayEJIA9BgEBrIQogEEGAQGshCyAGIBRqCyEHIAEgDUECdGogCUEOdSIGQf8BIAZB/wFIGyIGQQAgBkEAShtBCHRBgP4DcSAKQQ51IgZB/wEgBkH/AUgbIgZBACAGQQBKG0EQdEGAgPwHcSALQQ51IgZB/wEgBkH/AUgbIgZBACAGQQBKG0EYdHJyIAhBDnUiBkH/ASAGQf8BSBsiBkEAIAZBAEobcjYCACADIA1qIQ0gE0EBaiITIARHDQALIAxBAWoiDCACbCESIAMgDEcNAAsLCx4AQQAgAiADIAQgBSAAEAEgAkEAIAQgBSAGIAEQAQs="},{}],4:[function(t,e,r){"use strict";e.exports={name:"resize",fn:t("./resize"),wasm_fn:t("./resize_wasm"),wasm_src:t("./convolve_wasm_base64")}},{"./convolve_wasm_base64":3,"./resize":5,"./resize_wasm":8}],5:[function(t,e,r){"use strict";var o=t("./resize_filter_gen"),i=t("./convolve").convolveHorizontally,n=t("./convolve").convolveVertically;e.exports=function(t){var e=t.src,r=t.width,a=t.height,s=t.toWidth,A=t.toHeight,c=t.scaleX||t.toWidth/t.width,h=t.scaleY||t.toHeight/t.height,u=t.offsetX||0,p=t.offsetY||0,d=t.dest||new Uint8Array(s*A*4),f=void 0===t.quality?3:t.quality,l=t.alpha||!1,g=o(f,r,s,c,u),m=o(f,a,A,h,p),w=new Uint8Array(s*a*4);return i(e,w,r,a,s,g),n(w,d,a,s,A,m),l||function(t,e,r){for(var o=3,i=e*r*4|0;o<i;)t[o]=255,o=o+4|0}(d,s,A),d}},{"./convolve":2,"./resize_filter_gen":6}],6:[function(t,e,r){"use strict";var o=function(t){return Math.round(t*((1<<n)-1))},i=t("./resize_filter_info"),n=14;e.exports=function(t,e,r,n,a){var s,A,c,h,u,p,d,f,l,g,m,w,v,y,b,C,I,_=i[t].filter,B=1/n,x=Math.min(1,n),E=i[t].win/x,R=Math.floor(2*(E+1)),D=new Int16Array((R+2)*r),Q=0,M=!D.subarray||!D.set;for(s=0;s<r;s++){for(A=(s+.5)*B+a,c=Math.max(0,Math.floor(A-E)),u=(h=Math.min(e-1,Math.ceil(A+E)))-c+1,p=new Float32Array(u),d=new Int16Array(u),f=0,l=c,g=0;l<=h;l++,g++)f+=m=_((l+.5-A)*x),p[g]=m;for(w=0,g=0;g<p.length;g++)w+=v=p[g]/f,d[g]=o(v);for(d[r>>1]+=o(1-w),y=0;y<d.length&&0===d[y];)y++;if(y<d.length){for(b=d.length-1;b>0&&0===d[b];)b--;if(C=c+y,I=b-y+1,D[Q++]=C,D[Q++]=I,M)for(g=y;g<=b;g++)D[Q++]=d[g];else D.set(d.subarray(y,b+1),Q),Q+=I}else D[Q++]=0,D[Q++]=0}return D}},{"./resize_filter_info":7}],7:[function(t,e,r){"use strict";e.exports=[{win:.5,filter:function(t){return t>=-.5&&t<.5?1:0}},{win:1,filter:function(t){if(t<=-1||t>=1)return 0;if(t>-1.1920929e-7&&t<1.1920929e-7)return 1;var e=t*Math.PI;return Math.sin(e)/e*(.54+.46*Math.cos(e/1))}},{win:2,filter:function(t){if(t<=-2||t>=2)return 0;if(t>-1.1920929e-7&&t<1.1920929e-7)return 1;var e=t*Math.PI;return Math.sin(e)/e*Math.sin(e/2)/(e/2)}},{win:3,filter:function(t){if(t<=-3||t>=3)return 0;if(t>-1.1920929e-7&&t<1.1920929e-7)return 1;var e=t*Math.PI;return Math.sin(e)/e*Math.sin(e/3)/(e/3)}}]},{}],8:[function(t,e,r){"use strict";var o=function(t,e,r){if(n)e.set(function(t){return new Uint8Array(t.buffer,0,t.byteLength)}(t),r);else for(var o=r,i=0;i<t.length;i++){var a=t[i];e[o++]=255&a,e[o++]=a>>8&255}},i=t("./resize_filter_gen"),n=!0;try{n=1===new Uint32Array(new Uint8Array([1,0,0,0]).buffer)[0]}catch(t){}e.exports=function(t){var e=t.src,r=t.width,n=t.height,a=t.toWidth,s=t.toHeight,A=t.scaleX||t.toWidth/t.width,c=t.scaleY||t.toHeight/t.height,h=t.offsetX||0,u=t.offsetY||0,p=t.dest||new Uint8Array(a*s*4),d=void 0===t.quality?3:t.quality,f=t.alpha||!1,l=i(d,r,a,A,h),g=i(d,n,s,c,u),m=this.__align(0+Math.max(e.byteLength,p.byteLength)),w=this.__align(m+n*a*4),v=this.__align(w+l.byteLength),y=v+g.byteLength,b=this.__instance("resize",y),C=new Uint8Array(this.__memory.buffer),I=new Uint32Array(this.__memory.buffer),_=new Uint32Array(e.buffer);return I.set(_),o(l,C,w),o(g,C,v),(b.exports.convolveHV||b.exports._convolveHV)(w,v,m,r,n,a,s),new Uint32Array(p.buffer).set(new Uint32Array(this.__memory.buffer,0,s*a)),f||function(t,e,r){for(var o=3,i=e*r*4|0;o<i;)t[o]=255,o=o+4|0}(p,a,s),p}},{"./resize_filter_gen":6}],9:[function(t,e,r){"use strict";e.exports={name:"unsharp_mask",fn:t("./unsharp_mask"),wasm_fn:t("./unsharp_mask_wasm"),wasm_src:t("./unsharp_mask_wasm_base64")}},{"./unsharp_mask":10,"./unsharp_mask_wasm":11,"./unsharp_mask_wasm_base64":12}],10:[function(t,e,r){"use strict";var o=t("glur/mono16");e.exports=function(t,e,r,i,n,a){var s,A,c,h,u;if(!(0===i||n<.5)){n>2&&(n=2);var p=function(t,e,r){for(var o,i,n,a,s=e*r,A=new Uint16Array(s),c=0;c<s;c++)o=t[4*c],i=t[4*c+1],n=t[4*c+2],a=o>=i&&o>=n?o:i>=n&&i>=o?i:n,A[c]=a<<8;return A}(t,e,r),d=new Uint16Array(p);o(d,e,r,n);for(var f=i/100*4096+.5|0,l=a<<8,g=e*r,m=0;m<g;m++)h=(s=p[m])-d[m],Math.abs(h)>=l&&(c=((A=(A=(A=s+(f*h+2048>>12))>65280?65280:A)<0?0:A)<<12)/(s=0!==s?s:1)|0,t[u=4*m]=t[u]*c+2048>>12,t[u+1]=t[u+1]*c+2048>>12,t[u+2]=t[u+2]*c+2048>>12)}}},{"glur/mono16":18}],11:[function(t,e,r){"use strict";e.exports=function(t,e,r,o,i,n){if(!(0===o||i<.5)){i>2&&(i=2);var a=e*r,s=4*a,A=2*a,c=2*a,h=4*Math.max(e,r),u=s,p=u+A,d=p+c,f=d+c,l=f+h,g=this.__instance("unsharp_mask",s+A+2*c+h+32,{exp:Math.exp}),m=new Uint32Array(t.buffer);new Uint32Array(this.__memory.buffer).set(m);var w=g.exports.hsv_v16||g.exports._hsv_v16;w(0,u,e,r),(w=g.exports.blurMono16||g.exports._blurMono16)(u,p,d,f,l,e,r,i),(w=g.exports.unsharp||g.exports._unsharp)(0,0,u,p,e,r,o,n),m.set(new Uint32Array(this.__memory.buffer,0,a))}}},{}],12:[function(t,e,r){"use strict";e.exports="AGFzbQEAAAAADAZkeWxpbmsAAAAAAAE0B2AAAGAEf39/fwBgBn9/f39/fwBgCH9/f39/f39/AGAIf39/f39/f30AYAJ9fwBgAXwBfAIZAgNlbnYDZXhwAAYDZW52Bm1lbW9yeQIAAAMHBgAFAgQBAwYGAX8AQQALB4oBCBFfX3dhc21fY2FsbF9jdG9ycwABFl9fYnVpbGRfZ2F1c3NpYW5fY29lZnMAAg5fX2dhdXNzMTZfbGluZQADCmJsdXJNb25vMTYABAdoc3ZfdjE2AAUHdW5zaGFycAAGDF9fZHNvX2hhbmRsZQMAGF9fd2FzbV9hcHBseV9kYXRhX3JlbG9jcwABCsUMBgMAAQvWAQEHfCABRNuGukOCGvs/IAC7oyICRAAAAAAAAADAohAAIgW2jDgCFCABIAKaEAAiAyADoCIGtjgCECABRAAAAAAAAPA/IAOhIgQgBKIgAyACIAKgokQAAAAAAADwP6AgBaGjIgS2OAIAIAEgBSAEmqIiB7Y4AgwgASADIAJEAAAAAAAA8D+gIASioiIItjgCCCABIAMgAkQAAAAAAADwv6AgBKKiIgK2OAIEIAEgByAIoCAFRAAAAAAAAPA/IAahoCIDo7Y4AhwgASAEIAKgIAOjtjgCGAuGBQMGfwl8An0gAyoCDCEVIAMqAgghFiADKgIUuyERIAMqAhC7IRACQCAEQQFrIghBAEgiCQRAIAIhByAAIQYMAQsgAiAALwEAuCIPIAMqAhi7oiIMIBGiIg0gDCAQoiAPIAMqAgS7IhOiIhQgAyoCALsiEiAPoqCgoCIOtjgCACACQQRqIQcgAEECaiEGIAhFDQAgCEEBIAhBAUgbIgpBf3MhCwJ/IAQgCmtBAXFFBEAgDiENIAgMAQsgAiANIA4gEKIgFCASIAAvAQK4Ig+ioKCgIg22OAIEIAJBCGohByAAQQRqIQYgDiEMIARBAmsLIQIgC0EAIARrRg0AA0AgByAMIBGiIA0gEKIgDyAToiASIAYvAQC4Ig6ioKCgIgy2OAIAIAcgDSARoiAMIBCiIA4gE6IgEiAGLwECuCIPoqCgoCINtjgCBCAHQQhqIQcgBkEEaiEGIAJBAkohACACQQJrIQIgAA0ACwsCQCAJDQAgASAFIAhsQQF0aiIAAn8gBkECay8BACICuCINIBW7IhKiIA0gFrsiE6KgIA0gAyoCHLuiIgwgEKKgIAwgEaKgIg8gB0EEayIHKgIAu6AiDkQAAAAAAADwQWMgDkQAAAAAAAAAAGZxBEAgDqsMAQtBAAs7AQAgCEUNACAGQQRrIQZBACAFa0EBdCEBA0ACfyANIBKiIAJB//8DcbgiDSAToqAgDyIOIBCioCAMIBGioCIPIAdBBGsiByoCALugIgxEAAAAAAAA8EFjIAxEAAAAAAAAAABmcQRAIAyrDAELQQALIQMgBi8BACECIAAgAWoiACADOwEAIAZBAmshBiAIQQFKIQMgDiEMIAhBAWshCCADDQALCwvRAgIBfwd8AkAgB0MAAAAAWw0AIARE24a6Q4Ia+z8gB0MAAAA/l7ujIglEAAAAAAAAAMCiEAAiDLaMOAIUIAQgCZoQACIKIAqgIg22OAIQIAREAAAAAAAA8D8gCqEiCyALoiAKIAkgCaCiRAAAAAAAAPA/oCAMoaMiC7Y4AgAgBCAMIAuaoiIOtjgCDCAEIAogCUQAAAAAAADwP6AgC6KiIg+2OAIIIAQgCiAJRAAAAAAAAPC/oCALoqIiCbY4AgQgBCAOIA+gIAxEAAAAAAAA8D8gDaGgIgqjtjgCHCAEIAsgCaAgCqO2OAIYIAYEQANAIAAgBSAIbEEBdGogAiAIQQF0aiADIAQgBSAGEAMgCEEBaiIIIAZHDQALCyAFRQ0AQQAhCANAIAIgBiAIbEEBdGogASAIQQF0aiADIAQgBiAFEAMgCEEBaiIIIAVHDQALCwtxAQN/IAIgA2wiBQRAA0AgASAAKAIAIgRBEHZB/wFxIgIgAiAEQQh2Qf8BcSIDIAMgBEH/AXEiBEkbIAIgA0sbIgYgBiAEIAIgBEsbIAMgBEsbQQh0OwEAIAFBAmohASAAQQRqIQAgBUEBayIFDQALCwuZAgIDfwF8IAQgBWwhBAJ/IAazQwAAgEWUQwAAyEKVu0QAAAAAAADgP6AiC5lEAAAAAAAA4EFjBEAgC6oMAQtBgICAgHgLIQUgBARAIAdBCHQhCUEAIQYDQCAJIAIgBkEBdCIHai8BACIBIAMgB2ovAQBrIgcgB0EfdSIIaiAIc00EQCAAIAZBAnQiCGoiCiAFIAdsQYAQakEMdSABaiIHQYD+AyAHQYD+A0gbIgdBACAHQQBKG0EMdCABQQEgARtuIgEgCi0AAGxBgBBqQQx2OgAAIAAgCEEBcmoiByABIActAABsQYAQakEMdjoAACAAIAhBAnJqIgcgASAHLQAAbEGAEGpBDHY6AAALIAZBAWoiBiAERw0ACwsL"},{}],13:[function(t,e,r){"use strict";var o=function(t,e){this.create=t,this.available=[],this.acquired={},this.lastId=1,this.timeoutId=0,this.idle=e||2e3};o.prototype.acquire=function(){var t,e=this;return 0!==this.available.length?t=this.available.pop():((t=this.create()).id=this.lastId++,t.release=function(){return e.release(t)}),this.acquired[t.id]=t,t},o.prototype.release=function(t){var e=this;delete this.acquired[t.id],t.lastUsed=Date.now(),this.available.push(t),0===this.timeoutId&&(this.timeoutId=setTimeout((function(){return e.gc()}),100))},o.prototype.gc=function(){var t=this,e=Date.now();this.available=this.available.filter((function(r){return!(e-r.lastUsed>t.idle&&(r.destroy(),1))})),0!==this.available.length?this.timeoutId=setTimeout((function(){return t.gc()}),100):this.timeoutId=0},e.exports=o},{}],14:[function(t,e,r){"use strict";e.exports=function(t,e,r,o,i,n){var a=r/t,s=o/e,A=(2*n+2+1)/i;if(A>.5)return[[r,o]];var c=Math.ceil(Math.log(Math.min(a,s))/Math.log(A));if(c<=1)return[[r,o]];for(var h=[],u=0;u<c;u++){var p=Math.round(Math.pow(Math.pow(t,c-u-1)*Math.pow(r,u+1),1/c)),d=Math.round(Math.pow(Math.pow(e,c-u-1)*Math.pow(o,u+1),1/c));h.push([p,d])}return h}},{}],15:[function(t,e,r){"use strict";var o=function(t){var e=Math.round(t);return Math.abs(t-e)<n?e:Math.floor(t)},i=function(t){var e=Math.round(t);return Math.abs(t-e)<n?e:Math.ceil(t)},n=1e-5;e.exports=function(t){var e,r,n,a,s,A,c=t.toWidth/t.width,h=t.toHeight/t.height,u=o(t.srcTileSize*c)-2*t.destTileBorder,p=o(t.srcTileSize*h)-2*t.destTileBorder;if(u<1||p<1)throw new Error("Internal error in pica: target tile width/height is too small.");var d,f=[];for(a=0;a<t.toHeight;a+=p)for(n=0;n<t.toWidth;n+=u)(e=n-t.destTileBorder)<0&&(e=0),e+(s=n+u+t.destTileBorder-e)>=t.toWidth&&(s=t.toWidth-e),(r=a-t.destTileBorder)<0&&(r=0),r+(A=a+p+t.destTileBorder-r)>=t.toHeight&&(A=t.toHeight-r),d={toX:e,toY:r,toWidth:s,toHeight:A,toInnerX:n,toInnerY:a,toInnerWidth:u,toInnerHeight:p,offsetX:e/c-o(e/c),offsetY:r/h-o(r/h),scaleX:c,scaleY:h,x:o(e/c),y:o(r/h),width:i(s/c),height:i(A/h)},f.push(d);return f}},{}],16:[function(t,e,r){"use strict";var o=function(t){return Object.prototype.toString.call(t)};e.exports.isCanvas=function(t){var e=o(t);return"[object HTMLCanvasElement]"===e||"[object OffscreenCanvas]"===e||"[object Canvas]"===e},e.exports.isImage=function(t){return"[object HTMLImageElement]"===o(t)},e.exports.isImageBitmap=function(t){return"[object ImageBitmap]"===o(t)},e.exports.limiter=function(t){var e=function(){r<t&&o.length&&(r++,o.shift()())},r=0,o=[];return function(t){return new Promise((function(i,n){o.push((function(){t().then((function(t){i(t),r--,e()}),(function(t){n(t),r--,e()}))})),e()}))}},e.exports.cib_quality_name=function(t){switch(t){case 0:return"pixelated";case 1:return"low";case 2:return"medium"}return"high"},e.exports.cib_support=function(t){return Promise.resolve().then((function(){if("undefined"==typeof createImageBitmap)return!1;var e=t(100,100);return createImageBitmap(e,0,0,100,100,{resizeWidth:10,resizeHeight:10,resizeQuality:"high"}).then((function(t){var r=10===t.width;return t.close(),e=null,r}))})).catch((function(){return!1}))},e.exports.worker_offscreen_canvas_support=function(){return new Promise((function(t,e){if("undefined"!=typeof OffscreenCanvas){var r=btoa("(".concat(function(t){"undefined"!=typeof createImageBitmap?Promise.resolve().then((function(){var t=new OffscreenCanvas(10,10);return t.getContext("2d").rect(0,0,1,1),createImageBitmap(t,0,0,1,1)})).then((function(){return t.postMessage(!0)}),(function(){return t.postMessage(!1)})):t.postMessage(!1)}.toString(),")(self);")),o=new Worker("data:text/javascript;base64,".concat(r));o.onmessage=function(e){return t(e.data)},o.onerror=e}else t(!1)})).then((function(t){return t}),(function(){return!1}))},e.exports.can_use_canvas=function(t){var e=!1;try{var r=t(2,1).getContext("2d"),o=r.createImageData(2,1);o.data[0]=12,o.data[1]=23,o.data[2]=34,o.data[3]=255,o.data[4]=45,o.data[5]=56,o.data[6]=67,o.data[7]=255,r.putImageData(o,0,0),o=null,12===(o=r.getImageData(0,0,2,1)).data[0]&&23===o.data[1]&&34===o.data[2]&&255===o.data[3]&&45===o.data[4]&&56===o.data[5]&&67===o.data[6]&&255===o.data[7]&&(e=!0)}catch(t){}return e},e.exports.cib_can_use_region=function(){return new Promise((function(t){if("undefined"!=typeof createImageBitmap){var e=new Image;e.src="data:image/jpeg;base64,/9j/4QBiRXhpZgAATU0AKgAAAAgABQESAAMAAAABAAYAAAEaAAUAAAABAAAASgEbAAUAAAABAAAAUgEoAAMAAAABAAIAAAITAAMAAAABAAEAAAAAAAAAAABIAAAAAQAAAEgAAAAB/9sAQwAEAwMEAwMEBAMEBQQEBQYKBwYGBgYNCQoICg8NEBAPDQ8OERMYFBESFxIODxUcFRcZGRsbGxAUHR8dGh8YGhsa/9sAQwEEBQUGBQYMBwcMGhEPERoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoa/8IAEQgAAQACAwERAAIRAQMRAf/EABQAAQAAAAAAAAAAAAAAAAAAAAf/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIQAxAAAAF/P//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEAAQUCf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQMBAT8Bf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQIBAT8Bf//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEABj8Cf//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEAAT8hf//aAAwDAQACAAMAAAAQH//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQMBAT8Qf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQIBAT8Qf//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEAAT8Qf//Z",e.onload=function(){createImageBitmap(e,0,0,e.width,e.height).then((function(r){r.width===e.width&&r.height===e.height?t(!0):t(!1)}),(function(){return t(!1)}))},e.onerror=function(){return t(!1)}}else t(!1)}))}},{}],17:[function(t,e,r){"use strict";e.exports=function(){var e,r=t("./mathlib");onmessage=function(t){var o=t.data.opts,i=!1;if(!o.src&&o.srcBitmap){var n=new OffscreenCanvas(o.width,o.height),a=n.getContext("2d",{alpha:Boolean(o.alpha)});a.drawImage(o.srcBitmap,0,0),o.src=a.getImageData(0,0,o.width,o.height).data,n.width=n.height=0,n=null,o.srcBitmap.close(),o.srcBitmap=null,i=!0}e||(e=new r(t.data.features));var s=e.resizeAndUnsharp(o);if(i){var A=new ImageData(new Uint8ClampedArray(s),o.toWidth,o.toHeight),c=new OffscreenCanvas(o.toWidth,o.toHeight);c.getContext("2d",{alpha:Boolean(o.alpha)}).putImageData(A,0,0),createImageBitmap(c).then((function(t){postMessage({bitmap:t},[t])}))}else postMessage({data:s},[s.buffer])}}},{"./mathlib":1}],18:[function(t,e,r){var o,i,n,a,s,A,c=function(t,e,r,o,i,n){var a,s,A,c,h,u,p,d,f,l,g,m,w,v;for(f=0;f<n;f++){for(p=f,d=0,c=h=(a=t[u=f*i])*o[6],g=o[0],m=o[1],w=o[4],v=o[5],l=0;l<i;l++)A=(s=t[u])*g+a*m+c*w+h*v,h=c,c=A,a=s,r[d]=c,d++,u++;for(d--,p+=n*(i-1),c=h=(a=t[--u])*o[7],s=a,g=o[2],m=o[3],l=i-1;l>=0;l--)A=s*g+a*m+c*w+h*v,h=c,c=A,a=s,s=t[u],e[p]=r[d]+c,u--,d--,p-=n}};e.exports=function(t,e,r,h){if(h){var u=new Uint16Array(t.length),p=new Float32Array(Math.max(e,r)),d=function(t){t<.5&&(t=.5);var e=Math.exp(.527076)/t,r=Math.exp(-e),c=Math.exp(-2*e),h=(1-r)*(1-r)/(1+2*e*r-c);return o=h,i=h*(e-1)*r,n=h*(e+1)*r,a=-h*c,s=2*r,A=-c,new Float32Array([o,i,n,a,s,A,(o+i)/(1-s-A),(n+a)/(1-s-A)])}(h);c(t,u,p,d,e,r),c(u,t,p,d,r,e)}}},{}],19:[function(t,e,r){"function"==typeof Object.create?e.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},{}],20:[function(t,r,o){"use strict";var i=t("object-assign"),n=t("./lib/base64decode"),a=t("./lib/wa_detect"),s={js:!0,wasm:!0};function A(t){if(!e(this,A))return new A(t);var r=i({},s,t||{});if(this.options=r,this.__cache={},this.__init_promise=null,this.__modules=r.modules||{},this.__memory=null,this.__wasm={},this.__isLE=1===new Uint32Array(new Uint8Array([1,0,0,0]).buffer)[0],!this.options.js&&!this.options.wasm)throw new Error('mathlib: at least "js" or "wasm" should be enabled')}A.prototype.has_wasm=a,A.prototype.use=function(t){return this.__modules[t.name]=t,this.options.wasm&&this.has_wasm()&&t.wasm_fn?this[t.name]=t.wasm_fn:this[t.name]=t.fn,this},A.prototype.init=function(){if(this.__init_promise)return this.__init_promise;if(!this.options.js&&this.options.wasm&&!this.has_wasm())return Promise.reject(new Error('mathlib: only "wasm" was enabled, but it\'s not supported'));var t=this;return this.__init_promise=Promise.all(Object.keys(t.__modules).map((function(e){var r=t.__modules[e];return t.options.wasm&&t.has_wasm()&&r.wasm_fn?t.__wasm[e]?null:WebAssembly.compile(t.__base64decode(r.wasm_src)).then((function(r){t.__wasm[e]=r})):null}))).then((function(){return t})),this.__init_promise},A.prototype.__base64decode=n,A.prototype.__reallocate=function(t){if(!this.__memory)return this.__memory=new WebAssembly.Memory({initial:Math.ceil(t/65536)}),this.__memory;var e=this.__memory.buffer.byteLength;return e<t&&this.__memory.grow(Math.ceil((t-e)/65536)),this.__memory},A.prototype.__instance=function(t,e,r){if(e&&this.__reallocate(e),!this.__wasm[t]){var o=this.__modules[t];this.__wasm[t]=new WebAssembly.Module(this.__base64decode(o.wasm_src))}if(!this.__cache[t]){var n={memoryBase:0,memory:this.__memory,tableBase:0,table:new WebAssembly.Table({initial:0,element:"anyfunc"})};this.__cache[t]=new WebAssembly.Instance(this.__wasm[t],{env:i(n,r||{})})}return this.__cache[t]},A.prototype.__align=function(t,e){var r=t%(e=e||8);return t+(r?e-r:0)},r.exports=A},{"./lib/base64decode":21,"./lib/wa_detect":22,"object-assign":23}],21:[function(t,e,r){"use strict";e.exports=function(t){for(var e=t.replace(/[\r\n=]/g,""),r=e.length,o=new Uint8Array(3*r>>2),i=0,n=0,a=0;a<r;a++)a%4==0&&a&&(o[n++]=i>>16&255,o[n++]=i>>8&255,o[n++]=255&i),i=i<<6|"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(e.charAt(a));var s=r%4*6;return 0===s?(o[n++]=i>>16&255,o[n++]=i>>8&255,o[n++]=255&i):18===s?(o[n++]=i>>10&255,o[n++]=i>>2&255):12===s&&(o[n++]=i>>4&255),o}},{}],22:[function(t,e,r){"use strict";var o;e.exports=function(){if(void 0!==o)return o;if(o=!1,"undefined"==typeof WebAssembly)return o;try{var t=new Uint8Array([0,97,115,109,1,0,0,0,1,6,1,96,1,127,1,127,3,2,1,0,5,3,1,0,1,7,8,1,4,116,101,115,116,0,0,10,16,1,14,0,32,0,65,1,54,2,0,32,0,40,2,0,11]),e=new WebAssembly.Module(t);return 0!==new WebAssembly.Instance(e,{}).exports.test(4)&&(o=!0),o}catch(t){}return o}},{}],23:[function(t,e,r){"use strict";var o=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)},i=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(t){o[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var r,s,A=o(t),c=1;c<arguments.length;c++){for(var h in r=Object(arguments[c]))n.call(r,h)&&(A[h]=r[h]);if(i){s=i(r);for(var u=0;u<s.length;u++)a.call(r,s[u])&&(A[s[u]]=r[s[u]])}}return A}},{}],24:[function(t,e,r){var o=arguments[3],i=arguments[4],n=arguments[5],a=JSON.stringify;e.exports=function(t,e){for(var r,s=Object.keys(n),A=0,c=s.length;A<c;A++){var h=s[A],u=n[h].exports;if(u===t||u&&u.default===t){r=h;break}}if(!r){r=Math.floor(Math.pow(16,8)*Math.random()).toString(16);var p={};for(A=0,c=s.length;A<c;A++)p[h=s[A]]=h;i[r]=["function(require,module,exports){"+t+"(self); }",p]}var d=Math.floor(Math.pow(16,8)*Math.random()).toString(16),f={};f[r]=r,i[d]=["function(require,module,exports){var f = require("+a(r)+");(f.default ? f.default : f)(self);}",f];var l={};!function t(e){for(var r in l[e]=!0,i[e][1]){var o=i[e][1][r];l[o]||t(o)}}(d);var g="("+o+")({"+Object.keys(l).map((function(t){return a(t)+":["+i[t][0]+","+a(i[t][1])+"]"})).join(",")+"},{},["+a(d)+"])",m=window.URL||window.webkitURL||window.mozURL||window.msURL,w=new Blob([g],{type:"text/javascript"});if(e&&e.bare)return w;var v=m.createObjectURL(w),y=new Worker(v);return y.objectURL=v,y}},{}],"/index.js":[function(t,r,o){"use strict";var i=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},n=function(t,e){if(t){if("string"==typeof t)return a(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(t,e):void 0}},a=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r<e;r++)o[r]=t[r];return o},s=function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var o,i,n=[],a=!0,s=!1;try{for(r=r.call(t);!(a=(o=r.next()).done)&&(n.push(o.value),!e||n.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return n}},A=function(t){if(Array.isArray(t))return t},c=function(){return{value:u(l),destroy:function(){if(this.value.terminate(),"undefined"!=typeof window){var t=window.URL||window.webkitURL||window.mozURL||window.msURL;t&&t.revokeObjectURL&&this.value.objectURL&&t.revokeObjectURL(this.value.objectURL)}}}},h=t("object-assign"),u=t("webworkify"),p=t("./lib/mathlib"),d=t("./lib/pool"),f=t("./lib/utils"),l=t("./lib/worker"),g=t("./lib/stepper"),m=t("./lib/tiler"),w={},v=!1;try{"undefined"!=typeof navigator&&navigator.userAgent&&(v=navigator.userAgent.indexOf("Safari")>=0)}catch(t){}var y=1;"undefined"!=typeof navigator&&(y=Math.min(navigator.hardwareConcurrency||1,4));var b={tile:1024,concurrency:y,features:["js","wasm","ww"],idle:2e3,createCanvas:function(t,e){var r=document.createElement("canvas");return r.width=t,r.height=e,r}},C={quality:3,alpha:!1,unsharpAmount:0,unsharpRadius:0,unsharpThreshold:0},I=!1,_=!1,B=!1,x=!1,E=!1;function R(t){if(!e(this,R))return new R(t);this.options=h({},b,t||{});var r="lk_".concat(this.options.concurrency);this.__limit=w[r]||f.limiter(this.options.concurrency),w[r]||(w[r]=this.__limit),this.features={js:!1,wasm:!1,cib:!1,ww:!1},this.__workersPool=null,this.__requested_features=[],this.__mathlib=null}R.prototype.init=function(){var e=this;if(this.__initPromise)return this.__initPromise;if("undefined"!=typeof ImageData&&"undefined"!=typeof Uint8ClampedArray)try{new ImageData(new Uint8ClampedArray(400),10,10),I=!0}catch(t){}"undefined"!=typeof ImageBitmap&&(ImageBitmap.prototype&&ImageBitmap.prototype.close?_=!0:this.debug("ImageBitmap does not support .close(), disabled"));var r=this.options.features.slice();if(r.indexOf("all")>=0&&(r=["cib","wasm","js","ww"]),this.__requested_features=r,this.__mathlib=new p(r),r.indexOf("ww")>=0&&"undefined"!=typeof window&&"Worker"in window)try{t("webworkify")((function(){})).terminate(),this.features.ww=!0;var o="wp_".concat(JSON.stringify(this.options));w[o]?this.__workersPool=w[o]:(this.__workersPool=new d(c,this.options.idle),w[o]=this.__workersPool)}catch(t){}var i,n,a=this.__mathlib.init().then((function(t){h(e.features,t.features)}));i=_?f.cib_support(this.options.createCanvas).then((function(t){e.features.cib&&r.indexOf("cib")<0?e.debug("createImageBitmap() resize supported, but disabled by config"):r.indexOf("cib")>=0&&(e.features.cib=t)})):Promise.resolve(!1),B=f.can_use_canvas(this.options.createCanvas),n=(n=_&&I&&-1!==r.indexOf("ww")?f.worker_offscreen_canvas_support():Promise.resolve(!1)).then((function(t){x=t}));var s=f.cib_can_use_region().then((function(t){E=t}));return this.__initPromise=Promise.all([a,i,n,s]).then((function(){return e})),this.__initPromise},R.prototype.__invokeResize=function(t,e){var r=this;return e.__mathCache=e.__mathCache||{},Promise.resolve().then((function(){return r.features.ww?new Promise((function(o,i){var n=r.__workersPool.acquire();e.cancelToken&&e.cancelToken.catch((function(t){return i(t)})),n.value.onmessage=function(t){n.release(),t.data.err?i(t.data.err):o(t.data)};var a=[];t.src&&a.push(t.src.buffer),t.srcBitmap&&a.push(t.srcBitmap),n.value.postMessage({opts:t,features:r.__requested_features,preload:{wasm_nodule:r.__mathlib.__}},a)})):{data:r.__mathlib.resizeAndUnsharp(t,e.__mathCache)}}))},R.prototype.__extractTileData=function(t,e,r,o,i){if(this.features.ww&&x&&(f.isCanvas(e)||E))return this.debug("Create tile for OffscreenCanvas"),createImageBitmap(o.srcImageBitmap||e,t.x,t.y,t.width,t.height).then((function(t){return i.srcBitmap=t,i}));if(f.isCanvas(e))return o.srcCtx||(o.srcCtx=e.getContext("2d",{alpha:Boolean(r.alpha)})),this.debug("Get tile pixel data"),i.src=o.srcCtx.getImageData(t.x,t.y,t.width,t.height).data,i;this.debug("Draw tile imageBitmap/image to temporary canvas");var n=this.options.createCanvas(t.width,t.height),a=n.getContext("2d",{alpha:Boolean(r.alpha)});return a.globalCompositeOperation="copy",a.drawImage(o.srcImageBitmap||e,t.x,t.y,t.width,t.height,0,0,t.width,t.height),this.debug("Get tile pixel data"),i.src=a.getImageData(0,0,t.width,t.height).data,n.width=n.height=0,i},R.prototype.__landTileData=function(t,e,r){var o;if(this.debug("Convert raw rgba tile result to ImageData"),e.bitmap)return r.toCtx.drawImage(e.bitmap,t.toX,t.toY),null;if(I)o=new ImageData(new Uint8ClampedArray(e.data),t.toWidth,t.toHeight);else if((o=r.toCtx.createImageData(t.toWidth,t.toHeight)).data.set)o.data.set(e.data);else for(var i=o.data.length-1;i>=0;i--)o.data[i]=e.data[i];return this.debug("Draw tile"),v?r.toCtx.putImageData(o,t.toX,t.toY,t.toInnerX-t.toX,t.toInnerY-t.toY,t.toInnerWidth+1e-5,t.toInnerHeight+1e-5):r.toCtx.putImageData(o,t.toX,t.toY,t.toInnerX-t.toX,t.toInnerY-t.toY,t.toInnerWidth,t.toInnerHeight),null},R.prototype.__tileAndResize=function(t,e,r){var o=this,i={srcCtx:null,srcImageBitmap:null,isImageBitmapReused:!1,toCtx:null};return Promise.resolve().then((function(){if(i.toCtx=e.getContext("2d",{alpha:Boolean(r.alpha)}),f.isCanvas(t))return null;if(f.isImageBitmap(t))return i.srcImageBitmap=t,i.isImageBitmapReused=!0,null;if(f.isImage(t))return _?(o.debug("Decode image via createImageBitmap"),createImageBitmap(t).then((function(t){i.srcImageBitmap=t})).catch((function(t){return null}))):null;throw new Error('Pica: ".from" should be Image, Canvas or ImageBitmap')})).then((function(){var n=function(t){t.srcImageBitmap&&(t.isImageBitmapReused||t.srcImageBitmap.close(),t.srcImageBitmap=null)};if(r.canceled)return r.cancelToken;o.debug("Calculate tiles");var a=m({width:r.width,height:r.height,srcTileSize:o.options.tile,toWidth:r.toWidth,toHeight:r.toHeight,destTileBorder:r.__destTileBorder}).map((function(e){return function(e){return o.__limit((function(){if(r.canceled)return r.cancelToken;var n={width:e.width,height:e.height,toWidth:e.toWidth,toHeight:e.toHeight,scaleX:e.scaleX,scaleY:e.scaleY,offsetX:e.offsetX,offsetY:e.offsetY,quality:r.quality,alpha:r.alpha,unsharpAmount:r.unsharpAmount,unsharpRadius:r.unsharpRadius,unsharpThreshold:r.unsharpThreshold};return o.debug("Invoke resize math"),Promise.resolve(n).then((function(n){return o.__extractTileData(e,t,r,i,n)})).then((function(t){return o.debug("Invoke resize math"),o.__invokeResize(t,r)})).then((function(t){return r.canceled?r.cancelToken:(i.srcImageData=null,o.__landTileData(e,t,i))}))}))}(e)}));return o.debug("Process tiles"),Promise.all(a).then((function(){return o.debug("Finished!"),n(i),e}),(function(t){throw n(i),t}))}))},R.prototype.__processStages=function(t,e,r,o){var a=this;if(o.canceled)return o.cancelToken;var c,u,p,d=t.shift(),f=(p=2,A(u=d)||s(u,p)||n(u,p)||i()),l=f[0],g=f[1],m=0===t.length;return o=h({},o,{toWidth:l,toHeight:g,quality:m?o.quality:Math.min(1,o.quality)}),m||(c=this.options.createCanvas(l,g)),this.__tileAndResize(e,m?r:c,o).then((function(){return m?r:(o.width=l,o.height=g,a.__processStages(t,c,r,o))})).then((function(t){return c&&(c.width=c.height=0),t}))},R.prototype.__resizeViaCreateImageBitmap=function(t,e,r){var o=this,i=e.getContext("2d",{alpha:Boolean(r.alpha)});return this.debug("Resize via createImageBitmap()"),createImageBitmap(t,{resizeWidth:r.toWidth,resizeHeight:r.toHeight,resizeQuality:f.cib_quality_name(r.quality)}).then((function(t){if(r.canceled)return r.cancelToken;if(!r.unsharpAmount)return i.drawImage(t,0,0),t.close(),i=null,o.debug("Finished!"),e;o.debug("Unsharp result");var n=o.options.createCanvas(r.toWidth,r.toHeight),a=n.getContext("2d",{alpha:Boolean(r.alpha)});a.drawImage(t,0,0),t.close();var s=a.getImageData(0,0,r.toWidth,r.toHeight);return o.__mathlib.unsharp_mask(s.data,r.toWidth,r.toHeight,r.unsharpAmount,r.unsharpRadius,r.unsharpThreshold),i.putImageData(s,0,0),n.width=n.height=0,s=a=n=i=null,o.debug("Finished!"),e}))},R.prototype.resize=function(t,e,r){var o=this;this.debug("Start resize...");var i=h({},C);if(isNaN(r)?r&&(i=h(i,r)):i=h(i,{quality:r}),i.toWidth=e.width,i.toHeight=e.height,i.width=t.naturalWidth||t.width,i.height=t.naturalHeight||t.height,0===e.width||0===e.height)return Promise.reject(new Error("Invalid output size: ".concat(e.width,"x").concat(e.height)));i.unsharpRadius>2&&(i.unsharpRadius=2),i.canceled=!1,i.cancelToken&&(i.cancelToken=i.cancelToken.then((function(t){throw i.canceled=!0,t}),(function(t){throw i.canceled=!0,t})));return i.__destTileBorder=Math.ceil(Math.max(3,2.5*i.unsharpRadius|0)),this.init().then((function(){if(i.canceled)return i.cancelToken;if(o.features.cib)return o.__resizeViaCreateImageBitmap(t,e,i);if(!B){var r=new Error("Pica: cannot use getImageData on canvas, make sure fingerprinting protection isn't enabled");throw r.code="ERR_GET_IMAGE_DATA",r}var n=g(i.width,i.height,i.toWidth,i.toHeight,o.options.tile,i.__destTileBorder);return o.__processStages(n,t,e,i)}))},R.prototype.resizeBuffer=function(t){var e=this,r=h({},C,t);return this.init().then((function(){return e.__mathlib.resizeAndUnsharp(r)}))},R.prototype.toBlob=function(t,e,r){return e=e||"image/png",new Promise((function(o){if(t.toBlob)t.toBlob((function(t){return o(t)}),e,r);else if(t.convertToBlob)o(t.convertToBlob({type:e,quality:r}));else{for(var i=atob(t.toDataURL(e,r).split(",")[1]),n=i.length,a=new Uint8Array(n),s=0;s<n;s++)a[s]=i.charCodeAt(s);o(new Blob([a],{type:e}))}}))},R.prototype.debug=function(){},r.exports=R},{"./lib/mathlib":1,"./lib/pool":13,"./lib/stepper":14,"./lib/tiler":15,"./lib/utils":16,"./lib/worker":17,"object-assign":23,webworkify:24}]},{},[])("/index.js")},4148:function(t,e,r){function o(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function a(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function A(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),o.forEach((function(e){a(t,e,r[e])}))}return t}function c(t,e){return!e||"object"!==p(e)&&"function"!=typeof e?o(t):e}function h(t,e){return h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},h(t,e)}var u,p=function(t){return t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t};t.exports=(u=r(63505),function(){"use strict";var t={418:function(t){var e=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)},r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(t){o[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(t){return!1}}()?Object.assign:function(t,n){for(var a,s,A=e(t),c=1;c<arguments.length;c++){for(var h in a=Object(arguments[c]))o.call(a,h)&&(A[h]=a[h]);if(r){s=r(a);for(var u=0;u<s.length;u++)i.call(a,s[u])&&(A[s[u]]=a[s[u]])}}return A}},251:function(t,e,r){var o=function(t,e,r){var o,i={},a=null,h=null;for(o in void 0!==r&&(a=""+r),void 0!==e.key&&(a=""+e.key),void 0!==e.ref&&(h=e.ref),e)A.call(e,o)&&!c.hasOwnProperty(o)&&(i[o]=e[o]);if(t&&t.defaultProps)for(o in e=t.defaultProps)void 0===i[o]&&(i[o]=e[o]);return{$$typeof:n,type:t,key:a,ref:h,props:i,_owner:s.current}};r(418);var i=r(427),n=60103;if(e.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var a=Symbol.for;n=a("react.element"),e.Fragment=a("react.fragment")}var s=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,A=Object.prototype.hasOwnProperty,c={key:!0,ref:!0,__self:!0,__source:!0};e.jsx=o,e.jsxs=o},893:function(t,e,r){t.exports=r(251)},427:function(t){t.exports=u}},e={};function r(o){var i=e[o];if(void 0!==i)return i.exports;var n=e[o]={exports:{}};return t[o](n,n.exports,r),n.exports}r.d=function(t,e){for(var o in e)r.o(e,o)&&!r.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var a={};return function(){var t=function(t,e,r){return Math.min(Math.max(t,e),r)},e=function(t){return t&&t.width&&!isNaN(t.width)&&t.height&&!isNaN(t.height)},u=function(t,e,r){if(!t.aspect||isNaN(t.aspect))return console.warn("`crop.aspect` should be a number in order to make an aspect crop",t),A({},w,t);var o={unit:"px",x:t.x||0,y:t.y||0,width:t.width||0,height:t.height||0,aspect:t.aspect};return t.width&&(o.height=o.width/t.aspect),t.height&&(o.width=o.height*t.aspect),o.y+o.height>r&&(o.height=r-o.y,o.width=o.height*t.aspect),o.x+o.width>e&&(o.width=e-o.x,o.height=o.width/t.aspect),o},p=function(t,e,r){return"%"===t.unit?A({},w,t):{unit:"%",aspect:t.aspect,x:t.x?t.x/e*100:0,y:t.y?t.y/r*100:0,width:t.width?t.width/e*100:0,height:t.height?t.height/r*100:0}},d=function(t,e,r){return t.unit?"px"===t.unit?A({},w,t):{unit:"px",aspect:t.aspect,x:t.x?t.x*e/100:0,y:t.y?t.y*r/100:0,width:t.width?t.width*e/100:0,height:t.height?t.height*r/100:0}:(o=A({},w,t),i=null!=(i={unit:"px"})?i:{},Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(i)):function(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);r.push.apply(r,o)}return r}(Object(i)).forEach((function(t){Object.defineProperty(o,t,Object.getOwnPropertyDescriptor(i,t))})),o);var o,i},f=function(t,e,r,o){var i=d(e,r,o),n=d(t,r,o);if(!i.aspect)return i.x<0?(i.x=0,i.width+=i.x):i.x+i.width>r&&(i.width=r-i.x),i.y+i.height>o&&(i.height=o-i.y),i;var a=!1;i.x<0?(i.x=0,i.width+=i.x,i.height=i.width/i.aspect,a=!0):i.x+i.width>r&&(i.width=r-i.x,i.height=i.width/i.aspect,a=!0),a&&n.y>i.y&&(i.y=i.y+(i.height-i.height));var s=!1;return i.y+i.height>o&&(i.height=o-i.y,i.width=i.height*i.aspect,s=!0),s&&n.x>i.x&&(i.x=i.x+(i.width-i.width)),i};r.r(a),r.d(a,{Component:function(){return y},containCrop:function(){return f},default:function(){return y},makeAspectCrop:function(){return u}});var l=r(893),g=r(427);function m(t){var e,r,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t)if(Array.isArray(t))for(e=0;e<t.length;e++)t[e]&&(r=m(t[e]))&&(o&&(o+=" "),o+=r);else for(e in t)t[e]&&(o&&(o+=" "),o+=e);return o}var w={x:0,y:0,width:0,height:0,unit:"px"},v={capture:!0,passive:!1},y=function(r){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}(_,r);var a,y,b,C,I=(b=_,C=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=s(b);if(C){var r=s(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return c(this,t)});function _(){var r;return i(this,_),(r=I.call.apply(I,[this].concat(Array.prototype.slice.call(arguments)))).keysDown=new Set,r.docMoveBound=!1,r.mouseDownOnCrop=!1,r.dragStarted=!1,r.evData={clientStartX:0,clientStartY:0,cropStartWidth:0,cropStartHeight:0,cropStartX:0,cropStartY:0,xDiff:0,yDiff:0,xInversed:!1,yInversed:!1,xCrossOver:!1,yCrossOver:!1,lastYCrossover:!1,startXCrossOver:!1,startYCrossOver:!1,isResize:!0,ord:"nw"},r.componentRef=(0,g.createRef)(),r.mediaWrapperRef=(0,g.createRef)(),r.imageRef=(0,g.createRef)(),r.cropSelectRef=(0,g.createRef)(),r.state={cropIsActive:!1,newCropIsBeingDrawn:!1},r.onCropPointerDown=function(t){var e=r.props,o=e.crop,i=e.disabled,n=r.mediaDimensions,a=n.width,s=n.height,A=d(o,a,s);if(!i){t.cancelable&&t.preventDefault(),r.bindDocMove(),r.componentRef.current.focus({preventScroll:!0});var c=t.target.dataset.ord,h="nw"===c||"w"===c||"sw"===c,u="nw"===c||"n"===c||"ne"===c;r.evData={clientStartX:t.clientX,clientStartY:t.clientY,cropStartWidth:A.width,cropStartHeight:A.height,cropStartX:h?A.x+A.width:A.x,cropStartY:u?A.y+A.height:A.y,xDiff:0,yDiff:0,xInversed:h,yInversed:u,xCrossOver:h,yCrossOver:u,lastYCrossover:u,startXCrossOver:h,startYCrossOver:u,isResize:Boolean(c),ord:c||"ne"},r.mouseDownOnCrop=!0,r.setState({cropIsActive:!0})}},r.onComponentPointerDown=function(t){var o=r.props,i=o.crop,n=o.disabled,a=o.locked,s=o.keepSelection,A=o.onChange,c=o.zoom,h=void 0===c?1:c,u=o.spin,f=void 0===u?0:u,l=r.mediaWrapperRef.current.firstChild;if(t.target===l&&l.contains(t.target)&&!(n||a||s&&e(i))){t.cancelable&&t.preventDefault