PageSourceSearch

https://claudecommunity.com.au/_next/static/chunks/1921-503074908a69249c.js

js claudecommunity.com.au collected 2026-10-05 08:54:00 UTC 25,694 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1921],{6296:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});let r=(0,o(78340).A)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},9955:e=>{"use strict";var t=!!("u">typeof window&&window.document&&window.document.createElement);e.exports={canUseDOM:t,canUseWorkers:"u">typeof Worker,canUseEventListeners:t&&!!(window.addEventListener||window.attachEvent),canUseViewport:t&&!!window.screen,isInWorker:!t}},22651:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});let r=(0,o(78340).A)("zoom-in",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]])},29752:(e,t,o)=>{"use strict";o.d(t,{Ay:()=>g});var r=function(e,t){return(r=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)},n=function(){return(n=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var n in t=arguments[o])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)},i=("function"==typeof SuppressedError&&SuppressedError,o(12115)),a=o(63161);function s(e,t,o,r,n){void 0===n&&(n=0);var i=f(t.width,t.height,n),a=i.width,s=i.height;return{x:c(e.x,a,o.width,r),y:c(e.y,s,o.height,r)}}function c(e,t,o,r){var n=Math.abs(t*r/2-o/2);return m(e,-n,n)}function p(e,t){return Math.sqrt(Math.pow(e.y-t.y,2)+Math.pow(e.x-t.x,2))}function h(e,t){return 180*Math.atan2(t.y-e.y,t.x-e.x)/Math.PI}function u(e,t){return Math.min(e,Math.max(0,t))}function d(e,t){return t}function l(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function f(e,t,o){var r=o*Math.PI/180;return{width:Math.abs(Math.cos(r)*e)+Math.abs(Math.sin(r)*t),height:Math.abs(Math.sin(r)*e)+Math.abs(Math.cos(r)*t)}}function m(e,t,o){return Math.min(Math.max(e,t),o)}function v(){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 g=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.cropperRef=i.createRef(),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="u">typeof document?document:null,t.currentWindow="u">typeof window?window:null,t.resizeObserver=null,t.previousCropSize=null,t.isInitialized=!1,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("gesturechange",t.onGestureChange),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.previousCropSize=e,t.emitCropData(),t.setInitialCrop(e),t.isInitialized=!0),t.props.onMediaLoaded&&t.props.onMediaLoaded(t.mediaSize)},t.setInitialCrop=function(e){if(t.props.initialCroppedAreaPercentages){var o,r,n,i,a,s,c,p=(o=t.props.initialCroppedAreaPercentages,r=t.mediaSize,n=t.props.rotation,i=t.props.minZoom,a=t.props.maxZoom,s=f(r.width,r.height,n),{crop:{x:(c=m(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}),h=p.crop,u=p.zoom;t.props.onCropChange(h),t.props.onZoomChange&&t.props.onZoomChange(u)}else if(t.props.initialCroppedAreaPixels){var d,l,v,g,w,y,C,S,z,x=(d=t.props.initialCroppedAreaPixels,l=t.mediaSize,v=t.props.rotation,g=t.props.minZoom,w=t.props.maxZoom,void 0===v&&(v=0),y=f(l.naturalWi
1dth,l.naturalHeight,v),S=m((C=l.width>l.height?l.width/l.naturalWidth:l.height/l.naturalHeight,e.height>e.width?e.height/(d.height*C):e.width/(d.width*C)),g,w),z=e.height>e.width?e.height/d.height:e.width/d.width,{crop:{x:((y.width-d.width)/2-d.x)*z,y:((y.height-d.height)/2-d.y)*z},zoom:S}),h=x.crop,u=x.zoom;t.props.onCropChange(h),t.props.onZoomChange&&t.props.onZoomChange(u)}},t.computeSizes=function(){var e,o,r,i,a,s,c=t.imageRef.current||t.videoRef.current;if(c&&t.containerRef){t.containerRect=t.containerRef.getBoundingClientRect(),t.saveContainerPosition();var p,h,u,d,l,m,v,g,w,y,C,S=t.containerRect.width/t.containerRect.height,z=(null==(e=t.imageRef.current)?void 0:e.naturalWidth)||(null==(o=t.videoRef.current)?void 0:o.videoWidth)||0,x=(null==(r=t.imageRef.current)?void 0:r.naturalHeight)||(null==(i=t.videoRef.current)?void 0:i.videoHeight)||0,R=c.offsetWidth<z||c.offsetHeight<x,b=z/x,D=void 0;if(R)switch(t.state.mediaObjectFit){default:case"contain":D=S>b?{width:t.containerRect.height*b,height:t.containerRect.height}:{width:t.containerRect.width,height:t.containerRect.width/b};break;case"horizontal-cover":D={width:t.containerRect.width,height:t.containerRect.width/b};break;case"vertical-cover":D={width:t.containerRect.height*b,height:t.containerRect.height}}else D={width:c.offsetWidth,height:c.offsetHeight};t.mediaSize=n(n({},D),{naturalWidth:z,naturalHeight:x}),t.props.setMediaSize&&t.props.setMediaSize(t.mediaSize);var P=t.props.cropSize?t.props.cropSize:(p=t.mediaSize.width,h=t.mediaSize.height,u=t.containerRect.width,d=t.containerRect.height,l=t.props.aspect,void 0===(m=t.props.rotation)&&(m=0),g=(v=f(p,h,m)).width,w=v.height,(y=Math.min(g,u))>(C=Math.min(w,d))*l?{width:C*l,height:C}:{width:y,height:y/l});return((null==(a=t.state.cropSize)?void 0:a.height)!==P.height||(null==(s=t.state.cropSize)?void 0:s.width)!==P.width)&&t.props.onCropSizeChange&&t.props.onCropSizeChange(P),t.setState({cropSize:P},t.recomputeCropPosition),t.props.setCropSize&&t.props.setCropSize(P),P}},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.onGestureChange),t.currentDoc.addEventListener("gestureend",t.onGestureEnd),t.gestureZoomStart=t.props.zoom,t.gestureRotationStart=t.props.rotation)},t.onGestureChange=function(e){if(e.preventDefault(),!t.isTouching){var r=o.getMousePoint(e),n=t.gestureZoomStart-1+e.scale;if(t.setNewZoom(n,r,{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,r;t.dragStartPosition={x:e.x,y:e.y},t.dragStartCrop=n({},t.props.crop),null==(r=(o=t.props).onInteractionStart)||r.call(o)},t.onDrag=function(e){var o=e.x,r=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!==r){var e=o-t.dragStartPosition.x,n=r-t.dragStartPosition.y,i={x:t.dragStartCrop.x+e,y:t.dragStartCrop.y+n},a=t.props.restrictPosition?s(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 r=o.getMousePoint(e),n=a(e).pixelY,i=t.props.zoom-n*t.props.zoomSpeed/200;t.setNewZoom(i,r,{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 r=e.x,n=e.y;if(!t.containerRect)throw Error("The Cropper is not mounted");return{x:t.containerRect.width/2-(r-o.x),y:t.containerRect.height/2-(n-o.y)}},t.getPointOnMedia=function(e){var o=e.x,r=e.y,n=t.props,i=n.crop,a=n.zoom;return{x:(o+i.x)/a,y:(r+i.y)/a}},t.setNewZoom=function(e,o,r){var n=(void 0===r?{}:r).shouldUpdatePosition;if(t.state.cropSize&&t.props.onZoomChange){var i=m(e,t.props.minZoom,t.props.maxZoom);if(void 0===n||n){var a=t.getPointOnContainer(o,t.containerPosition),c=t.getPointOnMedia(a),p={x:c.x*i-a.x,y:c.y*i-a.y},h=t.props.restrictPosition?s(p,t.mediaSize,t.state.cropSize,i,t.props.rotation):p;t.props.onCropChange(h)}t.props.onZoomChange(i)}},t.getCropData=function(){var e,o,r,i,a,c,p,h,l,m,v,g,w,y,C;return t.state.cropSize?(e=t.props.restrictPosition?s(t.props.crop,t.mediaSize,t.state.cropSize,t.props.zoom,t.props.rotation):t.props.crop,o=t.mediaSize,r=t.state.cropSize,i=t.getAspect(),a=t.props.zoom,c=t.props.rotation,p=t.props.restrictPosition,void 0===c&&(c=0),void 0===p&&(p=!0),h=p?u:d,l=f(o.width,o.height,c),m=f(o.naturalWi
1dth,o.naturalHeight,c),v={x:h(100,((l.width-r.width/a)/2-e.x/a)/l.width*100),y:h(100,((l.height-r.height/a)/2-e.y/a)/l.height*100),width:h(100,r.width/l.width*100/a),height:h(100,r.height/l.height*100/a)},g=Math.round(h(m.width,v.width*m.width/100)),w=Math.round(h(m.height,v.height*m.height/100)),y=m.width>=m.height*i?{width:Math.round(w*i),height:w}:{width:g,height:Math.round(g/i)},C=n(n({},y),{x:Math.round(h(m.width-y.width,v.x*m.width/100)),y:Math.round(h(m.height-y.height,v.y*m.height/100))}),{croppedAreaPercentages:v,croppedAreaPixels:C}):null},t.emitCropData=function(){var e=t.getCropData();if(e){var o=e.croppedAreaPercentages,r=e.croppedAreaPixels;t.props.onCropComplete&&t.props.onCropComplete(o,r),t.props.onCropAreaChange&&t.props.onCropAreaChange(o,r)}},t.emitCropAreaChange=function(){var e=t.getCropData();if(e){var o=e.croppedAreaPercentages,r=e.croppedAreaPixels;t.props.onCropAreaChange&&t.props.onCropAreaChange(o,r)}},t.recomputeCropPosition=function(){if(t.state.cropSize){var e,o,r=t.props.crop;if(t.isInitialized&&(null==(e=t.previousCropSize)?void 0:e.width)&&(null==(o=t.previousCropSize)?void 0:o.height)&&(Math.abs(t.previousCropSize.width-t.state.cropSize.width)>1e-6||Math.abs(t.previousCropSize.height-t.state.cropSize.height)>1e-6)){var n=t.state.cropSize.width/t.previousCropSize.width,i=t.state.cropSize.height/t.previousCropSize.height;r={x:t.props.crop.x*n,y:t.props.crop.y*i}}var a=t.props.restrictPosition?s(r,t.mediaSize,t.state.cropSize,t.props.zoom,t.props.rotation):r;t.previousCropSize=t.state.cropSize,t.props.onCropChange(a),t.emitCropData()}},t.onKeyDown=function(e){var o,r,i=t.props,a=i.crop,c=i.onCropChange,p=i.keyboardStep,h=i.zoom,u=i.rotation,d=p;if(t.state.cropSize){e.shiftKey&&(d*=.2);var l=n({},a);switch(e.key){case"ArrowUp":l.y-=d,e.preventDefault();break;case"ArrowDown":l.y+=d,e.preventDefault();break;case"ArrowLeft":l.x-=d,e.preventDefault();break;case"ArrowRight":l.x+=d,e.preventDefault();break;default:return}t.props.restrictPosition&&(l=s(l,t.mediaSize,t.state.cropSize,h,u)),e.repeat||null==(r=(o=t.props).onInteractionStart)||r.call(o),c(l)}},t.onKeyUp=function(e){var o,r;switch(e.key){case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":e.preventDefault();break;default:return}t.emitCropData(),null==(r=(o=t.props).onInteractionEnd)||r.call(o)},t}return r(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}
1\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),this.props.setCropperRef&&this.props.setCropperRef(this.cropperRef))},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==(r=e.cropSize)?void 0:r.width)!==(null==(n=this.props.cropSize)?void 0:n.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==(p=this.videoRef.current)||p.load());var t,o,r,n,i,a,s,c,p,h=this.getObjectFit();h!==this.state.mediaObjectFit&&this.setState({mediaObjectFit:h},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,r;if("cover"===this.props.objectFit){if((this.imageRef.current||this.videoRef.current)&&this.containerRef){this.containerRect=this.containerRef.getBoundingClientRect();var n=this.containerRect.width/this.containerRect.height;return((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==(r=this.videoRef.current)?void 0:r.videoHeight)||0)<n?"horizontal-cover":"vertical-cover"}return"horizontal-cover"}return this.props.objectFit},o.prototype.onPinchStart=function(e){var t=o.getTouchPoint(e.touches[0]),r=o.getTouchPoint(e.touches[1]);this.lastPinchDistance=p(t,r),this.lastPinchRotation=h(t,r),this.onDragStart(l(t,r))},o.prototype.onPinchMove=function(e){var t=this;if(this.currentDoc&&this.currentWindow){var r=o.getTouchPoint(e.touches[0]),n=o.getTouchPoint(e.touches[1]),i=l(r,n);this.onDrag(i),this.rafPinchTimeout&&this.currentWindow.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=this.currentWindow.requestAnimationFrame(function(){var e=p(r,n),o=t.props.zoom*(e/t.lastPinchDistance);t.setNewZoom(o,i,{shouldUpdatePosition:!1}),t.lastPinchDistance=e;var a=h(r,n),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,r=o.image,a=o.video,s=o.mediaProps,c=o.cropperProps,p=o.transform,h=o.crop,u=h.x,d=h.y,l=o.rotation,f=o.zoom,m=o.cropShape,g=o.showGrid,w=o.roundCropAreaPixels,y=o.style,C=y.containerStyle,S=y.cropAreaStyle,z=y.mediaStyle,x=o.classes,R=x.containerClassName,b=x.cropAreaClassName,D=x.mediaClassName,P=null!=(e=this.state.mediaObjectFit)?e:this.getObjectFit();return i.createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(e){return t.containerRef
1=e},"data-testid":"container",style:C,className:v("reactEasyCrop_Container",R)},r?i.createElement("img",n({alt:"",className:v("reactEasyCrop_Image","contain"===P&&"reactEasyCrop_Contain","horizontal-cover"===P&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===P&&"reactEasyCrop_Cover_Vertical",D)},s,{src:r,ref:this.imageRef,style:n(n({},z),{transform:p||"translate(".concat(u,"px, ").concat(d,"px) rotate(").concat(l,"deg) scale(").concat(f,")")}),onLoad:this.onMediaLoad})):a&&i.createElement("video",n({autoPlay:!0,playsInline:!0,loop:!0,muted:!0,className:v("reactEasyCrop_Video","contain"===P&&"reactEasyCrop_Contain","horizontal-cover"===P&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===P&&"reactEasyCrop_Cover_Vertical",D)},s,{ref:this.videoRef,onLoadedMetadata:this.onMediaLoad,style:n(n({},z),{transform:p||"translate(".concat(u,"px, ").concat(d,"px) rotate(").concat(l,"deg) scale(").concat(f,")")}),controls:!1}),(Array.isArray(a)?a:[{src:a}]).map(function(e){return i.createElement("source",n({key:e.src},e))})),this.state.cropSize&&i.createElement("div",n({ref:this.cropperRef,style:n(n({},S),{width:w?Math.round(this.state.cropSize.width):this.state.cropSize.width,height:w?Math.round(this.state.cropSize.height):this.state.cropSize.height}),tabIndex:0,onKeyDown:this.onKeyDown,onKeyUp:this.onKeyUp,"data-testid":"cropper",className:v("reactEasyCrop_CropArea","round"===m&&"reactEasyCrop_CropAreaRound",g&&"reactEasyCrop_CropAreaGrid",b)},c)))},o.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:3,minZoom:1,cropShape:"rect",objectFit:"contain",showGrid:!0,style:{},classes:{},mediaProps:{},cropperProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0,keyboardStep:1},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)},33210:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});let r=(0,o(78340).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},63161:(e,t,o)=>{e.exports=o(95806)},66972:e=>{var t,o,r,n,i,a,s,c,p,h,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),h=/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 y=/(?:Trident\/(\d+.\d+))/.exec(e);a=y?parseFloat(y[1])+4:t,o=g[2]?parseFloat(g[2]):NaN,r=g[3]?parseFloat(g[3]):NaN,i=(n=g[4]?parseFloat(g[4]):NaN)&&(g=/(?:Chrome\/(\d+\.\d+))/.exec(e))&&g[1]?parseFloat(g[1]):NaN}else t=o=r=i=n=NaN;if(w){if(w[1]){var C=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);s=!C||parseFloat(C[1].replace("_","."))}else s=!1;c=!!w[2],p=!!w[3]}else s=c=p=!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()||r},webkit:function(){return g()||n},safari:function(){return w.webkit()},chrome:function(){return g()||i},windows:function(){return g()||c},osx:function(){return g()||s},linux:function(){return g()||p},iphone:function(){return g()||d},mobile:function(){return g()||d||l||h||m},nativeApp:function(){return g()||f},android:function(){return g()||h},ipad:function(){return g()||l}};e.exports=w},69220:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});let r=(0,o(78340).A)("zoom-out",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]])},78340:(e,t,o)=>{"use strict";o.d(t,{A:()=>c});var r=o(12115);let n=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,o)=>o?o.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)},i=(...e)=>e.filter((e,t,o)=>!!e&&""!==e.trim()&&o.indexOf(e)===t).join(" ").trim();var a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let s=(0,r.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:o=2,absoluteStrokeWidth:n,className:s="",children:c,iconNode:p,...h},u)=>(0,r.createElement)("svg",{ref:u,...a,width:t,height:t,stroke:e,strokeWidth:n?24*Number(o)/Number(t):o,className:i("lucide",s),...!c&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0})(h)&&{"aria-hidden":"true"},...h},[...p.map(([e,t])=>(0,r.createElement)(e,t)),...Array.isArray(c)?c:[c]])),c=(e,t)=>{let o=(0,r.forwardRef)(({className:o,...a},c)=>(0,r.createElement)(s,{ref:c,iconNode:t,className:i(`lucide-${n(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,o),...a}));return o.displayName=n(e),o}},94577:(e,t,o)=>{"use strict";var r,n=o(9955);n.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),e.exports=function(e,t){if(!n.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&&r&&"wheel"===e&&(i=document.implementation.hasFeature("Events.wheel","3.0")),i}},95806:(e,t,o)=>{"use strict";var r=o(66972),n=o(94577);function i(e){var t=0,o=0,r=0,n=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),r=10*t,n=10*o,"deltaY"in e&&(n=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||n)&&e.deltaMode&&(1==e.deltaMode?(r*=40,n*=40):(r*=800,n*=800)),r&&!t&&(t=r<1?-1:1),n&&!o&&(o=n<1?-1:1),{spinX:t,spinY:o,pixelX:r,pixelY:n}}i.getEventType=function(){return r.firefox()?"DOMMouseScroll":n("wheel")?"wheel":"mousewheel"},e.exports=i}}]);

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.