From 76af32b70977ad4f33d53f78118e05caf55456f3 Mon Sep 17 00:00:00 2001 From: dingyongkang Date: Fri, 24 Dec 2021 18:45:39 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .DS_Store | Bin 71684 -> 151556 bytes index.html | 2 +- ...s__StudentClient__Answer.a2e19b44.async.js | 28 +++++++++--------- umi.b717bf9e.js => umi.62d87106.js | 2 +- 4 files changed, 16 insertions(+), 16 deletions(-) rename p__Exam__Lists__StudentClient__Answer.19d28a8e.async.js => p__Exam__Lists__StudentClient__Answer.a2e19b44.async.js (71%) rename umi.b717bf9e.js => umi.62d87106.js (99%) diff --git a/.DS_Store b/.DS_Store index b2c44f553e8c9a3217367d2e31ef8f37a9a09655..9256621cd4ad60b331446579f75bcb6bc65aca1d 100644 GIT binary patch literal 151556 zcmeI5S+m{Mb>PnhhhPH&+ZdZk2y8qhzR|#>?hZi+9LupWMqpQUS7S?8SAfyf8f@qX zLcjD&S5f%{R9?C(PwIREDxZMLC!q2P=sa~*zu;cKz3#qet^c&v|D69hR}e{cbT!?* z*Ix6u_iQ%Xc>da%L$i&4n9XLl%b(=y#y{RU+xWXXXR~|cb3i`zhx|MLr~TuA{M9Y9 z*{z?+*T?1iX0zYSj?d1`PR*{!&l~^8tpehPd>)n0q1h#Y-ok%*c2Rzwmy_`KKbyTJ zzq`8gr<3x#YqK-6?b(I$cbl`rvnOU-@_A-whdiJM`<# zUvFaICI)U|U>5`EhXeBA>vKC_-`B52b;vK`{+ECM5?}cte<#ju`FddI>vKC_-`B6@ zTjl?iZ}mP^k=fDmH$?K?u_I!3Og@{t5iIK* zmX$Uo3T8cG;e)c;a16>i!0^9xoj?9je*cZK4l(p$fdp8#WR)l6{|!a6tn|O-VvvRtl^5JK&QsIFQ4G$>B;iheY z8K*dnI`M zs6Ye<9Fo3D;V}B3I3Tn?&I7d;$uQzB1meDH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pn^5v`EQNVk={at(~@rD1l4sH`Baj^h#NeF8+E7!o1$#jq8406dkV=sM5Cp0ja*o)H-c+7Mv$t_#PtbCCu z4hetuRifdq5N__=0=P-s#?zqP;4RyVgI!3w2ZAw7GLwDGokowluG58^eY_yC9fC$3og3?vj6}9 diff --git a/index.html b/index.html index f8c5a3cd77..2d4dd72688 100644 --- a/index.html +++ b/index.html @@ -93,6 +93,6 @@ gtag('config', 'UA-198293321-1'); --> - + diff --git a/p__Exam__Lists__StudentClient__Answer.19d28a8e.async.js b/p__Exam__Lists__StudentClient__Answer.a2e19b44.async.js similarity index 71% rename from p__Exam__Lists__StudentClient__Answer.19d28a8e.async.js rename to p__Exam__Lists__StudentClient__Answer.a2e19b44.async.js index 98e9b0fb81..b594a5f237 100644 --- a/p__Exam__Lists__StudentClient__Answer.19d28a8e.async.js +++ b/p__Exam__Lists__StudentClient__Answer.a2e19b44.async.js @@ -1,23 +1,23 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[139,5,6],{"+ibC":function(Be,I,r){Be.exports={modalWarp:"modalWarp___2OUik",modal:"modal___1xmy0",head:"head___2FB--",body:"body___1ObZm",site:"site___tzxzz",imgWarp:"imgWarp___3WKik",LeftButton:"LeftButton___fKyNM",RightButton:"RightButton___23ga7",title:"title___1ERn2"}},"3I+P":function(Be,I,r){"use strict";var w=r("rePB"),Y=r("wx14"),k=r("q1tI"),N=r.n(k),Z=r("sEfC"),M=r.n(Z),n=r("VTBJ"),X=r("1OyB"),te=r("vuIU"),D=r("JX7q"),ee=r("Ji7U"),G=r("LK+K"),ie=r("U8pU"),Q=r("Ff2n"),be={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0},Ue=be,ne=r("TSYQ"),Oe=r.n(ne);function Xe(x,t,o){return Math.max(t,Math.min(x,o))}var He=function(t){var o=["onTouchStart","onTouchMove","onWheel"];o.includes(t._reactName)||t.preventDefault()},g=function(t){for(var o=[],p=a(t),e=Ae(t),d=p;d0?1:0):0},Se=function(t){return t.centerMode?Math.floor((t.slidesToShow-1)/2)+1+(parseInt(t.centerPadding)>0?1:0):t.slidesToShow},xe=function(t){return t&&t.offsetWidth||0},u=function(t){return t&&t.offsetHeight||0},m=function(t){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,p,e,d,i;return p=t.startX-t.curX,e=t.startY-t.curY,d=Math.atan2(e,p),i=Math.round(d*180/Math.PI),i<0&&(i=360-Math.abs(i)),i<=45&&i>=0||i<=360&&i>=315?"left":i>=135&&i<=225?"right":o===!0?i>=35&&i<=135?"up":"down":"vertical"},T=function(t){var o=!0;return t.infinite||(t.centerMode&&t.currentSlide>=t.slideCount-1||(t.slideCount<=t.slidesToShow||t.currentSlide>=t.slideCount-t.slidesToShow))&&(o=!1),o},K=function(t,o){var p={};return o.forEach(function(e){return p[e]=t[e]}),p},b=function(t){var o=N.a.Children.count(t.children),p=t.listRef,e=Math.ceil(xe(p)),d=t.trackRef&&t.trackRef.node,i=Math.ceil(xe(d)),l;if(t.vertical)l=e;else{var v=t.centerMode&&parseInt(t.centerPadding)*2;typeof t.centerPadding=="string"&&t.centerPadding.slice(-1)==="%"&&(v*=e/100),l=Math.ceil((e-v)/t.slidesToShow)}var P=p&&u(p.querySelector('[data-index="0"]')),F=P*t.slidesToShow,E=t.currentSlide===void 0?t.initialSlide:t.currentSlide;t.rtl&&t.currentSlide===void 0&&(E=o-1-t.initialSlide);var s=t.lazyLoadedList||[],q=g(Object(n.a)(Object(n.a)({},t),{},{currentSlide:E,lazyLoadedList:s}));s=s.concat(q);var C={slideCount:o,slideWidth:l,listWidth:e,trackWidth:i,currentSlide:E,slideHeight:P,listHeight:F,lazyLoadedList:s};return t.autoplaying===null&&t.autoplay&&(C.autoplaying="playing"),C},A=function(t){var o=t.waitForAnimate,p=t.animating,e=t.fade,d=t.infinite,i=t.index,l=t.slideCount,v=t.lazyLoad,P=t.currentSlide,F=t.centerMode,E=t.slidesToScroll,s=t.slidesToShow,q=t.useCSS,C=t.lazyLoadedList;if(o&&p)return{};var W=i,H,le,z,ae={},J={},me=d?i:Xe(i,0,l-1);if(e){if(!d&&(i<0||i>=l))return{};i<0?W=i+l:i>=l&&(W=i-l),v&&C.indexOf(W)<0&&(C=C.concat(W)),ae={animating:!0,currentSlide:W,lazyLoadedList:C,targetSlide:W},J={animating:!1,targetSlide:W}}else H=W,W<0?(H=W+l,d?l%E!==0&&(H=l-l%E):H=0):!T(t)&&W>P?W=H=P:F&&W>=l?(W=d?l:l-1,H=d?0:l-1):W>=l&&(H=W-l,d?l%E!==0&&(H=0):H=l-s),!d&&W+s>=l&&(H=l-s),le=_e(Object(n.a)(Object(n.a)({},t),{},{slideIndex:W})),z=_e(Object(n.a)(Object(n.a)({},t),{},{slideIndex:H})),d||(le===z&&(W=H),le=z),v&&(C=C.concat(g(Object(n.a)(Object(n.a)({},t),{},{currentSlide:W})))),q?(ae={animating:!0,currentSlide:H,trackStyle:ve(Object(n.a)(Object(n.a)({},t),{},{left:le})),lazyLoadedList:C,targetSlide:me},J={animating:!1,currentSlide:H,trackStyle:V(Object(n.a)(Object(n.a)({},t),{},{left:z})),swipeLeft:null,targetSlide:me}):ae={currentSlide:H,trackStyle:V(Object(n.a)(Object(n.a)({},t),{},{left:z})),lazyLoadedList:C,targetSlide:me};return{state:ae,nextState:J}},c=function(t,o){var p,e,d,i,l,v=t.slidesToScroll,P=t.slidesToShow,F=t.slideCount,E=t.currentSlide,s=t.targetSlide,q=t.lazyLoad,C=t.infinite;if(i=F%v!==0,p=i?0:(F-E)%v,o.message==="previous")d=p===0?v:P-p,l=E-d,q&&!C&&(e=E-d,l=e===-1?F-1:e),C||(l=s-v);else if(o.message==="next")d=p===0?v:p,l=E+d,q&&!C&&(l=(E+v)%F+p),C||(l=s+v);else if(o.message==="dots")l=o.index*o.slidesToScroll;else if(o.message==="children"){if(l=o.index,C){var W=et(Object(n.a)(Object(n.a)({},t),{},{targetSlide:l}));l>o.currentSlide&&W==="left"?l=l-F:l10)return{scrolling:!0};l&&(z.swipeLength=Ee);var Pe=(v?-1:1)*(z.curX>z.startX?1:-1);l&&(Pe=z.curY>z.startY?1:-1);var Ke=Math.ceil(W/H),we=m(o.touchObject,l),O=z.swipeLength;return le||(P===0&&(we==="right"||we==="down")||P+1>=Ke&&(we==="left"||we==="up")||!T(o)&&(we==="left"||we==="up"))&&(O=z.swipeLength*F,E===!1&&s&&(s(we),ke.edgeDragged=!0)),!q&&ae&&(ae(we),ke.swiped=!0),d?se=Ne+O*(J/me)*Pe:v?se=Ne-O*Pe:se=Ne+O*Pe,l&&(se=Ne+O*Pe),ke=Object(n.a)(Object(n.a)({},ke),{},{touchObject:z,swipeLeft:se,trackStyle:V(Object(n.a)(Object(n.a)({},o),{},{left:se}))}),Math.abs(z.curX-z.startX)10&&(ke.swiping=!0,He(t)),ke},_=function(t,o){var p=o.dragging,e=o.swipe,d=o.touchObject,i=o.listWidth,l=o.touchThreshold,v=o.verticalSwiping,P=o.listHeight,F=o.swipeToSlide,E=o.scrolling,s=o.onSwipe,q=o.targetSlide,C=o.currentSlide,W=o.infinite;if(!p)return e&&He(t),{};var H=v?P/l:i/l,le=m(d,v),z={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(E)return z;if(!d.swipeLength)return z;if(d.swipeLength>H){He(t),s&&s(le);var ae,J,me=W?C:q;switch(le){case"left":case"up":J=me+U(o),ae=F?j(o,J):J,z.currentDirection=0;break;case"right":case"down":J=me-U(o),ae=F?j(o,J):J,z.currentDirection=1;break;default:ae=me}z.triggerSlideHandler=ae}else{var se=_e(o);z.trackStyle=ve(Object(n.a)(Object(n.a)({},o),{},{left:se}))}return z},y=function(t){for(var o=t.infinite?t.slideCount*2:t.slideCount,p=t.infinite?t.slidesToShow*-1:0,e=t.infinite?t.slidesToShow*-1:0,d=[];pp[p.length-1])o=p[p.length-1];else for(var d in p){if(ot.swipeLeft*-1)return p=v,!1}else if(v.offsetLeft-o+xe(v)/2>t.swipeLeft*-1)return p=v,!1;return!0}),!p)return 0;var i=t.rtl===!0?t.slideCount-t.currentSlide:t.currentSlide,l=Math.abs(p.dataset.index-i)||1;return l}else return t.slidesToScroll},L=function(t,o){return o.reduce(function(p,e){return p&&t.hasOwnProperty(e)},!0)?null:console.error("Keys Missing:",t)},V=function(t){L(t,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var o,p,e=t.slideCount+2*t.slidesToShow;t.vertical?p=e*t.slideHeight:o=dt(t)*t.slideWidth;var d={opacity:1,transition:"",WebkitTransition:""};if(t.useTransform){var i=t.vertical?"translate3d(0px, "+t.left+"px, 0px)":"translate3d("+t.left+"px, 0px, 0px)",l=t.vertical?"translate3d(0px, "+t.left+"px, 0px)":"translate3d("+t.left+"px, 0px, 0px)",v=t.vertical?"translateY("+t.left+"px)":"translateX("+t.left+"px)";d=Object(n.a)(Object(n.a)({},d),{},{WebkitTransform:i,transform:l,msTransform:v})}else t.vertical?d.top=t.left:d.left=t.left;return t.fade&&(d={opacity:1}),o&&(d.width=o),p&&(d.height=p),window&&!window.addEventListener&&window.attachEvent&&(t.vertical?d.marginTop=t.left+"px":d.marginLeft=t.left+"px"),d},ve=function(t){L(t,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var o=V(t);return t.useTransform?(o.WebkitTransition="-webkit-transform "+t.speed+"ms "+t.cssEase,o.transition="transform "+t.speed+"ms "+t.cssEase):t.vertical?o.transition="top "+t.speed+"ms "+t.cssEase:o.transition="left "+t.speed+"ms "+t.cssEase,o},_e=function(t){if(t.unslick)return 0;L(t,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var o=t.slideIndex,p=t.trackRef,e=t.infinite,d=t.centerMode,i=t.slideCount,l=t.slidesToShow,v=t.slidesToScroll,P=t.slideWidth,F=t.listWidth,E=t.variableWidth,s=t.slideHeight,q=t.fade,C=t.vertical,W=0,H,le,z=0;if(q||t.slideCount===1)return 0;var ae=0;if(e?(ae=-pe(t),i%v!==0&&o+v>i&&(ae=-(o>i?l-(o-i):i%v)),d&&(ae+=parseInt(l/2))):(i%v!==0&&o+v>i&&(ae=l-i%v),d&&(ae=parseInt(l/2))),W=ae*P,z=ae*s,C?H=o*s*-1+z:H=o*P*-1+W,E===!0){var J,me=p&&p.node;if(J=o+pe(t),le=me&&me.childNodes[J],H=le?le.offsetLeft*-1:0,d===!0){J=e?o+pe(t):o,le=me&&me.children[J],H=0;for(var se=0;set.currentSlide?t.targetSlide>t.currentSlide+lt(t)?"left":"right":t.targetSlide0&&(i+=1),e&&o%2===0&&(i+=1),i}return e?0:o-1},gt=function(t){var o=t.slidesToShow,p=t.centerMode,e=t.rtl,d=t.centerPadding;if(p){var i=(o-1)/2+1;return parseInt(d)>0&&(i+=1),!e&&o%2===0&&(i+=1),i}return e?o-1:0},tt=function(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)},$e=function(t){var o,p,e,d,i;t.rtl?i=t.slideCount-1-t.index:i=t.index,e=i<0||i>=t.slideCount,t.centerMode?(d=Math.floor(t.slidesToShow/2),p=(i-t.currentSlide)%t.slideCount===0,i>t.currentSlide-d-1&&i<=t.currentSlide+d&&(o=!0)):o=t.currentSlide<=i&&i=t.slideCount?l=t.targetSlide-t.slideCount:l=t.targetSlide;var v=i===l;return{"slick-slide":!0,"slick-active":o,"slick-center":p,"slick-cloned":e,"slick-current":v}},kt=function(t){var o={};return(t.variableWidth===void 0||t.variableWidth===!1)&&(o.width=t.slideWidth),t.fade&&(o.position="relative",t.vertical?o.top=-t.index*parseInt(t.slideHeight):o.left=-t.index*parseInt(t.slideWidth),o.opacity=t.currentSlide===t.index?1:0,t.useCSS&&(o.transition="opacity "+t.speed+"ms "+t.cssEase+", visibility "+t.speed+"ms "+t.cssEase)),o},Ct=function(t,o){return t.key+"-"+o},ze=function(t){var o,p=[],e=[],d=[],i=N.a.Children.count(t.children),l=a(t),v=Ae(t);return N.a.Children.forEach(t.children,function(P,F){var E,s={message:"children",index:F,slidesToScroll:t.slidesToScroll,currentSlide:t.currentSlide};!t.lazyLoad||t.lazyLoad&&t.lazyLoadedList.indexOf(F)>=0?E=P:E=N.a.createElement("div",null);var q=kt(Object(n.a)(Object(n.a)({},t),{},{index:F})),C=E.props.className||"",W=$e(Object(n.a)(Object(n.a)({},t),{},{index:F}));if(p.push(N.a.cloneElement(E,{key:"original"+Ct(E,F),"data-index":F,className:Oe()(W,C),tabIndex:"-1","aria-hidden":!W["slick-active"],style:Object(n.a)(Object(n.a)({outline:"none"},E.props.style||{}),q),onClick:function(z){E.props&&E.props.onClick&&E.props.onClick(z),t.focusOnSelect&&t.focusOnSelect(s)}})),t.infinite&&t.fade===!1){var H=i-F;H<=pe(t)&&i!==t.slidesToShow&&(o=-H,o>=l&&(E=P),W=$e(Object(n.a)(Object(n.a)({},t),{},{index:o})),e.push(N.a.cloneElement(E,{key:"precloned"+Ct(E,o),"data-index":o,tabIndex:"-1",className:Oe()(W,C),"aria-hidden":!W["slick-active"],style:Object(n.a)(Object(n.a)({},E.props.style||{}),q),onClick:function(z){E.props&&E.props.onClick&&E.props.onClick(z),t.focusOnSelect&&t.focusOnSelect(s)}}))),i!==t.slidesToShow&&(o=i+F,o=J&&s<=z:s===J}),se={message:"dots",index:H,slidesToScroll:P,currentSlide:s},ke=this.clickHandler.bind(this,se);W=W.concat(N.a.createElement("li",{key:H,className:me},N.a.cloneElement(this.props.customPaging(H),{onClick:ke})))}return N.a.cloneElement(this.props.appendDots(W),Object(n.a)({className:this.props.dotsClass},C))}}]),o}(N.a.PureComponent),Et=function(x){Object(ee.a)(o,x);var t=Object(G.a)(o);function o(){return Object(X.a)(this,o),t.apply(this,arguments)}return Object(te.a)(o,[{key:"clickHandler",value:function(e,d){d&&d.preventDefault(),this.props.clickHandler(e,d)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-prev":!0},d=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(this.props.currentSlide===0||this.props.slideCount<=this.props.slidesToShow)&&(e["slick-disabled"]=!0,d=null);var i={key:"0","data-role":"none",className:Oe()(e),style:{display:"block"},onClick:d},l={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},v;return this.props.prevArrow?v=N.a.cloneElement(this.props.prevArrow,Object(n.a)(Object(n.a)({},i),l)):v=N.a.createElement("button",Object(Y.a)({key:"0",type:"button"},i)," ","Previous"),v}}]),o}(N.a.PureComponent),vt=function(x){Object(ee.a)(o,x);var t=Object(G.a)(o);function o(){return Object(X.a)(this,o),t.apply(this,arguments)}return Object(te.a)(o,[{key:"clickHandler",value:function(e,d){d&&d.preventDefault(),this.props.clickHandler(e,d)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-next":!0},d=this.clickHandler.bind(this,{message:"next"});T(this.props)||(e["slick-disabled"]=!0,d=null);var i={key:"1","data-role":"none",className:Oe()(e),style:{display:"block"},onClick:d},l={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},v;return this.props.nextArrow?v=N.a.cloneElement(this.props.nextArrow,Object(n.a)(Object(n.a)({},i),l)):v=N.a.createElement("button",Object(Y.a)({key:"1",type:"button"},i)," ","Next"),v}}]),o}(N.a.PureComponent),wt=r("bdgK"),Nt=function(x){Object(ee.a)(o,x);var t=Object(G.a)(o);function o(p){var e;Object(X.a)(this,o),e=t.call(this,p),Object(w.a)(Object(D.a)(e),"listRefHandler",function(i){return e.list=i}),Object(w.a)(Object(D.a)(e),"trackRefHandler",function(i){return e.track=i}),Object(w.a)(Object(D.a)(e),"adaptHeight",function(){if(e.props.adaptiveHeight&&e.list){var i=e.list.querySelector('[data-index="'.concat(e.state.currentSlide,'"]'));e.list.style.height=u(i)+"px"}}),Object(w.a)(Object(D.a)(e),"componentDidMount",function(){if(e.props.onInit&&e.props.onInit(),e.props.lazyLoad){var i=g(Object(n.a)(Object(n.a)({},e.props),e.state));i.length>0&&(e.setState(function(v){return{lazyLoadedList:v.lazyLoadedList.concat(i)}}),e.props.onLazyLoad&&e.props.onLazyLoad(i))}var l=Object(n.a)({listRef:e.list,trackRef:e.track},e.props);e.updateState(l,!0,function(){e.adaptHeight(),e.props.autoplay&&e.autoPlay("playing")}),e.props.lazyLoad==="progressive"&&(e.lazyLoadTimer=setInterval(e.progressiveLazyLoad,1e3)),e.ro=new wt.a(function(){e.state.animating?(e.onWindowResized(!1),e.callbackTimers.push(setTimeout(function(){return e.onWindowResized()},e.props.speed))):e.onWindowResized()}),e.ro.observe(e.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),function(v){v.onfocus=e.props.pauseOnFocus?e.onSlideFocus:null,v.onblur=e.props.pauseOnFocus?e.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",e.onWindowResized):window.attachEvent("onresize",e.onWindowResized)}),Object(w.a)(Object(D.a)(e),"componentWillUnmount",function(){e.animationEndCallback&&clearTimeout(e.animationEndCallback),e.lazyLoadTimer&&clearInterval(e.lazyLoadTimer),e.callbackTimers.length&&(e.callbackTimers.forEach(function(i){return clearTimeout(i)}),e.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",e.onWindowResized):window.detachEvent("onresize",e.onWindowResized),e.autoplayTimer&&clearInterval(e.autoplayTimer),e.ro.disconnect()}),Object(w.a)(Object(D.a)(e),"componentDidUpdate",function(i){if(e.checkImagesLoad(),e.props.onReInit&&e.props.onReInit(),e.props.lazyLoad){var l=g(Object(n.a)(Object(n.a)({},e.props),e.state));l.length>0&&(e.setState(function(F){return{lazyLoadedList:F.lazyLoadedList.concat(l)}}),e.props.onLazyLoad&&e.props.onLazyLoad(l))}e.adaptHeight();var v=Object(n.a)(Object(n.a)({listRef:e.list,trackRef:e.track},e.props),e.state),P=e.didPropsChange(i);P&&e.updateState(v,P,function(){e.state.currentSlide>=N.a.Children.count(e.props.children)&&e.changeSlide({message:"index",index:N.a.Children.count(e.props.children)-e.props.slidesToShow,currentSlide:e.state.currentSlide}),(i.autoplay!==e.props.autoplay||i.autoplaySpeed!==e.props.autoplaySpeed)&&(!i.autoplay&&e.props.autoplay?e.autoPlay("playing"):e.props.autoplay?e.autoPlay("update"):e.pause("paused"))})}),Object(w.a)(Object(D.a)(e),"onWindowResized",function(i){e.debouncedResize&&e.debouncedResize.cancel(),e.debouncedResize=M()(function(){return e.resizeWindow(i)},50),e.debouncedResize()}),Object(w.a)(Object(D.a)(e),"resizeWindow",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,l=Boolean(e.track&&e.track.node);if(!l)return;var v=Object(n.a)(Object(n.a)({listRef:e.list,trackRef:e.track},e.props),e.state);e.updateState(v,i,function(){e.props.autoplay?e.autoPlay("update"):e.pause("paused")}),e.setState({animating:!1}),clearTimeout(e.animationEndCallback),delete e.animationEndCallback}),Object(w.a)(Object(D.a)(e),"updateState",function(i,l,v){var P=b(i);i=Object(n.a)(Object(n.a)(Object(n.a)({},i),P),{},{slideIndex:P.currentSlide});var F=_e(i);i=Object(n.a)(Object(n.a)({},i),{},{left:F});var E=V(i);(l||N.a.Children.count(e.props.children)!==N.a.Children.count(i.children))&&(P.trackStyle=E),e.setState(P,v)}),Object(w.a)(Object(D.a)(e),"ssrInit",function(){if(e.props.variableWidth){var i=0,l=0,v=[],P=pe(Object(n.a)(Object(n.a)(Object(n.a)({},e.props),e.state),{},{slideCount:e.props.children.length})),F=Le(Object(n.a)(Object(n.a)(Object(n.a)({},e.props),e.state),{},{slideCount:e.props.children.length}));e.props.children.forEach(function(ke){v.push(ke.props.style.width),i+=ke.props.style.width});for(var E=0;E=l&&e.onWindowResized()};if(!P.onclick)P.onclick=function(){return P.parentNode.focus()};else{var E=P.onclick;P.onclick=function(){E(),P.parentNode.focus()}}P.onload||(e.props.lazyLoad?P.onload=function(){e.adaptHeight(),e.callbackTimers.push(setTimeout(e.onWindowResized,e.props.speed))}:(P.onload=F,P.onerror=function(){F(),e.props.onLazyLoadError&&e.props.onLazyLoadError()}))})}),Object(w.a)(Object(D.a)(e),"progressiveLazyLoad",function(){for(var i=[],l=Object(n.a)(Object(n.a)({},e.props),e.state),v=e.state.currentSlide;v=-pe(l);P--)if(e.state.lazyLoadedList.indexOf(P)<0){i.push(P);break}i.length>0?(e.setState(function(F){return{lazyLoadedList:F.lazyLoadedList.concat(i)}}),e.props.onLazyLoad&&e.props.onLazyLoad(i)):e.lazyLoadTimer&&(clearInterval(e.lazyLoadTimer),delete e.lazyLoadTimer)}),Object(w.a)(Object(D.a)(e),"slideHandler",function(i){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,v=e.props,P=v.asNavFor,F=v.beforeChange,E=v.onLazyLoad,s=v.speed,q=v.afterChange,C=e.state.currentSlide,W=A(Object(n.a)(Object(n.a)(Object(n.a)({index:i},e.props),e.state),{},{trackRef:e.track,useCSS:e.props.useCSS&&!l})),H=W.state,le=W.nextState;if(!H)return;F&&F(C,H.currentSlide);var z=H.lazyLoadedList.filter(function(ae){return e.state.lazyLoadedList.indexOf(ae)<0});E&&z.length>0&&E(z),!e.props.waitForAnimate&&e.animationEndCallback&&(clearTimeout(e.animationEndCallback),q&&q(C),delete e.animationEndCallback),e.setState(H,function(){if(P&&e.asNavForIndex!==i&&(e.asNavForIndex=i,P.innerSlider.slideHandler(i)),!le)return;e.animationEndCallback=setTimeout(function(){var ae=le.animating,J=Object(Q.a)(le,["animating"]);e.setState(J,function(){e.callbackTimers.push(setTimeout(function(){return e.setState({animating:ae})},10)),q&&q(H.currentSlide),delete e.animationEndCallback})},s)})}),Object(w.a)(Object(D.a)(e),"changeSlide",function(i){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,v=Object(n.a)(Object(n.a)({},e.props),e.state),P=c(v,i);if(P!==0&&!P)return;if(l===!0?e.slideHandler(P,l):e.slideHandler(P),e.props.autoplay&&e.autoPlay("update"),e.props.focusOnSelect){var F=e.list.querySelectorAll(".slick-current");F[0]&&F[0].focus()}}),Object(w.a)(Object(D.a)(e),"clickHandler",function(i){e.clickable===!1&&(i.stopPropagation(),i.preventDefault()),e.clickable=!0}),Object(w.a)(Object(D.a)(e),"keyHandler",function(i){var l=f(i,e.props.accessibility,e.props.rtl);l!==""&&e.changeSlide({message:l})}),Object(w.a)(Object(D.a)(e),"selectHandler",function(i){e.changeSlide(i)}),Object(w.a)(Object(D.a)(e),"disableBodyScroll",function(){var i=function(v){v=v||window.event,v.preventDefault&&v.preventDefault(),v.returnValue=!1};window.ontouchmove=i}),Object(w.a)(Object(D.a)(e),"enableBodyScroll",function(){window.ontouchmove=null}),Object(w.a)(Object(D.a)(e),"swipeStart",function(i){e.props.verticalSwiping&&e.disableBodyScroll();var l=$(i,e.props.swipe,e.props.draggable);l!==""&&e.setState(l)}),Object(w.a)(Object(D.a)(e),"swipeMove",function(i){var l=oe(i,Object(n.a)(Object(n.a)(Object(n.a)({},e.props),e.state),{},{trackRef:e.track,listRef:e.list,slideIndex:e.state.currentSlide}));if(!l)return;l.swiping&&(e.clickable=!1),e.setState(l)}),Object(w.a)(Object(D.a)(e),"swipeEnd",function(i){var l=_(i,Object(n.a)(Object(n.a)(Object(n.a)({},e.props),e.state),{},{trackRef:e.track,listRef:e.list,slideIndex:e.state.currentSlide}));if(!l)return;var v=l.triggerSlideHandler;if(delete l.triggerSlideHandler,e.setState(l),v===void 0)return;e.slideHandler(v),e.props.verticalSwiping&&e.enableBodyScroll()}),Object(w.a)(Object(D.a)(e),"touchEnd",function(i){e.swipeEnd(i),e.clickable=!0}),Object(w.a)(Object(D.a)(e),"slickPrev",function(){e.callbackTimers.push(setTimeout(function(){return e.changeSlide({message:"previous"})},0))}),Object(w.a)(Object(D.a)(e),"slickNext",function(){e.callbackTimers.push(setTimeout(function(){return e.changeSlide({message:"next"})},0))}),Object(w.a)(Object(D.a)(e),"slickGoTo",function(i){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(i=Number(i),isNaN(i))return"";e.callbackTimers.push(setTimeout(function(){return e.changeSlide({message:"index",index:i,currentSlide:e.state.currentSlide},l)},0))}),Object(w.a)(Object(D.a)(e),"play",function(){var i;if(e.props.rtl)i=e.state.currentSlide-e.props.slidesToScroll;else if(T(Object(n.a)(Object(n.a)({},e.props),e.state)))i=e.state.currentSlide+e.props.slidesToScroll;else return!1;e.slideHandler(i)}),Object(w.a)(Object(D.a)(e),"autoPlay",function(i){e.autoplayTimer&&clearInterval(e.autoplayTimer);var l=e.state.autoplaying;if(i==="update"){if(l==="hovered"||l==="focused"||l==="paused")return}else if(i==="leave"){if(l==="paused"||l==="focused")return}else if(i==="blur"&&(l==="paused"||l==="hovered"))return;e.autoplayTimer=setInterval(e.play,e.props.autoplaySpeed+50),e.setState({autoplaying:"playing"})}),Object(w.a)(Object(D.a)(e),"pause",function(i){e.autoplayTimer&&(clearInterval(e.autoplayTimer),e.autoplayTimer=null);var l=e.state.autoplaying;i==="paused"?e.setState({autoplaying:"paused"}):i==="focused"?(l==="hovered"||l==="playing")&&e.setState({autoplaying:"focused"}):l==="playing"&&e.setState({autoplaying:"hovered"})}),Object(w.a)(Object(D.a)(e),"onDotsOver",function(){return e.props.autoplay&&e.pause("hovered")}),Object(w.a)(Object(D.a)(e),"onDotsLeave",function(){return e.props.autoplay&&e.state.autoplaying==="hovered"&&e.autoPlay("leave")}),Object(w.a)(Object(D.a)(e),"onTrackOver",function(){return e.props.autoplay&&e.pause("hovered")}),Object(w.a)(Object(D.a)(e),"onTrackLeave",function(){return e.props.autoplay&&e.state.autoplaying==="hovered"&&e.autoPlay("leave")}),Object(w.a)(Object(D.a)(e),"onSlideFocus",function(){return e.props.autoplay&&e.pause("focused")}),Object(w.a)(Object(D.a)(e),"onSlideBlur",function(){return e.props.autoplay&&e.state.autoplaying==="focused"&&e.autoPlay("blur")}),Object(w.a)(Object(D.a)(e),"render",function(){var i=Oe()("slick-slider",e.props.className,{"slick-vertical":e.props.vertical,"slick-initialized":!0}),l=Object(n.a)(Object(n.a)({},e.props),e.state),v=K(l,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),P=e.props.pauseOnHover;v=Object(n.a)(Object(n.a)({},v),{},{onMouseEnter:P?e.onTrackOver:null,onMouseLeave:P?e.onTrackLeave:null,onMouseOver:P?e.onTrackOver:null,focusOnSelect:e.props.focusOnSelect&&e.clickable?e.selectHandler:null});var F;if(e.props.dots===!0&&e.state.slideCount>=e.props.slidesToShow){var E=K(l,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),s=e.props.pauseOnDotsHover;E=Object(n.a)(Object(n.a)({},E),{},{clickHandler:e.changeSlide,onMouseEnter:s?e.onDotsLeave:null,onMouseOver:s?e.onDotsOver:null,onMouseLeave:s?e.onDotsLeave:null}),F=N.a.createElement(mt,E)}var q,C,W=K(l,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);W.clickHandler=e.changeSlide,e.props.arrows&&(q=N.a.createElement(Et,W),C=N.a.createElement(vt,W));var H=null;e.props.vertical&&(H={height:e.state.listHeight});var le=null;e.props.vertical===!1?e.props.centerMode===!0&&(le={padding:"0px "+e.props.centerPadding}):e.props.centerMode===!0&&(le={padding:e.props.centerPadding+" 0px"});var z=Object(n.a)(Object(n.a)({},H),le),ae=e.props.touchMove,J={className:"slick-list",style:z,onClick:e.clickHandler,onMouseDown:ae?e.swipeStart:null,onMouseMove:e.state.dragging&&ae?e.swipeMove:null,onMouseUp:ae?e.swipeEnd:null,onMouseLeave:e.state.dragging&&ae?e.swipeEnd:null,onTouchStart:ae?e.swipeStart:null,onTouchMove:e.state.dragging&&ae?e.swipeMove:null,onTouchEnd:ae?e.touchEnd:null,onTouchCancel:e.state.dragging&&ae?e.swipeEnd:null,onKeyDown:e.props.accessibility?e.keyHandler:null},me={className:i,dir:"ltr",style:e.props.style};return e.props.unslick&&(J={className:"slick-list"},me={className:i}),N.a.createElement("div",me,e.props.unslick?"":q,N.a.createElement("div",Object(Y.a)({ref:e.listRefHandler},J),N.a.createElement(We,Object(Y.a)({ref:e.trackRefHandler},v),e.props.children)),e.props.unslick?"":C,e.props.unslick?"":F)}),e.list=null,e.track=null,e.state=Object(n.a)(Object(n.a)({},Ue),{},{currentSlide:e.props.initialSlide,slideCount:N.a.Children.count(e.props.children)}),e.callbackTimers=[],e.clickable=!0,e.debouncedResize=null;var d=e.ssrInit();return e.state=Object(n.a)(Object(n.a)({},e.state),d),e}return Object(te.a)(o,[{key:"didPropsChange",value:function(e){for(var d=!1,i=0,l=Object.keys(this.props);i1&&arguments[1]!==void 0?arguments[1]:!1;return e.innerSlider.slickGoTo(d,i)}),Object(w.a)(Object(D.a)(e),"slickPause",function(){return e.innerSlider.pause("paused")}),Object(w.a)(Object(D.a)(e),"slickPlay",function(){return e.innerSlider.autoPlay("play")}),e.state={breakpoint:null},e._responsiveMediaHandlers=[],e}return Object(te.a)(o,[{key:"media",value:function(e,d){var i=window.matchMedia(e),l=function(P){var F=P.matches;F&&d()};i.addListener(l),l(i),this._responsiveMediaHandlers.push({mql:i,query:e,listener:l})}},{key:"componentDidMount",value:function(){var e=this;if(this.props.responsive){var d=this.props.responsive.map(function(l){return l.breakpoint});d.sort(function(l,v){return l-v}),d.forEach(function(l,v){var P;v===0?P=At()({minWidth:0,maxWidth:l}):P=At()({minWidth:d[v-1]+1,maxWidth:l}),tt()&&e.media(P,function(){e.setState({breakpoint:l})})});var i=At()({minWidth:d.slice(-1)[0]});tt()&&this.media(i,function(){e.setState({breakpoint:null})})}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach(function(e){e.mql.removeListener(e.listener)})}},{key:"render",value:function(){var e=this,d,i;this.state.breakpoint?(i=this.props.responsive.filter(function(H){return H.breakpoint===e.state.breakpoint}),d=i[0].settings==="unslick"?"unslick":Object(n.a)(Object(n.a)(Object(n.a)({},Xt),this.props),i[0].settings)):d=Object(n.a)(Object(n.a)({},Xt),this.props),d.centerMode&&(d.slidesToScroll>1&&!1&&console.warn("slidesToScroll should be equal to 1 in centerMode, you are using ".concat(d.slidesToScroll)),d.slidesToScroll=1),d.fade&&(d.slidesToShow>1&&!1&&console.warn("slidesToShow should be equal to 1 when fade is true, you're using ".concat(d.slidesToShow)),d.slidesToScroll>1&&!1&&console.warn("slidesToScroll should be equal to 1 when fade is true, you're using ".concat(d.slidesToScroll)),d.slidesToShow=1,d.slidesToScroll=1);var l=N.a.Children.toArray(this.props.children);l=l.filter(function(H){return typeof H=="string"?!!H.trim():!!H}),d.variableWidth&&(d.rows>1||d.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),d.variableWidth=!1);for(var v=[],P=null,F=0;F=l.length);C+=1)q.push(N.a.cloneElement(l[C],{key:100*F+10*s+C,tabIndex:-1,style:{width:"".concat(100/d.slidesPerRow,"%"),display:"inline-block"}}));E.push(N.a.createElement("div",{key:10*F+s},q))}d.variableWidth?v.push(N.a.createElement("div",{key:F,style:{width:P}},E)):v.push(N.a.createElement("div",{key:F},E))}if(d==="unslick"){var W="regular slider "+(this.props.className||"");return N.a.createElement("div",{className:W},l)}else v.length<=d.slidesToShow&&(d.unslick=!0);return N.a.createElement(Nt,Object(Y.a)({style:this.props.style,ref:this.innerSliderRefHandler},d),v)}}]),o}(N.a.Component),ye=na,st=r("H84U"),Ge=function(x,t){var o={};for(var p in x)Object.prototype.hasOwnProperty.call(x,p)&&t.indexOf(p)<0&&(o[p]=x[p]);if(x!=null&&typeof Object.getOwnPropertySymbols=="function")for(var e=0,p=Object.getOwnPropertySymbols(x);e1&&arguments[1]!==void 0?arguments[1]:!1;W.current.slickGoTo(Ee,Pe)};k.useImperativeHandle(t,function(){return{goTo:H,autoPlay:W.current.innerSlider.autoPlay,innerSlider:W.current.innerSlider,prev:W.current.slickPrev,next:W.current.slickNext}},[W.current]),k.useEffect(function(){var Ne=function(){var Ke=E.autoplay;Ke&&W.current&&W.current.innerSlider&&W.current.innerSlider.autoPlay&&W.current.innerSlider.autoPlay()},Ee=M()(Ne,500,{leading:!1});return E.autoplay&&window.addEventListener("resize",Ee),function(){E.autoplay&&(window.removeEventListener("resize",Ee),Ee.cancel())}},[W.current,E.autoplay]);var le=k.useRef(k.Children.count(E.children));k.useEffect(function(){le.current!==k.Children.count(E.children)&&(H(E.initialSlide||0,!1),le.current=k.Children.count(E.children))},[E.children]);var z=Object(Y.a)({},E);z.effect==="fade"&&(z.fade=!0);var ae=q("carousel",z.prefixCls),J="slick-dots";z.vertical=F==="left"||F==="right";var me=!!e,se=Oe()(J,"".concat(J,"-").concat(F),typeof e=="boolean"?!1:e==null?void 0:e.className),ke=Oe()(ae,(o={},Object(w.a)(o,"".concat(ae,"-rtl"),C==="rtl"),Object(w.a)(o,"".concat(ae,"-vertical"),z.vertical),o));return k.createElement("div",{className:ke},k.createElement(ye,Object(Y.a)({ref:W},z,{dots:me,dotsClass:se,arrows:i,draggable:v})))}),_t=I.a=Je},"6/k+":function(Be,I,r){},"7ahc":function(Be,I,r){"use strict";r.d(I,"a",function(){return g});var w=r("XEnU"),Y=r("IIKO"),k=r("+L6B"),N=r("2/Rp"),Z=r("y8nQ"),M=r("Vl3Y"),n=r("k16G"),X=r("OaEy"),te=r("2fM7"),D=r("q1tI"),ee=r.n(D),G=r("VrN/"),ie=r.n(G),Q=r("p77/"),be=r.n(Q),Ue=r("c5Ni"),ne=r.n(Ue),Oe=te.a.Option,Xe={labelCol:{span:4},wrapperCol:{span:20}},He={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};I.b=function(h){var a=h.callback,Ae=h.onCancel,re=Object(D.useState)("python"),Se=Object(n.a)(re,2),xe=Se[0],u=Se[1];function m(K){u(He[K][1])}function T(K){a(K)}return ee.a.createElement(M.a,Object(Y.a)({},Xe,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:T}),ee.a.createElement(M.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ee.a.createElement(te.a,{onChange:m},Object.keys(He).map(function(K){return ee.a.createElement(Oe,{key:K,value:K},He[K][0])}))),ee.a.createElement(M.a.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ee.a.createElement(g,{mode:xe})),ee.a.createElement("div",{className:"flex-container flex-end"},ee.a.createElement(N.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ee.a.createElement(N.a,{type:"ghost",onClick:Ae},"\u53D6\u6D88")))};function g(h){var a=h.value,Ae=h.onChange,re=h.mode,Se=h.options,xe=Se===void 0?{}:Se,u=Object(D.useRef)(),m=Object(D.useState)(),T=Object(n.a)(m,2),K=T[0],b=T[1];return Object(D.useEffect)(function(){if(K){var A=function(f){var $=f.getValue();Ae&&Ae($)};return K.on("change",A),function(){K.off("change",A)}}},[K,Ae]),Object(D.useEffect)(function(){K&&K.setOption("mode",re)},[K,re]),Object(D.useEffect)(function(){K&&((a!==K.getValue()||a==="")&&setTimeout(function(){K.setValue(a||" ")},300))},[K,a]),Object(D.useEffect)(function(){if(u.current&&!K){var A=ie.a.fromTextArea(u.current,Object(w.a)({mode:re,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},xe));b(A)}},[u.current,K]),ee.a.createElement("div",{className:"my-codemirror-container"},ee.a.createElement("textarea",{ref:u}))}},"8N4D":function(Be,I,r){"use strict";function w(u){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?w=function(T){return typeof T}:w=function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},w(u)}Object.defineProperty(I,"__esModule",{value:!0}),I.matchesSelector=D,I.matchesSelectorAndParentsTo=ee,I.addEvent=G,I.removeEvent=ie,I.outerHeight=Q,I.outerWidth=be,I.innerHeight=Ue,I.innerWidth=ne,I.offsetXYFromParent=Oe,I.createCSSTransform=Xe,I.createSVGTransform=He,I.getTranslation=g,I.getTouch=h,I.getTouchIdentifier=a,I.addUserSelectStyles=Ae,I.removeUserSelectStyles=re,I.addClassName=Se,I.removeClassName=xe;var Y=r("gbW8"),k=Z(r("Ga4A"));function N(u){if(typeof WeakMap!="function")return null;var m=new WeakMap,T=new WeakMap;return(N=function(b){return b?T:m})(u)}function Z(u,m){if(!m&&u&&u.__esModule)return u;if(u===null||w(u)!=="object"&&typeof u!="function")return{default:u};var T=N(m);if(T&&T.has(u))return T.get(u);var K={},b=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var A in u)if(A!=="default"&&Object.prototype.hasOwnProperty.call(u,A)){var c=b?Object.getOwnPropertyDescriptor(u,A):null;c&&(c.get||c.set)?Object.defineProperty(K,A,c):K[A]=u[A]}return K.default=u,T&&T.set(u,K),K}function M(u,m){var T=Object.keys(u);if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(u);m&&(K=K.filter(function(b){return Object.getOwnPropertyDescriptor(u,b).enumerable})),T.push.apply(T,K)}return T}function n(u){for(var m=1;m0?1:0):0},Se=function(t){return t.centerMode?Math.floor((t.slidesToShow-1)/2)+1+(parseInt(t.centerPadding)>0?1:0):t.slidesToShow},Re=function(t){return t&&t.offsetWidth||0},u=function(t){return t&&t.offsetHeight||0},m=function(t){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,p,e,d,i;return p=t.startX-t.curX,e=t.startY-t.curY,d=Math.atan2(e,p),i=Math.round(d*180/Math.PI),i<0&&(i=360-Math.abs(i)),i<=45&&i>=0||i<=360&&i>=315?"left":i>=135&&i<=225?"right":o===!0?i>=35&&i<=135?"up":"down":"vertical"},T=function(t){var o=!0;return t.infinite||(t.centerMode&&t.currentSlide>=t.slideCount-1||(t.slideCount<=t.slidesToShow||t.currentSlide>=t.slideCount-t.slidesToShow))&&(o=!1),o},K=function(t,o){var p={};return o.forEach(function(e){return p[e]=t[e]}),p},b=function(t){var o=N.a.Children.count(t.children),p=t.listRef,e=Math.ceil(Re(p)),d=t.trackRef&&t.trackRef.node,i=Math.ceil(Re(d)),l;if(t.vertical)l=e;else{var v=t.centerMode&&parseInt(t.centerPadding)*2;typeof t.centerPadding=="string"&&t.centerPadding.slice(-1)==="%"&&(v*=e/100),l=Math.ceil((e-v)/t.slidesToShow)}var P=p&&u(p.querySelector('[data-index="0"]')),F=P*t.slidesToShow,E=t.currentSlide===void 0?t.initialSlide:t.currentSlide;t.rtl&&t.currentSlide===void 0&&(E=o-1-t.initialSlide);var s=t.lazyLoadedList||[],q=g(Object(n.a)(Object(n.a)({},t),{},{currentSlide:E,lazyLoadedList:s}));s=s.concat(q);var C={slideCount:o,slideWidth:l,listWidth:e,trackWidth:i,currentSlide:E,slideHeight:P,listHeight:F,lazyLoadedList:s};return t.autoplaying===null&&t.autoplay&&(C.autoplaying="playing"),C},A=function(t){var o=t.waitForAnimate,p=t.animating,e=t.fade,d=t.infinite,i=t.index,l=t.slideCount,v=t.lazyLoad,P=t.currentSlide,F=t.centerMode,E=t.slidesToScroll,s=t.slidesToShow,q=t.useCSS,C=t.lazyLoadedList;if(o&&p)return{};var W=i,H,le,z,ae={},J={},me=d?i:Xe(i,0,l-1);if(e){if(!d&&(i<0||i>=l))return{};i<0?W=i+l:i>=l&&(W=i-l),v&&C.indexOf(W)<0&&(C=C.concat(W)),ae={animating:!0,currentSlide:W,lazyLoadedList:C,targetSlide:W},J={animating:!1,targetSlide:W}}else H=W,W<0?(H=W+l,d?l%E!==0&&(H=l-l%E):H=0):!T(t)&&W>P?W=H=P:F&&W>=l?(W=d?l:l-1,H=d?0:l-1):W>=l&&(H=W-l,d?l%E!==0&&(H=0):H=l-s),!d&&W+s>=l&&(H=l-s),le=_e(Object(n.a)(Object(n.a)({},t),{},{slideIndex:W})),z=_e(Object(n.a)(Object(n.a)({},t),{},{slideIndex:H})),d||(le===z&&(W=H),le=z),v&&(C=C.concat(g(Object(n.a)(Object(n.a)({},t),{},{currentSlide:W})))),q?(ae={animating:!0,currentSlide:H,trackStyle:ve(Object(n.a)(Object(n.a)({},t),{},{left:le})),lazyLoadedList:C,targetSlide:me},J={animating:!1,currentSlide:H,trackStyle:V(Object(n.a)(Object(n.a)({},t),{},{left:z})),swipeLeft:null,targetSlide:me}):ae={currentSlide:H,trackStyle:V(Object(n.a)(Object(n.a)({},t),{},{left:z})),lazyLoadedList:C,targetSlide:me};return{state:ae,nextState:J}},c=function(t,o){var p,e,d,i,l,v=t.slidesToScroll,P=t.slidesToShow,F=t.slideCount,E=t.currentSlide,s=t.targetSlide,q=t.lazyLoad,C=t.infinite;if(i=F%v!==0,p=i?0:(F-E)%v,o.message==="previous")d=p===0?v:P-p,l=E-d,q&&!C&&(e=E-d,l=e===-1?F-1:e),C||(l=s-v);else if(o.message==="next")d=p===0?v:p,l=E+d,q&&!C&&(l=(E+v)%F+p),C||(l=s+v);else if(o.message==="dots")l=o.index*o.slidesToScroll;else if(o.message==="children"){if(l=o.index,C){var W=et(Object(n.a)(Object(n.a)({},t),{},{targetSlide:l}));l>o.currentSlide&&W==="left"?l=l-F:l10)return{scrolling:!0};l&&(z.swipeLength=Ee);var xe=(v?-1:1)*(z.curX>z.startX?1:-1);l&&(xe=z.curY>z.startY?1:-1);var Ke=Math.ceil(W/H),we=m(o.touchObject,l),O=z.swipeLength;return le||(P===0&&(we==="right"||we==="down")||P+1>=Ke&&(we==="left"||we==="up")||!T(o)&&(we==="left"||we==="up"))&&(O=z.swipeLength*F,E===!1&&s&&(s(we),ke.edgeDragged=!0)),!q&&ae&&(ae(we),ke.swiped=!0),d?se=Ne+O*(J/me)*xe:v?se=Ne-O*xe:se=Ne+O*xe,l&&(se=Ne+O*xe),ke=Object(n.a)(Object(n.a)({},ke),{},{touchObject:z,swipeLeft:se,trackStyle:V(Object(n.a)(Object(n.a)({},o),{},{left:se}))}),Math.abs(z.curX-z.startX)10&&(ke.swiping=!0,He(t)),ke},_=function(t,o){var p=o.dragging,e=o.swipe,d=o.touchObject,i=o.listWidth,l=o.touchThreshold,v=o.verticalSwiping,P=o.listHeight,F=o.swipeToSlide,E=o.scrolling,s=o.onSwipe,q=o.targetSlide,C=o.currentSlide,W=o.infinite;if(!p)return e&&He(t),{};var H=v?P/l:i/l,le=m(d,v),z={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(E)return z;if(!d.swipeLength)return z;if(d.swipeLength>H){He(t),s&&s(le);var ae,J,me=W?C:q;switch(le){case"left":case"up":J=me+U(o),ae=F?j(o,J):J,z.currentDirection=0;break;case"right":case"down":J=me-U(o),ae=F?j(o,J):J,z.currentDirection=1;break;default:ae=me}z.triggerSlideHandler=ae}else{var se=_e(o);z.trackStyle=ve(Object(n.a)(Object(n.a)({},o),{},{left:se}))}return z},y=function(t){for(var o=t.infinite?t.slideCount*2:t.slideCount,p=t.infinite?t.slidesToShow*-1:0,e=t.infinite?t.slidesToShow*-1:0,d=[];pp[p.length-1])o=p[p.length-1];else for(var d in p){if(ot.swipeLeft*-1)return p=v,!1}else if(v.offsetLeft-o+Re(v)/2>t.swipeLeft*-1)return p=v,!1;return!0}),!p)return 0;var i=t.rtl===!0?t.slideCount-t.currentSlide:t.currentSlide,l=Math.abs(p.dataset.index-i)||1;return l}else return t.slidesToScroll},L=function(t,o){return o.reduce(function(p,e){return p&&t.hasOwnProperty(e)},!0)?null:console.error("Keys Missing:",t)},V=function(t){L(t,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var o,p,e=t.slideCount+2*t.slidesToShow;t.vertical?p=e*t.slideHeight:o=dt(t)*t.slideWidth;var d={opacity:1,transition:"",WebkitTransition:""};if(t.useTransform){var i=t.vertical?"translate3d(0px, "+t.left+"px, 0px)":"translate3d("+t.left+"px, 0px, 0px)",l=t.vertical?"translate3d(0px, "+t.left+"px, 0px)":"translate3d("+t.left+"px, 0px, 0px)",v=t.vertical?"translateY("+t.left+"px)":"translateX("+t.left+"px)";d=Object(n.a)(Object(n.a)({},d),{},{WebkitTransform:i,transform:l,msTransform:v})}else t.vertical?d.top=t.left:d.left=t.left;return t.fade&&(d={opacity:1}),o&&(d.width=o),p&&(d.height=p),window&&!window.addEventListener&&window.attachEvent&&(t.vertical?d.marginTop=t.left+"px":d.marginLeft=t.left+"px"),d},ve=function(t){L(t,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var o=V(t);return t.useTransform?(o.WebkitTransition="-webkit-transform "+t.speed+"ms "+t.cssEase,o.transition="transform "+t.speed+"ms "+t.cssEase):t.vertical?o.transition="top "+t.speed+"ms "+t.cssEase:o.transition="left "+t.speed+"ms "+t.cssEase,o},_e=function(t){if(t.unslick)return 0;L(t,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var o=t.slideIndex,p=t.trackRef,e=t.infinite,d=t.centerMode,i=t.slideCount,l=t.slidesToShow,v=t.slidesToScroll,P=t.slideWidth,F=t.listWidth,E=t.variableWidth,s=t.slideHeight,q=t.fade,C=t.vertical,W=0,H,le,z=0;if(q||t.slideCount===1)return 0;var ae=0;if(e?(ae=-pe(t),i%v!==0&&o+v>i&&(ae=-(o>i?l-(o-i):i%v)),d&&(ae+=parseInt(l/2))):(i%v!==0&&o+v>i&&(ae=l-i%v),d&&(ae=parseInt(l/2))),W=ae*P,z=ae*s,C?H=o*s*-1+z:H=o*P*-1+W,E===!0){var J,me=p&&p.node;if(J=o+pe(t),le=me&&me.childNodes[J],H=le?le.offsetLeft*-1:0,d===!0){J=e?o+pe(t):o,le=me&&me.children[J],H=0;for(var se=0;set.currentSlide?t.targetSlide>t.currentSlide+lt(t)?"left":"right":t.targetSlide0&&(i+=1),e&&o%2===0&&(i+=1),i}return e?0:o-1},gt=function(t){var o=t.slidesToShow,p=t.centerMode,e=t.rtl,d=t.centerPadding;if(p){var i=(o-1)/2+1;return parseInt(d)>0&&(i+=1),!e&&o%2===0&&(i+=1),i}return e?o-1:0},tt=function(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)},$e=function(t){var o,p,e,d,i;t.rtl?i=t.slideCount-1-t.index:i=t.index,e=i<0||i>=t.slideCount,t.centerMode?(d=Math.floor(t.slidesToShow/2),p=(i-t.currentSlide)%t.slideCount===0,i>t.currentSlide-d-1&&i<=t.currentSlide+d&&(o=!0)):o=t.currentSlide<=i&&i=t.slideCount?l=t.targetSlide-t.slideCount:l=t.targetSlide;var v=i===l;return{"slick-slide":!0,"slick-active":o,"slick-center":p,"slick-cloned":e,"slick-current":v}},kt=function(t){var o={};return(t.variableWidth===void 0||t.variableWidth===!1)&&(o.width=t.slideWidth),t.fade&&(o.position="relative",t.vertical?o.top=-t.index*parseInt(t.slideHeight):o.left=-t.index*parseInt(t.slideWidth),o.opacity=t.currentSlide===t.index?1:0,t.useCSS&&(o.transition="opacity "+t.speed+"ms "+t.cssEase+", visibility "+t.speed+"ms "+t.cssEase)),o},Ct=function(t,o){return t.key+"-"+o},ze=function(t){var o,p=[],e=[],d=[],i=N.a.Children.count(t.children),l=a(t),v=Ae(t);return N.a.Children.forEach(t.children,function(P,F){var E,s={message:"children",index:F,slidesToScroll:t.slidesToScroll,currentSlide:t.currentSlide};!t.lazyLoad||t.lazyLoad&&t.lazyLoadedList.indexOf(F)>=0?E=P:E=N.a.createElement("div",null);var q=kt(Object(n.a)(Object(n.a)({},t),{},{index:F})),C=E.props.className||"",W=$e(Object(n.a)(Object(n.a)({},t),{},{index:F}));if(p.push(N.a.cloneElement(E,{key:"original"+Ct(E,F),"data-index":F,className:Oe()(W,C),tabIndex:"-1","aria-hidden":!W["slick-active"],style:Object(n.a)(Object(n.a)({outline:"none"},E.props.style||{}),q),onClick:function(z){E.props&&E.props.onClick&&E.props.onClick(z),t.focusOnSelect&&t.focusOnSelect(s)}})),t.infinite&&t.fade===!1){var H=i-F;H<=pe(t)&&i!==t.slidesToShow&&(o=-H,o>=l&&(E=P),W=$e(Object(n.a)(Object(n.a)({},t),{},{index:o})),e.push(N.a.cloneElement(E,{key:"precloned"+Ct(E,o),"data-index":o,tabIndex:"-1",className:Oe()(W,C),"aria-hidden":!W["slick-active"],style:Object(n.a)(Object(n.a)({},E.props.style||{}),q),onClick:function(z){E.props&&E.props.onClick&&E.props.onClick(z),t.focusOnSelect&&t.focusOnSelect(s)}}))),i!==t.slidesToShow&&(o=i+F,o=J&&s<=z:s===J}),se={message:"dots",index:H,slidesToScroll:P,currentSlide:s},ke=this.clickHandler.bind(this,se);W=W.concat(N.a.createElement("li",{key:H,className:me},N.a.cloneElement(this.props.customPaging(H),{onClick:ke})))}return N.a.cloneElement(this.props.appendDots(W),Object(n.a)({className:this.props.dotsClass},C))}}]),o}(N.a.PureComponent),Et=function(x){Object(ee.a)(o,x);var t=Object(G.a)(o);function o(){return Object(X.a)(this,o),t.apply(this,arguments)}return Object(te.a)(o,[{key:"clickHandler",value:function(e,d){d&&d.preventDefault(),this.props.clickHandler(e,d)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-prev":!0},d=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(this.props.currentSlide===0||this.props.slideCount<=this.props.slidesToShow)&&(e["slick-disabled"]=!0,d=null);var i={key:"0","data-role":"none",className:Oe()(e),style:{display:"block"},onClick:d},l={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},v;return this.props.prevArrow?v=N.a.cloneElement(this.props.prevArrow,Object(n.a)(Object(n.a)({},i),l)):v=N.a.createElement("button",Object(Y.a)({key:"0",type:"button"},i)," ","Previous"),v}}]),o}(N.a.PureComponent),vt=function(x){Object(ee.a)(o,x);var t=Object(G.a)(o);function o(){return Object(X.a)(this,o),t.apply(this,arguments)}return Object(te.a)(o,[{key:"clickHandler",value:function(e,d){d&&d.preventDefault(),this.props.clickHandler(e,d)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-next":!0},d=this.clickHandler.bind(this,{message:"next"});T(this.props)||(e["slick-disabled"]=!0,d=null);var i={key:"1","data-role":"none",className:Oe()(e),style:{display:"block"},onClick:d},l={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},v;return this.props.nextArrow?v=N.a.cloneElement(this.props.nextArrow,Object(n.a)(Object(n.a)({},i),l)):v=N.a.createElement("button",Object(Y.a)({key:"1",type:"button"},i)," ","Next"),v}}]),o}(N.a.PureComponent),wt=r("bdgK"),Nt=function(x){Object(ee.a)(o,x);var t=Object(G.a)(o);function o(p){var e;Object(X.a)(this,o),e=t.call(this,p),Object(S.a)(Object(D.a)(e),"listRefHandler",function(i){return e.list=i}),Object(S.a)(Object(D.a)(e),"trackRefHandler",function(i){return e.track=i}),Object(S.a)(Object(D.a)(e),"adaptHeight",function(){if(e.props.adaptiveHeight&&e.list){var i=e.list.querySelector('[data-index="'.concat(e.state.currentSlide,'"]'));e.list.style.height=u(i)+"px"}}),Object(S.a)(Object(D.a)(e),"componentDidMount",function(){if(e.props.onInit&&e.props.onInit(),e.props.lazyLoad){var i=g(Object(n.a)(Object(n.a)({},e.props),e.state));i.length>0&&(e.setState(function(v){return{lazyLoadedList:v.lazyLoadedList.concat(i)}}),e.props.onLazyLoad&&e.props.onLazyLoad(i))}var l=Object(n.a)({listRef:e.list,trackRef:e.track},e.props);e.updateState(l,!0,function(){e.adaptHeight(),e.props.autoplay&&e.autoPlay("playing")}),e.props.lazyLoad==="progressive"&&(e.lazyLoadTimer=setInterval(e.progressiveLazyLoad,1e3)),e.ro=new wt.a(function(){e.state.animating?(e.onWindowResized(!1),e.callbackTimers.push(setTimeout(function(){return e.onWindowResized()},e.props.speed))):e.onWindowResized()}),e.ro.observe(e.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),function(v){v.onfocus=e.props.pauseOnFocus?e.onSlideFocus:null,v.onblur=e.props.pauseOnFocus?e.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",e.onWindowResized):window.attachEvent("onresize",e.onWindowResized)}),Object(S.a)(Object(D.a)(e),"componentWillUnmount",function(){e.animationEndCallback&&clearTimeout(e.animationEndCallback),e.lazyLoadTimer&&clearInterval(e.lazyLoadTimer),e.callbackTimers.length&&(e.callbackTimers.forEach(function(i){return clearTimeout(i)}),e.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",e.onWindowResized):window.detachEvent("onresize",e.onWindowResized),e.autoplayTimer&&clearInterval(e.autoplayTimer),e.ro.disconnect()}),Object(S.a)(Object(D.a)(e),"componentDidUpdate",function(i){if(e.checkImagesLoad(),e.props.onReInit&&e.props.onReInit(),e.props.lazyLoad){var l=g(Object(n.a)(Object(n.a)({},e.props),e.state));l.length>0&&(e.setState(function(F){return{lazyLoadedList:F.lazyLoadedList.concat(l)}}),e.props.onLazyLoad&&e.props.onLazyLoad(l))}e.adaptHeight();var v=Object(n.a)(Object(n.a)({listRef:e.list,trackRef:e.track},e.props),e.state),P=e.didPropsChange(i);P&&e.updateState(v,P,function(){e.state.currentSlide>=N.a.Children.count(e.props.children)&&e.changeSlide({message:"index",index:N.a.Children.count(e.props.children)-e.props.slidesToShow,currentSlide:e.state.currentSlide}),(i.autoplay!==e.props.autoplay||i.autoplaySpeed!==e.props.autoplaySpeed)&&(!i.autoplay&&e.props.autoplay?e.autoPlay("playing"):e.props.autoplay?e.autoPlay("update"):e.pause("paused"))})}),Object(S.a)(Object(D.a)(e),"onWindowResized",function(i){e.debouncedResize&&e.debouncedResize.cancel(),e.debouncedResize=M()(function(){return e.resizeWindow(i)},50),e.debouncedResize()}),Object(S.a)(Object(D.a)(e),"resizeWindow",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,l=Boolean(e.track&&e.track.node);if(!l)return;var v=Object(n.a)(Object(n.a)({listRef:e.list,trackRef:e.track},e.props),e.state);e.updateState(v,i,function(){e.props.autoplay?e.autoPlay("update"):e.pause("paused")}),e.setState({animating:!1}),clearTimeout(e.animationEndCallback),delete e.animationEndCallback}),Object(S.a)(Object(D.a)(e),"updateState",function(i,l,v){var P=b(i);i=Object(n.a)(Object(n.a)(Object(n.a)({},i),P),{},{slideIndex:P.currentSlide});var F=_e(i);i=Object(n.a)(Object(n.a)({},i),{},{left:F});var E=V(i);(l||N.a.Children.count(e.props.children)!==N.a.Children.count(i.children))&&(P.trackStyle=E),e.setState(P,v)}),Object(S.a)(Object(D.a)(e),"ssrInit",function(){if(e.props.variableWidth){var i=0,l=0,v=[],P=pe(Object(n.a)(Object(n.a)(Object(n.a)({},e.props),e.state),{},{slideCount:e.props.children.length})),F=Le(Object(n.a)(Object(n.a)(Object(n.a)({},e.props),e.state),{},{slideCount:e.props.children.length}));e.props.children.forEach(function(ke){v.push(ke.props.style.width),i+=ke.props.style.width});for(var E=0;E=l&&e.onWindowResized()};if(!P.onclick)P.onclick=function(){return P.parentNode.focus()};else{var E=P.onclick;P.onclick=function(){E(),P.parentNode.focus()}}P.onload||(e.props.lazyLoad?P.onload=function(){e.adaptHeight(),e.callbackTimers.push(setTimeout(e.onWindowResized,e.props.speed))}:(P.onload=F,P.onerror=function(){F(),e.props.onLazyLoadError&&e.props.onLazyLoadError()}))})}),Object(S.a)(Object(D.a)(e),"progressiveLazyLoad",function(){for(var i=[],l=Object(n.a)(Object(n.a)({},e.props),e.state),v=e.state.currentSlide;v=-pe(l);P--)if(e.state.lazyLoadedList.indexOf(P)<0){i.push(P);break}i.length>0?(e.setState(function(F){return{lazyLoadedList:F.lazyLoadedList.concat(i)}}),e.props.onLazyLoad&&e.props.onLazyLoad(i)):e.lazyLoadTimer&&(clearInterval(e.lazyLoadTimer),delete e.lazyLoadTimer)}),Object(S.a)(Object(D.a)(e),"slideHandler",function(i){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,v=e.props,P=v.asNavFor,F=v.beforeChange,E=v.onLazyLoad,s=v.speed,q=v.afterChange,C=e.state.currentSlide,W=A(Object(n.a)(Object(n.a)(Object(n.a)({index:i},e.props),e.state),{},{trackRef:e.track,useCSS:e.props.useCSS&&!l})),H=W.state,le=W.nextState;if(!H)return;F&&F(C,H.currentSlide);var z=H.lazyLoadedList.filter(function(ae){return e.state.lazyLoadedList.indexOf(ae)<0});E&&z.length>0&&E(z),!e.props.waitForAnimate&&e.animationEndCallback&&(clearTimeout(e.animationEndCallback),q&&q(C),delete e.animationEndCallback),e.setState(H,function(){if(P&&e.asNavForIndex!==i&&(e.asNavForIndex=i,P.innerSlider.slideHandler(i)),!le)return;e.animationEndCallback=setTimeout(function(){var ae=le.animating,J=Object(Q.a)(le,["animating"]);e.setState(J,function(){e.callbackTimers.push(setTimeout(function(){return e.setState({animating:ae})},10)),q&&q(H.currentSlide),delete e.animationEndCallback})},s)})}),Object(S.a)(Object(D.a)(e),"changeSlide",function(i){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,v=Object(n.a)(Object(n.a)({},e.props),e.state),P=c(v,i);if(P!==0&&!P)return;if(l===!0?e.slideHandler(P,l):e.slideHandler(P),e.props.autoplay&&e.autoPlay("update"),e.props.focusOnSelect){var F=e.list.querySelectorAll(".slick-current");F[0]&&F[0].focus()}}),Object(S.a)(Object(D.a)(e),"clickHandler",function(i){e.clickable===!1&&(i.stopPropagation(),i.preventDefault()),e.clickable=!0}),Object(S.a)(Object(D.a)(e),"keyHandler",function(i){var l=f(i,e.props.accessibility,e.props.rtl);l!==""&&e.changeSlide({message:l})}),Object(S.a)(Object(D.a)(e),"selectHandler",function(i){e.changeSlide(i)}),Object(S.a)(Object(D.a)(e),"disableBodyScroll",function(){var i=function(v){v=v||window.event,v.preventDefault&&v.preventDefault(),v.returnValue=!1};window.ontouchmove=i}),Object(S.a)(Object(D.a)(e),"enableBodyScroll",function(){window.ontouchmove=null}),Object(S.a)(Object(D.a)(e),"swipeStart",function(i){e.props.verticalSwiping&&e.disableBodyScroll();var l=$(i,e.props.swipe,e.props.draggable);l!==""&&e.setState(l)}),Object(S.a)(Object(D.a)(e),"swipeMove",function(i){var l=oe(i,Object(n.a)(Object(n.a)(Object(n.a)({},e.props),e.state),{},{trackRef:e.track,listRef:e.list,slideIndex:e.state.currentSlide}));if(!l)return;l.swiping&&(e.clickable=!1),e.setState(l)}),Object(S.a)(Object(D.a)(e),"swipeEnd",function(i){var l=_(i,Object(n.a)(Object(n.a)(Object(n.a)({},e.props),e.state),{},{trackRef:e.track,listRef:e.list,slideIndex:e.state.currentSlide}));if(!l)return;var v=l.triggerSlideHandler;if(delete l.triggerSlideHandler,e.setState(l),v===void 0)return;e.slideHandler(v),e.props.verticalSwiping&&e.enableBodyScroll()}),Object(S.a)(Object(D.a)(e),"touchEnd",function(i){e.swipeEnd(i),e.clickable=!0}),Object(S.a)(Object(D.a)(e),"slickPrev",function(){e.callbackTimers.push(setTimeout(function(){return e.changeSlide({message:"previous"})},0))}),Object(S.a)(Object(D.a)(e),"slickNext",function(){e.callbackTimers.push(setTimeout(function(){return e.changeSlide({message:"next"})},0))}),Object(S.a)(Object(D.a)(e),"slickGoTo",function(i){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(i=Number(i),isNaN(i))return"";e.callbackTimers.push(setTimeout(function(){return e.changeSlide({message:"index",index:i,currentSlide:e.state.currentSlide},l)},0))}),Object(S.a)(Object(D.a)(e),"play",function(){var i;if(e.props.rtl)i=e.state.currentSlide-e.props.slidesToScroll;else if(T(Object(n.a)(Object(n.a)({},e.props),e.state)))i=e.state.currentSlide+e.props.slidesToScroll;else return!1;e.slideHandler(i)}),Object(S.a)(Object(D.a)(e),"autoPlay",function(i){e.autoplayTimer&&clearInterval(e.autoplayTimer);var l=e.state.autoplaying;if(i==="update"){if(l==="hovered"||l==="focused"||l==="paused")return}else if(i==="leave"){if(l==="paused"||l==="focused")return}else if(i==="blur"&&(l==="paused"||l==="hovered"))return;e.autoplayTimer=setInterval(e.play,e.props.autoplaySpeed+50),e.setState({autoplaying:"playing"})}),Object(S.a)(Object(D.a)(e),"pause",function(i){e.autoplayTimer&&(clearInterval(e.autoplayTimer),e.autoplayTimer=null);var l=e.state.autoplaying;i==="paused"?e.setState({autoplaying:"paused"}):i==="focused"?(l==="hovered"||l==="playing")&&e.setState({autoplaying:"focused"}):l==="playing"&&e.setState({autoplaying:"hovered"})}),Object(S.a)(Object(D.a)(e),"onDotsOver",function(){return e.props.autoplay&&e.pause("hovered")}),Object(S.a)(Object(D.a)(e),"onDotsLeave",function(){return e.props.autoplay&&e.state.autoplaying==="hovered"&&e.autoPlay("leave")}),Object(S.a)(Object(D.a)(e),"onTrackOver",function(){return e.props.autoplay&&e.pause("hovered")}),Object(S.a)(Object(D.a)(e),"onTrackLeave",function(){return e.props.autoplay&&e.state.autoplaying==="hovered"&&e.autoPlay("leave")}),Object(S.a)(Object(D.a)(e),"onSlideFocus",function(){return e.props.autoplay&&e.pause("focused")}),Object(S.a)(Object(D.a)(e),"onSlideBlur",function(){return e.props.autoplay&&e.state.autoplaying==="focused"&&e.autoPlay("blur")}),Object(S.a)(Object(D.a)(e),"render",function(){var i=Oe()("slick-slider",e.props.className,{"slick-vertical":e.props.vertical,"slick-initialized":!0}),l=Object(n.a)(Object(n.a)({},e.props),e.state),v=K(l,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),P=e.props.pauseOnHover;v=Object(n.a)(Object(n.a)({},v),{},{onMouseEnter:P?e.onTrackOver:null,onMouseLeave:P?e.onTrackLeave:null,onMouseOver:P?e.onTrackOver:null,focusOnSelect:e.props.focusOnSelect&&e.clickable?e.selectHandler:null});var F;if(e.props.dots===!0&&e.state.slideCount>=e.props.slidesToShow){var E=K(l,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),s=e.props.pauseOnDotsHover;E=Object(n.a)(Object(n.a)({},E),{},{clickHandler:e.changeSlide,onMouseEnter:s?e.onDotsLeave:null,onMouseOver:s?e.onDotsOver:null,onMouseLeave:s?e.onDotsLeave:null}),F=N.a.createElement(mt,E)}var q,C,W=K(l,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);W.clickHandler=e.changeSlide,e.props.arrows&&(q=N.a.createElement(Et,W),C=N.a.createElement(vt,W));var H=null;e.props.vertical&&(H={height:e.state.listHeight});var le=null;e.props.vertical===!1?e.props.centerMode===!0&&(le={padding:"0px "+e.props.centerPadding}):e.props.centerMode===!0&&(le={padding:e.props.centerPadding+" 0px"});var z=Object(n.a)(Object(n.a)({},H),le),ae=e.props.touchMove,J={className:"slick-list",style:z,onClick:e.clickHandler,onMouseDown:ae?e.swipeStart:null,onMouseMove:e.state.dragging&&ae?e.swipeMove:null,onMouseUp:ae?e.swipeEnd:null,onMouseLeave:e.state.dragging&&ae?e.swipeEnd:null,onTouchStart:ae?e.swipeStart:null,onTouchMove:e.state.dragging&&ae?e.swipeMove:null,onTouchEnd:ae?e.touchEnd:null,onTouchCancel:e.state.dragging&&ae?e.swipeEnd:null,onKeyDown:e.props.accessibility?e.keyHandler:null},me={className:i,dir:"ltr",style:e.props.style};return e.props.unslick&&(J={className:"slick-list"},me={className:i}),N.a.createElement("div",me,e.props.unslick?"":q,N.a.createElement("div",Object(Y.a)({ref:e.listRefHandler},J),N.a.createElement(We,Object(Y.a)({ref:e.trackRefHandler},v),e.props.children)),e.props.unslick?"":C,e.props.unslick?"":F)}),e.list=null,e.track=null,e.state=Object(n.a)(Object(n.a)({},Ue),{},{currentSlide:e.props.initialSlide,slideCount:N.a.Children.count(e.props.children)}),e.callbackTimers=[],e.clickable=!0,e.debouncedResize=null;var d=e.ssrInit();return e.state=Object(n.a)(Object(n.a)({},e.state),d),e}return Object(te.a)(o,[{key:"didPropsChange",value:function(e){for(var d=!1,i=0,l=Object.keys(this.props);i1&&arguments[1]!==void 0?arguments[1]:!1;return e.innerSlider.slickGoTo(d,i)}),Object(S.a)(Object(D.a)(e),"slickPause",function(){return e.innerSlider.pause("paused")}),Object(S.a)(Object(D.a)(e),"slickPlay",function(){return e.innerSlider.autoPlay("play")}),e.state={breakpoint:null},e._responsiveMediaHandlers=[],e}return Object(te.a)(o,[{key:"media",value:function(e,d){var i=window.matchMedia(e),l=function(P){var F=P.matches;F&&d()};i.addListener(l),l(i),this._responsiveMediaHandlers.push({mql:i,query:e,listener:l})}},{key:"componentDidMount",value:function(){var e=this;if(this.props.responsive){var d=this.props.responsive.map(function(l){return l.breakpoint});d.sort(function(l,v){return l-v}),d.forEach(function(l,v){var P;v===0?P=At()({minWidth:0,maxWidth:l}):P=At()({minWidth:d[v-1]+1,maxWidth:l}),tt()&&e.media(P,function(){e.setState({breakpoint:l})})});var i=At()({minWidth:d.slice(-1)[0]});tt()&&this.media(i,function(){e.setState({breakpoint:null})})}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach(function(e){e.mql.removeListener(e.listener)})}},{key:"render",value:function(){var e=this,d,i;this.state.breakpoint?(i=this.props.responsive.filter(function(H){return H.breakpoint===e.state.breakpoint}),d=i[0].settings==="unslick"?"unslick":Object(n.a)(Object(n.a)(Object(n.a)({},Xt),this.props),i[0].settings)):d=Object(n.a)(Object(n.a)({},Xt),this.props),d.centerMode&&(d.slidesToScroll>1&&!1&&console.warn("slidesToScroll should be equal to 1 in centerMode, you are using ".concat(d.slidesToScroll)),d.slidesToScroll=1),d.fade&&(d.slidesToShow>1&&!1&&console.warn("slidesToShow should be equal to 1 when fade is true, you're using ".concat(d.slidesToShow)),d.slidesToScroll>1&&!1&&console.warn("slidesToScroll should be equal to 1 when fade is true, you're using ".concat(d.slidesToScroll)),d.slidesToShow=1,d.slidesToScroll=1);var l=N.a.Children.toArray(this.props.children);l=l.filter(function(H){return typeof H=="string"?!!H.trim():!!H}),d.variableWidth&&(d.rows>1||d.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),d.variableWidth=!1);for(var v=[],P=null,F=0;F=l.length);C+=1)q.push(N.a.cloneElement(l[C],{key:100*F+10*s+C,tabIndex:-1,style:{width:"".concat(100/d.slidesPerRow,"%"),display:"inline-block"}}));E.push(N.a.createElement("div",{key:10*F+s},q))}d.variableWidth?v.push(N.a.createElement("div",{key:F,style:{width:P}},E)):v.push(N.a.createElement("div",{key:F},E))}if(d==="unslick"){var W="regular slider "+(this.props.className||"");return N.a.createElement("div",{className:W},l)}else v.length<=d.slidesToShow&&(d.unslick=!0);return N.a.createElement(Nt,Object(Y.a)({style:this.props.style,ref:this.innerSliderRefHandler},d),v)}}]),o}(N.a.Component),ye=na,st=r("H84U"),Ge=function(x,t){var o={};for(var p in x)Object.prototype.hasOwnProperty.call(x,p)&&t.indexOf(p)<0&&(o[p]=x[p]);if(x!=null&&typeof Object.getOwnPropertySymbols=="function")for(var e=0,p=Object.getOwnPropertySymbols(x);e1&&arguments[1]!==void 0?arguments[1]:!1;W.current.slickGoTo(Ee,xe)};k.useImperativeHandle(t,function(){return{goTo:H,autoPlay:W.current.innerSlider.autoPlay,innerSlider:W.current.innerSlider,prev:W.current.slickPrev,next:W.current.slickNext}},[W.current]),k.useEffect(function(){var Ne=function(){var Ke=E.autoplay;Ke&&W.current&&W.current.innerSlider&&W.current.innerSlider.autoPlay&&W.current.innerSlider.autoPlay()},Ee=M()(Ne,500,{leading:!1});return E.autoplay&&window.addEventListener("resize",Ee),function(){E.autoplay&&(window.removeEventListener("resize",Ee),Ee.cancel())}},[W.current,E.autoplay]);var le=k.useRef(k.Children.count(E.children));k.useEffect(function(){le.current!==k.Children.count(E.children)&&(H(E.initialSlide||0,!1),le.current=k.Children.count(E.children))},[E.children]);var z=Object(Y.a)({},E);z.effect==="fade"&&(z.fade=!0);var ae=q("carousel",z.prefixCls),J="slick-dots";z.vertical=F==="left"||F==="right";var me=!!e,se=Oe()(J,"".concat(J,"-").concat(F),typeof e=="boolean"?!1:e==null?void 0:e.className),ke=Oe()(ae,(o={},Object(S.a)(o,"".concat(ae,"-rtl"),C==="rtl"),Object(S.a)(o,"".concat(ae,"-vertical"),z.vertical),o));return k.createElement("div",{className:ke},k.createElement(ye,Object(Y.a)({ref:W},z,{dots:me,dotsClass:se,arrows:i,draggable:v})))}),_t=I.a=Je},"6/k+":function(Be,I,r){},"7ahc":function(Be,I,r){"use strict";r.d(I,"a",function(){return g});var S=r("XEnU"),Y=r("IIKO"),k=r("+L6B"),N=r("2/Rp"),Z=r("y8nQ"),M=r("Vl3Y"),n=r("k16G"),X=r("OaEy"),te=r("2fM7"),D=r("q1tI"),ee=r.n(D),G=r("VrN/"),ie=r.n(G),Q=r("p77/"),be=r.n(Q),Ue=r("c5Ni"),ne=r.n(Ue),Oe=te.a.Option,Xe={labelCol:{span:4},wrapperCol:{span:20}},He={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};I.b=function(h){var a=h.callback,Ae=h.onCancel,re=Object(D.useState)("python"),Se=Object(n.a)(re,2),Re=Se[0],u=Se[1];function m(K){u(He[K][1])}function T(K){a(K)}return ee.a.createElement(M.a,Object(Y.a)({},Xe,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:T}),ee.a.createElement(M.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ee.a.createElement(te.a,{onChange:m},Object.keys(He).map(function(K){return ee.a.createElement(Oe,{key:K,value:K},He[K][0])}))),ee.a.createElement(M.a.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ee.a.createElement(g,{mode:Re})),ee.a.createElement("div",{className:"flex-container flex-end"},ee.a.createElement(N.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ee.a.createElement(N.a,{type:"ghost",onClick:Ae},"\u53D6\u6D88")))};function g(h){var a=h.value,Ae=h.onChange,re=h.mode,Se=h.options,Re=Se===void 0?{}:Se,u=Object(D.useRef)(),m=Object(D.useState)(),T=Object(n.a)(m,2),K=T[0],b=T[1];return Object(D.useEffect)(function(){if(K){var A=function(f){var $=f.getValue();Ae&&Ae($)};return K.on("change",A),function(){K.off("change",A)}}},[K,Ae]),Object(D.useEffect)(function(){K&&K.setOption("mode",re)},[K,re]),Object(D.useEffect)(function(){K&&((a!==K.getValue()||a==="")&&setTimeout(function(){K.setValue(a||" ")},300))},[K,a]),Object(D.useEffect)(function(){if(u.current&&!K){var A=ie.a.fromTextArea(u.current,Object(S.a)({mode:re,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Re));b(A)}},[u.current,K]),ee.a.createElement("div",{className:"my-codemirror-container"},ee.a.createElement("textarea",{ref:u}))}},"8N4D":function(Be,I,r){"use strict";function S(u){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?S=function(T){return typeof T}:S=function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},S(u)}Object.defineProperty(I,"__esModule",{value:!0}),I.matchesSelector=D,I.matchesSelectorAndParentsTo=ee,I.addEvent=G,I.removeEvent=ie,I.outerHeight=Q,I.outerWidth=be,I.innerHeight=Ue,I.innerWidth=ne,I.offsetXYFromParent=Oe,I.createCSSTransform=Xe,I.createSVGTransform=He,I.getTranslation=g,I.getTouch=h,I.getTouchIdentifier=a,I.addUserSelectStyles=Ae,I.removeUserSelectStyles=re,I.addClassName=Se,I.removeClassName=Re;var Y=r("gbW8"),k=Z(r("Ga4A"));function N(u){if(typeof WeakMap!="function")return null;var m=new WeakMap,T=new WeakMap;return(N=function(b){return b?T:m})(u)}function Z(u,m){if(!m&&u&&u.__esModule)return u;if(u===null||S(u)!=="object"&&typeof u!="function")return{default:u};var T=N(m);if(T&&T.has(u))return T.get(u);var K={},b=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var A in u)if(A!=="default"&&Object.prototype.hasOwnProperty.call(u,A)){var c=b?Object.getOwnPropertyDescriptor(u,A):null;c&&(c.get||c.set)?Object.defineProperty(K,A,c):K[A]=u[A]}return K.default=u,T&&T.set(u,K),K}function M(u,m){var T=Object.keys(u);if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(u);m&&(K=K.filter(function(b){return Object.getOwnPropertyDescriptor(u,b).enumerable})),T.push.apply(T,K)}return T}function n(u){for(var m=1;m=oe.length?_.slice(oe.length):_}).join(` `)}var te=[],D=["
    "],ee=new M.a.Renderer,G=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function ie(){te.length=0,D=["
      "]}function Q(c,f,$,oe){if(f>=c.length||c[f].level<=$)return f;var _=c[f];oe.push("
    • "+_.text+""),f++;var y=[];return f=Q(c,f,_.level,y),y.length>0&&(oe.push("
        "),y.forEach(function(j){oe.push(j)}),oe.push("
      ")),oe.push("
    • "),f=Q(c,f,$,oe),f}function be(){return Q(te,0,0,D),D.push("
    "),D.join("")}var Ue={heading:function(f){var $=G.exec(f);if($)return{type:"heading",raw:$[0],depth:$[1].length,text:$[2]}},fences:function(f){var $=this.rules.block.fences.exec(f);if($){var oe=$[0],_=X(oe,$[3]||""),y=$[2]?$[2].trim():$[2];if(["latex","katex","math"].indexOf(y)>=0){var j=Xe(),U=_;_=j,He[j]={type:"block",expression:U}}return{type:"code",raw:oe,lang:y,text:_}}}},ne=/(?:\${2})([^\n`]+?)(?:\${2})/gi,Oe=0,Xe=function(){return"__special_katext_id_".concat(Oe++,"__")},He={};function g(){return He}function h(){Oe=0,He={}}function a(c){return c=c.replace(ne,function(f,$){var oe=Xe();return He[oe]={type:"inline",expression:$},oe}),c}var Ae=ee.listitem;ee.listitem=function(c){return Ae(a(c))};var re=ee.paragraph;ee.paragraph=function(c){return re(a(c))};var Se=ee.tablecell;ee.tablecell=function(c,f){return Se(a(c),f)},ee.code=function(c,f,$){var oe=(f||"").match(/\S*/)[0];return oe?["latex","katex","math"].indexOf(oe)>=0?"

    ".concat(c,"

    "):'
    ').concat($?c:Object(n.escape)(c,!0),`
    -`):'
    '+($?c:Object(n.escape)(c,!0))+"
    "},ee.heading=function(c,f,$){var oe=this.options.headerPrefix+$.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return te.push({anchor:oe,level:f,text:c}),"'+c+""},M.a.setOptions({silent:!0,smartypants:!0,gfm:!0,pedantic:!1}),M.a.use({tokenizer:Ue,renderer:ee});var xe=M.a,u=r("SJMd"),m=r("m3rI"),T=r("Oy/b"),K=/]*>/g;function b(c){var f=document.createElement("div");return f.innerHTML=c,f.childNodes.length===0?"":f.childNodes[0].nodeValue}var A=I.a=function(c){var f=c.value,$=f===void 0?"":f,oe=c.className,_=c.style,y=_===void 0?{}:_,j=String($),U=Object(w.useMemo)(function(){try{var ve=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,_e=/\"\/api\/attachments\/|\"\/attachments\/download\//g,pe=/\(\s+\/files\/uploads\/|\(\/files\/uploads\//g;j=j.replace(ve,"("+m.a.API_SERVER+"/api/attachments/").replace(_e,'"'+m.a.API_SERVER+"/api/attachments/").replace(pe,'"'+m.a.API_SERVER+"/files/uploads/")}catch(et){}var Le=xe(j),dt=g();return j.match(/\[TOC\]/)&&(Le=Le.replace("

    [TOC]

    ",be()),ie()),Le=Le.replace(/(__special_katext_id_\d+__)/g,function(et,lt){var gt=dt[lt],tt=gt.type,$e=gt.expression;return Object(T.renderToString)(b($e)||"",{displayMode:tt==="block",throwOnError:!1,output:"html"})}),Le=Le.replace(/▁/g,"\u2581\u2581\u2581"),h(),Le},[j]),L=Object(w.useRef)();function V(ve){var _e=ve.target;if(_e.tagName.toUpperCase()==="A"){var pe=_e.getAttribute("href");if(pe.startsWith("#")){ve.preventDefault();var Le=document.getElementById(pe.replace("#",""));Le&&Le.scrollIntoView(!0)}}}return Object(w.useEffect)(function(){if(L.current&&U&&(U.match(K)&&window.PR.prettyPrint()),L.current)return L.current.addEventListener("click",V),function(){L.current.removeEventListener("click",V),h(),ie()}},[U,L.current,V]),Y.a.createElement("div",{ref:L,style:y,className:"".concat(oe||""," markdown-body"),dangerouslySetInnerHTML:{__html:U}})}},"9VGf":function(Be,I,r){"use strict";r.d(I,"a",function(){return k});var w=r("q1tI"),Y=r.n(w);function k(N,Z){var M=Object(w.useRef)();Object(w.useEffect)(function(){M.current=N}),Object(w.useEffect)(function(){function n(){M.current()}if(Z!==null){var X=setInterval(n,Z);return function(){return clearInterval(X)}}},[Z])}},BJfS:function(Be,I){var r=function(Y){return Y.replace(/[A-Z]/g,function(k){return"-"+k.toLowerCase()}).toLowerCase()};Be.exports=r},BjJ7:function(Be,I,r){"use strict";r.d(I,"d",function(){return Y}),r.d(I,"c",function(){return k}),r.d(I,"e",function(){return N}),r.d(I,"b",function(){return Z}),r.d(I,"a",function(){return n});var w=r("m3rI");function Y(X){var te=!0;if(X.length>0){for(var D=0;D1&&arguments[1]!==void 0?arguments[1]:"",D=[],ee=0;ee0&&(gt(),et(1))},[Xe,$]),Object(n.useEffect)(function(){if(dt===0)return;if(dt===2)clearInterval(ve);else{var ze=0,We=setInterval(function(){b.includes(ze)&&$e(),ze++},1e3);_e(We)}return function(){return clearInterval(ve)}},[dt]),Object(n.useImperativeHandle)(Oe,function(){return{handlePhoto:$e}});var lt=function(){et(2)},gt=function(){var We=Xe/He,at=[];function mt(Et,vt){return parseInt(Math.floor(Math.random()*(vt-Et+1))+Et)}new Array(He).fill(0).map(function(Et,vt){h?at.push(mt(We*vt,We*(vt+1))):vt==0?at.push(0):at.push(mt(We*vt,We*(vt+1)))}),b=at,A([].concat(at)),console.log(at)},tt=function(){navigator.mediaDevices===void 0&&(navigator.mediaDevices={}),navigator.mediaDevices.getUserMedia===void 0&&(navigator.mediaDevices.getUserMedia=function(We){var at=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia;return at?new Promise(function(mt,Et){at.call(navigator,We,mt,Et)}):Promise.reject(new Error("getUserMedia is not implemented in this browser"))}),navigator.mediaDevices.getUserMedia({video:{width:1280,height:720}}).then(function(We){g&&g(2),oe(2),"srcObject"in xe.current?xe.current.srcObject=We:xe.current.src=window.URL.createObjectURL(We),xe.current.onloadedmetadata=function(at){xe.current.play()},xe.current.addEventListener("ended",function(){console.log("\u64AD\u653E\u7ED3\u675F"),lt(),k.b.error({content:"\u60A8\u5DF2\u7ECF\u5173\u95ED\u4E86\u6444\u50CF\u5934\uFF0C\u8BF7\u572810\u79D2\u949F\u5185\u6062\u590D\u6444\u50CF\u5934\uFF0C\u5426\u5219\u5C06\u63A8\u51FA\u8003\u8BD5",duration:10,key:9998})},!1)}).catch(function(We){oe(1),g&&g(1),We.message==="Permission denied"||We.name==="NotAllowedError"?k.b.error("\u60A8\u5DF2\u62D2\u7EDD\u4E86\u83B7\u53D6\u6444\u50CF\u5934"):k.b.error("\u6444\u50CF\u5934\u83B7\u53D6\u5931\u8D25\uFF0C\u6216\u60A8\u5DF2\u62D2\u7EDD\u4E86\u83B7\u53D6\u6444\u50CF\u5934"),console.log("errname: "+We.name),console.log("err: "+We.message)})},$e=function(){try{u.current.width=xe.current.videoWidth,u.current.height=xe.current.videoHeight;var We=u.current.getContext("2d");We.drawImage(xe.current,0,0,u.current.width,u.current.height),U(u.current.toDataURL("image/png")),Ct(u.current.toDataURL("image/png"))}catch(at){debugger}},kt=function(){try{var We=xe.current.srcObject,at=We.getTracks();at.forEach(function(mt){mt.stop()}),xe.current.srcObject=null}catch(mt){}},Ct=function(){var ze=Object(w.a)(M.a.mark(function We(at){var mt,Et,vt,wt;return M.a.wrap(function(Dt){for(;;)switch(Dt.prev=Dt.next){case 0:return mt=Object(ee.a)(),Et=be(at,mt),vt=new FormData,vt.append("file",Et),Dt.next=6,Object(D.a)("/api/attachments.json",{method:"post",body:vt},!0);case 6:if(wt=Dt.sent,console.log(wt,"result"),!(wt!=null&&wt.id)){Dt.next=11;break}return Dt.next=11,Object(D.a)("/api/students/exercises/".concat(Se.categoryId,"/save_photo.json"),{method:"post",body:{attachment_id:wt==null?void 0:wt.id}});case 11:case"end":return Dt.stop()}},We)}));return function(at){return ze.apply(this,arguments)}}();return X.a.createElement(X.a.Fragment,null,$!==3&&X.a.createElement("aside",{className:ie.a.video,id:"screenshot"},$===0&&X.a.createElement("span",null,"\u6B63\u5728\u5F00\u542F\u6444\u50CF\u5934..."),$===1&&X.a.createElement("span",null,"\u6444\u50CF\u5934\u5F00\u542F\u5931\u8D25"),$===2&&X.a.createElement("div",null,X.a.createElement("video",{width:re,ref:xe,autoPlay:!0}),X.a.createElement("canvas",{style:{display:"none"},ref:u}))))});I.a=Ue},"C+DQ":function(Be,I,r){},DR4n:function(Be,I,r){Be.exports={flex_box_center:"flex_box_center___2zmmW",flex_space_between:"flex_space_between___3nCIw",flex_box_vertical_center:"flex_box_vertical_center___1PFij",flex_box_center_end:"flex_box_center_end___2FA05",flex_box_column:"flex_box_column___2k0kx",video:"video___1mYnG"}},Ga4A:function(Be,I,r){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.getPrefix=Y,I.browserPrefixToKey=k,I.browserPrefixToStyle=N,I.default=void 0;var w=["Moz","Webkit","O","ms"];function Y(){var n,X,te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window=="undefined")return"";var D=(n=window.document)===null||n===void 0||((X=n.documentElement)===null||X===void 0)?void 0:X.style;if(!D)return"";if(te in D)return"";for(var ee=0;ee'+($?c:Object(n.escape)(c,!0))+""},ee.heading=function(c,f,$){var oe=this.options.headerPrefix+$.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return te.push({anchor:oe,level:f,text:c}),"'+c+""},M.a.setOptions({silent:!0,smartypants:!0,gfm:!0,pedantic:!1}),M.a.use({tokenizer:Ue,renderer:ee});var Re=M.a,u=r("SJMd"),m=r("m3rI"),T=r("Oy/b"),K=/]*>/g;function b(c){var f=document.createElement("div");return f.innerHTML=c,f.childNodes.length===0?"":f.childNodes[0].nodeValue}var A=I.a=function(c){var f=c.value,$=f===void 0?"":f,oe=c.className,_=c.style,y=_===void 0?{}:_,j=String($),U=Object(S.useMemo)(function(){try{var ve=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,_e=/\"\/api\/attachments\/|\"\/attachments\/download\//g,pe=/\(\s+\/files\/uploads\/|\(\/files\/uploads\//g;j=j.replace(ve,"("+m.a.API_SERVER+"/api/attachments/").replace(_e,'"'+m.a.API_SERVER+"/api/attachments/").replace(pe,'"'+m.a.API_SERVER+"/files/uploads/")}catch(et){}var Le=Re(j),dt=g();return j.match(/\[TOC\]/)&&(Le=Le.replace("

    [TOC]

    ",be()),ie()),Le=Le.replace(/(__special_katext_id_\d+__)/g,function(et,lt){var gt=dt[lt],tt=gt.type,$e=gt.expression;return Object(T.renderToString)(b($e)||"",{displayMode:tt==="block",throwOnError:!1,output:"html"})}),Le=Le.replace(/▁/g,"\u2581\u2581\u2581"),h(),Le},[j]),L=Object(S.useRef)();function V(ve){var _e=ve.target;if(_e.tagName.toUpperCase()==="A"){var pe=_e.getAttribute("href");if(pe.startsWith("#")){ve.preventDefault();var Le=document.getElementById(pe.replace("#",""));Le&&Le.scrollIntoView(!0)}}}return Object(S.useEffect)(function(){if(L.current&&U&&(U.match(K)&&window.PR.prettyPrint()),L.current)return L.current.addEventListener("click",V),function(){L.current.removeEventListener("click",V),h(),ie()}},[U,L.current,V]),Y.a.createElement("div",{ref:L,style:y,className:"".concat(oe||""," markdown-body"),dangerouslySetInnerHTML:{__html:U}})}},"9VGf":function(Be,I,r){"use strict";r.d(I,"a",function(){return k});var S=r("q1tI"),Y=r.n(S);function k(N,Z){var M=Object(S.useRef)();Object(S.useEffect)(function(){M.current=N}),Object(S.useEffect)(function(){function n(){M.current()}if(Z!==null){var X=setInterval(n,Z);return function(){return clearInterval(X)}}},[Z])}},BJfS:function(Be,I){var r=function(Y){return Y.replace(/[A-Z]/g,function(k){return"-"+k.toLowerCase()}).toLowerCase()};Be.exports=r},BjJ7:function(Be,I,r){"use strict";r.d(I,"d",function(){return Y}),r.d(I,"c",function(){return k}),r.d(I,"e",function(){return N}),r.d(I,"b",function(){return Z}),r.d(I,"a",function(){return n});var S=r("m3rI");function Y(X){var te=!0;if(X.length>0){for(var D=0;D1&&arguments[1]!==void 0?arguments[1]:"",D=[],ee=0;ee0&&(gt(),et(1))},[Xe,$]),Object(n.useEffect)(function(){if(dt===0)return;if(dt===2)clearInterval(ve);else{var ze=0,We=setInterval(function(){b.includes(ze)&&$e(),ze++},1e3);_e(We)}return function(){return clearInterval(ve)}},[dt]),Object(n.useImperativeHandle)(Oe,function(){return{handlePhoto:$e}});var lt=function(){et(2)},gt=function(){var We=Xe/He,at=[];function mt(Et,vt){return parseInt(Math.floor(Math.random()*(vt-Et+1))+Et)}new Array(He).fill(0).map(function(Et,vt){h?at.push(mt(We*vt,We*(vt+1))):vt==0?at.push(0):at.push(mt(We*vt,We*(vt+1)))}),b=at,A([].concat(at)),console.log(at)},tt=function(){navigator.mediaDevices===void 0&&(navigator.mediaDevices={}),navigator.mediaDevices.getUserMedia===void 0&&(navigator.mediaDevices.getUserMedia=function(We){var at=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia;return at?new Promise(function(mt,Et){at.call(navigator,We,mt,Et)}):Promise.reject(new Error("getUserMedia is not implemented in this browser"))}),navigator.mediaDevices.getUserMedia({video:{width:1280,height:720}}).then(function(We){g&&g(2),oe(2),"srcObject"in Re.current?Re.current.srcObject=We:Re.current.src=window.URL.createObjectURL(We),Re.current.onloadedmetadata=function(at){Re.current.play()},Re.current.addEventListener("ended",function(){console.log("\u64AD\u653E\u7ED3\u675F"),lt(),k.b.error({content:"\u60A8\u5DF2\u7ECF\u5173\u95ED\u4E86\u6444\u50CF\u5934\uFF0C\u8BF7\u572810\u79D2\u949F\u5185\u6062\u590D\u6444\u50CF\u5934\uFF0C\u5426\u5219\u5C06\u63A8\u51FA\u8003\u8BD5",duration:10,key:9998})},!1)}).catch(function(We){oe(1),g&&g(1),We.message==="Permission denied"||We.name==="NotAllowedError"?k.b.error("\u60A8\u5DF2\u62D2\u7EDD\u4E86\u83B7\u53D6\u6444\u50CF\u5934"):k.b.error("\u6444\u50CF\u5934\u83B7\u53D6\u5931\u8D25\uFF0C\u6216\u60A8\u5DF2\u62D2\u7EDD\u4E86\u83B7\u53D6\u6444\u50CF\u5934"),console.log("errname: "+We.name),console.log("err: "+We.message)})},$e=function(){try{u.current.width=Re.current.videoWidth,u.current.height=Re.current.videoHeight;var We=u.current.getContext("2d");We.drawImage(Re.current,0,0,u.current.width,u.current.height),U(u.current.toDataURL("image/png")),Ct(u.current.toDataURL("image/png"))}catch(at){debugger}},kt=function(){try{var We=Re.current.srcObject,at=We.getTracks();at.forEach(function(mt){mt.stop()}),Re.current.srcObject=null}catch(mt){}},Ct=function(){var ze=Object(S.a)(M.a.mark(function We(at){var mt,Et,vt,wt;return M.a.wrap(function(Dt){for(;;)switch(Dt.prev=Dt.next){case 0:return mt=Object(ee.a)(),Et=be(at,mt),vt=new FormData,vt.append("file",Et),Dt.next=6,Object(D.a)("/api/attachments.json",{method:"post",body:vt},!0);case 6:if(wt=Dt.sent,console.log(wt,"result"),!(wt!=null&&wt.id)){Dt.next=11;break}return Dt.next=11,Object(D.a)("/api/students/exercises/".concat(Se.categoryId,"/save_photo.json"),{method:"post",body:{attachment_id:wt==null?void 0:wt.id}});case 11:case"end":return Dt.stop()}},We)}));return function(at){return ze.apply(this,arguments)}}();return X.a.createElement(X.a.Fragment,null,$!==3&&X.a.createElement("aside",{className:ie.a.video,id:"screenshot"},$===0&&X.a.createElement("span",null,"\u6B63\u5728\u5F00\u542F\u6444\u50CF\u5934..."),$===1&&X.a.createElement("span",null,"\u6444\u50CF\u5934\u5F00\u542F\u5931\u8D25"),$===2&&X.a.createElement("div",null,X.a.createElement("video",{width:re,ref:Re,autoPlay:!0}),X.a.createElement("canvas",{style:{display:"none"},ref:u}))))});I.a=Ue},"C+DQ":function(Be,I,r){},DR4n:function(Be,I,r){Be.exports={flex_box_center:"flex_box_center___2zmmW",flex_space_between:"flex_space_between___3nCIw",flex_box_vertical_center:"flex_box_vertical_center___1PFij",flex_box_center_end:"flex_box_center_end___2FA05",flex_box_column:"flex_box_column___2k0kx",video:"video___1mYnG"}},Ga4A:function(Be,I,r){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.getPrefix=Y,I.browserPrefixToKey=k,I.browserPrefixToStyle=N,I.default=void 0;var S=["Moz","Webkit","O","ms"];function Y(){var n,X,te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window=="undefined")return"";var D=(n=window.document)===null||n===void 0||((X=n.documentElement)===null||X===void 0)?void 0:X.style;if(!D)return"";if(te in D)return"";for(var ee=0;ee=0,At=Dt?"Cmd":"Ctrl",Ht=(ze={},Object(Z.a)(ze,At+"-B","bold"),Object(Z.a)(ze,At+"-I","italic"),ze),Xt=(We={},Object(Z.a)(We,et,"\u6DFB\u52A0\u94FE\u63A5"),Object(Z.a)(We,gt,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(Z.a)(We,lt,"\u6DFB\u52A0\u56FE\u7247"),Object(Z.a)(We,tt,"\u6DFB\u52A0\u8868\u683C"),We),na=I.a=function(ye){var st=ye.defaultValue,Ge=st===void 0?"":st,Je=ye.onChange,_t=ye.width,x=_t===void 0?"100%":_t,t=ye.height,o=t===void 0?400:t,p=ye.miniToolbar,e=p===void 0?!1:p,d=ye.isFocus,i=d===void 0?!1:d,l=ye.watch,v=ye.insertTemp,P=ye.id,F=P===void 0?"markdown-editor-id":P,E=ye.showResizeBar,s=E===void 0?!1:E,q=ye.noStorage,C=q===void 0?!1:q,W=ye.showNullButton,H=W===void 0?!1:W,le=ye.fullScreen,z=le===void 0?!1:le,ae=ye.onBlur,J=ye.onCMBeforeChange,me=ye.className,se=me===void 0?"":me,ke=ye.placeholder,Ne=ke===void 0?"":ke,Ee=ye.values,Pe=Ee===void 0?"":Ee,Ke=Object(M.useState)(null),we=Object(N.a)(Ke,2),O=we[0],Rt=we[1],xt=Object(M.useState)(Ge),rt=Object(N.a)(xt,2),it=rt[0],bt=rt[1],yt=Object(M.useState)(l),Ce=Object(N.a)(yt,2),S=Ce[0],Ie=Ce[1],je=Object(M.useState)(z),Ot=Object(N.a)(je,2),Ve=Ot[0],Ut=Ot[1],nt=Object(M.useState)(""),Te=Object(N.a)(nt,2),ut=Te[0],Qe=Te[1],Lt=Object(M.useState)(0),Pt=Object(N.a)(Lt,2),qt=Pt[0],ra=Pt[1],ca=Object(M.useState)(o),pa=Object(N.a)(ca,2),fa=pa[0],ma=pa[1],va=Object(M.useState)(!1),ha=Object(N.a)(va,2),Ea=ha[0],ia=ha[1],zt=Object(M.useRef)(),fe=Object(M.useRef)(),It=Object(M.useRef)(),ea=Object(M.useRef)();Object(M.useEffect)(function(){bt(Pe),O==null||O.setValue(Pe)},[Pe]),Object(M.useEffect)(function(){if(zt.current){var Me=function(Ze,Ye){var ot=Ye.clipboardData;if(ot){var ft=ot.types.toString(),jt=ot.items;if(ft==="text/html,Files"||ft==="Files"||ot.types.indexOf("Files")){var St=jt[1];ft==="Files"&&(St=jt[0]),St.kind==="file"&&St.type.match(/^image\//i)&&U(St.getAsFile(),function(Tt){Tt.id?De.replaceSelection("![,](/api/attachments/".concat(Tt.id,")")):(Tt==null?void 0:Tt.status)===401&&(document.location.href="/user/login")})}else return!0}return!0},De=te.a.fromTextArea(zt.current,{mode:"markdown",lineNumbers:!e,lineWrapping:!0,value:Ge,autoCloseTags:!0,autoCloseBrackets:!0});return i&&De.focus(),De.on("paste",Me),Rt(De),function(){De.off("paste",Me)}}},[]);var oa=Object(M.useCallback)(function(){if(fe.current)try{var Me=fe.current.getElementsByClassName("markdown-toolbar-container")[0].offsetHeight,De=fe.current.getElementsByClassName("markdown-editor-body")[0];Ve?De.style.height="calc(100vh - ".concat(Me,"px)"):De.style.height="".concat(fa-Me,"px")}catch(de){console.log(de,"---- to set md editor body height")}},[fa,fe,Ve]);Object(M.useEffect)(function(){function Me(){var de=new D.a(function(Ze){var Ye=Object(k.a)(Ze),ot;try{for(Ye.s();!(ot=Ye.n()).done;){var ft=ot.value;(ft.target.offsetHeight>0||ft.target.offsetWidth>0)&&(oa(),O.setSize("100%","100%"),O.refresh())}}catch(jt){Ye.e(jt)}finally{Ye.f()}});return de.observe(zt.current.parentElement),de}if(O){var De=Me();return function(){De.unobserve(zt.current.parentElement)}}},[O,oa]),Object(M.useEffect)(function(){if(O){for(var Me=[],De=function(){var ft=Ze[de];Ye=Object(N.a)(ft,2);var jt=Ye[0],St=Ye[1],Tt=Object(Z.a)({},jt,function(){R(St)});Me.push(Tt),O.addKeyMap(Tt)},de=0,Ze=Object.entries(Ht);de0){var Me=new Date().getTime(),De=window.sessionStorage.getItem(F);Me>=qt+Et&&(!De||De!==it)&&(window.sessionStorage.setItem(F,it),ia(!0))}},Et),Object(M.useEffect)(function(){Ie(l)},[O,l]),Object(M.useEffect)(function(){O&&(i&&O.focus())},[O,i]),Object(M.useEffect)(function(){if(S&&O){var Me=function(Ze){var Ye=Ze.target;if(ea.current){var ot=Ye.scrollTop/Ye.scrollHeight;ea.current.scrollTop=ea.current.scrollHeight*ot}},De=O.getScrollerElement();return De.addEventListener("scroll",Me),function(){De.removeEventListener("scroll",Me)}}},[O,S]),Object(M.useEffect)(function(){if(O&&J){var Me=function(de,Ze){J(de,Ze)};return O.on("beforeChange",Me),function(){O.off("beforeChange",Me)}}},[O,J]),Object(M.useEffect)(function(){if(O&&ae){var Me=function(){ae(O.getValue())};return O.on("blur",Me),function(){O.off("blur",Me)}}},[O,ae]),Object(M.useEffect)(function(){if(O){var Me=function(de){var Ze=de.getValue();bt(Ze),ra(new Date().getTime()),de.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Je&&Je(Ze)};return O.on("change",Me),function(){O.off("change",Me)}}},[O,Je]),Object(M.useEffect)(function(){O&&(Ge==null?(O.setValue(""),bt("")):Ge!==O.getValue()&&(O.setValue(Ge),bt(Ge),O.setCursor(O.lineCount(),0)))},[O,Ge]);var R=Object(M.useCallback)(function(Me){var De=O.getCursor(),de=O.getSelection(),Ze=de.split(` -`);switch(Me){case"bold":return O.replaceSelection("**"+de+"**"),de===""&&O.setCursor(De.line,De.ch+2),O.focus();case"italic":return O.replaceSelection("*"+de+"*"),de===""&&O.setCursor(De.line,De.ch+1),O.focus();case"code":return O.replaceSelection("`"+de+"`"),de===""&&O.setCursor(De.line,De.ch+1),O.focus();case"inline-latex":return O.replaceSelection("`$$"+de+"$$`"),de===""&&O.setCursor(De.line,De.ch+3),O.focus();case"latex":return O.replaceSelection("```latex\n"+de+"\n```"),O.setCursor(De.line+1,de.length+1),O.focus();case"line-break":return O.replaceSelection(`
    +\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`;function Nt(ye){return/^\d+$/.test(ye)?"".concat(ye,"px"):ye}var Dt=navigator.platform.toUpperCase().indexOf("MAC")>=0,At=Dt?"Cmd":"Ctrl",Ht=(ze={},Object(Z.a)(ze,At+"-B","bold"),Object(Z.a)(ze,At+"-I","italic"),ze),Xt=(We={},Object(Z.a)(We,et,"\u6DFB\u52A0\u94FE\u63A5"),Object(Z.a)(We,gt,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(Z.a)(We,lt,"\u6DFB\u52A0\u56FE\u7247"),Object(Z.a)(We,tt,"\u6DFB\u52A0\u8868\u683C"),We),na=I.a=function(ye){var st=ye.defaultValue,Ge=st===void 0?"":st,Je=ye.onChange,_t=ye.width,x=_t===void 0?"100%":_t,t=ye.height,o=t===void 0?400:t,p=ye.miniToolbar,e=p===void 0?!1:p,d=ye.isFocus,i=d===void 0?!1:d,l=ye.watch,v=ye.insertTemp,P=ye.id,F=P===void 0?"markdown-editor-id":P,E=ye.showResizeBar,s=E===void 0?!1:E,q=ye.noStorage,C=q===void 0?!1:q,W=ye.showNullButton,H=W===void 0?!1:W,le=ye.fullScreen,z=le===void 0?!1:le,ae=ye.onBlur,J=ye.onCMBeforeChange,me=ye.className,se=me===void 0?"":me,ke=ye.placeholder,Ne=ke===void 0?"":ke,Ee=ye.values,xe=Ee===void 0?"":Ee,Ke=Object(M.useState)(null),we=Object(N.a)(Ke,2),O=we[0],Rt=we[1],xt=Object(M.useState)(Ge),rt=Object(N.a)(xt,2),it=rt[0],bt=rt[1],yt=Object(M.useState)(l),Ce=Object(N.a)(yt,2),w=Ce[0],Ie=Ce[1],Pe=Object(M.useState)(z),Ot=Object(N.a)(Pe,2),Ve=Ot[0],Ut=Ot[1],nt=Object(M.useState)(""),Te=Object(N.a)(nt,2),ut=Te[0],Qe=Te[1],Lt=Object(M.useState)(0),Pt=Object(N.a)(Lt,2),Gt=Pt[0],ra=Pt[1],ca=Object(M.useState)(o),pa=Object(N.a)(ca,2),fa=pa[0],ma=pa[1],va=Object(M.useState)(!1),ha=Object(N.a)(va,2),Ea=ha[0],ia=ha[1],zt=Object(M.useRef)(),fe=Object(M.useRef)(),It=Object(M.useRef)(),ta=Object(M.useRef)();Object(M.useEffect)(function(){bt(xe),O==null||O.setValue(xe)},[xe]),Object(M.useEffect)(function(){if(zt.current){var Me=function(Ze,Ye){var ot=Ye.clipboardData;if(ot){var ft=ot.types.toString(),jt=ot.items;if(ft==="text/html,Files"||ft==="Files"||ot.types.indexOf("Files")){var St=jt[1];ft==="Files"&&(St=jt[0]),St.kind==="file"&&St.type.match(/^image\//i)&&U(St.getAsFile(),function(Tt){Tt.id?je.replaceSelection("![,](/api/attachments/".concat(Tt.id,")")):(Tt==null?void 0:Tt.status)===401&&(document.location.href="/user/login")})}else return!0}return!0},je=te.a.fromTextArea(zt.current,{mode:"markdown",lineNumbers:!e,lineWrapping:!0,value:Ge,autoCloseTags:!0,autoCloseBrackets:!0});return i&&je.focus(),je.on("paste",Me),Rt(je),function(){je.off("paste",Me)}}},[]);var oa=Object(M.useCallback)(function(){if(fe.current)try{var Me=fe.current.getElementsByClassName("markdown-toolbar-container")[0].offsetHeight,je=fe.current.getElementsByClassName("markdown-editor-body")[0];Ve?je.style.height="calc(100vh - ".concat(Me,"px)"):je.style.height="".concat(fa-Me,"px")}catch(de){console.log(de,"---- to set md editor body height")}},[fa,fe,Ve]);Object(M.useEffect)(function(){function Me(){var de=new D.a(function(Ze){var Ye=Object(k.a)(Ze),ot;try{for(Ye.s();!(ot=Ye.n()).done;){var ft=ot.value;(ft.target.offsetHeight>0||ft.target.offsetWidth>0)&&(oa(),O.setSize("100%","100%"),O.refresh())}}catch(jt){Ye.e(jt)}finally{Ye.f()}});return de.observe(zt.current.parentElement),de}if(O){var je=Me();return function(){je.unobserve(zt.current.parentElement)}}},[O,oa]),Object(M.useEffect)(function(){if(O){for(var Me=[],je=function(){var ft=Ze[de];Ye=Object(N.a)(ft,2);var jt=Ye[0],St=Ye[1],Tt=Object(Z.a)({},jt,function(){R(St)});Me.push(Tt),O.addKeyMap(Tt)},de=0,Ze=Object.entries(Ht);de0){var Me=new Date().getTime(),je=window.sessionStorage.getItem(F);Me>=Gt+Et&&(!je||je!==it)&&(window.sessionStorage.setItem(F,it),ia(!0))}},Et),Object(M.useEffect)(function(){Ie(l)},[O,l]),Object(M.useEffect)(function(){O&&(i&&O.focus())},[O,i]),Object(M.useEffect)(function(){if(w&&O){var Me=function(Ze){var Ye=Ze.target;if(ta.current){var ot=Ye.scrollTop/Ye.scrollHeight;ta.current.scrollTop=ta.current.scrollHeight*ot}},je=O.getScrollerElement();return je.addEventListener("scroll",Me),function(){je.removeEventListener("scroll",Me)}}},[O,w]),Object(M.useEffect)(function(){if(O&&J){var Me=function(de,Ze){J(de,Ze)};return O.on("beforeChange",Me),function(){O.off("beforeChange",Me)}}},[O,J]),Object(M.useEffect)(function(){if(O&&ae){var Me=function(){ae(O.getValue())};return O.on("blur",Me),function(){O.off("blur",Me)}}},[O,ae]),Object(M.useEffect)(function(){if(O){var Me=function(de){var Ze=de.getValue();bt(Ze),ra(new Date().getTime()),de.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Je&&Je(Ze)};return O.on("change",Me),function(){O.off("change",Me)}}},[O,Je]),Object(M.useEffect)(function(){O&&(Ge==null?(O.setValue(""),bt("")):Ge!==O.getValue()&&(O.setValue(Ge),bt(Ge),O.setCursor(O.lineCount(),0)))},[O,Ge]);var R=Object(M.useCallback)(function(Me){var je=O.getCursor(),de=O.getSelection(),Ze=de.split(` +`);switch(Me){case"bold":return O.replaceSelection("**"+de+"**"),de===""&&O.setCursor(je.line,je.ch+2),O.focus();case"italic":return O.replaceSelection("*"+de+"*"),de===""&&O.setCursor(je.line,je.ch+1),O.focus();case"code":return O.replaceSelection("`"+de+"`"),de===""&&O.setCursor(je.line,je.ch+1),O.focus();case"inline-latex":return O.replaceSelection("`$$"+de+"$$`"),de===""&&O.setCursor(je.line,je.ch+3),O.focus();case"latex":return O.replaceSelection("```latex\n"+de+"\n```"),O.setCursor(je.line+1,de.length+1),O.focus();case"line-break":return O.replaceSelection(`
    `),O.focus();case"list-ul":return de===""?O.replaceSelection("- "+de):O.replaceSelection(Ze.map(function(Ye){return Ye===""?"":"- ".concat(Ye)}).join(` `)),O.focus();case"list-ol":return de===""?O.replaceSelection("1. "+de):O.replaceSelection(Ze.map(function(Ye,ot){return Ye===""?"":"".concat(ot+1,". ").concat(Ye)}).join(` -`)),O.focus();case"add-null-ch":return de===""&&O.setCursor(De.line,De.ch+1),O.replaceSelection(vt),O.focus();case"inster-template-1":return de===""&&O.setCursor(De.line,De.ch),O.replaceSelection(wt),O.focus();case"eraser":return O.setValue(""),O.focus();case"trigger-watch":return Ie(!S),O.focus();case"trigger-full-screen":return Ut(!Ve),O.focus();case et:Qe(et);return;case gt:Qe(gt);return;case lt:Qe(lt);return;case tt:Qe(tt);return;default:throw new Error}},[O,S,Ve]),ta=Object(M.useCallback)(function(Me){Qe("");switch(ut){case et:var De=Me.title,de=Me.link;return O.replaceSelection("[".concat(De,"](").concat(de,")")),O.focus();case gt:var Ze=Me.language,Ye=Me.content;return O.replaceSelection(["```"+Ze,Ye,"```"].join(` +`)),O.focus();case"add-null-ch":return de===""&&O.setCursor(je.line,je.ch+1),O.replaceSelection(vt),O.focus();case"inster-template-1":return de===""&&O.setCursor(je.line,je.ch),O.replaceSelection(wt),O.focus();case"eraser":return O.setValue(""),O.focus();case"trigger-watch":return Ie(!w),O.focus();case"trigger-full-screen":return Ut(!Ve),O.focus();case et:Qe(et);return;case gt:Qe(gt);return;case lt:Qe(lt);return;case tt:Qe(tt);return;default:throw new Error}},[O,w,Ve]),aa=Object(M.useCallback)(function(Me){Qe("");switch(ut){case et:var je=Me.title,de=Me.link;return O.replaceSelection("[".concat(je,"](").concat(de,")")),O.focus();case gt:var Ze=Me.language,Ye=Me.content;return O.replaceSelection(["```"+Ze,Ye,"```"].join(` `)),O.focus();case lt:var ot=Me.src,ft=Me.alt;return O.replaceSelection("![ ".concat(ft," ]( ").concat(ot,' "').concat(ft,'" )')),O.focus();case tt:for(var jt=Me.row,St=Me.col,Tt=Me.align,Yt=` -`,aa=0;aa300&&(St=300);var Tt=o+St+"px";ma(Tt)}},Ze=It.current,Ye=!1,ot=0;return Ze.addEventListener("mousedown",Me),document.addEventListener("mousemove",de),document.addEventListener("mouseup",De),function(){Ze.removeEventListener("mousedown",Me),document.removeEventListener("mousemove",de),document.removeEventListener("mouseup",De)}}},[O,It]),Object(M.useEffect)(function(){ma(o)},[o]);var ct=Nt(x),la=Nt(fa),ba={width:ct,height:la},ya=Object(M.useMemo)(function(){if(qt){var Me=new Date(qt),De=Me.getHours(),de=Me.getMinutes(),Ze=Me.getSeconds();return De=De<10?"0"+De:De,de=de<10?"0"+de:de,Ze=Ze<10?"0"+Ze:Ze,"".concat(De,":").concat(de,":").concat(Ze)}return 0},[qt]);function Vt(){window.sessionStorage.removeItem(F),ia(!1),ra(0)}function Oa(){ia(!1),ra(0),O.setValue(window.sessionStorage.getItem(F))}return n.a.createElement(M.Fragment,null,n.a.createElement("div",{className:"markdown-editor-wrapper",ref:fe},n.a.createElement("div",{className:"markdown-editor-container ".concat(se," ").concat(S?"on-preview":""," ").concat(e?"mini":""," ").concat(Ve?"full-screen":""),style:ba},n.a.createElement(a,{insertTemp:v,watch:S,fullScreen:Ve,showNullButton:H,onActionCallback:R}),n.a.createElement("div",{className:"markdown-editor-body"},n.a.createElement("div",{className:"codemirror-container"},n.a.createElement("textarea",{ref:zt,placeholder:Ne})),S?n.a.createElement("div",{ref:ea,className:"preview-container"},n.a.createElement(ne.a,{value:it})):null))),s?n.a.createElement("a",{ref:It,className:"editor-resize"}):null,n.a.createElement(Ae.a,null,Xt[ut]?n.a.createElement(Y.a,{centered:!0,title:Xt[ut],visible:!0,onCancel:Kt,footer:null},ga):null))}},R155:function(Be,I,r){"use strict";function w(b){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?w=function(c){return typeof c}:w=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},w(b)}Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0;var Y=ee(r("q1tI")),k=te(r("17x9")),N=te(r("i8i4")),Z=r("8N4D"),M=r("fJi3"),n=r("gbW8"),X=te(r("sS6v"));function te(b){return b&&b.__esModule?b:{default:b}}function D(b){if(typeof WeakMap!="function")return null;var A=new WeakMap,c=new WeakMap;return(D=function($){return $?c:A})(b)}function ee(b,A){if(!A&&b&&b.__esModule)return b;if(b===null||w(b)!=="object"&&typeof b!="function")return{default:b};var c=D(A);if(c&&c.has(b))return c.get(b);var f={},$=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var oe in b)if(oe!=="default"&&Object.prototype.hasOwnProperty.call(b,oe)){var _=$?Object.getOwnPropertyDescriptor(b,oe):null;_&&(_.get||_.set)?Object.defineProperty(f,oe,_):f[oe]=b[oe]}return f.default=b,c&&c.set(b,f),f}function G(b,A){return ne(b)||Ue(b,A)||Q(b,A)||ie()}function ie(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Q(b,A){if(!b)return;if(typeof b=="string")return be(b,A);var c=Object.prototype.toString.call(b).slice(8,-1);if(c==="Object"&&b.constructor&&(c=b.constructor.name),c==="Map"||c==="Set")return Array.from(b);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return be(b,A)}function be(b,A){(A==null||A>b.length)&&(A=b.length);for(var c=0,f=new Array(A);c not mounted on DragStart!");var U=j.ownerDocument;if(f.props.disabled||!(y.target instanceof U.defaultView.Node)||f.props.handle&&!(0,Z.matchesSelectorAndParentsTo)(y.target,f.props.handle,j)||f.props.cancel&&(0,Z.matchesSelectorAndParentsTo)(y.target,f.props.cancel,j))return;y.type==="touchstart"&&y.preventDefault();var L=(0,Z.getTouchIdentifier)(y);f.setState({touchIdentifier:L});var V=(0,M.getControlPosition)(y,L,re(f));if(V==null)return;var ve=V.x,_e=V.y,pe=(0,M.createCoreData)(re(f),ve,_e);(0,X.default)("DraggableCore: handleDragStart: %j",pe),(0,X.default)("calling",f.props.onStart);var Le=f.props.onStart(y,pe);if(Le===!1||f.mounted===!1)return;f.props.enableUserSelectHack&&(0,Z.addUserSelectStyles)(U),f.setState({dragging:!0,lastX:ve,lastY:_e}),(0,Z.addEvent)(U,T.move,f.handleDrag),(0,Z.addEvent)(U,T.stop,f.handleDragStop)}),u(re(f),"handleDrag",function(y){var j=(0,M.getControlPosition)(y,f.state.touchIdentifier,re(f));if(j==null)return;var U=j.x,L=j.y;if(Array.isArray(f.props.grid)){var V=U-f.state.lastX,ve=L-f.state.lastY,_e=(0,M.snapToGrid)(f.props.grid,V,ve),pe=G(_e,2);if(V=pe[0],ve=pe[1],!V&&!ve)return;U=f.state.lastX+V,L=f.state.lastY+ve}var Le=(0,M.createCoreData)(re(f),U,L);(0,X.default)("DraggableCore: handleDrag: %j",Le);var dt=f.props.onDrag(y,Le);if(dt===!1||f.mounted===!1){try{f.handleDragStop(new MouseEvent("mouseup"))}catch(lt){var et=document.createEvent("MouseEvents");et.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),f.handleDragStop(et)}return}f.setState({lastX:U,lastY:L})}),u(re(f),"handleDragStop",function(y){if(!f.state.dragging)return;var j=(0,M.getControlPosition)(y,f.state.touchIdentifier,re(f));if(j==null)return;var U=j.x,L=j.y,V=(0,M.createCoreData)(re(f),U,L),ve=f.props.onStop(y,V);if(ve===!1||f.mounted===!1)return!1;var _e=f.findDOMNode();_e&&(f.props.enableUserSelectHack&&(0,Z.removeUserSelectStyles)(_e.ownerDocument)),(0,X.default)("DraggableCore: handleDragStop: %j",V),f.setState({dragging:!1,lastX:NaN,lastY:NaN}),_e&&((0,X.default)("DraggableCore: Removing handlers"),(0,Z.removeEvent)(_e.ownerDocument,T.move,f.handleDrag),(0,Z.removeEvent)(_e.ownerDocument,T.stop,f.handleDragStop))}),u(re(f),"onMouseDown",function(y){return T=m.mouse,f.handleDragStart(y)}),u(re(f),"onMouseUp",function(y){return T=m.mouse,f.handleDragStop(y)}),u(re(f),"onTouchStart",function(y){return T=m.touch,f.handleDragStart(y)}),u(re(f),"onTouchEnd",function(y){return T=m.touch,f.handleDragStop(y)}),f}return He(c,[{key:"componentDidMount",value:function(){this.mounted=!0;var $=this.findDOMNode();$&&(0,Z.addEvent)($,m.touch.start,this.onTouchStart,{passive:!1})}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var $=this.findDOMNode();if($){var oe=$.ownerDocument;(0,Z.removeEvent)(oe,m.mouse.move,this.handleDrag),(0,Z.removeEvent)(oe,m.touch.move,this.handleDrag),(0,Z.removeEvent)(oe,m.mouse.stop,this.handleDragStop),(0,Z.removeEvent)(oe,m.touch.stop,this.handleDragStop),(0,Z.removeEvent)($,m.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,Z.removeUserSelectStyles)(oe)}}},{key:"findDOMNode",value:function(){var $,oe,_;return($=(oe=this.props)===null||oe===void 0||((_=oe.nodeRef)===null||_===void 0)?void 0:_.current)!==null&&$!==void 0?$:N.default.findDOMNode(this)}},{key:"render",value:function(){return Y.cloneElement(Y.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}]),c}(Y.Component);I.default=K,u(K,"displayName","DraggableCore"),u(K,"propTypes",{allowAnyClick:k.default.bool,disabled:k.default.bool,enableUserSelectHack:k.default.bool,offsetParent:function(A,c){if(A[c]&&A[c].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:k.default.arrayOf(k.default.number),handle:k.default.string,cancel:k.default.string,nodeRef:k.default.object,onStart:k.default.func,onDrag:k.default.func,onStop:k.default.func,onMouseDown:k.default.func,scale:k.default.number,className:n.dontSetMe,style:n.dontSetMe,transform:n.dontSetMe}),u(K,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},ZW9T:function(Be,I,r){"use strict";r.d(I,"a",function(){return He});var w=r("XEnU"),Y=r("miYZ"),k=r("tsqr"),N=r("Cmcn"),Z=r("k16G"),M=r("SIvP"),n=r("q1tI"),X=r.n(n),te=r("bdgK");function D(g,h,a,Ae,re){var Se=h.getWordUntilPosition(a),xe={startLineNumber:a.lineNumber,endLineNumber:a.lineNumber,startColumn:Se.startColumn,endColumn:Se.endColumn},u=Ae.map(function(m){return{label:m,kind:g.languages.CompletionItemKind.Keyword,insertText:m,insertTextRules:g.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:xe}});return re.map(function(m){u.push(Object(w.a)(Object(w.a)({},m),{},{range:xe}))}),u}var ee=function(g){var h={label:"ifelse",kind:g.languages.CompletionItemKind.Method,insertText:["if (${1:condition}) {"," $0","} else {"," ","}"].join(` -`),insertTextRules:g.languages.CompletionItemInsertTextRule.InsertAsSnippet},a=["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","inline","restrict","_Bool","_Complex","_Imaginary","_Alignas","_Alignof","_Atomic","_Static_assert","_Noreturn","_Thread_local","_Generic"];g.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(xe,u){var m=D(g,xe,u,a,[h]);return{suggestions:m}}});var Ae=["False","None","True","and","as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","nonlocal","not","or","pass","raise","return","try","while","with","yield"];g.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(xe,u){var m=[{label:"print",kind:g.languages.CompletionItemKind.Snippet,insertText:["print($0)"].join(` -`),insertTextRules:g.languages.CompletionItemInsertTextRule.InsertAsSnippet}],T=D(g,xe,u,Ae,m);return{suggestions:T}}});var re=["abstract","assert","boolean","break","byte","case","catch","char","class","const","continue","default","do","double","else","enum","extends","final","finally","float","for","goto","if","implements","import","instance of","int","interface","long","native","new","package","private","protected","public","return","strictfp","short","static","super","switch","synchronized","this","throw","throws","transient","try","void","volatile","while"];g.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(xe,u){var m=[h,{label:"main",kind:g.languages.CompletionItemKind.Snippet,insertText:["public static void main(String[] args) {"," $0","}"].join(` +`),O.focus();default:throw new Error}},[O,ut]),ga=Object(M.useMemo)(function(){switch(ut){case et:return n.a.createElement(b,{callback:aa,onCancel:Kt});case gt:return n.a.createElement(A.b,{callback:aa,onCancel:Kt});case lt:return n.a.createElement(y,{callback:aa,onCancel:Kt});case tt:return n.a.createElement(dt,{callback:aa,onCancel:Kt});default:return null}},[ut]);function Kt(){Qe("")}Object(M.useEffect)(function(){if(It.current){var Me=function(jt){Ye=!0,ot=jt.pageY},je=function(){Ye=!1},de=function(jt){if(Ye){var St=jt.pageY-ot;St<0&&(St=0),St>300&&(St=300);var Tt=o+St+"px";ma(Tt)}},Ze=It.current,Ye=!1,ot=0;return Ze.addEventListener("mousedown",Me),document.addEventListener("mousemove",de),document.addEventListener("mouseup",je),function(){Ze.removeEventListener("mousedown",Me),document.removeEventListener("mousemove",de),document.removeEventListener("mouseup",je)}}},[O,It]),Object(M.useEffect)(function(){ma(o)},[o]);var ct=Nt(x),la=Nt(fa),ba={width:ct,height:la},ya=Object(M.useMemo)(function(){if(Gt){var Me=new Date(Gt),je=Me.getHours(),de=Me.getMinutes(),Ze=Me.getSeconds();return je=je<10?"0"+je:je,de=de<10?"0"+de:de,Ze=Ze<10?"0"+Ze:Ze,"".concat(je,":").concat(de,":").concat(Ze)}return 0},[Gt]);function Vt(){window.sessionStorage.removeItem(F),ia(!1),ra(0)}function Oa(){ia(!1),ra(0),O.setValue(window.sessionStorage.getItem(F))}return n.a.createElement(M.Fragment,null,n.a.createElement("div",{className:"markdown-editor-wrapper",ref:fe},n.a.createElement("div",{className:"markdown-editor-container ".concat(se," ").concat(w?"on-preview":""," ").concat(e?"mini":""," ").concat(Ve?"full-screen":""),style:ba},n.a.createElement(a,{insertTemp:v,watch:w,fullScreen:Ve,showNullButton:H,onActionCallback:R}),n.a.createElement("div",{className:"markdown-editor-body"},n.a.createElement("div",{className:"codemirror-container"},n.a.createElement("textarea",{ref:zt,placeholder:Ne})),w?n.a.createElement("div",{ref:ta,className:"preview-container"},n.a.createElement(ne.a,{value:it})):null))),s?n.a.createElement("a",{ref:It,className:"editor-resize"}):null,n.a.createElement(Ae.a,null,Xt[ut]?n.a.createElement(Y.a,{centered:!0,title:Xt[ut],visible:!0,onCancel:Kt,footer:null},ga):null))}},R155:function(Be,I,r){"use strict";function S(b){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?S=function(c){return typeof c}:S=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},S(b)}Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0;var Y=ee(r("q1tI")),k=te(r("17x9")),N=te(r("i8i4")),Z=r("8N4D"),M=r("fJi3"),n=r("gbW8"),X=te(r("sS6v"));function te(b){return b&&b.__esModule?b:{default:b}}function D(b){if(typeof WeakMap!="function")return null;var A=new WeakMap,c=new WeakMap;return(D=function($){return $?c:A})(b)}function ee(b,A){if(!A&&b&&b.__esModule)return b;if(b===null||S(b)!=="object"&&typeof b!="function")return{default:b};var c=D(A);if(c&&c.has(b))return c.get(b);var f={},$=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var oe in b)if(oe!=="default"&&Object.prototype.hasOwnProperty.call(b,oe)){var _=$?Object.getOwnPropertyDescriptor(b,oe):null;_&&(_.get||_.set)?Object.defineProperty(f,oe,_):f[oe]=b[oe]}return f.default=b,c&&c.set(b,f),f}function G(b,A){return ne(b)||Ue(b,A)||Q(b,A)||ie()}function ie(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Q(b,A){if(!b)return;if(typeof b=="string")return be(b,A);var c=Object.prototype.toString.call(b).slice(8,-1);if(c==="Object"&&b.constructor&&(c=b.constructor.name),c==="Map"||c==="Set")return Array.from(b);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return be(b,A)}function be(b,A){(A==null||A>b.length)&&(A=b.length);for(var c=0,f=new Array(A);c not mounted on DragStart!");var U=j.ownerDocument;if(f.props.disabled||!(y.target instanceof U.defaultView.Node)||f.props.handle&&!(0,Z.matchesSelectorAndParentsTo)(y.target,f.props.handle,j)||f.props.cancel&&(0,Z.matchesSelectorAndParentsTo)(y.target,f.props.cancel,j))return;y.type==="touchstart"&&y.preventDefault();var L=(0,Z.getTouchIdentifier)(y);f.setState({touchIdentifier:L});var V=(0,M.getControlPosition)(y,L,re(f));if(V==null)return;var ve=V.x,_e=V.y,pe=(0,M.createCoreData)(re(f),ve,_e);(0,X.default)("DraggableCore: handleDragStart: %j",pe),(0,X.default)("calling",f.props.onStart);var Le=f.props.onStart(y,pe);if(Le===!1||f.mounted===!1)return;f.props.enableUserSelectHack&&(0,Z.addUserSelectStyles)(U),f.setState({dragging:!0,lastX:ve,lastY:_e}),(0,Z.addEvent)(U,T.move,f.handleDrag),(0,Z.addEvent)(U,T.stop,f.handleDragStop)}),u(re(f),"handleDrag",function(y){var j=(0,M.getControlPosition)(y,f.state.touchIdentifier,re(f));if(j==null)return;var U=j.x,L=j.y;if(Array.isArray(f.props.grid)){var V=U-f.state.lastX,ve=L-f.state.lastY,_e=(0,M.snapToGrid)(f.props.grid,V,ve),pe=G(_e,2);if(V=pe[0],ve=pe[1],!V&&!ve)return;U=f.state.lastX+V,L=f.state.lastY+ve}var Le=(0,M.createCoreData)(re(f),U,L);(0,X.default)("DraggableCore: handleDrag: %j",Le);var dt=f.props.onDrag(y,Le);if(dt===!1||f.mounted===!1){try{f.handleDragStop(new MouseEvent("mouseup"))}catch(lt){var et=document.createEvent("MouseEvents");et.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),f.handleDragStop(et)}return}f.setState({lastX:U,lastY:L})}),u(re(f),"handleDragStop",function(y){if(!f.state.dragging)return;var j=(0,M.getControlPosition)(y,f.state.touchIdentifier,re(f));if(j==null)return;var U=j.x,L=j.y,V=(0,M.createCoreData)(re(f),U,L),ve=f.props.onStop(y,V);if(ve===!1||f.mounted===!1)return!1;var _e=f.findDOMNode();_e&&(f.props.enableUserSelectHack&&(0,Z.removeUserSelectStyles)(_e.ownerDocument)),(0,X.default)("DraggableCore: handleDragStop: %j",V),f.setState({dragging:!1,lastX:NaN,lastY:NaN}),_e&&((0,X.default)("DraggableCore: Removing handlers"),(0,Z.removeEvent)(_e.ownerDocument,T.move,f.handleDrag),(0,Z.removeEvent)(_e.ownerDocument,T.stop,f.handleDragStop))}),u(re(f),"onMouseDown",function(y){return T=m.mouse,f.handleDragStart(y)}),u(re(f),"onMouseUp",function(y){return T=m.mouse,f.handleDragStop(y)}),u(re(f),"onTouchStart",function(y){return T=m.touch,f.handleDragStart(y)}),u(re(f),"onTouchEnd",function(y){return T=m.touch,f.handleDragStop(y)}),f}return He(c,[{key:"componentDidMount",value:function(){this.mounted=!0;var $=this.findDOMNode();$&&(0,Z.addEvent)($,m.touch.start,this.onTouchStart,{passive:!1})}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var $=this.findDOMNode();if($){var oe=$.ownerDocument;(0,Z.removeEvent)(oe,m.mouse.move,this.handleDrag),(0,Z.removeEvent)(oe,m.touch.move,this.handleDrag),(0,Z.removeEvent)(oe,m.mouse.stop,this.handleDragStop),(0,Z.removeEvent)(oe,m.touch.stop,this.handleDragStop),(0,Z.removeEvent)($,m.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,Z.removeUserSelectStyles)(oe)}}},{key:"findDOMNode",value:function(){var $,oe,_;return($=(oe=this.props)===null||oe===void 0||((_=oe.nodeRef)===null||_===void 0)?void 0:_.current)!==null&&$!==void 0?$:N.default.findDOMNode(this)}},{key:"render",value:function(){return Y.cloneElement(Y.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}]),c}(Y.Component);I.default=K,u(K,"displayName","DraggableCore"),u(K,"propTypes",{allowAnyClick:k.default.bool,disabled:k.default.bool,enableUserSelectHack:k.default.bool,offsetParent:function(A,c){if(A[c]&&A[c].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:k.default.arrayOf(k.default.number),handle:k.default.string,cancel:k.default.string,nodeRef:k.default.object,onStart:k.default.func,onDrag:k.default.func,onStop:k.default.func,onMouseDown:k.default.func,scale:k.default.number,className:n.dontSetMe,style:n.dontSetMe,transform:n.dontSetMe}),u(K,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},ZW9T:function(Be,I,r){"use strict";r.d(I,"a",function(){return He});var S=r("XEnU"),Y=r("miYZ"),k=r("tsqr"),N=r("Cmcn"),Z=r("k16G"),M=r("SIvP"),n=r("q1tI"),X=r.n(n),te=r("bdgK");function D(g,h,a,Ae,re){var Se=h.getWordUntilPosition(a),Re={startLineNumber:a.lineNumber,endLineNumber:a.lineNumber,startColumn:Se.startColumn,endColumn:Se.endColumn},u=Ae.map(function(m){return{label:m,kind:g.languages.CompletionItemKind.Keyword,insertText:m,insertTextRules:g.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Re}});return re.map(function(m){u.push(Object(S.a)(Object(S.a)({},m),{},{range:Re}))}),u}var ee=function(g){var h={label:"ifelse",kind:g.languages.CompletionItemKind.Method,insertText:["if (${1:condition}) {"," $0","} else {"," ","}"].join(` +`),insertTextRules:g.languages.CompletionItemInsertTextRule.InsertAsSnippet},a=["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","inline","restrict","_Bool","_Complex","_Imaginary","_Alignas","_Alignof","_Atomic","_Static_assert","_Noreturn","_Thread_local","_Generic"];g.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Re,u){var m=D(g,Re,u,a,[h]);return{suggestions:m}}});var Ae=["False","None","True","and","as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","nonlocal","not","or","pass","raise","return","try","while","with","yield"];g.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Re,u){var m=[{label:"print",kind:g.languages.CompletionItemKind.Snippet,insertText:["print($0)"].join(` +`),insertTextRules:g.languages.CompletionItemInsertTextRule.InsertAsSnippet}],T=D(g,Re,u,Ae,m);return{suggestions:T}}});var re=["abstract","assert","boolean","break","byte","case","catch","char","class","const","continue","default","do","double","else","enum","extends","final","finally","float","for","goto","if","implements","import","instance of","int","interface","long","native","new","package","private","protected","public","return","strictfp","short","static","super","switch","synchronized","this","throw","throws","transient","try","void","volatile","while"];g.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Re,u){var m=[h,{label:"main",kind:g.languages.CompletionItemKind.Snippet,insertText:["public static void main(String[] args) {"," $0","}"].join(` `),insertTextRules:g.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"System.out.print",kind:g.languages.CompletionItemKind.Snippet,insertText:["System.out.print($0)"].join(` -`),insertTextRules:g.languages.CompletionItemInsertTextRule.InsertAsSnippet}],T=D(g,xe,u,re,m);return{suggestions:T}}})},G="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";function ie(g){return/^\d+$/.test(g)?"".concat(g,"px"):g}function Q(){}var be=!1,Ue={"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"};function ne(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],h=g;if(Array.isArray(g)){for(var a=0;a0||e.target.offsetWidth>0)&&$e.current.instance.layout()}}catch(d){o.e(d)}finally{o.f()}}),x.observe(tt.current)),x}function mt(){k.b.warn(decodeURIComponent(G))}Object(n.useEffect)(function(){var x=$e.current.instance;if(Se!=null&&x&&ze){var t=x.getModel();t&&Se!==t.getValue()&&(be=!0,t.setValue(Se),x.layout(),be=!1)}},[Se,ze,$e.current]);function Et(){var x=$e.current.instance;if(x){var t=x.getSelection(),o=$e.current.pastePos||{},p=new Oe.Range(o.startLineNumber||t.endLineNumber,o.startColumn||t.endColumn,o.endLineNumber||t.endLineNumber,o.endColumn||t.endColumn);setTimeout(function(){x.executeEdits("",[{range:p,text:""}])},300)}}function vt(x){(window.navigator.platform.match("Mac")?x.metaKey:x.ctrlKey)&&x.keyCode==83&&(x.preventDefault(),_())}var wt=function(){if(j&&$e.current.instance){var t=$e.current.instance.getContentHeight();Je(t0||_e.target.offsetWidth>0)&&j.layout()}}catch(pe){V.e(pe)}finally{V.f()}}),U.observe(K.current)),U}Object(n.useEffect)(function(){K.current&&r.e(26).then(r.t.bind(null,"M/lh",7)).then(function(j){Oe=j;var U=Oe.editor.createDiffEditor(K.current,Object(w.a)({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",ignoreTrimWhitespace:!1,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},T));f(U);var L=$(U);return function(){U.dispose();var V=U.getModel();V&&V.dispose(),L.unobserve(K.current)}})},[]),Object(n.useEffect)(function(){c&&c.setModel({original:Oe.editor.createModel(Se,u),modified:Oe.editor.createModel(xe,u)})},[Se,xe,u,c]);var oe=ie(a),_=ie(re),y={width:oe,height:_};return X.a.createElement("div",{className:"my-diff-editor",ref:K,style:y})}},apBC:function(Be,I,r){Be.exports={flex_box_center:"flex_box_center___o_fdQ",flex_space_between:"flex_space_between___1ybQM",flex_box_vertical_center:"flex_box_vertical_center___20cex",flex_box_center_end:"flex_box_center_end___1layX",flex_box_column:"flex_box_column___17Gww",listBtn:"listBtn___32BFF",active:"active___1k7CR",header:"header___1ipBp",name:"name___OPb4Y",btn:"btn___3nWbs",time:"time___3WwxJ",s2:"s2___As24t",wrap:"wrap___Et-3q",left:"left___2iDNp",camera:"camera___3J-pC",totalScore:"totalScore___2tAU0",totalAnswerScore:"totalAnswerScore___2TAb4",answerInfo:"answerInfo___3TfSb",answerSheet:"answerSheet___R-JDH",fold:"fold___3rQR4",back:"back___25GC1",right:"right___3jGbP",content:"content___2I3Ew",btns:"btns___1u_wH"}},dejd:function(Be,I,r){},doQp:function(Be,I,r){"use strict";var w=r("pzsr"),Y=w.default,k=w.DraggableCore;Be.exports=Y,Be.exports.default=Y,Be.exports.DraggableCore=k},ebz4:function(Be,I,r){"use strict";r.r(I);var w=r("cWXX"),Y=r("/ezw"),k=r("14J3"),N=r("BMrR"),Z=r("MXD1"),M=r("CFYs"),n=r("jCWc"),X=r("kPKH"),te=r("+L6B"),D=r("2/Rp"),ee=r("/xke"),G=r("TeRw"),ie=r("XEnU"),Q=r("5Tp6"),be=r("2qtc"),Ue=r("kLXV"),ne=r("k16G"),Oe=r("aHsQ"),Xe=r("sGsY"),He=r("c1Ei"),g=r.n(He),h=r("q1tI"),a=r.n(h),Ae=r("apBC"),re=r.n(Ae),Se=r("9kvl"),xe=r("uYtH"),u=r("ErOA"),m=r("1vsH"),T=r("BlwA"),K=r("V0Rq"),b=r("bntm"),A=r("Lkat"),c=r.n(A),f=r("LvDl"),$=r("9Bee"),oe=r("fV52"),_=r("3I+P"),y=r("doQp"),j=r.n(y),U=r("+ibC"),L=r.n(U),V=r("5bA4"),ve=r("UESt"),_e=["\u5355\u9009\u9898","\u591A\u9009\u9898","\u5224\u65AD\u9898","\u586B\u7A7A\u9898","\u7B80\u7B54\u9898","\u5B9E\u8BAD\u9898","\u7F16\u7A0B\u9898"],pe=function(e){var d=e.editData,i=d===void 0?{}:d,l=Object(h.useState)(!1),v=Object(ne.a)(l,2),P=v[0],F=v[1],E=Object(h.useState)(!0),s=Object(ne.a)(E,2),q=s[0],C=s[1],W=Object(h.useState)([]),H=Object(ne.a)(W,2),le=H[0],z=H[1],ae=Object(h.useState)(0),J=Object(ne.a)(ae,2),me=J[0],se=J[1],ke=Object(h.useState)({left:0,top:0,bottom:0,right:0}),Ne=Object(ne.a)(ke,2),Ee=Ne[0],Pe=Ne[1],Ke=Object(h.useRef)(),we=Object(h.useRef)(null),O=Object(h.useRef)(null);Object(h.useEffect)(function(){return O.current&&O.current.addEventListener("click",Rt),function(){O.current.removeEventListener("click",Rt)}},[O]);var Rt=function(Ce){var S=function(Te,ut){if(Te.localName===ut)return Te;for(var Qe=0,Lt=Te;Lt=Lt.parentNode;Qe++){if(Lt.localName===ut)return Lt;if(Lt==document.documentElement)return!1}},Ie=Ce.target,je=S(Ie,"a");if(je!=null&&je.href)return;if(Ie.tagName.toUpperCase()==="IMG"){var Ot=Ie.src||Ie.getAttribute("src");if(Ot&&Ot.indexOf("/images/avatars/User")===-1){Ce.stopPropagation(),Ce.preventDefault();var Ve=rt(),Ut=Ve.findIndex(function(nt){return nt.src===Ot});se(Ut),F(!0)}}},xt=function(){F(!1)},rt=function(){var Ce=O.current.getElementsByTagName("img"),S=[];return Ce.forEach(function(Ie){S.push({src:Ie==null?void 0:Ie.currentSrc,img:a.a.createElement("img",{height:290,src:Ie==null?void 0:Ie.currentSrc})})}),z(S),S},it=function(Ce,S){var Ie,je,Ot,Ve=(Ie=window)===null||Ie===void 0||((je=Ie.document)===null||je===void 0)?void 0:je.documentElement,Ut=Ve.clientWidth,nt=Ve.clientHeight,Te=Ke==null||((Ot=Ke.current)===null||Ot===void 0)?void 0:Ot.getBoundingClientRect();Pe({bounds:{left:-(Te==null?void 0:Te.left)+(S==null?void 0:S.x),right:Ut-((Te==null?void 0:Te.right)-(S==null?void 0:S.x)),top:-(Te==null?void 0:Te.top)+(S==null?void 0:S.y),bottom:nt-((Te==null?void 0:Te.bottom)-(S==null?void 0:S.y))}})},bt=function(){var Ce="".concat(i==null?void 0:i.q_position,". \u3010").concat(_e[i.question_type],'\u3011\uFF08').concat(i==null?void 0:i.question_score,"\u5206\uFF09");return Ce};return a.a.createElement(h.Fragment,null,P&&a.a.createElement("div",{className:L.a.modalWarp},a.a.createElement(j.a,{disabled:q,bounds:Ee,onStart:function(Ce,S){return it(Ce,S)}},a.a.createElement("div",{className:L.a.modal},a.a.createElement("div",{className:L.a.head,onMouseOver:function(){q&&C(!1)},onMouseOut:function(){C(!0)}},a.a.createElement("i",{className:"iconfont icon-guanbi1",onClick:xt})),a.a.createElement("div",{className:L.a.body},a.a.createElement(V.a,{className:L.a.LeftButton,onClick:function(){we.current.prev()}}),a.a.createElement(_.a,{className:L.a.site,ref:we,dots:!1,initialSlide:me},le==null?void 0:le.map(function(yt,Ce){return a.a.createElement("div",{key:Ce},a.a.createElement("aside",{className:L.a.imgWarp},yt.img))})),a.a.createElement(ve.a,{className:L.a.RightButton,onClick:function(){we.current.next()}}))))),a.a.createElement("div",{className:L.a.title,ref:O},a.a.createElement($.a,{value:bt()+(i==null?void 0:i.question_title)})))},Le=pe,dt=function(e,d){var i,l=e.data,v=e.callback,P=e.params;Object(h.useEffect)(function(){q(l)},[l]);var F=Object(h.useState)({}),E=Object(ne.a)(F,2),s=E[0],q=E[1],C=Object(h.useState)(!1),W=Object(ne.a)(C,2),H=W[0],le=W[1],z=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],ae=function(){var J=Object(Q.a)(g.a.mark(function me(se,ke){var Ne,Ee,Pe;return g.a.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:return le(!1),Ee=Object(f.cloneDeep)(s),Ee.user_answer=[se.choice_id],we.next=5,Object(m.l)(P.examId,P==null||((Ne=P.exercise)===null||Ne===void 0)?void 0:Ne.ip_limit);case 5:return we.next=7,Object(m.m)(P.examId);case 7:return q(Ee),we.next=10,Object(u.a)("/api/exercise_questions/".concat(s.question_id,"/exercise_answers.json"),{method:"post",body:{exercise_choice_id:se.choice_id}});case 10:Pe=we.sent,v(Ee,1),Pe.status===0?le(!0):Pe.status===-1&&Se.c.push("/exam/studentClient");case 13:case"end":return we.stop()}},me)}));return function(se,ke){return J.apply(this,arguments)}}();return Object(h.useImperativeHandle)(d,function(){return{editData:s}}),a.a.createElement("div",{className:c.a.single},a.a.createElement("div",{className:c.a.tips,style:{opacity:H?1:0}},a.a.createElement("i",{className:"iconfont icon-xuanzhong5"}),a.a.createElement("span",null,"\u7B54\u6848\u4FDD\u5B58\u6210\u529F")),a.a.createElement(Le,{editData:s}),s==null||((i=s.question_choices)===null||i===void 0)?void 0:i.map(function(J,me){var se;return a.a.createElement("ul",{onClick:function(){return ae(J,me)},style:{pointerEvents:P.checkState?"none":"auto"},key:J.choice_id,className:s!=null&&(se=s.user_answer)!==null&&se!==void 0&&se.includes(J.choice_id)?c.a.qsActive:c.a.qs},a.a.createElement("li",null,z[(J.c_position||J.choice_position)-1]),a.a.createElement("li",null,a.a.createElement($.a,{value:J.choice_text})))}),((s==null?void 0:s.standard_answer_show)||(s==null?void 0:s.user_score))&&a.a.createElement("div",{className:c.a.answer},(s==null?void 0:s.user_score)&&a.a.createElement("div",null,"\u672C\u9898\u5F97\u5206\uFF1A",(s==null?void 0:s.user_score)==="0.0"?0:s==null?void 0:s.user_score,"\u5206"),(s==null?void 0:s.standard_answer_show)&&a.a.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",s==null?void 0:s.standard_answer_show)),(s==null?void 0:s.analysis)&&a.a.createElement("div",{className:c.a.analysis},a.a.createElement("div",null,"\u89E3\u6790\uFF1A"),a.a.createElement("aside",null,a.a.createElement($.a,{value:s==null?void 0:s.analysis}))))},et=Object(h.forwardRef)(dt),lt=function(e,d){var i,l=e.data,v=e.callback,P=e.params;Object(h.useEffect)(function(){q(l)},[l]);var F=Object(h.useState)({}),E=Object(ne.a)(F,2),s=E[0],q=E[1],C=Object(h.useState)(!1),W=Object(ne.a)(C,2),H=W[0],le=W[1],z=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],ae=function(){var J=Object(Q.a)(g.a.mark(function me(se,ke){var Ne,Ee,Pe,Ke;return g.a.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return le(!1),Ee=Object(f.cloneDeep)(s),Ee.user_answer.includes(se.choice_id)?Object(f.pull)(Ee.user_answer,se.choice_id):Ee.user_answer=Ee==null||((Pe=Ee.user_answer)===null||Pe===void 0)?void 0:Pe.concat(se.choice_id),O.next=5,Object(m.l)(P.examId,P==null||((Ne=P.exercise)===null||Ne===void 0)?void 0:Ne.ip_limit);case 5:return O.next=7,Object(m.m)(P.examId);case 7:return q(Ee),O.next=10,Object(u.a)("/api/exercise_questions/".concat(s.question_id,"/exercise_answers.json"),{method:"post",body:{exercise_choice_id:Ee.user_answer}});case 10:Ke=O.sent,v(Ee,Ee.user_answer.length>0?1:0),Ke.status===0?le(!0):Ke.status===-1&&Se.c.push("/exam/studentClient");case 13:case"end":return O.stop()}},me)}));return function(se,ke){return J.apply(this,arguments)}}();return Object(h.useImperativeHandle)(d,function(){return{editData:s}}),a.a.createElement("div",{className:c.a.multiple},a.a.createElement("div",{className:c.a.tips,style:{opacity:H?1:0}},a.a.createElement("i",{className:"iconfont icon-xuanzhong5"}),a.a.createElement("span",null,"\u7B54\u6848\u4FDD\u5B58\u6210\u529F")),a.a.createElement(Le,{editData:s}),s==null||((i=s.question_choices)===null||i===void 0)?void 0:i.map(function(J,me){var se;return a.a.createElement("ul",{onClick:function(){return ae(J,me)},style:{pointerEvents:P.checkState?"none":"auto"},key:J.choice_id,className:s!=null&&(se=s.user_answer)!==null&&se!==void 0&&se.includes(J.choice_id)?c.a.msActive:c.a.ms},a.a.createElement("li",null,z[(J.c_position||J.choice_position)-1]),a.a.createElement("li",null,a.a.createElement($.a,{value:J.choice_text})))}),((s==null?void 0:s.standard_answer_show)||(s==null?void 0:s.user_score))&&a.a.createElement("div",{className:c.a.answer},(s==null?void 0:s.user_score)&&a.a.createElement("div",null,"\u672C\u9898\u5F97\u5206\uFF1A",(s==null?void 0:s.user_score)==="0.0"?0:s==null?void 0:s.user_score,"\u5206"),(s==null?void 0:s.standard_answer_show)&&a.a.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",s==null?void 0:s.standard_answer_show)),(s==null?void 0:s.analysis)&&a.a.createElement("div",{className:c.a.analysis},a.a.createElement("div",null,"\u89E3\u6790\uFF1A"),a.a.createElement("aside",null,a.a.createElement($.a,{value:s==null?void 0:s.analysis}))))},gt=Object(h.forwardRef)(lt),tt=function(e,d){var i,l=e.data,v=e.callback,P=e.params;Object(h.useEffect)(function(){q(l)},[l]);var F=Object(h.useState)({}),E=Object(ne.a)(F,2),s=E[0],q=E[1],C=Object(h.useState)(!1),W=Object(ne.a)(C,2),H=W[0],le=W[1],z=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],ae=function(){var J=Object(Q.a)(g.a.mark(function me(se,ke){var Ne,Ee,Pe;return g.a.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:return le(!1),Ee=Object(f.cloneDeep)(s),Ee.user_answer=[se.choice_id],we.next=5,Object(m.l)(P.examId,P==null||((Ne=P.exercise)===null||Ne===void 0)?void 0:Ne.ip_limit);case 5:return we.next=7,Object(m.m)(P.examId);case 7:return q(Ee),we.next=10,Object(u.a)("/api/exercise_questions/".concat(s.question_id,"/exercise_answers.json"),{method:"post",body:{exercise_choice_id:se.choice_id}});case 10:Pe=we.sent,v(Ee,1),Pe.status===0?le(!0):Pe.status===-1&&Se.c.push("/exam/studentClient");case 13:case"end":return we.stop()}},me)}));return function(se,ke){return J.apply(this,arguments)}}();return Object(h.useImperativeHandle)(d,function(){return{editData:s}}),a.a.createElement("div",{className:c.a.judgment},a.a.createElement("div",{className:c.a.tips,style:{opacity:H?1:0}},a.a.createElement("i",{className:"iconfont icon-xuanzhong5"}),a.a.createElement("span",null,"\u7B54\u6848\u4FDD\u5B58\u6210\u529F")),a.a.createElement(Le,{editData:s}),s==null||((i=s.question_choices)===null||i===void 0)?void 0:i.map(function(J,me){var se;return a.a.createElement("ul",{onClick:function(){return ae(J,me)},style:{pointerEvents:P.checkState?"none":"auto"},key:J.choice_id,className:s!=null&&(se=s.user_answer)!==null&&se!==void 0&&se.includes(J.choice_id)?c.a.qsActive:c.a.qs},a.a.createElement("li",null,a.a.createElement("span",null)),a.a.createElement("li",null,a.a.createElement($.a,{value:J.choice_text})))}),((s==null?void 0:s.standard_answer_show)||(s==null?void 0:s.user_score))&&a.a.createElement("div",{className:c.a.answer},(s==null?void 0:s.user_score)&&a.a.createElement("div",null,"\u672C\u9898\u5F97\u5206\uFF1A",(s==null?void 0:s.user_score)==="0.0"?0:s==null?void 0:s.user_score,"\u5206"),(s==null?void 0:s.standard_answer_show)&&a.a.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",s==null?void 0:s.standard_answer_show)),(s==null?void 0:s.analysis)&&a.a.createElement("div",{className:c.a.analysis},a.a.createElement("div",null,"\u89E3\u6790\uFF1A"),a.a.createElement("aside",null,a.a.createElement($.a,{value:s==null?void 0:s.analysis}))))},$e=Object(h.forwardRef)(tt),kt=r("3S9h"),Ct=r("5NDa"),ze=r("5rEg"),We=ze.a.TextArea,at=function(e,d){var i,l=e.data,v=e.callback,P=e.params,F=Object(h.useState)({}),E=Object(ne.a)(F,2),s=E[0],q=E[1],C=Object(h.useState)([]),W=Object(ne.a)(C,2),H=W[0],le=W[1],z=Object(h.useState)(!1),ae=Object(ne.a)(z,2),J=ae[0],me=ae[1],se=Object(h.useRef)(null);Object(h.useEffect)(function(){for(var Ee=[],Pe=0;Pe<(l==null?void 0:l.multi_count);Pe++)Ee.push(Object(ie.a)({},(l==null?void 0:l.user_answer[Pe])||{}));q(l),le(Ee)},[l]);var ke=function(Pe,Ke){me(!1);var we=Object(f.cloneDeep)(s);H[Ke].answer_text=Pe.target.value,we.user_answer=H,q(we),le(Object(kt.a)(H)),clearTimeout(se.current),se.current=setTimeout(Object(Q.a)(g.a.mark(function O(){var Rt,xt;return g.a.wrap(function(it){for(;;)switch(it.prev=it.next){case 0:return it.next=2,Object(m.l)(P.examId,P==null||((Rt=P.exercise)===null||Rt===void 0)?void 0:Rt.ip_limit);case 2:return it.next=4,Object(m.m)(P.examId);case 4:return it.next=6,Object(u.a)("/api/exercise_questions/".concat(s.question_id,"/exercise_answers.json"),{method:"post",body:{answer_text:H[Ke].answer_text,exercise_choice_id:Ke+1}});case 6:xt=it.sent,v(we,H.some(function(bt){return!!bt.answer_text})?1:0),xt.status===0?me(!0):xt.status===-1&&Se.c.push("/exam/studentClient");case 9:case"end":return it.stop()}},O)})),500)};Object(h.useImperativeHandle)(d,function(){return{editData:s}});var Ne=function(){var Pe;return s==null||((Pe=s.standard_answer)===null||Pe===void 0)?void 0:Pe.map(function(Ke,we){var O;return a.a.createElement("span",{style:{fontWeight:400,fontSize:14},key:we},"\u586B\u7A7A\u9898",we+1,"\uFF1A",(O=Ke.answer_text)===null||O===void 0?void 0:O.join("\u3001"),a.a.createElement("br",null))})};return console.log("userAnswer",H),a.a.createElement("div",{className:c.a.completion},a.a.createElement("div",{className:c.a.tips,style:{opacity:J?1:0}},a.a.createElement("i",{className:"iconfont icon-xuanzhong5"}),a.a.createElement("span",null,"\u7B54\u6848\u4FDD\u5B58\u6210\u529F")),a.a.createElement(Le,{editData:s}),H==null?void 0:H.map(function(Ee,Pe){return a.a.createElement("ul",{key:Pe,className:c.a.fill},a.a.createElement("li",null,"\u586B\u7A7A",Pe+1,":"),a.a.createElement("li",null,a.a.createElement(We,{disabled:P.checkState,value:Ee==null?void 0:Ee.answer_text,rows:3,onChange:function(we){return ke(we,Pe)}})))}),(s==null?void 0:s.user_score)&&a.a.createElement("div",{className:c.a.answer},a.a.createElement("div",null,"\u672C\u9898\u5F97\u5206\uFF1A",(s==null?void 0:s.user_score)==="0.0"?0:s==null?void 0:s.user_score,"\u5206")),!!(s!=null&&(i=s.standard_answer)!==null&&i!==void 0&&i.length)&&a.a.createElement("div",{className:c.a.analysis,style:{marginTop:"-20px"}},a.a.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A"),a.a.createElement("aside",null,Ne())),(s==null?void 0:s.analysis)&&a.a.createElement("div",{className:c.a.analysis},a.a.createElement("div",null,"\u89E3\u6790\uFF1A"),a.a.createElement("aside",null,a.a.createElement($.a,{value:s==null?void 0:s.analysis}))))},mt=Object(h.forwardRef)(at),Et=r("Ot1p"),vt=function(e,d){var i,l,v,P=e.data,F=e.callback,E=e.params;Object(h.useEffect)(function(){W(P)},[P]);var s=Object(h.useState)({}),q=Object(ne.a)(s,2),C=q[0],W=q[1],H=Object(h.useState)(!1),le=Object(ne.a)(H,2),z=le[0],ae=le[1],J=Object(h.useRef)(null),me=function(){var se=Object(Q.a)(g.a.mark(function ke(Ne){var Ee;return g.a.wrap(function(Ke){for(;;)switch(Ke.prev=Ke.next){case 0:ae(!1),Ee=Object(f.cloneDeep)(C),Ee.user_answer[0]=Ne,W(Ee),clearTimeout(J.current),J.current=setTimeout(Object(Q.a)(g.a.mark(function we(){var O,Rt;return g.a.wrap(function(rt){for(;;)switch(rt.prev=rt.next){case 0:return rt.next=2,Object(m.l)(E.examId,E==null||((O=E.exercise)===null||O===void 0)?void 0:O.ip_limit);case 2:return rt.next=4,Object(m.m)(E.examId);case 4:return rt.next=6,Object(u.a)("/api/exercise_questions/".concat(C.question_id,"/exercise_answers.json"),{method:"post",body:{answer_text:Ne}});case 6:Rt=rt.sent,F(Ee,Ne?1:0),Rt.status===0?ae(!0):Rt.status===-1&&Se.c.push("/exam/studentClient");case 9:case"end":return rt.stop()}},we)})),500);case 6:case"end":return Ke.stop()}},ke)}));return function(Ne){return se.apply(this,arguments)}}();return Object(h.useImperativeHandle)(d,function(){return{editData:C}}),a.a.createElement("div",{className:c.a.subjective},a.a.createElement("div",{className:c.a.tips,style:{opacity:z?1:0}},a.a.createElement("i",{className:"iconfont icon-xuanzhong5"}),a.a.createElement("span",null,"\u7B54\u6848\u4FDD\u5B58\u6210\u529F")),a.a.createElement(Le,{editData:C}),!E.checkState&&a.a.createElement(Et.a,{height:320,placeholder:"\u8BF7\u5F00\u59CB\u4F5C\u7B54",defaultValue:C==null||((i=C.user_answer)===null||i===void 0)?void 0:i[0],id:C==null?void 0:C.question_id,onChange:function(ke){return me(ke)}}),E.checkState&&a.a.createElement(a.a.Fragment,null,(C==null?void 0:C.user_answer)&&a.a.createElement("div",{className:c.a.answer},a.a.createElement("div",null,"\u6211\u7684\u4F5C\u7B54:"),a.a.createElement("aside",null,a.a.createElement($.a,{value:C==null||((l=C.user_answer)===null||l===void 0)?void 0:l[0]}))),(C==null?void 0:C.user_score)&&a.a.createElement("div",{className:c.a.answer},a.a.createElement("div",null,"\u672C\u9898\u5F97\u5206\uFF1A",(C==null?void 0:C.user_score)==="0.0"?0:C==null?void 0:C.user_score,"\u5206")),(C==null?void 0:C.standard_answer)&&a.a.createElement("div",{className:c.a.answer},a.a.createElement("div",null,"\u53C2\u8003\u7B54\u6848:"),a.a.createElement("aside",null,a.a.createElement($.a,{value:C==null||((v=C.standard_answer)===null||v===void 0)?void 0:v[0]}))),(C==null?void 0:C.analysis)&&a.a.createElement("div",{className:c.a.analysis},a.a.createElement("div",null,"\u89E3\u6790\uFF1A"),a.a.createElement("aside",null,a.a.createElement($.a,{value:C==null?void 0:C.analysis})))))},wt=Object(h.forwardRef)(vt),Nt=r("ZW9T"),Dt=r("J66h"),At=function(e,d){var i=e.data,l=e.params,v=e.callback,P=Object(h.useState)({}),F=Object(ne.a)(P,2),E=F[0],s=F[1],q=Object(h.useState)(""),C=Object(ne.a)(q,2),W=C[0],H=C[1],le=Object(h.useState)(!1),z=Object(ne.a)(le,2),ae=z[0],J=z[1],me=Object(h.useState)("none"),se=Object(ne.a)(me,2),ke=se[0],Ne=se[1],Ee=Object(h.useRef)();Object(h.useEffect)(function(){return window.addEventListener("message",Pe),function(){window.removeEventListener("message",Pe)}},[]),Object(h.useEffect)(function(){s(i)},[i]);var Pe=function(rt){rt.data==="backExercise"&&Ke()},Ke=function(){Ne("none"),H(""),v()},we=function(){var xt=Object(Q.a)(g.a.mark(function rt(){var it,bt;return g.a.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return J(!0),Ce.next=3,Object(m.l)(l.examId,l==null||((it=l.exercise)===null||it===void 0)?void 0:it.ip_limit);case 3:return Ce.next=5,Object(m.m)(l.examId);case 5:if(!E.hack_identifier){Ce.next=10;break}return Ce.next=8,Object(K.V)({id:E.hack_identifier});case 8:bt=Ce.sent,(bt==null?void 0:bt.status)===0&&(H("/myproblems/".concat(bt.identifier,"?type=exercises&sign=exam&exercisesId=").concat(l==null?void 0:l.examId,"&login=").concat(l==null?void 0:l.login,"&questionId=").concat(E.question_id)),Ne("block"));case 10:J(!1);case 11:case"end":return Ce.stop()}},rt)}));return function(){return xt.apply(this,arguments)}}(),O={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1};Object(h.useImperativeHandle)(d,function(){return{editData:E}});var Rt=[{title:"\u6D4B\u8BD5\u96C6",dataIndex:"key",align:"center"},{title:"\u8F93\u51FA",dataIndex:"error_msg",align:"center"},{title:"\u5F97\u5206",dataIndex:"sore",align:"center"}];return a.a.createElement("div",{className:c.a.program},a.a.createElement("iframe",{style:{display:ke},id:"iframeShixuns",className:c.a.iframe,src:W,ref:Ee,frameBorder:"0"}),a.a.createElement(Le,{editData:E}),a.a.createElement($.a,{value:E==null?void 0:E.description}),!l.checkState&&a.a.createElement("div",{className:c.a.customBtn},a.a.createElement(D.a,{loading:ae,onClick:we,type:"primary"},"\u8FDB\u5165\u7B54\u9898")),l.checkState&&a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:c.a.answer},a.a.createElement("div",null,"\u6700\u540E\u4E00\u6B21\u901A\u8FC7\u6D4B\u8BC4\u7684\u4EE3\u7801",a.a.createElement("span",{className:"c-grey-999"},"\uFF08\u672A\u901A\u5173\u5219\u4E3A\u6700\u540E\u4E00\u63D0\u4EA4\u8BC4\u6D4B\u7684\u4EE3\u7801\uFF09")),a.a.createElement("aside",null,a.a.createElement(Nt.b,{height:300,language:"python",theme:"vs-light",value:E!=null&&E.passed_code?Dt.Base64.decode(E==null?void 0:E.passed_code):"",options:O}))),(E==null?void 0:E.user_score)&&a.a.createElement("div",{className:c.a.answer},a.a.createElement("div",null,"\u672C\u9898\u5F97\u5206\uFF1A",(E==null?void 0:E.user_score)==="0.0"?0:E==null?void 0:E.user_score,"\u5206"))))},Ht=Object(h.forwardRef)(At),Xt=r("g9YV"),na=r("wCAj"),ye=r("miYZ"),st=r("tsqr"),Ge=r("HBuW"),Je=function(e,d){var i,l,v=e.data,P=e.callback,F=e.params;Object(h.useEffect)(function(){C(v)},[v]);var E=Object(h.useState)({}),s=Object(ne.a)(E,2),q=s[0],C=s[1],W=Object(h.useState)(""),H=Object(ne.a)(W,2),le=H[0],z=H[1],ae=Object(h.useState)(!1),J=Object(ne.a)(ae,2),me=J[0],se=J[1],ke=Object(h.useState)("none"),Ne=Object(ne.a)(ke,2),Ee=Ne[0],Pe=Ne[1],Ke=Object(h.useRef)();Object(h.useEffect)(function(){return window.addEventListener("message",we),function(){window.removeEventListener("message",we)}},[]),Object(h.useEffect)(function(){C(v)},[v]);var we=function(S){S.data==="backExercise"&&O()},O=function(){Pe("none"),z(""),P()},Rt={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1};Object(h.useImperativeHandle)(d,function(){return{editData:q}});var xt=function Ce(S,Ie){var je;S=(je=S)!==null&&je!==void 0&&je.includes(".json")?S:"".concat(S,".json"),Ue.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:a.a.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:function(){var Ot=Object(Q.a)(g.a.mark(function Ut(){var nt,Te;return g.a.wrap(function(Qe){for(;;)switch(Qe.prev=Qe.next){case 0:return Qe.next=2,Object(K.R)({url:S});case 2:if(nt=Qe.sent,nt){Qe.next=5;break}return Qe.abrupt("return");case 5:return st.b.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF01"),Qe.next=8,Object(Ge.A)({id:nt.shixun_identifier});case 8:if(Te=Qe.sent,!(Te!=null&&Te.game_identifier)){Qe.next=12;break}return it({shixun_identifier:Te==null?void 0:Te.game_identifier,question_id:Ie}),Qe.abrupt("return");case 12:(Te==null?void 0:Te.status)===2?Ce(Te==null?void 0:Te.message,Ie):(Te==null?void 0:Te.status)===3&&rt(Te==null?void 0:Te.message);case 13:case"end":return Qe.stop()}},Ut)}));function Ve(){return Ot.apply(this,arguments)}return Ve}()})},rt=function(S){Ue.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:a.a.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",S,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},it=function(){var Ce=Object(Q.a)(g.a.mark(function S(Ie){var je;return g.a.wrap(function(Ve){for(;;)switch(Ve.prev=Ve.next){case 0:return Ve.next=2,Object(Ge.A)({id:Ie.shixun_identifier});case 2:je=Ve.sent,je!=null&&je.game_identifier&&(z("/tasks/".concat(je.game_identifier,"?type=exercises&sign=exam&exercisesId=").concat(F.examId,"&questionId=").concat(Ie.question_id)),Pe("block")),(je==null?void 0:je.status)===-3?Object(m.k)():(je==null?void 0:je.status)===2?xt(je==null?void 0:je.message,Ie.question_id):(je==null?void 0:je.status)===3&&rt(je==null?void 0:je.message);case 5:case"end":return Ve.stop()}},S)}));return function(Ie){return Ce.apply(this,arguments)}}(),bt=function(){var Ce=Object(Q.a)(g.a.mark(function S(Ie){var je;return g.a.wrap(function(Ve){for(;;)switch(Ve.prev=Ve.next){case 0:return se(!0),Ve.next=3,Object(m.l)(F.examId,F==null||((je=F.exercise)===null||je===void 0)?void 0:je.ip_limit);case 3:return Ve.next=5,Object(m.m)(F.examId);case 5:Ie.redo?Ue.a.info({width:530,title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",content:a.a.createElement("div",{className:"tc font16"},"\u60A8\u4E4B\u524D\u5DF2\u7ECF\u6311\u6218\u8FC7\u8BE5\u5B9E\u8BAD\uFF0C\u8003\u8BD5\u8FC7\u7A0B\u4E2D\u9700\u8981\u91CD\u65B0\u6311\u6218"),onOk:function(){var Ut=Object(Q.a)(g.a.mark(function Te(){var ut,Qe;return g.a.wrap(function(Pt){for(;;)switch(Pt.prev=Pt.next){case 0:return Pt.next=2,Object(K.R)({id:Ie.myshixun_identifier,url:Ie.url});case 2:ut=Pt.sent,ut&&(Qe=Object(ie.a)(Object(ie.a)({},Ie),{},{shixun_identifier:ut.shixun_identifier}),it(Qe));case 4:case"end":return Pt.stop()}},Te)}));function nt(){return Ut.apply(this,arguments)}return nt}()}):it(Ie),se(!1);case 7:case"end":return Ve.stop()}},S)}));return function(Ie){return Ce.apply(this,arguments)}}(),yt=[{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"evaluate_count",align:"center"},{title:"\u8BE6\u7EC6\u4FE1\u606F",dataIndex:"outputs",align:"center",render:function(S,Ie){var je;return a.a.createElement("span",null,S==null||((je=S[0])===null||je===void 0)?void 0:je.output_detail)}}];return a.a.createElement("div",{className:c.a.practice},a.a.createElement("iframe",{style:{display:Ee},id:"iframeShixuns",className:c.a.iframe,src:le,ref:Ke,frameBorder:"0"}),a.a.createElement(Le,{editData:q}),q==null||((i=q.shixun)===null||i===void 0)?void 0:i.map(function(Ce,S){return a.a.createElement(N.a,{className:"font16",gutter:[0,20],key:S},a.a.createElement(X.a,{flex:"1"},S+1,". ",Ce.challenge_name," ",a.a.createElement("span",{className:"c-grey-999"},"(",Ce.challenge_score,"\u5206)")),a.a.createElement(X.a,{flex:"100px",className:"tr"},Ce.answer_status===0&&a.a.createElement("span",{className:"font16 c-grey-999"},"\u672A\u5B8C\u6210"),Ce.answer_status===1&&a.a.createElement("span",{className:"font16 c-grey-333"},"\u5DF2\u5B8C\u6210")))}),!F.checkState&&a.a.createElement("div",{className:c.a.customBtn},a.a.createElement(D.a,{loading:me,onClick:function(){return bt(q)},type:"primary"},"\u8FDB\u5165\u7B54\u9898")),F.checkState&&(q==null||((l=q.shixun_details)===null||l===void 0)?void 0:l.map(function(Ce,S){var Ie,je,Ot,Ve,Ut=Ce.shixun_detail,nt=Ut===void 0?[]:Ut,Te=Ce.stage_list,ut=Te===void 0?[]:Te,Qe=ut==null?void 0:ut.map(function(Lt,Pt){return Object(ie.a)(Object(ie.a)({},ut[Pt]),nt[Pt])});return console.log(Qe,"items"),a.a.createElement(h.Fragment,{key:S},a.a.createElement("div",{className:c.a.answer},a.a.createElement("div",null,"\u7B2C",S+1,"\u5173\uFF1A",nt==null||((Ie=nt[0])===null||Ie===void 0)?void 0:Ie.name),a.a.createElement("div",null,"\u672C\u5173\u5F97\u5206\uFF1A",ut==null||((je=ut[0])===null||je===void 0)?void 0:je.user_score,"\u5206")),a.a.createElement(na.a,{className:c.a.table,pagination:!1,dataSource:Qe,columns:yt}),!!(nt!=null&&(Ot=nt[0])!==null&&Ot!==void 0&&Ot.passed_code)&&a.a.createElement("div",{className:c.a.answer,style:{display:"block"}},a.a.createElement("div",{style:{marginBottom:16}},"\u6700\u540E\u4E00\u6B21\u901A\u8FC7\u6D4B\u8BC4\u7684\u4EE3\u7801",a.a.createElement("span",{className:"c-grey-999"},"\uFF08\u672A\u901A\u5173\u5219\u4E3A\u6700\u540E\u4E00\u63D0\u4EA4\u8BC4\u6D4B\u7684\u4EE3\u7801\uFF09")),a.a.createElement("aside",null,a.a.createElement(Nt.b,{height:300,language:"python",theme:"vs-light",value:nt==null||((Ve=nt[0])===null||Ve===void 0)?void 0:Ve.passed_code,options:Rt}))))})),(q==null?void 0:q.user_score)&&a.a.createElement("div",{className:c.a.answer},a.a.createElement("div",null,"\u672C\u9898\u5F97\u5206\uFF1A",(q==null?void 0:q.user_score)==="0.0"?0:q==null?void 0:q.user_score,"\u5206")))},_t=Object(h.forwardRef)(Je),x=Xe.a.Countdown,t=function(e){var d,i,l,v,P,F,E,s,q,C,W,H,le,z,ae,J,me,se,ke,Ne,Ee,Pe,Ke,we,O,Rt,xt,rt,it,bt,yt,Ce,S=e.location,Ie=Object(h.useState)(!1),je=Object(ne.a)(Ie,2),Ot=je[0],Ve=je[1],Ut=Object(h.useState)(!1),nt=Object(ne.a)(Ut,2),Te=nt[0],ut=nt[1],Qe=Object(h.useState)(!0),Lt=Object(ne.a)(Qe,2),Pt=Lt[0],qt=Lt[1],ra=Object(h.useState)(!1),ca=Object(ne.a)(ra,2),pa=ca[0],fa=ca[1],ma=Object(h.useState)(!1),va=Object(ne.a)(ma,2),ha=va[0],Ea=va[1],ia=Object(h.useState)({}),zt=Object(ne.a)(ia,2),fe=zt[0],It=zt[1],ea=Object(h.useState)({}),oa=Object(ne.a)(ea,2),R=oa[0],ta=oa[1],ga=Object(h.useState)([]),Kt=Object(ne.a)(ga,2),ct=Kt[0],la=Kt[1],ba=Object(h.useState)([]),ya=Object(ne.a)(ba,2),Vt=ya[0],Oa=ya[1],Me=Object(h.useState)(!1),De=Object(ne.a)(Me,2),de=De[0],Ze=De[1],Ye=Object(h.useRef)({}),ot=Object(h.useRef)(),ft=Object(h.useRef)(0),jt=Object(h.useState)(null),St=Object(ne.a)(jt,2),Tt=St[0],Yt=St[1],aa=Object(h.useState)(null),sa=Object(ne.a)(aa,2),Gt=sa[0],_a=sa[1],Ta=Object(Se.b)()._store.getState(),La=Ta.user,$t=La.userInfo;Object(h.useEffect)(function(){var Re;S!=null&&(Re=S.query)!==null&&Re!==void 0&&Re.examId&&Sa()},[S==null||((d=S.query)===null||d===void 0)?void 0:d.examId]),Object(h.useEffect)(function(){return Te&&(Object(b.d)(document.documentElement),setTimeout(function(){window.addEventListener("blur",xa,!1),document.addEventListener(Object(b.c)(),ja)},500),setTimeout(function(){console.log(b.a,44),Object(b.a)()||Ue.a.info({icon:null,okText:"\u6211\u77E5\u9053\u4E86",content:a.a.createElement("div",{className:"tc font16"},"\u672C\u573A\u8003\u8BD5\u5DF2\u5F00\u542F\u9632\u5207\u5C4F\u9650\u5236\uFF0C\u60A8\u5DF2\u5207\u5C4F",a.a.createElement("span",{className:"c-red"},ft.current+1),"\u6B21",a.a.createElement("br",null),"\u8BF7\u52FF\u5207\u5C4F\u53CA\u5237\u65B0\u9875\u9762"),onOk:function(){Object(b.d)(document.documentElement),Pa(ft.current+1)}})},1500)),function(){document.removeEventListener(Object(b.c)(),ja),window.removeEventListener("blur",xa,!1)}},[Te]),Object(h.useEffect)(function(){return fe!=null&&fe.q_position&&sessionStorage.setItem("answer_position",(fe==null?void 0:fe.q_position)||1),function(){sessionStorage.clear()}},[fe==null?void 0:fe.q_position]),Object(h.useEffect)(function(){return Object(Se.b)()._store.dispatch({type:"globalSetting/headerFooterToggle",payload:!1}),function(){Object(Se.b)()._store.dispatch({type:"globalSetting/headerFooterToggle",payload:!0})}},[]);var xa=function(ue){var ge,B;Object(b.a)()&&(!document.getElementById("iframeShixuns")||((ge=document.getElementById("iframeShixuns"))===null||ge===void 0||((B=ge.style)===null||B===void 0)?void 0:B.display)=="none")&&Object(b.b)()},Pa=function(){var Re=Object(Q.a)(g.a.mark(function ue(ge){var B,ce;return g.a.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return he.next=2,Object(K.P)({id:S==null||((B=S.query)===null||B===void 0)?void 0:B.examId});case 2:ge>(R==null||((ce=R.exercise)===null||ce===void 0)?void 0:ce.screen_num)?(Ue.a.destroyAll(),da(1)):ft.current=ge;case 3:case"end":return he.stop()}},ue)}));return function(ge){return Re.apply(this,arguments)}}(),Ma=function(){var Re=Object(Q.a)(g.a.mark(function ue(ge){var B,ce,Fe,he,qe;return g.a.wrap(function(pt){for(;;)switch(pt.prev=pt.next){case 0:Ue.a.destroyAll(),qe=Ue.a.info({keyboard:!1,maskClosable:!1,okText:a.a.createElement("span",null,"\u56DE\u5230\u8003\u8BD5\uFF08",a.a.createElement("span",{style:{display:"inline-block"}},a.a.createElement(x,{onFinish:function(){return Pa(ge)},valueStyle:{fontSize:14,lineHeight:1.4,color:"#FFF",display:"inline-block"},format:"ss",value:Date.now()+((R==null||((B=R.exercise)===null||B===void 0)?void 0:B.screen_sec)+1)*1e3})),"S\uFF09"),content:a.a.createElement("div",null,"\u60A8\u5DF2\u5207\u5C4F",a.a.createElement("span",{className:"c-red"},ge-1),"\u6B21\uFF0C\u5207\u5C4F\u8D85\u8FC7",a.a.createElement("span",{className:"c-red"},R==null||((ce=R.exercise)===null||ce===void 0)?void 0:ce.screen_num),"\u6B21\u5C06\u5F3A\u5236\u4EA4\u5377,",a.a.createElement("span",{className:"c-red"},R==null||((Fe=R.exercise)===null||Fe===void 0)?void 0:Fe.screen_sec),"\u79D2\u5185\u56DE\u5230",a.a.createElement("br",null),a.a.createElement("span",{style:{marginLeft:38}},"\u8003\u8BD5\u4E0D\u8BA1\u5207\u5C4F\u6B21\u6570\u3002")),onOk:function(){var ht=Object(Q.a)(g.a.mark(function Wt(){return g.a.wrap(function(Zt){for(;;)switch(Zt.prev=Zt.next){case 0:Object(b.d)(document.documentElement),qe.destroy();case 2:case"end":return Zt.stop()}},Wt)}));function Qt(){return ht.apply(this,arguments)}return Qt}()}),setTimeout(function(){var ht;qe.update({okText:a.a.createElement("span",null,"\u56DE\u5230\u8003\u8BD5"),content:a.a.createElement("div",null,"\u60A8\u5DF2\u5207\u5C4F",a.a.createElement("span",{className:"c-red"},ge),"\u6B21\uFF0C\u5207\u5C4F\u8D85\u8FC7",a.a.createElement("span",{className:"c-red"},R==null||((ht=R.exercise)===null||ht===void 0)?void 0:ht.screen_num),"\u6B21\u5C06\u5F3A\u5236\u4EA4\u5377")})},((R==null||((he=R.exercise)===null||he===void 0)?void 0:he.screen_sec)+1)*1e3);case 3:case"end":return pt.stop()}},ue)}));return function(ge){return Re.apply(this,arguments)}}(),ja=function(ue){document.fullscreenElement?console.log("\u8FDB\u5165\u5168\u5C4F"):Ma(ft.current+1)},ka=function(ue){var ge=[];return ue.forEach(function(B){ge=ge.concat(B.items)}),ge},Sa=function(){var Re=Object(Q.a)(g.a.mark(function ue(){var ge,B,ce,Fe,he,qe,Mt,pt,ht,Qt,Wt,Ft,Zt,wa,Ra;return g.a.wrap(function(Bt){for(;;)switch(Bt.prev=Bt.next){case 0:return Ea(!0),Bt.next=3,Object(u.a)("/api/students/exercises/".concat(S==null||((ge=S.query)===null||ge===void 0)?void 0:ge.examId,"/start_answer.json"),{method:"get"});case 3:if(B=Bt.sent,!(B!=null&&B.exercise_question_types)){Bt.next=22;break}if(!(((ce=B.exercise)===null||ce===void 0?void 0:ce.left_time)===0)){Bt.next=8;break}return da(1),Bt.abrupt("return");case 8:if(!(((Fe=B.exercise)===null||Fe===void 0?void 0:Fe.exercise_status)<3&&B.exercise.is_normal)){Bt.next=11;break}return Bt.next=11,Object(m.m)(S==null||((Qt=S.query)===null||Qt===void 0)?void 0:Qt.examId,"\u8003\u8BD5\u65F6\u95F4\u5DF2\u5230\uFF0C\u7CFB\u7EDF\u5DF2\u81EA\u52A8\u6536\u5377\u3002");case 11:Yt(((he=B.exercise)===null||he===void 0?void 0:he.left_time)&&Date.now()+(B==null||((qe=B.exercise)===null||qe===void 0)?void 0:qe.left_time)*1e3),_a((Mt=B.exercise)===null||Mt===void 0?void 0:Mt.left_time),Wt=ka(B==null?void 0:B.exercise_question_types),Ft=sessionStorage.getItem("answer_position")||1,ta(B),la((B==null?void 0:B.question_status)||[]),Oa(Wt),It((Wt==null?void 0:Wt[Number(Ft)-1])||{}),Ea(!1),Ze((B==null||((pt=B.exercise)===null||pt===void 0)?void 0:pt.user_exercise_status)===1),(B==null||((ht=B.exercise)===null||ht===void 0)?void 0:ht.user_exercise_status)!==1&&(Ve(!!(B!=null&&(Zt=B.exercise)!==null&&Zt!==void 0&&Zt.open_camera)),ut(!!(B!=null&&(wa=B.exercise)!==null&&wa!==void 0&&wa.screen_open)),ft.current=(B==null||((Ra=B.exercise)===null||Ra===void 0)?void 0:Ra.used_screen_num)||0);case 22:case"end":return Bt.stop()}},ue)}));return function(){return Re.apply(this,arguments)}}(),ua=function(ue,ge){var B=ct.map(function(Fe){return Fe.ques_id===(ue==null?void 0:ue.question_id)?Object(ie.a)(Object(ie.a)({},Fe),{},{ques_status:ge}):Fe}),ce=Vt.map(function(Fe){return Fe.question_id===(ue==null?void 0:ue.question_id)?ue:Fe});la(B),Oa(ce)},Jt=function(ue,ge){var B,ce,Fe,he,qe=R==null||((B=R.exercise_question_types)===null||B===void 0)?void 0:B.find(function(pt){return pt.question_type===ge}),Mt=R==null||((ce=R.exercise_question_types)===null||ce===void 0)?void 0:ce.findIndex(function(pt){return pt.question_type===ge});return a.a.createElement(h.Fragment,null,a.a.createElement("span",{className:"blod font14 c-grey-333"},Object(m.P)(Mt+1),"\u3001",ue,"\uFF08\u5171",qe==null||((Fe=qe.items)===null||Fe===void 0)?void 0:Fe.length,"\u9898\uFF0C\u5171",qe==null?void 0:qe.score,"\u5206\uFF09"),a.a.createElement("ul",{className:re.a.answerSheet,key:ge},qe==null||((he=qe.items)===null||he===void 0)?void 0:he.map(function(pt,ht){var Qt=ct!=null&&ct.some(function(Ft){return Ft.ques_id===pt.question_id&&!!Ft.ques_status})?re.a.active:"",Wt=!!(ct!=null&&ct.some(function(Ft){return Ft.ques_id===pt.question_id&&!!Ft.is_marked}));if(pt.question_type===ge)return a.a.createElement("li",{onClick:function(){return It(Vt[pt.q_position-1])},key:ht,className:Qt},a.a.createElement("span",null,pt.q_position),Wt&&a.a.createElement("i",{className:"iconfont icon-biaoji"}))})))},Na=function(ue){return a.a.createElement(h.Fragment,null,ue.question_type===0&&Jt("\u5355\u9009\u9898",0),ue.question_type===1&&Jt("\u591A\u9009\u9898",1),ue.question_type===2&&Jt("\u5224\u65AD\u9898",2),ue.question_type===3&&Jt("\u586B\u7A7A\u9898",3),ue.question_type===4&&Jt("\u7B80\u7B54\u9898",4),ue.question_type===5&&Jt("\u5B9E\u8BAD\u9898",5),ue.question_type===6&&Jt("\u7F16\u7A0B\u9898",6))},Aa=function(){var ue,ge,B,ce,Fe,he,qe;return a.a.createElement(h.Fragment,null,fe.question_type===0&&a.a.createElement(et,{key:fe==null?void 0:fe.question_id,ref:Ye,data:fe,callback:ua,params:{checkState:de,examId:S==null||((ue=S.query)===null||ue===void 0)?void 0:ue.examId,exercise:R==null?void 0:R.exercise}}),fe.question_type===1&&a.a.createElement(gt,{key:fe==null?void 0:fe.question_id,ref:Ye,data:fe,callback:ua,params:{checkState:de,examId:S==null||((ge=S.query)===null||ge===void 0)?void 0:ge.examId,exercise:R==null?void 0:R.exercise}}),fe.question_type===2&&a.a.createElement($e,{key:fe==null?void 0:fe.question_id,ref:Ye,data:fe,callback:ua,params:{checkState:de,examId:S==null||((B=S.query)===null||B===void 0)?void 0:B.examId,exercise:R==null?void 0:R.exercise}}),fe.question_type===3&&a.a.createElement(mt,{key:fe==null?void 0:fe.question_id,ref:Ye,data:fe,callback:ua,params:{checkState:de,examId:S==null||((ce=S.query)===null||ce===void 0)?void 0:ce.examId,exercise:R==null?void 0:R.exercise}}),fe.question_type===4&&a.a.createElement(wt,{key:fe==null?void 0:fe.question_id,ref:Ye,data:fe,callback:ua,params:{checkState:de,examId:S==null||((Fe=S.query)===null||Fe===void 0)?void 0:Fe.examId,exercise:R==null?void 0:R.exercise}}),fe.question_type===5&&a.a.createElement(_t,{key:fe==null?void 0:fe.question_id,params:{examId:S==null||((he=S.query)===null||he===void 0)?void 0:he.examId,login:$t==null?void 0:$t.login,checkState:de,exercise:R==null?void 0:R.exercise},ref:Ye,data:fe,callback:Sa}),fe.question_type===6&&a.a.createElement(Ht,{key:fe==null?void 0:fe.question_id,params:{examId:S==null||((qe=S.query)===null||qe===void 0)?void 0:qe.examId,login:$t==null?void 0:$t.login,checkState:de,exercise:R==null?void 0:R.exercise},ref:Ye,data:fe,callback:Sa}))},Da=function(){var Re=Object(Q.a)(g.a.mark(function ue(ge){return g.a.wrap(function(ce){for(;;)switch(ce.prev=ce.next){case 0:if(!(ge==="prev")){ce.next=3;break}return It(Vt[fe.q_position-2]),ce.abrupt("return");case 3:It(Vt[fe.q_position]);case 4:case"end":return ce.stop()}},ue)}));return function(ge){return Re.apply(this,arguments)}}(),da=function(){var Re=Object(Q.a)(g.a.mark(function ue(ge){var B,ce;return g.a.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return he.next=2,Object(u.a)("/api/students/exercises/".concat(S==null||((B=S.query)===null||B===void 0)?void 0:B.examId,"/commit_exercise.json"),{method:"post",body:{commit_method:ge}});case 2:ce=he.sent,(ce==null?void 0:ce.status)===0&&(Ve(!1),Object(b.b)(),Se.c.replace("/exam/succeed"));case 4:case"end":return he.stop()}},ue)}));return function(ge){return Re.apply(this,arguments)}}(),Ua=function(){var Re=Object(Q.a)(g.a.mark(function ue(){var ge,B,ce;return g.a.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return he.next=2,Object(m.m)(S==null||((ge=S.query)===null||ge===void 0)?void 0:ge.examId);case 2:return he.next=4,Object(u.a)("/api/students/exercises/".concat(S==null||((B=S.query)===null||B===void 0)?void 0:B.examId,"/check_status.json"),{method:"get"});case 4:ce=he.sent,(ce==null?void 0:ce.status)===0&&((ce==null?void 0:ce.left_time)===0?da(2):Yt((ce==null?void 0:ce.left_time)&&Date.now()+(ce==null?void 0:ce.left_time)*1e3));case 6:case"end":return he.stop()}},ue)}));return function(){return Re.apply(this,arguments)}}(),Ca=function(){var Re=Object(Q.a)(g.a.mark(function ue(){var ge,B;return g.a.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:return Fe.next=2,Object(u.a)("/api/students/exercises/".concat(S==null||((ge=S.query)===null||ge===void 0)?void 0:ge.examId,"/check_status.json"),{method:"get"});case 2:B=Fe.sent,(B==null?void 0:B.status)===0&&((B==null?void 0:B.left_time)===0?da(1):Ue.a.confirm({centered:!0,width:440,okText:"\u786E\u8BA4",keyboard:!1,cancelText:"\u53D6\u6D88",icon:null,title:"\u63D0\u793A",className:"custom-modal-divider",content:"\u5F53\u524D\u8003\u8BD5\u5269\u4F59".concat(Math.floor((B==null?void 0:B.left_time)/60),"\u5206\u949F\uFF0C\u786E\u5B9A\u8981\u73B0\u5728\u4EA4\u5377\u5417\uFF1F"),onOk:function(){var he=Object(Q.a)(g.a.mark(function Mt(){return g.a.wrap(function(ht){for(;;)switch(ht.prev=ht.next){case 0:return ht.abrupt("return",da(1));case 1:case"end":return ht.stop()}},Mt)}));function qe(){return he.apply(this,arguments)}return qe}(),onCancel:function(){var he=Object(Q.a)(g.a.mark(function Mt(){return g.a.wrap(function(ht){for(;;)switch(ht.prev=ht.next){case 0:return ht.abrupt("return",Yt((B==null?void 0:B.left_time)&&Date.now()+(B==null?void 0:B.left_time)*1e3));case 1:case"end":return ht.stop()}},Mt)}));function qe(){return he.apply(this,arguments)}return qe}()}));case 4:case"end":return Fe.stop()}},ue)}));return function(){return Re.apply(this,arguments)}}(),Ia=function(){var Re=Object(Q.a)(g.a.mark(function ue(){var ge,B;return g.a.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:return Fe.next=2,Object(m.m)(S==null||((ge=S.query)===null||ge===void 0)?void 0:ge.examId);case 2:if(B=[],Vt.forEach(function(he,qe){var Mt=ct.findIndex(function(pt){return pt.ques_id===he.question_id&&!pt.ques_status});Mt>-1&&B.push(qe+1)}),B.length){Fe.next=7;break}return Ue.a.confirm({centered:!0,width:440,okText:"\u68C0\u67E5\u4E00\u4E0B",cancelText:"\u4EA4\u5377",icon:null,title:"\u63D0\u793A",keyboard:!1,className:"custom-modal-divider",content:"\u4EA4\u5377\u540E\u65E0\u6CD5\u4FEE\u6539\u8BD5\u5377\u7B54\u6848\uFF0C\u786E\u5B9A\u8981\u73B0\u5728\u4EA4\u5377\u5417\uFF1F",onOk:function(){return Promise.resolve()},onCancel:Ca}),Fe.abrupt("return");case 7:Ue.a.confirm({centered:!0,width:440,okText:"\u7EE7\u7EED\u7B54\u9898",cancelText:"\u4EA4\u5377",icon:null,title:"\u63D0\u793A",keyboard:!1,className:"custom-modal-divider",content:a.a.createElement("div",null,a.a.createElement("p",{style:{color:"#FF8C29"}},"\u4F60\u8FD8\u6709\u4EE5\u4E0B",B.length,"\u9053\u9898\u672A\u5B8C\u6210\uFF0C\u786E\u5B9A\u8981\u63D0\u4EA4\u8BD5\u5377\u5417\uFF1F"),a.a.createElement("div",null,B.map(function(he){return a.a.createElement("div",{onClick:function(){It(Vt[he-1]),Ue.a.destroyAll()},className:re.a.listBtn,key:he},he)}))),onOk:function(){return Promise.resolve()},onCancel:Ca});case 8:case"end":return Fe.stop()}},ue)}));return function(){return Re.apply(this,arguments)}}(),Fa=function(){var Re=Object(Q.a)(g.a.mark(function ue(){var ge,B,ce;return g.a.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return he.next=2,Object(u.a)("/api/students/exercises/".concat(S==null||((ge=S.query)===null||ge===void 0)?void 0:ge.examId,"/mark"),{method:"post",body:{exercise_question_id:fe==null?void 0:fe.question_id}});case 2:B=he.sent,B.status===0&&(ce=ct.map(function(qe){return qe.ques_id===(fe==null?void 0:fe.question_id)?Object(ie.a)(Object(ie.a)({},qe),{},{is_marked:!qe.is_marked}):qe}),la(ce));case 4:case"end":return he.stop()}},ue)}));return function(){return Re.apply(this,arguments)}}();Object(h.useEffect)(function(){if(Gt>300)var Re=setInterval(function(){Gt--,S!=null&&S.pathname.includes("studentAnswer")||clearInterval(Re),Gt===300&&(clearInterval(Re),G.a.open({message:"\u6E29\u99A8\u63D0\u793A",description:a.a.createElement("span",null,"\u8DDD\u79BB\u8003\u8BD5\u7ED3\u675F\u8FD8\u5269\u4F59",a.a.createElement(x,{value:Date.now()+300*1e3,onFinish:Ua})),duration:299}))},1e3)},[Gt]);var Wa=function(){var ue;(ue=ot.current)===null||ue===void 0||ue.handlePhoto()},Ba=function(){var Re=Object(Q.a)(g.a.mark(function ue(){var ge,B,ce;return g.a.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return he.next=2,Object(m.m)(S==null||((ge=S.query)===null||ge===void 0)?void 0:ge.examId);case 2:return he.next=4,Object(u.a)("/api/students/exercises/".concat(S==null||((B=S.query)===null||B===void 0)?void 0:B.examId,"/check_status.json"),{method:"get"});case 4:ce=he.sent,(ce==null?void 0:ce.status)===0&&Yt((ce==null?void 0:ce.left_time)&&Date.now()+(ce==null?void 0:ce.left_time)*1e3);case 6:case"end":return he.stop()}},ue)}));return function(){return Re.apply(this,arguments)}}(),$a=!!(ct!=null&&ct.some(function(Re){return Re.ques_id===fe.question_id&&!!Re.is_marked}));return a.a.createElement(Y.a,{loading:!1,paragraph:{rows:5},active:!0,className:"p20"},a.a.createElement(h.Fragment,null,a.a.createElement("div",{className:re.a.header},a.a.createElement("div",{className:re.a.num,style:{fontWeight:600,marginRight:20}},R==null||((i=R.exercise)===null||i===void 0)?void 0:i.user_name),a.a.createElement("div",{className:re.a.num},a.a.createElement("div",null,"\u8003\u53F7\uFF1A",(R==null||((l=R.exercise)===null||l===void 0)?void 0:l.exercise_no)||"--"," "),a.a.createElement("div",null,"\u5B66\u53F7\uFF1A",R==null||((v=R.exercise)===null||v===void 0)?void 0:v.student_id," ")),a.a.createElement("div",{title:R==null||((P=R.exercise)===null||P===void 0)?void 0:P.exercise_name,className:re.a.name},R==null||((F=R.exercise)===null||F===void 0)?void 0:F.exercise_name),a.a.createElement("div",{style:{visibility:de?"hidden":"visible"},className:re.a.time},a.a.createElement("span",null,"\u5269\u4F59\u7B54\u9898\u65F6\u95F4\uFF1A"),a.a.createElement("span",{className:re.a.s2},a.a.createElement(x,{value:Tt,onFinish:Ua})),a.a.createElement(D.a,{size:"small",ghost:!0,type:"primary",className:"ml10",disabled:de,onClick:Ba},"\u5237\u65B0")),a.a.createElement(D.a,{className:re.a.btn,style:{visibility:de?"hidden":"visible"},disabled:de,onClick:Ia,type:"primary"},"\u4EA4\u5377")),a.a.createElement("div",{className:re.a.wrap},de&&a.a.createElement("div",{className:re.a.back},a.a.createElement("span",{onClick:function(){return Se.c.push("/exam/studentClient")}},a.a.createElement("i",{className:"iconfont icon-fanhui1"})," \u8FD4\u56DE\u8003\u8BD5\u5217\u8868"))),a.a.createElement("div",{className:re.a.wrap,style:{marginTop:"0px"}},a.a.createElement("div",{className:re.a.left,style:{width:Pt?280:0}},a.a.createElement("section",{style:{opacity:Pt?1:0}},Ot&&a.a.createElement("div",{className:re.a.camera},a.a.createElement(T.a,{number:(R==null||((E=R.exercise)===null||E===void 0)?void 0:E.photo_count)-(R==null||((s=R.exercise)===null||s===void 0)?void 0:s.take_photo),take_photo:R==null||((q=R.exercise)===null||q===void 0)?void 0:q.take_photo,ref:ot,width:"232",custom:{categoryId:S==null||((C=S.query)===null||C===void 0)?void 0:C.examId,login:$t==null?void 0:$t.login},time:(W=R.exercise)===null||W===void 0?void 0:W.left_time,supportCamera:function(ue){console.log(ue,333),ue===2||ue===1&&(Object(b.a)()&&Object(b.b)(),setTimeout(function(){return Se.c.replace("/exam/studentClient")},2e3))}})),de&&((R==null?void 0:R.user_score)||(R==null||((H=R.exercise)===null||H===void 0)?void 0:H.can_view_scores))&&a.a.createElement("div",{className:re.a.totalScore},(R==null?void 0:R.user_score)&&a.a.createElement(h.Fragment,null,a.a.createElement("span",null,R==null?void 0:R.user_score),a.a.createElement("span",null,"\u8003\u8BD5\u5F97\u5206")),(R==null||((le=R.exercise)===null||le===void 0)?void 0:le.can_view_scores)&&a.a.createElement(xe.Link,{className:"font14",to:"/exam/studentList/".concat(S==null||((z=S.query)===null||z===void 0)?void 0:z.examId)},"\u67E5\u770B\u6210\u7EE9\u7EDF\u8BA1>>")),de&&a.a.createElement("div",{className:re.a.totalAnswerScore},a.a.createElement("span",null,"\u7B54\u9898",a.a.createElement("i",null,ct==null||((ae=ct.filter(function(Re){return Re.ques_status}))===null||ae===void 0)?void 0:ae.length)),a.a.createElement("span",null,"\u5171",a.a.createElement("i",null,(R==null||((J=R.exercise_types)===null||J===void 0)?void 0:J.q_counts)||(R==null||((me=R.exercise_scores)===null||me===void 0||((se=me.exercise_types)===null||se===void 0))?void 0:se.q_counts)),"\u9898\uFF0C\u6EE1\u5206",a.a.createElement("i",null,(R==null||((ke=R.exercise_types)===null||ke===void 0)?void 0:ke.q_scores)||(R==null||((Ne=R.exercise_scores)===null||Ne===void 0||((Ee=Ne.exercise_types)===null||Ee===void 0))?void 0:Ee.q_scores)),"\u5206")),a.a.createElement("div",{className:"relative",style:{minHeight:236}},a.a.createElement("aside",{className:"bg-white p20"},!de&&a.a.createElement("aside",{className:re.a.answerInfo},a.a.createElement(N.a,null,a.a.createElement(X.a,{span:12},"\u7B54\u9898\u8FDB\u5EA6"),a.a.createElement(X.a,{span:12,className:"tr c-light-primary"},ct==null||((Pe=ct.filter(function(Re){return!!Re.ques_status}))===null||Pe===void 0)?void 0:Pe.length," / ",R==null||((Ke=R.exercise_types)===null||Ke===void 0)?void 0:Ke.q_counts),a.a.createElement(X.a,{span:24},a.a.createElement(M.a,{trailColor:"#c3ced2",percent:(ct==null||((we=ct.filter(function(Re){return!!Re.ques_status}))===null||we===void 0)?void 0:we.length)/(R==null||((O=R.exercise_types)===null||O===void 0)?void 0:O.q_counts)*100,showInfo:!1})),a.a.createElement(X.a,null,a.a.createElement("span",{className:"c-grey-333"},"\u5171 ",a.a.createElement("span",{className:"c-light-primary"},(R==null||((Rt=R.exercise_types)===null||Rt===void 0)?void 0:Rt.q_counts)||(R==null||((xt=R.exercise_scores)===null||xt===void 0||((rt=xt.exercise_types)===null||rt===void 0))?void 0:rt.q_counts))," \u9898\uFF1A"),a.a.createElement("span",{className:"c-grey-333"},"\u6EE1\u5206 ",a.a.createElement("span",{className:"c-light-primary"},(R==null||((it=R.exercise_types)===null||it===void 0)?void 0:it.q_scores)||(R==null||((bt=R.exercise_scores)===null||bt===void 0||((yt=bt.exercise_types)===null||yt===void 0))?void 0:yt.q_scores))," \u5206")))),a.a.createElement("aside",{style:{maxHeight:360,overflow:"auto"}},R==null||((Ce=R.exercise_question_types)===null||Ce===void 0)?void 0:Ce.map(function(Re){return a.a.createElement(h.Fragment,{key:Re.question_type},Na(Re))}))))),a.a.createElement("div",{className:re.a.fold,onClick:function(){return qt(!Pt)}},Pt&&a.a.createElement("span",{className:"icon-zuojiantou iconfont c-grey-c"}),!Pt&&a.a.createElement("span",{className:"icon-youjiantou iconfont c-grey-c"}))),a.a.createElement("div",{className:re.a.right},a.a.createElement("div",{style:{height:de?"calc(100vh - 176px)":"calc(100vh - 108px)"},className:re.a.content},Aa()),a.a.createElement("div",{className:re.a.btns},!de&&a.a.createElement(D.a,{onClick:Fa,ghost:!0,type:"primary"},$a?"\u53D6\u6D88\u6807\u8BB0":"\u6807\u8BB0\u8BD5\u9898"),fe.q_position>1&&a.a.createElement(D.a,{onClick:function(){return Da("prev")},type:"primary"},"\u4E0A\u4E00\u9898"),fe.q_position: Unmounted during event!");return ie}},fV52:function(Be,I,r){"use strict";var w=r("cIOH"),Y=r.n(w),k=r("6/k+"),N=r.n(k)},gbW8:function(Be,I,r){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.findInArray=w,I.isFunction=Y,I.isNum=k,I.int=N,I.dontSetMe=Z;function w(M,n){for(var X=0,te=M.length;X=0)continue;if(!Object.prototype.propertyIsEnumerable.call(_,U))continue;j[U]=_[U]}}return j}function ne(_,y){if(_==null)return{};var j={},U=Object.keys(_),L,V;for(V=0;V=0)continue;j[L]=_[L]}return j}function Oe(_,y){var j=Object.keys(_);if(Object.getOwnPropertySymbols){var U=Object.getOwnPropertySymbols(_);y&&(U=U.filter(function(L){return Object.getOwnPropertyDescriptor(_,L).enumerable})),j.push.apply(j,U)}return j}function Xe(_){for(var y=1;y_.length)&&(y=_.length);for(var j=0,U=new Array(y);j, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element."),L}return u(j,[{key:"componentDidMount",value:function(){typeof window.SVGElement!="undefined"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}},{key:"componentWillUnmount",value:function(){this.setState({dragging:!1})}},{key:"findDOMNode",value:function(){var L,V,ve;return(L=(V=this.props)===null||V===void 0||((ve=V.nodeRef)===null||ve===void 0)?void 0:ve.current)!==null&&L!==void 0?L:N.default.findDOMNode(this)}},{key:"render",value:function(){var L,V=this.props,ve=V.axis,_e=V.bounds,pe=V.children,Le=V.defaultPosition,dt=V.defaultClassName,et=V.defaultClassNameDragging,lt=V.defaultClassNameDragged,gt=V.position,tt=V.positionOffset,$e=V.scale,kt=Ue(V,ee),Ct={},ze=null,We=Boolean(gt),at=!We||this.state.dragging,mt=gt||Le,Et={x:(0,n.canDragX)(this)&&at?this.state.x:mt.x,y:(0,n.canDragY)(this)&&at?this.state.y:mt.y};this.state.isElementSVG?ze=(0,M.createSVGTransform)(Et,tt):Ct=(0,M.createCSSTransform)(Et,tt);var vt=(0,Z.default)(pe.props.className||"",dt,(L={},$(L,et,this.state.dragging),$(L,lt,this.state.dragged),L));return Y.createElement(te.default,be({},kt,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),Y.cloneElement(Y.Children.only(pe),{className:vt,style:Xe(Xe({},pe.props.style),Ct),transform:ze}))}}],[{key:"getDerivedStateFromProps",value:function(L,V){var ve=L.position,_e=V.prevPropsPosition;return ve&&(!_e||ve.x!==_e.x||ve.y!==_e.y)?((0,D.default)("Draggable: getDerivedStateFromProps %j",{position:ve,prevPropsPosition:_e}),{x:ve.x,y:ve.y,prevPropsPosition:Xe({},ve)}):null}}]),j}(Y.Component);I.default=oe,$(oe,"displayName","Draggable"),$(oe,"propTypes",Xe(Xe({},te.default.propTypes),{},{axis:k.default.oneOf(["both","x","y","none"]),bounds:k.default.oneOfType([k.default.shape({left:k.default.number,right:k.default.number,top:k.default.number,bottom:k.default.number}),k.default.string,k.default.oneOf([!1])]),defaultClassName:k.default.string,defaultClassNameDragging:k.default.string,defaultClassNameDragged:k.default.string,defaultPosition:k.default.shape({x:k.default.number,y:k.default.number}),positionOffset:k.default.shape({x:k.default.oneOfType([k.default.number,k.default.string]),y:k.default.oneOfType([k.default.number,k.default.string])}),position:k.default.shape({x:k.default.number,y:k.default.number}),className:X.dontSetMe,style:X.dontSetMe,transform:X.dontSetMe})),$(oe,"defaultProps",Xe(Xe({},te.default.defaultProps),{},{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}))},sS6v:function(Be,I,r){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.default=w;function w(){var Y}}}]); +`),insertTextRules:g.languages.CompletionItemInsertTextRule.InsertAsSnippet}],T=D(g,Re,u,re,m);return{suggestions:T}}})},G="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";function ie(g){return/^\d+$/.test(g)?"".concat(g,"px"):g}function Q(){}var be=!1,Ue={"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"};function ne(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],h=g;if(Array.isArray(g)){for(var a=0;a0||e.target.offsetWidth>0)&&$e.current.instance.layout()}}catch(d){o.e(d)}finally{o.f()}}),x.observe(tt.current)),x}function mt(){k.b.warn(decodeURIComponent(G))}Object(n.useEffect)(function(){var x=$e.current.instance;if(Se!=null&&x&&ze){var t=x.getModel();t&&Se!==t.getValue()&&(be=!0,t.setValue(Se),x.layout(),be=!1)}},[Se,ze,$e.current]);function Et(){var x=$e.current.instance;if(x){var t=x.getSelection(),o=$e.current.pastePos||{},p=new Oe.Range(o.startLineNumber||t.endLineNumber,o.startColumn||t.endColumn,o.endLineNumber||t.endLineNumber,o.endColumn||t.endColumn);setTimeout(function(){x.executeEdits("",[{range:p,text:""}])},300)}}function vt(x){(window.navigator.platform.match("Mac")?x.metaKey:x.ctrlKey)&&x.keyCode==83&&(x.preventDefault(),_())}var wt=function(){if(j&&$e.current.instance){var t=$e.current.instance.getContentHeight();Je(t0||_e.target.offsetWidth>0)&&j.layout()}}catch(pe){V.e(pe)}finally{V.f()}}),U.observe(K.current)),U}Object(n.useEffect)(function(){K.current&&r.e(26).then(r.t.bind(null,"M/lh",7)).then(function(j){Oe=j;var U=Oe.editor.createDiffEditor(K.current,Object(S.a)({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",ignoreTrimWhitespace:!1,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},T));f(U);var L=$(U);return function(){U.dispose();var V=U.getModel();V&&V.dispose(),L.unobserve(K.current)}})},[]),Object(n.useEffect)(function(){c&&c.setModel({original:Oe.editor.createModel(Se,u),modified:Oe.editor.createModel(Re,u)})},[Se,Re,u,c]);var oe=ie(a),_=ie(re),y={width:oe,height:_};return X.a.createElement("div",{className:"my-diff-editor",ref:K,style:y})}},apBC:function(Be,I,r){Be.exports={flex_box_center:"flex_box_center___o_fdQ",flex_space_between:"flex_space_between___1ybQM",flex_box_vertical_center:"flex_box_vertical_center___20cex",flex_box_center_end:"flex_box_center_end___1layX",flex_box_column:"flex_box_column___17Gww",listBtn:"listBtn___32BFF",active:"active___1k7CR",header:"header___1ipBp",name:"name___OPb4Y",btn:"btn___3nWbs",time:"time___3WwxJ",s2:"s2___As24t",wrap:"wrap___Et-3q",left:"left___2iDNp",camera:"camera___3J-pC",totalScore:"totalScore___2tAU0",totalAnswerScore:"totalAnswerScore___2TAb4",answerInfo:"answerInfo___3TfSb",answerSheet:"answerSheet___R-JDH",fold:"fold___3rQR4",back:"back___25GC1",right:"right___3jGbP",content:"content___2I3Ew",btns:"btns___1u_wH"}},dejd:function(Be,I,r){},doQp:function(Be,I,r){"use strict";var S=r("pzsr"),Y=S.default,k=S.DraggableCore;Be.exports=Y,Be.exports.default=Y,Be.exports.DraggableCore=k},ebz4:function(Be,I,r){"use strict";r.r(I);var S=r("cWXX"),Y=r("/ezw"),k=r("14J3"),N=r("BMrR"),Z=r("MXD1"),M=r("CFYs"),n=r("jCWc"),X=r("kPKH"),te=r("+L6B"),D=r("2/Rp"),ee=r("/xke"),G=r("TeRw"),ie=r("XEnU"),Q=r("5Tp6"),be=r("2qtc"),Ue=r("kLXV"),ne=r("k16G"),Oe=r("aHsQ"),Xe=r("sGsY"),He=r("c1Ei"),g=r.n(He),h=r("q1tI"),a=r.n(h),Ae=r("apBC"),re=r.n(Ae),Se=r("9kvl"),Re=r("uYtH"),u=r("ErOA"),m=r("1vsH"),T=r("BlwA"),K=r("V0Rq"),b=r("bntm"),A=r("Lkat"),c=r.n(A),f=r("LvDl"),$=r("9Bee"),oe=r("fV52"),_=r("3I+P"),y=r("doQp"),j=r.n(y),U=r("+ibC"),L=r.n(U),V=r("5bA4"),ve=r("UESt"),_e=["\u5355\u9009\u9898","\u591A\u9009\u9898","\u5224\u65AD\u9898","\u586B\u7A7A\u9898","\u7B80\u7B54\u9898","\u5B9E\u8BAD\u9898","\u7F16\u7A0B\u9898"],pe=function(e){var d=e.editData,i=d===void 0?{}:d,l=Object(h.useState)(!1),v=Object(ne.a)(l,2),P=v[0],F=v[1],E=Object(h.useState)(!0),s=Object(ne.a)(E,2),q=s[0],C=s[1],W=Object(h.useState)([]),H=Object(ne.a)(W,2),le=H[0],z=H[1],ae=Object(h.useState)(0),J=Object(ne.a)(ae,2),me=J[0],se=J[1],ke=Object(h.useState)({left:0,top:0,bottom:0,right:0}),Ne=Object(ne.a)(ke,2),Ee=Ne[0],xe=Ne[1],Ke=Object(h.useRef)(),we=Object(h.useRef)(null),O=Object(h.useRef)(null);Object(h.useEffect)(function(){return O.current&&O.current.addEventListener("click",Rt),function(){O.current.removeEventListener("click",Rt)}},[O]);var Rt=function(Ce){var w=function(Te,ut){if(Te.localName===ut)return Te;for(var Qe=0,Lt=Te;Lt=Lt.parentNode;Qe++){if(Lt.localName===ut)return Lt;if(Lt==document.documentElement)return!1}},Ie=Ce.target,Pe=w(Ie,"a");if(Pe!=null&&Pe.href)return;if(Ie.tagName.toUpperCase()==="IMG"){var Ot=Ie.src||Ie.getAttribute("src");if(Ot&&Ot.indexOf("/images/avatars/User")===-1){Ce.stopPropagation(),Ce.preventDefault();var Ve=rt(),Ut=Ve.findIndex(function(nt){return nt.src===Ot});se(Ut),F(!0)}}},xt=function(){F(!1)},rt=function(){var Ce=O.current.getElementsByTagName("img"),w=[];return Ce.forEach(function(Ie){w.push({src:Ie==null?void 0:Ie.currentSrc,img:a.a.createElement("img",{height:290,src:Ie==null?void 0:Ie.currentSrc})})}),z(w),w},it=function(Ce,w){var Ie,Pe,Ot,Ve=(Ie=window)===null||Ie===void 0||((Pe=Ie.document)===null||Pe===void 0)?void 0:Pe.documentElement,Ut=Ve.clientWidth,nt=Ve.clientHeight,Te=Ke==null||((Ot=Ke.current)===null||Ot===void 0)?void 0:Ot.getBoundingClientRect();xe({bounds:{left:-(Te==null?void 0:Te.left)+(w==null?void 0:w.x),right:Ut-((Te==null?void 0:Te.right)-(w==null?void 0:w.x)),top:-(Te==null?void 0:Te.top)+(w==null?void 0:w.y),bottom:nt-((Te==null?void 0:Te.bottom)-(w==null?void 0:w.y))}})},bt=function(){var Ce="".concat(i==null?void 0:i.q_position,". \u3010").concat(_e[i.question_type],'\u3011\uFF08').concat(i==null?void 0:i.question_score,"\u5206\uFF09");return Ce};return a.a.createElement(h.Fragment,null,P&&a.a.createElement("div",{className:L.a.modalWarp},a.a.createElement(j.a,{disabled:q,bounds:Ee,onStart:function(Ce,w){return it(Ce,w)}},a.a.createElement("div",{className:L.a.modal},a.a.createElement("div",{className:L.a.head,onMouseOver:function(){q&&C(!1)},onMouseOut:function(){C(!0)}},a.a.createElement("i",{className:"iconfont icon-guanbi1",onClick:xt})),a.a.createElement("div",{className:L.a.body},a.a.createElement(V.a,{className:L.a.LeftButton,onClick:function(){we.current.prev()}}),a.a.createElement(_.a,{className:L.a.site,ref:we,dots:!1,initialSlide:me},le==null?void 0:le.map(function(yt,Ce){return a.a.createElement("div",{key:Ce},a.a.createElement("aside",{className:L.a.imgWarp},yt.img))})),a.a.createElement(ve.a,{className:L.a.RightButton,onClick:function(){we.current.next()}}))))),a.a.createElement("div",{className:L.a.title,ref:O},a.a.createElement($.a,{value:bt()+(i==null?void 0:i.question_title)})))},Le=pe,dt=function(e,d){var i,l=e.data,v=e.callback,P=e.params;Object(h.useEffect)(function(){q(l)},[l]);var F=Object(h.useState)({}),E=Object(ne.a)(F,2),s=E[0],q=E[1],C=Object(h.useState)(!1),W=Object(ne.a)(C,2),H=W[0],le=W[1],z=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],ae=function(){var J=Object(Q.a)(g.a.mark(function me(se,ke){var Ne,Ee,xe;return g.a.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:return le(!1),Ee=Object(f.cloneDeep)(s),Ee.user_answer=[se.choice_id],we.next=5,Object(m.l)(P.examId,P==null||((Ne=P.exercise)===null||Ne===void 0)?void 0:Ne.ip_limit);case 5:return we.next=7,Object(m.m)(P.examId);case 7:return q(Ee),we.next=10,Object(u.a)("/api/exercise_questions/".concat(s.question_id,"/exercise_answers.json"),{method:"post",body:{exercise_choice_id:se.choice_id}});case 10:xe=we.sent,v(Ee,1),xe.status===0?le(!0):xe.status===-1&&Se.c.push("/exam/studentClient");case 13:case"end":return we.stop()}},me)}));return function(se,ke){return J.apply(this,arguments)}}();return Object(h.useImperativeHandle)(d,function(){return{editData:s}}),a.a.createElement("div",{className:c.a.single},a.a.createElement("div",{className:c.a.tips,style:{opacity:H?1:0}},a.a.createElement("i",{className:"iconfont icon-xuanzhong5"}),a.a.createElement("span",null,"\u7B54\u6848\u4FDD\u5B58\u6210\u529F")),a.a.createElement(Le,{editData:s}),s==null||((i=s.question_choices)===null||i===void 0)?void 0:i.map(function(J,me){var se;return a.a.createElement("ul",{onClick:function(){return ae(J,me)},style:{pointerEvents:P.checkState?"none":"auto"},key:J.choice_id,className:s!=null&&(se=s.user_answer)!==null&&se!==void 0&&se.includes(J.choice_id)?c.a.qsActive:c.a.qs},a.a.createElement("li",null,z[(J.c_position||J.choice_position)-1]),a.a.createElement("li",null,a.a.createElement($.a,{value:J.choice_text})))}),((s==null?void 0:s.standard_answer_show)||(s==null?void 0:s.user_score))&&a.a.createElement("div",{className:c.a.answer},(s==null?void 0:s.user_score)&&a.a.createElement("div",null,"\u672C\u9898\u5F97\u5206\uFF1A",(s==null?void 0:s.user_score)==="0.0"?0:s==null?void 0:s.user_score,"\u5206"),(s==null?void 0:s.standard_answer_show)&&a.a.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",s==null?void 0:s.standard_answer_show)),(s==null?void 0:s.analysis)&&a.a.createElement("div",{className:c.a.analysis},a.a.createElement("div",null,"\u89E3\u6790\uFF1A"),a.a.createElement("aside",null,a.a.createElement($.a,{value:s==null?void 0:s.analysis}))))},et=Object(h.forwardRef)(dt),lt=function(e,d){var i,l=e.data,v=e.callback,P=e.params;Object(h.useEffect)(function(){q(l)},[l]);var F=Object(h.useState)({}),E=Object(ne.a)(F,2),s=E[0],q=E[1],C=Object(h.useState)(!1),W=Object(ne.a)(C,2),H=W[0],le=W[1],z=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],ae=function(){var J=Object(Q.a)(g.a.mark(function me(se,ke){var Ne,Ee,xe,Ke;return g.a.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return le(!1),Ee=Object(f.cloneDeep)(s),Ee.user_answer.includes(se.choice_id)?Object(f.pull)(Ee.user_answer,se.choice_id):Ee.user_answer=Ee==null||((xe=Ee.user_answer)===null||xe===void 0)?void 0:xe.concat(se.choice_id),O.next=5,Object(m.l)(P.examId,P==null||((Ne=P.exercise)===null||Ne===void 0)?void 0:Ne.ip_limit);case 5:return O.next=7,Object(m.m)(P.examId);case 7:return q(Ee),O.next=10,Object(u.a)("/api/exercise_questions/".concat(s.question_id,"/exercise_answers.json"),{method:"post",body:{exercise_choice_id:Ee.user_answer}});case 10:Ke=O.sent,v(Ee,Ee.user_answer.length>0?1:0),Ke.status===0?le(!0):Ke.status===-1&&Se.c.push("/exam/studentClient");case 13:case"end":return O.stop()}},me)}));return function(se,ke){return J.apply(this,arguments)}}();return Object(h.useImperativeHandle)(d,function(){return{editData:s}}),a.a.createElement("div",{className:c.a.multiple},a.a.createElement("div",{className:c.a.tips,style:{opacity:H?1:0}},a.a.createElement("i",{className:"iconfont icon-xuanzhong5"}),a.a.createElement("span",null,"\u7B54\u6848\u4FDD\u5B58\u6210\u529F")),a.a.createElement(Le,{editData:s}),s==null||((i=s.question_choices)===null||i===void 0)?void 0:i.map(function(J,me){var se;return a.a.createElement("ul",{onClick:function(){return ae(J,me)},style:{pointerEvents:P.checkState?"none":"auto"},key:J.choice_id,className:s!=null&&(se=s.user_answer)!==null&&se!==void 0&&se.includes(J.choice_id)?c.a.msActive:c.a.ms},a.a.createElement("li",null,z[(J.c_position||J.choice_position)-1]),a.a.createElement("li",null,a.a.createElement($.a,{value:J.choice_text})))}),((s==null?void 0:s.standard_answer_show)||(s==null?void 0:s.user_score))&&a.a.createElement("div",{className:c.a.answer},(s==null?void 0:s.user_score)&&a.a.createElement("div",null,"\u672C\u9898\u5F97\u5206\uFF1A",(s==null?void 0:s.user_score)==="0.0"?0:s==null?void 0:s.user_score,"\u5206"),(s==null?void 0:s.standard_answer_show)&&a.a.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",s==null?void 0:s.standard_answer_show)),(s==null?void 0:s.analysis)&&a.a.createElement("div",{className:c.a.analysis},a.a.createElement("div",null,"\u89E3\u6790\uFF1A"),a.a.createElement("aside",null,a.a.createElement($.a,{value:s==null?void 0:s.analysis}))))},gt=Object(h.forwardRef)(lt),tt=function(e,d){var i,l=e.data,v=e.callback,P=e.params;Object(h.useEffect)(function(){q(l)},[l]);var F=Object(h.useState)({}),E=Object(ne.a)(F,2),s=E[0],q=E[1],C=Object(h.useState)(!1),W=Object(ne.a)(C,2),H=W[0],le=W[1],z=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],ae=function(){var J=Object(Q.a)(g.a.mark(function me(se,ke){var Ne,Ee,xe;return g.a.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:return le(!1),Ee=Object(f.cloneDeep)(s),Ee.user_answer=[se.choice_id],we.next=5,Object(m.l)(P.examId,P==null||((Ne=P.exercise)===null||Ne===void 0)?void 0:Ne.ip_limit);case 5:return we.next=7,Object(m.m)(P.examId);case 7:return q(Ee),we.next=10,Object(u.a)("/api/exercise_questions/".concat(s.question_id,"/exercise_answers.json"),{method:"post",body:{exercise_choice_id:se.choice_id}});case 10:xe=we.sent,v(Ee,1),xe.status===0?le(!0):xe.status===-1&&Se.c.push("/exam/studentClient");case 13:case"end":return we.stop()}},me)}));return function(se,ke){return J.apply(this,arguments)}}();return Object(h.useImperativeHandle)(d,function(){return{editData:s}}),a.a.createElement("div",{className:c.a.judgment},a.a.createElement("div",{className:c.a.tips,style:{opacity:H?1:0}},a.a.createElement("i",{className:"iconfont icon-xuanzhong5"}),a.a.createElement("span",null,"\u7B54\u6848\u4FDD\u5B58\u6210\u529F")),a.a.createElement(Le,{editData:s}),s==null||((i=s.question_choices)===null||i===void 0)?void 0:i.map(function(J,me){var se;return a.a.createElement("ul",{onClick:function(){return ae(J,me)},style:{pointerEvents:P.checkState?"none":"auto"},key:J.choice_id,className:s!=null&&(se=s.user_answer)!==null&&se!==void 0&&se.includes(J.choice_id)?c.a.qsActive:c.a.qs},a.a.createElement("li",null,a.a.createElement("span",null)),a.a.createElement("li",null,a.a.createElement($.a,{value:J.choice_text})))}),((s==null?void 0:s.standard_answer_show)||(s==null?void 0:s.user_score))&&a.a.createElement("div",{className:c.a.answer},(s==null?void 0:s.user_score)&&a.a.createElement("div",null,"\u672C\u9898\u5F97\u5206\uFF1A",(s==null?void 0:s.user_score)==="0.0"?0:s==null?void 0:s.user_score,"\u5206"),(s==null?void 0:s.standard_answer_show)&&a.a.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",s==null?void 0:s.standard_answer_show)),(s==null?void 0:s.analysis)&&a.a.createElement("div",{className:c.a.analysis},a.a.createElement("div",null,"\u89E3\u6790\uFF1A"),a.a.createElement("aside",null,a.a.createElement($.a,{value:s==null?void 0:s.analysis}))))},$e=Object(h.forwardRef)(tt),kt=r("3S9h"),Ct=r("5NDa"),ze=r("5rEg"),We=ze.a.TextArea,at=function(e,d){var i,l=e.data,v=e.callback,P=e.params,F=Object(h.useState)({}),E=Object(ne.a)(F,2),s=E[0],q=E[1],C=Object(h.useState)([]),W=Object(ne.a)(C,2),H=W[0],le=W[1],z=Object(h.useState)(!1),ae=Object(ne.a)(z,2),J=ae[0],me=ae[1],se=Object(h.useRef)(null);Object(h.useEffect)(function(){for(var Ee=[],xe=0;xe<(l==null?void 0:l.multi_count);xe++)Ee.push(Object(ie.a)({},(l==null?void 0:l.user_answer[xe])||{}));q(l),le(Ee)},[l]);var ke=function(xe,Ke){me(!1);var we=Object(f.cloneDeep)(s);H[Ke].answer_text=xe.target.value,we.user_answer=H,q(we),le(Object(kt.a)(H)),clearTimeout(se.current),se.current=setTimeout(Object(Q.a)(g.a.mark(function O(){var Rt,xt;return g.a.wrap(function(it){for(;;)switch(it.prev=it.next){case 0:return it.next=2,Object(m.l)(P.examId,P==null||((Rt=P.exercise)===null||Rt===void 0)?void 0:Rt.ip_limit);case 2:return it.next=4,Object(m.m)(P.examId);case 4:return it.next=6,Object(u.a)("/api/exercise_questions/".concat(s.question_id,"/exercise_answers.json"),{method:"post",body:{answer_text:H[Ke].answer_text,exercise_choice_id:Ke+1}});case 6:xt=it.sent,v(we,H.some(function(bt){return!!bt.answer_text})?1:0),xt.status===0?me(!0):xt.status===-1&&Se.c.push("/exam/studentClient");case 9:case"end":return it.stop()}},O)})),500)};Object(h.useImperativeHandle)(d,function(){return{editData:s}});var Ne=function(){var xe;return s==null||((xe=s.standard_answer)===null||xe===void 0)?void 0:xe.map(function(Ke,we){var O;return a.a.createElement("span",{style:{fontWeight:400,fontSize:14},key:we},"\u586B\u7A7A\u9898",we+1,"\uFF1A",(O=Ke.answer_text)===null||O===void 0?void 0:O.join("\u3001"),a.a.createElement("br",null))})};return console.log("userAnswer",H),a.a.createElement("div",{className:c.a.completion},a.a.createElement("div",{className:c.a.tips,style:{opacity:J?1:0}},a.a.createElement("i",{className:"iconfont icon-xuanzhong5"}),a.a.createElement("span",null,"\u7B54\u6848\u4FDD\u5B58\u6210\u529F")),a.a.createElement(Le,{editData:s}),H==null?void 0:H.map(function(Ee,xe){return a.a.createElement("ul",{key:xe,className:c.a.fill},a.a.createElement("li",null,"\u586B\u7A7A",xe+1,":"),a.a.createElement("li",null,a.a.createElement(We,{disabled:P.checkState,value:Ee==null?void 0:Ee.answer_text,rows:3,onChange:function(we){return ke(we,xe)}})))}),(s==null?void 0:s.user_score)&&a.a.createElement("div",{className:c.a.answer},a.a.createElement("div",null,"\u672C\u9898\u5F97\u5206\uFF1A",(s==null?void 0:s.user_score)==="0.0"?0:s==null?void 0:s.user_score,"\u5206")),!!(s!=null&&(i=s.standard_answer)!==null&&i!==void 0&&i.length)&&a.a.createElement("div",{className:c.a.analysis,style:{marginTop:"-20px"}},a.a.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A"),a.a.createElement("aside",null,Ne())),(s==null?void 0:s.analysis)&&a.a.createElement("div",{className:c.a.analysis},a.a.createElement("div",null,"\u89E3\u6790\uFF1A"),a.a.createElement("aside",null,a.a.createElement($.a,{value:s==null?void 0:s.analysis}))))},mt=Object(h.forwardRef)(at),Et=r("Ot1p"),vt=function(e,d){var i,l,v,P=e.data,F=e.callback,E=e.params;Object(h.useEffect)(function(){W(P)},[P]);var s=Object(h.useState)({}),q=Object(ne.a)(s,2),C=q[0],W=q[1],H=Object(h.useState)(!1),le=Object(ne.a)(H,2),z=le[0],ae=le[1],J=Object(h.useRef)(null),me=function(){var se=Object(Q.a)(g.a.mark(function ke(Ne){var Ee;return g.a.wrap(function(Ke){for(;;)switch(Ke.prev=Ke.next){case 0:ae(!1),Ee=Object(f.cloneDeep)(C),Ee.user_answer[0]=Ne,W(Ee),clearTimeout(J.current),J.current=setTimeout(Object(Q.a)(g.a.mark(function we(){var O,Rt;return g.a.wrap(function(rt){for(;;)switch(rt.prev=rt.next){case 0:return rt.next=2,Object(m.l)(E.examId,E==null||((O=E.exercise)===null||O===void 0)?void 0:O.ip_limit);case 2:return rt.next=4,Object(m.m)(E.examId);case 4:return rt.next=6,Object(u.a)("/api/exercise_questions/".concat(C.question_id,"/exercise_answers.json"),{method:"post",body:{answer_text:Ne}});case 6:Rt=rt.sent,F(Ee,Ne?1:0),Rt.status===0?ae(!0):Rt.status===-1&&Se.c.push("/exam/studentClient");case 9:case"end":return rt.stop()}},we)})),500);case 6:case"end":return Ke.stop()}},ke)}));return function(Ne){return se.apply(this,arguments)}}();return Object(h.useImperativeHandle)(d,function(){return{editData:C}}),a.a.createElement("div",{className:c.a.subjective},a.a.createElement("div",{className:c.a.tips,style:{opacity:z?1:0}},a.a.createElement("i",{className:"iconfont icon-xuanzhong5"}),a.a.createElement("span",null,"\u7B54\u6848\u4FDD\u5B58\u6210\u529F")),a.a.createElement(Le,{editData:C}),!E.checkState&&a.a.createElement(Et.a,{height:320,placeholder:"\u8BF7\u5F00\u59CB\u4F5C\u7B54",defaultValue:C==null||((i=C.user_answer)===null||i===void 0)?void 0:i[0],id:C==null?void 0:C.question_id,onChange:function(ke){return me(ke)}}),E.checkState&&a.a.createElement(a.a.Fragment,null,(C==null?void 0:C.user_answer)&&a.a.createElement("div",{className:c.a.answer},a.a.createElement("div",null,"\u6211\u7684\u4F5C\u7B54:"),a.a.createElement("aside",null,a.a.createElement($.a,{value:C==null||((l=C.user_answer)===null||l===void 0)?void 0:l[0]}))),(C==null?void 0:C.user_score)&&a.a.createElement("div",{className:c.a.answer},a.a.createElement("div",null,"\u672C\u9898\u5F97\u5206\uFF1A",(C==null?void 0:C.user_score)==="0.0"?0:C==null?void 0:C.user_score,"\u5206")),(C==null?void 0:C.standard_answer)&&a.a.createElement("div",{className:c.a.answer},a.a.createElement("div",null,"\u53C2\u8003\u7B54\u6848:"),a.a.createElement("aside",null,a.a.createElement($.a,{value:C==null||((v=C.standard_answer)===null||v===void 0)?void 0:v[0]}))),(C==null?void 0:C.analysis)&&a.a.createElement("div",{className:c.a.analysis},a.a.createElement("div",null,"\u89E3\u6790\uFF1A"),a.a.createElement("aside",null,a.a.createElement($.a,{value:C==null?void 0:C.analysis})))))},wt=Object(h.forwardRef)(vt),Nt=r("ZW9T"),Dt=r("J66h"),At=function(e,d){var i=e.data,l=e.params,v=e.callback,P=Object(h.useState)({}),F=Object(ne.a)(P,2),E=F[0],s=F[1],q=Object(h.useState)(""),C=Object(ne.a)(q,2),W=C[0],H=C[1],le=Object(h.useState)(!1),z=Object(ne.a)(le,2),ae=z[0],J=z[1],me=Object(h.useState)("none"),se=Object(ne.a)(me,2),ke=se[0],Ne=se[1],Ee=Object(h.useRef)();Object(h.useEffect)(function(){return window.addEventListener("message",xe),function(){window.removeEventListener("message",xe)}},[]),Object(h.useEffect)(function(){s(i)},[i]);var xe=function(rt){rt.data==="backExercise"&&Ke()},Ke=function(){Ne("none"),H(""),v()},we=function(){var xt=Object(Q.a)(g.a.mark(function rt(){var it,bt;return g.a.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return J(!0),Ce.next=3,Object(m.l)(l.examId,l==null||((it=l.exercise)===null||it===void 0)?void 0:it.ip_limit);case 3:return Ce.next=5,Object(m.m)(l.examId);case 5:if(!E.hack_identifier){Ce.next=10;break}return Ce.next=8,Object(K.V)({id:E.hack_identifier});case 8:bt=Ce.sent,(bt==null?void 0:bt.status)===0&&(H("/myproblems/".concat(bt.identifier,"?type=exercises&sign=exam&exercisesId=").concat(l==null?void 0:l.examId,"&login=").concat(l==null?void 0:l.login,"&questionId=").concat(E.question_id)),Ne("block"));case 10:J(!1);case 11:case"end":return Ce.stop()}},rt)}));return function(){return xt.apply(this,arguments)}}(),O={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1};Object(h.useImperativeHandle)(d,function(){return{editData:E}});var Rt=[{title:"\u6D4B\u8BD5\u96C6",dataIndex:"key",align:"center"},{title:"\u8F93\u51FA",dataIndex:"error_msg",align:"center"},{title:"\u5F97\u5206",dataIndex:"sore",align:"center"}];return a.a.createElement("div",{className:c.a.program},a.a.createElement("iframe",{style:{display:ke},id:"iframeShixuns",className:c.a.iframe,src:W,ref:Ee,frameBorder:"0"}),a.a.createElement(Le,{editData:E}),a.a.createElement($.a,{value:E==null?void 0:E.description}),!l.checkState&&a.a.createElement("div",{className:c.a.customBtn},a.a.createElement(D.a,{loading:ae,onClick:we,type:"primary"},"\u8FDB\u5165\u7B54\u9898")),l.checkState&&a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:c.a.answer},a.a.createElement("div",null,"\u6700\u540E\u4E00\u6B21\u901A\u8FC7\u6D4B\u8BC4\u7684\u4EE3\u7801",a.a.createElement("span",{className:"c-grey-999"},"\uFF08\u672A\u901A\u5173\u5219\u4E3A\u6700\u540E\u4E00\u63D0\u4EA4\u8BC4\u6D4B\u7684\u4EE3\u7801\uFF09")),a.a.createElement("aside",null,a.a.createElement(Nt.b,{height:300,language:"python",theme:"vs-light",value:E!=null&&E.passed_code?Dt.Base64.decode(E==null?void 0:E.passed_code):"",options:O}))),(E==null?void 0:E.user_score)&&a.a.createElement("div",{className:c.a.answer},a.a.createElement("div",null,"\u672C\u9898\u5F97\u5206\uFF1A",(E==null?void 0:E.user_score)==="0.0"?0:E==null?void 0:E.user_score,"\u5206"))))},Ht=Object(h.forwardRef)(At),Xt=r("g9YV"),na=r("wCAj"),ye=r("miYZ"),st=r("tsqr"),Ge=r("HBuW"),Je=function(e,d){var i,l,v=e.data,P=e.callback,F=e.params;Object(h.useEffect)(function(){C(v)},[v]);var E=Object(h.useState)({}),s=Object(ne.a)(E,2),q=s[0],C=s[1],W=Object(h.useState)(""),H=Object(ne.a)(W,2),le=H[0],z=H[1],ae=Object(h.useState)(!1),J=Object(ne.a)(ae,2),me=J[0],se=J[1],ke=Object(h.useState)("none"),Ne=Object(ne.a)(ke,2),Ee=Ne[0],xe=Ne[1],Ke=Object(h.useRef)();Object(h.useEffect)(function(){return window.addEventListener("message",we),function(){window.removeEventListener("message",we)}},[]),Object(h.useEffect)(function(){C(v)},[v]);var we=function(w){w.data==="backExercise"&&O()},O=function(){xe("none"),z(""),P()},Rt={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1};Object(h.useImperativeHandle)(d,function(){return{editData:q}});var xt=function Ce(w,Ie){var Pe;w=(Pe=w)!==null&&Pe!==void 0&&Pe.includes(".json")?w:"".concat(w,".json"),Ue.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:a.a.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:function(){var Ot=Object(Q.a)(g.a.mark(function Ut(){var nt,Te;return g.a.wrap(function(Qe){for(;;)switch(Qe.prev=Qe.next){case 0:return Qe.next=2,Object(K.R)({url:w});case 2:if(nt=Qe.sent,nt){Qe.next=5;break}return Qe.abrupt("return");case 5:return st.b.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF01"),Qe.next=8,Object(Ge.A)({id:nt.shixun_identifier});case 8:if(Te=Qe.sent,!(Te!=null&&Te.game_identifier)){Qe.next=12;break}return it({shixun_identifier:Te==null?void 0:Te.game_identifier,question_id:Ie}),Qe.abrupt("return");case 12:(Te==null?void 0:Te.status)===2?Ce(Te==null?void 0:Te.message,Ie):(Te==null?void 0:Te.status)===3&&rt(Te==null?void 0:Te.message);case 13:case"end":return Qe.stop()}},Ut)}));function Ve(){return Ot.apply(this,arguments)}return Ve}()})},rt=function(w){Ue.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:a.a.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",w,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},it=function(){var Ce=Object(Q.a)(g.a.mark(function w(Ie){var Pe;return g.a.wrap(function(Ve){for(;;)switch(Ve.prev=Ve.next){case 0:return Ve.next=2,Object(Ge.A)({id:Ie.shixun_identifier});case 2:Pe=Ve.sent,Pe!=null&&Pe.game_identifier&&(z("/tasks/".concat(Pe.game_identifier,"?type=exercises&sign=exam&exercisesId=").concat(F.examId,"&questionId=").concat(Ie.question_id)),xe("block")),(Pe==null?void 0:Pe.status)===-3?Object(m.k)():(Pe==null?void 0:Pe.status)===2?xt(Pe==null?void 0:Pe.message,Ie.question_id):(Pe==null?void 0:Pe.status)===3&&rt(Pe==null?void 0:Pe.message);case 5:case"end":return Ve.stop()}},w)}));return function(Ie){return Ce.apply(this,arguments)}}(),bt=function(){var Ce=Object(Q.a)(g.a.mark(function w(Ie){var Pe;return g.a.wrap(function(Ve){for(;;)switch(Ve.prev=Ve.next){case 0:return se(!0),Ve.next=3,Object(m.l)(F.examId,F==null||((Pe=F.exercise)===null||Pe===void 0)?void 0:Pe.ip_limit);case 3:return Ve.next=5,Object(m.m)(F.examId);case 5:Ie.redo?Ue.a.info({width:530,title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",content:a.a.createElement("div",{className:"tc font16"},"\u60A8\u4E4B\u524D\u5DF2\u7ECF\u6311\u6218\u8FC7\u8BE5\u5B9E\u8BAD\uFF0C\u8003\u8BD5\u8FC7\u7A0B\u4E2D\u9700\u8981\u91CD\u65B0\u6311\u6218"),onOk:function(){var Ut=Object(Q.a)(g.a.mark(function Te(){var ut,Qe;return g.a.wrap(function(Pt){for(;;)switch(Pt.prev=Pt.next){case 0:return Pt.next=2,Object(K.R)({id:Ie.myshixun_identifier,url:Ie.url});case 2:ut=Pt.sent,ut&&(Qe=Object(ie.a)(Object(ie.a)({},Ie),{},{shixun_identifier:ut.shixun_identifier}),it(Qe));case 4:case"end":return Pt.stop()}},Te)}));function nt(){return Ut.apply(this,arguments)}return nt}()}):it(Ie),se(!1);case 7:case"end":return Ve.stop()}},w)}));return function(Ie){return Ce.apply(this,arguments)}}(),yt=[{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"evaluate_count",align:"center"},{title:"\u8BE6\u7EC6\u4FE1\u606F",dataIndex:"outputs",align:"center",render:function(w,Ie){var Pe;return a.a.createElement("span",null,w==null||((Pe=w[0])===null||Pe===void 0)?void 0:Pe.output_detail)}}];return a.a.createElement("div",{className:c.a.practice},a.a.createElement("iframe",{style:{display:Ee},id:"iframeShixuns",className:c.a.iframe,src:le,ref:Ke,frameBorder:"0"}),a.a.createElement(Le,{editData:q}),q==null||((i=q.shixun)===null||i===void 0)?void 0:i.map(function(Ce,w){return a.a.createElement(N.a,{className:"font16",gutter:[0,20],key:w},a.a.createElement(X.a,{flex:"1"},w+1,". ",Ce.challenge_name," ",a.a.createElement("span",{className:"c-grey-999"},"(",Ce.challenge_score,"\u5206)")),a.a.createElement(X.a,{flex:"100px",className:"tr"},Ce.answer_status===0&&a.a.createElement("span",{className:"font16 c-grey-999"},"\u672A\u5B8C\u6210"),Ce.answer_status===1&&a.a.createElement("span",{className:"font16 c-grey-333"},"\u5DF2\u5B8C\u6210")))}),!F.checkState&&a.a.createElement("div",{className:c.a.customBtn},a.a.createElement(D.a,{loading:me,onClick:function(){return bt(q)},type:"primary"},"\u8FDB\u5165\u7B54\u9898")),F.checkState&&(q==null||((l=q.shixun_details)===null||l===void 0)?void 0:l.map(function(Ce,w){var Ie,Pe,Ot,Ve,Ut=Ce.shixun_detail,nt=Ut===void 0?[]:Ut,Te=Ce.stage_list,ut=Te===void 0?[]:Te,Qe=ut==null?void 0:ut.map(function(Lt,Pt){return Object(ie.a)(Object(ie.a)({},ut[Pt]),nt[Pt])});return console.log(Qe,"items"),a.a.createElement(h.Fragment,{key:w},a.a.createElement("div",{className:c.a.answer},a.a.createElement("div",null,"\u7B2C",w+1,"\u5173\uFF1A",nt==null||((Ie=nt[0])===null||Ie===void 0)?void 0:Ie.name),a.a.createElement("div",null,"\u672C\u5173\u5F97\u5206\uFF1A",ut==null||((Pe=ut[0])===null||Pe===void 0)?void 0:Pe.user_score,"\u5206")),a.a.createElement(na.a,{className:c.a.table,pagination:!1,dataSource:Qe,columns:yt}),!!(nt!=null&&(Ot=nt[0])!==null&&Ot!==void 0&&Ot.passed_code)&&a.a.createElement("div",{className:c.a.answer,style:{display:"block"}},a.a.createElement("div",{style:{marginBottom:16}},"\u6700\u540E\u4E00\u6B21\u901A\u8FC7\u6D4B\u8BC4\u7684\u4EE3\u7801",a.a.createElement("span",{className:"c-grey-999"},"\uFF08\u672A\u901A\u5173\u5219\u4E3A\u6700\u540E\u4E00\u63D0\u4EA4\u8BC4\u6D4B\u7684\u4EE3\u7801\uFF09")),a.a.createElement("aside",null,a.a.createElement(Nt.b,{height:300,language:"python",theme:"vs-light",value:nt==null||((Ve=nt[0])===null||Ve===void 0)?void 0:Ve.passed_code,options:Rt}))))})),(q==null?void 0:q.user_score)&&a.a.createElement("div",{className:c.a.answer},a.a.createElement("div",null,"\u672C\u9898\u5F97\u5206\uFF1A",(q==null?void 0:q.user_score)==="0.0"?0:q==null?void 0:q.user_score,"\u5206")))},_t=Object(h.forwardRef)(Je),x=Xe.a.Countdown,t=function(e){var d,i,l,v,P,F,E,s,q,C,W,H,le,z,ae,J,me,se,ke,Ne,Ee,xe,Ke,we,O,Rt,xt,rt,it,bt,yt,Ce,w=e.location,Ie=Object(h.useState)(!1),Pe=Object(ne.a)(Ie,2),Ot=Pe[0],Ve=Pe[1],Ut=Object(h.useState)(!1),nt=Object(ne.a)(Ut,2),Te=nt[0],ut=nt[1],Qe=Object(h.useState)(!0),Lt=Object(ne.a)(Qe,2),Pt=Lt[0],Gt=Lt[1],ra=Object(h.useState)(!1),ca=Object(ne.a)(ra,2),pa=ca[0],fa=ca[1],ma=Object(h.useState)(!1),va=Object(ne.a)(ma,2),ha=va[0],Ea=va[1],ia=Object(h.useState)({}),zt=Object(ne.a)(ia,2),fe=zt[0],It=zt[1],ta=Object(h.useState)({}),oa=Object(ne.a)(ta,2),R=oa[0],aa=oa[1],ga=Object(h.useState)([]),Kt=Object(ne.a)(ga,2),ct=Kt[0],la=Kt[1],ba=Object(h.useState)([]),ya=Object(ne.a)(ba,2),Vt=ya[0],Oa=ya[1],Me=Object(h.useState)(!1),je=Object(ne.a)(Me,2),de=je[0],Ze=je[1],Ye=Object(h.useRef)({}),ot=Object(h.useRef)(),ft=Object(h.useRef)(0),jt=Object(h.useState)(null),St=Object(ne.a)(jt,2),Tt=St[0],Yt=St[1],qt=Object(h.useRef)(),_a=Object(h.useState)(null),sa=Object(ne.a)(_a,2),Jt=sa[0],Ta=sa[1],La=Object(Se.b)()._store.getState(),Ma=La.user,$t=Ma.userInfo;Object(h.useEffect)(function(){var De;w!=null&&(De=w.query)!==null&&De!==void 0&&De.examId&&Sa()},[w==null||((d=w.query)===null||d===void 0)?void 0:d.examId]),Object(h.useEffect)(function(){return Te&&(Object(b.d)(document.documentElement),setTimeout(function(){window.addEventListener("blur",xa,!1),document.addEventListener(Object(b.c)(),ja)},500),setTimeout(function(){console.log(b.a,44),Object(b.a)()||Ue.a.info({icon:null,okText:"\u6211\u77E5\u9053\u4E86",content:a.a.createElement("div",{className:"tc font16"},"\u672C\u573A\u8003\u8BD5\u5DF2\u5F00\u542F\u9632\u5207\u5C4F\u9650\u5236\uFF0C\u60A8\u5DF2\u5207\u5C4F",a.a.createElement("span",{className:"c-red"},ft.current+1),"\u6B21",a.a.createElement("br",null),"\u8BF7\u52FF\u5207\u5C4F\u53CA\u5237\u65B0\u9875\u9762"),onOk:function(){Object(b.d)(document.documentElement),Pa(ft.current+1)}})},1500)),function(){document.removeEventListener(Object(b.c)(),ja),window.removeEventListener("blur",xa,!1)}},[Te]),Object(h.useEffect)(function(){return fe!=null&&fe.q_position&&sessionStorage.setItem("answer_position",(fe==null?void 0:fe.q_position)||1),function(){sessionStorage.clear()}},[fe==null?void 0:fe.q_position]),Object(h.useEffect)(function(){return Object(Se.b)()._store.dispatch({type:"globalSetting/headerFooterToggle",payload:!1}),function(){Object(Se.b)()._store.dispatch({type:"globalSetting/headerFooterToggle",payload:!0})}},[]);var xa=function(ue){var ge,B;Object(b.a)()&&(!document.getElementById("iframeShixuns")||((ge=document.getElementById("iframeShixuns"))===null||ge===void 0||((B=ge.style)===null||B===void 0)?void 0:B.display)=="none")&&Object(b.b)()},Pa=function(){var De=Object(Q.a)(g.a.mark(function ue(ge){var B,ce;return g.a.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return he.next=2,Object(K.P)({id:w==null||((B=w.query)===null||B===void 0)?void 0:B.examId});case 2:ge>(R==null||((ce=R.exercise)===null||ce===void 0)?void 0:ce.screen_num)?(Ue.a.destroyAll(),da(1)):ft.current=ge;case 3:case"end":return he.stop()}},ue)}));return function(ge){return De.apply(this,arguments)}}(),ka=function(){var De=Object(Q.a)(g.a.mark(function ue(ge){var B,ce,Fe,he,qe;return g.a.wrap(function(pt){for(;;)switch(pt.prev=pt.next){case 0:Ue.a.destroyAll(),qe=Ue.a.info({keyboard:!1,maskClosable:!1,okText:a.a.createElement("span",null,"\u56DE\u5230\u8003\u8BD5\uFF08",a.a.createElement("span",{style:{display:"inline-block"}},a.a.createElement(x,{onFinish:function(){return Pa(ge)},valueStyle:{fontSize:14,lineHeight:1.4,color:"#FFF",display:"inline-block"},format:"ss",value:Date.now()+((R==null||((B=R.exercise)===null||B===void 0)?void 0:B.screen_sec)+1)*1e3})),"S\uFF09"),content:a.a.createElement("div",null,"\u60A8\u5DF2\u5207\u5C4F",a.a.createElement("span",{className:"c-red"},ge-1),"\u6B21\uFF0C\u5207\u5C4F\u8D85\u8FC7",a.a.createElement("span",{className:"c-red"},R==null||((ce=R.exercise)===null||ce===void 0)?void 0:ce.screen_num),"\u6B21\u5C06\u5F3A\u5236\u4EA4\u5377,",a.a.createElement("span",{className:"c-red"},R==null||((Fe=R.exercise)===null||Fe===void 0)?void 0:Fe.screen_sec),"\u79D2\u5185\u56DE\u5230",a.a.createElement("br",null),a.a.createElement("span",{style:{marginLeft:38}},"\u8003\u8BD5\u4E0D\u8BA1\u5207\u5C4F\u6B21\u6570\u3002")),onOk:function(){var ht=Object(Q.a)(g.a.mark(function Wt(){return g.a.wrap(function(ea){for(;;)switch(ea.prev=ea.next){case 0:Object(b.d)(document.documentElement),qe.destroy();case 2:case"end":return ea.stop()}},Wt)}));function Zt(){return ht.apply(this,arguments)}return Zt}()}),setTimeout(function(){var ht;qe.update({okText:a.a.createElement("span",null,"\u56DE\u5230\u8003\u8BD5"),content:a.a.createElement("div",null,"\u60A8\u5DF2\u5207\u5C4F",a.a.createElement("span",{className:"c-red"},ge),"\u6B21\uFF0C\u5207\u5C4F\u8D85\u8FC7",a.a.createElement("span",{className:"c-red"},R==null||((ht=R.exercise)===null||ht===void 0)?void 0:ht.screen_num),"\u6B21\u5C06\u5F3A\u5236\u4EA4\u5377")})},((R==null||((he=R.exercise)===null||he===void 0)?void 0:he.screen_sec)+1)*1e3);case 3:case"end":return pt.stop()}},ue)}));return function(ge){return De.apply(this,arguments)}}(),ja=function(ue){document.fullscreenElement?console.log("\u8FDB\u5165\u5168\u5C4F"):ka(ft.current+1)},Na=function(ue){var ge=[];return ue.forEach(function(B){ge=ge.concat(B.items)}),ge},Sa=function(){var De=Object(Q.a)(g.a.mark(function ue(){var ge,B,ce,Fe,he,qe,Mt,pt,ht,Zt,Wt,Ft,ea,wa,Ra;return g.a.wrap(function(Bt){for(;;)switch(Bt.prev=Bt.next){case 0:return Ea(!0),Bt.next=3,Object(u.a)("/api/students/exercises/".concat(w==null||((ge=w.query)===null||ge===void 0)?void 0:ge.examId,"/start_answer.json"),{method:"get"});case 3:if(B=Bt.sent,!(B!=null&&B.exercise_question_types)){Bt.next=22;break}if(!(((ce=B.exercise)===null||ce===void 0?void 0:ce.left_time)===0)){Bt.next=8;break}return da(1),Bt.abrupt("return");case 8:if(!(((Fe=B.exercise)===null||Fe===void 0?void 0:Fe.exercise_status)<3&&B.exercise.is_normal)){Bt.next=11;break}return Bt.next=11,Object(m.m)(w==null||((Zt=w.query)===null||Zt===void 0)?void 0:Zt.examId,"\u8003\u8BD5\u65F6\u95F4\u5DF2\u5230\uFF0C\u7CFB\u7EDF\u5DF2\u81EA\u52A8\u6536\u5377\u3002");case 11:Yt(((he=B.exercise)===null||he===void 0?void 0:he.left_time)&&Date.now()+(B==null||((qe=B.exercise)===null||qe===void 0)?void 0:qe.left_time)*1e3),Ta((Mt=B.exercise)===null||Mt===void 0?void 0:Mt.left_time),Wt=Na(B==null?void 0:B.exercise_question_types),Ft=sessionStorage.getItem("answer_position")||1,aa(B),la((B==null?void 0:B.question_status)||[]),Oa(Wt),It((Wt==null?void 0:Wt[Number(Ft)-1])||{}),Ea(!1),Ze((B==null||((pt=B.exercise)===null||pt===void 0)?void 0:pt.user_exercise_status)===1),(B==null||((ht=B.exercise)===null||ht===void 0)?void 0:ht.user_exercise_status)!==1&&(Ve(!!(B!=null&&(ea=B.exercise)!==null&&ea!==void 0&&ea.open_camera)),ut(!!(B!=null&&(wa=B.exercise)!==null&&wa!==void 0&&wa.screen_open)),ft.current=(B==null||((Ra=B.exercise)===null||Ra===void 0)?void 0:Ra.used_screen_num)||0);case 22:case"end":return Bt.stop()}},ue)}));return function(){return De.apply(this,arguments)}}(),ua=function(ue,ge){var B=ct.map(function(Fe){return Fe.ques_id===(ue==null?void 0:ue.question_id)?Object(ie.a)(Object(ie.a)({},Fe),{},{ques_status:ge}):Fe}),ce=Vt.map(function(Fe){return Fe.question_id===(ue==null?void 0:ue.question_id)?ue:Fe});la(B),Oa(ce)},Qt=function(ue,ge){var B,ce,Fe,he,qe=R==null||((B=R.exercise_question_types)===null||B===void 0)?void 0:B.find(function(pt){return pt.question_type===ge}),Mt=R==null||((ce=R.exercise_question_types)===null||ce===void 0)?void 0:ce.findIndex(function(pt){return pt.question_type===ge});return a.a.createElement(h.Fragment,null,a.a.createElement("span",{className:"blod font14 c-grey-333"},Object(m.P)(Mt+1),"\u3001",ue,"\uFF08\u5171",qe==null||((Fe=qe.items)===null||Fe===void 0)?void 0:Fe.length,"\u9898\uFF0C\u5171",qe==null?void 0:qe.score,"\u5206\uFF09"),a.a.createElement("ul",{className:re.a.answerSheet,key:ge},qe==null||((he=qe.items)===null||he===void 0)?void 0:he.map(function(pt,ht){var Zt=ct!=null&&ct.some(function(Ft){return Ft.ques_id===pt.question_id&&!!Ft.ques_status})?re.a.active:"",Wt=!!(ct!=null&&ct.some(function(Ft){return Ft.ques_id===pt.question_id&&!!Ft.is_marked}));if(pt.question_type===ge)return a.a.createElement("li",{onClick:function(){return It(Vt[pt.q_position-1])},key:ht,className:Zt},a.a.createElement("span",null,pt.q_position),Wt&&a.a.createElement("i",{className:"iconfont icon-biaoji"}))})))},Aa=function(ue){return a.a.createElement(h.Fragment,null,ue.question_type===0&&Qt("\u5355\u9009\u9898",0),ue.question_type===1&&Qt("\u591A\u9009\u9898",1),ue.question_type===2&&Qt("\u5224\u65AD\u9898",2),ue.question_type===3&&Qt("\u586B\u7A7A\u9898",3),ue.question_type===4&&Qt("\u7B80\u7B54\u9898",4),ue.question_type===5&&Qt("\u5B9E\u8BAD\u9898",5),ue.question_type===6&&Qt("\u7F16\u7A0B\u9898",6))},Ia=function(){var ue,ge,B,ce,Fe,he,qe;return a.a.createElement(h.Fragment,null,fe.question_type===0&&a.a.createElement(et,{key:fe==null?void 0:fe.question_id,ref:Ye,data:fe,callback:ua,params:{checkState:de,examId:w==null||((ue=w.query)===null||ue===void 0)?void 0:ue.examId,exercise:R==null?void 0:R.exercise}}),fe.question_type===1&&a.a.createElement(gt,{key:fe==null?void 0:fe.question_id,ref:Ye,data:fe,callback:ua,params:{checkState:de,examId:w==null||((ge=w.query)===null||ge===void 0)?void 0:ge.examId,exercise:R==null?void 0:R.exercise}}),fe.question_type===2&&a.a.createElement($e,{key:fe==null?void 0:fe.question_id,ref:Ye,data:fe,callback:ua,params:{checkState:de,examId:w==null||((B=w.query)===null||B===void 0)?void 0:B.examId,exercise:R==null?void 0:R.exercise}}),fe.question_type===3&&a.a.createElement(mt,{key:fe==null?void 0:fe.question_id,ref:Ye,data:fe,callback:ua,params:{checkState:de,examId:w==null||((ce=w.query)===null||ce===void 0)?void 0:ce.examId,exercise:R==null?void 0:R.exercise}}),fe.question_type===4&&a.a.createElement(wt,{key:fe==null?void 0:fe.question_id,ref:Ye,data:fe,callback:ua,params:{checkState:de,examId:w==null||((Fe=w.query)===null||Fe===void 0)?void 0:Fe.examId,exercise:R==null?void 0:R.exercise}}),fe.question_type===5&&a.a.createElement(_t,{key:fe==null?void 0:fe.question_id,params:{examId:w==null||((he=w.query)===null||he===void 0)?void 0:he.examId,login:$t==null?void 0:$t.login,checkState:de,exercise:R==null?void 0:R.exercise},ref:Ye,data:fe,callback:Sa}),fe.question_type===6&&a.a.createElement(Ht,{key:fe==null?void 0:fe.question_id,params:{examId:w==null||((qe=w.query)===null||qe===void 0)?void 0:qe.examId,login:$t==null?void 0:$t.login,checkState:de,exercise:R==null?void 0:R.exercise},ref:Ye,data:fe,callback:Sa}))},Da=function(){var De=Object(Q.a)(g.a.mark(function ue(ge){return g.a.wrap(function(ce){for(;;)switch(ce.prev=ce.next){case 0:if(!(ge==="prev")){ce.next=3;break}return It(Vt[fe.q_position-2]),ce.abrupt("return");case 3:It(Vt[fe.q_position]);case 4:case"end":return ce.stop()}},ue)}));return function(ge){return De.apply(this,arguments)}}(),da=function(){var De=Object(Q.a)(g.a.mark(function ue(ge){var B,ce;return g.a.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return he.next=2,Object(u.a)("/api/students/exercises/".concat(w==null||((B=w.query)===null||B===void 0)?void 0:B.examId,"/commit_exercise.json"),{method:"post",body:{commit_method:ge}});case 2:ce=he.sent,(ce==null?void 0:ce.status)===0&&(Ve(!1),Object(b.b)(),Se.c.replace("/exam/succeed"));case 4:case"end":return he.stop()}},ue)}));return function(ge){return De.apply(this,arguments)}}(),Ua=function(){var De=Object(Q.a)(g.a.mark(function ue(){var ge,B,ce;return g.a.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return he.next=2,Object(m.m)(w==null||((ge=w.query)===null||ge===void 0)?void 0:ge.examId);case 2:return he.next=4,Object(u.a)("/api/students/exercises/".concat(w==null||((B=w.query)===null||B===void 0)?void 0:B.examId,"/check_status.json"),{method:"get"});case 4:ce=he.sent,(ce==null?void 0:ce.status)===0&&((ce==null?void 0:ce.left_time)===0?da(2):Yt((ce==null?void 0:ce.left_time)&&Date.now()+(ce==null?void 0:ce.left_time)*1e3));case 6:case"end":return he.stop()}},ue)}));return function(){return De.apply(this,arguments)}}(),Ca=function(){var De=Object(Q.a)(g.a.mark(function ue(){var ge,B;return g.a.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:return Fe.next=2,Object(u.a)("/api/students/exercises/".concat(w==null||((ge=w.query)===null||ge===void 0)?void 0:ge.examId,"/check_status.json"),{method:"get"});case 2:B=Fe.sent,(B==null?void 0:B.status)===0&&((B==null?void 0:B.left_time)===0?da(1):Ue.a.confirm({centered:!0,width:440,okText:"\u786E\u8BA4",keyboard:!1,cancelText:"\u53D6\u6D88",icon:null,title:"\u63D0\u793A",className:"custom-modal-divider",content:"\u5F53\u524D\u8003\u8BD5\u5269\u4F59".concat(Math.floor((B==null?void 0:B.left_time)/60),"\u5206\u949F\uFF0C\u786E\u5B9A\u8981\u73B0\u5728\u4EA4\u5377\u5417\uFF1F"),onOk:function(){var he=Object(Q.a)(g.a.mark(function Mt(){return g.a.wrap(function(ht){for(;;)switch(ht.prev=ht.next){case 0:return ht.abrupt("return",da(1));case 1:case"end":return ht.stop()}},Mt)}));function qe(){return he.apply(this,arguments)}return qe}(),onCancel:function(){var he=Object(Q.a)(g.a.mark(function Mt(){return g.a.wrap(function(ht){for(;;)switch(ht.prev=ht.next){case 0:return ht.abrupt("return",Yt((B==null?void 0:B.left_time)&&Date.now()+(B==null?void 0:B.left_time)*1e3));case 1:case"end":return ht.stop()}},Mt)}));function qe(){return he.apply(this,arguments)}return qe}()}));case 4:case"end":return Fe.stop()}},ue)}));return function(){return De.apply(this,arguments)}}(),Fa=function(){var De=Object(Q.a)(g.a.mark(function ue(){var ge,B;return g.a.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:return Fe.next=2,Object(m.m)(w==null||((ge=w.query)===null||ge===void 0)?void 0:ge.examId);case 2:if(B=[],Vt.forEach(function(he,qe){var Mt=ct.findIndex(function(pt){return pt.ques_id===he.question_id&&!pt.ques_status});Mt>-1&&B.push(qe+1)}),B.length){Fe.next=7;break}return Ue.a.confirm({centered:!0,width:440,okText:"\u68C0\u67E5\u4E00\u4E0B",cancelText:"\u4EA4\u5377",icon:null,title:"\u63D0\u793A",keyboard:!1,className:"custom-modal-divider",content:"\u4EA4\u5377\u540E\u65E0\u6CD5\u4FEE\u6539\u8BD5\u5377\u7B54\u6848\uFF0C\u786E\u5B9A\u8981\u73B0\u5728\u4EA4\u5377\u5417\uFF1F",onOk:function(){return Promise.resolve()},onCancel:Ca}),Fe.abrupt("return");case 7:Ue.a.confirm({centered:!0,width:440,okText:"\u7EE7\u7EED\u7B54\u9898",cancelText:"\u4EA4\u5377",icon:null,title:"\u63D0\u793A",keyboard:!1,className:"custom-modal-divider",content:a.a.createElement("div",null,a.a.createElement("p",{style:{color:"#FF8C29"}},"\u4F60\u8FD8\u6709\u4EE5\u4E0B",B.length,"\u9053\u9898\u672A\u5B8C\u6210\uFF0C\u786E\u5B9A\u8981\u63D0\u4EA4\u8BD5\u5377\u5417\uFF1F"),a.a.createElement("div",null,B.map(function(he){return a.a.createElement("div",{onClick:function(){It(Vt[he-1]),Ue.a.destroyAll()},className:re.a.listBtn,key:he},he)}))),onOk:function(){return Promise.resolve()},onCancel:Ca});case 8:case"end":return Fe.stop()}},ue)}));return function(){return De.apply(this,arguments)}}(),Ba=function(){var De=Object(Q.a)(g.a.mark(function ue(){var ge,B,ce;return g.a.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return he.next=2,Object(u.a)("/api/students/exercises/".concat(w==null||((ge=w.query)===null||ge===void 0)?void 0:ge.examId,"/mark"),{method:"post",body:{exercise_question_id:fe==null?void 0:fe.question_id}});case 2:B=he.sent,B.status===0&&(ce=ct.map(function(qe){return qe.ques_id===(fe==null?void 0:fe.question_id)?Object(ie.a)(Object(ie.a)({},qe),{},{is_marked:!qe.is_marked}):qe}),la(ce));case 4:case"end":return he.stop()}},ue)}));return function(){return De.apply(this,arguments)}}();Object(h.useEffect)(function(){return Jt>300&&(qt.current=setInterval(function(){Jt--,Jt===300&&(clearInterval(qt.current),G.a.open({message:"\u6E29\u99A8\u63D0\u793A",description:a.a.createElement("span",null,"\u8DDD\u79BB\u8003\u8BD5\u7ED3\u675F\u8FD8\u5269\u4F59",a.a.createElement(x,{value:Date.now()+300*1e3,onFinish:Ua})),duration:299}))},1e3)),function(){clearInterval(qt.current)}},[Jt]);var Ha=function(){var ue;(ue=ot.current)===null||ue===void 0||ue.handlePhoto()},$a=function(){var De=Object(Q.a)(g.a.mark(function ue(){var ge,B,ce;return g.a.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return he.next=2,Object(m.m)(w==null||((ge=w.query)===null||ge===void 0)?void 0:ge.examId);case 2:return he.next=4,Object(u.a)("/api/students/exercises/".concat(w==null||((B=w.query)===null||B===void 0)?void 0:B.examId,"/check_status.json"),{method:"get"});case 4:ce=he.sent,(ce==null?void 0:ce.status)===0&&Yt((ce==null?void 0:ce.left_time)&&Date.now()+(ce==null?void 0:ce.left_time)*1e3);case 6:case"end":return he.stop()}},ue)}));return function(){return De.apply(this,arguments)}}(),Wa=!!(ct!=null&&ct.some(function(De){return De.ques_id===fe.question_id&&!!De.is_marked}));return a.a.createElement(Y.a,{loading:!1,paragraph:{rows:5},active:!0,className:"p20"},a.a.createElement(h.Fragment,null,a.a.createElement("div",{className:re.a.header},a.a.createElement("div",{className:re.a.num,style:{fontWeight:600,marginRight:20}},R==null||((i=R.exercise)===null||i===void 0)?void 0:i.user_name),a.a.createElement("div",{className:re.a.num},a.a.createElement("div",null,"\u8003\u53F7\uFF1A",(R==null||((l=R.exercise)===null||l===void 0)?void 0:l.exercise_no)||"--"," "),a.a.createElement("div",null,"\u5B66\u53F7\uFF1A",R==null||((v=R.exercise)===null||v===void 0)?void 0:v.student_id," ")),a.a.createElement("div",{title:R==null||((P=R.exercise)===null||P===void 0)?void 0:P.exercise_name,className:re.a.name},R==null||((F=R.exercise)===null||F===void 0)?void 0:F.exercise_name),a.a.createElement("div",{style:{visibility:de?"hidden":"visible"},className:re.a.time},a.a.createElement("span",null,"\u5269\u4F59\u7B54\u9898\u65F6\u95F4\uFF1A"),a.a.createElement("span",{className:re.a.s2},a.a.createElement(x,{value:Tt,onFinish:Ua})),a.a.createElement(D.a,{size:"small",ghost:!0,type:"primary",className:"ml10",disabled:de,onClick:$a},"\u5237\u65B0")),a.a.createElement(D.a,{className:re.a.btn,style:{visibility:de?"hidden":"visible"},disabled:de,onClick:Fa,type:"primary"},"\u4EA4\u5377")),a.a.createElement("div",{className:re.a.wrap},de&&a.a.createElement("div",{className:re.a.back},a.a.createElement("span",{onClick:function(){return Se.c.push("/exam/studentClient")}},a.a.createElement("i",{className:"iconfont icon-fanhui1"})," \u8FD4\u56DE\u8003\u8BD5\u5217\u8868"))),a.a.createElement("div",{className:re.a.wrap,style:{marginTop:"0px"}},a.a.createElement("div",{className:re.a.left,style:{width:Pt?280:0}},a.a.createElement("section",{style:{opacity:Pt?1:0}},Ot&&a.a.createElement("div",{className:re.a.camera},a.a.createElement(T.a,{number:(R==null||((E=R.exercise)===null||E===void 0)?void 0:E.photo_count)-(R==null||((s=R.exercise)===null||s===void 0)?void 0:s.take_photo),take_photo:R==null||((q=R.exercise)===null||q===void 0)?void 0:q.take_photo,ref:ot,width:"232",custom:{categoryId:w==null||((C=w.query)===null||C===void 0)?void 0:C.examId,login:$t==null?void 0:$t.login},time:(W=R.exercise)===null||W===void 0?void 0:W.left_time,supportCamera:function(ue){console.log(ue,333),ue===2||ue===1&&(Object(b.a)()&&Object(b.b)(),setTimeout(function(){return Se.c.replace("/exam/studentClient")},2e3))}})),de&&((R==null?void 0:R.user_score)||(R==null||((H=R.exercise)===null||H===void 0)?void 0:H.can_view_scores))&&a.a.createElement("div",{className:re.a.totalScore},(R==null?void 0:R.user_score)&&a.a.createElement(h.Fragment,null,a.a.createElement("span",null,R==null?void 0:R.user_score),a.a.createElement("span",null,"\u8003\u8BD5\u5F97\u5206")),(R==null||((le=R.exercise)===null||le===void 0)?void 0:le.can_view_scores)&&a.a.createElement(Re.Link,{className:"font14",to:"/exam/studentList/".concat(w==null||((z=w.query)===null||z===void 0)?void 0:z.examId)},"\u67E5\u770B\u6210\u7EE9\u7EDF\u8BA1>>")),de&&a.a.createElement("div",{className:re.a.totalAnswerScore},a.a.createElement("span",null,"\u7B54\u9898",a.a.createElement("i",null,ct==null||((ae=ct.filter(function(De){return De.ques_status}))===null||ae===void 0)?void 0:ae.length)),a.a.createElement("span",null,"\u5171",a.a.createElement("i",null,(R==null||((J=R.exercise_types)===null||J===void 0)?void 0:J.q_counts)||(R==null||((me=R.exercise_scores)===null||me===void 0||((se=me.exercise_types)===null||se===void 0))?void 0:se.q_counts)),"\u9898\uFF0C\u6EE1\u5206",a.a.createElement("i",null,(R==null||((ke=R.exercise_types)===null||ke===void 0)?void 0:ke.q_scores)||(R==null||((Ne=R.exercise_scores)===null||Ne===void 0||((Ee=Ne.exercise_types)===null||Ee===void 0))?void 0:Ee.q_scores)),"\u5206")),a.a.createElement("div",{className:"relative",style:{minHeight:236}},a.a.createElement("aside",{className:"bg-white p20"},!de&&a.a.createElement("aside",{className:re.a.answerInfo},a.a.createElement(N.a,null,a.a.createElement(X.a,{span:12},"\u7B54\u9898\u8FDB\u5EA6"),a.a.createElement(X.a,{span:12,className:"tr c-light-primary"},ct==null||((xe=ct.filter(function(De){return!!De.ques_status}))===null||xe===void 0)?void 0:xe.length," / ",R==null||((Ke=R.exercise_types)===null||Ke===void 0)?void 0:Ke.q_counts),a.a.createElement(X.a,{span:24},a.a.createElement(M.a,{trailColor:"#c3ced2",percent:(ct==null||((we=ct.filter(function(De){return!!De.ques_status}))===null||we===void 0)?void 0:we.length)/(R==null||((O=R.exercise_types)===null||O===void 0)?void 0:O.q_counts)*100,showInfo:!1})),a.a.createElement(X.a,null,a.a.createElement("span",{className:"c-grey-333"},"\u5171 ",a.a.createElement("span",{className:"c-light-primary"},(R==null||((Rt=R.exercise_types)===null||Rt===void 0)?void 0:Rt.q_counts)||(R==null||((xt=R.exercise_scores)===null||xt===void 0||((rt=xt.exercise_types)===null||rt===void 0))?void 0:rt.q_counts))," \u9898\uFF1A"),a.a.createElement("span",{className:"c-grey-333"},"\u6EE1\u5206 ",a.a.createElement("span",{className:"c-light-primary"},(R==null||((it=R.exercise_types)===null||it===void 0)?void 0:it.q_scores)||(R==null||((bt=R.exercise_scores)===null||bt===void 0||((yt=bt.exercise_types)===null||yt===void 0))?void 0:yt.q_scores))," \u5206")))),a.a.createElement("aside",{style:{maxHeight:360,overflow:"auto"}},R==null||((Ce=R.exercise_question_types)===null||Ce===void 0)?void 0:Ce.map(function(De){return a.a.createElement(h.Fragment,{key:De.question_type},Aa(De))}))))),a.a.createElement("div",{className:re.a.fold,onClick:function(){return Gt(!Pt)}},Pt&&a.a.createElement("span",{className:"icon-zuojiantou iconfont c-grey-c"}),!Pt&&a.a.createElement("span",{className:"icon-youjiantou iconfont c-grey-c"}))),a.a.createElement("div",{className:re.a.right},a.a.createElement("div",{style:{height:de?"calc(100vh - 176px)":"calc(100vh - 108px)"},className:re.a.content},Ia()),a.a.createElement("div",{className:re.a.btns},!de&&a.a.createElement(D.a,{onClick:Ba,ghost:!0,type:"primary"},Wa?"\u53D6\u6D88\u6807\u8BB0":"\u6807\u8BB0\u8BD5\u9898"),fe.q_position>1&&a.a.createElement(D.a,{onClick:function(){return Da("prev")},type:"primary"},"\u4E0A\u4E00\u9898"),fe.q_position: Unmounted during event!");return ie}},fV52:function(Be,I,r){"use strict";var S=r("cIOH"),Y=r.n(S),k=r("6/k+"),N=r.n(k)},gbW8:function(Be,I,r){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.findInArray=S,I.isFunction=Y,I.isNum=k,I.int=N,I.dontSetMe=Z;function S(M,n){for(var X=0,te=M.length;X=0)continue;if(!Object.prototype.propertyIsEnumerable.call(_,U))continue;j[U]=_[U]}}return j}function ne(_,y){if(_==null)return{};var j={},U=Object.keys(_),L,V;for(V=0;V=0)continue;j[L]=_[L]}return j}function Oe(_,y){var j=Object.keys(_);if(Object.getOwnPropertySymbols){var U=Object.getOwnPropertySymbols(_);y&&(U=U.filter(function(L){return Object.getOwnPropertyDescriptor(_,L).enumerable})),j.push.apply(j,U)}return j}function Xe(_){for(var y=1;y_.length)&&(y=_.length);for(var j=0,U=new Array(y);j, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element."),L}return u(j,[{key:"componentDidMount",value:function(){typeof window.SVGElement!="undefined"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}},{key:"componentWillUnmount",value:function(){this.setState({dragging:!1})}},{key:"findDOMNode",value:function(){var L,V,ve;return(L=(V=this.props)===null||V===void 0||((ve=V.nodeRef)===null||ve===void 0)?void 0:ve.current)!==null&&L!==void 0?L:N.default.findDOMNode(this)}},{key:"render",value:function(){var L,V=this.props,ve=V.axis,_e=V.bounds,pe=V.children,Le=V.defaultPosition,dt=V.defaultClassName,et=V.defaultClassNameDragging,lt=V.defaultClassNameDragged,gt=V.position,tt=V.positionOffset,$e=V.scale,kt=Ue(V,ee),Ct={},ze=null,We=Boolean(gt),at=!We||this.state.dragging,mt=gt||Le,Et={x:(0,n.canDragX)(this)&&at?this.state.x:mt.x,y:(0,n.canDragY)(this)&&at?this.state.y:mt.y};this.state.isElementSVG?ze=(0,M.createSVGTransform)(Et,tt):Ct=(0,M.createCSSTransform)(Et,tt);var vt=(0,Z.default)(pe.props.className||"",dt,(L={},$(L,et,this.state.dragging),$(L,lt,this.state.dragged),L));return Y.createElement(te.default,be({},kt,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),Y.cloneElement(Y.Children.only(pe),{className:vt,style:Xe(Xe({},pe.props.style),Ct),transform:ze}))}}],[{key:"getDerivedStateFromProps",value:function(L,V){var ve=L.position,_e=V.prevPropsPosition;return ve&&(!_e||ve.x!==_e.x||ve.y!==_e.y)?((0,D.default)("Draggable: getDerivedStateFromProps %j",{position:ve,prevPropsPosition:_e}),{x:ve.x,y:ve.y,prevPropsPosition:Xe({},ve)}):null}}]),j}(Y.Component);I.default=oe,$(oe,"displayName","Draggable"),$(oe,"propTypes",Xe(Xe({},te.default.propTypes),{},{axis:k.default.oneOf(["both","x","y","none"]),bounds:k.default.oneOfType([k.default.shape({left:k.default.number,right:k.default.number,top:k.default.number,bottom:k.default.number}),k.default.string,k.default.oneOf([!1])]),defaultClassName:k.default.string,defaultClassNameDragging:k.default.string,defaultClassNameDragged:k.default.string,defaultPosition:k.default.shape({x:k.default.number,y:k.default.number}),positionOffset:k.default.shape({x:k.default.oneOfType([k.default.number,k.default.string]),y:k.default.oneOfType([k.default.number,k.default.string])}),position:k.default.shape({x:k.default.number,y:k.default.number}),className:X.dontSetMe,style:X.dontSetMe,transform:X.dontSetMe})),$(oe,"defaultProps",Xe(Xe({},te.default.defaultProps),{},{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}))},sS6v:function(Be,I,r){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.default=S;function S(){var Y}}}]); diff --git a/umi.b717bf9e.js b/umi.62d87106.js similarity index 99% rename from umi.b717bf9e.js rename to umi.62d87106.js index 3685527e6b..36b4052518 100644 --- a/umi.b717bf9e.js +++ b/umi.62d87106.js @@ -1,4 +1,4 @@ -(function(T){function p(s){for(var m=s[0],f=s[1],g,d,v=0,c=[];v