1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5739],{11787:(e,t,o)=>{"use strict";var n,r=o(29662);r.canUseDOM&&(n=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),e.exports=function(e,t){if(!r.canUseDOM||t&&!("addEventListener"in document))return!1;var o="on"+e,i=o in document;if(!i){var a=document.createElement("div");a.setAttribute(o,"return;"),i="function"==typeof a[o]}return!i&&n&&"wheel"===e&&(i=document.implementation.hasFeature("Events.wheel","3.0")),i}},16711:(e,t,o)=>{"use strict";var n=o(35325),r=o(11787);function i(e){var t=0,o=0,n=0,r=0;return"detail"in e&&(o=e.detail),"wheelDelta"in e&&(o=-e.wheelDelta/120),"wheelDeltaY"in e&&(o=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=o,o=0),n=10*t,r=10*o,"deltaY"in e&&(r=e.deltaY),"deltaX"in e&&(n=e.deltaX),(n||r)&&e.deltaMode&&(1==e.deltaMode?(n*=40,r*=40):(n*=800,r*=800)),n&&!t&&(t=n<1?-1:1),r&&!o&&(o=r<1?-1:1),{spinX:t,spinY:o,pixelX:n,pixelY:r}}i.getEventType=function(){return n.firefox()?"DOMMouseScroll":r("wheel")?"wheel":"mousewheel"},e.exports=i},29662:e=>{"use strict";var t=!!("undefined"!=typeof window&&window.document&&window.document.createElement);e.exports={canUseDOM:t,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:t&&!!(window.addEventListener||window.attachEvent),canUseViewport:t&&!!window.screen,isInWorker:!t}},35325:e=>{var t,o,n,r,i,a,s,c,h,p,u,d,l,f,m,v=!1;function g(){if(!v){v=!0;var e=navigator.userAgent,g=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Ice
1weasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),w=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(d=/\b(iPhone|iP[ao]d)/.exec(e),l=/\b(iP[ao]d)/.exec(e),p=/Android/i.exec(e),f=/FBAN\/\w+;/i.exec(e),m=/Mobile/i.exec(e),u=!!/Win64/.exec(e),g){(t=g[1]?parseFloat(g[1]):g[5]?parseFloat(g[5]):NaN)&&document&&document.documentMode&&(t=document.documentMode);var C=/(?:Trident\/(\d+.\d+))/.exec(e);a=C?parseFloat(C[1])+4:t,o=g[2]?parseFloat(g[2]):NaN,n=g[3]?parseFloat(g[3]):NaN,i=(r=g[4]?parseFloat(g[4]):NaN)&&(g=/(?:Chrome\/(\d+\.\d+))/.exec(e))&&g[1]?parseFloat(g[1]):NaN}else t=o=n=i=r=NaN;if(w){if(w[1]){var y=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);s=!y||parseFloat(y[1].replace("_","."))}else s=!1;c=!!w[2],h=!!w[3]}else s=c=h=!1}}var w={ie:function(){return g()||t},ieCompatibilityMode:function(){return g()||a>t},ie64:function(){return w.ie()&&u},firefox:function(){return g()||o},opera:function(){return g()||n},webkit:function(){return g()||r},safari:function(){return w.webkit()},chrome:function(){return g()||i},windows:function(){return g()||c},osx:function(){return g()||s},linux:function(){return g()||h},iphone:function(){return g()||d},mobile:function(){return g()||d||l||p||m},nativeApp:function(){return g()||f},android:function(){return g()||p},ipad:function(){return g()||l}};e.exports=w},55739:(e,t,o)=>{"use strict";o.d(t,{Ay:()=>w});var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(e,t)},r=function(){return(r=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};Object.create;Object.create,"function"==typeof SuppressedError&&SuppressedError;var i=o(14232),a=o(76966),s=o.n(a);function c(e,t,o,n,r){void 0===r&&(r=0);var i=m(t.width,t.height,r),a=i.width,s=i.height;return{x:h(e.x,a,o.width,n),y:h(e.y,s,o.height,n)}}function h(e,t,o,n){var r=t*n/2-o/2;return v(e,-r,r)}function p(e,t){return Math.sqrt(Math.pow(e.y-t.y,2)+Math.pow(e.x-t.x,2))}function u(e,t){return 180*Math.atan2(t.y-e.y,t.x-e.x)/Math.PI}function d(e,t){return Math.min(e,Math.max(0,t))}function l(e,t){return t}function f(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function m(e,t,o){var n=o*Math.PI/180;return{width:Math.abs(Math.cos(n)*e)+Math.abs(Math.sin(n)*t),height:Math.abs(Math.sin(n)*e)+Math.abs(Math.cos(n)*t)}}function v(e,t,o){return Math.min(Math.max(e,t),o)}function g(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(function(e){return"string"==typeof e&&!!(e.length>0)}).join(" ").trim()}var w=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=o}function o(){var t=null!==e&&e.apply(this,arguments)||this;return t.imageRef=i.createRef(),t.videoRef=i.createRef(),t.containerPosition={x:0,y:0},t.containerRef=null,t.styleRef=null,t.containerRect=null,t.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},t.dragStartPosition={x:0,y:0},t.dragStartCrop={x:0,y:0},t.gestureZoomStart=0,t.gestureRotationStart=0,t.isTouching=!1,t.lastPinchDistance=0,t.lastPinchRotation=0,t.rafDragTimeout=null,t.rafPinchTimeout=null,t.wheelTimer=null,t.currentDoc="undefined"!=typeof document?document:null,t.currentWindow="undefined"!=typeof window?window:null,t.resizeObserver=null,t.state={cropSize:null,hasWheelJustStarted:!1,mediaObjectFit:void 0},t.initResizeObserver=function(){if(void 0!==window.ResizeObserver&&t.containerRef){var e=!0;t.resizeObserver=new window.ResizeObserver(function(o){if(e){e=!1;return}t.computeSizes()}),t.resizeObserver.observe(t.containerRef)}},t.preventZoomSafari=function(e){return e.preventDefault()},t.cleanEvents=function(){t.currentDoc&&(t.currentDoc.removeEventListener("mousemove",t.onMouseMove),t.currentDoc.removeEventListener("mouseup",t.onDragStopped),t.currentDoc.removeEventListener("touchmove",t.onTouchMove),t.currentDoc.removeEventListener("touchend",t.onDragStopped),t.currentDoc.removeEventListener("gesturemove",t.onGestureMove),t.currentDoc.removeEventListener("gestureend",t.onGestureEnd),t.currentDoc.removeEventListener("scroll",t.onScroll))},t.clearScrollEvent=function(){t.containerRef&&t.containerRef.removeEventListener("wheel",t.onWheel),t.wheelTimer&&clearTimeout(t.wheelTimer)},t.onMediaLoad=function(){var e=t.computeSizes();e&&(t.emitCropData(),t.setInitialCrop(e)),t.props.onMediaLoaded&&t.props.onMediaLoaded(t.mediaSize)},t.setInitialCrop=function(e){if(t.props.initialCroppedAreaPercentages){var o,n,r,i,a,s,c,h=(o=t.props.initialCroppedAreaPercentages,n=t.mediaSize,r=t.props.rotation,i=t.props.minZoom,a=t.props.maxZoom,s=m(n.width,n.height,r),{crop:{x:(c=v(e.width/s.width*(100/o.width),i,a))*s.width/2-e.width/2-s.width*c*(o.x/100),y:c*s.height/2-e.height/2-s.height*c*(o.y/100)},zoom:c}
1),p=h.crop,u=h.zoom;t.props.onCropChange(p),t.props.onZoomChange&&t.props.onZoomChange(u)}else if(t.props.initialCroppedAreaPixels){var d,l,f,g,w,C,y,S,R,x=(d=t.props.initialCroppedAreaPixels,l=t.mediaSize,f=t.props.rotation,g=t.props.minZoom,w=t.props.maxZoom,void 0===f&&(f=0),C=m(l.naturalWidth,l.naturalHeight,f),S=v((y=l.width>l.height?l.width/l.naturalWidth:l.height/l.naturalHeight,e.height>e.width?e.height/(d.height*y):e.width/(d.width*y)),g,w),R=e.height>e.width?e.height/d.height:e.width/d.width,{crop:{x:((C.width-d.width)/2-d.x)*R,y:((C.height-d.height)/2-d.y)*R},zoom:S}),p=x.crop,u=x.zoom;t.props.onCropChange(p),t.props.onZoomChange&&t.props.onZoomChange(u)}},t.computeSizes=function(){var e,o,n,i,a,s,c=t.imageRef.current||t.videoRef.current;if(c&&t.containerRef){t.containerRect=t.containerRef.getBoundingClientRect(),t.saveContainerPosition();var h,p,u,d,l,f,v,g,w,C,y,S=t.containerRect.width/t.containerRect.height,R=(null==(e=t.imageRef.current)?void 0:e.naturalWidth)||(null==(o=t.videoRef.current)?void 0:o.videoWidth)||0,x=(null==(n=t.imageRef.current)?void 0:n.naturalHeight)||(null==(i=t.videoRef.current)?void 0:i.videoHeight)||0,z=c.offsetWidth<R||c.offsetHeight<x,b=R/x,P=void 0;if(z)switch(t.state.mediaObjectFit){default:case"contain":P=S>b?{width:t.containerRect.height*b,height:t.containerRect.height}:{width:t.containerRect.width,height:t.containerRect.width/b};break;case"horizontal-cover":P={width:t.containerRect.width,height:t.containerRect.width/b};break;case"vertical-cover":P={width:t.containerRect.height*b,height:t.containerRect.height}}else P={width:c.offsetWidth,height:c.offsetHeight};t.mediaSize=r(r({},P),{naturalWidth:R,naturalHeight:x}),t.props.setMediaSize&&t.props.setMediaSize(t.mediaSize);var D=t.props.cropSize?t.props.cropSize:(h=t.mediaSize.width,p=t.mediaSize.height,u=t.containerRect.width,d=t.containerRect.height,l=t.props.aspect,void 0===(f=t.props.rotation)&&(f=0),g=(v=m(h,p,f)).width,w=v.height,(C=Math.min(g,u))>(y=Math.min(w,d))*l?{width:y*l,height:y}:{width:C,height:C/l});return((null==(a=t.state.cropSize)?void 0:a.height)!==D.height||(null==(s=t.state.cropSize)?void 0:s.width)!==D.width)&&t.props.onCropSizeChange&&t.props.onCropSizeChange(D),t.setState({cropSize:D},t.recomputeCropPosition),t.props.setCropSize&&t.props.setCropSize(D),D}},t.saveContainerPosition=function(){if(t.containerRef){var e=t.containerRef.getBoundingClientRect();t.containerPosition={x:e.left,y:e.top}}},t.onMouseDown=function(e){t.currentDoc&&(e.preventDefault(),t.currentDoc.addEventListener("mousemove",t.onMouseMove),t.currentDoc.addEventListener("mouseup",t.onDragStopped),t.saveContainerPosition(),t.onDragStart(o.getMousePoint(e)))},t.onMouseMove=function(e){return t.onDrag(o.getMousePoint(e))},t.onScroll=function(e){t.currentDoc&&(e.preventDefault(),t.saveContainerPosition())},t.onTouchStart=function(e){t.currentDoc&&(t.isTouching=!0,(!t.props.onTouchRequest||t.props.onTouchRequest(e))&&(t.currentDoc.addEventListener("touchmove",t.onTouchMove,{passive:!1}),t.currentDoc.addEventListener("touchend",t.onDragStopped),t.saveContainerPosition(),2===e.touches.length?t.onPinchStart(e):1===e.touches.length&&t.onDragStart(o.getTouchPoint(e.touches[0]))))},t.onTouchMove=function(e){e.preventDefault(),2===e.touches.length?t.onPinchMove(e):1===e.touches.length&&t.onDrag(o.getTouchPoint(e.touches[0]))},t.onGestureStart=function(e){t.currentDoc&&(e.preventDefault(),t.currentDoc.addEventListener("gesturechange",t.onGestureMove),t.currentDoc.addEventListener("gestureend",t.onGestureEnd),t.gestureZoomStart=t.props.zoom,t.gestureRotationStart=t.props.rotation)},t.onGestureMove=function(e){if(e.preventDefault(),!t.isTouching){var n=o.getMousePoint(e),r=t.gestureZoomStart-1+e.scale;if(t.setNewZoom(r,n,{shouldUpdatePosition:!0}),t.props.onRotationChange){var i=t.gestureRotationStart+e.rotation;t.props.onRotationChange(i)}}},t.onGestureEnd=function(e){t.cleanEvents()},t.onDragStart=function(e){var o,n;t.dragStartPosition={x:e.x,y:e.y},t.dragStartCrop=r({},t.props.crop),null==(n=(o=t.props).onInteractionStart)||n.call(o)},t.onDrag=function(e){var o=e.x,n=e.y;t.currentWindow&&(t.rafDragTimeout&&t.currentWindow.cancelAnimationFrame(t.rafDragTimeout),t.rafDragTimeout=t.currentWindow.requestAnimationFrame(function(){if(t.state.cropSize&&void 0!==o&&void 0!==n){var e=o-t.dragStartPosition.x,r=n-t.dragStartPosition.y,i={x:t.dragStartCrop.x+e,y:t.dragStartCrop.y+r},a=t.props.restrictPosition?c(i,t.mediaSize,t.state.cropSize,t.props.zoom,t.props.rotation):i;t.props.onCropChange(a)}}))},t.onDragStopped=function(){var e,o;t.isTouching=!1,t.cleanEvents(),t.emitCropData(),null==(o=(e=t.props).onInteractionEnd)||o.call(e)},t.onWheel=function(e){if(t.currentWindow&&(!t.props.onWheelRequest||t.props.onWheelRequest(e))){e.preventDefault();var n=o.getMousePoint(e),r=s()(e).pixelY,i=t.props.zoom-r*t.props.zoomSpeed/200;t.setNewZoom(i,n,{shouldUpdatePosition:!0}),t.state.hasWheelJustStarted||t.setState({hasWheelJustStarted:!0},function(){var e,o;return null==(o=(e=t.props).onInteractionStart)?void 0:o.call(e)}),t.wheelTimer&&clearTimeout(t.wheelTimer),t.wheelTimer=t.currentWindow.setTimeout(function(){return t.setState({hasWheelJustStarted:!1},function(){var e,o;return null==(o=(e=t.props).onInteractionEnd)?void 0:o.call(e)})},250)}},t.getPointOnContainer=function(e,o){var n=e.x,r=e.y;if(!t.containerRect)throw Error("The Cropper is not mounted");return{x:t.containerRect.width/2-(n-o.x),y:t.containerRect.height/2-(r-o.y)}},t.getPointOnMedia=function(e){var o=e.x,n=e.y,r=t.props,i=r.crop,a=r.zoom;return{x:(o+i.x)/a,y:(n+i.y)/a}},t.setNewZoom=function(e,o,n){var r=(void 0===n?{}:n).shouldUpdatePosition;if(t.state.cropSize&&t.props.onZoomChange){var i=v(e,t.props.minZoom,t.props.maxZoom);if(void 0===r||r){var a=t.getPointOnContainer(o,t.containerPosition),s=t.getPointOnMedia(a),h={x:s.x*i-a.x,y:s.y*i-a.y},p=t.props.restrictPosition?c(h,t.mediaSize,t.state.cropSize,i,t.props.rotation):h;t.props.onCropChange(p)}t.props.onZoomChange(i)}},t.getCropData=function(){var e,o,n,i,a,s,h,p,u,f,v,g,w,C,y;return t.state.cropSize?(e=t.props.restrictPosition?c(t.props.crop,t.mediaSize,t.state.cropSize,t.props.zoom,t.props.rotation):t.props.crop,o=t.mediaSize,n=t.state.cropSize,i=t.getAspect(),a=t.props.zoom,s=t.props.rotation,h=t.props.restrictPosition,void 0===s&&(s=0),void 0===h&&(h=!0),p=h?d:l,u=m(o.width,o.height,s),f=m(o.naturalWi
1dth,o.naturalHeight,s),v={x:p(100,((u.width-n.width/a)/2-e.x/a)/u.width*100),y:p(100,((u.height-n.height/a)/2-e.y/a)/u.height*100),width:p(100,n.width/u.width*100/a),height:p(100,n.height/u.height*100/a)},g=Math.round(p(f.width,v.width*f.width/100)),w=Math.round(p(f.height,v.height*f.height/100)),C=f.width>=f.height*i?{width:Math.round(w*i),height:w}:{width:g,height:Math.round(g/i)},y=r(r({},C),{x:Math.round(p(f.width-C.width,v.x*f.width/100)),y:Math.round(p(f.height-C.height,v.y*f.height/100))}),{croppedAreaPercentages:v,croppedAreaPixels:y}):null},t.emitCropData=function(){var e=t.getCropData();if(e){var o=e.croppedAreaPercentages,n=e.croppedAreaPixels;t.props.onCropComplete&&t.props.onCropComplete(o,n),t.props.onCropAreaChange&&t.props.onCropAreaChange(o,n)}},t.emitCropAreaChange=function(){var e=t.getCropData();if(e){var o=e.croppedAreaPercentages,n=e.croppedAreaPixels;t.props.onCropAreaChange&&t.props.onCropAreaChange(o,n)}},t.recomputeCropPosition=function(){if(t.state.cropSize){var e=t.props.restrictPosition?c(t.props.crop,t.mediaSize,t.state.cropSize,t.props.zoom,t.props.rotation):t.props.crop;t.props.onCropChange(e),t.emitCropData()}},t}return n(o,e),o.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t),o.prototype.componentDidMount=function(){this.currentDoc&&this.currentWindow&&(this.containerRef&&(this.containerRef.ownerDocument&&(this.currentDoc=this.containerRef.ownerDocument),this.currentDoc.defaultView&&(this.currentWindow=this.currentDoc.defaultView),this.initResizeObserver(),void 0===window.ResizeObserver&&this.currentWindow.addEventListener("resize",this.computeSizes),this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.onGestureStart)),this.currentDoc.addEventListener("scroll",this.onScroll),this.props.disableAutomaticStylesInjection||(this.styleRef=this.currentDoc.createElement("style"),this.styleRef.setAttribute("type","text/css"),this.props.nonce&&this.styleRef.setAttribute("nonce",this.props.nonce),this.styleRef.innerHTML=".reactEasyCrop_Container {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n overflow: hidden;\n user-select: none;\n touch-action: none;\n cursor: move;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.reactEasyCrop_Image,\n.reactEasyCrop_Video {\n will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */\n}\n\n.reactEasyCrop_Contain {\n max-width: 100%;\n max-height: 100%;\n margin: auto;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n}\n.reactEasyCrop_Cover_Horizontal {\n width: 100%;\n height: auto;\n}\n.reactEasyCrop_Cover_Vertical {\n width: auto;\n height: 100%;\n}\n\n.reactEasyCrop_CropArea {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n border: 1px solid rgba(255, 255, 255, 0.5);\n box-sizing: border-box;\n box-shadow: 0 0 0 9999em;\n color: rgba(0, 0, 0, 0.5);\n overflow: hidden;\n}\n\n.reactEasyCrop_CropAreaRound {\n border-radius: 50%;\n}\n\n.reactEasyCrop_CropAreaGrid::before {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 0;\n bottom: 0;\n left: 33.33%;\n right: 33.33%;\n border-top: 0;\n border-bottom: 0;\n}\n\n.reactEasyCrop_CropAreaGrid::after {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 33.33%;\n bottom: 33.33%;\n left: 0;\n right: 0;\n border-left: 0;\n border-right: 0;\n}\n",this.currentDoc.head.appendChild(this.styleRef)),this.imageRef.current&&this.imageRef.current.complete&&this.onMediaLoad(),this.props.setImageRef&&this.props.setImageRef(this.imageRef),this.props.setVideoRef&&this.props.setVideoRef(this.videoRef))},o.prototype.componentWillUnmount=function(){var e,t;this.currentDoc&&this.currentWindow&&(void 0===window.ResizeObserver&&this.currentWindow.removeEventListener("resize",this.computeSizes),null==(e=this.resizeObserver)||e.disconnect(),this.containerRef&&this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.styleRef&&(null==(t=this.styleRef.parentNode)||t.removeChild(this.styleRef)),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent())},o.prototype.componentDidUpdate=function(e){e.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):e.aspect!==this.props.aspect||e.objectFit!==this.props.objectFit?this.computeSizes():e.zoom!==this.props.zoom?this.recomputeCropPosition():(null==(t=e.cropSize)?void 0:t.height)!==(null==(o=this.props.cropSize)?void 0:o.height)||(null==(n=e.cropSize)?void 0:n.width)!==(null==(r=this.props.cropSize)?void 0:r.width)?this.computeSizes():((null==(i=e.crop)?void 0:i.x)!==(null==(a=this.props.crop)?void 0:a.x)||(null==(s=e.crop)?void 0:s.y)!==(null==(c=this.props.crop)?void 0:c.y))&&this.emitCropAreaChange(),e.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}):this.clearScrollEvent()),e.video!==this.props.video&&(null==(h=this.videoRef.current)||h.load());var t,o,n,r,i,a,s,c,h,p=this.getObjectFit();p!==this.state.mediaObjectFit&&this.setState({mediaObjectFit:p},this.computeSizes)},o.prototype.getAspect=function(){var e=this.props,t=e.cropSize,o=e.aspect;return t?t.width/t.height:o},o.prototype.getObjectFit=function(){var e,t,o,n;if("cover"===this.props.objectFit){if((this.imageRef.current||this.videoRef.current)&&this.containerRef){this.containerRect=this.containerRef.getBoundingClientRect();var r=this.containerRect.width/this.containerRect.height;
1return((null==(e=this.imageRef.current)?void 0:e.naturalWidth)||(null==(t=this.videoRef.current)?void 0:t.videoWidth)||0)/((null==(o=this.imageRef.current)?void 0:o.naturalHeight)||(null==(n=this.videoRef.current)?void 0:n.videoHeight)||0)<r?"horizontal-cover":"vertical-cover"}return"horizontal-cover"}return this.props.objectFit},o.prototype.onPinchStart=function(e){var t=o.getTouchPoint(e.touches[0]),n=o.getTouchPoint(e.touches[1]);this.lastPinchDistance=p(t,n),this.lastPinchRotation=u(t,n),this.onDragStart(f(t,n))},o.prototype.onPinchMove=function(e){var t=this;if(this.currentDoc&&this.currentWindow){var n=o.getTouchPoint(e.touches[0]),r=o.getTouchPoint(e.touches[1]),i=f(n,r);this.onDrag(i),this.rafPinchTimeout&&this.currentWindow.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=this.currentWindow.requestAnimationFrame(function(){var e=p(n,r),o=t.props.zoom*(e/t.lastPinchDistance);t.setNewZoom(o,i,{shouldUpdatePosition:!1}),t.lastPinchDistance=e;var a=u(n,r),s=t.props.rotation+(a-t.lastPinchRotation);t.props.onRotationChange&&t.props.onRotationChange(s),t.lastPinchRotation=a})}},o.prototype.render=function(){var e,t=this,o=this.props,n=o.image,a=o.video,s=o.mediaProps,c=o.transform,h=o.crop,p=h.x,u=h.y,d=o.rotation,l=o.zoom,f=o.cropShape,m=o.showGrid,v=o.style,w=v.containerStyle,C=v.cropAreaStyle,y=v.mediaStyle,S=o.classes,R=S.containerClassName,x=S.cropAreaClassName,z=S.mediaClassName,b=null!=(e=this.state.mediaObjectFit)?e:this.getObjectFit();return i.createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(e){return t.containerRef=e},"data-testid":"container",style:w,className:g("reactEasyCrop_Container",R)},n?i.createElement("img",r({alt:"",className:g("reactEasyCrop_Image","contain"===b&&"reactEasyCrop_Contain","horizontal-cover"===b&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===b&&"reactEasyCrop_Cover_Vertical",z)},s,{src:n,ref:this.imageRef,style:r(r({},y),{transform:c||"translate(".concat(p,"px, ").concat(u,"px) rotate(").concat(d,"deg) scale(").concat(l,")")}),onLoad:this.onMediaLoad})):a&&i.createElement("video",r({autoPlay:!0,playsInline:!0,loop:!0,muted:!0,className:g("reactEasyCrop_Video","contain"===b&&"reactEasyCrop_Contain","horizontal-cover"===b&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===b&&"reactEasyCrop_Cover_Vertical",z)},s,{ref:this.videoRef,onLoadedMetadata:this.onMediaLoad,style:r(r({},y),{transform:c||"translate(".concat(p,"px, ").concat(u,"px) rotate(").concat(d,"deg) scale(").concat(l,")")}),controls:!1}),(Array.isArray(a)?a:[{src:a}]).map(function(e){return i.createElement("source",r({key:e.src},e))})),this.state.cropSize&&i.createElement("div",{style:r(r({},C),{width:this.state.cropSize.width,height:this.state.cropSize.height}),"data-testid":"cropper",className:g("reactEasyCrop_CropArea","round"===f&&"reactEasyCrop_CropAreaRound",m&&"reactEasyCrop_CropAreaGrid",x)}))},o.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:3,minZoom:1,cropShape:"rect",objectFit:"contain",showGrid:!0,style:{},classes:{},mediaProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0},o.getMousePoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},o.getTouchPoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},o}(i.Component)},76966:(e,t,o)=>{e.exports=o(16711)}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.