!(function(){var bu=Math.pow;(self.webpackChunk=self.webpackChunk||[]).push([[5992],{70557:function(Gt,nt,b){"use strict";b.d(nt,{Z:function(){return ie}});var _=b(60499),fe=b(59301),be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0048.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"}}]},name:"arrow-down",theme:"outlined"},pe=be,z=b(7657),m=function(Y,N){return fe.createElement(z.Z,(0,_.Z)({},Y,{ref:N,icon:pe}))},ce=fe.forwardRef(m),ie=ce},27812:function(Gt,nt,b){"use strict";b.d(nt,{Z:function(){return ie}});var _=b(60499),fe=b(59301),be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},pe=be,z=b(7657),m=function(Y,N){return fe.createElement(z.Z,(0,_.Z)({},Y,{ref:N,icon:pe}))},ce=fe.forwardRef(m),ie=ce},84105:function(Gt,nt,b){"use strict";b.d(nt,{Z:function(){return ie}});var _=b(60499),fe=b(59301),be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},pe=be,z=b(7657),m=function(Y,N){return fe.createElement(z.Z,(0,_.Z)({},Y,{ref:N,icon:pe}))},ce=fe.forwardRef(m),ie=ce},18785:function(Gt,nt,b){"use strict";b.d(nt,{Z:function(){return ie}});var _=b(60499),fe=b(59301),be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},pe=be,z=b(7657),m=function(Y,N){return fe.createElement(z.Z,(0,_.Z)({},Y,{ref:N,icon:pe}))},ce=fe.forwardRef(m),ie=ce},73331:function(Gt,nt,b){"use strict";b.d(nt,{Z:function(){return ie}});var _=b(60499),fe=b(59301),be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},pe=be,z=b(7657),m=function(Y,N){return fe.createElement(z.Z,(0,_.Z)({},Y,{ref:N,icon:pe}))},ce=fe.forwardRef(m),ie=ce},15277:function(Gt,nt,b){"use strict";b.d(nt,{Z:function(){return ie}});var _=b(60499),fe=b(59301),be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},pe=be,z=b(7657),m=function(Y,N){return fe.createElement(z.Z,(0,_.Z)({},Y,{ref:N,icon:pe}))},ce=fe.forwardRef(m),ie=ce},33853:function(Gt,nt,b){"use strict";b.d(nt,{Z:function(){return ie}});var _=b(60499),fe=b(59301),be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},pe=be,z=b(7657),m=function(Y,N){return fe.createElement(z.Z,(0,_.Z)({},Y,{ref:N,icon:pe}))},ce=fe.forwardRef(m),ie=ce},47472:function(Gt,nt,b){"use strict";b.d(nt,{Z:function(){return ie}});var _=b(60499),fe=b(59301),be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},pe=be,z=b(7657),m=function(Y,N){return fe.createElement(z.Z,(0,_.Z)({},Y,{ref:N,icon:pe}))},ce=fe.forwardRef(m),ie=ce},87395:function(Gt,nt,b){"use strict";b.d(nt,{Z:function(){return ie}});var _=b(60499),fe=b(59301),be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},pe=be,z=b(7657),m=function(Y,N){return fe.createElement(z.Z,(0,_.Z)({},Y,{ref:N,icon:pe}))},ce=fe.forwardRef(m),ie=ce},68196:function(Gt,nt,b){"use strict";b.d(nt,{Z:function(){return pt}});var _=b(85899),fe=b(72190),be=b(42244),pe=b(43403),z=b(92310),m=b.n(z),ce=b(29301),ie=b(76846),o=b(96452),Y=b(6089),N=b(80402),w=b(34280),S=b(49658),C=b(59301),L=b(60499),Q=b(77900),q=b(8654);function H(Pe){var Ae=Pe.prefixCls,he=Pe.align,je=Pe.arrow,Ie=Pe.arrowPos,we=je||{},M=we.className,de=we.content,_e=Ie.x,Me=_e===void 0?0:_e,Fe=Ie.y,Ze=Fe===void 0?0:Fe,Qe=C.useRef();if(!he||!he.points)return null;var tt={position:"absolute"};if(he.autoArrow!==!1){var ut=he.points[0],dt=he.points[1],St=ut[0],gt=ut[1],_t=dt[0],Xe=dt[1];St===_t||!["t","b"].includes(St)?tt.top=Ze:St==="t"?tt.top=0:tt.bottom=0,gt===Xe||!["l","r"].includes(gt)?tt.left=Me:gt==="l"?tt.left=0:tt.right=0}return C.createElement("div",{ref:Qe,className:m()("".concat(Ae,"-arrow"),M),style:tt},de)}function T(Pe){var Ae=Pe.prefixCls,he=Pe.open,je=Pe.zIndex,Ie=Pe.mask,we=Pe.motion;return Ie?C.createElement(Q.default,(0,L.Z)({},we,{motionAppear:!0,visible:he,removeOnLeave:!0}),function(M){var de=M.className;return C.createElement("div",{style:{zIndex:je},className:m()("".concat(Ae,"-mask"),de)})}):null}var V=C.memo(function(Pe){var Ae=Pe.children;return Ae},function(Pe,Ae){return Ae.cache}),P=V,F=C.forwardRef(function(Pe,Ae){var he=Pe.popup,je=Pe.className,Ie=Pe.prefixCls,we=Pe.style,M=Pe.target,de=Pe.onVisibleChanged,_e=Pe.open,Me=Pe.keepDom,Fe=Pe.fresh,Ze=Pe.onClick,Qe=Pe.mask,tt=Pe.arrow,ut=Pe.arrowPos,dt=Pe.align,St=Pe.motion,gt=Pe.maskMotion,_t=Pe.forceRender,Xe=Pe.getPopupContainer,qe=Pe.autoDestroy,st=Pe.portal,ot=Pe.zIndex,Ct=Pe.onMouseEnter,x=Pe.onMouseLeave,D=Pe.onPointerEnter,se=Pe.onPointerDownCapture,I=Pe.ready,U=Pe.offsetX,it=Pe.offsetY,xe=Pe.offsetR,Re=Pe.offsetB,He=Pe.onAlign,G=Pe.onPrepare,J=Pe.stretch,ve=Pe.targetWidth,Ce=Pe.targetHeight,X=typeof he=="function"?he():he,ct=_e||Me,ge=(Xe==null?void 0:Xe.length)>0,wt=C.useState(!Xe||!ge),Ft=(0,fe.Z)(wt,2),Kt=Ft[0],on=Ft[1];if((0,w.Z)(function(){!Kt&&ge&&M&&on(!0)},[Kt,ge,M]),!Kt)return null;var rn="auto",Zt={left:"-1000vw",top:"-1000vh",right:rn,bottom:rn};if(I||!_e){var ln,er=dt.points,Sn=dt.dynamicInset||((ln=dt._experimental)===null||ln===void 0?void 0:ln.dynamicInset),pn=Sn&&er[0][1]==="r",Ut=Sn&&er[0][0]==="b";pn?(Zt.right=xe,Zt.left=rn):(Zt.left=U,Zt.right=rn),Ut?(Zt.bottom=Re,Zt.top=rn):(Zt.top=it,Zt.bottom=rn)}var Rt={};return J&&(J.includes("height")&&Ce?Rt.height=Ce:J.includes("minHeight")&&Ce&&(Rt.minHeight=Ce),J.includes("width")&&ve?Rt.width=ve:J.includes("minWidth")&&ve&&(Rt.minWidth=ve)),_e||(Rt.pointerEvents="none"),C.createElement(st,{open:_t||ct,getContainer:Xe&&function(){return Xe(M)},autoDestroy:qe},C.createElement(T,{prefixCls:Ie,open:_e,zIndex:ot,mask:Qe,motion:gt}),C.createElement(ce.Z,{onResize:He,disabled:!_e},function(Ot){return C.createElement(Q.default,(0,L.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:_t,leavedClassName:"".concat(Ie,"-hidden")},St,{onAppearPrepare:G,onEnterPrepare:G,visible:_e,onVisibleChanged:function(un){var In;St==null||(In=St.onVisibleChanged)===null||In===void 0||In.call(St,un),de(un)}}),function(Xt,un){var In=Xt.className,ar=Xt.style,yr=m()(Ie,In,je);return C.createElement("div",{ref:(0,q.sQ)(Ot,Ae,un),className:yr,style:(0,_.Z)((0,_.Z)((0,_.Z)((0,_.Z)({"--arrow-x":"".concat(ut.x||0,"px"),"--arrow-y":"".concat(ut.y||0,"px")},Zt),Rt),ar),{},{boxSizing:"border-box",zIndex:ot},we),onMouseEnter:Ct,onMouseLeave:x,onPointerEnter:D,onClick:Ze,onPointerDownCapture:se},tt&&C.createElement(H,{prefixCls:Ie,arrow:tt,arrowPos:ut,align:dt}),C.createElement(P,{cache:!_e&&!Fe},X))})}))}),oe=F,ye=C.forwardRef(function(Pe,Ae){var he=Pe.children,je=Pe.getTriggerDOMNode,Ie=(0,q.Yr)(he),we=C.useCallback(function(de){(0,q.mH)(Ae,je?je(de):de)},[je]),M=(0,q.x1)(we,(0,q.C4)(he));return Ie?C.cloneElement(he,{ref:M}):he}),le=ye,De=C.createContext(null),Ue=De;function Be(Pe){return Pe?Array.isArray(Pe)?Pe:[Pe]:[]}function rt(Pe,Ae,he,je){return C.useMemo(function(){var Ie=Be(he!=null?he:Ae),we=Be(je!=null?je:Ae),M=new Set(Ie),de=new Set(we);return Pe&&(M.has("hover")&&(M.delete("hover"),M.add("click")),de.has("hover")&&(de.delete("hover"),de.add("click"))),[M,de]},[Pe,Ae,he,je])}var ae=b(29194);function $(){var Pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],he=arguments.length>2?arguments[2]:void 0;return he?Pe[0]===Ae[0]:Pe[0]===Ae[0]&&Pe[1]===Ae[1]}function Z(Pe,Ae,he,je){for(var Ie=he.points,we=Object.keys(Pe),M=0;M1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(Pe)?Ae:Pe}function E(Pe){return y(parseFloat(Pe),0)}function B(Pe,Ae){var he=(0,_.Z)({},Pe);return(Ae||[]).forEach(function(je){if(!(je instanceof HTMLBodyElement||je instanceof HTMLHtmlElement)){var Ie=re(je).getComputedStyle(je),we=Ie.overflow,M=Ie.overflowClipMargin,de=Ie.borderTopWidth,_e=Ie.borderBottomWidth,Me=Ie.borderLeftWidth,Fe=Ie.borderRightWidth,Ze=je.getBoundingClientRect(),Qe=je.offsetHeight,tt=je.clientHeight,ut=je.offsetWidth,dt=je.clientWidth,St=E(de),gt=E(_e),_t=E(Me),Xe=E(Fe),qe=y(Math.round(Ze.width/ut*1e3)/1e3),st=y(Math.round(Ze.height/Qe*1e3)/1e3),ot=(ut-dt-_t-Xe)*qe,Ct=(Qe-tt-St-gt)*st,x=St*st,D=gt*st,se=_t*qe,I=Xe*qe,U=0,it=0;if(we==="clip"){var xe=E(M);U=xe*qe,it=xe*st}var Re=Ze.x+se-U,He=Ze.y+x-it,G=Re+Ze.width+2*U-se-I-ot,J=He+Ze.height+2*it-x-D-Ct;he.left=Math.max(he.left,Re),he.top=Math.max(he.top,He),he.right=Math.min(he.right,G),he.bottom=Math.min(he.bottom,J)}}),he}function ue(Pe){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,he="".concat(Ae),je=he.match(/^(.*)\%$/);return je?Pe*(parseFloat(je[1])/100):parseFloat(he)}function Ne(Pe,Ae){var he=Ae||[],je=(0,fe.Z)(he,2),Ie=je[0],we=je[1];return[ue(Pe.width,Ie),ue(Pe.height,we)]}function We(){var Pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[Pe[0],Pe[1]]}function Te(Pe,Ae){var he=Ae[0],je=Ae[1],Ie,we;return he==="t"?we=Pe.y:he==="b"?we=Pe.y+Pe.height:we=Pe.y+Pe.height/2,je==="l"?Ie=Pe.x:je==="r"?Ie=Pe.x+Pe.width:Ie=Pe.x+Pe.width/2,{x:Ie,y:we}}function ze(Pe,Ae){var he={t:"b",b:"t",l:"r",r:"l"};return Pe.map(function(je,Ie){return Ie===Ae?he[je]||"c":je}).join("")}function Ye(Pe,Ae,he,je,Ie,we,M){var de=C.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:Ie[je]||{}}),_e=(0,fe.Z)(de,2),Me=_e[0],Fe=_e[1],Ze=C.useRef(0),Qe=C.useMemo(function(){return Ae?W(Ae):[]},[Ae]),tt=C.useRef({}),ut=function(){tt.current={}};Pe||ut();var dt=(0,Y.Z)(function(){if(Ae&&he&&Pe){let $r=function(qr,Jr){var Si=arguments.length>2&&arguments[2]!==void 0?arguments[2]:cr,pi=ct.x+qr,Gi=ct.y+Jr,Xi=pi+Ut,Mi=Gi+pn,mi=Math.max(pi,Si.left),sn=Math.max(Gi,Si.top),Dn=Math.min(Xi,Si.right),pr=Math.min(Mi,Si.bottom);return Math.max(0,(Dn-mi)*(pr-sn))},Lr=function(){Tr=ct.y+kn,Er=Tr+pn,xn=ct.x+bn,Vn=xn+Ut};var _t,Xe,qe,st,ot=Ae,Ct=ot.ownerDocument,x=re(ot),D=x.getComputedStyle(ot),se=D.position,I=ot.style.left,U=ot.style.top,it=ot.style.right,xe=ot.style.bottom,Re=ot.style.overflow,He=(0,_.Z)((0,_.Z)({},Ie[je]),we),G=Ct.createElement("div");(_t=ot.parentElement)===null||_t===void 0||_t.appendChild(G),G.style.left="".concat(ot.offsetLeft,"px"),G.style.top="".concat(ot.offsetTop,"px"),G.style.position=se,G.style.height="".concat(ot.offsetHeight,"px"),G.style.width="".concat(ot.offsetWidth,"px"),ot.style.left="0",ot.style.top="0",ot.style.right="auto",ot.style.bottom="auto",ot.style.overflow="hidden";var J;if(Array.isArray(he))J={x:he[0],y:he[1],width:0,height:0};else{var ve,Ce,X=he.getBoundingClientRect();X.x=(ve=X.x)!==null&&ve!==void 0?ve:X.left,X.y=(Ce=X.y)!==null&&Ce!==void 0?Ce:X.top,J={x:X.x,y:X.y,width:X.width,height:X.height}}var ct=ot.getBoundingClientRect(),ge=x.getComputedStyle(ot),wt=ge.height,Ft=ge.width;ct.x=(Xe=ct.x)!==null&&Xe!==void 0?Xe:ct.left,ct.y=(qe=ct.y)!==null&&qe!==void 0?qe:ct.top;var Kt=Ct.documentElement,on=Kt.clientWidth,rn=Kt.clientHeight,Zt=Kt.scrollWidth,ln=Kt.scrollHeight,er=Kt.scrollTop,Sn=Kt.scrollLeft,pn=ct.height,Ut=ct.width,Rt=J.height,Ot=J.width,Xt={left:0,top:0,right:on,bottom:rn},un={left:-Sn,top:-er,right:Zt-Sn,bottom:ln-er},In=He.htmlRegion,ar="visible",yr="visibleFirst";In!=="scroll"&&In!==yr&&(In=ar);var br=In===yr,_r=B(un,Qe),On=B(Xt,Qe),cr=In===ar?On:_r,nr=br?On:cr;ot.style.left="auto",ot.style.top="auto",ot.style.right="0",ot.style.bottom="0";var Mr=ot.getBoundingClientRect();ot.style.left=I,ot.style.top=U,ot.style.right=it,ot.style.bottom=xe,ot.style.overflow=Re,(st=ot.parentElement)===null||st===void 0||st.removeChild(G);var dr=y(Math.round(Ut/parseFloat(Ft)*1e3)/1e3),Mn=y(Math.round(pn/parseFloat(wt)*1e3)/1e3);if(dr===0||Mn===0||(0,ie.Sh)(he)&&!(0,ae.Z)(he))return;var Bn=He.offset,Nn=He.targetOffset,ir=Ne(ct,Bn),at=(0,fe.Z)(ir,2),yt=at[0],kt=at[1],At=Ne(J,Nn),Lt=(0,fe.Z)(At,2),Bt=Lt[0],jt=Lt[1];J.x-=Bt,J.y-=jt;var Vt=He.points||[],Rn=(0,fe.Z)(Vt,2),Ln=Rn[0],hr=Rn[1],dn=We(hr),cn=We(Ln),Pn=Te(J,dn),Gn=Te(ct,cn),Hn=(0,_.Z)({},He),bn=Pn.x-Gn.x+yt,kn=Pn.y-Gn.y+kt,qn=$r(bn,kn),Wn=$r(bn,kn,On),zn=Te(J,["t","l"]),or=Te(ct,["t","l"]),Zn=Te(J,["b","r"]),Qn=Te(ct,["b","r"]),xr=He.overflow||{},bt=xr.adjustX,mn=xr.adjustY,Yn=xr.shiftX,wr=xr.shiftY,Br=function(Jr){return typeof Jr=="boolean"?Jr:Jr>=0},Tr,Er,xn,Vn;Lr();var Ar=Br(mn),lr=cn[0]===dn[0];if(Ar&&cn[0]==="t"&&(Er>nr.bottom||tt.current.bt)){var Qt=kn;lr?Qt-=pn-Rt:Qt=zn.y-Qn.y-kt;var gn=$r(bn,Qt),Fn=$r(bn,Qt,On);gn>qn||gn===qn&&(!br||Fn>=Wn)?(tt.current.bt=!0,kn=Qt,kt=-kt,Hn.points=[ze(cn,0),ze(dn,0)]):tt.current.bt=!1}if(Ar&&cn[0]==="b"&&(Trqn||Yt===qn&&(!br||tr>=Wn)?(tt.current.tb=!0,kn=yn,kt=-kt,Hn.points=[ze(cn,0),ze(dn,0)]):tt.current.tb=!1}var rr=Br(bt),Hr=cn[1]===dn[1];if(rr&&cn[1]==="l"&&(Vn>nr.right||tt.current.rl)){var ei=bn;Hr?ei-=Ut-Ot:ei=zn.x-Qn.x-yt;var ti=$r(ei,kn),Nr=$r(ei,kn,On);ti>qn||ti===qn&&(!br||Nr>=Wn)?(tt.current.rl=!0,bn=ei,yt=-yt,Hn.points=[ze(cn,1),ze(dn,1)]):tt.current.rl=!1}if(rr&&cn[1]==="r"&&(xnqn||fr===qn&&(!br||di>=Wn)?(tt.current.lr=!0,bn=Wr,yt=-yt,Hn.points=[ze(cn,1),ze(dn,1)]):tt.current.lr=!1}Lr();var jr=Yn===!0?0:Yn;typeof jr=="number"&&(xnOn.right&&(bn-=Vn-On.right-yt,J.x>On.right-jr&&(bn+=J.x-On.right+jr)));var Xr=wr===!0?0:wr;typeof Xr=="number"&&(TrOn.bottom&&(kn-=Er-On.bottom-kt,J.y>On.bottom-Xr&&(kn+=J.y-On.bottom+Xr)));var ni=ct.x+bn,ri=ni+Ut,jn=ct.y+kn,hi=jn+pn,fi=J.x,si=fi+Ot,Ur=J.y,An=Ur+Rt,Ii=Math.max(ni,fi),Ht=Math.min(ri,si),zr=(Ii+Ht)/2,Ri=zr-ni,Ei=Math.max(jn,Ur),Gr=Math.min(hi,An),Qr=(Ei+Gr)/2,Cn=Qr-jn;M==null||M(Ae,Hn);var Kr=Mr.right-ct.x-(bn+ct.width),ai=Mr.bottom-ct.y-(kn+ct.height);dr===1&&(bn=Math.floor(bn),Kr=Math.floor(Kr)),Mn===1&&(kn=Math.floor(kn),ai=Math.floor(ai));var Li={ready:!0,offsetX:bn/dr,offsetY:kn/Mn,offsetR:Kr/dr,offsetB:ai/Mn,arrowX:Ri/dr,arrowY:Cn/Mn,scaleX:dr,scaleY:Mn,align:Hn};Fe(Li)}}),St=function(){Ze.current+=1;var Xe=Ze.current;Promise.resolve().then(function(){Ze.current===Xe&&dt()})},gt=function(){Fe(function(Xe){return(0,_.Z)((0,_.Z)({},Xe),{},{ready:!1})})};return(0,w.Z)(gt,[je]),(0,w.Z)(function(){Pe||gt()},[Pe]),[Me.ready,Me.offsetX,Me.offsetY,Me.offsetR,Me.offsetB,Me.arrowX,Me.arrowY,Me.scaleX,Me.scaleY,Me.align,St]}var Je=b(77654);function Ve(Pe,Ae,he,je,Ie){(0,w.Z)(function(){if(Pe&&Ae&&he){let Ze=function(){je(),Ie()};var we=Ae,M=he,de=W(we),_e=W(M),Me=re(M),Fe=new Set([Me].concat((0,Je.Z)(de),(0,Je.Z)(_e)));return Fe.forEach(function(Qe){Qe.addEventListener("scroll",Ze,{passive:!0})}),Me.addEventListener("resize",Ze,{passive:!0}),je(),function(){Fe.forEach(function(Qe){Qe.removeEventListener("scroll",Ze),Me.removeEventListener("resize",Ze)})}}},[Pe,Ae,he])}var Tt=b(48736);function Ke(Pe,Ae,he,je,Ie,we,M,de){var _e=C.useRef(Pe);_e.current=Pe;var Me=C.useRef(!1);C.useEffect(function(){if(Ae&&je&&(!Ie||we)){var Ze=function(){Me.current=!1},Qe=function(qe){var st;_e.current&&!M(((st=qe.composedPath)===null||st===void 0||(st=st.call(qe))===null||st===void 0?void 0:st[0])||qe.target)&&!Me.current&&de(!1)},tt=re(je);tt.addEventListener("pointerdown",Ze,!0),tt.addEventListener("mousedown",Qe,!0),tt.addEventListener("contextmenu",Qe,!0);var ut=(0,o.A)(he);if(ut&&(ut.addEventListener("mousedown",Qe,!0),ut.addEventListener("contextmenu",Qe,!0)),0)var dt,St,gt,_t;return function(){tt.removeEventListener("pointerdown",Ze,!0),tt.removeEventListener("mousedown",Qe,!0),tt.removeEventListener("contextmenu",Qe,!0),ut&&(ut.removeEventListener("mousedown",Qe,!0),ut.removeEventListener("contextmenu",Qe,!0))}}},[Ae,he,je,Ie,we]);function Fe(){Me.current=!0}return Fe}var Et=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function Le(){var Pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:pe.Z,Ae=C.forwardRef(function(he,je){var Ie=he.prefixCls,we=Ie===void 0?"rc-trigger-popup":Ie,M=he.children,de=he.action,_e=de===void 0?"hover":de,Me=he.showAction,Fe=he.hideAction,Ze=he.popupVisible,Qe=he.defaultPopupVisible,tt=he.onPopupVisibleChange,ut=he.afterPopupVisibleChange,dt=he.mouseEnterDelay,St=he.mouseLeaveDelay,gt=St===void 0?.1:St,_t=he.focusDelay,Xe=he.blurDelay,qe=he.mask,st=he.maskClosable,ot=st===void 0?!0:st,Ct=he.getPopupContainer,x=he.forceRender,D=he.autoDestroy,se=he.destroyPopupOnHide,I=he.popup,U=he.popupClassName,it=he.popupStyle,xe=he.popupPlacement,Re=he.builtinPlacements,He=Re===void 0?{}:Re,G=he.popupAlign,J=he.zIndex,ve=he.stretch,Ce=he.getPopupClassNameFromAlign,X=he.fresh,ct=he.alignPoint,ge=he.onPopupClick,wt=he.onPopupAlign,Ft=he.arrow,Kt=he.popupMotion,on=he.maskMotion,rn=he.popupTransitionName,Zt=he.popupAnimation,ln=he.maskTransitionName,er=he.maskAnimation,Sn=he.className,pn=he.getTriggerDOMNode,Ut=(0,be.Z)(he,Et),Rt=D||se||!1,Ot=C.useState(!1),Xt=(0,fe.Z)(Ot,2),un=Xt[0],In=Xt[1];(0,w.Z)(function(){In((0,S.Z)())},[]);var ar=C.useRef({}),yr=C.useContext(Ue),br=C.useMemo(function(){return{registerSubPopup:function(Dn,pr){ar.current[Dn]=pr,yr==null||yr.registerSubPopup(Dn,pr)}}},[yr]),_r=(0,N.Z)(),On=C.useState(null),cr=(0,fe.Z)(On,2),nr=cr[0],Mr=cr[1],dr=C.useRef(null),Mn=(0,Y.Z)(function(sn){dr.current=sn,(0,ie.Sh)(sn)&&nr!==sn&&Mr(sn),yr==null||yr.registerSubPopup(_r,sn)}),Bn=C.useState(null),Nn=(0,fe.Z)(Bn,2),ir=Nn[0],at=Nn[1],yt=C.useRef(null),kt=(0,Y.Z)(function(sn){(0,ie.Sh)(sn)&&ir!==sn&&(at(sn),yt.current=sn)}),At=C.Children.only(M),Lt=(At==null?void 0:At.props)||{},Bt={},jt=(0,Y.Z)(function(sn){var Dn,pr,$n=ir;return($n==null?void 0:$n.contains(sn))||((Dn=(0,o.A)($n))===null||Dn===void 0?void 0:Dn.host)===sn||sn===$n||(nr==null?void 0:nr.contains(sn))||((pr=(0,o.A)(nr))===null||pr===void 0?void 0:pr.host)===sn||sn===nr||Object.values(ar.current).some(function(Xn){return(Xn==null?void 0:Xn.contains(sn))||sn===Xn})}),Vt=ne(we,Kt,Zt,rn),Rn=ne(we,on,er,ln),Ln=C.useState(Qe||!1),hr=(0,fe.Z)(Ln,2),dn=hr[0],cn=hr[1],Pn=Ze!=null?Ze:dn,Gn=(0,Y.Z)(function(sn){Ze===void 0&&cn(sn)});(0,w.Z)(function(){cn(Ze||!1)},[Ze]);var Hn=C.useRef(Pn);Hn.current=Pn;var bn=C.useRef([]);bn.current=[];var kn=(0,Y.Z)(function(sn){var Dn;Gn(sn),((Dn=bn.current[bn.current.length-1])!==null&&Dn!==void 0?Dn:Pn)!==sn&&(bn.current.push(sn),tt==null||tt(sn))}),qn=C.useRef(),Wn=function(){clearTimeout(qn.current)},zn=function(Dn){var pr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Wn(),pr===0?kn(Dn):qn.current=setTimeout(function(){kn(Dn)},pr*1e3)};C.useEffect(function(){return Wn},[]);var or=C.useState(!1),Zn=(0,fe.Z)(or,2),Qn=Zn[0],xr=Zn[1];(0,w.Z)(function(sn){(!sn||Pn)&&xr(!0)},[Pn]);var bt=C.useState(null),mn=(0,fe.Z)(bt,2),Yn=mn[0],wr=mn[1],Br=C.useState(null),Tr=(0,fe.Z)(Br,2),Er=Tr[0],xn=Tr[1],Vn=function(Dn){xn([Dn.clientX,Dn.clientY])},Ar=Ye(Pn,nr,ct&&Er!==null?Er:ir,xe,He,G,wt),lr=(0,fe.Z)(Ar,11),Qt=lr[0],gn=lr[1],Fn=lr[2],yn=lr[3],Yt=lr[4],tr=lr[5],rr=lr[6],Hr=lr[7],ei=lr[8],ti=lr[9],Nr=lr[10],Wr=rt(un,_e,Me,Fe),fr=(0,fe.Z)(Wr,2),di=fr[0],jr=fr[1],Xr=di.has("click"),ni=jr.has("click")||jr.has("contextMenu"),ri=(0,Y.Z)(function(){Qn||Nr()}),jn=function(){Hn.current&&ct&&ni&&zn(!1)};Ve(Pn,ir,nr,ri,jn),(0,w.Z)(function(){ri()},[Er,xe]),(0,w.Z)(function(){Pn&&!(He!=null&&He[xe])&&ri()},[JSON.stringify(G)]);var hi=C.useMemo(function(){var sn=Z(He,we,ti,ct);return m()(sn,Ce==null?void 0:Ce(ti))},[ti,Ce,He,we,ct]);C.useImperativeHandle(je,function(){return{nativeElement:yt.current,popupElement:dr.current,forceAlign:ri}});var fi=C.useState(0),si=(0,fe.Z)(fi,2),Ur=si[0],An=si[1],Ii=C.useState(0),Ht=(0,fe.Z)(Ii,2),zr=Ht[0],Ri=Ht[1],Ei=function(){if(ve&&ir){var Dn=ir.getBoundingClientRect();An(Dn.width),Ri(Dn.height)}},Gr=function(){Ei(),ri()},Qr=function(Dn){xr(!1),Nr(),ut==null||ut(Dn)},Cn=function(){return new Promise(function(Dn){Ei(),wr(function(){return Dn})})};(0,w.Z)(function(){Yn&&(Nr(),Yn(),wr(null))},[Yn]);function Kr(sn,Dn,pr,$n){Bt[sn]=function(Xn){var wi;$n==null||$n(Xn),zn(Dn,pr);for(var Vr=arguments.length,ki=new Array(Vr>1?Vr-1:0),Ki=1;Ki1?pr-1:0),Xn=1;Xn1?pr-1:0),Xn=1;XnL in C?pe(C,L,{enumerable:!0,configurable:!0,writable:!0,value:Q}):C[L]=Q,N=(C,L)=>{for(var Q in L||(L={}))ie.call(L,Q)&&Y(C,Q,L[Q]);if(ce)for(var Q of ce(L))o.call(L,Q)&&Y(C,Q,L[Q]);return C},w=(C,L)=>z(C,m(L));const S=({img:C,buttonProps:L={},styles:Q={},customText:q,ButtonText:H,ButtonClick:T,Buttonclass:V,ButtonTwo:P,imgStyles:F,loading:oe=!1,className:ye=""})=>_.createElement("section",{className:`tc animated fadeIn ${ye}`,style:N({color:"#999",margin:"100px auto",visibility:oe?"hidden":"visible"},Q)},_.createElement("img",{src:C||fe,style:w(N({},F),{pointerEvents:"none",userSelect:"none"})}),_.createElement("p",{className:"mt20 font14"},q||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),H&&_.createElement(be.ZP,N({className:V,onClick:T},L),H),P&&P);nt.Z=S},86974:function(Gt,nt,b){"use strict";b.d(nt,{Z:function(){return V}});var _=b(59301),fe={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",showClose:"showClose___edZQA",embed:"embed___hvpEJ"},be=b(7939),pe=b(70557),z=b(34728),m=b(25399),ce=b(76406),ie=b(84849),o=b(90736),Y=b(14185),N=b(52078),w=b(59301),S=Object.defineProperty,C=Object.getOwnPropertySymbols,L=Object.prototype.hasOwnProperty,Q=Object.prototype.propertyIsEnumerable,q=(P,F,oe)=>F in P?S(P,F,{enumerable:!0,configurable:!0,writable:!0,value:oe}):P[F]=oe,H=(P,F)=>{for(var oe in F||(F={}))L.call(F,oe)&&q(P,oe,F[oe]);if(C)for(var oe of C(F))Q.call(F,oe)&&q(P,oe,F[oe]);return P},T=(P,F,oe)=>new Promise((ye,le)=>{var De=rt=>{try{Be(oe.next(rt))}catch(ae){le(ae)}},Ue=rt=>{try{Be(oe.throw(rt))}catch(ae){le(ae)}},Be=rt=>rt.done?ye(rt.value):Promise.resolve(rt.value).then(De,Ue);Be((oe=oe.apply(P,F)).next())}),V=({editOffice:P="view",data:F,issaver:oe,onSaver:ye,theme:le,type:De,filename:Ue,monacoEditor:Be,className:rt,style:ae,close:$,onClose:Z,hasMask:ne,disabledDownload:re,onImgDimensions:W,showNodata:y,recordInfo:E})=>{const[B,ue]=(0,_.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Ne,We]=(0,_.useState)(""),[Te,ze]=(0,_.useState)(),Ye=window.ENV==="build"?"/react/build":"",Je=location.host.startsWith("localhost")?Y.Z.PROXY_SERVER:Y.Z.API_SERVER,Tt=10*(1024*1024),Ke=(0,_.useRef)();F!=null&&F.startsWith("/api")&&De!=="txt"&&(F=Y.Z.API_SERVER+F);const Et=je=>je.substring(je.lastIndexOf("/")+1).split(".").pop();Ue&&Be&&(Be.filename=Ue),(0,_.useEffect)(()=>{var je,Ie;const we=(Ie=(je=document.cookie)==null?void 0:je.replace(/\s/g,""))==null?void 0:Ie.split(";");we==null||we.map(M=>{let de=M.split("=");de[0]==="_educoder_session"&&We(de[1])})},[]),(0,_.useEffect)(()=>{De==="office"&&(F.indexOf("bigfilescdn.")>-1||F.indexOf("bigfiles1")>-1?ze({url:F,fileType:Et(F),model:F.indexOf("model=edit")?"edit":"view"}):F.indexOf("coze")>-1?ze({url:F,fileType:"doc",model:"view"}):pt())},[De,F]);function Le(je){return T(this,null,function*(){je.data.type==="pdfdata"&&(ye(je.data.data),window.removeEventListener("message",Le,!1)),console.log("mess---:",je.data)})}const pt=()=>T(void 0,null,function*(){console.log("data:",F);let je=F;F.startsWith("http")||(je=location.origin+je);let Ie=new URL(je).pathname.split("/").pop();const we=yield(0,ie.gJ)({attachment_id:Ie});we.url=Je+we.url,ze(we)}),Pe=()=>{if(F.startsWith("http")||F.startsWith("blob:")){Ae();return}(0,ce.Sv)(Ue||"educoder",F,Ue)},Ae=()=>{E&&(0,N.fc)({id:E==null?void 0:E.id,watch_type:1,course_id:E==null?void 0:E.course_id}),(0,ce.Nd)(Ue||"educoder",decodeURIComponent(F))};(0,_.useEffect)(()=>(window.addEventListener("message",he),()=>{window.removeEventListener("message",he)}),[]);const he=je=>{var Ie;((Ie=je==null?void 0:je.data)==null?void 0:Ie.type)==="closePop"&&Z()};return w.createElement("div",{style:H({},ae||{}),className:`${ne&&fe.bgBlack} ${De?fe.wrp:"hide"}`},!!De&&$&&w.createElement("div",{id:"closePop",className:fe.close,ref:Ke},!!W&&w.createElement(m.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Ke.current},w.createElement("span",{onClick:()=>{Z(),W()}},w.createElement("i",{className:"icon-yulanpizhu"}))),!re&&window.parent===window&&w.createElement(m.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Ke.current},w.createElement("span",{onClick:Ae},w.createElement("i",{className:"icon-quxiaozhiding"}))),oe&&w.createElement(m.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>Ke.current},w.createElement("span",{className:"",onClick:()=>{const je=document.getElementById("pdfiframe");window.addEventListener("message",Le,!1),setTimeout(()=>{je.contentWindow.postMessage("getData","*")},300)}},w.createElement("i",{className:"icon-baocun"}))),w.createElement(m.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Ke.current},w.createElement("span",{className:"",onClick:()=>{Z()}},w.createElement("i",{className:"icon-guanbi1"})))),w.createElement("div",{className:`${fe[rt]} ${rt} ${fe.monaco} ${De==="txt"?"show":"hide"}`},De==="txt"&&w.createElement(w.Fragment,null,w.createElement(z.ZP,H({},Be)))),De==="audio"&&w.createElement("audio",{controls:!0,src:`${(F==null?void 0:F.indexOf("http://"))>-1||(F==null?void 0:F.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${F}`,autoPlay:!0}),De==="video"&&w.createElement(w.Fragment,null,(F==null?void 0:F.indexOf("http"))>-1?w.createElement("video",{controls:!0,src:`${F}`,autoPlay:!0}):w.createElement("video",{controls:!0,src:`data:video/mp4;base64,${F}`,autoPlay:!0})),De==="office"&&Te&&w.createElement("iframe",{src:`${Ye}/office.html?key=${Te.key}&url=${btoa(Te.url)}&callbackUrl=${Je+(Te.callbackUrl||"")}&fileType=${Te.fileType}&title=${Te.title||""}&model=${P}&officeServer=${Y.Z.ONLYOFFICE}&disabledDownload=${!!re}`}),De==="html"&&w.createElement("iframe",{src:F+"&disposition=inline"}),De==="pdf"&&w.createElement("iframe",{id:"pdfiframe",src:`${Ye}/js/pdf/index.html?filename=${Ue||"educoder.pdf"}&url=${encodeURIComponent(F)}&disabledDownload=${!!re}&model=${P}`}),De==="image"&&w.createElement("img",{src:`${(F==null?void 0:F.indexOf("http://"))>-1||(F==null?void 0:F.indexOf("https://"))>-1?"":"data:image/png;base64,"}${F}`}),(De==="other"||De==="download")&&w.createElement(w.Fragment,null,y?w.createElement(o.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:w.createElement(be.ZP,{icon:w.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Pe,disabled:re},"\u4E0B\u8F7D")}):w.createElement(be.ZP,{type:"primary",size:"middle",onClick:Pe,disabled:re},w.createElement(pe.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),De==="flowChart"&&w.createElement("div",{className:"embed"},w.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${F||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},35883:function(Gt,nt,b){"use strict";b.d(nt,{z:function(){return Be},Z:function(){return rt}});var _=b(59301),fe=b(46214),be=b(20047),pe=b(64018),z=b(16471),m=b(14185),ce=b(76406),ie=b(15342),o=b(44104),Y=b(7939),N=b(1012),w=b(86974),S=b(59301),L=({html:ae})=>{const $=(0,_.useRef)(null),Z=(0,_.useRef)(null),ne=`.markdown-body p { margin: 0 0 16px 0 !important; line-height: 28px; white-space: pre-wrap; } ol, ul, li { list-style-type: none } ol, ul, dl { margin-bottom: 0px; } .markdown-body { -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; color: #333; overflow: hidden; font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "\u534E\u6587\u7EC6\u9ED1", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "\u5B8B\u4F53", Heiti, "\u9ED1\u4F53", sans-serif; word-break: break-word; font-size: 16px; line-height: 1.6; white-space: normal; word-wrap: break-word; position: relative; } .markdown-body ul>li { list-style-type: disc; } .markdown-body ol>li { list-style-type: decimal; } .markdown-body a { background: transparent; } .markdown-body a:active, .markdown-body a:hover { outline: 0; } .markdown-body strong { font-weight: bold; } .markdown-body h1 { font-size: 2em; margin: 0.67em 0; } .markdown-body img { border: 0; } .markdown-body hr { -moz-box-sizing: content-box; box-sizing: content-box; height: 0; } .markdown-body pre { overflow: auto; } .markdown-body code, .markdown-body kbd, .markdown-body pre { font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace; font-size: 1em; } .markdown-body input { color: inherit; font: inherit; margin: 0; } .markdown-body html input[disabled] { cursor: default; } .markdown-body input { line-height: normal; } .markdown-body input[type="checkbox"] { -moz-box-sizing: border-box; box-sizing: border-box; padding: 0; } .markdown-body table { border-collapse: collapse; border-spacing: 0; } .markdown-body td, .markdown-body th { padding: 0; } .markdown-body * { -moz-box-sizing: border-box; box-sizing: border-box; } .markdown-body input { font: 13px/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol"; } .markdown-body a { color: #4183c4; text-decoration: none; } .markdown-body a:hover, .markdown-body a:active { text-decoration: underline; } .markdown-body hr { height: 0; margin: 15px 0; overflow: hidden; background: transparent; border: 0; border-bottom: 1px solid #ddd; } .markdown-body hr:before { display: table; content: ""; } .markdown-body hr:after { display: table; clear: both; content: ""; } .markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4, .markdown-body h5, .markdown-body h6 { margin-top: 15px; margin-bottom: 15px; line-height: 1.1; } .markdown-body h1 { font-size: 30px; } .markdown-body h2 { font-size: 21px; } .markdown-body h3 { font-size: 16px; } .markdown-body h4 { font-size: 14px; } .markdown-body h5 { font-size: 12px; } .markdown-body h6 { font-size: 11px; } .markdown-body blockquote { margin: 0; } .markdown-body ul, .markdown-body ol { padding: 0; margin-top: 0; margin-bottom: 0; } ul.linenums, ol.linenums { padding: 16px 0 0 56px !important; } .markdown-body ul, .markdown-body ol { padding-left: 2em; } .markdown-body ol ol, .markdown-body ul ol { list-style-type: lower-roman; } .markdown-body ul ul ol, .markdown-body ul ol ol, .markdown-body ol ul ol, .markdown-body ol ol ol { list-style-type: lower-alpha; } .markdown-body dd { margin-left: 0; } .markdown-body code { font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 12px; } .markdown-body pre { margin-top: 0; margin-bottom: 0; font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace; } .markdown-body .octicon { font: normal normal 16px octicons-anchor; line-height: 1; display: inline-block; text-decoration: none; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .markdown-body .octicon-link:before { content: '\f05c'; } .markdown-body>*:first-child { margin-top: 0 !important; } .markdown-body>*:last-child { margin-bottom: 0 !important; } .markdown-body .anchor { position: absolute; top: 0; left: 0; display: block; padding-right: 6px; padding-left: 30px; margin-left: -30px; } .markdown-body .anchor:focus { outline: none; } .markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4, .markdown-body h5, .markdown-body h6 { position: relative; margin-top: 1em; margin-bottom: 16px; font-weight: bold; line-height: 1.4; } .markdown-body h1 .octicon-link, .markdown-body h2 .octicon-link, .markdown-body h3 .octicon-link, .markdown-body h4 .octicon-link, .markdown-body h5 .octicon-link, .markdown-body h6 .octicon-link { display: none; color: #000; vertical-align: middle; } .markdown-body h1:hover .anchor, .markdown-body h2:hover .anchor, .markdown-body h3:hover .anchor, .markdown-body h4:hover .anchor, .markdown-body h5:hover .anchor, .markdown-body h6:hover .anchor { padding-left: 8px; margin-left: -30px; text-decoration: none; } .markdown-body h1:hover .anchor .octicon-link, .markdown-body h2:hover .anchor .octicon-link, .markdown-body h3:hover .anchor .octicon-link, .markdown-body h4:hover .anchor .octicon-link, .markdown-body h5:hover .anchor .octicon-link, .markdown-body h6:hover .anchor .octicon-link { display: inline-block; } .markdown-body h1 { padding-bottom: 0.3em; font-size: 2.25em; line-height: 1.2; border-bottom: 1px solid #eee; } .markdown-body h1 .anchor { line-height: 1; } .markdown-body h2 { padding-bottom: 0.3em; font-size: 1.75em; line-height: 1.225; border-bottom: 1px solid #eee; } .markdown-body h2 .anchor { line-height: 1; } .markdown-body h3 { font-size: 1.5em; line-height: 1.43; } .markdown-body h3 .anchor { line-height: 1.2; } .markdown-body h4 { font-size: 1.25em; } .markdown-body h4 .anchor { line-height: 1.2; } .markdown-body h5 { font-size: 1em; } .markdown-body h5 .anchor { line-height: 1.1; } .markdown-body h6 { font-size: 1em; color: #777; } .markdown-body h6 .anchor { line-height: 1.1; } .markdown-body p, .markdown-body blockquote, .markdown-body ul, .markdown-body ol, .markdown-body dl, .markdown-body table, .markdown-body pre { margin-top: 0; margin-bottom: 16px; } .markdown-body ul ul, .markdown-body ul ol, .markdown-body ol ol, .markdown-body ol ul { margin-top: 0; margin-bottom: 0; } .markdown-body li>p { margin-top: 16px; } .markdown-body dl { padding: 0; } .markdown-body dl dt { padding: 0; margin-top: 16px; font-size: 1em; font-style: italic; font-weight: bold; } .markdown-body dl dd { padding: 0 16px; margin-bottom: 16px; } .markdown-body blockquote { padding: 0 15px; color: #777; border-left: 4px solid #ddd; } .markdown-body blockquote> :first-child { margin-top: 0; } .markdown-body blockquote> :last-child { margin-bottom: 0; } .markdown-body table { display: block; width: 100%; overflow: auto; word-break: normal; word-break: keep-all; } .markdown-body table th { font-weight: bold; text-align: revert; } .markdown-body table th, .markdown-body table td { padding: 6px 13px; border: 1px solid #ddd; } .markdown-body table tr { background-color: #fff; border-top: 1px solid #ccc; } .markdown-body table tr:nth-child(2n) { background-color: #f8f8f8; } .markdown-body img { max-width: 100%; -moz-box-sizing: border-box; box-sizing: border-box; } .markdown-body code { padding: 0; padding-top: 0.2em; padding-bottom: 0.2em; margin: 0; font-size: 85%; background-color: rgba(0, 0, 0, 0.04); border-radius: 3px; } .markdown-body code:has(.katex) { background-color: transparent; } .markdown-body code:before, .markdown-body code:after { letter-spacing: -0.2em; content: "\\00a0"; } .markdown-body pre>code { padding: 0; margin: 0; font-size: 100%; word-break: normal; white-space: pre; background: transparent; border: 0; } .markdown-body .highlight { margin-bottom: 16px; } .markdown-body .highlight pre, .markdown-body pre { padding: 16px; overflow: auto; font-size: 85%; line-height: 1.45; background-color: #f7f7f7; border-radius: 3px; } .markdown-body .highlight pre { margin-bottom: 0; word-break: normal; } .markdown-body pre { word-wrap: normal; } .markdown-body pre code { display: inline; max-width: initial; padding: 0; margin: 0; overflow: initial; line-height: inherit; word-wrap: normal; background-color: transparent; border: 0; } .markdown-body pre code:before, .markdown-body pre code:after { content: normal; } .markdown-body kbd { display: inline-block; padding: 3px 5px; font-size: 11px; line-height: 10px; color: #555; vertical-align: middle; background-color: #fcfcfc; border: solid 1px #ccc; border-bottom-color: #bbb; border-radius: 3px; box-shadow: inset 0 -1px 0 #bbb; } .markdown-body .pl-c { color: #969896; } .markdown-body .pl-c1, .markdown-body .pl-mdh, .markdown-body .pl-mm, .markdown-body .pl-mp, .markdown-body .pl-mr, .markdown-body .pl-s1 .pl-v, .markdown-body .pl-s3, .markdown-body .pl-sc, .markdown-body .pl-sv { color: #0086b3; } .markdown-body .pl-e, .markdown-body .pl-en { color: #795da3; } .markdown-body .pl-s1 .pl-s2, .markdown-body .pl-smi, .markdown-body .pl-smp, .markdown-body .pl-stj, .markdown-body .pl-vo, .markdown-body .pl-vpf { color: #333; } .markdown-body .pl-ent { color: #63a35c; } .markdown-body .pl-k, .markdown-body .pl-s, .markdown-body .pl-st { color: #a71d5d; } .markdown-body .pl-pds, .markdown-body .pl-s1, .markdown-body .pl-s1 .pl-pse .pl-s2, .markdown-body .pl-sr, .markdown-body .pl-sr .pl-cce, .markdown-body .pl-sr .pl-sra, .markdown-body .pl-sr .pl-sre, .markdown-body .pl-src { color: #df5000; } .markdown-body .pl-mo, .markdown-body .pl-v { color: #1d3e81; } .markdown-body .pl-id { color: #b52a1d; } .markdown-body .pl-ii { background-color: #b52a1d; color: #f8f8f8; } .markdown-body .pl-sr .pl-cce { color: #63a35c; font-weight: bold; } .markdown-body .pl-ml { color: #693a17; } .markdown-body .pl-mh, .markdown-body .pl-mh .pl-en, .markdown-body .pl-ms { color: #1d3e81; font-weight: bold; } .markdown-body .pl-mq { color: #008080; } .markdown-body .pl-mi { color: #333; font-style: italic; } .markdown-body .pl-mb { color: #333; font-weight: bold; } .markdown-body .pl-md, .markdown-body .pl-mdhf { background-color: #ffecec; color: #bd2c00; } .markdown-body .pl-mdht, .markdown-body .pl-mi1 { background-color: #eaffea; color: #55a532; } .markdown-body .pl-mdr { color: #795da3; font-weight: bold; } .markdown-body kbd { display: inline-block; padding: 3px 5px; font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace; line-height: 10px; color: #555; vertical-align: middle; background-color: #fcfcfc; border: solid 1px #ccc; border-bottom-color: #bbb; border-radius: 3px; box-shadow: inset 0 -1px 0 #bbb; } .markdown-body .task-list-item { list-style-type: none; } .markdown-body .task-list-item+.task-list-item { margin-top: 3px; } .markdown-body .task-list-item input { float: left; margin: 0.3em 0 0.25em -1.6em; vertical-align: middle; } .markdown-body :checked+.radio-label { z-index: 1; position: relative; border-color: #4183c4; } /*! Pretty printing styles. Used with prettify.js. */ /* SPAN elements with the classes below are added by prettyprint. */ .pln { color: #000 } /* plain text */ @media screen { .str { color: #080 } /* string content */ .kwd { color: #008 } /* a keyword */ .com { color: #800 } /* a comment */ .typ { color: #606 } /* a type name */ .lit { color: #066 } /* a literal value */ /* punctuation, lisp open bracket, lisp close bracket */ .pun, .opn, .clo { color: #660 } .tag { color: #008 } /* a markup tag name */ .atn { color: #606 } /* a markup attribute name */ .atv { color: #080 } /* a markup attribute value */ .dec, .var { color: #606 } /* a declaration; a variable name */ .fun { color: red } /* a function name */ } /* Use higher contrast and text-weight for printable form. */ @media print, projection { .str { color: #060 } .kwd { color: #006; font-weight: bold } .com { color: #600; font-style: italic } .typ { color: #404; font-weight: bold } .lit { color: #044 } .pun, .opn, .clo { color: #440 } .tag { color: #006; font-weight: bold } .atn { color: #404 } .atv { color: #060 } } /* Put a border around prettyprinted code snippets. */ pre.prettyprint { padding: 2px; /* border: 1px solid #888 */ } /* Specify class=linenums on a pre to get line numbering */ ol.linenums { margin-top: 0; margin-bottom: 0 } /* IE indents via margin-left */ li.L0, li.L1, li.L2, li.L3, li.L5, li.L6, li.L7, li.L8 { list-style-type: none } /* Alternate shading for lines */ li.L1, li.L3, li.L5, li.L7, li.L9 { background: #eee } .markdown-body p, .markdown-body blockquote, .markdown-body ul, .markdown-body ol, .markdown-body dl, .markdown-body table, .markdown-body pre { margin-top: 0; margin-bottom: 16px; }`;return(0,_.useEffect)(()=>{const re=$.current.attachShadow({mode:"open"});Z.current=document.createElement("div"),Z.current.className="markdown-body",Z.current.innerHTML=ae,re.appendChild(Z.current);const W=document.createElement("style");return W.textContent=ne,re.appendChild(W),()=>{re.innerHTML=""}},[]),(0,_.useEffect)(()=>{Z.current&&(Z.current.innerHTML=ae)},[ae]),S.createElement("div",{ref:$})};function Q(ae){const $=["onabort","onanimationend","onanimationiteration","onanimationstart","onauxclick","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncopy","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitionend","onvolumechange","onwaiting","onwheel"],Z=new RegExp(`\\b(${$.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi"),ne=/]*>/gi;return ae.replace(Z,"").replace(ne,"").trim()}var q={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},H=Object.defineProperty,T=Object.getOwnPropertySymbols,V=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable,F=(ae,$,Z)=>$ in ae?H(ae,$,{enumerable:!0,configurable:!0,writable:!0,value:Z}):ae[$]=Z,oe=(ae,$)=>{for(var Z in $||($={}))V.call($,Z)&&F(ae,Z,$[Z]);if(T)for(var Z of T($))P.call($,Z)&&F(ae,Z,$[Z]);return ae};const ye="@\u2581\u2581@",le="@\u2581@",De=/]*>/g;function Ue(ae){let $=document.createElement("div");return $.innerHTML=ae,$.childNodes.length===0?"":$.childNodes[0].nodeValue}const Be=(ae,$)=>{ae=ae||"";const Z=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,ne=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,re=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,W=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return $?ae.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(Z,(y,E,B,ue,Ne,We,Te)=>{const ze=E||ue||We,Ye=B||Ne||Te||"?";return m.Z.API_SERVER+"/api/attachments/"+ze+Ye+"&t="+(0,ce.Jn)(ze,Date.now())+(y.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(ae=ae.replace(W,(y,E,B,ue,Ne,We,Te)=>{const ze=E||ue||We,Ye=B||Ne||Te||"?";return m.Z.API_SERVER+"/attachments/download/"+ze+Ye+"&t="+(0,ce.Jn)(ze,Date.now())+(y.indexOf(")")>-1?")":"&")}).replace(Z,(y,E,B,ue,Ne,We,Te)=>{const ze=E||ue||We,Ye=B||Ne||Te||"?";return m.Z.API_SERVER+"/api/attachments/"+ze+Ye+"&t="+(0,ce.Jn)(ze,Date.now())+(y.indexOf(")")>-1?")":"&")}).replace(ne,(y,E,B,ue,Ne)=>{const We=E||ue,Te=B||Ne||"";return'"'+m.Z.API_SERVER+"/api/attachments/"+We+Te+We+Te+"&t="+(0,ce.Jn)(We,Date.now())}).replace(re,(y,E,B,ue,Ne)=>{const We=E||ue,Te=B||Ne||"";return"("+m.Z.API_SERVER+"/files/uploads/"+We+Te+We+Te+"&t="+(0,ce.Jn)(We,Date.now())}).replaceAll('src="(','src="').replaceAll("src='(",'src="').replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,` `),ae)};var rt=({value:ae="",edit:$=!1,className:Z,showTextOnly:ne,showLines:re,style:W={},stylesPrev:y={},highlightKeywords:E,showProgramFill:B,isProgramFill:ue,disabledFill:Ne=!1,programFillValue:We,openEditor:Te=()=>{},onFillChange:ze=Ve=>{},onFillBlur:Ye=()=>{},onFillFocus:Je=()=>{}})=>{let Ve=Q(String(ae||""));const Tt=(0,_.useRef)(),Ke=(0,_.useRef)(),[Et,Le]=(0,_.useState)(""),[pt,Pe]=(0,_.useState)("office"),[Ae,he]=(0,_.useState)([]),je=(0,_.useRef)("a"+(0,N.Z)()),Ie={},we=Xe=>//i.test(Xe||""),M=(Xe,qe,st)=>{const ot=document.createElement(Xe===le?"input":"textarea");ot.style.width="100%",ot.style.height=Xe===le?"40px":"151px",ot.rows=5,ot.spellcheck=!1,ot.name="edu-program-fill",ot.placeholder="\u8BF7\u8F93\u5165",ot.dataset.id=qe;const Ct=Object.keys(Ie).length;return Ie[Ct]=ot,`${ot.outerHTML}`};function de(Xe){return Xe=Xe.replace(/!\[.*?\]\(.*?\)/g,""),Xe=Xe.replace(/\[.*?\]\(.*?\)/g,""),Xe=Xe.replace(new RegExp("","gs"),""),Xe=Xe.replace(//g,""),Xe=Xe.replace(//g,""),Xe=Xe.replace(new RegExp(".*?<\\/video>","gs"),""),Xe=Xe.replace(new RegExp(".*?<\\/audio>","gs"),""),Xe=Xe.replace(new RegExp(".*?<\\/style>","gs"),""),Xe=Xe.replace(new RegExp(".*?<\\/script>","gs"),""),Xe}const _e=Xe=>!ne&&we(Ve)?Xe:Xe.replace(/([\s\S]+?)<\/style>/gim,function(qe,st){let ot=st.replace(/(\n|\r)/g,"").split("}"),Ct=[];return ot.map(x=>{x!=""&&Ct.push(`.${je.current} ${x}`)}),``}),Me=(0,_.useMemo)(()=>{(0,be.Iy)();try{const ot=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,Ct=/\"\/api\/attachments\/|\"\/attachments\/download\//g,x=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,D=/\(\/attachments\/download\//g;Ve=Ve.replace(D,"("+m.Z.API_SERVER+"/attachments/download/").replace(ot,"("+m.Z.API_SERVER+"/api/attachments/").replace(Ct,'"'+m.Z.API_SERVER+"/api/attachments/").replace(x,'"'+m.Z.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,` `),Tt.current.style.display="none"}catch(ot){}if(B){let ot=-1;return Ve=Ve.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(Ct,x,D){var se;return++ot,M(Ct,ot,(se=We==null?void 0:We[ot])==null?void 0:se.value.replaceAll("<","<").replaceAll(">",">"))}),`
${_e(Ve||"")}
`}let Xe=_e(Ve);Xe=(0,be.ZP)(Xe);const qe=(0,be.ez)();Ve.match(/\[TOC\]/)&&(Xe=Xe.replace("

[TOC]

",(0,be.Qv)()),(0,be.Iy)()),Xe=Xe.replace(/(__special_katext_id_\d+__)/g,(ot,Ct)=>{const{type:x,expression:D}=qe[Ct];return(0,ie.renderToString)(Ue(D)||"",{displayMode:x==="block",throwOnError:!1,output:"html"})}),Xe=Xe.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,be.AL)();const st=document.createElement("div");if(st.innerHTML=Xe,ne)return st.innerText;if(E){const ot=E.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return tt(st,ot),st.innerHTML}return setTimeout(()=>St(),500),st.innerHTML},[Ve,E]);(0,_.useEffect)(()=>{ut.current&&ut.current.querySelectorAll(["input","textarea"]).forEach(qe=>{qe.oninput=Fe,qe.onblur=Ze,qe.onfocus=Qe})},[Ae]),(0,_.useEffect)(()=>{var Xe,qe,st,ot,Ct;if(We!=null&&We.length)try{const x=ut.current.querySelectorAll(".edu-program-fill-score"),D=ut.current.querySelectorAll('[name="edu-program-fill"]');for(const[se,I]of D.entries())I.value=((Xe=We==null?void 0:We[se])==null?void 0:Xe.value)||"",((qe=We==null?void 0:We[se])==null?void 0:qe.type)==="warning"?I.className="program-fill-warning":((st=We==null?void 0:We[se])==null?void 0:st.type)==="success"?I.className="program-fill-success":I.className="";for(const[se,I]of x.entries())I.innerHTML=(ot=We==null?void 0:We[se])!=null&&ot.score?`${(Ct=We==null?void 0:We[se])==null?void 0:Ct.score}\u5206`:"";he(We)}catch(x){console.log(x,"error")}},[We]);const Fe=Xe=>{Ae[Xe.target.dataset.id]=Ae[Xe.target.dataset.id]||{},Ae[Xe.target.dataset.id].value=Xe.target.value,he([...Ae]),ze(Ae,Xe.target.dataset.id)},Ze=Xe=>{Ae[Xe.target.dataset.id]=Ae[Xe.target.dataset.id]||{},Ae[Xe.target.dataset.id].value=Xe.target.value,he([...Ae]),Ye(Ae,Xe.target.dataset.id)},Qe=Xe=>{Ae[Xe.target.dataset.id]=Ae[Xe.target.dataset.id]||{},Ae[Xe.target.dataset.id].value=Xe.target.value,he([...Ae]),Je(Ae,Xe.target.dataset.id)};function tt(Xe,qe){return Xe.childNodes.forEach(st=>{var ot;if(st.childNodes.length>0)tt(st,qe);else if(st.nodeName!=="IMG")if(st.innerHTML)st.innerHTML=(ot=st.innerHTML)==null?void 0:ot.replace(new RegExp(qe,"gi"),'$&');else{const Ct=document.createElement("span");Ct.innerHTML=st.textContent.replace(new RegExp(qe,"gi"),'$&'),st.replaceWith(Ct)}})}const ut=(0,_.useRef)();be.jb.WebkitLineClamp=re,re&&(W=oe(oe({},W),be.jb));function dt(Xe){let qe=Xe.target;if(qe.tagName.toUpperCase()==="A"){let st=qe.getAttribute("href");if(st.indexOf("office")>-1)Xe.preventDefault(),Le(st),Pe("office");else if(st.indexOf("application/pdf")>-1)Xe.preventDefault(),Le(st),Pe("pdf");else if(st.indexOf("text/html")>-1)Xe.preventDefault(),Le(st),Pe("html");else if(st.startsWith("#")){Xe.preventDefault();let ot=document.getElementById(st.replace("#",""));ot&&ot.scrollIntoView(!0)}}}const St=()=>{var Xe;const qe=(Xe=ut.current)==null?void 0:Xe.querySelectorAll("video");qe==null||qe.forEach(st=>{if(st.oncontextmenu=()=>!1,st.src.indexOf(".m3u8")>-1&&!st.canPlayType("application/vnd.apple.mpegurl")){if(z.ZP.isSupported()){var ot=new z.ZP;ot.loadSource(st.src),ot.attachMedia(st)}}})};(0,_.useEffect)(()=>{if(ut.current&&Me&&Me.match(De)&&window.PR.prettyPrint(),ut.current)return ut.current.addEventListener("click",dt),()=>{var Xe;(Xe=ut.current)==null||Xe.removeEventListener("click",dt),(0,be.AL)(),(0,be.Iy)()}},[Me,ut.current,dt]);const gt=Xe=>{Xe.target.nodeName==="IMG"&&Xe.target.className.indexOf("draw-flowchart")>-1?(Tt.current.style.zIndex=1,Tt.current.style.display="flex",Tt.current.style.width=Xe.target.clientWidth+"px",Tt.current.style.height=Xe.target.clientHeight+"px",Tt.current.style.top=Xe.target.offsetTop+"px",Tt.current.style.left=Xe.target.offsetLeft+"px",Xe.target.id&&(Ke.current=Xe.target.id)):Tt.current.style.display="none"},_t=()=>{Tt.current.style.display="none"};return(0,_.useEffect)(()=>{var Xe;const qe=st=>{st.preventDefault(),st.clipboardData.setData("text",window.getSelection().toString())};return(Xe=ut.current)==null||Xe.addEventListener("copy",qe),()=>{var st;(st=ut.current)==null||st.removeEventListener("copy",qe)}},[ut.current]),_.createElement("div",{style:{position:"relative"},onMouseLeave:_t},ne&&_.createElement("div",{ref:ut,className:`${q.mdBody} `},Me),!ne&&!we(Me)&&_.createElement("div",{ref:ut,style:oe({},W),onMouseOver:gt,className:`${Z||""} ${Ne?"disabled-fill":""} markdown-body ${q.mdBody} ${je.current}`,dangerouslySetInnerHTML:{__html:Me}}),!ne&&we(Me)&&_.createElement(L,{html:Me}),_.createElement("div",{ref:Tt,className:`${q.button} ${$?"":q.previewFlowChart}`},_.createElement(o.Z,null,_.createElement(Y.ZP,{onClick:()=>{$?Te(Ke.current):(Le(Ke.current),Pe("flowChart"))}},$?"\u7F16\u8F91":"\u9884\u89C8"))),_.createElement(w.Z,{close:!0,data:Et,type:Et!=null&&Et.length?pt:"",style:oe({},y),onClose:()=>Le("")}))}},34728:function(Gt,nt,b){"use strict";b.d(nt,{SV:function(){return Tt},ZP:function(){return Ve}});var _=b(59301),fe=b(76374);const be={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},pe={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(` `)},{label:"System.out.println",content:["System.out.println($0)"].join(` `)},{label:"System.out.print",content:["System.out.print($0)"].join(` `)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},z={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(` `)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(` `)},{label:"if",content:["if () {"," $0","}"].join(` `)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(` `)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(` `)},{label:"using namespace std",content:["using namespace std"].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)}]},m={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(` `)}]},ce={keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],quickKey:[{label:"println",content:["println($0)"].join(` `)}]};var ie=b(53184),o=b.n(ie),Y=(Ke,Et,Le)=>new Promise((pt,Pe)=>{var Ae=Ie=>{try{je(Le.next(Ie))}catch(we){Pe(we)}},he=Ie=>{try{je(Le.throw(Ie))}catch(we){Pe(we)}},je=Ie=>Ie.done?pt(Ie.value):Promise.resolve(Ie.value).then(Ae,he);je((Le=Le.apply(Ke,Et)).next())});const N={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},w=(Ke,Et,Le,pt)=>{const Pe=Et.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:Le.lineNumber,endColumn:Le.column});return Array.from(new Set(Pe.match(/\b\w{2,}\b/g)||[])).map(he=>({label:he,kind:Ke.languages.CompletionItemKind.Text,insertText:he,range:pt}))},S=(Ke,Et,Le,pt)=>{Ke.languages.registerCompletionItemProvider(Et,{provideCompletionItems(Pe,Ae){const he=Pe.getWordUntilPosition(Ae),je={startLineNumber:Ae.lineNumber,endLineNumber:Ae.lineNumber,startColumn:he.startColumn,endColumn:he.endColumn},Ie=Pe.getLineContent(Ae.lineNumber).substring(he.startColumn-2,he.endColumn);return{suggestions:[...w(Ke,Pe,Ae,je),...Le.map(M=>({label:M,kind:Ke.languages.CompletionItemKind.Keyword,documentation:M,insertText:M,insertTextRules:Ke.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:je})),...pt.map(M=>({label:M.label,kind:Ke.languages.CompletionItemKind.Snippet,documentation:M.content,insertText:Ie.startsWith("#")?M.content.replace(/#/,""):M.content,insertTextRules:Ke.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:je}))]}}})};var C=Ke=>{N.languages.forEach(Et=>{Ke.languages.registerDocumentFormattingEditProvider(Et,{provideDocumentFormattingEdits(Le){return Y(this,null,function*(){const pt=o()(Le.getValue(),{indent_size:2,indent_char:" ",max_preserve_newlines:2,preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:0,indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1});return[{range:Le.getFullModelRange(),text:pt}]})}})}),S(Ke,"java",pe.keywords,pe.quickKey),S(Ke,"cpp",z.keywords,z.quickKey),S(Ke,"c",be.keywords,[]),S(Ke,"python",m.keywords,m.quickKey),S(Ke,"scala",ce.keywords,ce.quickKey)};const L="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Q=Object.defineProperty,q=(Ke,Et,Le)=>Et in Ke?Q(Ke,Et,{enumerable:!0,configurable:!0,writable:!0,value:Le}):Ke[Et]=Le,H=(Ke,Et,Le)=>q(Ke,typeof Et!="symbol"?Et+"":Et,Le);const T=class xu{constructor(Et,Le,pt){this.placeholder=Et,this.editor=Le,this.monaco=pt,Le.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return xu.ID}getDomNode(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.style.width="max-content",this.domNode.textContent=this.placeholder,this.domNode.style.fontStyle="initial",this.domNode.style.color="#D7D7D7",this.domNode.style.pointerEvents="none",this.editor.applyFontInfo(this.domNode)),this.domNode}getPosition(){return{position:{lineNumber:1,column:1},preference:[this.monaco.editor.ContentWidgetPositionPreference.EXACT]}}dispose(){this.editor.removeContentWidget(this)}};H(T,"ID","editor.widget.placeholderHint");var P=T,F=b(96236),oe=b(6767),ye=b(25399),le=b(78267),De=b(33156),Ue=b(56102),Be=Object.defineProperty,rt=Object.defineProperties,ae=Object.getOwnPropertyDescriptors,$=Object.getOwnPropertySymbols,Z=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,re=(Ke,Et,Le)=>Et in Ke?Be(Ke,Et,{enumerable:!0,configurable:!0,writable:!0,value:Le}):Ke[Et]=Le,W=(Ke,Et)=>{for(var Le in Et||(Et={}))Z.call(Et,Le)&&re(Ke,Le,Et[Le]);if($)for(var Le of $(Et))ne.call(Et,Le)&&re(Ke,Le,Et[Le]);return Ke},y=(Ke,Et)=>rt(Ke,ae(Et)),E=(Ke,Et)=>{var Le={};for(var pt in Ke)Z.call(Ke,pt)&&Et.indexOf(pt)<0&&(Le[pt]=Ke[pt]);if(Ke!=null&&$)for(var pt of $(Ke))Et.indexOf(pt)<0&&ne.call(Ke,pt)&&(Le[pt]=Ke[pt]);return Le},B=(Ke,Et,Le)=>new Promise((pt,Pe)=>{var Ae=Ie=>{try{je(Le.next(Ie))}catch(we){Pe(we)}},he=Ie=>{try{je(Le.throw(Ie))}catch(we){Pe(we)}},je=Ie=>Ie.done?pt(Ie.value):Promise.resolve(Ie.value).then(Ae,he);je((Le=Le.apply(Ke,Et)).next())});function ue(Ke){return/^\d+$/.test(Ke)?`${Ke}px`:Ke}function Ne(){}let We=!1;const Te={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python",Scala:"scale",solidity:"sol"};function ze(Ke=[]){let Et=Ke;if(Array.isArray(Ke)){for(let Le=0;LeB(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(Ke){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",Ke)}});var Ve=Ke=>{var Et=Ke,{width:Le="100%",height:pt="100%",value:Pe,language:Ae="javascript",style:he={},options:je={},overrideServices:Ie={},theme:we="vs-dark",onEditBlur:M,isCopy:de=!1,onSave:_e,autoHeight:Me=!1,forbidCopy:Fe=!1,forbidCopyTips:Ze,onChange:Qe=Ne,editorDidMount:tt=Ne,onFocus:ut=Ne,onBreakPoint:dt=Ne,breakPointValue:St=[],filename:gt="educoder.txt",errorLine:_t,errorContent:Xe="",highlightLine:qe,openBreakPoint:st=!1,placeholder:ot="",showMiniMap:Ct=!0}=Et,x=E(Et,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","forbidCopyTips","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder","showMiniMap"]);const D=(0,_.useRef)(),se=(0,_.useRef)({}),I=(0,_.useRef)(),U=(0,_.useRef)(),it=(0,_.useRef)([]),xe=(0,_.useRef)(!1),Re=(0,_.useRef)(),He=(0,_.useRef)(),G=(0,_.useRef)(!1),[J,ve]=(0,_.useState)(!1);function Ce(){let Rt;return D.current&&(Rt=new fe.Z(Ot=>{for(let Xt of Ot)(Xt.target.offsetHeight>0||Xt.target.offsetWidth>0)&&se.current.instance.layout()}),Rt.observe(D.current)),Rt}function X(){oe.ZP.warning({content:decodeURIComponent(Ze||L),key:"monaco-editor-tip"})}const ct=()=>{let Rt=se.current.instance;if(Pe!=null&&Rt&&J){const Ot=Rt.getModel();Ot&&Pe!==Ot.getValue()&&(We=!0,Ot.setValue(Pe),Rt.layout(),We=!1)}};(0,_.useEffect)(()=>{const Rt=De.Z.subscribe("formatDocument",Ot=>{var Xt;let un=se.current.instance;(Xt=un==null?void 0:un.getAction)==null||Xt.call(un,"editor.action.formatDocument").run()});return window.updateMonacoValue=Ot=>{Qe(Ot)},Rt},[]),(0,_.useEffect)(()=>{var Rt;let Ot=se.current.instance;U.current&&clearTimeout(U.current),U.current=setTimeout(()=>{ct()},500),Pe&&(Pe!=null&&Pe.length)&&((Rt=Ot==null?void 0:Ot.updateOptions)==null||Rt.call(Ot,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Pe.split(/\r\n|\r|\n/g).length))+3,5)}))},[Pe,J,se.current]),(0,_.useEffect)(()=>{if(_t&&se.current&&se.current.instance){let Ot=se.current.instance;Ot.changeViewZones(function(Xt){var un=document.createElement("div");un.style.padding="10px 20px",un.style.width="calc(100% - 20px)",un.className="my-error-line-wrp",un.innerHTML=Xe,Xt.addZone({afterLineNumber:_t||11,heightInLines:3,domNode:un})});var Rt={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};Ot.addOverlayWidget(Rt),Ot.revealPositionInCenter({lineNumber:20,column:1})}},[_t,se.current,J]);const ge=(Rt="",Ot)=>{if(!Rt||Rt.trim()==="")return!0;const un=se.current.instance.getModel().getLineTokens(Ot);let In=!1;for(let ar=0;ar<2;ar++)un.getStandardTokenType(ar)===1&&(In=!0);return In};(0,_.useEffect)(()=>{var Rt;const Ot=(Rt=se.current)==null?void 0:Rt.instance;if(Ot&&J&&Fe){const Xt=Ot.onDidBlurEditorWidget(()=>{G.current=!1}),un=Ot.onDidFocusEditorText(()=>{G.current=!0});return()=>{Xt.dispose(),un.dispose()}}},[se.current,J,Fe]),(0,_.useEffect)(()=>{var Rt;if((Rt=se.current)!=null&&Rt.instance&&J&&st){let Ot=se.current.instance,Xt=Ot.getModel();if(!Xt)return;(()=>{var Mn;let Bn=[],Nn=[];const ir=Xt.getAllDecorations();for(let yt of ir)yt.options.className==="highlighted-line"&&(Bn.push((Mn=yt==null?void 0:yt.range)==null?void 0:Mn.startLineNumber),Nn.push(yt==null?void 0:yt.id));if(qe===Bn[0])return;Xt.deltaDecorations(Nn,[]);const at=Xt.getLineCount();qe&&qe<=at&&(Ot.deltaDecorations([],[{range:new Ye.Range(qe,1,qe,Xt.getLineMaxColumn(qe)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Ot.revealLineInCenter(qe))})();const In=(Mn=!1)=>{var Bn;let Nn=[],ir=[];const at=Xt.getAllDecorations();for(let yt of at)yt.options.linesDecorationsClassName==="breakpoints-select"&&(Nn.push((Bn=yt==null?void 0:yt.range)==null?void 0:Bn.startLineNumber),ir.push(yt==null?void 0:yt.id));if(Mn)return{lines:Nn,ids:ir};dt(Nn)},ar=Mn=>B(void 0,null,function*(){let Bn={range:new Ye.Range(Mn,1,Mn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Xt.deltaDecorations([],[Bn]),In()}),yr=Mn=>B(void 0,null,function*(){let Bn=[];const Nn=Ot.getLineDecorations(Mn);for(let ir of Nn)ir.options.linesDecorationsClassName==="breakpoints-select"&&Bn.push(ir.id);yield Xt.deltaDecorations(Bn,[]),In()}),br=Mn=>{let Bn=Ot.getLineDecorations(Mn);for(let Nn of Bn)if(Nn.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,le.isEqual)(St,In(!0).lines)){Xt.deltaDecorations(In(!0).ids,[]);const Mn=St.map(Bn=>({range:new Ye.Range(Bn,1,Bn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Xt.deltaDecorations([],Mn)}const _r=Ot.onDidChangeModelContent(Mn=>{let Bn=Ot.getPosition();if(Bn){let Nn=Bn.lineNumber;clearTimeout(He.current),He.current=setTimeout(()=>{ge(Xt.getLineContent(Nn),Nn)?yr(Nn):br(Nn)?(yr(Nn),ar(Nn)):In()},100)}}),On=Ot.onMouseDown(Mn=>{var Bn,Nn,ir;if(Mn.target.detail&&((ir=(Nn=(Bn=Mn.target)==null?void 0:Bn.element)==null?void 0:Nn.className)!=null&&ir.includes("line-numbers"))){let at=Mn.target.position.lineNumber;if(ge(Xt.getLineContent(at),at))return;br(at)?yr(at):ar(at)}}),cr=Mn=>{let Bn={range:new Ye.Range(Mn,1,Mn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};it.current=Ot.deltaDecorations(it.current,[Bn])},nr=()=>{it.current=Ot.deltaDecorations(it.current,[])},Mr=Ot.onMouseMove(Mn=>{var Bn,Nn,ir;if(nr(),Mn.target.detail&&((ir=(Nn=(Bn=Mn.target)==null?void 0:Bn.element)==null?void 0:Nn.className)!=null&&ir.includes("line-numbers"))){let at=Mn.target.position.lineNumber;if(ge(Xt.getLineContent(at),at))return;cr(at)}}),dr=Ot.onMouseLeave(()=>{nr()});return()=>{_r.dispose(),On.dispose(),Mr.dispose(),dr.dispose()}}},[se.current,J,St,qe,st,Ae]),(0,_.useEffect)(()=>{var Rt;(Rt=se.current)!=null&&Rt.instance&&st&&se.current.instance.setPosition({lineNumber:0,column:0})},[qe]);function wt(){let Rt=se.current.instance;if(Rt){const Ot=Rt.getSelection(),Xt=se.current.pastePos||{},un=new Ye.Range(Xt.startLineNumber||Ot.endLineNumber,Xt.startColumn||Ot.endColumn,Xt.endLineNumber||Ot.endLineNumber,Xt.endColumn||Ot.endColumn);setTimeout(()=>{Rt.executeEdits("",[{range:un,text:""}])},300)}}function Ft(Rt){(window.navigator.platform.match("Mac")?Rt.metaKey:Rt.ctrlKey)&&Rt.keyCode==83&&(Rt.preventDefault(),_e())}const Kt=()=>{if(Me&&se.current.instance){const Rt=se.current.instance.getContentHeight();pn(Rt{if(!G.current)return;const{keyCode:Ot,ctrlKey:Xt,metaKey:un,target:In,type:ar}=Rt;return(ar==="paste"||(Ot===67||Ot===86)&&(un||Xt))&&In.nodeName==="TEXTAREA"&&(X(),Rt.preventDefault()),!1};function Zt(Rt,Ot){var Xt=window.URL||window.webkitURL||window,un=new Blob([Ot]),In=document.createElementNS("http://www.w3.org/1999/xhtml","a");In.href=Xt.createObjectURL(un),In.download=Rt,on(In)}(0,_.useEffect)(()=>{Kt()},[Kt]),(0,_.useEffect)(()=>{D.current&&!J&&Promise.all([b.e(8909),b.e(5977)]).then(b.bind(b,71448)).then(Rt=>{try{Ye=Rt,se.current.instance=Ye.editor.create(D.current,{value:Pe,language:ze(Ae),theme:we,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:Ct||!1}},Ie);const Ot=se.current.instance;let In=[...F.BH._menuItems].find(_r=>_r[0]._debugName=="EditorContext")[1],ar=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],yr=(_r,On)=>{var cr,nr;let Mr=_r._first;do On.includes((nr=(cr=Mr.element)==null?void 0:cr.command)==null?void 0:nr.id)&&_r._remove(Mr);while(Mr=Mr.next)};if(tt(Ot,Ye),setTimeout(()=>{Kt(),se.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Zt(gt||"educoder.txt",Ot.getValue())}})},500),se.current.subscription=Ot.onDidChangeModelContent(_r=>{xe.current?clearTimeout(Re.current):(Kt(),Qe(Ot.getValue(),_r)),Re.current=setTimeout(()=>{xe.current=!1},500)}),window.Monaco||C(Ye,ze(Ae)),Fe&&(yr(In,ar),D.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",rn),window.removeEventListener("paste",rn),window.addEventListener("keydown",rn),window.addEventListener("paste",rn)),window.Monaco=Ye,M&&Ot.onDidBlurEditorWidget(()=>{M(Ot.getValue())}),ut&&Ot.onDidFocusEditorText(()=>{Fe&&Je(),ut(Ot.getValue())}),Fe){Je();try{Ot.onDidPaste(_r=>{const On=Ot.getSelection(),cr=se.current.pastePos||{},nr=new Ye.Range(cr.startLineNumber||On.endLineNumber,cr.startColumn||On.endColumn,cr.endLineNumber||On.endLineNumber,cr.endColumn||On.endColumn);Ot.executeEdits("",[{range:_r.range,text:""}])})}catch(_r){}}let br=Ce();return ot&&typeof ot=="string"&&new P(ot,Ot,Ye),ve(!0),()=>{const _r=se.current.instance;_r.dispose();const On=_r.getModel();On&&On.dispose(),se.current.subscription&&se.current.subscription.dispose(),br.unobserve(D.current)}}catch(Ot){}})},[]),(0,_.useEffect)(()=>{if(se.current.instance&&J)return document.addEventListener("keydown",Ft,!1),()=>{document.removeEventListener("keydown",Ft)}},[_e,J]),(0,_.useEffect)(()=>{let Rt=se.current.instance;if(Rt&&J){let Ot=ze(Ae);Ye.editor.setModelLanguage(Rt.getModel(),Ot)}},[Ae,J]),(0,_.useEffect)(()=>{se.current.instance&&J&&Ye.editor.setTheme(we)},[we,J]),(0,_.useEffect)(()=>{let Rt=se.current.instance;I.current=je,Rt&&J&&(Rt.updateOptions(W({},je)),setTimeout(()=>{Rt.getModel().updateOptions(W({},je))},200))},[JSON.stringify(je),J]),(0,_.useEffect)(()=>{let Rt=se.current.instance;Rt&&J&&Rt.layout()},[Le,pt,J]);const[ln,er]=(0,_.useState)(ue(Le)),[Sn,pn]=(0,_.useState)(ue(pt)),Ut=y(W({},he),{width:ln,height:Sn,position:"relative"});return _.createElement("div",{className:"my-monaco-editor",ref:D,style:Ut,onFocus:()=>{Fe&&Je()}},de&&_.createElement(Ue.CopyToClipboard,{text:Pe,onCopy:()=>oe.ZP.success("\u590D\u5236\u6210\u529F")},_.createElement(ye.Z,{title:"\u590D\u5236\u4EE3\u7801"},_.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},_.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Tt({width:Ke="100%",height:Et="100%",original:Le,modified:pt,language:Pe,options:Ae={}}){const he=(0,_.useRef)(),[je,Ie]=(0,_.useState)(null);function we(Me){let Fe;return he.current&&(Fe=new fe.Z(Ze=>{for(let Qe of Ze)(Qe.target.offsetHeight>0||Qe.target.offsetWidth>0)&&Me.layout()}),Fe.observe(he.current)),Fe}(0,_.useEffect)(()=>(he.current&&Promise.all([b.e(8909),b.e(9404)]).then(b.bind(b,2550)).then(Me=>{Ye=Me;const Fe=Ye.editor.createDiffEditor(he.current,y(W({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},Ae),{wordWrap:!0}));Ie(Fe);let Ze=we(Fe);return()=>{Fe.dispose();const Qe=Fe.getModel();Qe&&Qe.dispose(),Ze.unobserve(he.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,_.useEffect)(()=>{je&&je.setModel({original:Ye.editor.createModel(Le,Pe),modified:Ye.editor.createModel(pt,Pe)})},[Le,pt,Pe,je]);const M=ue(Ke),de=ue(Et),_e={width:M,height:de};return _.createElement("div",{className:"my-diff-editor",ref:he,style:_e})}},61802:function(Gt,nt,b){"use strict";b.r(nt),b.d(nt,{default:function(){return ae}});var _=b(59301),fe=b(44283),be=b(6767),pe=b(4875),z=b(7939),m=b(91882),ce=b(77019),ie=b(5269),o=b(37285),Y=b(45685),N=b(47889),w=b(37568),S=b(27812),C=b(84849),L=b(35883);const Q=({data:$})=>{const[Z,ne]=(0,_.useState)(!1),re=()=>{var W;switch($.question_type){case 3:return _.createElement("aside",null,_.createElement("span",{style:{cursor:"pointer"},className:"font12 c-blue",onClick:()=>{ne(!Z)}},Z?"\u9690\u85CF\u53C2\u8003\u7B54\u6848":"\u67E5\u770B\u53C2\u8003\u7B54\u6848"),Z&&_.createElement("div",null,(W=$==null?void 0:$.standard_answer)==null?void 0:W.map(function(y,E){var B;return _.createElement(ce.Z,{className:"mt10"},_.createElement(ie.Z,{flex:"50px"},_.createElement("span",{className:"mt10"},"\u586B\u7A7A",y.choice_id)),_.createElement(ie.Z,{flex:1},(B=y==null?void 0:y.answer_text)==null?void 0:B.map(function(ue,Ne){return _.createElement("div",{style:{border:"1px solid #eee",padding:"15px 10px 0 10px"}},ue)})))})));case 4:return _.createElement("aside",null,_.createElement("span",{style:{cursor:"pointer"},className:"font12 c-blue",onClick:()=>{ne(!Z)}},Z?"\u9690\u85CF\u53C2\u8003\u7B54\u6848":"\u67E5\u770B\u53C2\u8003\u7B54\u6848"),Z&&_.createElement("div",null,_.createElement(L.Z,{value:$.standard_answer.join(" ")})))}};return _.createElement("section",null,re())};var q={flex_box_center:"flex_box_center___rZhUX",flex_space_between:"flex_space_between___WSWPP",flex_box_vertical_center:"flex_box_vertical_center___Fl2CQ",flex_box_center_end:"flex_box_center_end___zIA_L",flex_box_column:"flex_box_column___wpPM2",bg:"bg___PTvAX",title:"title___NRpL_",questionIcons:"questionIcons___qftEo",green:"green___DII_f",orange:"orange___nqaHJ",greenTip:"greenTip___NQ5fc",redTip:"redTip___BYmiY",orangeTip:"orangeTip___wlzcb",cuttOff:"cuttOff___Y19D3"},H=b(76406),T=b(59301),V=Object.defineProperty,P=Object.getOwnPropertySymbols,F=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable,ye=($,Z,ne)=>Z in $?V($,Z,{enumerable:!0,configurable:!0,writable:!0,value:ne}):$[Z]=ne,le=($,Z)=>{for(var ne in Z||(Z={}))F.call(Z,ne)&&ye($,ne,Z[ne]);if(P)for(var ne of P(Z))oe.call(Z,ne)&&ye($,ne,Z[ne]);return $},De=($,Z)=>{var ne={};for(var re in $)F.call($,re)&&Z.indexOf(re)<0&&(ne[re]=$[re]);if($!=null&&P)for(var re of P($))Z.indexOf(re)<0&&oe.call($,re)&&(ne[re]=$[re]);return ne},Ue=($,Z,ne)=>new Promise((re,W)=>{var y=ue=>{try{B(ne.next(ue))}catch(Ne){W(Ne)}},E=ue=>{try{B(ne.throw(ue))}catch(Ne){W(Ne)}},B=ue=>ue.done?re(ue.value):Promise.resolve(ue.value).then(y,E);B((ne=ne.apply($,Z)).next())});const Be=["\u5355\u9009\u9898","\u591A\u9009\u9898","\u5224\u65AD\u9898","\u586B\u7A7A\u9898","\u7B80\u7B54\u9898","\u5B9E\u8BAD\u9898"],rt=$=>{var Z=$,{exercise:ne,globalSetting:re,loading:W,user:y,dispatch:E}=Z,B=De(Z,["exercise","globalSetting","loading","user","dispatch"]),ue,Ne,We,Te,ze,Ye,Je,Ve,Tt,Ke,Et,Le,pt,Pe,Ae,he,je,Ie,we,M,de;const _e=(0,fe.useParams)(),{userInfo:Me}=y,{reviewGroupExercise:Fe}=ne,[Ze,Qe]=(0,_.useState)({}),[tt,ut]=(0,_.useState)(!1),dt=(0,_.useRef)();console.log(Ze);const St=()=>{var qe,st;console.log(_e,222);let ot=localStorage[`${(qe=y==null?void 0:y.userInfo)==null?void 0:qe.login}-${_e.coursesId}-${_e.exerciseId}-filter`];if(ot?ot=JSON.parse(ot):ot={},Object.prototype.toString.call(ot)!=="[object Object]")return{};let Ct=((st=ot==null?void 0:ot.commit_status)==null?void 0:st.filter(x=>x===2||x===3))||[2,3];return ot.commit_status=(Ct==null?void 0:Ct.length)>0?Ct:[2,3],ot};(0,_.useEffect)(()=>{var qe;(qe=y==null?void 0:y.userInfo)!=null&&qe.login&>()},[(ue=y==null?void 0:y.userInfo)==null?void 0:ue.login]);const gt=()=>{const qe=St();E({type:"exercise/getReviewGroupExercise",payload:le({exerciseId:_e.exerciseId},qe)})},_t=qe=>Ue(void 0,null,function*(){const st=St();E({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u8C03\u5206\u4E2D\uFF0C\u8BF7\u7A0D\u540E..."}}),(yield(0,C.LP)(le({cover_all:!0,id:qe.question_id,max_score:Ze[qe.q_position].max,min_score:Ze[qe.q_position].min,comment:Ze.comment},st))).status===0&&(delete Ze[qe.q_position],gt(),be.ZP.success("\u6279\u91CF\u8C03\u5206\u6210\u529F")),E({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:"\u8C03\u5206\u4E2D\uFF0C\u8BF7\u7A0D\u540E..."}})}),Xe=qe=>{var st,ot,Ct;if(qe.question_type>1)return Ze[qe.q_position]?T.createElement("div",{className:"mr10 ml10 inline-block"},"\u5728\u4EE5\u4E0B\u533A\u95F4\u4E2D\u4E3A\u5B66\u751F\u968F\u673A\u8D4B\u5206\uFF1A",T.createElement(pe.Z,{placeholder:"\u6700\u4F4E",defaultValue:qe.user_score,max:qe.question_score,min:0,onChange:x=>{Ze[qe.q_position].min=String(x),Qe(le({},Ze))}}),T.createElement("div",{className:q.cuttOff}),T.createElement(pe.Z,{placeholder:"\u6700\u9AD8",defaultValue:qe.user_score,max:qe.question_score,min:((st=Ze[qe.q_position])==null?void 0:st.min)||0,onChange:x=>{Ze[qe.q_position].max=String(x),Qe(le({},Ze))}}),"\u5206",T.createElement(z.ZP,{className:"ml5",type:"primary",disabled:!((ot=Ze[qe.q_position])!=null&&ot.min)||!((Ct=Ze[qe.q_position])!=null&&Ct.max),onClick:()=>_t(qe)},"\u786E\u8BA4")):T.createElement("span",{style:{cursor:"pointer"},onClick:()=>{Ze[qe.q_position]={},Qe(le({},Ze))},className:"c-blue mr10 ml10"},"\u8C03\u5206")};return T.createElement("section",{className:"edu-container",ref:dt},T.createElement("section",{className:"animated fadeIn"},T.createElement("aside",{className:"mt10"},Me&&T.createElement(m.Z,{separator:">"},T.createElement(m.Z.Item,null,T.createElement(fe.Link,{to:`${Me.first_category_url}`},(Ne=Me==null?void 0:Me.course)==null?void 0:Ne.course_name)),T.createElement(m.Z.Item,null,T.createElement(fe.Link,{to:`/classrooms/${_e.coursesId}/exercise`},"\u8BD5\u5377\u5217\u8868")),T.createElement(m.Z.Item,null,T.createElement(fe.Link,{to:`/classrooms/${_e.coursesId}/exercise/${_e.exerciseId}/detail`},"\u8BD5\u5377\u8BE6\u60C5")),T.createElement(m.Z.Item,null,(We=Fe==null?void 0:Fe.exercise_answer_user)==null?void 0:We.user_name))),T.createElement("aside",{className:[q.title,"mt20"].join(" ")},T.createElement(ce.Z,{style:{width:"100%"}},T.createElement(ie.Z,{flex:"1"},T.createElement(fe.Link,{to:`/classrooms/${_e.coursesId}/exercise/${_e.exerciseId}/detail`},T.createElement(S.Z,{className:"font16 c-black"})),T.createElement("strong",{className:"font20 ml5"},(Te=Fe==null?void 0:Fe.exercise)==null?void 0:Te.exercise_name),T.createElement(H.VV,{status:[H.ju[(ze=Fe.exercise)==null?void 0:ze.exercise_status]]})),T.createElement(ie.Z,null)))),T.createElement("section",{className:[q.bg,"pt30","pl30","pr30","pb30","mt20"].join(" ")},T.createElement(ce.Z,{gutter:[30,0]},T.createElement(ie.Z,{className:"bold c-black"},T.createElement("aside",null,T.createElement("span",null,"\u8003\u8BD5\u65F6\u957F ",((Ye=Fe.exercise)==null?void 0:Ye.time)===-1?"\u672A\u9650\u65F6":(Je=Fe.exercise)==null?void 0:Je.time),T.createElement("span",{className:"ml20"},"\u6EE1\u5206 ",(Tt=(Ve=Fe.exercise_scores)==null?void 0:Ve.exercise_types)==null?void 0:Tt.q_scores,"\u5206")))),T.createElement(o.Z,null),T.createElement(ce.Z,{gutter:[30,0]},T.createElement(ie.Z,{flex:"1"},T.createElement("span",{className:"c-light-black"},"\u60A8\u6B63\u5728\u5BF9\u4EE5\u4E0B\u5B66\u751F\u8FDB\u884C\u6279\u91CF\u8BC4\u9605\uFF1A"),T.createElement("span",null,(Ke=Fe.exercise_answer_user)==null?void 0:Ke.user_name))),T.createElement(ce.Z,{gutter:[30,0]},T.createElement(ie.Z,{span:24,className:"mt10"},(Et=Fe==null?void 0:Fe.exercise_users)==null?void 0:Et.map(function(qe,st){if(st<100)return T.createElement("strong",{className:"mr10",key:st},qe.user_name)})),T.createElement(ie.Z,{span:24,className:"tr"},((Le=Fe==null?void 0:Fe.exercise_users)==null?void 0:Le.length)>100&&T.createElement("span",null,"......\u7B49",(pt=Fe==null?void 0:Fe.exercise_users)==null?void 0:pt.length,"\u4EBA"))),T.createElement(o.Z,null),((Pe=Fe==null?void 0:Fe.exercise_questions)==null?void 0:Pe.some(qe=>qe.question_type!==4))&&T.createElement("aside",null,T.createElement(ce.Z,{gutter:[10,10]},T.createElement(ie.Z,{flex:"1"},T.createElement("aside",null,T.createElement("strong",{className:"font14"},"\u5BA2\u89C2\u9898"),T.createElement("span",{className:q.greenTip},"\u6B63\u786E"),T.createElement("span",{className:q.redTip},"\u9519\u8BEF"),T.createElement("span",{className:q.redTip},"\u90E8\u5206\u5F97\u5206")),T.createElement("aside",{className:[q.questionIcons,"mt10"].join(" ")},T.createElement(Y.default,{affix:!1,onChange:()=>ut(!0)},(Ae=Fe==null?void 0:Fe.exercise_questions)==null?void 0:Ae.map(function(qe,st){if(qe.question_type!==4)return T.createElement(Y.default.Link,{href:`#questionID-${qe.q_position}`,title:qe.q_position})})))),T.createElement(ie.Z,null,"\u603B\u5206 ",T.createElement("span",{className:"c-red bold"},(je=(he=Fe.exercise_scores)==null?void 0:he.exercise_types)==null?void 0:je.q_scores)," \u5206")),T.createElement("p",{className:"c-blue tr",onClick:()=>ut(!tt)},tt?"\u6536\u8D77\u7B54\u9898\u8BE6\u60C5":"\u5C55\u5F00\u67E5\u770B\u7B54\u9898\u8BE6\u60C5",T.createElement("span",{className:"iconfont icon-play-square-fill3x ml5"})),T.createElement(o.Z,null)),T.createElement(ce.Z,{gutter:[10,10]},T.createElement(ie.Z,{flex:"1"},T.createElement("aside",null,T.createElement("strong",{className:"font14"},"\u4E3B\u89C2\u9898"),T.createElement("span",{className:q.greenTip},"\u5DF2\u8BC4"),T.createElement("span",{className:q.redTip},"\u672A\u8BC4")),T.createElement("aside",{className:[q.questionIcons,"mt10"].join(" ")},T.createElement(Y.default,{affix:!1},(Ie=Fe==null?void 0:Fe.exercise_questions)==null?void 0:Ie.map(function(qe,st){if(qe.question_type===4)return T.createElement(Y.default.Link,{href:`#questionID-${qe.q_position}`,title:qe.q_position}," ")})))),T.createElement(ie.Z,null,"\u603B\u5206 ",T.createElement("span",{className:"c-red bold"},(M=(we=Fe.exercise_scores)==null?void 0:we.exercise_types)==null?void 0:M.q_mains_scores)," \u5206")),(de=Fe.exercise_questions)==null?void 0:de.map(function(qe,st){var ot;return T.createElement("aside",{id:`questionID-${qe.q_position}`,className:`${tt||qe.question_type===4?"":"hide"}`},T.createElement(ce.Z,null,T.createElement(ie.Z,{flex:"1"},T.createElement("span",{className:"c-blue font14"},qe.q_position,". ",Be[qe.question_type]),T.createElement("span",{className:"c-light-black ml5"},"(",qe.question_score,")")),T.createElement(ie.Z,null,qe.standard_answer_show&&T.createElement("span",null,"\u6B63\u786E\u7B54\u6848\uFF1A",qe.standard_answer_show),Xe(qe),qe.user_score&&T.createElement("span",null,"\u5F97\u5206",T.createElement("span",{className:"c-red"},qe.user_score),"\u5206"),!qe.user_score&&T.createElement("span",{className:"c-red"},"\u672A\u8BC4"))),T.createElement("div",null,T.createElement(L.Z,{value:qe.question_title})),T.createElement("div",null,(ot=qe.question_choices)==null?void 0:ot.map(function(Ct,x){return T.createElement("div",null,T.createElement(N.ZP,{checked:qe.user_answer.includes(Ct.choice_id)},Ct.choice_text))})),T.createElement(Q,{data:qe}),Ze[qe.q_position]?T.createElement(w.default.TextArea,{onChange:Ct=>{Ze.comment=String(Ct.target.value),Qe(le({},Ze))},placeholder:"\u8BF7\u8F93\u5165\u8BC4\u8BED\u6700\u5927\u9650\u5236100\u4E2A\u5B57\u7B26",maxLength:100}):null,T.createElement(o.Z,null))})))};var ae=(0,fe.connect)(({exercise:$,loading:Z,user:ne,globalSetting:re})=>({exercise:$,globalSetting:re,user:ne,loading:Z.effects}))(rt)},20047:function(Gt,nt,b){"use strict";b.d(nt,{AL:function(){return P},Iy:function(){return N},Qv:function(){return C},ez:function(){return V},jb:function(){return w}});var _=b(32834),fe=b.n(_),be=b(11690),pe=b.n(be);let z=1;function m(De,Ue){const Be=De.match(/^(\s+)(?:```)/);if(Be===null)return Ue;const rt=Be[1];return Ue.split(` `).map(ae=>{const $=ae.match(/^\s+/);if($===null)return ae;const[Z]=$;return Z.length>=rt.length?ae.slice(rt.length):ae}).join(` `)}let ce=[],ie=["