PageSourceSearch

https://ailikeme.ai/static/2888.8998c70ddfb7724ff2bf.js

js ailikeme.ai collected 2026-10-05 15:28:30 UTC 29,753 bytes, 2 lines download raw bytes

1/*! For license information please see 2888.8998c70ddfb7724ff2bf.js.LICENSE.txt */
2"use strict";(self.webpackChunkmy_webpack_project=self.webpackChunkmy_webpack_project||[]).push([[2888],{65924(e,n,t){var o=t(88569);n.A=void 0;var r=o(t(89987)),i=t(47671);n.A=(0,r.default)((0,i.jsx)("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack")},66049(e,n,t){t.d(n,{A:()=>Oe});var o=t(39471),r=t(8456),i=t(87073),a=t.n(i),c=t(82195),l=t(12888),s=t(53718),u=t(96046),m=t(60901),f=t(30462);function d(){return{width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}var p=t(39474),g=t(32702),v=t(71419),h=t(83282),w=t(68652),b=t(39105),C=o.createContext(null);const A=function(e){var n=e.visible,t=e.maskTransitionName,r=e.getContainer,i=e.prefixCls,c=e.rootClassName,u=e.icons,m=e.countRender,f=e.showSwitch,d=e.showProgress,p=e.current,g=e.transform,v=e.count,A=e.scale,y=e.minScale,x=e.maxScale,S=e.closeIcon,I=e.onActive,E=e.onClose,k=e.onZoomIn,N=e.onZoomOut,M=e.onRotateRight,R=e.onRotateLeft,z=e.onFlipX,O=e.onFlipY,T=e.onReset,j=e.toolbarRender,L=e.zIndex,P=e.image,Y=(0,o.useContext)(C),D=u.rotateLeft,$=u.rotateRight,X=u.zoomIn,H=u.zoomOut,B=u.close,Z=u.left,W=u.right,V=u.flipX,F=u.flipY,G="".concat(i,"-operations-operation");o.useEffect(function(){var e=function(e){e.keyCode===h.A.ESC&&E()};return n&&window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}},[n]);var _=function(e,n){e.preventDefault(),e.stopPropagation(),I(n)},U=o.useCallback(function(e){var n=e.type,t=e.disabled,r=e.onClick,c=e.icon;return o.createElement("div",{key:n,className:a()(G,"".concat(i,"-operations-operation-").concat(n),(0,s.A)({},"".concat(i,"-operations-operation-disabled"),!!t)),onClick:r},c)},[G,i]),Q=f?U({icon:Z,onClick:function(e){return _(e,-1)},type:"prev",disabled:0===p}):void 0,J=f?U({icon:W,onClick:function(e){return _(e,1)},type:"next",disabled:p===v-1}):void 0,q=U({icon:F,onClick:O,type:"flipY"}),K=U({icon:V,onClick:z,type:"flipX"}),ee=U({icon:D,onClick:R,type:"rotateLeft"}),ne=U({icon:$,onClick:M,type:"rotateRight"}),te=U({icon:H,onClick:N,type:"zoomOut",disabled:A<=y}),oe=U({icon:X,onClick:k,type:"zoomIn",disabled:A===x}),re=o.createElement("div",{className:"".concat(i,"-operations")},q,K,ee,ne,te,oe);return o.createElement(b.Ay,{visible:n,motionName:t},function(e){var n=e.className,t=e.style;return o.createElement(w.A,{open:!0,getContainer:null!=r?r:document.body},o.createElement("div",{className:a()("".concat(i,"-operations-wrapper"),n,c),style:(0,l.A)((0,l.A)({},t),{},{zIndex:L})},null===S?null:o.createElement("button",{className:"".concat(i,"-close"),onClick:E},S||B),f&&o.createElement(o.Fragment,null,o.createElement("div",{className:a()("".concat(i,"-switch-left"),(0,s.A)({},"".concat(i,"-switch-left-disabled"),0===p)),onClick:function(e){return _(e,-1)}},Z),o.createElement("div",{className:a()("".concat(i,"-switch-right"),(0,s.A)({},"".concat(i,"-switch-right-disabled"),p===v-1)),onClick:function(e){return _(e,1)}},W)),o.createElement("div",{className:"".concat(i,"-footer")},d&&o.createElement("div",{className:"".concat(i,"-progress")},m?m(p+1,v):o.createElement("bdi",null,"".concat(p+1," / ").concat(v))),j?j(re,(0,l.A)((0,l.A)({icons:{prevIcon:Q,nextIcon:J,flipYIcon:q,flipXIcon:K,rotateLeftIcon:ee,rotateRightIcon:ne,zoomOutIcon:te,zoomInIcon:oe},actions:{onActive:I,onFlipY:O,onFlipX:z,onRotateLeft:R,onRotateRight:M,onZoomOut:N,onZoomIn:k,onReset:T,onClose:E},transform:g},Y?{current:p,total:v}:{}),{},{image:P})):re)))})};var y=t(46523),x=t(70990),S={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1},I=t(52415);function E(e,n,t,o){var r=n+t,i=(t-o)/2;if(t>o){if(n>0)return(0,s.A)({},e,i);if(n<0&&r<o)return(0,s.A)({},e,-i)}else if(n<0||r>o)return(0,s.A)({},e,n<0?i:-i);return{}}function k(e,n,t,o){var r=d(),i=r.width,a=r.height,c=null;return e<=i&&n<=a?c={x:0,y:0}:(e>i||n>a)&&(c=(0,l.A)((0,l.A)({},E("x",t,e,i)),E("y",o,n,a))),c}function N(e){var n=e.src,t=e.isCustomPlaceholder,r=e.fallback,i=(0,o.useState)(t?"loading":"normal"),a=(0,u.A)(i,2),c=a[0],l=a[1],s=(0,o.useRef)(!1),m="error"===c;(0,o.useEffect)(function(){var e=!0;return function(e){return new Promise(function(n){if(e){var t=document.createElement("img");t.onerror=function(){return n(!1)},t.onload=function(){return n(!0)},t.src=e}else n(!1)})}(n).then(function(n){!n&&e&&l("error")}),function(){e=!1}},[n]),(0,o.useEffect)(function(){t&&!s.current?l("loading"):m&&l("normal")},[n]);var f=function(){l("normal")};return[function(e){s.current=!1,"loading"===c&&null!=e&&e.complete&&(e.naturalWi
2dth||e.naturalHeight)&&(s.current=!0,f())},m&&r?{src:r}:{onLoad:f,src:n},c]}function M(e,n){var t=e.x-n.x,o=e.y-n.y;return Math.hypot(t,o)}var R=["fallback","src","imgRef"],z=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],O=function(e){var n=e.fallback,t=e.src,r=e.imgRef,i=(0,f.A)(e,R),a=N({src:t,fallback:n}),l=(0,u.A)(a,2),s=l[0],m=l[1];return o.createElement("img",(0,c.A)({ref:function(e){r.current=e,s(e)}},i,m))};const T=function(e){var n=e.prefixCls,t=e.src,r=e.alt,i=e.imageInfo,m=e.fallback,p=e.movable,w=void 0===p||p,b=e.onClose,E=e.visible,N=e.icons,R=void 0===N?{}:N,T=e.rootClassName,j=e.closeIcon,L=e.getContainer,P=e.current,Y=void 0===P?0:P,D=e.count,$=void 0===D?1:D,X=e.countRender,H=e.scaleStep,B=void 0===H?.5:H,Z=e.minScale,W=void 0===Z?1:Z,V=e.maxScale,F=void 0===V?50:V,G=e.transitionName,_=void 0===G?"zoom":G,U=e.maskTransitionName,Q=void 0===U?"fade":U,J=e.imageRender,q=e.imgCommonProps,K=e.toolbarRender,ee=e.onTransform,ne=e.onChange,te=(0,f.A)(e,z),oe=(0,o.useRef)(),re=(0,o.useContext)(C),ie=re&&$>1,ae=re&&$>=1,ce=(0,o.useState)(!0),le=(0,u.A)(ce,2),se=le[0],ue=le[1],me=function(e,n,t,r){var i=(0,o.useRef)(null),a=(0,o.useRef)([]),c=(0,o.useState)(S),s=(0,u.A)(c,2),m=s[0],f=s[1],p=function(e,n){
2null===i.current&&(a.current=[],i.current=(0,x.A)(function(){f(function(e){var t=e;return a.current.forEach(function(e){t=(0,l.A)((0,l.A)({},t),e)}),i.current=null,null==r||r({transform:t,action:n}),t})})),a.current.push((0,l.A)((0,l.A)({},m),e))};return{transform:m,resetTransform:function(e){f(S),(0,y.A)(S,m)||null==r||r({transform:S,action:e})},updateTransform:p,dispatchZoomChange:function(o,r,i,a,c){var l=e.current,s=l.width,u=l.height,f=l.offsetWidth,g=l.offsetHeight,v=l.offsetLeft,h=l.offsetTop,w=o,b=m.scale*o;b>t?(b=t,w=t/m.scale):b<n&&(w=(b=c?b:n)/m.scale);var C=null!=i?i:innerWidth/2,A=null!=a?a:innerHeight/2,y=w-1,x=y*s*.5,S=y*u*.5,I=y*(C-m.x-v),E=y*(A-m.y-h),k=m.x-(I-x),N=m.y-(E-S);if(o<1&&1===b){var M=f*b,R=g*b,z=d(),O=z.width,T=z.height;M<=O&&R<=T&&(k=0,N=0)}p({x:k,y:N,scale:b},r)}}}(oe,W,F,ee),fe=me.transform,de=me.resetTransform,pe=me.updateTransform,ge=me.dispatchZoomChange,ve=function(e,n,t,r,i,a,c){var s=i.rotate,m=i.scale,f=i.x,d=i.y,p=(0,o.useState)(!1),g=(0,u.A)(p,2),h=g[0],w=g[1],b=(0,o.useRef)({diffX:0,diffY:0,transformX:0,transformY:0}),C=function(e){t&&h&&a({x:e.pageX-b.current.diffX,y:e.pageY-b.current.diffY},"move")},A=function(){if(t&&h){w(!1);var n=b.current,o=n.transformX,r=n.transformY;if(f===o||d===r)return;var i=e.current.offsetWidth*m,c=e.current.offsetHeight*m,u=e.current.getBoundingClientRect(),p=u.left,g=u.top,v=s%180!=0,C=k(v?c:i,v?i:c,p,g);C&&a((0,l.A)({},C),"dragRebound")}};return(0,o.useEffect)(function(){var e,t,o,r;if(n){o=(0,v.A)(window,"mouseup",A,!1),r=(0,v.A)(window,"mousemove",C,!1);try{window.top!==window.self&&(e=(0,v.A)(window.top,"mouseup",A,!1),t=(0,v.A)(window.top,"mousemove",C,!1))}catch(e){(0,I.$e)(!1,"[rc-image] ".concat(e))}}return function(){var n,i,a,c;null===(n=o)||void 0===n||n.remove(),null===(i=r)||void 0===i||i.remove(),null===(a=e)||void 0===a||a.remove(),null===(c=t)||void 0===c||c.remove()}},[t,h,f,d,s,n]),{isMoving:h,onMouseDown:function(e){n&&0===e.button&&(e.preventDefault(),e.stopPropagation(),b.current={diffX:e.pageX-f,diffY:e.pageY-d,transformX:f,transformY:d},w(!0))},onMouseMove:C,onMouseUp:A,onWheel:function(e){if(t&&0!=e.deltaY){var n=Math.abs(e.deltaY/100),o=1+Math.min(n,1)*r;e.deltaY>0&&(o=1/o),c(o,"wheel",e.clientX,e.clientY)}}}}(oe,w,E,B,fe,pe,ge),he=ve.isMoving,we=ve.onMouseDown,be=ve.onWheel,Ce=function(e,n,t,r,i,a,c){var s=i.rotate,m=i.scale,f=i.x,d=i.y,p=(0,o.useState)(!1),g=(0,u.A)(p,2),h=g[0],w=g[1],b=(0,o.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),C=function(e){b.current=(0,l.A)((0,l.A)({},b.current),e)};return(0,o.useEffect)(function(){var e;return t&&n&&(e=(0,v.A)(window,"touchmove",function(e){return e.preventDefault()},{passive:!1})),function(){var n;null===(n=e)||void 0===n||n.remove()}},[t,n]),{isTouching:h,onTouchStart:function(e){if(n){e.stopPropagation(),w(!0);var t=e.touches,o=void 0===t?[]:t;o.length>1?C({point1:{x:o[0].clientX,y:o[0].clientY},point2:{x:o[1].clientX,y:o[1].clientY},eventType:"touchZoom"}):C({point1:{x:o[0].clientX-f,y:o[0].clientY-d},eventType:"move"})}},onTouchMove:function(e){var n=e.touches,t=void 0===n?[]:n,o=b.current,r=o.point1,i=o.point2,l=o.eventType;if(t.length>1&&"touchZoom"===l){var s={x:t[0].clientX,y:t[0].clientY},m={x:t[1].clientX,y:t[1].clientY},f=function(e,n,t,o){var r=M(e,t),i=M(n,o);if(0===r&&0===i)return[e.x,e.y];var a=r/(r+i);return[e.x+a*(n.x-e.x),e.y+a*(n.y-e.y)]}(r,i,s,m),d=(0,u.A)(f,2),p=d[0],g=d[1],v=M(s,m)/M(r,i);c(v,"touchZoom",p,g,!0),C({point1:s,point2:m,eventType:"touchZoom"})}else"move"===l&&(a({x:t[0].clientX-r.x,y:t[0].clientY-r.y},"move"),C({eventType:"move"}))},onTouchEnd:function(){if(t){if(h&&w(!1),C({eventType:"none"}),r>m)return a({x:0,y:0,scale:r},"touchZoom");var n=e.current.offsetWidth*m,o=e.current.offsetHeight*m,i=e.current.getBoundingClientRect(),c=i.left,u=i.top,f=s%180!=0,d=k(f?o:n,f?n:o,c,u);d&&a((0,l.A)({},d),"dragRebound")}}}}(oe,w,E,W,fe,pe,ge),Ae=Ce.isTouching,ye=Ce.onTouchStart,xe=Ce.onTouchMove,Se=Ce.onTouchEnd,Ie=fe.rotate,Ee=fe.scale,ke=a()((0,s.A)({},"".concat(n,"-moving"),he));(0,o.useEffect)(function(){se||ue(!0)},[se]);var Ne=function(e){var n=Y+e;!Number.isInteger(n)||n<0||n>$-1||(ue(!1),de(e<0?"prev":"next"),null==ne||ne(n,Y))},Me=function(e){E&&ie&&(e.keyCode===h.A.LEFT?Ne(-1):e.keyCode===h.A.RIGHT&&Ne(1))};(0,o.useEffect)(function(){var e=(0,v.A)(window,"keydown",Me,!1);return function(){e.remove()}},[E,ie,Y]);var Re=o.createElement(O,(0,c.A)({},q,{width:e.width,height:e.height,imgRef:oe,className:"".concat(n,"-img"),alt:r,style:{transform:"translate3d(".concat(fe.x,"px, ").concat(fe.y,"px, 0) scale3d(").concat(fe.flipX?"-":"").concat(Ee,", ").concat(fe.flipY?"-":"").concat(Ee,", 1) rotate(").concat(Ie,"deg)"),transitionDuration:(!se||Ae)&&"0s"},fallback:m,src:t,onWheel:be,onMouseDown:we,onDoubleClick:function(e){E&&(1!==Ee?pe({x:0,y:0,scale:1},"doubleClick"):ge(1+B,"doubleClick",e.clientX,e.clientY))},onTouchStart:ye,onTouchMove:xe,onTouchEnd:Se,onTouchCancel:Se})),ze=(0,l.A)({url:t,alt:r},i);return o.createElement(o.Fragment,null,o.createElement(g.A,(0,c.A)({transitionName:_,maskTransitionName:Q,closable:!1,keyboard:!0,prefixCls:n,onClose:b,visible:E,classNames:{wrapper:ke},rootClassName:T,getContainer:L},te,{afterClose:function(){de("close")}}),o.createElement("div",{className:"".concat(n,"-img-wrapper")},J?J(Re,(0,l.A)({transform:fe,image:ze},re?{current:Y}:{})):Re)),o.createElement(A,{visible:E,transform:fe,maskTransitionName:Q,closeIcon:j,getContainer:L,prefixCls:n,rootClassName:T,icons:R,countRender:X,showSwitch:ie,showProgress:ae,current:Y,count:$,scale:Ee,minScale:W,maxScale:F,toolbarRender:K,onActive:Ne,onZoomIn:function(){ge(1+B,"zoomIn")},onZoomOut:function(){ge(1/(1+B),"zoomOut")},onRotateRight:function(){pe({rotate:Ie+90},"rotateRight")},onRotateLeft:function(){pe({rotate:Ie-90},"rotateLeft")},onFlipX:function(){pe({flipX:!fe.flipX},"flipX")},onFlipY:function(){pe({flipY:!fe.flipY},"flipY")},onClose:b,onReset:function(){de("reset")},zIndex:void 0!==te.zIndex?te.zIndex+1:void 0,image:ze}))};var j=t(71555),L=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],P=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],Y=["src"];var D=0,$=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],X=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","
2imageRender","toolbarRender"],H=function(e){var n=e.src,t=e.alt,r=e.onPreviewClose,i=e.prefixCls,d=void 0===i?"rc-image":i,g=e.previewPrefixCls,v=void 0===g?"".concat(d,"-preview"):g,h=e.placeholder,w=e.fallback,b=e.width,A=e.height,y=e.style,x=e.preview,S=void 0===x||x,I=e.className,E=e.onClick,k=e.onError,M=e.wrapperClassName,R=e.wrapperStyle,z=e.rootClassName,O=(0,f.A)(e,$),j=h&&!0!==h,P="object"===(0,m.A)(S)?S:{},Y=P.src,H=P.visible,B=void 0===H?void 0:H,Z=P.onVisibleChange,W=void 0===Z?r:Z,V=P.getContainer,F=void 0===V?void 0:V,G=P.mask,_=P.maskClassName,U=P.movable,Q=P.icons,J=P.scaleStep,q=P.minScale,K=P.maxScale,ee=P.imageRender,ne=P.toolbarRender,te=(0,f.A)(P,X),oe=null!=Y?Y:n,re=(0,p.A)(!!B,{value:B,onChange:W}),ie=(0,u.A)(re,2),ae=ie[0],ce=ie[1],le=N({src:n,isCustomPlaceholder:j,fallback:w}),se=(0,u.A)(le,3),ue=se[0],me=se[1],fe=se[2],de=(0,o.useState)(null),pe=(0,u.A)(de,2),ge=pe[0],ve=pe[1],he=(0,o.useContext)(C),we=!!S,be=a()(d,M,z,(0,s.A)({},"".concat(d,"-error"),"error"===fe)),Ce=(0,o.useMemo)(function(){var n={};return L.forEach(function(t){void 0!==e[t]&&(n[t]=e[t])}),n},L.map(function(n){return e[n]})),Ae=function(e,n){var t=o.useState(function(){return String(D+=1)}),r=(0,u.A)(t,1)[0],i=o.useContext(C),a={data:n,canPreview:e};return o.useEffect(function(){if(i)return i.register(r,a)},[]),o.useEffect(function(){i&&i.register(r,a)},[e,n]),r}(we,(0,o.useMemo)(function(){return(0,l.A)((0,l.A)({},Ce),{},{src:oe})},[oe,Ce]));return o.createElement(o.Fragment,null,o.createElement("div",(0,c.A)({},O,{className:be,onClick:we?function(e){var n,t,o=(n=e.target.getBoundingClientRect(),t=document.documentElement,{left:n.left+(window.pageXOffset||t.scrollLeft)-(t.clientLeft||document.body.clientLeft||0),top:n.top+(window.pageYOffset||t.scrollTop)-(t.clientTop||document.body.clientTop||0)}),r=o.left,i=o.top;he?he.onPreview(Ae,oe,r,i):(ve({x:r,y:i}),ce(!0)),null==E||E(e)}:E,style:(0,l.A)({width:b,height:A},R)}),o.createElement("img",(0,c.A)({},Ce,{className:a()("".concat(d,"-img"),(0,s.A)({},"".concat(d,"-img-placeholder"),!0===h),I),style:(0,l.A)({height:A},y),ref:ue},me,{width:b,height:A,onError:k})),"loading"===fe&&o.createElement("div",{"aria-hidden":"true",className:"".concat(d,"-placeholder")},h),G&&we&&o.createElement("div",{className:a()("".concat(d,"-mask"),_),style:{display:"none"===(null==y?void 0:y.display)?"none":void 0}},G)),!he&&we&&o.createElement(T,(0,c.A)({"aria-hidden":!ae,visible:ae,prefixCls:v,onClose:function(){ce(!1),ve(null)},mousePosition:ge,src:oe,alt:t,imageInfo:{width:b,height:A},fallback:w,getContainer:F,icons:Q,movable:U,scaleStep:J,minScale:q,maxScale:K,rootClassName:z,imageRender:ee,imgCommonProps:Ce,toolbarRender:ne},te)))};H.PreviewGroup=function(e){var n,t=e.previewPrefixCls,r=void 0===t?"rc-image-preview":t,i=e.children,a=e.icons,d=void 0===a?{}:a,g=e.items,v=e.preview,h=e.fallback,w="object"===(0,m.A)(v)?v:{},b=w.visible,A=w.onVisibleChange,y=w.getContainer,x=w.current,S=w.movable,I=w.minScale,E=w.maxScale,k=w.countRender,N=w.closeIcon,M=w.onChange,R=w.onTransform,z=w.toolbarRender,O=w.imageRender,D=(0,f.A)(w,P),$=function(e){var n=o.useState({}),t=(0,u.A)(n,2),r=t[0],i=t[1],a=o.useCallback(function(e,n){return i(function(t){return(0,l.A)((0,l.A)({},t),{},(0,s.A)({},e,n))}),function(){i(function(n){var t=(0,l.A)({},n);return delete t[e],t})}},[]);return[o.useMemo(function(){return e?e.map(function(e){if("string"==typeof e)return{data:{src:e}};var n={};return Object.keys(e).forEach(function(t){["src"].concat((0,j.A)(L)).includes(t)&&(n[t]=e[t])}),{data:n}}):Object.keys(r).reduce(function(e,n){var t=r[n],o=t.canPreview,i=t.data;return o&&e.push({data:i,id:n}),e},[])},[e,r]),a,!!e]}(g),X=(0,u.A)($,3),H=X[0],B=X[1],Z=X[2],W=(0,p.A)(0,{value:x}),V=(0,u.A)(W,2),F=V[0],G=V[1],_=(0,o.useState)(!1),U=(0,u.A)(_,2),Q=U[0],J=U[1],q=(null===(n=H[F])||void 0===n?void 0:n.data)||{},K=q.src,ee=(0,f.A)(q,Y),ne=(0,p.A)(!!b,{value:b,onChange:function(e,n){
2null==A||A(e,n,F)}}),te=(0,u.A)(ne,2),oe=te[0],re=te[1],ie=(0,o.useState)(null),ae=(0,u.A)(ie,2),ce=ae[0],le=ae[1],se=o.useCallback(function(e,n,t,o){var r=Z?H.findIndex(function(e){return e.data.src===n}):H.findIndex(function(n){return n.id===e});G(r<0?0:r),re(!0),le({x:t,y:o}),J(!0)},[H,Z]);o.useEffect(function(){oe?Q||G(0):J(!1)},[oe]);var ue=o.useMemo(function(){return{register:B,onPreview:se}},[B,se]);return o.createElement(C.Provider,{value:ue},i,o.createElement(T,(0,c.A)({"aria-hidden":!oe,movable:S,visible:oe,prefixCls:r,closeIcon:N,onClose:function(){re(!1),le(null)},mousePosition:ce,imgCommonProps:ee,src:K,fallback:h,icons:d,minScale:I,maxScale:E,getContainer:y,current:F,count:H.length,countRender:k,onTransform:R,toolbarRender:z,imageRender:O,onChange:function(e,n){G(e),null==M||M(e,n)}},D)))};const B=H;var Z=t(36104),W=t(87966),V=t(11092),F=t(26819),G=t(87038),_=t(17138),U=t(62659),Q=t(4509);const J={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"};var q=t(72812),K=function(e,n){return o.createElement(q.A,(0,c.A)({},e,{ref:n,icon:J}))};const ee=o.forwardRef(K),ne={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"};var te=function(e,n){return o.createElement(q.A,(0,c.A)({},e,{ref:n,icon:ne}))};const oe=o.forwardRef(te),re={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"};var ie=function(e,n){return o.createElement(q.A,(0,c.A)({},e,{ref:n,icon:re}))};const ae=o.forwardRef(ie),ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"};var le=function(e,n){return o.createElement(q.A,(0,c.A)({},e,{ref:n,icon:ce}))};const se=o.forwardRef(le),ue={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"};var me=function(e,n){return o.createElement(q.A,(0,c.A)({},e,{ref:n,icon:ue}))};const fe=o.forwardRef(me);var de=t(30348),pe=t(19379),ge=t(82788),ve=t(93042),he=t(68138),we=t(6307),be=t(67403),Ce=t(85391);const Ae=e=>({position:e||"absolute",inset:0}),ye=e=>{const{iconCls:n,motionDurationSlow:t,paddingXXS:o,marginXXS:r,prefixCls:i,colorTextLightSolid:a}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:a,background:new pe.Y("#000").setA(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${t}`,[`.${i}-mask-info`]:Object.assign(Object.assign({},ve.L9),{padding:`0 ${(0,de.zA)(o)}`,[n]:{marginInlineEnd:r,svg:{verticalAlign:"baseline"}}})}},xe=e=>{const{previewCls:n,modalMaskBg:t,paddingSM:o,marginXL:r,margin:i,paddingLG:a,previewOperationColorDisabled:c,previewOperationHoverColor:l,motionDurationSlow:s,iconCls:u,colorTextLightSolid:m}=e,f=new pe.Y(t).setA(.1),d=f.clone().setA(.2);return{[`${n}-footer`]:{position:"fixed",bottom:r,left:{_skip_check_:!0,value:"50%"},display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor,transform:"translateX(-50%)"},[`${n}-progress`]:{marginBottom:i},[`${n}-close`]:{position:"fixed",top:r,right:{_skip_check_:!0,value:r},display:"flex",color:m,backgroundColor:f.toRgbString(),borderRadius:"50%",padding:o,outline:0,border:0,cursor:"pointer",transition:`all ${s}`,"&:hover":{backgroundColor:d.toRgbString()},[`& > ${u}`]:{fontSize:e.previewOperationSize}},[`${n}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${(0,de.zA)(a)}`,backgroundColor:f.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:o,padding:o,cursor:"pointer",transition:`all ${s}`,userSelect:"none",[`&:not(${n}-operations-operation-disabled):hover > ${u}`]:{color:l},"&-disabled":{color:c,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${u}`]:{fontSize:e.previewOperationSize}}}}},Se=e=>{const{modalMaskBg:n,iconCls:t,previewOperationColorDisabled:o,previewCls:r,zIndexPopup:i,motionDurationSlow:a}=e,c=new pe.Y(n).setA(.1),l=c.clone().setA(.2);return{[`${r}-switch-left, ${r}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(i).add(1).equal(),display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:e.calc(e.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:e.previewOperationColor,background:c.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${a}`,userSelect:"none","&:hover":{background:l.toRgbString()},"&-disabled":{"&, &:hover":{color:o,background:"transparent",curs
2or:"not-allowed",[`> ${t}`]:{cursor:"not-allowed"}}},[`> ${t}`]:{fontSize:e.previewOperationSize}},[`${r}-switch-left`]:{insetInlineStart:e.marginSM},[`${r}-switch-right`]:{insetInlineEnd:e.marginSM}}},Ie=e=>{const{motionEaseOut:n,previewCls:t,motionDurationSlow:o,componentCls:r}=e;return[{[`${r}-preview-root`]:{[t]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${t}-body`]:Object.assign(Object.assign({},Ae()),{overflow:"hidden"}),[`${t}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${o} ${n} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},Ae()),{transition:`transform ${o} ${n} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${t}-moving`]:{[`${t}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${r}-preview-root`]:{[`${t}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${r}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal()},"&":[xe(e),Se(e)]}]},Ee=e=>{const{componentCls:n}=e;return{[n]:{position:"relative",display:"inline-block",[`${n}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${n}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${n}-mask`]:Object.assign({},ye(e)),[`${n}-mask:hover`]:{opacity:1},[`${n}-placeholder`]:Object.assign({},Ae())}}},ke=e=>{const{previewCls:n}=e;return{[`${n}-root`]:(0,he.aB)(e,"zoom"),"&":(0,we.p9)(e,!0)}},Ne=(0,be.OF)("Image",e=>{const n=`${e.componentCls}-preview`,t=(0,Ce.oX)(e,{previewCls:n,modalMaskBg:new pe.Y("#000").setA(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[Ee(t),Ie(t),(0,ge.Dk)((0,Ce.oX)(t,{componentCls:n})),ke(t)]},e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new pe.Y(e.colorTextLightSolid).setA(.65).toRgbString(),previewOperationHoverColor:new pe.Y(e.colorTextLightSolid).setA(.85).toRgbString(),previewOperationColorDisabled:new pe.Y(e.colorTextLightSolid).setA(.25).toRgbString(),previewOperationSize:1.5*e.fontSizeIcon}));const Me={rotateLeft:o.createElement(ee,null),rotateRight:o.createElement(oe,null),zoomIn:o.createElement(se,null),zoomOut:o.createElement(fe,null),close:o.createElement(_.A,null),left:o.createElement(U.A,null),right:o.createElement(Q.A,null),flipX:o.createElement(ae,null),flipY:o.createElement(ae,{rotate:90})};var Re=function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)n.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(t[o[r]]=e[o[r]])}return t};const ze=e=>{const{prefixCls:n,preview:t,className:i,rootClassName:c,style:l,fallback:s}=e,u=Re(e,["prefixCls","preview","className","rootClassName","style","fallback"]),{getPrefixCls:m,getPopupContainer:f,className:d,style:p,preview:g,fallback:v}=(0,V.TP)("image"),[h]=(0,G.A)("Image"),w=m("image",n),b=m(),C=(0,F.A)(w),[A,y,x]=Ne(w,C),S=a()(c,y,x,C),I=a()(i,y,d),[E]=(0,Z.YK)("ImagePreview","object"==typeof t?t.zIndex:void 0),k=o.useMemo(()=>{if(!1===t)return t;const e="object"==typeof t?t:{},{getContainer:n,closeIcon:i,rootClassName:c,destroyOnClose:l,destroyOnHidden:s}=e,u=Re(e,["getContainer","closeIcon","rootClassName","destroyOnClose","destroyOnHidden"]);return Object.assign(Object.assign({mask:o.createElement("div",{className:`${w}-mask-info`},o.createElement(r.A,null),null==h?void 0:h.preview),icons:Me},u),{destroyOnClose:null!=s?s:l,rootClassName:a()(S,c),getContainer:null!=n?n:f,transitionName:(0,W.b)(b,"zoom",e.transitionName),maskTransitionName:(0,W.b)(b,"fade",e.maskTransitionName),zIndex:E,closeIcon:null!=i?i:null==g?void 0:g.closeIcon})},[t,h,null==g?void 0:g.closeIcon]),N=Object.assign(Object.assign({},p),l),M=null!=s?s:v;return A(o.createElement(B,Object.assign({prefixCls:w,preview:k,rootClassName:S,className:I,style:N,fallback:M},u)))};ze.PreviewGroup=e=>{var{previewPrefixCls:n,preview:t}=e,r=function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)n.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(t[o[r]]=e[o[r]])}return t}(e,["previewPrefixCls","preview"]);const{getPrefixCls:i,direction:c}=o.useContext(V.QO),l=i("image",n),s=`${l}-preview`,u=i(),m=(0,F.A)(l),[f,d,p]=Ne(l,m),[g]=(0,Z.YK)("ImagePreview","object"==typeof t?t.zIndex:void 0),v=o.useMemo(()=>Object.assign(Object.assign({},Me),{left:"rtl"===c?o.createElement(Q.A,null):o.createElement(U.A,null),right:"rtl"===c?o.createElement(U.A,null):o.createElement(Q.A,null)}),[c]),h=o.useMemo(()=>{var e;if(!1===t)return t;const n="object"==typeof t?t:{},o=a()(d,p,m,null!==(e=n.rootClassName)&&void 0!==e?e:"");return Object.assign(Object.assign({},n),{transitionName:(0,W.b)(u,"zoom",n.transitionName),maskTransitionName:(0,W.b)(u,"fade",n.maskTransitionName),rootClassName:o,zIndex:g})},[t,u,g,d,p,m]);return f(o.createElement(B.PreviewGroup,Object.assign({preview:h,previewPrefixCls:s,icons:v},r)))};const Oe=ze}}]);

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.