1import{ar as e,ah as t,ao as n,X as r,ai as a,ak as s,cl as o,cm as i,al as c,aC as l,ba as d,cn as m,bu as u,Z as p,aH as g,aJ as f,a0 as h,a1 as v,a3 as _,aX as b,aK as y,a2 as x,V as w,a5 as j,a7 as N,b0 as C,ac as S,a6 as I,r as k,c as E,j as M,f as $,u as R,M as T}from"./index-6mNIYlY5.js";import{b as L,c as z,m as O,f as D}from"./vendor-Djj3d9fT.js";import{s as A,a as P}from"./shareUtils-B6lNDBGH.js";import{F as W}from"./index-DbNcIuGr.js";import{K as B}from"./KeyCode-_5CS0hxx.js";import{a as Y,R as H}from"./LeftOutlined-CSBK4d8r.js";import{u as X}from"./upload-C-Hc8sBt.js";const F=L.createContext(null);function q(){return{width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}const U={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function Z(e,t,n,r){const a=t+n,s=(n-r)/2;if(n>r){if(t>0)return{[e]:s};if(t<0&&a<r)return{[e]:-s}}else if(t<0||a>r)return{[e]:t<0?s:-s};return{}}function G(e,t,n,r){const{width:a,height:s}=q();let o=null;return e<=a&&t<=s?o={x:0,y:0}:(e>a||t>s)&&(o={...Z("x",n,e,a),...Z("y",r,t,s)}),o}function V({src:e,isCustomPlaceholder:t,fallback:n}){const[r,a]=L.useState(t?"loading":"normal"),s=L.useRef(!1),o="error"===r;L.useEffect(()=>{let t=!0;return function(e){return new Promise(t=>{if(!e)return void t(!1);const n=document.createElement("img");n.onerror=()=>t(!1),n.onload=()=>t(!0),n.src=e})}(e).then(e=>{!e&&t&&a("error")}),()=>{t=!1}},[e]),L.useEffect(()=>{t&&!s.current?a("loading"):o&&a("normal")},[e]);const i=()=>{a("normal")};return[e=>{s.current=!1,"loading"===r&&e?.complete&&(e.naturalWidth||e.naturalHeight)&&(s.current=!0,i())},o&&n?{src:n}:{onLoad:i,src:e},r]}function J(e,t){const n=e.x-t.x,r=e.y-t.y;return Math.hypot(n,r)}function Q(e,t,n,r,a,s,o){const{rotate:i,scale:c,x:l,y:d}=a,[m,u]=L.useState(!1),p=L.useRef({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),g=e=>{p.current={...p.current,...e}};return L.useEffect(()=>{const e=e=>{e.preventDefault()};return n&&t&&window.addEventListener("touchmove",e,{passive:!1}),()=>{window.removeEventListener("touchmove",e)}},[n,t]),{isTouching:m,onTouchStart:e=>{if(!t)return;e.stopPropagation(),u(!0);const{touches:n=[]}=e;n.length>1?g({point1:{x:n[0].clientX,y:n[0].clientY},point2:{x:n[1].clientX,y:n[1].clientY},eventType:"touchZoom"}):g({point1:{x:n[0].clientX-l,y:n[0].clientY-d},eventType:"move"})},onTouchMove:e=>{const{touches:t=[]}=e,{point1:n,point2:r,eventType:a}=p.current;if(t.length>1&&"touchZoom"===a){const e={x:t[0].clientX,y:t[0].clientY},a={x:t[1].clientX,y:t[1].clientY},[s,i]=function(e,t,n,r){const a=J(e,n),s=J(t,r);if(0===a&&0===s)return[e.x,e.y];const o=a/(a+s);return[e.x+o*(t.x-e.x),e.y+o*(t.y-e.y)]}(n,r,e,a),c=J(e,a)/J(n,r);o(c,"touchZoom",s,i,!0),g({point1:e,point2:a,eventType:"touchZoom"})}else"move"===a&&(s({x:t[0].clientX-n.x,y:t[0].clientY-n.y},"move"),g({eventType:"move"}))},onTouchEnd:()=>{if(!n)return;if(m&&u(!1),g({eventType:"none"}),r>c)return s({x:0,y:0,scale:r},"touchZoom");const t=e.current.offsetWidth*c,a=e.current.offsetHeight*c,{left:o,top:l}=e.current.getBoundingClientRect(),d=i%180!=0,p=G(d?a:t,d?t:a,o,l);p&&s({...p},"dragRebound")}}}function K(e){const{prefixCls:t,icon:n,onClick:a,className:s,style:o}=e;return L.createElement("button",{className:r(`${t}-close`,s),style:o,onClick:a},n)}function ee(e){const{prefixCls:t,showProgress:n,current:a,count:s,showSwitch:o,classNames:i,styles:c,icons:l,image:d,transform:m,countRender:u,actionsRender:p,scale:g,minScale:f,maxScale:h,onActive:v,onFlipY:_,onFlipX:b,onRotateLeft:y,onRotateRight:x,onZoomOut:w,onZoomIn:j,onClose:N,onReset:C}=e,{left:S,right:I,prev:k,next:E,flipY:M,flipX:$,rotateLeft:R,rotateRight:T,zoomOut:z,zoomIn:O}=l,D=n&&L.createElement("div",{className:`${t}-progress`},u?u(a+1,s):L.createElement("bdi",null,`${a+1} / ${s}`)),A=`${t}-actions-action`,P=({type:e,disabled:t,onClick:n,icon:a})=>L.createElement("button",{type:"button",key:e,className:r(A,`${A}-${e}`,{[`${A}-disabled`]:!!t}),onClick:n,disabled:!!t,"aria-label":e},a),W=o?P({icon:k??S,onClick:()=>v(-1),type:"prev",disabled:0===a}):void 0,B=o?P({icon:E??I,onClick:()=>v(1),type:"next",disabled:a===s-1}):void 0,Y=P({icon:M,onClick:_,type:"flipY"}),H=P({icon:$,onClick:b,type:"flipX"}),X=P({icon:R,onClick:y,type:"rotateLeft"}),F=P({icon:T,onClick:x,type:"rotateRight"}),q=P({icon:z,onClick:w,type:"zoomOut",disabled:g<=f}),U=P({icon:O,onClick:j,type:"zoomIn",disabled:g===h}),Z=L.createElement("div",{className:r(`${t}-actions`,i.actions),style:c.actions},Y,H,X,F,q,U);return L.createElement("div",{className:r(`${t}-footer`,i.footer),style:c.footer},D,p?p(Z,{icons:{prevIcon:W,nextIcon:B,flipYIcon:Y,flipXIcon:H,rotateLeftIcon:X,rotateRightIcon:F,zoomOutIcon:q,zoomInIcon:U},actions:{onActive:v,onFlipY:_,onFlipX:b,onRotateLeft:y,onRotateRight:x,onZoomOut:w,onZoomIn:j,onReset:C,onClose:N},transform:m,current:a,total:s,image:d}):Z)}function te(e){const{prefixCls:t,onActive:n,current:a,count:s,icons:{left:o,right:i,prev:c,next:l}}=e,d=`${t}-switch`,m=0===a,u=a===s-1;return L.createElement(L.Fragment,null,L.createElement("button",{className:r(d,`${d}-prev`,{[`${d}-disabled`]:m}),onClick:()=>n(-1),disabled:m},c??o),L.createElement("button",{type:"button",className:r(d,`${d}-next`,{[`${d}-disabled`]:u}),onClick:()=>n(1),disabled:u},l??i))}function ne(){return ne=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ne.apply(this,arguments)}const re=({fallback:e,src:t,imgRef:n,...r})=>{const[a,s]=V({src:t,fallback:e});return z.createElement("img",ne({ref:e=>{n.current=e,a(e)}},r,s))},ae=l=>{const{prefixCls:d,rootClassName:m,src:u,alt:p,imageInfo:g,fallback:f,movable:h=!0,onClose:v,open:_,afterOpenChange:b,maskClosable:y=!0,icons:x={},closeIcon:w,getContainer:j,current:N=0,count:C=1,countRender:S,scaleStep:I=.5,minScale:k=1,maxScale:E=50,motionName:M="fade",imageRender:$,imgCommonProps:R,actionsRender:T,onTransform:O,onChange:D,classNames:A
1={},styles:P={},mousePosition:W,zIndex:Y,wheel:H=!0,focusTrap:X=!0}=l,Z=L.useRef(null),V=L.useRef(null),J=L.useRef(null),ae=L.useContext(F),se=ae&&C>1,oe=ae&&C>=1,[ie,ce]=L.useState(!0),{transform:le,resetTransform:de,updateTransform:me,dispatchZoomChange:ue}=function(n,r,a,s){const o=L.useRef(null),i=L.useRef([]),[c,l]=L.useState(U),d=(e,n)=>{null===o.current&&(i.current=[],o.current=t(()=>{l(e=>{let t=e;return i.current.forEach(e=>{t={...t,...e}}),o.current=null,s?.({transform:t,action:n}),t})})),i.current.push({...c,...e})};return{transform:c,resetTransform:t=>{l(U),e(U,c)||s?.({transform:U,action:t})},updateTransform:d,dispatchZoomChange:(e,t,s,o,i)=>{const{width:l,height:m,offsetWidth:u,offsetHeight:p,offsetLeft:g,offsetTop:f}=n.current;let h=e,v=c.scale*e;v>a?(v=a,h=a/c.scale):v<r&&(v=i?v:r,h=v/c.scale);const _=s??innerWidth/2,b=o??innerHeight/2,y=h-1,x=y*l*.5,w=y*m*.5,j=y*(_-c.x-g),N=y*(b-c.y-f);let C=c.x-(j-x),S=c.y-(N-w);if(e<1&&1===v){const e=u*v,t=p*v,{width:n,height:r}=q();e<=n&&t<=r&&(C=0,S=0)}d({x:C,y:S,scale:v},t)}}}(Z,k,E,O),{isMoving:pe,onMouseDown:ge,onWheel:fe}=function(e,t,r,a,s,o,i,c=!0){const{rotate:l,scale:d,x:m,y:u}=s,[p,g]=L.useState(!1),f=L.useRef({diffX:0,diffY:0,transformX:0,transformY:0}),h=e=>{r&&p&&o({x:e.pageX-f.current.diffX,y:e.pageY-f.current.diffY},"move")},v=()=>{if(r&&p){g(!1);const{transformX:t,transformY:n}=f.current;if(m===t||u===n)return;const r=e.current.offsetWidth*d,a=e.current.offsetHeight*d,{left:s,top:i}=e.current.getBoundingClientRect(),c=l%180!=0,p=G(c?a:r,c?r:a,s,i);p&&o({...p},"dragRebound")}};return L.useEffect(()=>{if(t){window.addEventListener("mouseup",v,!1),window.addEventListener("mousemove",h,!1);try{window.top!==window.self&&(window.top.addEventListener("mouseup",v,!1),window.top.addEventListener("mousemove",h,!1))}catch(e){n(!1,`[rc-image] ${e}`)}}return()=>{window.removeEventListener("mouseup",v),window.removeEventListener("mousemove",h);try{window.top?.removeEventListener("mouseup",v),window.top?.removeEventListener("mousemove",h)}catch(e){}}},[r,p,m,u,l,t]),{isMoving:p,onMouseDown:e=>{t&&0===e.button&&(e.preventDefault(),e.stopPropagation(),f.current={diffX:e.pageX-m,diffY:e.pageY-u,transformX:m,transformY:u},g(!0))},onMouseMove:h,onMouseUp:v,onWheel:e=>{if(!r||!c||0==e.deltaY)return;const t=Math.abs(e.deltaY/100);let n=1+Math.min(t,1)*a;e.deltaY>0&&(n=1/n),i(n,"wheel",e.clientX,e.clientY)}}}(Z,h,_,I,le,me,ue,H),{isTouching:he,onTouchStart:ve,onTouchMove:_e,onTouchEnd:be}=Q(Z,h,_,k,le,me,ue),{rotate:ye,scale:xe}=le;L.useEffect(()=>{ie||ce(!0)},[ie]),L.useEffect(()=>{_||de("close")},[_]);const we=z.createElement(re,ne({},R,{width:l.width,height:l.height,imgRef:Z,className:`${d}-img`,alt:p,style:{transform:`translate3d(${le.x}px, ${le.y}px, 0) scale3d(${le.flipX?"-":""}${xe}, ${le.flipY?"-":""}${xe}, 1) rotate(${ye}deg)`,transitionDuration:(!ie||he)&&"0s"},fallback:f,src:u,onWheel:fe,onMouseDown:ge,onDoubleClick:e=>{_&&(1!==xe?me({x:0,y:0,scale:1},"doubleClick"):ue(1+I,"doubleClick",e.clientX,e.clientY))},onTouchStart:ve,onTouchMove:_e,onTouchEnd:be,onTouchCancel:be})),je={url:u,alt:p,...g},Ne=()=>{ue(1+I,"zoomIn")}
1,Ce=()=>{ue(1/(1+I),"zoomOut")},Se=()=>{me({rotate:ye+90},"rotateRight")},Ie=()=>{me({rotate:ye-90},"rotateLeft")},ke=()=>{me({flipX:!le.flipX},"flipX")},Ee=()=>{me({flipY:!le.flipY},"flipY")},Me=()=>{de("reset")},$e=e=>{const t=N+e;t>=0&&t<=C-1&&(ce(!1),de(e<0?"prev":"next"),D?.(t,N))},Re=a(e=>{if(_){const{keyCode:t}=e;se&&(t===B.LEFT?$e(-1):t===B.RIGHT&&$e(1))}});L.useEffect(()=>{if(_)return window.addEventListener("keydown",Re),()=>{window.removeEventListener("keydown",Re)}},[_]);const[Te,Le]=L.useState(!1);z.useEffect(()=>{_&&Le(!0)},[_]);const[ze,Oe]=L.useState(!1);s(()=>{_&&Oe(!0)},[_]);s(()=>{_&&(J.current=document.activeElement)},[_]),o(X&&_&&ze,()=>V.current);const De={...P.body};return W&&(De.transformOrigin=`${W.x}px ${W.y}px`),z.createElement(i,{open:ze&&_,autoDestroy:!1,getContainer:j,autoLock:Te,onEsc:({top:e})=>{e&&v?.()}},z.createElement(c,{motionName:M,visible:ze&&_,motionAppear:!0,motionEnter:!0,motionLeave:!0,onVisibleChanged:e=>{e||(Le(!1),J.current?.focus?.(),J.current=null),b?.(e)}},({className:e,style:t})=>{const n={...P.root,...t};return Y&&(n.zIndex=Y),z.createElement("div",{ref:V,className:r(d,m,A.root,e,{[`${d}-movable`]:h,[`${d}-moving`]:pe}),style:n,role:"dialog","aria-modal":"true","aria-label":p,tabIndex:-1},z.createElement("div",{className:r(`${d}-mask`,A.mask),style:P.mask,onClick:y?v:void 0}),z.createElement("div",{className:r(`${d}-body`,A.body),style:De},$?$(we,{transform:le,image:je,...ae?{current:N}:{}}):we),!1!==w&&null!==w&&z.createElement(K,{prefixCls:d,icon:!0===w?x.close:w||x.close,onClick:v,className:A.close,style:P.close}),se&&z.createElement(te,{prefixCls:d,current:N,count:C,icons:x,onActive:$e}),z.createElement(ee,{prefixCls:d,showProgress:oe,current:N,count:C,showSwitch:se,classNames:A,styles:P,image:je,transform:le,icons:x,countRender:S,actionsRender:T,scale:xe,minScale:k,maxScale:E,onActive:$e,onFlipY:Ee,onFlipX:ke,onRotateLeft:Ie,onRotateRight:Se,onZoomOut:Ce,onZoomIn:Ne,onClose:v,onReset:Me}))}))},se=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt","fetchPriority"];function oe(){return oe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oe.apply(this,arguments)}let ie=0;function ce(){return ce=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ce.apply(this,arguments)}const le=e=>{const{prefixCls:t="rc-image",previewPrefixCls:n=`${t}-preview`,rootClassName:a,className:s,style:o,classNames:i={},styles:c={},width:d,height:m,src:u,alt:p,placeholder:g,fallback:f,preview:h=!0,onClick:v,onError:_,onKeyDown:b,...y}=e,x=L.useContext(F),w=!!h,{src:j,open:N,onOpenChange:C,cover:S,rootClassName:I,...k}=h&&"object"==typeof h?h:{},E="object"==typeof S&&S.placement&&S.placement||"center",M="object"==typeof S&&S.coverNode?S.coverNode:S,[$,R]=l(!!N,N),[T,z]=L.useState(null),O=e=>{R(e),C?.(e)},D=g&&!0!==g,A=j??u,[P,W,B]=V({src:u,isCustomPlaceholder:D,fallback:f}),Y=L.useMemo(()=>{const t={};return se.forEach(n=>{void 0!==e[n]&&(t[n]=e[n])}),t},se.map(t=>e[t])),H=L.useMemo(()=>({...Y,src:A}),[A,Y]),X=function(e,t){const[n]=L.useState(()=>(ie+=1,String(ie))),r=L.useContext(F),a={data:t,canPreview:e};return L.useEffect(()=>{if(r)return r.register(n,a)},[]),L.useEffect(()=>{r&&r.register(n,a)},[e,t]),n}(w,H);return L.createElement(L.Fragment,null,L.createElement("div",ce({},y,{className:r(t,a,i.root,{[`${t}-error`]:"error"===B}),onClick:w?e=>{const t=e.target.getBoundingClientRect(),n=t.x+t.width/2,r=t.y+t.height/2;x?x.onPreview(X,A,n,r):(z({x:n,y:r}),O(!0)),v?.(e)}:v,role:w?"button":y.role,tabIndex:w&&null==y.tabIndex?0:y.tabIndex,"aria-label":w?y["aria-label"]??p:y["aria-label"],onKeyDown:e=>{if(b?.(e),w&&("Enter"===e.key||" "===e.key)){e.preventDefault();const t=e.target.getBoundingClientRect(),n=t.x+t.width/2,r=t.y+t.height/2;x?x.onPreview(X,A,n,r):(z({x:n,y:r}),O(!0))}},style:{width:d,height:m,...c.root}}),L.createElement("img",ce({},Y,{className:r(`${t}-img`,{[`${t}-img-placeholder`]:!0===g},i.image,s),style:{height:m,...c.image,...o},ref:P},W,{width:d,height:m,onError:_})),"loading"===B&&L.createElement("div",{"aria-hidden":"true",className:`${t}-placeholder`},g),!1!==S&&w&&L.createElement("div",{className:r(`${t}-cover`,i.cover,`${t}-cover-${E}`),style:{display:"none"===o?.display?"none":void 0,...c.cover}},M)),!x&&w&&L.createElement(ae,ce({"aria-hidden":!$,open:$,prefixCls:n,onClose:()=>{O(!1)},mousePosition:T,src:A,alt:p,imageInfo:{width:d,height:m},fallback:f,imgCommonProps:Y},k,{classNames:i?.popup,styles:c?.popup,rootClassName:r(I,a)})))};le.PreviewGroup=({previewPrefixCls:e="rc-image-preview",classNames:t,styles:n,children:r,icons:s={},items:o,preview:i,fallback:c})=>{const{open:d,onOpenChange:m,current:u,onChange:p,...g}=i&&"object"==typeof i?i:{},[f,h,v]=function(e){const[t,n]=L.useState({}),r=L.useCallback((e,t)=>(n(n=>({...n,[e]:t})),()=>{n(t=>{const n={...t};return delete n[e],n})}),[]);return[L.useMemo(()=>e?e.map(e=>{if("string"==typeof e)return{data:{src:e}};const t={};return Object.keys(e).forEach(n=>{["src",...se].includes(n)&&(t[n]=e[n])}),{data:t}}):Object.keys(t).reduce((e,n)=>{const{canPreview:r,data:a}=t[n];return r&&e.push({data:a,id:n}),e},[]),[e,t]),r,!!e]}(o),[_,b]=l(0,u),[y,x]=L.useState(!1),{src:w,...j}=f[_]?.data||{}
1,[N,C]=l(!!d,d),S=a(e=>{C(e),e!==N&&m?.(e,{current:_})}),[I,k]=L.useState(null),E=L.useCallback((e,t,n,r)=>{const a=v?f.findIndex(e=>e.data.src===t):f.findIndex(t=>t.id===e);b(a<0?0:a),S(!0),k({x:n,y:r}),x(!0)},[f,v]);L.useEffect(()=>{N?y||b(0):x(!1)},[N]);const M=L.useMemo(()=>({register:h,onPreview:E}),[h,E]);return L.createElement(F.Provider,{value:M},r,L.createElement(ae,oe({"aria-hidden":!N,open:N,prefixCls:e,onClose:()=>{S(!1),k(null)},mousePosition:I,imgCommonProps:j,src:w,fallback:c,icons:s,current:_,count:f.length,onChange:(e,t)=>{b(e),p?.(e,t)}},g,{classNames:t?.popup,styles:n?.popup})))};const de=(e,t,n,a,s,o,i)=>{const[c]=d("ImagePreview",e?.zIndex),[l,p,g]=m(e?.mask,t?.mask,`${n}-preview`);return z.useMemo(()=>{if(!e)return e;const{cover:d,getContainer:m,closeIcon:f,rootClassName:h}=e,{closeIcon:v}=t??{};return{motionName:u(`${n}-preview`,"fade"),...e,...i?{cover:d??i}:{},icons:o,getContainer:m??s,zIndex:c,closeIcon:f??v,rootClassName:r(a,h),mask:l,maskClosable:g,blurClassName:p.mask}},[e,t,n,a,s,i,o,c,l,g,p])};function me(e){return p(e)&&!L.isValidElement(e)}function ue(e){const t=L.useMemo(()=>"boolean"==typeof e?e?{}:null:p(e)?e:{},[e]);return L.useMemo(()=>{if(!t)return[t,"",""];const{open:e,onOpenChange:n,cover:r,actionsRender:a,visible:s,onVisibleChange:o,rootClassName:i,maskClassName:c,mask:l,forceRender:d,destroyOnClose:m,toolbarRender:u,...g}=t;let f;n?f=n:o&&(f=(e,t)=>{const{current:n}=t||{};void 0!==n?o(e,!e,n):o(e,!e)});const[h,v]=function(e){return L.isValidElement(e)?[e,void 0]:"boolean"==typeof e||p(e)?[void 0,e]:[void 0,void 0]}(l);return[{...g,open:e??s,onOpenChange:f,cover:r??h,mask:v,actionsRender:a??u},i,c]},[t])}var pe={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"};function ge(){return ge=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ge.apply(this,arguments)}const fe=(e,t)=>L.createElement(g,ge({},e,{ref:t,icon:pe})),he=L.forwardRef(fe);var ve={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"};function _e(){return _e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_e.apply(this,arguments)}const be=(e,t)=>L.createElement(g,_e({},e,{ref:t,icon:ve})),ye=L.forwardRef(be);var xe={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"};function we(){return we=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},we.apply(this,arguments)}const je=(e,t)=>L.createElement(g,we({},e,{ref:t,icon:xe})),Ne=L.forwardRef(je);var 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"};function Se(){return Se=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Se.apply(this,arguments)}const Ie=(e,t)=>L.createElement(g,Se({},e,{ref:t,icon:Ce}
1)),ke=L.forwardRef(Ie);var Ee={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"};function Me(){return Me=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Me.apply(this,arguments)}const $e=(e,t)=>L.createElement(g,Me({},e,{ref:t,icon:Ee})),Re=L.forwardRef($e),Te=new f("antImageProgressActive",{"0%":{backgroundPosition:"200% 0"},"100%":{backgroundPosition:"-200% 0"}}),Le=(e,t,n,r="translate(0%, 0%)",a=.8)=>new f(e,{"0%":{transform:r,opacity:a},"50%":{transform:t,opacity:n},"100%":{transform:r,opacity:a}}),ze=Le("antImageInkFlow1","translate(15%, -20%) scale(1.25)",.5),Oe=Le("antImageInkFlow2","translate(-18%, 15%) scale(0.85)",.9,"translate(0%, 0%) scale(1.1)",.7),De=Le("antImageInkFlow3","translate(8%, 10%) scale(1.15)",.8,"translate(0%, 0%) scale(0.85)",.65),Ae=e=>({position:e||"absolute",inset:0}),Pe=e=>{const{componentCls:t,motionDurationSlow:n,colorTextLightSolid:r}=e;return{[t]:{[`${t}-cover`]:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:r,background:new b("#000").setA(.3).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`},"&:hover, &:focus-visible":{[`${t}-cover`]:{opacity:1}},[`${t}-cover-top`]:{inset:"0 0 auto 0",justifyContent:"center"},[`${t}-cover-bottom`]:{inset:"auto 0 0 0",justifyContent:"center"}}}},We=e=>{const{componentCls:t,motionDurationMid:n,motionEaseInOut:r,progressAnimationDuration:a}=e,s={position:"absolute",width:"150%",height:"150%",left:"-25%",top:"-25%",animationTimingFunction:r,animationIterationCount:"infinite",pointerEvents:"none",willChange:"transform, opacity"};return{[`${t}-progress-wrapper`]:{position:"relative",display:"inline-block",overflow:"hidden",borderRadius:"inherit",backgroundColor:e.colorBgBase,backdropFilter:"blur(8px)",[`${t}-progress-ink-1`]:{...s,background:"radial-gradient(ellipse 65% 55% at 25% 30%, rgba(100, 180, 255, 0.98) 0%, transparent 55%)",animationName:ze,animationDuration:a,filter:"blur(40px)","&::before":{content:'""',...s,background:"radial-gradient(ellipse 60% 65% at 75% 45%, rgba(180, 140, 255, 0.95) 0%, transparent 50%)",animationName:Oe,animationDuration:`calc(${a} + 2s)`,animationDelay:"-1s",filter:"blur(45px)"},"&::after":{content:'""',...s,background:"radial-gradient(ellipse 55% 50% at 50% 70%, rgba(100, 220, 220, 0.9) 0%, transparent 45%)",animationName:De,animationDuration:`calc(${a} + 0.5s)`,animationDelay:"-2s",filter:"blur(38px)"}},[`${t}-progress-ink-2`]:{...s,background:"radial-gradient(ellipse 45% 40% at 60% 20%, rgba(255, 150, 200, 0.88) 0%, transparent 45%)",animationName:De,animationDuration:`calc(${a} + 1.5s)`,animationDelay:"-3s",filter:"blur(42px)","&::before":{content:'""',...s,background:"radial-gradient(ellipse 50% 55% at 20% 75%, rgba(160, 190, 255, 0.88) 0%, transparent 50%)",animationName:ze,animationDuration:`calc(${a} + 2.5s)`,animationDelay:"-2.5s",filter:"blur(35px)"}},[`${t}-progress-content`]:{position:"absolute",top:"50%",left:0,transform:"translateY(-50%)",display:"flex",flexDirection:"column",alignItems:"center",width:"100%",paddingInline:e.paddingLG,textAlign:"center",fontSize:e.fontSize,color:e.colorTextSecondary,zIndex:1},[`${t}-progress-rail`]:{width:"100%",height:6,marginTop:e.marginSM,backgroundColor:"rgba(255, 255, 255, 0.5)",borderRadius:e.borderRadiusXS,overflow:"hidden",backdropFilter:"blur(4px)","&::before":{content:'""',display:"block",height:"100%",width:"var(--progress-percent, 0%)",background:"linear-gradient(90deg, rgba(120, 170, 255, 0.85) 0%, rgba(160, 150, 245, 0.85) 40%, rgba(130, 200, 220, 0.85) 60%, rgba(120, 170, 255, 0.85) 100%)",backgroundSize:"200% 100%",borderRadius:e.borderRadiusXS/2,transition:`width ${n} ease`,animationName:Te,animationDuration:a,animationTimingFunction:"linear",animationIterationCount:"infinite"}},[`${t}-progress-indicator`]:{marginTop:e.marginXS}}}},Be=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:a,colorBgMask:s,marginXL:o,marginSM:i,margin:c,colorTextLightSolid:l,paddingSM:d,paddingLG:m,previewOperationHoverColor:u,previewOperationColorDisabled:p,previewOperationSize:g,zIndexPopup:f}=e,h=new b(s).setA(.1),v=h.clone().setA(.2),_={position:"absolute",color:l,backgroundColor:h.toRgbString(),borderRadius:"50%",padding:d,outline:0,border:0,cursor:"pointer",transition:`all ${r}
vendor: 6,380 bytes, line 1
1`,display:"flex",fontSize:g,"&:hover":{backgroundColor:v.toRgbString()},"&:active":{backgroundColor:h.toRgbString()},"&:focus-visible":y(e)};return{[`${a}-preview`]:{textAlign:"center",inset:0,position:"fixed",userSelect:"none",zIndex:f,[`${n}-mask`]:{inset:0,position:"absolute",background:s,backdropFilter:"blur(0px)",transition:`backdrop-filter ${r}`,[`&${a}-preview-mask-blur`]:{backdropFilter:"blur(4px)"},[`&${a}-preview-mask-hidden`]:{display:"none"}},[`${n}-body`]:{...Ae(),"pointer-events":"none",display:"flex",alignItems:"center",justifyContent:"center","> *":{pointerEvents:"auto"}},[`${n}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",transition:`transform ${r} ${t} 0s`},[`&-movable ${n}-img`]:{cursor:"grab"},[`&-moving ${n}-img`]:{cursor:"grabbing"},[`${n}-close`]:{..._,top:i,insetInlineEnd:i},[`${n}-switch`]:{..._,top:"50%",transform:"translateY(-50%)","&-disabled":{"&, &:hover, &:active":{color:p,background:"transparent",cursor:"not-allowed"}},"&-prev":{insetInlineStart:i},"&-next":{insetInlineEnd:i}},[`${n}-footer`]:{position:"absolute",bottom:o,left:{_skip_check_:!0,value:"50%"},display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor,transform:"translateX(-50%)",gap:c},[`${n}-actions`]:{display:"flex",gap:d,padding:`0 ${x(m)}`,backgroundColor:h.toRgbString(),borderRadius:100,fontSize:g,"&-action":{color:"inherit",background:"transparent",border:0,font:"inherit",padding:d,cursor:"pointer",transition:`all ${r}`,display:"flex",[`&:not(${n}-actions-action-disabled):hover`]:{color:u},"&:focus-visible":y(e),"&-disabled":{color:p,cursor:"not-allowed"}}}}}},Ye=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",..._(e),[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-placeholder`]:{...Ae()}}}},He=e=>{const{previewCls:t,motionDurationSlow:n}=e;return{[t]:{"&-fade":{transition:`opacity ${n}`,"&-enter, &-appear":{opacity:0,[`${t}-body`]:{transform:"scale(0)"},"&-active":{opacity:1,[`${t}-body`]:{transform:"scale(1)",transition:`transform ${n}`}}},"&-leave":{opacity:1,"&-active":{opacity:0,[`${t}-body`]:{transform:"scale(0)",transition:`transform ${n}`}}}}}}},Xe=h("Image",e=>{const t=`${e.componentCls}-preview`,n=v(e,{previewCls:t,imagePreviewSwitchSize:e.controlHeightLG});return[Ye(n),Pe(n),We(n),Be(n),He(n)]},e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new b(e.colorTextLightSolid).setA(.65).toRgbString(),previewOperationHoverColor:new b(e.colorTextLightSolid).setA(.85).toRgbString(),previewOperationColorDisabled:new b(e.colorTextLightSolid).setA(.25).toRgbString(),previewOperationSize:1.5*e.fontSizeIcon,progressAnimationDuration:"3s"})),Fe={rotateLeft:L.createElement(he,null),rotateRight:L.createElement(ye,null),zoomIn:L.createElement(ke,null),zoomOut:L.createElement(Re,null),close:L.createElement(w,null),left:L.createElement(H,null),right:L.createElement(Y,null),flipX:L.createElement(Ne,null),flipY:L.createElement(Ne,{rotate:90})},qe={position:"absolute",width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0},Ue=e=>{const{prefixCls:t,percent:n,render:a,classNames:s,styles:o,rootClassName:i,rootStyle:c,width:l,height:d}=e,m=S(n)&&Number.isFinite(n),u=m?Math.max(0,Math.min(100,Math.round(n))):0,p=m?{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":u,"aria-label":`${u}%`}:{"aria-busy":!0},g=m?L.createElement("div",{className:r(`${t}-progress-rail`,s?.rail),style:{...o?.rail,"--progress-percent":`${u}%`}}):null,f=a?a(g,u):L.createElement(L.Fragment,null,g,m&&L.createElement("div",{className:r(`${t}-progress-indicator`,s?.indicator),style:o?.indicator},`${u}%`));return L.createElement("div",{className:r(t,`${t}-progress-wrapper`,s?.root,i),style:{width:l,height:d,...c,...o?.root},...p},!m&&L.createElement("span",{role:"status","aria-live":"polite",style:qe},"Loading"),L.createElement("div",{className:`${t}-progress-ink-1`}),L.createElement("div",{className:`${t}-progress-ink-2`}),L.createElement("div",{className:r(`${t}-progress-content`,s?.content),style:o?.content},f))},Ze=e=>{const{prefixCls:t,preview:n,className:a,rootClassName:s,style:o,styles:i,classNames:c,wrapperStyle:l,fallback:d,placeholder:m,...u}=e,{getPrefixCls:p,getPopupContainer:g,className:f,style:h,preview:v,styles:_,classNames:b,fallback:y}=j("image"),x=p("image",t),w=C(x),[S,k]=Xe(x,w),E=r(s,S,k,w),M=r(a,S,f),[$,R,T]=ue(n),[z,O,D]=ue(v),A=de($,z,x,E,g,Fe,!0),P={...e,preview:A},W=L.useMemo(()=>({cover:r(D,T),popup:{root:r(O,R)}}),[R,T,O,D]),{mask:B,blurClassName:Y}=A??{},H=L.useMemo(()=>({mask:r({[`${x}-preview-mask-hidden`]:!B},Y)}),[B,x,Y]),X=L.useMemo(()=>[b,c,W,{popup:H}],[b,c,W,H]),F=I(h,"image"),q=I(o,"image"),U=I(h),Z=I(o),[G,V]=N(X,[_,{root:l},F,i,q],{props:P},{popup:{_default:"root"},placeholder:{}}),[,J]=N([],[_,U,{root:l},i,Z],{props:P},{popup:{_default:"root"},placeholder:{}}),{image:Q,...K}=V,ee=d??y,{progressConfig:te}=function(e){return L.useMemo(()=>e&&me(e)?"boolean"==typeof e.progress?{progressConfig:e.progress?{}:void 0}:{progressConfig:e.progress}:{},[e])}(m),ne=void 0!==te,{percent:re,render:ae}=te||{},se=G?.placeholder?.progress,oe=J?.placeholder?.progress,{width:ie,height:ce,src:pe,...ge}=u,fe=me(m)?void 0:m,he=fe&&!pe,ve=he?e=>fe:ae;return ne||he?L.createElement(Ue,{prefixCls:x,percent:re,render:ve,classNames:se,styles:oe,rootClassName:r(E,M),rootStyle:J?.root,width:ie,height:ce}):L.createElement(le,{prefixCls:x,preview:A||!1,rootClassName:E,
1className:M,style:Q,fallback:ee,placeholder:fe,width:ie,height:ce,src:pe,...ge,classNames:G,styles:K})};function Ge(e){return e<10?"0"+e:String(e)}function Ve(e){const t=e.match(/\[em_\d*\]/g);if(!t)return e;let n=e;return t.forEach(e=>{const t=e.match(/\d+/g);if(!t)return;const r=parseInt(t.join(""));if(r>0&&r<=75){const t=`<span class="chat-emoj" style="background-position: 0 ${-24*(r-1)}px;"></span>`;n=n.replace(e,t)}}),n}Ze.PreviewGroup=({previewPrefixCls:e,preview:t,classNames:n,styles:a,...s})=>{const{getPrefixCls:o,getPopupContainer:i,direction:c,preview:l,classNames:d,styles:m}=j("image"),u=o("image",e),p=`${u}-preview`,g=C(u),[f,h]=Xe(u,g),v=r(f,h,g),[_,b,y]=ue(t),[x,w,S]=ue(l),I=L.useMemo(()=>({...Fe,left:"rtl"===c?L.createElement(Y,null):L.createElement(H,null),right:"rtl"===c?L.createElement(H,null):L.createElement(Y,null)}),[c]),k=de(_,x,u,v,i,I),{mask:E,blurClassName:M}=k??{},$={...s,classNames:n,styles:a},[R,T]=N([d,n,{cover:r(S,y),popup:{root:r(w,b),mask:r({[`${u}-preview-mask-hidden`]:!E},M)}}],[m,a],{props:$},{popup:{_default:"root"}});return L.createElement(le.PreviewGroup,{preview:k,previewPrefixCls:p,icons:I,...s,classNames:R,styles:T})};const Je="[MSG]",Qe=new Map;function Ke(e){return e.replace(/\\([=;.])/g,"$1")}function et(e){return"string"==typeof e&&e.startsWith(Je)}function tt(e){return/^0?1[2|3|4|5|6|7|8|9][0-9]\d{8}$/.test(e)?e.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2"):e}const nt="_chatList_1qbje_1",rt="_emptyData_1qbje_9",at="_chatItem_1qbje_15",st="_chatItemAwaner_1qbje_22",ot="_chatAvator_1qbje_26",it="_chatNickname_1qbje_36",ct="_chatItemTitle_1qbje_42",lt="_chatContent_1qbje_54",dt="_chatAnswer_1qbje_59",mt="_chatTime_1qbje_67",ut=L.forwardRef((e,t)=>{const n=E.c(19),{comments:r,onLoadMore:a,loading:s,hasMore:o}=e,i=L.useRef(null);let c,l;n[0]===Symbol.for("react.memo_cache_sentinel")?(c=()=>({scrollToBottom:()=>{i.current&&(i.current.scrollTop=0)}}),n[0]=c):c=n[0],L.useImperativeHandle(t,c),n[1]!==o||n[2]!==s||n[3]!==a?(l=()=>{if(s||!o)return;const e=i.current;if(!e)return;e.scrollHeight-e.clientHeight-e.scrollTop<10&&a()},n[1]=o,n[2]=s,n[3]=a,n[4]=l):l=n[4];const d=l;let m,u;n[5]!==d?(m=()=>{const e=i.current;if(e)return e.addEventListener("scroll",d),()=>e.removeEventListener("scroll",d)},u=[d],n[5]=d,n[6]=m,n[7]=u):(m=n[6],u=n[7]),L.useEffect(m,u);const p=ft;let g,f,h,v;return n[8]!==r?(g=r.map(p),n[8]=r,n[9]=g):g=n[9],n[10]!==r.length?(f=0===r.length&&M.jsx("div",{className:rt,children:"ææ è¯è®º"}),n[10]=r.length,n[11]=f):f=n[11],n[12]!==r.length||n[13]!==o?(h=!o&&r.length>0&&M.jsx("div",{className:rt,children:"æ²¡ææ´å¤äºï½"}),n[12]=r.length,n[13]=o,n[14]=h):h=n[14],n[15]!==g||n[16]!==f||n[17]!==h?(v=M.jsxs("div",{className:nt,ref:i,children:[g,f,h]}),n[15]=g,n[16]=f,n[17]=h,n[18]=v):v=n[18],v});function pt(e){e.target.src="/static/images/df_avatar.png"}function gt(e){e.target.src="/static/images/df_avatar.png"}function ft(e){const t=function(e){const t=new Date(1e3*e);return t.getFullYear()+"-"+Ge(t.getMonth()+1)+"-"+Ge(t.getDate())+" "+Ge(t.getHours())+":"+Ge(t.getMinutes())+":"+Ge(t.getSeconds())}(e.dateline),n=tt(e.username);if("管çå"===e.username&&et(e.message)){const r=function(e){if(Qe.has(e))return Qe.get(e);if(!et(e))return null;const t=e.slice(5);if(!t)return null;const n={};function r(e){let t=!1;for(let n=0;n<e.length;n++){const r=e[n];if(t)t=!1;else if("\\"!==r){if("="===r)return n}else t=!0}return-1}function a(e){if(!e)return[];const t=e.split("."),n=[];for(let r=0;r<t.length;r++){const e=t[r];r>0&&n.length>0&&n[n.length-1].endsWith("\\")?n[n.length-1]=n[n.length-1].slice(0,-1)+"."+e:n.push(e)}return n.map(e=>e.replace(/\\\./g,"."))}try{const s=function(e){const t=[];let n="",r=!1,a=!1;for(const s of e)r?(n+=s,r=!1):"\\"!==s?a||"&"!==s?a?(n+=s,";"===s&&(a=!1)):";"!==s?n+=s:(n&&t.push(n),n=""):(n+=s,a=!0):(n+=s,r=!0);return n&&t.push(n),t}(t);let o=!1;for(const e of s){if(!e)continue;const t=r(e);if(t<0)continue;const s=a(e.slice(0,t)),i=Ke(e.slice(t+1));let c=n;s.forEach((e,t)=>{t===s.length-1?c[e]=i:(c[e]&&"object"==typeof c[e]||(c[e]={}),c=c[e])}),o=!0}if(o)return Qe.set(e,n),n}catch(s){}return null}(e.message);if(r){let a=r.c||"";a=a.replace(/\/assets\/activity\/images\/face/g,"/static/images/face"),a=Ve(a);let s=r.m?.q?.c||"";s=s.replace(/\/assets\/activity\/images\/face/g,"/static/images/face"),s=Ve(s);const o=r.m?.q?.s||"";return M.jsxs("div",{className:`${at} ${st}`,"data-top":e.top,children:[M.jsx("img",{src:e.avatar,className:ot,onError:pt}),M.jsxs("div",{className:it,children:[M.jsx("span",{children:n}),e.title&&M.jsx("span",{className:ct,children:e.title})]}),M.jsx("div",{className:lt,dangerouslySetInnerHTML:{__html:a}}),M.jsxs("div",{className:dt,children:[M.jsx("span",{children:"åå¤"}),M.jsxs("span",{children:[o,"ï¼"]}),M.jsx("span",{dangerouslySetInnerHTML:{__html:s}})]}),M.jsx("div",{className:mt,children:t})]},e.id)}}let r=e.message;return r=r.replace(/\/assets\/activity\/images\/face/g,"/static/images/face"),r=Ve(r),M.jsxs("div",{className:at,"data-top":e.top,children:[M.jsx("img",{src:e.avatar,className:ot,onError:gt}),M.jsx("div",{className:it,children:n}),M.jsx("div",{className:lt,dangerouslySetInnerHTML:{__html:r}}
1),M.jsx("div",{className:mt,children:t})]},e.id)}ut.displayName="CommentList";const ht="_iconEmoj_1g6su_1",vt="_emojList_1g6su_11",_t="_emojItem_1g6su_26",bt=e=>{const t=E.c(10),{onSelect:n}=e,[r,a]=L.useState(!1),s=L.useRef(null);let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=Array.from({length:75},yt),t[0]=o):o=t[0];const i=o;let c;t[1]!==n?(c=e=>{n(`[em_${e+1}]`)},t[1]=n,t[2]=c):c=t[2];const l=c;let d,m,u,p;return t[3]===Symbol.for("react.memo_cache_sentinel")?(d=()=>a(!0),m=()=>a(!1),t[3]=d,t[4]=m):(d=t[3],m=t[4]),t[5]!==l||t[6]!==r?(u=r&&M.jsx("ul",{className:vt,children:i.map(e=>{const t=-24*e;return M.jsx("li",{className:_t,"data-index":e,style:{backgroundImage:"url(https://openres.xfyun.cn/xfyundoc/2025-12-16/272739af-a64f-416a-bb97-09aadef505d6/1765863476725/sprite.png)",backgroundPosition:`0 ${t}px`,backgroundRepeat:"no-repeat",backgroundSize:"24px auto"},onClick:()=>l(e)},e)})}),t[5]=l,t[6]=r,t[7]=u):u=t[7],t[8]!==u?(p=M.jsx("div",{className:ht,ref:s,onMouseEnter:d,onMouseLeave:m,children:u}),t[8]=u,t[9]=p):p=t[9],p};function yt(e,t){return t}const xt="_chatForm_lzgwt_1",wt="_chatTextarea_lzgwt_8",jt="_formToolbar_lzgwt_20",Nt="_thirdLogin_lzgwt_32",Ct="_iconWechat_lzgwt_39",St="_iconQq_lzgwt_40",It="_iconBlog_lzgwt_41",kt="_btnSend_lzgwt_63",Et=e=>{const t=E.c(23),{logon:n}=e,[r,a]=L.useState(""),[s,o]=L.useState(!1),i=L.useRef(null);let c;t[0]===Symbol.for("react.memo_cache_sentinel")?(c=e=>{const t=i.current;if(!t)return;const n=t.selectionStart,r=t.selectionEnd,s=t.value.substring(0,n)+e+t.value.substring(r);a(s),t.focus(),setTimeout(()=>{t.setSelectionRange(r+e.length,r+e.length)},0)},t[0]=c):c=t[0];const l=c;let d;t[1]!==s||t[2]!==r?(d=()=>{r&&!s&&(o(!0),window.Mudu.Room.Comment.Send(r,e=>{"string"==typeof e&&(e=JSON.parse(e)),"y"===e.status&&(a(""),$.success("åéæåï¼å®¡æ ¸éè¿åæ¾ç¤º")),"n"===e.status&&$.error("åé失败ï¼é误ç ï¼"+e.flag),o(!1)}))},t[1]=s,t[2]=r,t[3]=d):d=t[3];const m=d;let u;t[4]===Symbol.for("react.memo_cache_sentinel")?(u=e=>{l(e)},t[4]=u):u=t[4];const p=u;let g,f,h,v,_,b,y,x;return t[5]===Symbol.for("react.memo_cache_sentinel")?(g=e=>a(e.target.value),t[5]=g):g=t[5],t[6]!==m?(f=e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),m())},t[6]=m,t[7]=f):f=t[7],t[8]!==f||t[9]!==r?(h=M.jsx("textarea",{ref:i,className:wt,value:r,onChange:g,onKeyDown:f}),t[8]=f,t[9]=r,t[10]=h):h=t[10],t[11]===Symbol.for("react.memo_cache_sentinel")?(v=M.jsx(bt,{onSelect:p}),t[11]=v):v=t[11],t[12]!==n?(_=!n&&M.jsxs("div",{className:Nt,children:[M.jsx("span",{className:Ct,id:"wechatLogin",onClick:Mt}),M.jsx("span",{className:St,id:"qqLogin",onClick:$t}),M.jsx("span",{className:It,id:"sinaLogin",onClick:Rt})]}),t[12]=n,t[13]=_):_=t[13],t[14]!==m||t[15]!==s?(b=M.jsx("button",{className:kt,disabled:s,onClick:m,type:"button",children:"åé"}),t[14]=m,t[15]=s,t[16]=b):b=t[16],t[17]!==_||t[18]!==b?(y=M.jsxs("div",{className:jt,children:[v,_,b]}),t[17]=_,t[18]=b,t[19]=y):y=t[19],t[20]!==y||t[21]!==h?(x=M.jsxs("div",{className:xt,children:[h,y]}),t[20]=y,t[21]=h,t[22]=x):x=t[22],x};function Mt(){const e=document.getElementById("wechatLogin")?.getAttribute("url");e&&(location.href=e)}function $t(){const e=document.getElementById("qqLogin")?.getAttribute("url");e&&(location.href=e)}function Rt(){const e=document.getElementById("sinaLogin")?.getAttribute("url");e&&(location.href=e)}const Tt="_commentPlayer_3emm8_1",Lt="_container_3emm8_10",zt="_commentPlayerFull_3emm8_14",Ot="_videoFoot_3emm8_28",Dt="_txtWordScreen_3emm8_37",At="_iconSwitch_3emm8_41",Pt="_on_3emm8_74",Wt=e=>{const t=E.c(15),{enabled:n}=e,r=L.useRef(null),a=L.useRef(null),s=L.useRef(null),o=L.useRef(null),i=L.useRef(0),[c,l]=L.useState(!0),d=Bt;let m,u,p;t[0]!==c?(m=()=>{if(!r.current||!a.current)return;if(void 0===window.CommentManager)return;const e=new window.CommentManager(r.current);e.init(),e.start();const t=new window.CommentManager(a.current);t.init(),t.start(),s.current=e,o.current=t;const n=new MutationObserver(e=>{e.forEach(e=>{"childList"===e.type&&e.addedNodes.forEach(e=>{e.nodeType===Node.ELEMENT_NODE&&e.textContent&&d(e)})})});r.current&&n.observe(r.current,{childList:!0,subtree:!0}),a.current&&n.observe(a.current,{childList:!0,subtree:!0});const l=n=>{i.current=i.current+1;const r={mode:1,dur:5e3,text:n,stime:1e3*i.current,size:20,color:"#fff"};e.send(r),t.send(r)};return window.Mudu.MsgBus.On("Barrage.New",e=>{c&&("string"==typeof e&&(e=JSON.parse(e)),l(e.text))}),window.mockBarrage=e=>{l(e)},()=>{n.disconnect(),e.stop(),t.stop()}},u=[d,c],t[0]=c,t[1]=m,t[2]=u):(m=t[1],u=t[2]),L.useEffect(m,u),t[3]!==c?(p=()=>{const e=!c;l(e),e?(s.current?.time(0),s.current?.start(),o.current?.time(0),o.current?.start()):(s.
1current?.stop(),s.current?.clear(),o.current?.stop(),o.current?.clear())},t[3]=c,t[4]=p):p=t[4];const g=p;if(!n)return null;let f,h,v;t[5]===Symbol.for("react.memo_cache_sentinel")?(f=M.jsx("div",{id:"cmPlayer",className:Tt,children:M.jsx("div",{id:"commentStage",className:Lt,ref:r})}),t[5]=f):f=t[5],t[6]===Symbol.for("react.memo_cache_sentinel")?(h=M.jsx("div",{id:"cmPlayerFull",className:zt,children:M.jsx("div",{id:"commentStageFull",className:Lt,ref:a})}),t[6]=h):h=t[6],t[7]===Symbol.for("react.memo_cache_sentinel")?(v=M.jsx("span",{className:Dt,children:"å¼¹å¹"}),t[7]=v):v=t[7];const _=`${At} ${c?Pt:""}`;let b;t[8]===Symbol.for("react.memo_cache_sentinel")?(b=M.jsx("i",{}),t[8]=b):b=t[8];const y=c?"on":"off";let x,w;return t[9]!==y?(x=M.jsx("span",{children:y}),t[9]=y,t[10]=x):x=t[10],t[11]!==g||t[12]!==x||t[13]!==_?(w=M.jsxs(M.Fragment,{children:[f,h,M.jsxs("div",{className:Ot,children:[v,M.jsxs("div",{className:_,id:"wordSwitch",onClick:g,children:[b,x]})]})]}),t[11]=g,t[12]=x,t[13]=_,t[14]=w):w=t[14],w};function Bt(e){const t=e.textContent||"";if(/\[em_\d+\]/.test(t)){for(;e.firstChild;)e.removeChild(e.firstChild);const n=/(\[em_\d+\])/;t.split(n).forEach(t=>{if(!t)return;const n=t.match(/\[em_(\d+)\]/);if(n){const t=parseInt(n[1]);if(t>0&&t<=75){const n=-24*(t-1),r=document.createElement("span");r.className="chat-emoj",r.style.backgroundPosition="0 "+n+"px",e.appendChild(r)}}else e.appendChild(document.createTextNode(t))})}}const Yt={topicBox:"_topicBox_r4flg_1",topicItems:"_topicItems_r4flg_5",topicItem:"_topicItem_r4flg_5",connectWrap:"_connectWrap_r4flg_15",connectDate:"_connectDate_r4flg_19",anticonCalendar:"_anticonCalendar_r4flg_31",connectBar:"_connectBar_r4flg_34",topicContentContainer:"_topicContentContainer_r4flg_44",topicItemLeft:"_topicItemLeft_r4flg_52",timeWrap:"_timeWrap_r4flg_56",circle:"_circle_r4flg_64",time:"_time_r4flg_56",topicItemRight:"_topicItemRight_r4flg_78",profileWrap:"_profileWrap_r4flg_83",userAvatar:"_userAvatar_r4flg_86",topicItemTitle:"_topicItemTitle_r4flg_92",topicUser:"_topicUser_r4flg_98",topicUserAdmin:"_topicUserAdmin_r4flg_110",userTitle:"_userTitle_r4flg_113",topTopic:"_topTopic_r4flg_121",contentWrap:"_contentWrap_r4flg_130",topicItemContent:"_topicItemContent_r4flg_130",topicItemImgs:"_topicItemImgs_r4flg_137",singleImg:"_singleImg_r4flg_142",hrWrap:"_hrWrap_r4flg_147",interactWrap:"_interactWrap_r4flg_152",buttonWrap:"_buttonWrap_r4flg_157",btnReply:"_btnReply_r4flg_160",replyIcon:"_replyIcon_r4flg_172",topicItemShowDate:"_topicItemShowDate_r4flg_182",replyTriangleWrap:"_replyTriangleWrap_r4flg_194",replyTriangle:"_replyTriangle_r4flg_194",topicReplySendBox:"_topicReplySendBox_r4flg_208",replyPublishBox:"_replyPublishBox_r4flg_212",textareaWrap:"_textareaWrap_r4flg_219",replyInput:"_replyInput_r4flg_225",publishTool:"_publishTool_r4flg_238",publicSendWrap:"_publicSendWrap_r4flg_247",btnSendReply:"_btnSendReply_r4flg_253",topicItemReplys:"_topicItemReplys_r4flg_274",topicReplyItem:"_topicReplyItem_r4flg_280",replyItemTop:"_replyItemTop_r4flg_285",replyProfile:"_replyProfile_r4flg_289",replyUser:"_replyUser_r4flg_303",replyDate:"_replyDate_r4flg_317",replyItemBottom:"_replyItemBottom_r4flg_327",replyContent:"_replyContent_r4flg_327",btnMoreTopic:"_btnMoreTopic_r4flg_336"},Ht=e=>{const t=E.c(24),{topics:n,onLoadMore:r,allLoaded:a}=e;let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s={},t[0]=s):s=t[0];const[o,i]=L.useState(s);let c;t[1]===Symbol.for("react.memo_cache_sentinel")?(c={},t[1]=c):c=t[1];const[l,d]=L.useState(c);let m,u,p,g;if(t[2]!==l||t[3]!==o||t[4]!==n){const e=function(){const e={};return(t,n,r)=>{const a=t.substr(0,10);return!(!r||0!==n)||!e[a]&&(e[a]=!0,!0)}}();let r;t[8]===Symbol.for("react.memo_cache_sentinel")?(r=e=>{i(t=>({...t,[e]:!t[e]}))},t[8]=r):r=t[8];const a=r;let s;t[9]===Symbol.for("react.memo_cache_sentinel")?(s=(e,t)=>{d(n=>({...n,[e]:t}))},t[9]=s):s=t[9];const c=s;let g;t[10]===Symbol.for("react.memo_cache_sentinel")?(g=(e,t)=>{d(n=>({...n,[e]:(n[e]||"")+t}))},t[10]=g):g=t[10];const f=g;let h;t[11]!==l?(h=e=>{const t=l[e];t&&window.Mudu.Room.Topic.SendReply({topicId:e,msg:t},t=>{$.success("åéæåï¼å®¡æ ¸éè¿åæ¾ç¤º"),"string"==typeof t&&JSON.parse(t),d(t=>({...t,[e]:""}))})},t[11]=l,t[12]=h):h=t[12];const v=h,_=Xt,b=(t,n)=>{const r=e(t.created_at,n,!1),s=1===t.images.length,i=t.message.replace(/\/assets\/activity/g,"/static"),d=1===t.top,m=t.title||"";return M.jsxs("li",{className:`${Yt.topicItem} ${r?Yt.topicItemShowDate:""} ${d?Yt.topicItemFirst:""}`,id:`topic${t.id}`,children:[M.jsxs("div",{className:Yt.connectWrap,children:[M.jsx("div",{className:Yt.connectBar}),M.jsxs("div",{className:Yt.connectDate,children:[M.jsx("i",{className:Yt.anticonCalendar}),M.jsx("span",{children:t.created_at.substr(0,10)})]})]}),M.jsxs("div",{className:Yt.topicContentContainer,children:[M.jsx("div",{className:Yt.topicItemLeft,children:M.jsxs("div",{className:Yt.timeWrap,children:[M.jsx("span",{className:Yt.circle}),M.jsx("span",{className:Yt.time,children:t.created_at.substr(11,5)})]})}),M.jsxs("div",{className:Yt.topicItemRight,children:[M.jsxs("div",{className:Yt.profileWrap,children:[M.jsx("img",{src:t.avatar,className:Yt.userAvatar,alt:""}),M.jsxs("p",{className:Yt.topicItemTitle,children:[M.jsx("span",{className:`${Yt.topicUser} ${Yt.topicUserAdmin}`,title:t.username,children:tt(t.username)}),m&&M.jsx("span",{className:Yt.userTitle,children:m}),d&&M.jsx("span",{className:Yt.topTopic,children:"é¡¶"})]})]}),M.jsxs("div",{className:Yt.contentWrap,children:[M.jsx("p",{className:Yt.topicItemContent,dangerouslySetInnerHTML:{__html:Ve(i)}}),M.jsx("div",{className:Yt.topicItemImgs,children:M.jsx(Ze.PreviewGroup,{children:t.images.map((e,t)=>M.jsx(Ze,{src:e,className:s?Yt.singleImg:"",width:s?void 0:128,height:s?void 0:128,style:s?{}:{objectFit:"cover"}},t))})})]}),M.jsx("div",{className:Yt.hrWrap}),M.jsx("div",{className:Yt.interactWrap,children:M.jsx("div",{className:Yt.buttonWrap,children:M.jsxs("button",{type:"button",className:Yt.btnReply,onClick:()=>a(t.id),children:[M.jsx("i",{className:Yt.replyIcon}),M.jsx("span",{children:t.replies.length})]})})}),o[t.id]&&M.jsxs(M.Fragment,{children:[M.jsx("div",{className:Yt.replyTriangleWrap,children:M.jsx("div",{className:Yt.replyTriangle})}),M.jsx("div",{className:Yt.topicReplySendBox,children:M.jsxs("div",{className:Yt.replyPublishBox,children:[M.jsx("div",{className:Yt.textareaWrap,children:M.jsx("textarea",{maxLength:500,className:Yt.replyInput,value:l[t.id]||"",onChange:e=>c(t.id,e.target.value)})}),M.jsx("div",{className:Yt.publishTool,children:M.jsxs("div",{className:Yt.publicSendWrap,children:[M.jsx(bt,{onSelect:e=>f(t.id,e)}),M.jsx("button",{type:"button",className:Yt.btnSendReply,onClick:()=>v(t.id),children:"åé"})]})})]})}),M.jsx("div",{className:Yt.topicItemReplys,children:t.replies.map(_)})]})]})]})]},t.id)};p=Yt.topicBox,m=Yt.topicItems,u=n.map((e,t)=>b(e,t)),t[2]=l,t[3]=o,t[4]=n,t[5]=m,t[6]=u,t[7]=p}else m=t[5],u=t[6],p=t[7];t[13]!==m||t[14]!==u?(g=M.jsx("ul",{className:m,children:u}),t[13]=m,t[14]=u,t[15]=g):g=t[15];const f=a?"æ²¡ææ´å¤äº":"å è½½æ´å¤";let h,v;return t[16]!==a||t[17]!==r||t[18]!==f?(h=M.jsx("button",{className:Yt.btnMoreTopic,onClick:r,disabled:a,children:f}),t[16]=a,t[17]=r,t[18]=f,t[19]=h):h=t[19],t[20]!==p||t[21]!==g||t[22]!==h?(v=M.jsxs("div",{className:p,children:[g,h]}),t[20]=p,t[21]=g,t[22]=h,t[23]=v):v=t[23],v};function Xt(e){const t=e.message.replace(/\/assets\/activity/g,"/static");return M.jsxs("div",{className:Yt.topicReplyItem,id:`reply${e.id}`,children:[M.jsxs("div",{className:Yt.replyItemTop,children:[M.jsxs("div",{className:Yt.replyProfile,children:[M.jsx("img",{src:e.avatar,alt:""}),M.jsx("span",{className:Yt.replyUser,children:e.username})]}),M.jsx("div",{className:Yt.replyDate,children:e.created_at.substr(0,16)})]}),M.jsx("div",{className:Yt.replyItemBottom,children:M.jsx("p",{className:Yt.replyContent,dangerouslySetInnerHTML:{__html:Ve(t)}})})]},e.id)}
1const Ft="_topicWrap_azn4b_1",qt="_rowSendTopic_azn4b_18",Ut="_iconDel_azn4b_24",Zt="_topicImageWrap_azn4b_36",Gt="_imgLayer_azn4b_48",Vt="_topicImgSending_azn4b_61",Jt="_fileButton_azn4b_64",Qt="_uploading_azn4b_78",Kt="_uploadMask_azn4b_78",en="_fileInput_azn4b_92",tn="_uploadTip_azn4b_102",nn="_btnSend_azn4b_108",rn=()=>{const[e,t]=L.useState(""),[n,r]=L.useState([]),[a,s]=L.useState(!1),o=L.useRef(null),i=L.useRef(null);return M.jsxs("div",{className:Ft,children:[M.jsx("textarea",{ref:o,maxLength:500,value:e,onChange:e=>t(e.target.value),placeholder:"说ç¹ä»ä¹..."}),M.jsxs("div",{className:qt,children:[n.map((e,t)=>M.jsxs("div",{className:Zt,children:[M.jsx("i",{className:Ut,title:"å é¤",onClick:()=>{return e=t,void r(t=>t.filter((t,n)=>n!==e));var e}}),M.jsx("div",{className:Gt}),M.jsx("img",{className:Vt,src:e,alt:""})]},t)),n.length<5&&M.jsxs("div",{className:`${Jt} ${a?Qt:""}`,children:[M.jsx("div",{className:Kt}),M.jsx("input",{ref:i,type:"file",className:en,accept:"image/jpeg,image/png",onChange:async e=>{const t=e.target.files?.[0];if(t)if("image/jpeg"===t.type||"image/png"===t.type)if(t.size>10485760)$.warning("æä»¶å¤§å°ä¸è½è¶
è¿10M");else if(t.name.match(/[?#&=[\]]/g))$.warning("æä»¶åä¸è½å«æç¹æ®å符");else{s(!0);try{const{fileKey:e}=await X(t),n=`https://cdn.aidaxue.com/${e}`;r(e=>[...e,n])}catch(n){$.warning("ç³»ç»å¼å¸¸ï¼è¯·ç¨ååè¯")}finally{s(!1),i.current&&(i.current.value="")}}else $.warning("请ä¸ä¼ jpg/jpeg/pngæä»¶")}}),"+"]}),M.jsx("span",{className:tn,children:"æå¤ä¸ä¼ 5å¼ å¾çï¼æ¯å¼ ä¸è¶
è¿10M"}),M.jsx(bt,{onSelect:e=>{(e=>{const n=o.current;if(!n)return;const r=n.selectionStart,a=n.selectionEnd,s=n.value.substring(0,r)+e+n.value.substring(a);t(s),n.focus(),setTimeout(()=>{n.setSelectionRange(a+e.length,a+e.length)},0)})(e)}}),M.jsx("button",{className:nn,onClick:()=>{(e||0!==n.length)&&window.Mudu.Room.Topic.SendTopic({msg:e,images:n},e=>{$.success("åéæåï¼å®¡æ ¸éè¿åæ¾ç¤º"),t(""),r([]),"string"==typeof e&&(e=JSON.parse(e))})},children:"åé"})]})]})},an="_countdownMask_ozvnh_1",sn="_countdown_ozvnh_1",on="_countTitle_ozvnh_21",cn="_countDay_ozvnh_33",ln="_countdownHolder_ozvnh_36",dn="_position_ozvnh_46",mn="_digit_ozvnh_54",un="_countDiv_ozvnh_67",pn="_countWrap_ozvnh_89",gn="_countBox_ozvnh_92",fn=e=>{const t=E.c(36),{startTime:n,onComplete:r}=e;let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a={day0:"0",day1:"0",hour0:"0",hour1:"0",min0:"0",min1:"0",sec0:"0",sec1:"0"},t[0]=a):a=t[0];const[s,o]=L.useState(a);let i,c,l,d,m,u,p,g,f,h,v,_,b,y,x,w,j;return t[1]!==r||t[2]!==n?(i=()=>{const e=new Date(n).getTime(),t=()=>{const t=(new Date).getTime(),n=e-t;if(n<=0)return void r();const a=Math.floor(n/864e5),s=Math.floor(n%864e5/36e5),i=Math.floor(n%36e5/6e4),c=Math.floor(n%6e4/1e3),l=String(a).padStart(2,"0"),d=String(s).padStart(2,"0"),m=String(i).padStart(2,"0"),u=String(c).padStart(2,"0");o({day0:l[0],day1:l[1],hour0:d[0],hour1:d[1],min0:m[0],min1:m[1],sec0:u[0],sec1:u[1]})};t();const a=setInterval(t,1e3);return()=>clearInterval(a)},c=[n,r],t[1]=r,t[2]=n,t[3]=i,t[4]=c):(i=t[3],c=t[4]),L.useEffect(i,c),t[5]===Symbol.for("react.memo_cache_sentinel")?(l=M.jsx("div",{className:an}),t[5]=l):l=t[5],t[6]===Symbol.for("react.memo_cache_sentinel")?(d=M.jsx("div",{className:on,children:"è·ç¦»ç´æå¼å§è¿æ"}),t[6]=d):d=t[6],t[7]!==s.day0?(m=M.jsx("div",{className:dn,children:M.jsx("span",{className:mn,children:s.day0})}),t[7]=s.day0,t[8]=m):m=t[8],t[9]!==s.day1?(u=M.jsx("div",{className:dn,children:M.jsx("span",{className:mn,children:s.day1})}),t[9]=s.day1,t[10]=u):u=t[10],t[11]===Symbol.for("react.memo_cache_sentinel")?(p=M.jsx("span",{className:cn,children:"天"}),g=M.jsx("div",{className:un}),t[11]=p,t[12]=g):(p=t[11],g=t[12]),t[13]!==s.hour0?(f=M.jsx("div",{className:dn,children:M.jsx("span",{className:mn,children:s.hour0})}),t[13]=s.hour0,t[14]=f):f=t[14],t[15]!==s.hour1?(h=M.jsx("div",{className:dn,children:M.jsx("span",{className:mn,children:s.hour1})}),t[15]=s.hour1,t[16]=h):h=t[16],t[17]===Symbol.for("react.memo_cache_sentinel")?(v=M.jsx("div",{className:un}),t[17]=v):v=t[17],t[18]!==s.min0?(_=M.jsx("div",{className:dn,children:M.jsx("span",{className:mn,children:s.min0})}
1),t[18]=s.min0,t[19]=_):_=t[19],t[20]!==s.min1?(b=M.jsx("div",{className:dn,children:M.jsx("span",{className:mn,children:s.min1})}),t[20]=s.min1,t[21]=b):b=t[21],t[22]===Symbol.for("react.memo_cache_sentinel")?(y=M.jsx("div",{className:un}),t[22]=y):y=t[22],t[23]!==s.sec0?(x=M.jsx("div",{className:dn,children:M.jsx("span",{className:mn,children:s.sec0})}),t[23]=s.sec0,t[24]=x):x=t[24],t[25]!==s.sec1?(w=M.jsx("div",{className:dn,children:M.jsx("span",{className:mn,children:s.sec1})}),t[25]=s.sec1,t[26]=w):w=t[26],t[27]!==f||t[28]!==h||t[29]!==_||t[30]!==b||t[31]!==x||t[32]!==w||t[33]!==m||t[34]!==u?(j=M.jsxs(M.Fragment,{children:[l,M.jsx("div",{className:sn,children:M.jsxs("div",{className:ln,children:[d,M.jsx("div",{className:pn,children:M.jsxs("div",{className:gn,children:[m,u,p,g,f,h,v,_,b,y,x,w]})})]})})]}),t[27]=f,t[28]=h,t[29]=_,t[30]=b,t[31]=x,t[32]=w,t[33]=m,t[34]=u,t[35]=j):j=t[35],j},hn="_videoList_121b8_1",vn="_videoItem_121b8_8",_n="_videoHover_121b8_12",bn="_videoPlay_121b8_13",yn="_videoCover_121b8_17",xn="_videoTitle_121b8_24",wn=e=>{const t=E.c(7),{videos:n,onPlay:r}=e;if(0===n.length)return null;let a,s;if(t[0]!==r||t[1]!==n){let e;t[3]!==r?(e=e=>M.jsxs("div",{className:vn,children:[M.jsx("img",{className:yn,src:e.cover_url,alt:e.name}),M.jsx("div",{className:xn,title:e.name,children:e.name}),M.jsx("div",{className:_n}),M.jsx("div",{className:bn,onClick:()=>r(e.watch_url)})]},e.id),t[3]=r,t[4]=e):e=t[4],a=n.map(e),t[0]=r,t[1]=n,t[2]=a}else a=t[2];return t[5]!==a?(s=M.jsx("div",{className:hn,children:a}),t[5]=a,t[6]=s):s=t[6],s},jn="_mainContainer_1vde2_2",Nn="_loading_1vde2_11",Cn="_leftWrap_1vde2_18",Sn="_videoHead_1vde2_23",In="_videoIcon_1vde2_30",kn="_qrcodeIcon_1vde2_40",En="_bgQrcode_1vde2_55",Mn="_wrapQrcode_1vde2_70",$n="_imgQrcode_1vde2_78",Rn="_videoTitle_1vde2_84",Tn="_videoUsers_1vde2_91",Ln="_iconUser_1vde2_98",zn="_userNum_1vde2_105",On="_iconShare_1vde2_110",Dn="_wrapShareLink_1vde2_122",An="_shareLink_1vde2_135",Pn="_linkWechat_1vde2_143",Wn="_linkQQZone_1vde2_149",Bn="_linkSina_1vde2_154",Yn="_videoBody_1vde2_159",Hn="_playerWrap_1vde2_165",Xn="_rightWrap_1vde2_170",Fn="_chatHead_1vde2_175",qn="_totalChater_1vde2_182",Un="_mineName_1vde2_186",Zn="_lightText_1vde2_192",Gn="_detailWrap_1vde2_196",Vn="_tabBtn_1vde2_203",Jn="_tabBtnItem_1vde2_208",Qn="_tabContent_1vde2_219",Kn=()=>{const[e]=O(),t=D(),{userInfo:n}=R(),r=L.useRef(null),a=L.useRef(null),s=L.useRef(null),o=L.useRef(!1),[i,c]=L.useState(null),[l,d]=L.useState([]),[m,u]=L.useState([]),[p,g]=L.useState(0),[f,h]=L.useState(0),v=L.useRef(!1),[_,b]=L.useState(1),[y,x]=L.useState(1),[w,j]=L.useState(!1),[N,C]=L.useState(!1),[S,I]=L.useState(!1),[E,z]=L.useState(""),[B,Y]=L.useState(null),H=e.get("id")||"",X=H.trim().length>0,F=L.useRef(X);F.current=X;const q=!!n,U=n?.username||"å¿åç¨æ·",Z=n?.uid||(new Date).getTime(),G=n?.avatar||"/static/images/df_avatar.png",V=L.useRef(null);V.current=i;const[J,Q]=L.useState(()=>!function(){let e=0,t=0;if(document.all)try{const n=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");if(n){e=1;const r=n.GetVariable("$version");t=parseInt(r.split(" ")[1].split(",")[0])}}catch(n){}else if(navigator.plugins&&navigator.plugins.length>0){const n=navigator.plugins.namedItem("Shockwave Flash");if(n){e=1;const r=n.description.split(" ");for(let e=0;e<r.length;++e)isNaN(parseInt(r[e]))||(t=parseInt(r[e]))}}return{f:e,v:t}}().f);L.useEffect(()=>{var e;q&&(e={id:H||""},k.get("/proapi/live/getAuth",{params:e,skipInterceptor:!0}).then(e=>({success:e.success,hasData:e.has_data,errorCode:e.error_code,data:e.data,message:e.message}))).then(e=>{0!==e.errorCode&&T.warning({title:"æç¤º",content:"æ¨ææ è§çæéï¼è¯·å
订é
课ç¨",onOk:()=>t("/")})})},[H,q,t]),L.useEffect(()=>{X||(v.current=!1,o.current=!1,s.current=null,I(!1),Y(null),a.current&&(a.current.innerHTML=""))},[X]);const K=L.useCallback(e=>{if(!F.current||void 0===window.Mudu)return null;const t=new window.Mudu.Player({containerId:"player",isLive:!!window.Mudu.Room.GetLiveStatus(),src:window.Mudu.Room.GetPlayAddr("h5"),image:e.pvideocover,autoplay:!1,controls:!0,repeat:!1,width:800,height:450,x5Layer:!1,x5Inline:!1,retryWhenLiveError:!0});return s.current=t,Y(t),t},[]),ee=L.useCallback((e,t,n)=>{e<=0?C(!1):void 0!==window.Mudu&&window.Mudu.Room.Comment.Get(e,e=>
1{if("string"==typeof e&&(e=JSON.parse(e)),"y"===e.status){const r=e.data.comments;d(n?r:t?e=>[...r,...e]:e=>[...e,...r]),C(!1)}})},[]),te=L.useCallback(()=>{const e=V.current;var t;e&&(t={pchannelid:e.pchannelid},k.get("/proapi/live/commentCount",{params:t,skipInterceptor:!0}).then(e=>1==e.success?e.data:Promise.reject(e))).then(e=>g(e.count))},[]),ne=L.useCallback(()=>{const e=V.current;var t;e&&(t={pchannelid:e.pchannelid},k.get("/proapi/live/onlineCount",{params:t,skipInterceptor:!0}).then(e=>1==e.success?e.data:Promise.reject(e))).then(e=>h(e.count))},[]),re=L.useCallback((e,t)=>{1===e.status?(I(!0),2===e.pbeforestart&&1!==e.pvideosrc1type&&t.load([{file:e.pvideosrc1,image:e.pvideocover}])):3===e.status&&1!==e.pvideosrc2type&&q&&t.load([{file:e.pvideosrc2,image:e.pvideocover}])},[q]),ae=L.useCallback(e=>{if(void 0!==window.Mudu)if(v.current){if(o.current&&F.current&&!s.current){const t=K(e);t&&window.Mudu.MsgBus.On("Player.Ready",()=>{F.current&&re(e,t)})}}else v.current=!0,window.Mudu.Init(e.pchannelid,()=>{o.current=!0,window.Mudu.Room.User.Assign(tt(U),G,Z);const t=K(e);let n=0;try{n=window.Mudu.Room.Comment.GetPage()}catch(r){n=0}n>0?(b(n),ee(n,!0,!0)):(b(1),ee(1,!0,!0)),window.Mudu.MsgBus.On("Comment.New",e=>{"string"==typeof e&&(e=JSON.parse(e)),1===e.checked&&(d(t=>[e,...t]),te())}),window.Mudu.MsgBus.On("Topic.New",e=>{"string"==typeof e&&(e=JSON.parse(e)),1===e.checked&&u(t=>[e,...t])}),window.Mudu.MsgBus.On("Topic.Reply.New",e=>{"string"==typeof e&&(e=JSON.parse(e)),1===e.checked&&u(t=>t.map(t=>t.id===e.belong_to?{...t,replies:[...t.replies,e]}:t))}),t&&window.Mudu.MsgBus.On("Player.Ready",()=>{F.current&&re(e,t)}),te(),ne()})},[U,G,Z,K,ee,te,ne,re]);L.useEffect(()=>{var e;(e={id:H||""},k.get("/proapi/live/getLive",{params:e,skipInterceptor:!0}).then(e=>1==e.success?e.data:Promise.reject(e))).then(e=>{const t=e.liveConfigs,n=e.authUrls;t?(c(t),n&&(document.getElementById("wechatLogin")?.setAttribute("url",n.wx_auth_url),document.getElementById("qqLogin")?.setAttribute("url",n.qq_auth_url),document.getElementById("sinaLogin")?.setAttribute("url",n.wb_auth_url)),ae(t)):$.error("ç´æé
ç½®æ°æ®æ ¼å¼é误")}).catch(e=>{$.error("è·åç´æé
置失败ï¼è¯·ç¨åéè¯")})},[X,H,ae]),L.useEffect(()=>{if(!i)return;const e=setInterval(ne,6e4);return()=>clearInterval(e)},[i,ne]);const se=L.useCallback(()=>{if(N||_<=0)return;C(!0);const e=_-1;b(e),ee(e,!1,!1)},[N,_,ee]),oe=()=>{if(w)return;const e=y+1;var t;x(e),t=e,void 0!==window.Mudu&&window.Mudu.Room.Topic.Get(t,e=>{"string"==typeof e&&(e=JSON.parse(e)),0!==e.topics.length?u(t=>[...t,...e.topics]):j(!0)})};return i?M.jsxs(M.Fragment,{children:[M.jsxs("div",{className:jn,children:[M.jsxs("div",{className:Cn,children:[M.jsxs("div",{className:Sn,children:[M.jsx("img",{src:i.pshowlogo,className:In,alt:""}),M.jsxs("div",{className:kn,children:["ææºè§ç",M.jsx("div",{className:En,children:M.jsx("div",{className:Mn,children:M.jsx("img",{className:$n,src:"https://openres.xfyun.cn/xfyundoc/2025-12-16/5d0e2ae4-8228-4d59-b621-fbf9138f9b7c/1765847939711/kfptsph.png",alt:"ææºè§çäºç»´ç "})})})]}),M.jsx("div",{className:Rn,children:i.pshowtitle}),M.jsxs("div",{className:Tn,children:[M.jsx("i",{className:Ln}),M.jsx("span",{className:zn,children:f}),M.jsxs("span",{className:On,children:["å享",M.jsxs("div",{className:Dn,children:[M.jsx("span",{className:`${An} ${Pn}`,onClick:()=>{T.info({title:"å享å°å¾®ä¿¡å¥½åææåå",content:M.jsxs("div",{style:{textAlign:"center"},children:[M.jsx("img",{src:"/assets/qrcode-B7KvonDY.jpg",alt:"微信å享äºç»´ç ",style:{width:150,height:150}}),M.jsx("div",{style:{marginTop:10},children:"使ç¨å¾®ä¿¡æ«ä¸æ«"})]}),width:300})}}),M.jsx("span",{className:`${An} ${Wn}`,onClick:()=>A({title:i.pshowtitle||"AI大å¦å ",url:i.mlivehref})}),M.jsx("span",{className:`${An} ${Bn}`,onClick:()=>P({title:i.pshowtitle||"AI大å¦å ",url:i.mlivehref})})]})]})]})]}),M.jsxs("div",{className:Yn,children:[M.jsx("div",{id:"player",ref:a,className:Hn}),X&&S&&i.pstarttime&&M.jsx(fn,{startTime:i.pstarttime.date.substr(0,19),onComplete:()=>{I(!1),B&&void 0!==window.Mudu&&B.load([{file:window.Mudu.Room.GetPlayAddr("h5"),image:i?.pvideocover}])}}),M.jsx(Wt,{enabled:!0})]}),i.ptabs&&i.ptabs.length>0&&M.jsxs("div",{className:Gn,children:[M.jsx("div",{className:Vn,children:i.ptabs.map(e=>M.jsx("div",{className:Jn,children:e.ptabtitle},e.ptabtype))}),M.jsx("div",{className:Qn,children:i.ptabs.map(e=>1===e.ptabtype?M.jsx(wn,{videos:e.ptabcontent,onPlay:e=>z(e)},e.ptabtype):2===e.ptabtype?M.jsxs("div",{children:[M.jsx(rn,{}),M.jsx(Ht,{topics:m,onLoadMore:oe,allLoaded:w})]},e.ptabtype):3===e.ptabtype?M.jsx("div",{dangerouslySetInnerHTML:{__html:e.ptabcontent}},e.ptabtype):null)})]})]}),M.jsxs("div",{className:Xn,children:[M.jsxs("div",{className:Fn,children:[M.jsxs("div",{className:qn,children:["å
± ",M.jsx("span",{className:Zn,children:p})," æ¡è天"]}),M.jsxs("div",{className:Un,children:["æçæµç§°ï¼",M.jsx("span",{className:Zn,children:tt(U)})]})]}),M.jsx(ut,{ref:r,comments:l,onLoadMore:se,loading:N,hasMore:_>0}),M.jsx(Et,{userName:U,logon:q})]}),M.jsx(T,{open:!!E,onCancel:()=>z(""),footer:null,width:640,centered:!0,children:M.jsx("iframe",{src:E,width:"100%",height:"360",frameBorder:"0",allowFullScreen:!0})})]}),M.jsx(W,{})]}):M.jsx("div",{className:Nn,children:"å è½½ä¸..."})};export{Kn as default};
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.