1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1427],{37272:function(e,t,o){"use strict";let r;o.d(t,{ZP:function(){return K}});var n=o(63366),i=o(87462),a=o(67294),s=o(86010),l=o(94780),c=o(18793),u=o(28442),p=o(82690),d=o(19032),h=o(55551),v=o(33703),m=o(73546),f=o(59948),g=o(40375);function b(e,t){return e-t}function w(e,t,o){return null==e?t:Math.min(Math.max(t,e),o)}function S(e,t){var o;let{index:r}=null!=(o=e.reduce((e,o,r)=>{let n=Math.abs(t-o);return null===e||n<e.distance||n===e.distance?{distance:n,index:r}:e},null))?o:{};return r}function x(e,t){if(void 0!==t.current&&e.changedTouches){for(let o=0;o<e.changedTouches.length;o+=1){let r=e.changedTouches[o];if(r.identifier===t.current)return{x:r.clientX,y:r.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function y({values:e,newValue:t,index:o}){let r=e.slice();return r[o]=t,r.sort(b)}function C({sliderRef:e,activeIndex:t,setActive:o}){var r,n,i;let a=(0,p.Z)(e.current);null!=(r=e.current)&&r.contains(a.activeElement)&&Number(null==a?void 0:null==(n=a.activeElement)?void 0:n.getAttribute("data-index"))===t||null==(i=e.current)||i.querySelector(`[type="range"][data-index="${t}"]`).focus(),o&&o(t)}let z={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},R=e=>e;function Z(){return void 0===r&&(r="undefined"==typeof CSS||"function"!=typeof CSS.supports||CSS.supports("touch-action","none")),r}var P=o(74755),k=o(71657),M=o(90948),D=o(2734);let E=e=>!e||!(0,u.Z)(e);var L=o(98216),A=o(1588),T=o(34867);function N(e){return(0,T.ZP)("MuiSlider",e)}let W=(0,A.Z)("MuiSlider",["root","active","colorPrimary","colorSecondary","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]);var O=o(85893);let F=e=>{let{open:t}=e,o={offset:(0,s.Z)(t&&W.valueLabelOpen),circle:W.valueLabelCircle,label:W.valueLabelLabel};return o},_=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function I(e){return e}let j=(0,M.ZP)("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.root,t[`color${(0,L.Z)(o.color)}`],"medium"!==o.size&&t[`size${(0,L.Z)(o.size)}`],o.marked&&t.marked,"vertical"===o.orientation&&t.vertical,"inverted"===o.track&&t.trackInverted,!1===o.track&&t.trackFalse]}})(({theme:e,ownerState:t})=>(0,i.Z)({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(e.vars||e).palette[t.color].main,WebkitTapHighlightColor:"transparent"},"horizontal"===t.orientation&&(0,i.Z)({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},"small"===t.size&&{height:2},t.marked&&{marginBottom:20}),"vertical"===t.orientation&&(0,i.Z)({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},"small"===t.size&&{width:2},t.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${W.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${W.dragging}`]:{[`& .${W.thumb}, & .${W.track}`]:{transition:"none"}}})),$=(0,M.ZP)("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>(0,i.Z)({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},"horizontal"===e.orientation&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},"vertical"===e.orientation&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},"inverted"===e.track&&{opacity:1})),V=(0,M.ZP)("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{let o="light"===e.palette.mode?(0,P.$n)(e.palette[t.color].main,.62):(0,P._j)(e.palette[t.color].main,.5);return(0,i.Z)({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest})},"small"===t.size&&{border:"none"},"horizontal"===t.orientation&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},"vertical"===t.orientation&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},!1===t.track&&{display:"none"},"inverted"===t.track&&{backgroundColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:o,borderColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:o})}),H=(0,M.ZP)("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.thumb,t[`thumbColor${(0,L.Z)(o.color)}`],"medium"!==o.size&&t[`thumbSize${(0,L.Z)(o.size)}`]]}})(({theme:e,ownerState:t})=>(0,i.Z)({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest})},"small"===t.size&&{width:12,height:12},"horizontal"===t.orientation&&{top:"50%",transform:"translate(-50%, -50%)"},"vertical"===t.orientation&&{left:"50%",transform:"translate(-50%, 50%)"},{"&:before":(0,i.Z)({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"small"===t.size&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,he
1ight:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${W.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:(0,P.Fq)(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${W.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:(0,P.Fq)(e.palette[t.color].main,.16)}`},[`&.${W.disabled}`]:{"&:hover":{boxShadow:"none"}}})),U=(0,M.ZP)(function(e){let{children:t,className:o,value:r}=e,n=F(e);return t?a.cloneElement(t,{className:(0,s.Z)(t.props.className)},(0,O.jsxs)(a.Fragment,{children:[t.props.children,(0,O.jsx)("span",{className:(0,s.Z)(n.offset,o),"aria-hidden":!0,children:(0,O.jsx)("span",{className:n.circle,children:(0,O.jsx)("span",{className:n.label,children:r})})})]})):null},{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>(0,i.Z)({[`&.${W.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"},zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),transform:"translateY(-100%) scale(0)",position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},"horizontal"===t.orientation&&{top:"-10px",transformOrigin:"bottom center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"}},"vertical"===t.orientation&&{right:"30px",top:"24px",transformOrigin:"right center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",right:"-20%",top:"25%"}},"small"===t.size&&{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"})),X=(0,M.ZP)("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>(0,M.Dz)(e)&&"markActive"!==e,overridesResolver:(e,t)=>{let{markActive:o}=e;return[t.mark,o&&t.markActive]}})(({theme:e,ownerState:t,markActive:o})=>(0,i.Z)({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},"horizontal"===t.orientation&&{top:"50%",transform:"translate(-1px, -50%)"},"vertical"===t.orientation&&{left:"50%",transform:"translate(-50%, 1px)"},o&&{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8})),Y=(0,M.ZP)("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>(0,M.Dz)(e)&&"markLabelActive"!==e,overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:o})=>(0,i.Z)({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},"horizontal"===t.orientation&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},"vertical"===t.orientation&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},o&&{color:(e.vars||e).palette.text.primary})),G=e=>{let{disabled:t,dragging:o,marked:r,orientation:n,track:i,classes:a,color:s,size:c}=e,u={root:["root",t&&"disabled",o&&"dragging",r&&"marked","vertical"===n&&"vertical","inverted"===i&&"trackInverted",!1===i&&"trackFalse",s&&`color${(0,L.Z)(s)}`,c&&`size${(0,L.Z)(c)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",c&&`thumbSize${(0,L.Z)(c)}`,s&&`thumbColor${(0,L.Z)(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return(0,l.Z)(u,N,a)},q=({children:e})=>e,B=a.forwardRef(function(e,t){var o,r,l,P,M,L,A,T,N,W,F,B,K,J,Q,ee,et,eo,er,en,ei,ea,es,el;let ec=(0,k.Z)({props:e,name:"MuiSlider"}),eu=(0,D.Z)(),ep="rtl"===eu.direction,{"aria-label":ed,"aria-valuetext":eh,"aria-labelledby":ev,component:em="span",components:ef={},componentsProps:eg={},color:eb="primary",classes:ew,className:eS,disableSwap:ex=!1,disabled:ey=!1,getAriaLabel:eC,getAriaValueText:ez,marks:eR=!1,max:eZ=100,min:eP=0,orientation:ek="horizontal",size:eM="medium",step:eD=1,scale:eE=I,slotProps:eL,slots:eA,track:eT="normal",valueLabelDisplay:eN="off",valueLabelFormat:eW=I}=ec,eO=(0,n.Z)(ec,_),eF=(0,i.Z)({},ec,{isRtl:ep,max:eZ,min:eP,classes:ew,disabled:ey,disableSwap:ex,orientation:ek,marks:eR,color:eb,size:eM,step:eD,scale:eE,track:eT,valueLabelDisplay:eN,valueLabelFormat:eW}),{axisProps:e_,getRootProps:eI,getHiddenInputProps:ej,getThumbProps:e$,open:eV,active:eH,axis:eU,focusedThumbIndex:eX,range:eY,dragging:eG,marks:eq,values:eB,trackOffset:eK,trackLeap:eJ}=function(e){let{"aria-labelledby":t,defaultValue:o,disabled:r=!1,disableSwap:n=!1,isRtl:s=!1,marks:l=!1,max:c=100,min:u=0,name:P,onChange:k,onChangeCommitted:M,orientation:D="horizontal",ref:E,scale:L=R,step:A=1,tabIndex:T,value:N}
1=e,W=a.useRef(),[O,F]=a.useState(-1),[_,I]=a.useState(-1),[j,$]=a.useState(!1),V=a.useRef(0),[H,U]=(0,d.Z)({controlled:N,default:null!=o?o:u,name:"Slider"}),X=k&&((e,t,o)=>{let r=e.nativeEvent||e,n=new r.constructor(r.type,r);Object.defineProperty(n,"target",{writable:!0,value:{value:t,name:P}}),k(n,t,o)}),Y=Array.isArray(H),G=Y?H.slice().sort(b):[H];G=G.map(e=>w(e,u,c));let q=!0===l&&null!==A?[...Array(Math.floor((c-u)/A)+1)].map((e,t)=>({value:u+A*t})):l||[],B=q.map(e=>e.value),{isFocusVisibleRef:K,onBlur:J,onFocus:Q,ref:ee}=(0,h.Z)(),[et,eo]=a.useState(-1),er=a.useRef(),en=(0,v.Z)(ee,er),ei=(0,v.Z)(E,en),ea=e=>t=>{var o;let r=Number(t.currentTarget.getAttribute("data-index"));Q(t),!0===K.current&&eo(r),I(r),null==e||null==(o=e.onFocus)||o.call(e,t)},es=e=>t=>{var o;J(t),!1===K.current&&eo(-1),I(-1),null==e||null==(o=e.onBlur)||o.call(e,t)};(0,m.Z)(()=>{if(r&&er.current.contains(document.activeElement)){var e;null==(e=document.activeElement)||e.blur()}},[r]),r&&-1!==O&&F(-1),r&&-1!==et&&eo(-1);let el=e=>t=>{var o;null==(o=e.onChange)||o.call(e,t);let r=Number(t.currentTarget.getAttribute("data-index")),i=G[r],a=B.indexOf(i),s=t.target.valueAsNumber;if(q&&null==A&&(s=s<i?B[a-1]:B[a+1]),s=w(s,u,c),q&&null==A){let e=B.indexOf(G[r]);s=s<G[r]?B[e-1]:B[e+1]}if(Y){n&&(s=w(s,G[r-1]||-1/0,G[r+1]||1/0));let e=s;s=y({values:G,newValue:s,index:r});let t=r;n||(t=s.indexOf(e)),C({sliderRef:er,activeIndex:t})}U(s),eo(r),X&&X(t,s,r),M&&M(t,s)},ec=a.useRef(),eu=D;s&&"horizontal"===D&&(eu+="-reverse");let ep=({finger:e,move:t=!1})=>{let o,r;let{current:i}=er,{width:a,height:s,bottom:l,left:p}=i.getBoundingClientRect();if(o=0===eu.indexOf("vertical")?(l-e.y)/s:(e.x-p)/a,-1!==eu.indexOf("-reverse")&&(o=1-o),r=(c-u)*o+u,A)r=Number((Math.round((r-u)/A)*A+u).toFixed(function(e){if(1>Math.abs(e)){let t=e.toExponential().split("e-"),o=t[0].split(".")[1];return(o?o.length:0)+parseInt(t[1],10)}let t=e.toString().split(".")[1];return t?t.length:0}(A)));else{let e=S(B,r);r=B[e]}r=w(r,u,c);let d=0;if(Y){d=t?ec.current:S(G,r),n&&(r=w(r,G[d-1]||-1/0,G[d+1]||1/0));let e=r;r=y({values:G,newValue:r,index:d}),n&&t||(d=r.indexOf(e),ec.current=d)}return{newValue:r,activeIndex:d}},ed=(0,f.Z)(e=>{let t=x(e,W);if(!t)return;if(V.current+=1,"mousemove"===e.type&&0===e.buttons){eh(e);return}let{newValue:o,activeIndex:r}=ep({finger:t,move:!0});C({sliderRef:er,activeIndex:r,setActive:F}),U(o),!j&&V.current>2&&$(!0),X&&o!==H&&X(e,o,r)}),eh=(0,f.Z)(e=>{let t=x(e,W);if($(!1),!t)return;let{newValue:o}=ep({finger:t,move:!0});F(-1),"touchend"===e.type&&I(-1),M&&M(e,o),W.current=void 0,em()}),ev=(0,f.Z)(e=>{if(r)return;Z()||e.preventDefault();let t=e.changedTouches[0];null!=t&&(W.current=t.identifier);let o=x(e,W);if(!1!==o){let{newValue:t,activeIndex:r}=ep({finger:o});C({sliderRef:er,activeIndex:r,setActive:F}),U(t),X&&X(e,t,r)}V.current=0;let n=(0,p.Z)(er.current);n.addEventListener("touchmove",ed),n.addEventListener("touchend",eh)}),em=a.useCallback(()=>{let e=(0,p.Z)(er.current);e.removeEventListener("mousemove",ed),e.removeEventListener("mouseup",eh),e.removeEventListener("touchmove",ed),e.removeEventListener("touchend",eh)},[eh,ed]);a.useEffect(()=>{let{current:e}=er;return e.addEventListener("touchstart",ev,{passive:Z()}),()=>{e.removeEventListener("touchstart",ev,{passive:Z()}),em()}},[em,ev]),a.useEffect(()=>{r&&em()},[r,em]);let ef=e=>t=>{var o;if(null==(o=e.onMouseDown)||o.call(e,t),r||t.defaultPrevented||0!==t.button)return;t.preventDefault();let n=x(t,W);if(!1!==n){let{newValue:e,activeIndex:o}=ep({finger:n});C({sliderRef:er,activeIndex:o,setActive:F}),U(e),X&&X(t,e,o)}V.current=0;let i=(0,p.Z)(er.current);i.addEventListener("mousemove",ed),i.addEventListener("mouseup",eh)},eg=((Y?G[0]:u)-u)*100/(c-u),eb=(G[G.length-1]-u)*100/(c-u)-eg,ew=(e={})=>{let t={onMouseDown:ef(e||{})},o=(0,i.Z)({},e,t);return(0,i.Z)({ref:ei},o)},eS=e=>t=>{var o;null==(o=e.onMouseOver)||o.call(e,t);let r=Number(t.currentTarget.getAttribute("data-index"));I(r)},ex=e=>t=>{var o;null==(o=e.onMouseLeave)||o.call(e,t),I(-1)},ey=(e={})=>{let t={onMouseOver:eS(e||{}),onMouseLeave:ex(e||{})};return(0,i.Z)({},e,t)},eC=(o={})=>{var n;
1let a={onChange:el(o||{}),onFocus:ea(o||{}),onBlur:es(o||{})},l=(0,i.Z)({},o,a);return(0,i.Z)({tabIndex:T,"aria-labelledby":t,"aria-orientation":D,"aria-valuemax":L(c),"aria-valuemin":L(u),name:P,type:"range",min:e.min,max:e.max,step:null!=(n=e.step)?n:void 0,disabled:r},l,{style:(0,i.Z)({},g.Z,{direction:s?"rtl":"ltr",width:"100%",height:"100%"})})};return{active:O,axis:eu,axisProps:z,dragging:j,focusedThumbIndex:et,getHiddenInputProps:eC,getRootProps:ew,getThumbProps:ey,marks:q,open:_,range:Y,trackLeap:eb,trackOffset:eg,values:G}}((0,i.Z)({},eF,{ref:t}));eF.marked=eq.length>0&&eq.some(e=>e.label),eF.dragging=eG,eF.focusedThumbIndex=eX;let eQ=G(eF),e0=null!=(o=null!=(r=null==eA?void 0:eA.root)?r:ef.Root)?o:j,e1=null!=(l=null!=(P=null==eA?void 0:eA.rail)?P:ef.Rail)?l:$,e5=null!=(M=null!=(L=null==eA?void 0:eA.track)?L:ef.Track)?M:V,e2=null!=(A=null!=(T=null==eA?void 0:eA.thumb)?T:ef.Thumb)?A:H,e3=null!=(N=null!=(W=null==eA?void 0:eA.valueLabel)?W:ef.ValueLabel)?N:U,e4=null!=(F=null!=(B=null==eA?void 0:eA.mark)?B:ef.Mark)?F:X,e6=null!=(K=null!=(J=null==eA?void 0:eA.markLabel)?J:ef.MarkLabel)?K:Y,e8=null!=(Q=null!=(ee=null==eA?void 0:eA.input)?ee:ef.Input)?Q:"input",e7=null!=(et=null==eL?void 0:eL.root)?et:eg.root,e9=null!=(eo=null==eL?void 0:eL.rail)?eo:eg.rail,te=null!=(er=null==eL?void 0:eL.track)?er:eg.track,tt=null!=(en=null==eL?void 0:eL.thumb)?en:eg.thumb,to=null!=(ei=null==eL?void 0:eL.valueLabel)?ei:eg.valueLabel,tr=null!=(ea=null==eL?void 0:eL.mark)?ea:eg.mark,tn=null!=(es=null==eL?void 0:eL.markLabel)?es:eg.markLabel,ti=null!=(el=null==eL?void 0:eL.input)?el:eg.input,ta=(0,c.Z)({elementType:e0,getSlotProps:eI,externalSlotProps:e7,externalForwardedProps:eO,additionalProps:(0,i.Z)({},E(e0)&&{as:em}),ownerState:(0,i.Z)({},eF,null==e7?void 0:e7.ownerState),className:[eQ.root,eS]}),ts=(0,c.Z)({elementType:e1,externalSlotProps:e9,ownerState:eF,className:eQ.rail}),tl=(0,c.Z)({elementType:e5,externalSlotProps:te,additionalProps:{style:(0,i.Z)({},e_[eU].offset(eK),e_[eU].leap(eJ))},ownerState:(0,i.Z)({},eF,null==te?void 0:te.ownerState),className:eQ.track}),tc=(0,c.Z)({elementType:e2,getSlotProps:e$,externalSlotProps:tt,ownerState:(0,i.Z)({},eF,null==tt?void 0:tt.ownerState),className:eQ.thumb}),tu=(0,c.Z)({elementType:e3,externalSlotProps:to,ownerState:(0,i.Z)({},eF,null==to?void 0:to.ownerState),className:eQ.valueLabel}),tp=(0,c.Z)({elementType:e4,externalSlotProps:tr,ownerState:eF,className:eQ.mark}),td=(0,c.Z)({elementType:e6,externalSlotProps:tn,ownerState:eF,className:eQ.markLabel}),th=(0,c.Z)({elementType:e8,getSlotProps:ej,externalSlotProps:ti,ownerState:eF});return(0,O.jsxs)(e0,(0,i.Z)({},ta,{children:[(0,O.jsx)(e1,(0,i.Z)({},ts)),(0,O.jsx)(e5,(0,i.Z)({},tl)),eq.filter(e=>e.value>=eP&&e.value<=eZ).map((e,t)=>{let o;let r=(e.value-eP)*100/(eZ-eP),n=e_[eU].offset(r);return o=!1===eT?-1!==eB.indexOf(e.value):"normal"===eT&&(eY?e.value>=eB[0]&&e.value<=eB[eB.length-1]:e.value<=eB[0])||"inverted"===eT&&(eY?e.value<=eB[0]||e.value>=eB[eB.length-1]:e.value>=eB[0]),(0,O.jsxs)(a.Fragment,{children:[(0,O.jsx)(e4,(0,i.Z)({"data-index":t},tp,!(0,u.Z)(e4)&&{markActive:o},{style:(0,i.Z)({},n,tp.style),className:(0,s.Z)(tp.className,o&&eQ.markActive)})),null!=e.label?(0,O.jsx)(e6,(0,i.Z)({"aria-hidden":!0,"data-index":t},td,!(0,u.Z)(e6)&&{markLabelActive:o},{style:(0,i.Z)({},n,td.style),className:(0,s.Z)(eQ.markLabel,td.className,o&&eQ.markLabelActive),children:e.label})):null]},t)}),eB.map((e,t)=>{let o=e_[eU].offset((e-eP)*100/(eZ-eP)),r="off"===eN?q:e3;return(0,O.jsx)(r,(0,i.Z)({},!(0,u.Z)(r)&&{valueLabelFormat:eW,valueLabelDisplay:eN,value:"function"==typeof eW?eW(eE(e),t):eW,index:t,open:eV===t||eH===t||"on"===eN,disabled:ey},tu,{children:(0,O.jsx)(e2,(0,i.Z)({"data-index":t},tc,{className:(0,s.Z)(eQ.thumb,tc.className,eH===t&&eQ.active,eX===t&&eQ.focusVisible),style:(0,i.Z)({},o,{pointerEvents:ex&&eH!==t?"none":void 0},tc.style),children:(0,O.jsx)(e8,(0,i.Z)({"data-index":t,"aria-label":eC?eC(t):ed,"aria-valuenow":eE(e),"aria-labelledby":ev,"aria-valuetext":ez?ez(eE(e),t):eh,value:eB[t]},th))}))}),t)})]}))});var K=B}
1,40375:function(e,t){"use strict";t.Z={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"}},52796:function(e,t,o){e.exports=o(10643)},13264:function(e){"use strict";var t=!!("undefined"!=typeof window&&window.document&&window.document.createElement),o={canUseDOM:t,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:t&&!!(window.addEventListener||window.attachEvent),canUseViewport:t&&!!window.screen,isInWorker:!t};e.exports=o},84518:function(e){var t,o,r,n,i,a,s,l,c,u,p,d,h,v,m,f=!1;function g(){if(!f){f=!0;var e=navigator.userAgent,g=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),b=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(d=/\b(iPhone|iP[ao]d)/.exec(e),h=/\b(iP[ao]d)/.exec(e),u=/Android/i.exec(e),v=/FBAN\/\w+;/i.exec(e),m=/Mobile/i.exec(e),p=!!/Win64/.exec(e),g){(t=g[1]?parseFloat(g[1]):g[5]?parseFloat(g[5]):NaN)&&document&&document.documentMode&&(t=document.documentMode);var w=/(?:Trident\/(\d+.\d+))/.exec(e);a=w?parseFloat(w[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(b){if(b[1]){var S=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);s=!S||parseFloat(S[1].replace("_","."))}else s=!1;l=!!b[2],c=!!b[3]}else s=l=c=!1}}var b={ie:function(){return g()||t},ieCompatibilityMode:function(){return g()||a>t},ie64:function(){return b.ie()&&p},firefox:function(){return g()||o},opera:function(){return g()||r},webkit:function(){return g()||n},safari:function(){return b.webkit()},chrome:function(){return g()||i},windows:function(){return g()||l},osx:function(){return g()||s},linux:function(){return g()||c},iphone:function(){return g()||d},mobile:function(){return g()||d||h||u||m},nativeApp:function(){return g()||v},android:function(){return g()||u},ipad:function(){return g()||h}};e.exports=b},96534:function(e,t,o){"use strict";var r,n=o(13264);n.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),e.exports=/** 2 * Checks if an event is supported in the current execution environment. 3 * 4 * NOTE: This will not work correctly for non-generic events such as `change`, 5 * `reset`, `load`, `error`, and `select`. 6 * 7 * Borrows from Modernizr. 8 * 9 * @param {string} eventNameSuffix Event name, e.g. "click". 10 * @param {?boolean} capture Check if the capture phase is supported. 11 * @return {boolean} True if the event is supported. 12 * @internal 13 * @license Modernizr 3.0.0pre (Custom Build) | MIT 14 */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}},10643:function(e,t,o){"use strict";var r=o(84518),n=o(96534);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},31095:function(e,t,o){"use strict";o.d(t,{ZP:function(){return f}});var r=o(97582),n=o(67294),i=o(52796);function a(e,t,o,r,n){void 0===n&&(n=0);var i=h(t.width,t.height,n),a=i.width,l=i.height;return{x:s(e.x,a,o.width,r),y:s(e.y,l,o.height,r)}}function s(e,t,o,r){var n=t*r/2-o/2;return v(e,-n,n)}function l(e,t){return Math.sqrt(Math.pow(e.y-t.y,2)+Math.pow(e.x-t.x,2))}function c(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 p(e,t){return t}function d(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function h(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 v(e,t,o){return Math.min(Math.max(e,t),o)}function m(){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 f=function(e){function t(){var o=null!==e&&e.apply(this,arguments)||this;return o.cropperRef=n.createRef(),o.imageRef=n.createRef(),o.videoRef=n.createRef(),o.containerPosition={x:0,y:0}
14,o.containerRef=null,o.styleRef=null,o.containerRect=null,o.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},o.dragStartPosition={x:0,y:0},o.dragStartCrop={x:0,y:0},o.gestureZoomStart=0,o.gestureRotationStart=0,o.isTouching=!1,o.lastPinchDistance=0,o.lastPinchRotation=0,o.rafDragTimeout=null,o.rafPinchTimeout=null,o.wheelTimer=null,o.currentDoc="undefined"!=typeof document?document:null,o.currentWindow="undefined"!=typeof window?window:null,o.resizeObserver=null,o.previousCropSize=null,o.isInitialized=!1,o.state={cropSize:null,hasWheelJustStarted:!1,mediaObjectFit:void 0},o.initResizeObserver=function(){if(void 0!==window.ResizeObserver&&o.containerRef){var e=!0;o.resizeObserver=new window.ResizeObserver(function(t){if(e){e=!1;return}o.computeSizes()}),o.resizeObserver.observe(o.containerRef)}},o.preventZoomSafari=function(e){return e.preventDefault()},o.cleanEvents=function(){o.currentDoc&&(o.currentDoc.removeEventListener("mousemove",o.onMouseMove),o.currentDoc.removeEventListener("mouseup",o.onDragStopped),o.currentDoc.removeEventListener("touchmove",o.onTouchMove),o.currentDoc.removeEventListener("touchend",o.onDragStopped),o.currentDoc.removeEventListener("gesturechange",o.onGestureChange),o.currentDoc.removeEventListener("gestureend",o.onGestureEnd),o.currentDoc.removeEventListener("scroll",o.onScroll))},o.clearScrollEvent=function(){o.containerRef&&o.containerRef.removeEventListener("wheel",o.onWheel),o.wheelTimer&&clearTimeout(o.wheelTimer)},o.onMediaLoad=function(){var e=o.computeSizes();e&&(o.previousCropSize=e,o.emitCropData(),o.setInitialCrop(e),o.isInitialized=!0),o.props.onMediaLoaded&&o.props.onMediaLoaded(o.mediaSize)},o.setInitialCrop=function(e){if(o.props.initialCroppedAreaPercentages){var t,r,n,i,a,s,l,c=(t=o.props.initialCroppedAreaPercentages,r=o.mediaSize,n=o.props.rotation,i=o.props.minZoom,a=o.props.maxZoom,s=h(r.width,r.height,n),{crop:{x:(l=v(e.width/s.width*(100/t.width),i,a))*s.width/2-e.width/2-s.width*l*(t.x/100),y:l*s.height/2-e.height/2-s.height*l*(t.y/100)},zoom:l}),u=c.crop,p=c.zoom;o.props.onCropChange(u),o.props.onZoomChange&&o.props.onZoomChange(p)}else if(o.props.initialCroppedAreaPixels){var d,m,f,g,b,w,S,x,y,C=(d=o.props.initialCroppedAreaPixels,m=o.mediaSize,f=o.props.rotation,g=o.props.minZoom,b=o.props.maxZoom,void 0===f&&(f=0),w=h(m.naturalWidth,m.naturalHeight,f),x=v((S=m.width>m.height?m.width/m.naturalWidth:m.height/m.naturalHeight,e.height>e.width?e.height/(d.height*S):e.width/(d.width*S)),g,b),y=e.height>e.width?e.height/d.height:e.width/d.width,{crop:{x:((w.width-d.width)/2-d.x)*y,y:((w.height-d.height)/2-d.y)*y},zoom:x}),u=C.crop,p=C.zoom;o.props.onCropChange(u),o.props.onZoomChange&&o.props.onZoomChange(p)}},o.computeSizes=function(){var e,t,n,i,a,s,l=o.imageRef.current||o.videoRef.current;if(l&&o.containerRef){o.containerRect=o.containerRef.getBoundingClientRect(),o.saveContainerPosition();var c,u,p,d,v,m,f,g,b,w,S,x=o.containerRect.width/o.containerRect.height,y=(null===(e=o.imageRef.current)||void 0===e?void 0:e.naturalWidth)||(null===(t=o.videoRef.current)||void 0===t?void 0:t.videoWidth)||0,C=(null===(n=o.imageRef.current)||void 0===n?void 0:n.naturalHeight)||(null===(i=o.videoRef.current)||void 0===i?void 0:i.videoHeight)||0,z=l.offsetWidth<y||l.offsetHeight<C,R=y/C,Z=void 0;if(z)switch(o.state.mediaObjectFit){default:case"contain":Z=x>R?{width:o.containerRect.height*R,height:o.containerRect.height}:{width:o.containerRect.width,height:o.containerRect.width/R};break;case"horizontal-cover":Z={width:o.containerRect.width,height:o.containerRect.width/R};break;case"vertical-cover":Z={width:o.containerRect.height*R,height:o.containerRect.height}}else Z={width:l.offsetWidth,height:l.offsetHeight};o.mediaSize=(0,r.pi)((0,r.pi)({},Z),{naturalWidth:y,naturalHeight:C}),o.props.setMediaSize&&o.props.setMediaSize(o.mediaSize);var P=o.props.cropSize?o.props.cropSize:(c=o.mediaSize.width,u=o.mediaSize.height,p=o.containerRect.width,d=o.containerRect.height,v=o.props.aspect,void 0===(m=o.props.rotation)&&(m=0),g=(f=h(c,u,m)).width,b=f.height,(w=Math.min(g,p))>
14(S=Math.min(b,d))*v?{width:S*v,height:S}:{width:w,height:w/v});return((null===(a=o.state.cropSize)||void 0===a?void 0:a.height)!==P.height||(null===(s=o.state.cropSize)||void 0===s?void 0:s.width)!==P.width)&&o.props.onCropSizeChange&&o.props.onCropSizeChange(P),o.setState({cropSize:P},o.recomputeCropPosition),o.props.setCropSize&&o.props.setCropSize(P),P}},o.saveContainerPosition=function(){if(o.containerRef){var e=o.containerRef.getBoundingClientRect();o.containerPosition={x:e.left,y:e.top}}},o.onMouseDown=function(e){o.currentDoc&&(e.preventDefault(),o.currentDoc.addEventListener("mousemove",o.onMouseMove),o.currentDoc.addEventListener("mouseup",o.onDragStopped),o.saveContainerPosition(),o.onDragStart(t.getMousePoint(e)))},o.onMouseMove=function(e){return o.onDrag(t.getMousePoint(e))},o.onScroll=function(e){o.currentDoc&&(e.preventDefault(),o.saveContainerPosition())},o.onTouchStart=function(e){o.currentDoc&&(o.isTouching=!0,(!o.props.onTouchRequest||o.props.onTouchRequest(e))&&(o.currentDoc.addEventListener("touchmove",o.onTouchMove,{passive:!1}),o.currentDoc.addEventListener("touchend",o.onDragStopped),o.saveContainerPosition(),2===e.touches.length?o.onPinchStart(e):1===e.touches.length&&o.onDragStart(t.getTouchPoint(e.touches[0]))))},o.onTouchMove=function(e){e.preventDefault(),2===e.touches.length?o.onPinchMove(e):1===e.touches.length&&o.onDrag(t.getTouchPoint(e.touches[0]))},o.onGestureStart=function(e){o.currentDoc&&(e.preventDefault(),o.currentDoc.addEventListener("gesturechange",o.onGestureChange),o.currentDoc.addEventListener("gestureend",o.onGestureEnd),o.gestureZoomStart=o.props.zoom,o.gestureRotationStart=o.props.rotation)},o.onGestureChange=function(e){if(e.preventDefault(),!o.isTouching){var r=t.getMousePoint(e),n=o.gestureZoomStart-1+e.scale;if(o.setNewZoom(n,r,{shouldUpdatePosition:!0}),o.props.onRotationChange){var i=o.gestureRotationStart+e.rotation;o.props.onRotationChange(i)}}},o.onGestureEnd=function(e){o.cleanEvents()},o.onDragStart=function(e){var t,n,i=e.x,a=e.y;o.dragStartPosition={x:i,y:a},o.dragStartCrop=(0,r.pi)({},o.props.crop),null===(n=(t=o.props).onInteractionStart)||void 0===n||n.call(t)},o.onDrag=function(e){var t=e.x,r=e.y;o.currentWindow&&(o.rafDragTimeout&&o.currentWindow.cancelAnimationFrame(o.rafDragTimeout),o.rafDragTimeout=o.currentWindow.requestAnimationFrame(function(){if(o.state.cropSize&&void 0!==t&&void 0!==r){var e=t-o.dragStartPosition.x,n=r-o.dragStartPosition.y,i={x:o.dragStartCrop.x+e,y:o.dragStartCrop.y+n},s=o.props.restrictPosition?a(i,o.mediaSize,o.state.cropSize,o.props.zoom,o.props.rotation):i;o.props.onCropChange(s)}}))},o.onDragStopped=function(){var e,t;o.isTouching=!1,o.cleanEvents(),o.emitCropData(),null===(t=(e=o.props).onInteractionEnd)||void 0===t||t.call(e)},o.onWheel=function(e){if(o.currentWindow&&(!o.props.onWheelRequest||o.props.onWheelRequest(e))){e.preventDefault();var r=t.getMousePoint(e),n=i(e).pixelY,a=o.props.zoom-n*o.props.zoomSpeed/200;o.setNewZoom(a,r,{shouldUpdatePosition:!0}),o.state.hasWheelJustStarted||o.setState({hasWheelJustStarted:!0},function(){var e,t;return null===(t=(e=o.props).onInteractionStart)||void 0===t?void 0:t.call(e)}),o.wheelTimer&&clearTimeout(o.wheelTimer),o.wheelTimer=o.currentWindow.setTimeout(function(){return o.setState({hasWheelJustStarted:!1},function(){var e,t;return null===(t=(e=o.props).onInteractionEnd)||void 0===t?void 0:t.call(e)})},250)}},o.getPointOnContainer=function(e,t){var r=e.x,n=e.y;if(!o.containerRect)throw Error("The Cropper is not mounted");return{x:o.containerRect.width/2-(r-t.x),y:o.containerRect.height/2-(n-t.y)}},o.getPointOnMedia=function(e){var t=e.x,r=e.y,n=o.props,i=n.crop,a=n.zoom;return{x:(t+i.x)/a,y:(r+i.y)/a}},o.setNewZoom=function(e,t,r){var n=(void 0===r?{}:r).shouldUpdatePosition;if(o.state.cropSize&&o.props.onZoomChange){var i=v(e,o.props.minZoom,o.props.maxZoom);if(void 0===n||n){var s=o.getPointOnContainer(t,o.containerPosition),l=o.getPointOnMedia(s),c={x:l.x*i-s.x,y:l.y*i-s.y},u=o.props.restrictPosition?a(c,o.mediaSize,o.state.cropSize,i,o.props.rotation):c;o.props.onCropChange(u)}o.props.onZoomChange(i)}},o.getCropData=function(){var e,t,n,i,s,l,c,d,v,m,f,g,b,w,S;return o.state.cropSize?(e=o.props.restrictPosition?a(o.props.crop,o.mediaSize,o.state.cropSize,o.props.zoom,o.props.rotation):o.props.crop,t=o.mediaSize,n=o.state.cropSize,i=o.getAspect(),s=o.props.zoom,l=o.props.rotation,c=o.props.restrictPosition,void 0===l&&(l=0),void 0===c&&(c=!0),d=c?u:p,v=h(t.width,t.height,l),m=h(t.naturalWi
14dth,t.naturalHeight,l),f={x:d(100,((v.width-n.width/s)/2-e.x/s)/v.width*100),y:d(100,((v.height-n.height/s)/2-e.y/s)/v.height*100),width:d(100,n.width/v.width*100/s),height:d(100,n.height/v.height*100/s)},g=Math.round(d(m.width,f.width*m.width/100)),b=Math.round(d(m.height,f.height*m.height/100)),w=m.width>=m.height*i?{width:Math.round(b*i),height:b}:{width:g,height:Math.round(g/i)},S=(0,r.pi)((0,r.pi)({},w),{x:Math.round(d(m.width-w.width,f.x*m.width/100)),y:Math.round(d(m.height-w.height,f.y*m.height/100))}),{croppedAreaPercentages:f,croppedAreaPixels:S}):null},o.emitCropData=function(){var e=o.getCropData();if(e){var t=e.croppedAreaPercentages,r=e.croppedAreaPixels;o.props.onCropComplete&&o.props.onCropComplete(t,r),o.props.onCropAreaChange&&o.props.onCropAreaChange(t,r)}},o.emitCropAreaChange=function(){var e=o.getCropData();if(e){var t=e.croppedAreaPercentages,r=e.croppedAreaPixels;o.props.onCropAreaChange&&o.props.onCropAreaChange(t,r)}},o.recomputeCropPosition=function(){if(o.state.cropSize){var e,t,r=o.props.crop;if(o.isInitialized&&(null===(e=o.previousCropSize)||void 0===e?void 0:e.width)&&(null===(t=o.previousCropSize)||void 0===t?void 0:t.height)&&(Math.abs(o.previousCropSize.width-o.state.cropSize.width)>1e-6||Math.abs(o.previousCropSize.height-o.state.cropSize.height)>1e-6)){var n=o.state.cropSize.width/o.previousCropSize.width,i=o.state.cropSize.height/o.previousCropSize.height;r={x:o.props.crop.x*n,y:o.props.crop.y*i}}var s=o.props.restrictPosition?a(r,o.mediaSize,o.state.cropSize,o.props.zoom,o.props.rotation):r;o.previousCropSize=o.state.cropSize,o.props.onCropChange(s),o.emitCropData()}},o.onKeyDown=function(e){var t,n,i=o.props,s=i.crop,l=i.onCropChange,c=i.keyboardStep,u=i.zoom,p=i.rotation,d=c;if(o.state.cropSize){e.shiftKey&&(d*=.2);var h=(0,r.pi)({},s);switch(e.key){case"ArrowUp":h.y-=d,e.preventDefault();break;case"ArrowDown":h.y+=d,e.preventDefault();break;case"ArrowLeft":h.x-=d,e.preventDefault();break;case"ArrowRight":h.x+=d,e.preventDefault();break;default:return}o.props.restrictPosition&&(h=a(h,o.mediaSize,o.state.cropSize,u,p)),e.repeat||null===(n=(t=o.props).onInteractionStart)||void 0===n||n.call(t),l(h)}},o.onKeyUp=function(e){var t,r;switch(e.key){case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":e.preventDefault();break;default:return}o.emitCropData(),null===(r=(t=o.props).onInteractionEnd)||void 0===r||r.call(t)},o}return(0,r.ZT)(t,e),t.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}
14\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))},t.prototype.componentWillUnmount=function(){var e,t;this.currentDoc&&this.currentWindow&&(void 0===window.ResizeObserver&&this.currentWindow.removeEventListener("resize",this.computeSizes),null===(e=this.resizeObserver)||void 0===e||e.disconnect(),this.containerRef&&this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.styleRef&&(null===(t=this.styleRef.parentNode)||void 0===t||t.removeChild(this.styleRef)),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent())},t.prototype.componentDidUpdate=function(e){e.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):e.aspect!==this.props.aspect?this.computeSizes():e.objectFit!==this.props.objectFit?this.computeSizes():e.zoom!==this.props.zoom?this.recomputeCropPosition():(null===(t=e.cropSize)||void 0===t?void 0:t.height)!==(null===(o=this.props.cropSize)||void 0===o?void 0:o.height)||(null===(r=e.cropSize)||void 0===r?void 0:r.width)!==(null===(n=this.props.cropSize)||void 0===n?void 0:n.width)?this.computeSizes():((null===(i=e.crop)||void 0===i?void 0:i.x)!==(null===(a=this.props.crop)||void 0===a?void 0:a.x)||(null===(s=e.crop)||void 0===s?void 0:s.y)!==(null===(l=this.props.crop)||void 0===l?void 0:l.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===(c=this.videoRef.current)||void 0===c||c.load());var t,o,r,n,i,a,s,l,c,u=this.getObjectFit();u!==this.state.mediaObjectFit&&this.setState({mediaObjectFit:u},this.computeSizes)},t.prototype.getAspect=function(){var e=this.props,t=e.cropSize,o=e.aspect;return t?t.width/t.height:o},t.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?void 0:e.naturalWidth)||(null===(t=this.videoRef.current)||void 0===t?void 0:t.videoWidth)||0)/((null===(o=this.imageRef.current)||void 0===o?void 0:o.naturalHeight)||(null===(r=this.videoRef.current)||void 0===r?void 0:r.videoHeight)||0)<n?"horizontal-cover":"vertical-cover"}return"horizontal-cover"}return this.props.objectFit},t.prototype.onPinchStart=function(e){var o=t.getTouchPoint(e.touches[0]),r=t.getTouchPoint(e.touches[1]);this.lastPinchDistance=l(o,r),this.lastPinchRotation=c(o,r),this.onDragStart(d(o,r))},t.prototype.onPinchMove=function(e){var o=this;if(this.currentDoc&&this.currentWindow){var r=t.getTouchPoint(e.touches[0]),n=t.getTouchPoint(e.touches[1]),i=d(r,n);this.onDrag(i),this.rafPinchTimeout&&this.currentWindow.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=this.currentWindow.requestAnimationFrame(function(){var e=l(r,n),t=o.props.zoom*(e/o.lastPinchDistance);o.setNewZoom(t,i,{shouldUpdatePosition:!1}),o.lastPinchDistance=e;var a=c(r,n),s=o.props.rotation+(a-o.lastPinchRotation);o.props.onRotationChange&&o.props.onRotationChange(s),o.lastPinchRotation=a})}},t.prototype.render=function(){var e,t=this,o=this.props,i=o.image,a=o.video,s=o.mediaProps,l=o.cropperProps,c=o.transform,u=o.crop,p=u.x,d=u.y,h=o.rotation,v=o.zoom,f=o.cropShape,g=o.showGrid,b=o.roundCropAreaPixels,w=o.style,S=w.containerStyle,x=w.cropAreaStyle,y=w.mediaStyle,C=o.classes,z=C.containerClassName,R=C.cropAreaClassName,Z=C.mediaClassName,P=null!==(e=this.state.mediaObjectFit)&&void 0!==e?e:this.getObjectFit();return n.createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(e){return t.containerRef
14=e},"data-testid":"container",style:S,className:m("reactEasyCrop_Container",z)},i?n.createElement("img",(0,r.pi)({alt:"",className:m("reactEasyCrop_Image","contain"===P&&"reactEasyCrop_Contain","horizontal-cover"===P&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===P&&"reactEasyCrop_Cover_Vertical",Z)},s,{src:i,ref:this.imageRef,style:(0,r.pi)((0,r.pi)({},y),{transform:c||"translate(".concat(p,"px, ").concat(d,"px) rotate(").concat(h,"deg) scale(").concat(v,")")}),onLoad:this.onMediaLoad})):a&&n.createElement("video",(0,r.pi)({autoPlay:!0,playsInline:!0,loop:!0,muted:!0,className:m("reactEasyCrop_Video","contain"===P&&"reactEasyCrop_Contain","horizontal-cover"===P&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===P&&"reactEasyCrop_Cover_Vertical",Z)},s,{ref:this.videoRef,onLoadedMetadata:this.onMediaLoad,style:(0,r.pi)((0,r.pi)({},y),{transform:c||"translate(".concat(p,"px, ").concat(d,"px) rotate(").concat(h,"deg) scale(").concat(v,")")}),controls:!1}),(Array.isArray(a)?a:[{src:a}]).map(function(e){return n.createElement("source",(0,r.pi)({key:e.src},e))})),this.state.cropSize&&n.createElement("div",(0,r.pi)({ref:this.cropperRef,style:(0,r.pi)((0,r.pi)({},x),{width:b?Math.round(this.state.cropSize.width):this.state.cropSize.width,height:b?Math.round(this.state.cropSize.height):this.state.cropSize.height}),tabIndex:0,onKeyDown:this.onKeyDown,onKeyUp:this.onKeyUp,"data-testid":"cropper",className:m("reactEasyCrop_CropArea","round"===f&&"reactEasyCrop_CropAreaRound",g&&"reactEasyCrop_CropAreaGrid",R)},l)))},t.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},t.getMousePoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t.getTouchPoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t}(n.Component)}}]);
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.