diff --git a/index.html b/index.html index d7e43497f5..66a27e2762 100644 --- a/index.html +++ b/index.html @@ -172,7 +172,7 @@ display: block !important; } - + \ No newline at end of file diff --git a/umi.0ceaae84.js b/umi.1a8802cd.js similarity index 99% rename from umi.0ceaae84.js rename to umi.1a8802cd.js index 6ee39ce229..f4feaf9f58 100644 --- a/umi.0ceaae84.js +++ b/umi.1a8802cd.js @@ -971,7 +971,7 @@ http://j.mp/37Fkd5Q `:'
'+(oe?ae:(0,l.escape)(ae,!0))+"
"},a.heading=function(ae,ne,oe){let q=this.options.headerPrefix+oe.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return h.push({anchor:q,level:ne,text:ae}),"'+ae+""},i().setOptions({silent:!0,gfm:!0,pedantic:!1}),i().use({tokenizer:S,renderer:a}),_.ZP=i()},49661:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{AS:function(){return vtrsKey},BO:function(){return NewAntdDisabledDate},BR:function(){return aiReviewConfigformatChecks},Br:function(){return getBlob},DH:function(){return timego},Dk:function(){return setDocumentTitle},Dw:function(){return onPreviewImage},EJ:function(){return HighLightedContent},EM:function(){return toChineseNumber},EN:function(){return preciseCalculation},Ec:function(){return setHeader},FH:function(){return downLoadFile},G5:function(){return sendAppStatus},G7:function(){return handleValidatorNickName},HJ:function(){return handleValidatorName},I9:function(){return RomanNumber},IS:function(){return isWechatBrowser},Il:function(){return setThreeComponent},JL:function(){return formatHomeWorkStatusToName},Jn:function(){return getImageUrl},L4:function(){return PollsStatus},L9:function(){return trackEvent},LR:function(){return download},Ll:function(){return checkIsClientExam},M:function(){return setmiyah},M2:function(){return randomArray},NY:function(){return setUrlQuery},Nd:function(){return downLoadLink},Oo:function(){return getCategoryName},Or:function(){return toWechatLogin},PF:function(){return formatRandomPaperDatas},Pq:function(){return cutName},Q8:function(){return disabledDate},QB:function(){return timeContrast},QE:function(){return releaseRuleDataAdjust},QH:function(){return downLoadFileIframe},Qq:function(){return JudgeSort},RD:function(){return bytesToSize},RG:function(){return copyTextFuc},Sp:function(){return rangeNumber},Tv:function(){return ImgSrcConvert},U6:function(){return HalfPastOne},UQ:function(){return HomeWorkDetailStatus},Uw:function(){return CommonWorkStatus},VV:function(){return StatusClassroomsTags},Vf:function(){return domScrollToTop},W:function(){return isUnOrNull},WX:function(){return isLocalApp},Y:function(){return HomeWorkCommonDetailStatus},YA:function(){return getHiddenName},ZI:function(){return numFormat},ZJ:function(){return toDataUrl},_g:function(){return getMessagesUrl},_m:function(){return isKepuKehuan},ad:function(){return formatRandomPaperData},b9:function(){return isPc},cX:function(){return localSort},d0:function(){return disabledTime},d8:function(){return setCookie},db:function(){return getFileContentAndUrl},eF:function(){return bindPhone},eR:function(){return validateLength},ej:function(){return getCookie},en:function(){return parseUrl},fX:function(){return buildTree},hE:function(){return isInsecureOrLocalhost},hi:function(){return getExamRestrictionInfo},hv:function(){return NewAntdDisabledTime},i7:function(){return isChrome},j1:function(){return StatusGraduationProjectTags},jh:function(){return educationList},jt:function(){return showInstallWebRtcDoc},ju:function(){return ExerciseStatus},jz:function(){return replaceParamVal},k3:function(){return scrollToTop},kk:function(){return pointerEvents},lC:function(){return HomeWorkListStatus},lF:function(){return toWNumber},li:function(){return toTimeFormat},m5:function(){return clearAllCookies},nr:function(){return startExercise},oP:function(){return getJsonFromUrl},oV:function(){return ZimuSort},og:function(){return formatRate},oi:function(){return checkLocalOrPublicIp},pE:function(){return addJumping},pp:function(){return findEndWhitespace},qZ:function(){return arrTrans},qd:function(){return DayHalfPastOne},rK:function(){return HomeWorkShixunListStatus},rU:function(){return showTotal},rz:function(){return moveArray},s2:function(){return isMobileDevice},tP:function(){return cutFileName},tw:function(){return getTwoDecimalPlaces},uD:function(){return dealUploadChange},vA:function(){return HomeWorkShixunDetailStatus},vB:function(){return exerciseTips},vQ:function(){return copyToClipboard},xg:function(){return openNewWindow},y3:function(){return getBase64},yC:function(){return compareVersion}});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(59301),_utils_authority__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(34055),antd__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(8591),antd__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(43418),antd__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(95237),antd__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(43604),_components_Exercise_ip__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(15610),_service_exercise__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(72664),_contentType__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(28048),umi__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(76560),md5__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(93735),md5__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(md5__WEBPACK_IMPORTED_MODULE_6__),_env__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(90524),_components_mediator__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(33796),_components_RenderHtml__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(7664),_utils_fetch__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(82093),crypto_js__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(28209),crypto_js__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(crypto_js__WEBPACK_IMPORTED_MODULE_11__),_key__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(77976),moment__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(61186),moment__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_12__),dayjs_plugin_customParseFormat__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(33656),dayjs_plugin_customParseFormat__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(dayjs_plugin_customParseFormat__WEBPACK_IMPORTED_MODULE_13__),uuid__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(1012),__defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(d,_,e)=>_ in d?__defProp(d,_,{enumerable:!0,configurable:!0,writable:!0,value:e}):d[_]=e,__spreadValues=(d,_)=>{for(var e in _||(_={}))__hasOwnProp.call(_,e)&&__defNormalProp(d,e,_[e]);if(__getOwnPropSymbols)for(var e of __getOwnPropSymbols(_))__propIsEnum.call(_,e)&&__defNormalProp(d,e,_[e]);return d},__spreadProps=(d,_)=>__defProps(d,__getOwnPropDescs(_)),__async=(d,_,e)=>new Promise((r,i)=>{var l=o=>{try{f(e.next(o))}catch(h){i(h)}},c=o=>{try{f(e.throw(o))}catch(h){i(h)}},f=o=>o.done?r(o.value):Promise.resolve(o.value).then(l,c);f((e=e.apply(d,_)).next())}),_a,_b;moment__WEBPACK_IMPORTED_MODULE_12___default().extend(dayjs_plugin_customParseFormat__WEBPACK_IMPORTED_MODULE_13___default());const HighLightedContent=(d,_=[],e="#2EC25B")=>(typeof _=="string"&&(_=[_]),d.replace(new RegExp(`(${_.join("|")})`,"gi"),`$1`)),parseParams=d=>{d=d||{};let _="";for(let e in d)typeof d[e]=="object"?Array.isArray(d[e])&&d[e].forEach((r,i)=>{_+="&"+e+"[]="+r}):d[e]!==void 0&&(_+="&"+e+"="+d[e]);return _.substr(1)},getKey=d=>window.atob(window.atob(d));function bytesToSize(d){var _=["Bytes","KB","MB","GB","TB"];if(d==0)return"0 Byte";var e=parseInt(""+Math.floor(Math.log(d)/Math.log(1024)),10);return(d/Math.pow(1024,e)).toFixed(1)+" "+_[e]}const getTwoDecimalPlaces=d=>Math.round(Math.round(d*1e5)/1e3*100)/100,NewAntdDisabledDate=(d,_=null)=>{const e=dmoment__WEBPACK_IMPORTED_MODULE_12___default()(_==null?void 0:_.endTime).endOf("day"),i=d{const e=parseInt(moment__WEBPACK_IMPORTED_MODULE_12___default()(d).format("HH")),r=parseInt(moment__WEBPACK_IMPORTED_MODULE_12___default()(d).format("mm")),i=parseInt(moment__WEBPACK_IMPORTED_MODULE_12___default()().format("HH")),l=parseInt(moment__WEBPACK_IMPORTED_MODULE_12___default()().format("mm")),c=parseInt(moment__WEBPACK_IMPORTED_MODULE_12___default()().format("ss"));function f(o,h){const u=[];for(let a=o;af(0,i),disabledMinutes:()=>f(0,l)};if(_!=null&&_.compared){const o=parseInt(moment__WEBPACK_IMPORTED_MODULE_12___default()(_==null?void 0:_.compared).format("HH")),h=parseInt(moment__WEBPACK_IMPORTED_MODULE_12___default()(_==null?void 0:_.compared).format("mm")),u=parseInt(moment__WEBPACK_IMPORTED_MODULE_12___default()(_==null?void 0:_.compared).format("ss"));return moment__WEBPACK_IMPORTED_MODULE_12___default()(d).isSame(moment__WEBPACK_IMPORTED_MODULE_12___default()(_==null?void 0:_.compared),"day")?{disabledHours:()=>f(0,o),disabledMinutes:()=>e<=o?f(0,h):[]}:void 0}if(moment__WEBPACK_IMPORTED_MODULE_12___default()(d).isSame(moment__WEBPACK_IMPORTED_MODULE_12___default()(),"day"))return{disabledHours:()=>f(0,i),disabledMinutes:()=>moment__WEBPACK_IMPORTED_MODULE_12___default()(d).isSame(moment__WEBPACK_IMPORTED_MODULE_12___default()(),"hour")&&e<=i?f(0,l):[]}},disabledDate=(d,_,e,r)=>{r=typeof r=="string"?moment__WEBPACK_IMPORTED_MODULE_12___default()(r):r;const i=r?d<(r==null?void 0:r.startOf("day")):dmoment__WEBPACK_IMPORTED_MODULE_12___default()(_).endOf("day"),c=d{const e=parseInt(moment__WEBPACK_IMPORTED_MODULE_12___default()(d).format("HH")),r=parseInt(moment__WEBPACK_IMPORTED_MODULE_12___default()().format("HH")),i=parseInt(moment__WEBPACK_IMPORTED_MODULE_12___default()().format("mm"));function l(c,f){const o=[];for(let h=c;hl(0,r),disabledMinutes:()=>l(0,i)};if(_){const c=parseInt(moment__WEBPACK_IMPORTED_MODULE_12___default()(_).format("HH")),f=parseInt(moment__WEBPACK_IMPORTED_MODULE_12___default()(_).format("mm"));return moment__WEBPACK_IMPORTED_MODULE_12___default()(d).isSame(moment__WEBPACK_IMPORTED_MODULE_12___default()(_),"day")?{disabledHours:()=>l(0,c),disabledMinutes:()=>e<=c?l(0,f):[]}:void 0}if(moment__WEBPACK_IMPORTED_MODULE_12___default()(d).isSame(moment__WEBPACK_IMPORTED_MODULE_12___default()(),"day"))return{disabledHours:()=>l(0,r),disabledMinutes:()=>moment__WEBPACK_IMPORTED_MODULE_12___default()(d).isSame(moment__WEBPACK_IMPORTED_MODULE_12___default()(),"hour")&&e<=r?l(0,i):[]}},preciseCalculation=(d,_,e)=>{typeof d=="string"&&(d=Number(d)),typeof _=="string"&&(_=Number(_));const r=(d.toString().split(".")[1]||"").length,i=(_.toString().split(".")[1]||"").length,l=Math.max(r,i),c=Math.pow(10,l);return(()=>{switch(e){case"+":return(Math.round(d*c)+Math.round(_*c))/c;case"-":return(Math.round(d*c)-Math.round(_*c))/c;case"*":return Math.round(d*c)*Math.round(_*c)/(c*c);case"/":return Math.round(d*c)/Math.round(_*c);default:throw new Error("\u4E0D\u652F\u6301\u7684\u8FD0\u7B97\u7B26\u53F7")}})()},toWNumber=d=>d/1e4>1?react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,Math.round(d/1e4*100)/100,react__WEBPACK_IMPORTED_MODULE_0__.createElement("i",{className:"font12"},"w")):d,toChineseNumber=d=>{const _=d.toString().replace(/(?=(\d{4})+$)/g,",").split(",").filter(Boolean),e=["\u96F6","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D"],r=["","\u5341","\u767E","\u5343"],i=["","\u4E07","\u4EBF"],l=f=>{let o="";for(let h=0;h{const r=d.splice(_,1)[0];return d.splice(e,0,r),d},ZimuSort=["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"],JudgeSort=["\u6B63\u786E","\u9519\u8BEF"],RomanNumber=["I","II","III","IV","V","VI","VII","VIII","IX","X","XI","XII","XIII","XIV","XV","XVI","XVII","XVIII","XIX","XX"],findEndWhitespace=d=>{if(!d)return"";const _=d.replace(/(?:\r\n|\n)/g,`\x1B[41m\x1B[37m\u21B5\x1B[0m\r `).replace(/ +$/g,"\x1B[41m \x1B[0m");return console.debug("str:",_,JSON.stringify(d)),_},StatusTags=d=>{const _={\u5DF2\u622A\u6B62:{class:"tag-style bg-pink ml10"},\u63D0\u4EA4\u4E2D:{class:"tag-style bg-blue ml10"},\u8FDB\u884C\u4E2D:{class:"tag-style bg-blue ml10"},\u672A\u53D1\u5E03:{class:"tag-style bgB8B8B8 ml10"},\u8865\u4EA4\u4E2D:{class:"tag-style bg-blue ml10"},\u96C6\u4E2D\u9605\u5377:{class:"tag-style bg-light-orangess ml10soft"}};return d.data&&d.data.map(function(e,r){return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{key:r,className:_[e]&&_[e].class},e)})},formatHomeWorkStatusToName=d=>({[-1]:"\u91CD\u505A\u4E2D",0:"\u672A\u5F00\u542F",1:"\u672A\u901A\u5173",2:"\u6309\u65F6\u901A\u5173"})[d]||"\u8FDF\u4EA4\u901A\u5173",HomeWorkListStatus=d=>{var _,e;const r={[-1]:{name:"\u91CD\u505A\u4E2D",class:"c-orange"},0:{name:"\u672A\u5F00\u542F",class:"c-black"},1:{name:"\u672A\u901A\u5173",class:"c-red"},2:{name:"\u6309\u65F6\u901A\u5173",class:"c-green"},3:{name:"\u8865\u4EA4\u901A\u5173",class:"c-orange"},4:{name:"\u622A\u6B62\u901A\u5173",class:"c-red"}};return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:(_=r==null?void 0:r[d.status])==null?void 0:_.class},(e=r==null?void 0:r[d.status])==null?void 0:e.name)},HomeWorkShixunListStatus=d=>{var _,e;const r={[-1]:{name:"\u91CD\u505A\u4E2D",class:"c-orange"},0:{name:"\u672A\u5F00\u542F",class:"c-black"},1:{name:"\u672A\u901A\u5173",class:"c-red"},2:{name:"\u6309\u65F6\u901A\u5173",class:"c-green"},3:{name:"\u8865\u4EA4\u901A\u5173",class:"c-orange"},4:{name:"\u622A\u6B62\u540E\u901A\u5173",class:"c-red"}};return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:(_=r==null?void 0:r[d.status])==null?void 0:_.class},(e=r==null?void 0:r[d.status])==null?void 0:e.name)},HomeWorkDetailStatus=d=>{var _,e;const r={[-1]:{name:"\u91CD\u505A\u4E2D",class:"c-orange",color:"#999999"},0:{name:"\u672A\u5F00\u542F",class:"c-black",color:"#999999"},1:{name:"\u672A\u901A\u5173",class:"c-red",color:"#d4443d"},2:{name:"\u6309\u65F6\u901A\u5173",class:"c-green",color:"#57be40"},3:{name:"\u8865\u4EA4\u901A\u5173",class:"c-orange",color:"#f09143"},4:{name:"\u622A\u6B62\u901A\u5173",class:"c-red",color:"#d4443d"}};return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:{marginLeft:"10px",color:"#fff",background:(_=r==null?void 0:r[d.status])==null?void 0:_.color,borderRadius:"20px",width:"65px",height:"18px",justifyContent:"center",display:"inline-flex",lineHeight:"18px"}},(e=r==null?void 0:r[d.status])==null?void 0:e.name)},HomeWorkShixunDetailStatus=d=>{var _,e;const r={[-1]:{name:"\u91CD\u505A\u4E2D",class:"c-orange",color:"#999999"},0:{name:"\u672A\u5F00\u542F",class:"c-black",color:"#999999"},1:{name:"\u672A\u901A\u5173",class:"c-red",color:"#d4443d"},2:{name:"\u6309\u65F6\u901A\u5173",class:"c-green",color:"#57be40"},3:{name:"\u8865\u4EA4\u901A\u5173",class:"c-orange",color:"#f09143"},4:{name:"\u622A\u6B62\u540E\u901A\u5173",class:"c-red",color:"#d4443d"},5:{name:"\u622A\u6B62\u540E\u8BC4\u6D4B",class:"c-red",color:"#d4443d"}};return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:{marginLeft:"10px",color:"#fff",background:(_=r==null?void 0:r[d.status])==null?void 0:_.color,borderRadius:"20px",padding:"0 8px",height:"18px",justifyContent:"center",display:"inline-flex",lineHeight:"18px"}},(e=r==null?void 0:r[d.status])==null?void 0:e.name)},HomeWorkCommonDetailStatus=d=>{var _,e;const r={[-1]:{name:"\u91CD\u505A\u4E2D",class:"c-black",color:"#999999"},0:{name:"\u672A\u63D0\u4EA4",class:"c-black",color:"#999999"},1:{name:"\u6309\u65F6\u63D0\u4EA4",class:"c-green",color:"#57be40"},2:{name:"\u5EF6\u65F6\u63D0\u4EA4",class:"c-red",color:"#d4443d"}};return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:{marginLeft:"10px",color:"#fff",background:(_=r==null?void 0:r[d.status])==null?void 0:_.color,borderRadius:"20px",padding:"0 8px",height:"18px",justifyContent:"center",display:"inline-flex",lineHeight:"18px"}},(e=r==null?void 0:r[d.status])==null?void 0:e.name)},StatusGraduationProjectTags=d=>{const{status:_}=d,e={0:{class:"tag-style bg-blue ml10",name:"\u5F85\u9009\u4E2D"},1:{class:"tag-style bg-blue ml10",name:"\u5F85\u786E\u8BA4"},2:{class:"tag-style bg-pink ml10",name:"\u5DF2\u786E\u8BA4"}};try{return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:e[_].class},e[_].name)}catch(r){console.log("utils.StatusGraduationProjectTags",d.status)}},ExerciseStatus={1:"\u672A\u53D1\u5E03",2:"\u8003\u8BD5\u4E2D",3:"\u5DF2\u622A\u6B62",4:"\u5DF2\u7ED3\u675F",5:"\u96C6\u4E2D\u9605\u5377",99:"\u6A21\u62DF\u8003\u8BD5\u4E2D"},PollsStatus={1:"\u672A\u53D1\u5E03",2:"\u63D0\u4EA4\u4E2D",3:"\u5DF2\u622A\u6B62",4:"\u5DF2\u7ED3\u675F",5:"\u672A\u5F00\u59CB"},StatusClassroomsTags=d=>{let _={\u6A21\u62DF\u8003\u8BD5\u4E2D:{class:"tag-style bg-light-pink ml10"},\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A:{class:"tag-style-fzb ml10 iconfont icon-fangzuobi"},\u516C\u5F00:{class:"tag-style bg-blue ml10"},\u5DF2\u5F00\u542F\u8865\u4EA4:{class:"tag-style bg-green ml10soft"},\u672A\u5F00\u542F\u8865\u4EA4:{class:"tag-style bg-pink ml10soft"},\u672A\u53D1\u5E03:{class:"tag-style bgB8B8B8 ml10soft"},\u672A\u5F00\u59CB:{class:"tag-style bg-c5d6ff ml10soft"},\u533F\u540D\u4F5C\u54C1:{class:"tag-style bg-cyan ml10"},\u5DF2\u9009\u62E9:{class:"tag-style bg-grey-ede ml10"},\u5DF2\u7ED3\u675F:{class:"tag-style bg-grey-ede ml10soft"},\u63D0\u4EA4\u4E2D:{class:"tag-style bg-blue ml10soft"},\u8FDB\u884C\u4E2D:{class:"tag-style bg-blue ml10soft"},\u533F\u8BC4\u4E2D:{class:"tag-style bg-blue ml10"},\u7533\u8BC9\u4E2D:{class:"tag-style bg-blue ml10"},\u8003\u8BD5\u4E2D:{class:"tag-style bg-light-blue ml10"},\u8865\u4EA4\u4E2D:{class:"tag-style bg-blue ml10soft"},\u8BC4\u9605\u4E2D:{class:"tag-style bg-blue ml10"},\u5F85\u9009\u4E2D:{class:"tag-style bg-blue ml10"},\u4EA4\u53C9\u8BC4\u9605\u4E2D:{class:"tag-style bg-light-orange ml10"},\u5DF2\u5F00\u542F\u4EA4\u53C9\u8BC4\u9605:{class:"tag-style bg-lightblue-purple ml10"},\u5F85\u786E\u8BA4:{class:"tag-style bg-lightblue-purple ml10"},\u5F85\u5904\u7406:{class:"tag-style bg-lightblue-purple ml10"},\u79C1\u6709:{class:"tag-style bg-lightblue-purple ml10"},\u672A\u63D0\u4EA4:{class:"tag-style bg-lightblue-purple ml10"},\u5DF2\u786E\u8BA4:{class:"tag-style bg-light-pink ml10"},\u5DF2\u53D1\u5E03:{class:"tag-style bg-light-blue ml10"},\u5DF2\u622A\u6B62:{class:"tag-style bg-light-pink ml10soft"},\u5F00\u53D1\u8BFE\u7A0B:{class:"tag-style bg-orange ml10"},\u5DF2\u5F00\u64AD:{class:"tag-style-border border-green c-green ml10"},\u672A\u5F00\u64AD:{class:"tag-style-border border-light-black ml10"},\u6309\u65F6\u901A\u5173:{class:"tag-style-border border-light-black ml10"},\u8FDF\u4EA4\u901A\u5173:{class:"tag-style-border border-light-black ml10"},\u672A\u901A\u5173:{class:"tag-style-border border-light-black ml10"},\u672A\u5F00\u542F:{class:"tag-style-border border-light-black ml10"},\u5BFC\u5165:{class:"export ml10"},\u96C6\u4E2D\u9605\u5377:{class:"tag-style bg-light-orangess ml10soft"}};const e={\u672A\u53D1\u5E03:{class:"tag-style bg-C6CED6 ml10soft"},\u672A\u5F00\u59CB:{class:"tag-style bg-C1E2FF ml10soft"},\u8FDB\u884C\u4E2D:{class:"tag-style bg-0152d9 ml10soft"},\u5DF2\u622A\u6B62:{class:"tag-style bg-E53333 ml10soft"},\u63D0\u4EA4\u4E2D:{class:"tag-style bg-0152d9 ml10soft"},\u8865\u4EA4\u4E2D:{class:"tag-style bg-44D7B6 ml10soft"}};d.temporary&&(_=__spreadValues(__spreadValues({},_),e));const r=[];d.is_random&&r.push(react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"tag-style bg-blue ml10"},"\u968F\u673A"));try{d.status&&d.status.map((i,l)=>{r.push(react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:(d==null?void 0:d.style)||[],key:l,className:_[i]&&_[i].class},i))})}catch(i){console.log("utils.status.tag:",i,d.status)}return r},exerciseTips=(d,_)=>{if(d===5||_)return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:{backgroundColor:"#f59a23"},className:"tag-style ml5"},"\u96C6\u4E2D\u9605\u5377");if(d===1)return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:{backgroundColor:"#B8B8B8"},className:"tag-style ml5"},"\u672A\u5F00\u59CB");if(d===2)return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:{backgroundColor:"#007AFF"},className:"tag-style ml5"},"\u8003\u8BD5\u4E2D");if(d===3||d===4)return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:{backgroundColor:"#FC2D6B"},className:"tag-style ml5"},"\u5DF2\u622A\u6B62");if(d===-1)return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"export ml5"},"\u5BFC\u5165")},WorkStatus=d=>{var _,e;const r={[-1]:{name:"\u91CD\u505A\u4E2D",class:"c-orange"},0:{name:"\u672A\u63D0\u4EA4",class:"c-black"},1:{name:"\u672A\u901A\u5173",class:"c-red"},2:{name:"\u6309\u65F6\u901A\u5173",class:"c-green"},3:{name:"\u8FDF\u4EA4\u901A\u5173",class:"c-orange"}};return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:(_=r[d.status])==null?void 0:_.class},(e=r[d.status])==null?void 0:e.name)},CommonWorkStatus=d=>{var _,e;const r={0:{name:"\u672A\u63D0\u4EA4",class:"c-black"},1:{name:"\u6309\u65F6\u63D0\u4EA4",class:"c-green"},2:{name:"\u5EF6\u65F6\u63D0\u4EA4",class:"c-red"},3:{name:"\u90E8\u5206\u63D0\u4EA4",class:"c-green"},4:{name:`\u6309\u65F6\u63D0\u4EA4${d!=null&&d.lineBreak?` `:""}\uFF08\u6559\u5E08\u63D0\u4EA4\uFF09`,class:"c-green"},5:{name:`\u672A\u63D0\u4EA4${d!=null&&d.lineBreak?` -`:""}\uFF08\u6559\u5E08\u63D0\u4EA4\uFF09`,class:"c-black"},6:{name:"\u6309\u65F6\u63D0\u4EA4\uFF08\u7EBF\u4E0B\uFF09",class:"c-green"}};return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:(_=r[d.status])==null?void 0:_.class},(e=r[d.status])==null?void 0:e.name)},timego=d=>{d=new Date(d).getTime();let _=1e3*60,e=_*60,r=e*24,i="",c=new Date().getTime()-d;if(c<0)return console.log("\u65F6\u95F4\u4E0D\u5BF9\u52B2,\u670D\u52A1\u5668\u521B\u5EFA\u65F6\u95F4\u4E0E\u5F53\u524D\u65F6\u95F4\u4E0D\u540C\u6B65"),i="\u521A\u521A";let f=parseInt(c/r,10),o=parseInt(c/e,10),h=parseInt(c/_,10);return f>30?i=""+timeformat(d,"yyyy-MM-dd"):f>1?i=""+f+"\u5929\u524D":f==1?i="\u6628\u5929":o>=1?i=""+o+"\u5C0F\u65F6\u524D":h>=5?i=""+h+"\u5206\u949F\u524D":i="\u521A\u521A",i};function replaceParamVal(paramName,replaceWith){var oUrl=window.location.href.toString(),re=eval("/("+paramName+"=)([^&]*)/gi"),nUrl=oUrl.replace(re,paramName+"="+replaceWith);window.history.replaceState(null,"",nUrl)}const timeformat=(d,_)=>{typeof d=="string"&&(d.indexOf("T")>=0&&(d=d.replace("T"," ")),d=new Date(Date.parse(d.replace(/-/g,"/")))),d=new Date(d);let e={"M+":d.getMonth()+1,"d+":d.getDate(),"h+":d.getHours(),"m+":d.getMinutes(),"s+":d.getSeconds(),"q+":Math.floor((d.getMonth()+3)/3),S:d.getMilliseconds()},r=[["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],["\u5468\u65E5","\u5468\u4E00","\u5468\u4E8C","\u5468\u4E09","\u5468\u56DB","\u5468\u4E94","\u5468\u516D"],["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"]];/(y+)/.test(_)&&(_=_.replace(RegExp.$1,(d.getFullYear()+"").substr(4-RegExp.$1.length))),/(w+)/.test(_)&&(_=_.replace(RegExp.$1,r[RegExp.$1.length-1][d.getDay()]));for(let i in e)new RegExp("("+i+")").test(_)&&(_=_.replace(RegExp.$1,RegExp.$1.length==1?e[i]:("00"+e[i]).substr((""+e[i]).length)));return _},toTimeFormat=d=>{if(!d||d<0)return"0\u79D2";console.log("time:",d);let _=60,e=_*60,r=e*24,i=d/r,l=d/e,c=d/_,f=d%60;return i>=1?parseInt(i.toString())+"\u5929"+Math.floor(l%24)+"\u65F6"+Math.floor(c%60)+"\u5206"+Math.floor(d%60)+"\u79D2":l>1?parseInt(l.toString())+"\u65F6"+Math.floor(c%60)+"\u5206"+Math.floor(d%60)+"\u79D2":c>=1?parseInt(c.toString())+"\u5206"+Math.floor(d%60)+"\u79D2":Math.ceil(d)+"\u79D2"},validateLength=(d="",_=100)=>{let e=0;if(d){e=d.length;for(let r=0;r=55296&&i<=56319&&(e--,r++)}}return e<=_};function buildTree(d,_){const e={};let r=null;return d.forEach(i=>{e[i.properties.uuid]=__spreadProps(__spreadValues({},i),{children:[]})}),_.forEach(i=>{const l=e[i.startNodeUuid],c=e[i.endNodeUuid];l&&c&&l.children.push(c)}),d.forEach(i=>{!_.some(c=>c.endNodeUuid===i.properties.uuid)&&(r=e[i.properties.uuid])}),r}const handleValidatorNickName=(d,_,e)=>{if(_){let r=/[`~!@#$%^&*()\-+=<>?:"{}|,.\/;'\\[\]~!@#¥%……&*()——\-+={}|《》?:“”【】、;‘’,。、]/im;const l=/[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF][\u200D|\uFE0F]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF]|[0-9|*|#]\uFE0F\u20E3|[0-9|#]\u20E3|[\u203C-\u3299]\uFE0F\u200D|[\u203C-\u3299]\uFE0F|[\u2122-\u2B55]|\u303D|[\A9|\AE]\u3030|\uA9|\uAE|\u3030/gi.test(_),c=r.test(_);(l===!0||c===!0||_.length<2||_.length>=21)&&e("2-20\u4F4D\u4E2D\u82F1\u6587\u3001\u6570\u5B57\u53CA\u4E0B\u5212\u7EBF")}e()},handleValidatorName=(d,_,e)=>{if(_){let r=/[`~!@#$%^&()_\-+=<>?:"{}|,.\/;'\\[\]~!@#¥%……&()——\-+={}|《》?:“”【】、;‘’,。、]/im;const l=/[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF][\u200D|\uFE0F]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF]|[0-9|*|#]\uFE0F\u20E3|[0-9|#]\u20E3|[\u203C-\u3299]\uFE0F\u200D|[\u203C-\u3299]\uFE0F|[\u2122-\u2B55]|\u303D|[\A9|\AE]\u3030|\uA9|\uAE|\u3030/gi.test(_),c=r.test(_);(l===!0||c===!0||_.length<2||_.length>=21)&&e("2-20\u4F4D\u4E2D\u82F1\u6587\u3001\u6570\u5B57")}e()},getHiddenName=d=>{if(!d)return"";let _=d.length-1,e="";for(var r=0;r<_;r++)e+="*";return d.substr(0,1)+e},getBase64=(d,_)=>{const e=new FileReader;e.addEventListener("load",()=>_(e.result)),e.readAsDataURL(d)},getFileContentAndUrl=d=>new Promise((_,e)=>{var r=new FileReader;r.onload=function(){try{const i=window.URL.createObjectURL(d);_({text:this.result,link:i})}catch(i){antd__WEBPACK_IMPORTED_MODULE_14__.ZP.warning("\u5F53\u524D\u6587\u4EF6\u65E0\u6CD5\u8BFB\u53D6\u5185\u5BB9"),e("\u5F53\u524D\u6587\u4EF6\u65E0\u6CD5\u8BFB\u53D6\u5185\u5BB9")}},r.readAsText(d)});function setmiyah(d){return md5__WEBPACK_IMPORTED_MODULE_6___default()("79e33abd4b6588941ab7622aed1e67e8"+d)}const getCookie=d=>{var _,e=RegExp("(^| )"+d+"=([^;]+)(;|$)");return(_=document.cookie.match(e))?decodeURIComponent(_[2]):null};function setCookie(d,_,e){var r=new Date;r.setTime(r.getTime()+e*24*60*60*1e3);var i="expires="+r.toUTCString();document.cookie=d+"="+_+"; "+i+`;domain=${document.domain.indexOf("educoder.net")>-1?".educoder.net":document.domain};path=/;SameSite=None;secure`}const delCookie=d=>{document.cookie=d+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT;path=/;"},clearAllCookies=()=>{for(var d=document.cookie.split(";"),_=0;_-1?e.substr(0,r):e;document.cookie=i+"=;expires=Thu, 01 Jan 1970 00:00:00 GMT"}};function downLoadLink(d,_){let e=document.createElement("a");document.body.appendChild(e),e.href=_,d&&(e.title=d,e.download=d);let r=document.createEvent("MouseEvents");r.initEvent("click",!1,!1),e.dispatchEvent(r),document.body.removeChild(e)}function getFirstLevelDomain(){var d=window.location.hostname,_=d.split(".").reverse();return _.length>2?[_[1],_[0]].join("."):d}function getBlob(d){return new Promise(_=>{const e=new window.XMLHttpRequest;(d.indexOf(getFirstLevelDomain())>-1||location.hostname==="localhost"&&d.indexOf("/api/")>-1)&&(e.withCredentials=!0),e.open("GET",d,!0),e.responseType="blob",e.onload=()=>{e.status===200&&_(e.response)},e.send()})}function saveAs(d,_){if(window.navigator.msSaveOrOpenBlob)window.navigator.msSaveBlob(d,_);else{const e=document.createElement("a"),r=document.querySelector("body");e.href=window.URL.createObjectURL(d),e.download=_,e.style.display="none",r.appendChild(e),e.click(),r.removeChild(e),window.URL.revokeObjectURL(e.href)}}function download(d,_){getBlob(d).then(e=>{saveAs(e,_)})}function downLoadFileIframe(d,_){return new Promise((e,r)=>{var i=_,l=document.createElement("iframe"),c;document.body.appendChild(l),l.src=i,l.style.display="none",l.addEventListener("load",function(){setTimeout(()=>{document.body.removeChild(l)},1e3)},!0),c=setInterval(()=>{getCookie("fileDownload")&&(delCookie("fileDownload"),clearInterval(c),document.body.removeChild(l),e())},1e3)})}function downLoadFile(d,_){downLoadLink(d,_)}const setUrlQuery=d=>{let{url:_,query:e}=d;if(!_)return"";if(e){let r=[];for(const i in e)e.hasOwnProperty(i)&&!isUnOrNull(e[i])&&(typeof e[i]=="object"?e[i].map(l=>{r.push(`${i}[]=${l}`)}):r.push(`${i}=${e[i]}`));_.indexOf("?")!==-1?_=`${_}&${r.join("&")}`:_=`${_}?${r.join("&")}`,console.log("url1111",_)}return _};function isPc(){let d=navigator.userAgent,_=["Android","iPhone","SymbianOS","Windows Phone","iPad","iPod"],e=!0;for(var r=0;r<_.length;r++)if(d.indexOf(_[r])>0){e=!1;break}return e}function isChrome(){let d=navigator.userAgent;return["Chrome"].some(e=>d.indexOf(e)>-1)}function isFirefox(){let d=navigator.userAgent;return["Firefox"].some(e=>d.indexOf(e)>-1)}function isChromeOrFirefox(){let d=navigator.userAgent;return["Chrome","Firefox"].some(e=>d.indexOf(e)>-1)}const formatMoney=(d="")=>{var _;return(_=d==null?void 0:d.toString())==null?void 0:_.replace(/\B(?=(\d{3})+(?!\d))/g,",")},openNewWindow=d=>{let _=document.createElement("a");_.target="_blank",document.body.appendChild(_),_.href=d;let e=document.createEvent("MouseEvents");e.initEvent("click",!1,!1),_.dispatchEvent(e),document.body.removeChild(_)},openNewWindows=d=>{let _=document.createElement("a");document.body.appendChild(_),_.href=d;let e=document.createEvent("MouseEvents");e.initEvent("click",!1,!1),_.dispatchEvent(e),document.body.removeChild(_)},formatTextMiddleIntercept=(d="")=>d.length<=6?d:`${d.substring(0,3)}...${d.substring(d.length-3,d.length)}`,HalfPastOne=()=>{let d=new Date().getHours(),_=new Date().getMinutes();return _>=30?(d++,_="00"):_="30",d+":"+_},DayHalfPastOne=(d="-")=>{let _=new Date().getHours(),e=new Date().getMinutes();return e>=30?(_++,e="00"):e="30",new Date().toLocaleDateString().replace(/\//g,d)+" "+_+":"+e};var Type=(d=>(d.Number="Number",d.String="String",d.Boolean="Boolean",d.Object="Object",d.Array="Array",d.Function="Function",d))(Type||{});const type=d=>{const _=Object.prototype.toString.call(d);return _.substring(8,_.length-1)},isEmpty=d=>type(d)==="Array"?d.length===0:type(d)==="Object"?Object.keys(d).length===0:!d,rangeNumber=(d,_)=>{const e=[];for(let r=d;r<_;r++)e.push(r);return e},middleEllipsis=(d,_=12)=>{let e=_/2-2,r=_/2+3;return d.length>_?d.substr(0,e)+"..."+d.substr(r,_):d},formatRate=d=>d>4.5?5:d>4&&d<=4.5?4.5:d>3.5&&d<=4?4:d>3&&d<=3.5?3.5:d>2.5&&d<=3?3:d>2&&d<=2.5?2.5:d>1.5&&d<=2?2:d>1&&d<=1.5?1.5:d>.5&&d<=1?1:d>0&&d<=.5?.5:0,isUnOrNull=d=>d==null;function getUrlToken(d,_){const e=new RegExp(`(^|&)${d}=([^&]*)(&|$)`,"i"),r=_.substr(1).match(e);return r!=null?decodeURIComponent(r[2]):null}const getMessagesUrl=d=>{var _;if(d.link_url)return window.open(d.link_url);switch(d==null?void 0:d.container_type){case"TeacherChangeUserInfo":return window.open("/account/profile");case"TeacherResetUserPassword":return window.open("/account/secure");case"ApplyUserAuthentication":return window.open("/account/certification")}switch(d.container_type){case"ApplyUserAuthentication":if(d.tiding_type==="Apply"){if(d.auth_type===1)return window.open("/admins/identity_authentications");if(d.auth_type===2)return window.open("/admins/professional_authentications")}return d.tiding_type==="System"?window.open("/account/certification"):d.tiding_type==="Code"?window.open("/account/profile"):void 0;case"CancelUserAuthentication":return window.open("/account/certification");case"CancelUserProCertification":return window.open("/account/certification");case"ApplyAddMajor":return window.open("/account/profile");case"Major":return window.open("/account/profile");case"ApplyAddDepartment":return d.tiding_type==="Apply"?window.open("/admins/department_applies"):d.tiding_type==="System"?window.open("/account/profile"):void 0;case"ApplyAddSchools":return d.tiding_type==="Apply"?window.open("/admins/unit_applies"):d.tiding_type==="System"?window.open("/account/profile"):void 0;case"ApplyAction":switch(d.parent_container_type){case"ApplyShixun":if(d.tiding_type==="Apply")return window.open("/admins/shixun_authorizations");if(d.tiding_type==="System")return window.open(`/shixuns/${d.identifier}/challenges`);case"ApplySubject":if(d.tiding_type==="Apply")return window.open("/admins/subject_authorizations");if(d.tiding_type==="System")return window.open(`/paths/${d.parent_container_id}`);case"TrialAuthorization":if(d.tiding_type==="Apply")return window.open("/managements/trial_authorization");if(d.tiding_type==="System")return window.open("/account/profile")}return;case"JoinCourse":return window.open(`/classrooms/${d.belong_container_id}/teachers`);case"StudentJoinCourse":if(d.tiding_type==="Apply")return window.open(`/classrooms/${d.belong_container_id}/teachers`);if(d.tiding_type==="System")return window.open(`/classrooms/${d.belong_container_id}/students`);case"DealCourse":return window.open(`/classrooms/${d.belong_container_id}/shixun_homework/`);case"TeacherJoinCourse":return window.open(`/classrooms/${d.belong_container_id}/shixun_homework/`);case"Course":return d.tiding_type==="Delete"?void 0:window.open(`/classrooms/${d.belong_container_id}/shixun_homework/`);case"ArchiveCourse":return window.open(`/classrooms/${d.belong_container_id}/shixun_homework/`);case"Shixun":return window.open(`/shixuns/${d.identifier}/challenges`);case"Subject":return window.open(`/paths/${d.container_id}`);case"JournalsForMessage":switch(d.parent_container_type){case"Principal":return"";case"HomeworkCommon":return d.homework_type==="normal"?window.open(`/classrooms/${d.belong_container_id}/common_homework/${d.parent_container_id}/question`):d.homework_type==="group"?window.open(`/classrooms/${d.belong_container_id}/group_homework/${d.parent_container_id}/question`):d.homework_type==="practice"?window.open(`/classrooms/${d.belong_container_id}/shixun_homework/${d.parent_container_id}/detail?tabs=1`):"";case"GraduationTopic":return window.open(`/classrooms/${d.belong_container_id}/graduation_topics/${d.parent_container_id}/detail`);case"StudentWorksScore":return window.open(d.link_url)}case"Memo":return window.open(`/forums/${d.parent_container_id}`);case"Message":return window.open("/forums/");case"Watcher":return window.open(`/users/${d.trigger_user.login}/classrooms`);case"PraiseTread":return"";case"Grade":return"";case"JoinProject":return window.open(_env__WEBPACK_IMPORTED_MODULE_7__.Z.FORGE+d.project_url);case"ReporterJoinProject":return window.open(_env__WEBPACK_IMPORTED_MODULE_7__.Z.FORGE+d.project_url);case"DealProject":return window.open(_env__WEBPACK_IMPORTED_MODULE_7__.Z.FORGE+d.project_url);case"ManagerJoinProject":return window.open(_env__WEBPACK_IMPORTED_MODULE_7__.Z.FORGE+d.project_url);case"Poll":switch(d.parent_container_type){case"CommitPoll":return window.open(` /classrooms/${d.belong_container_id}/poll/${d.container_id}/detail`);default:return window.open(` /classrooms/${d.belong_container_id}/poll/${d.container_id}/detail`)}case"Exercise":switch(d.parent_container_type){case"CommitExercise":return window.open(` /classrooms/${d.belong_container_id}/exercise/${d.container_id}/detail?tab=0`);case"ExerciseScore":return window.open(` /classrooms/${d.belong_container_id}/exercise/${d.container_id}/detail?tab=0`);default:return window.open(`/classrooms/${d.belong_container_id}/exercise/${d.container_id}/detail?tab=0`)}case"StudentGraduationTopic":return window.open(`/classrooms/${d.belong_container_id}/graduation_topics/${d.parent_container_id}/detail`);case"DealStudentTopicSelect":return window.open(`/classrooms/${d.belong_container_id}/graduation_topics/${d.parent_container_id}/detail`);case"GraduationTask":return window.open(`/classrooms/${d.belong_container_id}/graduation_tasks/${d.container_id}`);case"GraduationWork":return window.open(`/classrooms/${d.belong_container_id}/graduation_tasks/${d.container_id}`);case"GraduationWorkScore":return window.open(`/classrooms/${d.belong_container_id}/graduation_tasks/${d.parent_container_id}`);case"HomeworkCommon":switch(d.parent_container_type){case"AnonymousCommentFail":if(d.homework_type==="normal")return window.open(`/classrooms/${d.belong_container_id}/common_homework/${d.parent_container_id}/detail`);if(d.homework_type==="group")return window.open(`/classrooms/${d.belong_container_id}/group_homework/${d.parent_container_id}/detail`);if(d.homework_type==="practice")return window.open(`/classrooms/${d.belong_container_id}/shixun_homework/${d.parent_container_id}/detail?tabs=0`);case"HomeworkPublish":if(d.homework_type==="normal")return window.open(`/classrooms/${d.belong_container_id}/common_homework/${d.parent_container_id}/detail`);if(d.homework_type==="group")return window.open(`/classrooms/${d.belong_container_id}/group_homework/${d.parent_container_id}/detail`);if(d.homework_type==="practice")return window.open(`/classrooms/${d.belong_container_id}/shixun_homework/${d.parent_container_id}/detail?tabs=0`);case"AnonymousAppeal":if(d.homework_type==="normal")return window.open(`/classrooms/${d.belong_container_id}/common_homework/${d.parent_container_id}/detail`);if(d.homework_type==="group")return window.open(`/classrooms/${d.belong_container_id}/group_homework/${d.parent_container_id}/detail`);if(d.homework_type==="practice")return window.open(`/classrooms/${d.belong_container_id}/shixun_homework/${d.parent_container_id}/detail?tabs=0`);default:if(d.homework_type==="normal")return window.open(`/classrooms/${d.belong_container_id}/common_homework/${d.parent_container_id}/detail`);if(d.homework_type==="group")return window.open(`/classrooms/${d.belong_container_id}/group_homework/${d.parent_container_id}/detail`);if(d.homework_type==="practice")return window.open(`/classrooms/${d.belong_container_id}/shixun_homework/${d.parent_container_id}/detail?tabs=0`)}case"StudentWork":if(d.homework_type==="normal")return window.open(`/classrooms/${d.belong_container_id}/common_homework/${d.parent_container_id}/review/${d.container_id}`);if(d.homework_type==="group")return window.open(`/classrooms/${d.belong_container_id}/group_homework/${d.parent_container_id}/review/${d.container_id}`);if(d.homework_type==="practice")return window.open(`/classrooms/${d.belong_container_id}/shixun_homework/${d.parent_container_id}/detail`);case"StudentWorksScore":return window.open(`/classrooms/${d.belong_container_id}/common_homework/${d.trigger_user.id}/review/${d.parent_container_id}`);case"StudentWorksScoresAppeal":return window.open(`/classrooms/${d.belong_container_id}/common_homework/${d.trigger_user.id}/review/${d.parent_container_id}`);case"ChallengeWorkScore":return"";case"SendMessage":return window.open(`${_env__WEBPACK_IMPORTED_MODULE_7__.Z.API_SERVER}/admins/mirror_repositories`);case"Journal":return window.open(`/issues/${d.parent_container_id}`);case"Issue":return window.open(`/issues/${d.container_id}`);case"PullRequest":return window.open(_env__WEBPACK_IMPORTED_MODULE_7__.Z.FORGE+d.project_url);case"Department":return window.open("/account/profile");case"Library":if(d.tiding_type==="Apply")return window.open("/admins/library_applies");if(d.tiding_type==="System")return window.open(`/moop_cases/${d.container_id}`);case"ProjectPackage":return d.tiding_type==="Destroyed"||d.tiding_type==="Destroyed_end"?void 0:d.tiding_type==="Apply"?window.open("/admins/project_package_applies"):window.open(`/crowdsourcing/${d.container_id}`);case"Discuss":return d.parent_container_type==="Hack"&&d.extra?window.open(`/myproblems/${d.extra}/comment`):d.extra==="ai_reply"&&d.task_identifier?window.open(`/tasks/${d.task_identifier}?extra=extra`):window.open(`/shixuns/${d.identifier}/shixun_discuss`);case"Video":return d.tiding_type==="Apply"?window.open("/admins/video_applies"):d.tiding_type==="System"?window.open(`/users/${(_=(0,_utils_authority__WEBPACK_IMPORTED_MODULE_1__.eY)())==null?void 0:_.login}/videos`):"";case"PublicCourseStart":return window.open(`/classrooms/${d.container_id}/informs`);case"SubjectStartCourse":return window.open(`/paths/${d.container_id}`);case"ResubmitStudentWork":if(d.homework_type==="normal")return window.open(`/classrooms/${d.belong_container_id}/common_homework/${d.parent_container_id}/${d.container_id}/appraise`);if(d.homework_type==="group")return window.open(`/classrooms/${d.belong_container_id}/group_homework/${d.parent_container_id}/${d.container_id}/appraise`);case"AdjustScore":if(d.homework_type==="normal")return window.open(`/classrooms/${d.belong_container_id}/common_homework/${d.parent_container_id}`);if(d.homework_type==="group")return window.open(`/classrooms/${d.belong_container_id}/group_homework/${d.parent_container_id}`);case"LiveLink":return window.open(`/classrooms/${d.belong_container_id}/course_videos?open=live`);case"Hack":if(d.extra&&d.parent_container_type!=="HackDelete")return window.open(`/problems/${d.extra}/edit`);default:return}},checkLocalOrPublicIp=(d,_)=>__async(void 0,null,function*(){let e="",r;return new Promise((i,l)=>__async(void 0,null,function*(){if(d.ip_limit!=="no"||d.ip_bind_type)try{e=yield(0,_components_Exercise_ip__WEBPACK_IMPORTED_MODULE_2__.y)({ip_limit:d==null?void 0:d.ip_limit,ip_bind:d==null?void 0:d.ip_bind_type}),console.log(e,44)}catch(f){l(void 0)}const c=yield(0,_service_exercise__WEBPACK_IMPORTED_MODULE_3__.Cl)({id:d.exerciseId,ip:e});if(c.status===0)i(c);else if(c.status===-5){(0,umi__WEBPACK_IMPORTED_MODULE_5__.getDvaApp)()._store.dispatch({type:"exercise/setActionTabs",payload:{key:"student-unlock",exerciseParams:{errorMessage:c==null?void 0:c.message,exercise_user_id:d==null?void 0:d.exercise_user_id,id:d.exerciseId,unlockClose:d.unlockClose}}});return}else i(c);if(d.errmsgHide||_)return!0;if(c.status===-1)return r=antd__WEBPACK_IMPORTED_MODULE_15__.default.info({title:react__WEBPACK_IMPORTED_MODULE_0__.createElement(antd__WEBPACK_IMPORTED_MODULE_16__.Z,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(antd__WEBPACK_IMPORTED_MODULE_17__.Z,{flex:"1"},"\u63D0\u793A"),react__WEBPACK_IMPORTED_MODULE_0__.createElement(antd__WEBPACK_IMPORTED_MODULE_17__.Z,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"iconfont icon-yiguanbi1 current c-grey-c",onClick:()=>r.destroy()}))),icon:null,className:"custom-modal-divider",content:react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:"font16 p20"},"\u60A8\u7684IP\u4E0D\u5728\u8003\u8BD5\u5141\u8BB8\u7684\u8303\u56F4\u5185\uFF01"),okText:"\u6211\u77E5\u9053\u4E86"}),!1;if(c.status===-2)return r=antd__WEBPACK_IMPORTED_MODULE_15__.default.info({title:react__WEBPACK_IMPORTED_MODULE_0__.createElement(antd__WEBPACK_IMPORTED_MODULE_16__.Z,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(antd__WEBPACK_IMPORTED_MODULE_17__.Z,{flex:"1"},"\u63D0\u793A"),react__WEBPACK_IMPORTED_MODULE_0__.createElement(antd__WEBPACK_IMPORTED_MODULE_17__.Z,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"iconfont icon-yiguanbi1 current c-grey-c",onClick:()=>r.destroy()}))),icon:null,className:"custom-modal-divider",content:react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:"font16 p20"},"\u60A8\u5DF2\u7ED1\u5B9A\u5F53\u524D\u8003\u8BD5IP\u5730\u5740\uFF1A",react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"c-red"},c.ip),"\u8BF7\u4F7F\u7528\u8BE5IP\u5730\u5740\u8FDB\u5165\u8003\u8BD5\u3002"),okText:"\u6211\u77E5\u9053\u4E86"}),!1}))});function isInsecureOrLocalhost(d){try{const _=new URL(d),e=_.hostname==="localhost"||_.hostname==="127.0.0.1";return!(_.protocol==="https:")&&!e}catch(_){return!0}}const checkDisabledExam=d=>new Promise((_,e)=>__async(void 0,null,function*(){const r=yield(0,_service_exercise__WEBPACK_IMPORTED_MODULE_3__.Zg)({id:d==null?void 0:d.exerciseId,coursesId:d==null?void 0:d.coursesId});if((r==null?void 0:r.status)===0){_("");return}setTimeout(()=>{window.location.reload()},2e3),e("")})),isKepuKehuan=()=>location.pathname.indexOf("/classrooms/4RW9CYHY")>-1||location.pathname.indexOf("/classrooms/qb4ft587")>-1||location.pathname.indexOf("/classrooms/c5q9bsp2")>-1,startExercise=d=>__async(void 0,null,function*(){var _,e,r;sessionStorage.removeItem("studentunlock");let i;if((location.pathname.indexOf("/classrooms/4RW9CYHY")>-1||location.pathname.indexOf("/classrooms/qb4ft587")>-1||location.pathname.indexOf("/classrooms/c5q9bsp2")>-1)&&!isPc()){antd__WEBPACK_IMPORTED_MODULE_15__.default.info({content:"\u8BF7\u4F7F\u7528\u7535\u8111\u53C2\u52A0\u8003\u8BD5\uFF01"});return}if(copyTextFuc(" ",!0),yield checkDisabledExam(d),d.ip_limit!=="no"||d.ip_bind){const l=yield checkLocalOrPublicIp(d,!0);if((l==null?void 0:l.status)!==0)return;if(!isChrome()){antd__WEBPACK_IMPORTED_MODULE_15__.default.info({icon:null,okText:"\u786E\u5B9A",width:500,content:react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:"font16"},"\u672C\u6B21\u8003\u8BD5\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A\u8BBE\u7F6E\uFF0C\u4EC5\u652F\u6301",react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"c-red"},"\u8C37\u6B4C"),"\u3002",react__WEBPACK_IMPORTED_MODULE_0__.createElement("br",null),"\u8BF7\u4F7F\u7528",react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"c-red"},"\u8C37\u6B4C"),"\u6D4F\u89C8\u5668\u5F00\u59CB\u8003\u8BD5\u3002")});return}}if(d.forbid_screen){const l=new WebSocket("ws://localhost:8082");yield new Promise(c=>setTimeout(()=>c(),200)),sendAppStatus(l,d)}if(d.open_camera||d.screen_open||d.ip_limit!=="no"||d.identity_verify){if(!isChromeOrFirefox())return antd__WEBPACK_IMPORTED_MODULE_15__.default.info({icon:null,okText:"\u786E\u5B9A",width:500,content:react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:"font16"},"\u672C\u6B21\u8003\u8BD5\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A\u8BBE\u7F6E\uFF0C\u4EC5\u652F\u6301",react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"c-red"},"\u8C37\u6B4C"),"\u3001",react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"c-red"},"\u706B\u72D0"),"\u6D4F\u89C8\u5668\u3002",react__WEBPACK_IMPORTED_MODULE_0__.createElement("br",null),"\u8BF7\u4F7F\u7528",react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"c-red"},"\u8C37\u6B4C"),"\u3001",react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"c-red"},"\u706B\u72D0"),"\u6D4F\u89C8\u5668\u5F00\u59CB\u8003\u8BD5\u3002")}),!1;d.open_phone_video_recording?window.location.href=`/classrooms/${d.coursesId}/exercise/${d.exerciseId}/users/${(_=(0,_utils_authority__WEBPACK_IMPORTED_MODULE_1__.eY)())==null?void 0:_.login}/check`:d.identity_verify&&d.current_status===2?window.location.href=`/classrooms/${d.coursesId}/exercise/${d.exerciseId}/users/${(e=(0,_utils_authority__WEBPACK_IMPORTED_MODULE_1__.eY)())==null?void 0:e.login}/check`:window.location.href=`/classrooms/${d.coursesId}/exercise/${d.exerciseId}/users/${(r=(0,_utils_authority__WEBPACK_IMPORTED_MODULE_1__.eY)())==null?void 0:r.login}`}else d.identity_verify&&d.current_status===2?window.location.href=`/classrooms/${d.coursesId}/exercise/${d.exerciseId}/users/${d.login}/check`:window.location.href=`/classrooms/${d.coursesId}/exercise/${d.exerciseId}/users/${d.login}`});var httpBuildQuery=function(d,_,e,r){if(console.log("param:",d),_=_||null,e=e||"&",r=r||null,!d)return"";var i=function(o){for(var h=new Array,u=0;u{const e={},r=Object.assign(!0,d,{}),i=[];return Object.keys(r).sort().forEach(function(l){if(r[l]=r[l]===!0?"true":r[l],r[l]=r[l]===!1?"false":r[l],_==="GET"){if(r[l]!==null){if(typeof r[l]=="object"&&(!Array.isArray(r[l])||Array.isArray(r[l])&&!r[l].length))return;const c=r[l]===null||r[l]==="null"?"":r[l];i.push(`${l}=${typeof c=="string"||typeof c=="number"?decodeURIComponent(c):JSON.stringify(c)}`)}}else{const c=r[l]===null||r[l]==="null"?"":r[l];i.push(`${l}=${typeof c=="string"||typeof c=="number"?c:JSON.stringify(c)}`),r[l],e[l]=r[l]}}),i.join("&").trim()},educationList=[{name:"\u672C\u79D1",id:6},{name:"\u5927\u4E13",id:5},{name:"\u4E2D\u4E13",id:4},{name:"\u9AD8\u4E2D",id:3},{name:"\u521D\u4E2D",id:2},{name:"\u5C0F\u5B66",id:1},{name:"\u5176\u4ED6",id:9},{name:"\u7855\u58EB",id:7},{name:"\u535A\u58EB",id:8},{name:"\u9AD8\u4E2D",id:3},{name:"\u521D\u4E2D",id:2},{name:"\u5C0F\u5B66",id:1},{name:"\u5176\u4ED6",id:9},{name:"\u7855\u58EB",id:7},{name:"\u535A\u58EB",id:8}];function getTopLevelDomain(){let d=window.location.hostname;if(/^\d+\.\d+\.\d+\.\d+$/.test(d)||d==="localhost")return d;let _=d.split(".");return _.length>2&&/^[a-z]{2}$/.test(_[_.length-2])?_.slice(-3).join("."):_.slice(-2).join(".")}const setHeader=(d,_)=>{var e;try{const r=Date.now(),i=(0,uuid__WEBPACK_IMPORTED_MODULE_18__.Z)();let l="method="+((e=d.method)==null?void 0:e.toLocaleUpperCase())+"&ak="+getKey(_key__WEBPACK_IMPORTED_MODULE_19__.mi)+"&sk="+getKey(_key__WEBPACK_IMPORTED_MODULE_19__.hw)+"&time="+r;return d.headers["X-EDU-Type"]="pc",d.headers["X-EDU-Timestamp"]=r,d.headers["X-EDU-Signature"]=md5__WEBPACK_IMPORTED_MODULE_6___default()(window.btoa(l)),d.headers["Pc-Authorization"]=getCookie("_educoder_session"),d.headers["X-Request-Id"]=i,d}catch(r){console.log("error:",r,d,_)}},setThreeComponent=()=>{(function(d){XMLHttpRequest.prototype.open=function(_,e,r=!0){const i=setHeader({method:_,headers:{}});d.call(this,_,e,r);try{e.indexOf(getTopLevelDomain())>-1&&(this.setRequestHeader("X-EDU-Type","pc"),this.setRequestHeader("X-EDU-Timestamps",i.headers["X-EDU-Timestamp"]),this.setRequestHeader("X-EDU-Signatures",i.headers["X-EDU-Signature"]),this.setRequestHeader("Pc-Authorization",getCookie("_educoder_session")))}catch(l){}}})(XMLHttpRequest.prototype.open),function(d){window.fetch=function(_,e){var r;return e=e||{},(r=e.headers)!=null&&r["X-EDU-Timestamp"]||setHeader(e),d.apply(this,arguments).then(function(i){return i})}}(window.fetch)},parseUrl=d=>{const _=/(\w+)=([^\#&]*)/gi,e={};return d.replace(_,function(r,i,l){e[i]=decodeURI(l)}),e},messageInfo=(d,_)=>{const r={1:"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u6682\u672A\u53D1\u5E03\uFF0C\u8BF7\u8054\u7CFB\u672C\u8BFE\u5802\u6559\u5E08\u3002",2:"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u4E0D\u5B58\u5728\uFF0C\u8BF7\u8054\u7CFB\u672C\u8BFE\u5802\u6559\u5E08\u3002",3:"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u9762\u5411\u6307\u5B9A\u5355\u4F4D\u5F00\u653E\uFF0C\u8BF7\u8054\u7CFB\u672C\u8BFE\u5802\u6559\u5E08\u3002",4:`\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u5C06\u4E8E${_}\u53D1\u5E03\uFF0C\u8BF7\u7B49\u5F85\u3002`}[d];antd__WEBPACK_IMPORTED_MODULE_14__.ZP.warning(r)},base64ToBlob=(d,_)=>{var e;const r=window.atob(d),i=r.length,l=new Uint8Array(i);for(let c=0;c{const r=base64ToBlob(_,e);if(window.navigator.msSaveOrOpenBlob)navigator.msSaveBlob(r,d);else{const i=document.createElement("a");i.href=window.URL.createObjectURL(r),i.download=d,document.body.appendChild(i);const l=document.createEvent("MouseEvents");l.initEvent("click",!1,!1),i.dispatchEvent(l),document.body.removeChild(i)}},trackEvent=d=>{var _;if(d.length)try{window._czc.push(["_trackEvent",...d]),window==null||window.gtag("event",d[1],{event_category:d[0],event_label:d[2]||"",value:d[3]||"",user_id:((_=(0,_utils_authority__WEBPACK_IMPORTED_MODULE_1__.eY)())==null?void 0:_.login)||""})}catch(e){console.log("trackEvent:err:",e)}},trackEventCustom=d=>{if(d.length)try{window._czc.push(["_setCustomVar",...d])}catch(_){console.log("trackEvent:err:",_)}},onPreviewImage=d=>{const _=(i,l)=>{if(i.localName===l)return i;for(let c=0,f=i;f=f.parentNode;c++){if(f.localName===l)return f;if(f==document.documentElement)return!1}},e=d.target,r=_(e,"a");if(!(r!=null&&r.href)&&e.tagName.toUpperCase()==="IMG"){let i=e.src||e.getAttribute("src");i&&i.indexOf("/images/avatars/User")===-1&&(d.stopPropagation(),d.preventDefault(),_components_mediator__WEBPACK_IMPORTED_MODULE_8__.Z.publish("preview-image",i))}},getCategoryName=(d,_)=>{var e,r,i,l;if(d&&d!=""){let c=(e=d==null?void 0:d.filter(f=>f.type===location.pathname.split("/")[3]))==null?void 0:e[0];return _?(l=(i=(r=c==null?void 0:c.second_category)==null?void 0:r.filter(f=>f.category_id==_))==null?void 0:i[0])==null?void 0:l.category_name:c==null?void 0:c.name}return null},bindPhone=d=>{const _=antd__WEBPACK_IMPORTED_MODULE_15__.default.confirm({title:"\u5B8C\u5584\u624B\u673A\u53F7\u7801",content:"\u6309\u7167\u6709\u5173\u653F\u7B56\u89C4\u5B9A\uFF0C\u7279\u6B8A\u5B9E\u9A8C\u9700\u8981\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u624D\u80FD\u4F7F\u7528\uFF0C\u8BF7\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u7801",okText:"\u7ACB\u5373\u7ED1\u5B9A",cancelText:"\u53D6\u6D88",centered:!0,onOk:()=>{location.href="/account/secure"},onCancel:()=>{_.destroy(),d!=null&&d.onCancel&&d.onCancel()}})},copyTextFuc=(d="",_=!1)=>{const e=document.createElement("textarea");e.value=d,document.body.appendChild(e),e.select(),document.execCommand("Copy"),_||antd__WEBPACK_IMPORTED_MODULE_14__.ZP.success("\u590D\u5236\u6210\u529F"),document.body.removeChild(e)},getJsonFromUrl=d=>{if(d||(d=window.location.search),!d)return{};let _=d.substring(1),e={};return _.split("&").forEach(function(r){let i=r.split("=");e[i[0]]=decodeURIComponent(i[1])}),e},arrTrans=(d,_)=>{if(!_)return null;const e=[];return _.forEach((r,i)=>{const l=Math.floor(i/d);e[l]||(e[l]=[]),e[l].push(r)}),e},setDocumentTitle=d=>{checkIsClientExam()?document.title="\u8003\u8BD5\u7CFB\u7EDF":d!==""&&d&&(document.title=d||(document.domain.indexOf(".educoder.net")>-1?"\u5B9E\u8DF5\u6559\u5B66\u5E73\u53F0":""))},checkIsClientExam=()=>{var d;return(d=window==null?void 0:window.localStorage)==null?void 0:d.isClientExam},localSort={setItem:(d,_,e)=>{const r=d,i=localStorage.getItem(r),l=i!==null&&i!=="[object Object]"?JSON.parse(i):{};l[e]=_,localStorage.setItem(r,JSON.stringify(l))},getItem:(d,_)=>{const e=d,r=localStorage.getItem(e);return(r!==null&&r!=="[object Object]"?JSON.parse(r):{})[_]}},ImgSrcConvert=d=>d!=null&&d.startsWith("http")?d:_env__WEBPACK_IMPORTED_MODULE_7__.Z.IMG_SERVER+d,compareVersion=d=>{const _=getVersion(),e=d.split("."),r=_.split("."),i=Math.max(e.length,r.length);for(;e.lengthf)return 1;if(c{d=`${d}${_?","+_:""}`;const e=crypto_js__WEBPACK_IMPORTED_MODULE_11___default().enc.Utf8.parse(window.atob(window.atob(_key__WEBPACK_IMPORTED_MODULE_19__.Bn)).substring(0,16)),r=crypto_js__WEBPACK_IMPORTED_MODULE_11___default().AES.encrypt(d||"",e,{iv:e,mode:crypto_js__WEBPACK_IMPORTED_MODULE_11___default().mode.CBC});return window.btoa(r.toString())},getVersion=()=>{const _=navigator.userAgent.toLowerCase().match(/version\/[\d.]+/gi);return _&&_[0].replace(/version\//,"")},isLocalApp=()=>navigator.userAgent.indexOf("ExerciseApp")>-1;function randomArray(d,_){let e=d.length,r,i;_=_||1;let l=function(){var c=Math.sin(_++)*1e3;return c-Math.floor(c)};for(;e!==0;)i=Math.floor(l()*e),e-=1,r=d[e],d[e]=d[i],d[i]=r;return d}function pointerEvents(d){const _=document.getElementsByTagName("iframe");for(let r=0;r<_.length;r++)_[r].style["pointer-events"]=d;const e=document.getElementsByTagName("canvas");for(let r=0;rnew Promise((_,e)=>{var r=new XMLHttpRequest;r.withCredentials=!0,r.onload=function(){var i=new FileReader;i.onloadend=function(){_(i.result)},i.readAsDataURL(r.response)},r.open("GET",d),r.responseType="blob",r.send()}),vtrsKey=(_b=(_a=location==null?void 0:location.pathname)==null?void 0:_a.split("/"))==null?void 0:_b[1];function scrollToTop(){window.scrollTo({left:0,top:0,behavior:"smooth"})}function domScrollToTop(d){var _;(_=document.querySelector(d))==null||_.scrollTo({left:0,top:0,behavior:"smooth"})}function dealUploadChange(d){var _,e,r,i,l;const c=(_=d.fileList)==null?void 0:_.map(f=>{var o,h;return __spreadProps(__spreadValues({},f),{status:typeof(f==null?void 0:f.response)=="string"||((o=f==null?void 0:f.response)==null?void 0:o.status)===-1?"error":f.status,response:typeof(f==null?void 0:f.response)=="string"?f==null?void 0:f.response:f!=null&&f.response&&(f==null?void 0:f.response.status)===-1?(h=f==null?void 0:f.response)==null?void 0:h.message:f==null?void 0:f.response})});return((r=(e=d.file)==null?void 0:e.response)==null?void 0:r.status)===-1&&(antd__WEBPACK_IMPORTED_MODULE_14__.ZP.destroy(),antd__WEBPACK_IMPORTED_MODULE_14__.ZP.warning((l=(i=d.file)==null?void 0:i.response)==null?void 0:l.message)),c}function cutFileName(d="",_){if(!d)return"";const e=d.lastIndexOf(".");let r=[d,""];if(e!==-1&&e!==d.length-1){const i=d.substring(0,e),l=d.substring(e+1);r=[i,l]}return r[0].length>_?r[0].slice(0,_)+"..."+r[1]:d}function cutName(d="",_,e="--"){return d?(d==null?void 0:d.length)>=_?(d==null?void 0:d.slice(0,_))+"...":d:e}function timeContrast(d){return d?moment__WEBPACK_IMPORTED_MODULE_12___default()().isBefore(moment__WEBPACK_IMPORTED_MODULE_12___default()(d)):!0}function showTotal(d){return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"font14 c-grey-333"},"\u5171",react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"c-light-primary"},"\xA0",d,"\xA0"),"\u6761\u6570\u636E")}const formatRandomPaperData=d=>{const _={1:"\u4E00",2:"\u4E8C",3:"\u4E09",4:"\u56DB",5:"\u4E94",6:"\u516D",7:"\u4E03"};if(!d)return;const{exam:e,single_questions:r,multiple_questions:i,judgement_questions:l,program_questions:c,completion_questions:f,subjective_questions:o,practical_questions:h,combination_questions:u,bprogram_questions:a,program_correction_questions:x}=d||{},p=[__spreadValues({type:"SINGLE",name:"\u5355\u9009\u9898"},r),__spreadValues({type:"MULTIPLE",name:"\u591A\u9009\u9898"},i),__spreadValues({type:"COMPLETION",name:"\u586B\u7A7A\u9898"},f),__spreadValues({type:"JUDGMENT",name:"\u5224\u65AD\u9898"},l),__spreadValues({type:"SUBJECTIVE",name:"\u7B80\u7B54\u9898"},o),__spreadValues({type:"PROGRAM",name:"\u7A0B\u5E8F\u8BBE\u8BA1\u9898"},c),__spreadValues({type:"BPROGRAM",name:"\u7A0B\u5E8F\u586B\u7A7A\u9898"},a),__spreadValues({type:"PROGRAM_CORRECTION",name:"\u7A0B\u5E8F\u6539\u9519\u9898"},x),__spreadValues({type:"PRACTICAL",name:"\u5B9E\u8BAD\u9898"},h),__spreadValues({type:"COMBINATION",name:"\u7EC4\u5408\u9898"},u)],y=[];let m=0,b=0;const S=p.filter(D=>D.questions_count>0).map((D,R)=>{var A;return(A=D.questions)==null||A.forEach(P=>{y.push(P.id),m=m+P.score,b=b+1}),__spreadValues(__spreadValues({},D),{number:_[R+1]})});return{all_questions_count:b,all_score:m,questionList:S,ids:y,exam:e}},formatRandomPaperDatas=d=>{var _;const e={1:"\u4E00",2:"\u4E8C",3:"\u4E09",4:"\u56DB",5:"\u4E94",6:"\u516D",7:"\u4E03"};if(!d)return;const{exam:r,single_questions:i,multiple_questions:l,judgement_questions:c,program_questions:f,completion_questions:o,subjective_questions:h,practical_questions:u,combination_questions:a,bprogram_questions:x}=d||{},p=[__spreadValues({type:"SINGLE",name:"\u5355\u9009\u9898"},i),__spreadValues({type:"MULTIPLE",name:"\u591A\u9009\u9898"},l),__spreadValues({type:"COMPLETION",name:"\u586B\u7A7A\u9898"},o),__spreadValues({type:"JUDGMENT",name:"\u5224\u65AD\u9898"},c),__spreadValues({type:"SUBJECTIVE",name:"\u7B80\u7B54\u9898"},h),__spreadValues({type:"PROGRAM",name:"\u7A0B\u5E8F\u8BBE\u8BA1\u9898"},f),__spreadValues({type:"BPROGRAM",name:"\u7A0B\u5E8F\u586B\u7A7A\u9898"},x),__spreadValues({type:"PROGRAM_CORRECTION",name:"\u7A0B\u5E8F\u6539\u9519\u9898"},program_correction_questions),__spreadValues({type:"PRACTICAL",name:"\u5B9E\u8BAD\u9898"},u),__spreadValues({type:"COMBINATION",name:"\u7EC4\u5408\u9898"},a)];let y=[];(_=r==null?void 0:r.question_type_position)==null||_.map((R,A)=>{p==null||p.map((P,M)=>{R.type===P.type&&y.push(P)})});const m=[];let b=0,S=0;const D=y.filter(R=>R.questions_count>0).map((R,A)=>{var P;return(P=R.questions)==null||P.forEach(M=>{m.push(M.id),b=b+M.score,S=S+1}),__spreadValues(__spreadValues({},R),{number:e[A+1]})});return{all_questions_count:S,all_score:b,questionList:D,ids:m,exam:r}},isWechatBrowser=()=>navigator.userAgent.toLowerCase().match(/MicroMessenger/i)=="micromessenger",toWechatLogin=()=>{isWechatBrowser()?window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx0955caba88bc37eb&redirect_uri=https%3A%2F%2Fwww.educoder.net%2fotherloginstart&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect":window.location.href="/wxlogin.html"},isMobileDevice=()=>typeof window.orientation!="undefined"||navigator.userAgent.indexOf("Mobi")!==-1,sendAppStatus=(d,_)=>{var e;try{_?(d.send(JSON.stringify({type:"toggleLockExit",data:!0})),_!=null&&_.forbid_screen&&d.send(JSON.stringify({type:"open-disabled-switchscreen"})),_!=null&&_.use_white_list&&d.send(JSON.stringify({type:"open-only-allow-runapp",data:_==null?void 0:_.white_list})),_!=null&&_.net_limit&&d.send(JSON.stringify({type:"network-close",data:(e=_==null?void 0:_.net_limit_list)==null?void 0:e.split(` +`:""}\uFF08\u6559\u5E08\u63D0\u4EA4\uFF09`,class:"c-black"},6:{name:"\u6309\u65F6\u63D0\u4EA4\uFF08\u7EBF\u4E0B\uFF09",class:"c-green"}};return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:(_=r[d.status])==null?void 0:_.class},(e=r[d.status])==null?void 0:e.name)},timego=d=>{d=new Date(d).getTime();let _=1e3*60,e=_*60,r=e*24,i="",c=new Date().getTime()-d;if(c<0)return console.log("\u65F6\u95F4\u4E0D\u5BF9\u52B2,\u670D\u52A1\u5668\u521B\u5EFA\u65F6\u95F4\u4E0E\u5F53\u524D\u65F6\u95F4\u4E0D\u540C\u6B65"),i="\u521A\u521A";let f=parseInt(c/r,10),o=parseInt(c/e,10),h=parseInt(c/_,10);return f>30?i=""+timeformat(d,"yyyy-MM-dd"):f>1?i=""+f+"\u5929\u524D":f==1?i="\u6628\u5929":o>=1?i=""+o+"\u5C0F\u65F6\u524D":h>=5?i=""+h+"\u5206\u949F\u524D":i="\u521A\u521A",i};function replaceParamVal(paramName,replaceWith){var oUrl=window.location.href.toString(),re=eval("/("+paramName+"=)([^&]*)/gi"),nUrl=oUrl.replace(re,paramName+"="+replaceWith);window.history.replaceState(null,"",nUrl)}const timeformat=(d,_)=>{typeof d=="string"&&(d.indexOf("T")>=0&&(d=d.replace("T"," ")),d=new Date(Date.parse(d.replace(/-/g,"/")))),d=new Date(d);let e={"M+":d.getMonth()+1,"d+":d.getDate(),"h+":d.getHours(),"m+":d.getMinutes(),"s+":d.getSeconds(),"q+":Math.floor((d.getMonth()+3)/3),S:d.getMilliseconds()},r=[["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],["\u5468\u65E5","\u5468\u4E00","\u5468\u4E8C","\u5468\u4E09","\u5468\u56DB","\u5468\u4E94","\u5468\u516D"],["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"]];/(y+)/.test(_)&&(_=_.replace(RegExp.$1,(d.getFullYear()+"").substr(4-RegExp.$1.length))),/(w+)/.test(_)&&(_=_.replace(RegExp.$1,r[RegExp.$1.length-1][d.getDay()]));for(let i in e)new RegExp("("+i+")").test(_)&&(_=_.replace(RegExp.$1,RegExp.$1.length==1?e[i]:("00"+e[i]).substr((""+e[i]).length)));return _},toTimeFormat=d=>{if(!d||d<0)return"0\u79D2";console.log("time:",d);let _=60,e=_*60,r=e*24,i=d/r,l=d/e,c=d/_,f=d%60;return i>=1?parseInt(i.toString())+"\u5929"+Math.floor(l%24)+"\u65F6"+Math.floor(c%60)+"\u5206"+Math.floor(d%60)+"\u79D2":l>1?parseInt(l.toString())+"\u65F6"+Math.floor(c%60)+"\u5206"+Math.floor(d%60)+"\u79D2":c>=1?parseInt(c.toString())+"\u5206"+Math.floor(d%60)+"\u79D2":Math.ceil(d)+"\u79D2"},validateLength=(d="",_=100)=>{let e=0;if(d){e=d.length;for(let r=0;r=55296&&i<=56319&&(e--,r++)}}return e<=_};function buildTree(d,_){const e={};let r=null;return d.forEach(i=>{e[i.properties.uuid]=__spreadProps(__spreadValues({},i),{children:[]})}),_.forEach(i=>{const l=e[i.startNodeUuid],c=e[i.endNodeUuid];l&&c&&l.children.push(c)}),d.forEach(i=>{!_.some(c=>c.endNodeUuid===i.properties.uuid)&&(r=e[i.properties.uuid])}),r}const handleValidatorNickName=(d,_,e)=>{if(_){let r=/[`~!@#$%^&*()\-+=<>?:"{}|,.\/;'\\[\]~!@#¥%……&*()——\-+={}|《》?:“”【】、;‘’,。、]/im;const l=/[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF][\u200D|\uFE0F]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF]|[0-9|*|#]\uFE0F\u20E3|[0-9|#]\u20E3|[\u203C-\u3299]\uFE0F\u200D|[\u203C-\u3299]\uFE0F|[\u2122-\u2B55]|\u303D|[\A9|\AE]\u3030|\uA9|\uAE|\u3030/gi.test(_),c=r.test(_);(l===!0||c===!0||_.length<2||_.length>=21)&&e("2-20\u4F4D\u4E2D\u82F1\u6587\u3001\u6570\u5B57\u53CA\u4E0B\u5212\u7EBF")}e()},handleValidatorName=(d,_,e)=>{if(_){let r=/[`~!@#$%^&()_\-+=<>?:"{}|,.\/;'\\[\]~!@#¥%……&()——\-+={}|《》?:“”【】、;‘’,。、]/im;const l=/[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF][\u200D|\uFE0F]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF]|[0-9|*|#]\uFE0F\u20E3|[0-9|#]\u20E3|[\u203C-\u3299]\uFE0F\u200D|[\u203C-\u3299]\uFE0F|[\u2122-\u2B55]|\u303D|[\A9|\AE]\u3030|\uA9|\uAE|\u3030/gi.test(_),c=r.test(_);(l===!0||c===!0||_.length<2||_.length>=21)&&e("2-20\u4F4D\u4E2D\u82F1\u6587\u3001\u6570\u5B57")}e()},getHiddenName=d=>{if(!d)return"";let _=d.length-1,e="";for(var r=0;r<_;r++)e+="*";return d.substr(0,1)+e},getBase64=(d,_)=>{const e=new FileReader;e.addEventListener("load",()=>_(e.result)),e.readAsDataURL(d)},getFileContentAndUrl=d=>new Promise((_,e)=>{var r=new FileReader;r.onload=function(){try{const i=window.URL.createObjectURL(d);_({text:this.result,link:i})}catch(i){antd__WEBPACK_IMPORTED_MODULE_14__.ZP.warning("\u5F53\u524D\u6587\u4EF6\u65E0\u6CD5\u8BFB\u53D6\u5185\u5BB9"),e("\u5F53\u524D\u6587\u4EF6\u65E0\u6CD5\u8BFB\u53D6\u5185\u5BB9")}},r.readAsText(d)});function setmiyah(d){return md5__WEBPACK_IMPORTED_MODULE_6___default()("79e33abd4b6588941ab7622aed1e67e8"+d)}const getCookie=d=>{var _,e=RegExp("(^| )"+d+"=([^;]+)(;|$)");return(_=document.cookie.match(e))?decodeURIComponent(_[2]):null};function setCookie(d,_,e){var r=new Date;r.setTime(r.getTime()+e*24*60*60*1e3);var i="expires="+r.toUTCString();document.cookie=d+"="+_+"; "+i+`;domain=${document.domain.indexOf("educoder.net")>-1?".educoder.net":document.domain};path=/;SameSite=None;secure`}const delCookie=d=>{document.cookie=d+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT;path=/;"},clearAllCookies=()=>{for(var d=document.cookie.split(";"),_=0;_-1?e.substr(0,r):e;document.cookie=i+"=;expires=Thu, 01 Jan 1970 00:00:00 GMT"}};function downLoadLink(d,_){let e=document.createElement("a");document.body.appendChild(e),e.href=_,d&&(e.title=d,e.download=d);let r=document.createEvent("MouseEvents");r.initEvent("click",!1,!1),e.dispatchEvent(r),document.body.removeChild(e)}function getFirstLevelDomain(){var d=window.location.hostname,_=d.split(".").reverse();return _.length>2?[_[1],_[0]].join("."):d}function getBlob(d){return new Promise(_=>{const e=new window.XMLHttpRequest;(d.indexOf(getFirstLevelDomain())>-1||location.hostname==="localhost"&&d.indexOf("/api/")>-1)&&(e.withCredentials=!0),e.open("GET",d,!0),e.responseType="blob",e.onload=()=>{e.status===200&&_(e.response)},e.send()})}function saveAs(d,_){if(window.navigator.msSaveOrOpenBlob)window.navigator.msSaveBlob(d,_);else{const e=document.createElement("a"),r=document.querySelector("body");e.href=window.URL.createObjectURL(d),e.download=_,e.style.display="none",r.appendChild(e),e.click(),r.removeChild(e),window.URL.revokeObjectURL(e.href)}}function download(d,_){getBlob(d).then(e=>{saveAs(e,_)})}function downLoadFileIframe(d,_){return new Promise((e,r)=>{var i=_,l=document.createElement("iframe"),c;document.body.appendChild(l),l.src=i,l.style.display="none",l.addEventListener("load",function(){setTimeout(()=>{document.body.removeChild(l)},1e3)},!0),c=setInterval(()=>{getCookie("fileDownload")&&(delCookie("fileDownload"),clearInterval(c),document.body.removeChild(l),e())},1e3)})}function downLoadFile(d,_){downLoadLink(d,_)}const setUrlQuery=d=>{let{url:_,query:e}=d;if(!_)return"";if(e){let r=[];for(const i in e)e.hasOwnProperty(i)&&!isUnOrNull(e[i])&&(typeof e[i]=="object"?e[i].map(l=>{r.push(`${i}[]=${l}`)}):r.push(`${i}=${e[i]}`));_.indexOf("?")!==-1?_=`${_}&${r.join("&")}`:_=`${_}?${r.join("&")}`,console.log("url1111",_)}return _};function isPc(){let d=navigator.userAgent,_=["Android","iPhone","SymbianOS","Windows Phone","iPad","iPod"],e=!0;for(var r=0;r<_.length;r++)if(d.indexOf(_[r])>0){e=!1;break}return e}function isChrome(){let d=navigator.userAgent;return["Chrome"].some(e=>d.indexOf(e)>-1)}function isFirefox(){let d=navigator.userAgent;return["Firefox"].some(e=>d.indexOf(e)>-1)}function isChromeOrFirefox(){let d=navigator.userAgent;return["Chrome","Firefox"].some(e=>d.indexOf(e)>-1)}const formatMoney=(d="")=>{var _;return(_=d==null?void 0:d.toString())==null?void 0:_.replace(/\B(?=(\d{3})+(?!\d))/g,",")},openNewWindow=d=>{let _=document.createElement("a");_.target="_blank",document.body.appendChild(_),_.href=d;let e=document.createEvent("MouseEvents");e.initEvent("click",!1,!1),_.dispatchEvent(e),document.body.removeChild(_)},openNewWindows=d=>{let _=document.createElement("a");document.body.appendChild(_),_.href=d;let e=document.createEvent("MouseEvents");e.initEvent("click",!1,!1),_.dispatchEvent(e),document.body.removeChild(_)},formatTextMiddleIntercept=(d="")=>d.length<=6?d:`${d.substring(0,3)}...${d.substring(d.length-3,d.length)}`,HalfPastOne=()=>{let d=new Date().getHours(),_=new Date().getMinutes();return _>=30?(d++,_="00"):_="30",d+":"+_},DayHalfPastOne=(d="-")=>{let _=new Date().getHours(),e=new Date().getMinutes();return e>=30?(_++,e="00"):e="30",new Date().toLocaleDateString().replace(/\//g,d)+" "+_+":"+e};var Type=(d=>(d.Number="Number",d.String="String",d.Boolean="Boolean",d.Object="Object",d.Array="Array",d.Function="Function",d))(Type||{});const type=d=>{const _=Object.prototype.toString.call(d);return _.substring(8,_.length-1)},isEmpty=d=>type(d)==="Array"?d.length===0:type(d)==="Object"?Object.keys(d).length===0:!d,rangeNumber=(d,_)=>{const e=[];for(let r=d;r<_;r++)e.push(r);return e},middleEllipsis=(d,_=12)=>{let e=_/2-2,r=_/2+3;return d.length>_?d.substr(0,e)+"..."+d.substr(r,_):d},formatRate=d=>d>4.5?5:d>4&&d<=4.5?4.5:d>3.5&&d<=4?4:d>3&&d<=3.5?3.5:d>2.5&&d<=3?3:d>2&&d<=2.5?2.5:d>1.5&&d<=2?2:d>1&&d<=1.5?1.5:d>.5&&d<=1?1:d>0&&d<=.5?.5:0,isUnOrNull=d=>d==null;function getUrlToken(d,_){const e=new RegExp(`(^|&)${d}=([^&]*)(&|$)`,"i"),r=_.substr(1).match(e);return r!=null?decodeURIComponent(r[2]):null}const getMessagesUrl=d=>{var _;if(d.link_url)return window.open(d.link_url);switch(d==null?void 0:d.container_type){case"TeacherChangeUserInfo":return window.open("/account/profile");case"TeacherResetUserPassword":return window.open("/account/secure");case"ApplyUserAuthentication":return window.open("/account/certification")}switch(d.container_type){case"ApplyUserAuthentication":if(d.tiding_type==="Apply"){if(d.auth_type===1)return window.open("/admins/identity_authentications");if(d.auth_type===2)return window.open("/admins/professional_authentications")}return d.tiding_type==="System"?window.open("/account/certification"):d.tiding_type==="Code"?window.open("/account/profile"):void 0;case"CancelUserAuthentication":return window.open("/account/certification");case"CancelUserProCertification":return window.open("/account/certification");case"ApplyAddMajor":return window.open("/account/profile");case"Major":return window.open("/account/profile");case"ApplyAddDepartment":return d.tiding_type==="Apply"?window.open("/admins/department_applies"):d.tiding_type==="System"?window.open("/account/profile"):void 0;case"ApplyAddSchools":return d.tiding_type==="Apply"?window.open("/admins/unit_applies"):d.tiding_type==="System"?window.open("/account/profile"):void 0;case"ApplyAction":switch(d.parent_container_type){case"ApplyShixun":if(d.tiding_type==="Apply")return window.open("/admins/shixun_authorizations");if(d.tiding_type==="System")return window.open(`/shixuns/${d.identifier}/challenges`);case"ApplySubject":if(d.tiding_type==="Apply")return window.open("/admins/subject_authorizations");if(d.tiding_type==="System")return window.open(`/paths/${d.parent_container_id}`);case"TrialAuthorization":if(d.tiding_type==="Apply")return window.open("/managements/trial_authorization");if(d.tiding_type==="System")return window.open("/account/profile")}return;case"JoinCourse":return window.open(`/classrooms/${d.belong_container_id}/teachers`);case"StudentJoinCourse":if(d.tiding_type==="Apply")return window.open(`/classrooms/${d.belong_container_id}/teachers`);if(d.tiding_type==="System")return window.open(`/classrooms/${d.belong_container_id}/students`);case"DealCourse":return window.open(`/classrooms/${d.belong_container_id}/shixun_homework/`);case"TeacherJoinCourse":return window.open(`/classrooms/${d.belong_container_id}/shixun_homework/`);case"Course":return d.tiding_type==="Delete"?void 0:window.open(`/classrooms/${d.belong_container_id}/shixun_homework/`);case"ArchiveCourse":return window.open(`/classrooms/${d.belong_container_id}/shixun_homework/`);case"Shixun":return window.open(`/shixuns/${d.identifier}/challenges`);case"Subject":return window.open(`/paths/${d.container_id}`);case"JournalsForMessage":switch(d.parent_container_type){case"Principal":return"";case"HomeworkCommon":return d.homework_type==="normal"?window.open(`/classrooms/${d.belong_container_id}/common_homework/${d.parent_container_id}/question`):d.homework_type==="group"?window.open(`/classrooms/${d.belong_container_id}/group_homework/${d.parent_container_id}/question`):d.homework_type==="practice"?window.open(`/classrooms/${d.belong_container_id}/shixun_homework/${d.parent_container_id}/detail?tabs=1`):"";case"GraduationTopic":return window.open(`/classrooms/${d.belong_container_id}/graduation_topics/${d.parent_container_id}/detail`);case"StudentWorksScore":return window.open(d.link_url)}case"Memo":return window.open(`/forums/${d.parent_container_id}`);case"Message":return window.open("/forums/");case"Watcher":return window.open(`/users/${d.trigger_user.login}/classrooms`);case"PraiseTread":return"";case"Grade":return"";case"JoinProject":return window.open(_env__WEBPACK_IMPORTED_MODULE_7__.Z.FORGE+d.project_url);case"ReporterJoinProject":return window.open(_env__WEBPACK_IMPORTED_MODULE_7__.Z.FORGE+d.project_url);case"DealProject":return window.open(_env__WEBPACK_IMPORTED_MODULE_7__.Z.FORGE+d.project_url);case"ManagerJoinProject":return window.open(_env__WEBPACK_IMPORTED_MODULE_7__.Z.FORGE+d.project_url);case"Poll":switch(d.parent_container_type){case"CommitPoll":return window.open(` /classrooms/${d.belong_container_id}/poll/${d.container_id}/detail`);default:return window.open(` /classrooms/${d.belong_container_id}/poll/${d.container_id}/detail`)}case"Exercise":switch(d.parent_container_type){case"CommitExercise":return window.open(` /classrooms/${d.belong_container_id}/exercise/${d.container_id}/detail?tab=0`);case"ExerciseScore":return window.open(` /classrooms/${d.belong_container_id}/exercise/${d.container_id}/detail?tab=0`);default:return window.open(`/classrooms/${d.belong_container_id}/exercise/${d.container_id}/detail?tab=0`)}case"StudentGraduationTopic":return window.open(`/classrooms/${d.belong_container_id}/graduation_topics/${d.parent_container_id}/detail`);case"DealStudentTopicSelect":return window.open(`/classrooms/${d.belong_container_id}/graduation_topics/${d.parent_container_id}/detail`);case"GraduationTask":return window.open(`/classrooms/${d.belong_container_id}/graduation_tasks/${d.container_id}`);case"GraduationWork":return window.open(`/classrooms/${d.belong_container_id}/graduation_tasks/${d.container_id}`);case"GraduationWorkScore":return window.open(`/classrooms/${d.belong_container_id}/graduation_tasks/${d.parent_container_id}`);case"HomeworkCommon":switch(d.parent_container_type){case"AnonymousCommentFail":if(d.homework_type==="normal")return window.open(`/classrooms/${d.belong_container_id}/common_homework/${d.parent_container_id}/detail`);if(d.homework_type==="group")return window.open(`/classrooms/${d.belong_container_id}/group_homework/${d.parent_container_id}/detail`);if(d.homework_type==="practice")return window.open(`/classrooms/${d.belong_container_id}/shixun_homework/${d.parent_container_id}/detail?tabs=0`);case"HomeworkPublish":if(d.homework_type==="normal")return window.open(`/classrooms/${d.belong_container_id}/common_homework/${d.parent_container_id}/detail`);if(d.homework_type==="group")return window.open(`/classrooms/${d.belong_container_id}/group_homework/${d.parent_container_id}/detail`);if(d.homework_type==="practice")return window.open(`/classrooms/${d.belong_container_id}/shixun_homework/${d.parent_container_id}/detail?tabs=0`);case"AnonymousAppeal":if(d.homework_type==="normal")return window.open(`/classrooms/${d.belong_container_id}/common_homework/${d.parent_container_id}/detail`);if(d.homework_type==="group")return window.open(`/classrooms/${d.belong_container_id}/group_homework/${d.parent_container_id}/detail`);if(d.homework_type==="practice")return window.open(`/classrooms/${d.belong_container_id}/shixun_homework/${d.parent_container_id}/detail?tabs=0`);default:if(d.homework_type==="normal")return window.open(`/classrooms/${d.belong_container_id}/common_homework/${d.parent_container_id}/detail`);if(d.homework_type==="group")return window.open(`/classrooms/${d.belong_container_id}/group_homework/${d.parent_container_id}/detail`);if(d.homework_type==="practice")return window.open(`/classrooms/${d.belong_container_id}/shixun_homework/${d.parent_container_id}/detail?tabs=0`)}case"StudentWork":if(d.homework_type==="normal")return window.open(`/classrooms/${d.belong_container_id}/common_homework/${d.parent_container_id}/review/${d.container_id}`);if(d.homework_type==="group")return window.open(`/classrooms/${d.belong_container_id}/group_homework/${d.parent_container_id}/review/${d.container_id}`);if(d.homework_type==="practice")return window.open(`/classrooms/${d.belong_container_id}/shixun_homework/${d.parent_container_id}/detail`);case"StudentWorksScore":return window.open(`/classrooms/${d.belong_container_id}/common_homework/${d.trigger_user.id}/review/${d.parent_container_id}`);case"StudentWorksScoresAppeal":return window.open(`/classrooms/${d.belong_container_id}/common_homework/${d.trigger_user.id}/review/${d.parent_container_id}`);case"ChallengeWorkScore":return"";case"SendMessage":return window.open(`${_env__WEBPACK_IMPORTED_MODULE_7__.Z.API_SERVER}/admins/mirror_repositories`);case"Journal":return window.open(`/issues/${d.parent_container_id}`);case"Issue":return window.open(`/issues/${d.container_id}`);case"PullRequest":return window.open(_env__WEBPACK_IMPORTED_MODULE_7__.Z.FORGE+d.project_url);case"Department":return window.open("/account/profile");case"Library":if(d.tiding_type==="Apply")return window.open("/admins/library_applies");if(d.tiding_type==="System")return window.open(`/moop_cases/${d.container_id}`);case"ProjectPackage":return d.tiding_type==="Destroyed"||d.tiding_type==="Destroyed_end"?void 0:d.tiding_type==="Apply"?window.open("/admins/project_package_applies"):window.open(`/crowdsourcing/${d.container_id}`);case"Discuss":return d.parent_container_type==="Hack"&&d.extra?window.open(`/myproblems/${d.extra}/comment`):d.extra==="ai_reply"&&d.task_identifier?window.open(`/tasks/${d.task_identifier}?extra=extra`):window.open(`/shixuns/${d.identifier}/shixun_discuss`);case"Video":return d.tiding_type==="Apply"?window.open("/admins/video_applies"):d.tiding_type==="System"?window.open(`/users/${(_=(0,_utils_authority__WEBPACK_IMPORTED_MODULE_1__.eY)())==null?void 0:_.login}/videos`):"";case"PublicCourseStart":return window.open(`/classrooms/${d.container_id}/informs`);case"SubjectStartCourse":return window.open(`/paths/${d.container_id}`);case"ResubmitStudentWork":if(d.homework_type==="normal")return window.open(`/classrooms/${d.belong_container_id}/common_homework/${d.parent_container_id}/${d.container_id}/appraise`);if(d.homework_type==="group")return window.open(`/classrooms/${d.belong_container_id}/group_homework/${d.parent_container_id}/${d.container_id}/appraise`);case"AdjustScore":if(d.homework_type==="normal")return window.open(`/classrooms/${d.belong_container_id}/common_homework/${d.parent_container_id}`);if(d.homework_type==="group")return window.open(`/classrooms/${d.belong_container_id}/group_homework/${d.parent_container_id}`);case"LiveLink":return window.open(`/classrooms/${d.belong_container_id}/course_videos?open=live`);case"Hack":if(d.extra&&d.parent_container_type!=="HackDelete")return window.open(`/problems/${d.extra}/edit`);default:return}},checkLocalOrPublicIp=(d,_)=>__async(void 0,null,function*(){let e="",r;return new Promise((i,l)=>__async(void 0,null,function*(){if(d.ip_limit!=="no"||d.ip_bind_type)try{e=yield(0,_components_Exercise_ip__WEBPACK_IMPORTED_MODULE_2__.y)({ip_limit:d==null?void 0:d.ip_limit,ip_bind:d==null?void 0:d.ip_bind_type}),console.log(e,44)}catch(f){l(void 0)}const c=yield(0,_service_exercise__WEBPACK_IMPORTED_MODULE_3__.Cl)({id:d.exerciseId,ip:e});if(c.status===0)i(c);else if(c.status===-5){(0,umi__WEBPACK_IMPORTED_MODULE_5__.getDvaApp)()._store.dispatch({type:"exercise/setActionTabs",payload:{key:"student-unlock",exerciseParams:{errorMessage:c==null?void 0:c.message,exercise_user_id:d==null?void 0:d.exercise_user_id,id:d.exerciseId,unlockClose:d.unlockClose}}});return}else i(c);if(d.errmsgHide||_)return!0;if(c.status===-1)return r=antd__WEBPACK_IMPORTED_MODULE_15__.default.info({title:react__WEBPACK_IMPORTED_MODULE_0__.createElement(antd__WEBPACK_IMPORTED_MODULE_16__.Z,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(antd__WEBPACK_IMPORTED_MODULE_17__.Z,{flex:"1"},"\u63D0\u793A"),react__WEBPACK_IMPORTED_MODULE_0__.createElement(antd__WEBPACK_IMPORTED_MODULE_17__.Z,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"iconfont icon-yiguanbi1 current c-grey-c",onClick:()=>r.destroy()}))),icon:null,className:"custom-modal-divider",content:react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:"font16 p20"},"\u60A8\u7684IP\u4E0D\u5728\u8003\u8BD5\u5141\u8BB8\u7684\u8303\u56F4\u5185\uFF01"),okText:"\u6211\u77E5\u9053\u4E86"}),!1;if(c.status===-2)return r=antd__WEBPACK_IMPORTED_MODULE_15__.default.info({title:react__WEBPACK_IMPORTED_MODULE_0__.createElement(antd__WEBPACK_IMPORTED_MODULE_16__.Z,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(antd__WEBPACK_IMPORTED_MODULE_17__.Z,{flex:"1"},"\u63D0\u793A"),react__WEBPACK_IMPORTED_MODULE_0__.createElement(antd__WEBPACK_IMPORTED_MODULE_17__.Z,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"iconfont icon-yiguanbi1 current c-grey-c",onClick:()=>r.destroy()}))),icon:null,className:"custom-modal-divider",content:react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:"font16 p20"},"\u60A8\u5DF2\u7ED1\u5B9A\u5F53\u524D\u8003\u8BD5IP\u5730\u5740\uFF1A",react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"c-red"},c.ip),"\u8BF7\u4F7F\u7528\u8BE5IP\u5730\u5740\u8FDB\u5165\u8003\u8BD5\u3002"),okText:"\u6211\u77E5\u9053\u4E86"}),!1}))});function isInsecureOrLocalhost(d){try{const _=new URL(d),e=_.hostname==="localhost"||_.hostname==="127.0.0.1";return!(_.protocol==="https:")&&!e}catch(_){return!0}}const checkDisabledExam=d=>new Promise((_,e)=>__async(void 0,null,function*(){const r=yield(0,_service_exercise__WEBPACK_IMPORTED_MODULE_3__.Zg)({id:d==null?void 0:d.exerciseId,coursesId:d==null?void 0:d.coursesId});if((r==null?void 0:r.status)===0){_("");return}setTimeout(()=>{window.location.reload()},2e3),e("")})),isKepuKehuan=()=>location.pathname.indexOf("/classrooms/4RW9CYHY")>-1||location.pathname.indexOf("/classrooms/qb4ft587")>-1||location.pathname.indexOf("/classrooms/c5q9bsp2")>-1,startExercise=d=>__async(void 0,null,function*(){var _,e,r;sessionStorage.removeItem("studentunlock");let i;if((location.pathname.indexOf("/classrooms/4RW9CYHY")>-1||location.pathname.indexOf("/classrooms/qb4ft587")>-1||location.pathname.indexOf("/classrooms/c5q9bsp2")>-1)&&!isPc()){antd__WEBPACK_IMPORTED_MODULE_15__.default.info({content:"\u8BF7\u4F7F\u7528\u7535\u8111\u53C2\u52A0\u8003\u8BD5\uFF01"});return}if(copyTextFuc(" ",!0),yield checkDisabledExam(d),d.ip_limit!=="no"||d.ip_bind){const l=yield checkLocalOrPublicIp(d,!0);if((l==null?void 0:l.status)!==0)return;if(!isChrome()){antd__WEBPACK_IMPORTED_MODULE_15__.default.info({icon:null,okText:"\u786E\u5B9A",width:500,content:react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:"font16"},"\u672C\u6B21\u8003\u8BD5\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A\u8BBE\u7F6E\uFF0C\u4EC5\u652F\u6301",react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"c-red"},"\u8C37\u6B4C"),"\u3002",react__WEBPACK_IMPORTED_MODULE_0__.createElement("br",null),"\u8BF7\u4F7F\u7528",react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"c-red"},"\u8C37\u6B4C"),"\u6D4F\u89C8\u5668\u5F00\u59CB\u8003\u8BD5\u3002")});return}}if(d.forbid_screen){const l=new WebSocket("ws://localhost:8082");yield new Promise(c=>setTimeout(()=>c(),200)),sendAppStatus(l,d)}if(d.open_camera||d.screen_open||d.ip_limit!=="no"||d.identity_verify){if(!isChromeOrFirefox())return antd__WEBPACK_IMPORTED_MODULE_15__.default.info({icon:null,okText:"\u786E\u5B9A",width:500,content:react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:"font16"},"\u672C\u6B21\u8003\u8BD5\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A\u8BBE\u7F6E\uFF0C\u4EC5\u652F\u6301",react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"c-red"},"\u8C37\u6B4C"),"\u3001",react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"c-red"},"\u706B\u72D0"),"\u6D4F\u89C8\u5668\u3002",react__WEBPACK_IMPORTED_MODULE_0__.createElement("br",null),"\u8BF7\u4F7F\u7528",react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"c-red"},"\u8C37\u6B4C"),"\u3001",react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"c-red"},"\u706B\u72D0"),"\u6D4F\u89C8\u5668\u5F00\u59CB\u8003\u8BD5\u3002")}),!1;d.open_phone_video_recording?window.location.href=`/classrooms/${d.coursesId}/exercise/${d.exerciseId}/users/${(_=(0,_utils_authority__WEBPACK_IMPORTED_MODULE_1__.eY)())==null?void 0:_.login}/check`:d.identity_verify&&d.current_status===2?window.location.href=`/classrooms/${d.coursesId}/exercise/${d.exerciseId}/users/${(e=(0,_utils_authority__WEBPACK_IMPORTED_MODULE_1__.eY)())==null?void 0:e.login}/check`:window.location.href=`/classrooms/${d.coursesId}/exercise/${d.exerciseId}/users/${(r=(0,_utils_authority__WEBPACK_IMPORTED_MODULE_1__.eY)())==null?void 0:r.login}`}else d.identity_verify&&d.current_status===2?window.location.href=`/classrooms/${d.coursesId}/exercise/${d.exerciseId}/users/${d.login}/check`:window.location.href=`/classrooms/${d.coursesId}/exercise/${d.exerciseId}/users/${d.login}`});var httpBuildQuery=function(d,_,e,r){if(console.log("param:",d),_=_||null,e=e||"&",r=r||null,!d)return"";var i=function(o){for(var h=new Array,u=0;u{const e={},r=Object.assign(!0,d,{}),i=[];return Object.keys(r).sort().forEach(function(l){if(r[l]=r[l]===!0?"true":r[l],r[l]=r[l]===!1?"false":r[l],_==="GET"){if(r[l]!==null){if(typeof r[l]=="object"&&(!Array.isArray(r[l])||Array.isArray(r[l])&&!r[l].length))return;const c=r[l]===null||r[l]==="null"?"":r[l];i.push(`${l}=${typeof c=="string"||typeof c=="number"?decodeURIComponent(c):JSON.stringify(c)}`)}}else{const c=r[l]===null||r[l]==="null"?"":r[l];i.push(`${l}=${typeof c=="string"||typeof c=="number"?c:JSON.stringify(c)}`),r[l],e[l]=r[l]}}),i.join("&").trim()},educationList=[{name:"\u672C\u79D1",id:6},{name:"\u5927\u4E13",id:5},{name:"\u4E2D\u4E13",id:4},{name:"\u9AD8\u4E2D",id:3},{name:"\u521D\u4E2D",id:2},{name:"\u5C0F\u5B66",id:1},{name:"\u5176\u4ED6",id:9},{name:"\u7855\u58EB",id:7},{name:"\u535A\u58EB",id:8},{name:"\u9AD8\u4E2D",id:3},{name:"\u521D\u4E2D",id:2},{name:"\u5C0F\u5B66",id:1},{name:"\u5176\u4ED6",id:9},{name:"\u7855\u58EB",id:7},{name:"\u535A\u58EB",id:8}];function getTopLevelDomain(){let d=window.location.hostname;if(/^\d+\.\d+\.\d+\.\d+$/.test(d)||d==="localhost")return d;let _=d.split(".");return _.length>2&&/^[a-z]{2}$/.test(_[_.length-2])?_.slice(-3).join("."):_.slice(-2).join(".")}const setHeader=(d,_)=>{var e;try{const r=Date.now(),i=(0,uuid__WEBPACK_IMPORTED_MODULE_18__.Z)();let l="method="+((e=d.method)==null?void 0:e.toLocaleUpperCase())+"&ak="+getKey(_key__WEBPACK_IMPORTED_MODULE_19__.mi)+"&sk="+getKey(_key__WEBPACK_IMPORTED_MODULE_19__.hw)+"&time="+r;return d.headers["X-EDU-Type"]="pc",d.headers["X-EDU-Timestamp"]=r,d.headers["X-EDU-Signature"]=md5__WEBPACK_IMPORTED_MODULE_6___default()(window.btoa(l)),d.headers["Pc-Authorization"]=getCookie("_educoder_session"),d.headers["X-Request-Id"]=i,d}catch(r){console.log("error:",r,d,_)}},setThreeComponent=()=>{(function(d){XMLHttpRequest.prototype.open=function(_,e,r=!0){const i=setHeader({method:_,headers:{}});d.call(this,_,e,r);try{e.indexOf(getTopLevelDomain())>-1&&(this.setRequestHeader("X-EDU-Type","pc"),this.setRequestHeader("X-EDU-Timestamps",i.headers["X-EDU-Timestamp"]),this.setRequestHeader("X-EDU-Signatures",i.headers["X-EDU-Signature"]),this.setRequestHeader("Pc-Authorization",getCookie("_educoder_session")))}catch(l){}}})(XMLHttpRequest.prototype.open),function(d){window.fetch=function(_,e){var r;return e=e||{},(r=e.headers)!=null&&r["X-EDU-Timestamp"]||setHeader(e),d.apply(this,arguments).then(function(i){return i})}}(window.fetch)},parseUrl=d=>{const _=/(\w+)=([^\#&]*)/gi,e={};return d.replace(_,function(r,i,l){e[i]=decodeURI(l)}),e},messageInfo=(d,_)=>{const r={1:"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u6682\u672A\u53D1\u5E03\uFF0C\u8BF7\u8054\u7CFB\u672C\u8BFE\u5802\u6559\u5E08\u3002",2:"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u4E0D\u5B58\u5728\uFF0C\u8BF7\u8054\u7CFB\u672C\u8BFE\u5802\u6559\u5E08\u3002",3:"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u9762\u5411\u6307\u5B9A\u5355\u4F4D\u5F00\u653E\uFF0C\u8BF7\u8054\u7CFB\u672C\u8BFE\u5802\u6559\u5E08\u3002",4:`\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u5C06\u4E8E${_}\u53D1\u5E03\uFF0C\u8BF7\u7B49\u5F85\u3002`}[d];antd__WEBPACK_IMPORTED_MODULE_14__.ZP.warning(r)},base64ToBlob=(d,_)=>{var e;const r=window.atob(d),i=r.length,l=new Uint8Array(i);for(let c=0;c{const r=base64ToBlob(_,e);if(window.navigator.msSaveOrOpenBlob)navigator.msSaveBlob(r,d);else{const i=document.createElement("a");i.href=window.URL.createObjectURL(r),i.download=d,document.body.appendChild(i);const l=document.createEvent("MouseEvents");l.initEvent("click",!1,!1),i.dispatchEvent(l),document.body.removeChild(i)}},trackEvent=d=>{var _;if(d.length)try{window._czc.push(["_trackEvent",...d]),window==null||window.gtag("event",d[1],{event_category:d[0],event_label:d[2]||"",value:d[3]||"",user_id:((_=(0,_utils_authority__WEBPACK_IMPORTED_MODULE_1__.eY)())==null?void 0:_.login)||""})}catch(e){console.log("trackEvent:err:",e)}},trackEventCustom=d=>{if(d.length)try{window._czc.push(["_setCustomVar",...d])}catch(_){console.log("trackEvent:err:",_)}},onPreviewImage=d=>{const _=(i,l)=>{if(i.localName===l)return i;for(let c=0,f=i;f=f.parentNode;c++){if(f.localName===l)return f;if(f==document.documentElement)return!1}},e=d.target,r=_(e,"a");if(!(r!=null&&r.href)&&e.tagName.toUpperCase()==="IMG"){let i=e.src||e.getAttribute("src");i&&i.indexOf("/images/avatars/User")===-1&&(d.stopPropagation(),d.preventDefault(),_components_mediator__WEBPACK_IMPORTED_MODULE_8__.Z.publish("preview-image",i))}},getCategoryName=(d,_)=>{var e,r,i,l;if(d&&d!=""){let c=(e=d==null?void 0:d.filter(f=>f.type===location.pathname.split("/")[3]))==null?void 0:e[0];return _?(l=(i=(r=c==null?void 0:c.second_category)==null?void 0:r.filter(f=>f.category_id==_))==null?void 0:i[0])==null?void 0:l.category_name:c==null?void 0:c.name}return null},bindPhone=d=>{const _=antd__WEBPACK_IMPORTED_MODULE_15__.default.confirm({title:"\u5B8C\u5584\u624B\u673A\u53F7\u7801",content:"\u6309\u7167\u6709\u5173\u653F\u7B56\u89C4\u5B9A\uFF0C\u7279\u6B8A\u5B9E\u9A8C\u9700\u8981\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u624D\u80FD\u4F7F\u7528\uFF0C\u8BF7\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u7801",okText:"\u7ACB\u5373\u7ED1\u5B9A",cancelText:"\u53D6\u6D88",centered:!0,onOk:()=>{location.href="/account/secure"},onCancel:()=>{_.destroy(),d!=null&&d.onCancel&&d.onCancel()}})},copyTextFuc=(d="",_=!1)=>{const e=document.createElement("textarea");e.value=d,document.body.appendChild(e),e.select(),document.execCommand("Copy"),_||antd__WEBPACK_IMPORTED_MODULE_14__.ZP.success("\u590D\u5236\u6210\u529F"),document.body.removeChild(e)},getJsonFromUrl=d=>{if(d||(d=window.location.search),!d)return{};let _=d.substring(1),e={};return _.split("&").forEach(function(r){let i=r.split("=");e[i[0]]=decodeURIComponent(i[1])}),e},arrTrans=(d,_)=>{if(!_)return null;const e=[];return _.forEach((r,i)=>{const l=Math.floor(i/d);e[l]||(e[l]=[]),e[l].push(r)}),e},setDocumentTitle=d=>{checkIsClientExam()?document.title="\u8003\u8BD5\u7CFB\u7EDF":d!==""&&d&&(document.title=d||(document.domain.indexOf(".educoder.net")>-1?"\u5B9E\u8DF5\u6559\u5B66\u5E73\u53F0":""))},checkIsClientExam=()=>{var d;return(d=window==null?void 0:window.localStorage)==null?void 0:d.isClientExam},localSort={setItem:(d,_,e)=>{const r=d,i=localStorage.getItem(r),l=i!==null&&i!=="[object Object]"?JSON.parse(i):{};l[e]=_,localStorage.setItem(r,JSON.stringify(l))},getItem:(d,_)=>{const e=d,r=localStorage.getItem(e);return(r!==null&&r!=="[object Object]"?JSON.parse(r):{})[_]}},ImgSrcConvert=d=>d!=null&&d.startsWith("http")?d:_env__WEBPACK_IMPORTED_MODULE_7__.Z.IMG_SERVER+d,compareVersion=d=>{const _=getVersion(),e=d.split("."),r=_.split("."),i=Math.max(e.length,r.length);for(;e.lengthf)return 1;if(c{d=`${d}${_?","+_:""}`;const e=crypto_js__WEBPACK_IMPORTED_MODULE_11___default().enc.Utf8.parse(window.atob(window.atob(_key__WEBPACK_IMPORTED_MODULE_19__.Bn)).substring(0,16)),r=crypto_js__WEBPACK_IMPORTED_MODULE_11___default().AES.encrypt(d||"",e,{iv:e,mode:crypto_js__WEBPACK_IMPORTED_MODULE_11___default().mode.CBC});return window.btoa(r.toString())},getVersion=()=>{const _=navigator.userAgent.toLowerCase().match(/version\/[\d.]+/gi);return _&&_[0].replace(/version\//,"")},isLocalApp=()=>navigator.userAgent.indexOf("ExerciseApp")>-1;function randomArray(d,_){let e=d.length,r,i;_=_||1;let l=function(){var c=Math.sin(_++)*1e3;return c-Math.floor(c)};for(;e!==0;)i=Math.floor(l()*e),e-=1,r=d[e],d[e]=d[i],d[i]=r;return d}function pointerEvents(d){const _=document.getElementsByTagName("iframe");for(let r=0;r<_.length;r++)_[r].style["pointer-events"]=d;const e=document.getElementsByTagName("canvas");for(let r=0;rnew Promise((_,e)=>{var r=new XMLHttpRequest;r.withCredentials=!0,r.onload=function(){var i=new FileReader;i.onloadend=function(){_(i.result)},i.readAsDataURL(r.response)},r.open("GET",d),r.responseType="blob",r.send()}),vtrsKey=(_b=(_a=location==null?void 0:location.pathname)==null?void 0:_a.split("/"))==null?void 0:_b[1];function scrollToTop(){window.scrollTo({left:0,top:0,behavior:"smooth"})}function domScrollToTop(d){var _;(_=document.querySelector(d))==null||_.scrollTo({left:0,top:0,behavior:"smooth"})}function dealUploadChange(d){var _,e,r,i,l;const c=(_=d.fileList)==null?void 0:_.map(f=>{var o,h;return __spreadProps(__spreadValues({},f),{status:typeof(f==null?void 0:f.response)=="string"||((o=f==null?void 0:f.response)==null?void 0:o.status)===-1?"error":f.status,response:typeof(f==null?void 0:f.response)=="string"?f==null?void 0:f.response:f!=null&&f.response&&(f==null?void 0:f.response.status)===-1?(h=f==null?void 0:f.response)==null?void 0:h.message:f==null?void 0:f.response})});return((r=(e=d.file)==null?void 0:e.response)==null?void 0:r.status)===-1&&(antd__WEBPACK_IMPORTED_MODULE_14__.ZP.destroy(),antd__WEBPACK_IMPORTED_MODULE_14__.ZP.warning((l=(i=d.file)==null?void 0:i.response)==null?void 0:l.message)),c}function cutFileName(d="",_){if(!d)return"";const e=d.lastIndexOf(".");let r=[d,""];if(e!==-1&&e!==d.length-1){const i=d.substring(0,e),l=d.substring(e+1);r=[i,l]}return r[0].length>_?r[0].slice(0,_)+"..."+r[1]:d}function cutName(d="",_,e="--"){return d?(d==null?void 0:d.length)>=_?(d==null?void 0:d.slice(0,_))+"...":d:e}function timeContrast(d){return d?moment__WEBPACK_IMPORTED_MODULE_12___default()().isBefore(moment__WEBPACK_IMPORTED_MODULE_12___default()(d)):!0}function showTotal(d){return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"font14 c-grey-333"},"\u5171",react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"c-light-primary"},"\xA0",d,"\xA0"),"\u6761\u6570\u636E")}const formatRandomPaperData=d=>{const _={1:"\u4E00",2:"\u4E8C",3:"\u4E09",4:"\u56DB",5:"\u4E94",6:"\u516D",7:"\u4E03"};if(!d)return;const{exam:e,single_questions:r,multiple_questions:i,judgement_questions:l,program_questions:c,completion_questions:f,subjective_questions:o,practical_questions:h,combination_questions:u,bprogram_questions:a,program_correction_questions:x}=d||{},p=[__spreadValues({type:"SINGLE",name:"\u5355\u9009\u9898"},r),__spreadValues({type:"MULTIPLE",name:"\u591A\u9009\u9898"},i),__spreadValues({type:"COMPLETION",name:"\u586B\u7A7A\u9898"},f),__spreadValues({type:"JUDGMENT",name:"\u5224\u65AD\u9898"},l),__spreadValues({type:"SUBJECTIVE",name:"\u7B80\u7B54\u9898"},o),__spreadValues({type:"PROGRAM",name:"\u7A0B\u5E8F\u8BBE\u8BA1\u9898"},c),__spreadValues({type:"BPROGRAM",name:"\u7A0B\u5E8F\u586B\u7A7A\u9898"},a),__spreadValues({type:"PROGRAM_CORRECTION",name:"\u7A0B\u5E8F\u6539\u9519\u9898"},x),__spreadValues({type:"PRACTICAL",name:"\u5B9E\u8BAD\u9898"},h),__spreadValues({type:"COMBINATION",name:"\u7EC4\u5408\u9898"},u)],y=[];let m=0,b=0;const S=p.filter(D=>D.questions_count>0).map((D,R)=>{var A;return(A=D.questions)==null||A.forEach(P=>{y.push(P.id),m=m+P.score,b=b+1}),__spreadValues(__spreadValues({},D),{number:_[R+1]})});return{all_questions_count:b,all_score:m,questionList:S,ids:y,exam:e}},formatRandomPaperDatas=d=>{var _;const e={1:"\u4E00",2:"\u4E8C",3:"\u4E09",4:"\u56DB",5:"\u4E94",6:"\u516D",7:"\u4E03"};if(!d)return;const{exam:r,single_questions:i,multiple_questions:l,judgement_questions:c,program_questions:f,completion_questions:o,subjective_questions:h,practical_questions:u,combination_questions:a,bprogram_questions:x,program_correction_questions:p}=d||{},y=[__spreadValues({type:"SINGLE",name:"\u5355\u9009\u9898"},i),__spreadValues({type:"MULTIPLE",name:"\u591A\u9009\u9898"},l),__spreadValues({type:"COMPLETION",name:"\u586B\u7A7A\u9898"},o),__spreadValues({type:"JUDGMENT",name:"\u5224\u65AD\u9898"},c),__spreadValues({type:"SUBJECTIVE",name:"\u7B80\u7B54\u9898"},h),__spreadValues({type:"PROGRAM",name:"\u7A0B\u5E8F\u8BBE\u8BA1\u9898"},f),__spreadValues({type:"BPROGRAM",name:"\u7A0B\u5E8F\u586B\u7A7A\u9898"},x),__spreadValues({type:"PROGRAM_CORRECTION",name:"\u7A0B\u5E8F\u6539\u9519\u9898"},p),__spreadValues({type:"PRACTICAL",name:"\u5B9E\u8BAD\u9898"},u),__spreadValues({type:"COMBINATION",name:"\u7EC4\u5408\u9898"},a)];let m=[];(_=r==null?void 0:r.question_type_position)==null||_.map((A,P)=>{y==null||y.map((M,B)=>{A.type===M.type&&m.push(M)})});const b=[];let S=0,D=0;const R=m.filter(A=>A.questions_count>0).map((A,P)=>{var M;return(M=A.questions)==null||M.forEach(B=>{b.push(B.id),S=S+B.score,D=D+1}),__spreadValues(__spreadValues({},A),{number:e[P+1]})});return{all_questions_count:D,all_score:S,questionList:R,ids:b,exam:r}},isWechatBrowser=()=>navigator.userAgent.toLowerCase().match(/MicroMessenger/i)=="micromessenger",toWechatLogin=()=>{isWechatBrowser()?window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx0955caba88bc37eb&redirect_uri=https%3A%2F%2Fwww.educoder.net%2fotherloginstart&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect":window.location.href="/wxlogin.html"},isMobileDevice=()=>typeof window.orientation!="undefined"||navigator.userAgent.indexOf("Mobi")!==-1,sendAppStatus=(d,_)=>{var e;try{_?(d.send(JSON.stringify({type:"toggleLockExit",data:!0})),_!=null&&_.forbid_screen&&d.send(JSON.stringify({type:"open-disabled-switchscreen"})),_!=null&&_.use_white_list&&d.send(JSON.stringify({type:"open-only-allow-runapp",data:_==null?void 0:_.white_list})),_!=null&&_.net_limit&&d.send(JSON.stringify({type:"network-close",data:(e=_==null?void 0:_.net_limit_list)==null?void 0:e.split(` `)}))):(d.send(JSON.stringify({type:"toggleLockExit",data:!1})),d.send(JSON.stringify({type:"close-disabled-switchscreen"})),d.send(JSON.stringify({type:"close-only-allow-runapp"})),d.send(JSON.stringify({type:"network-open"})))}catch(r){}},addJumping=()=>{const d=document.querySelector('a[title="\u589E\u52A0\u586B\u7A7A"]'),_=d==null?void 0:d.querySelector("span");_&&(_.classList.remove("jumping-icon"),_.offsetWidth,_.classList.add("jumping-icon"),setTimeout(()=>{var e;(e=_==null?void 0:_.classList)==null||e.remove("jumping-icon")},2e3))},showClassroomsmodal=d=>d!=null&&d.forbid_student_visit?(antd__WEBPACK_IMPORTED_MODULE_15__.default.warning({title:"\u63D0\u793A",icon:null,centered:!0,okText:"\u6211\u77E5\u9053\u4E86",content:react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null,react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:{fontWeight:600}},d==null?void 0:d.username,"\u8001\u5E08 "),"\u5DF2\u5173\u95ED\u8BE5\u8BFE\u5802\uFF0C\u5B66\u751F\u7528\u6237\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE ")}),!0):!1,getExamRestrictionInfo=d=>{const _=[];return d.is_locked&&_.push("\u8003\u8BD5\u89E3\u9501\u7801"),d.login_restrict&&_.push("\u8003\u8BD5\u767B\u5F55\u9650\u5236"),d.screen_open&&_.push("\u5207\u5C4F\u540E\u5F3A\u5236\u4EA4\u5377"),d.ip_bind&&_.push("IP\u5730\u5740\u7ED1\u5B9A"),(d.ip_limit==="pub"||d.ip_limit==="inner")&&_.push("\u9650\u5236\u8003\u8BD5\u8BBF\u95EEIP"),d.open_camera&&_.push("\u8003\u8BD5\u4E2D\u542F\u7528\u62CD\u7167\u529F\u80FD\u8FDB\u884C\u76D1\u8003\u548C\u884C\u4E3A\u5206\u6790"),d.identity_verify&&_.push("\u8003\u8BD5\u524D\u4EBA\u8138\u8EAB\u4EFD\u6838\u9A8C"),d.open_phone_video_recording&&_.push("\u8003\u8BD5\u4E2D\u5F00\u542F\u624B\u673A\u89C6\u9891\u5F55\u5236"),_.length>0?_.join("\u3001"):""},releaseRuleDataAdjust=d=>{const _=d.reduce((r,i)=>{const l=`${i.publish_time}_${i.end_time}_${i.is_admin}`;return r[l]?(r[l].group_name.push(i.group_name),r[l].group_id.push(i.group_id)):r[l]={publish_time:i.publish_time,end_time:i.end_time,is_admin:i.is_admin,group_name:[i.group_name],group_id:[i.group_id]},r},{});return Object.values(_).map(r=>__spreadProps(__spreadValues({},r),{group_name:r.group_name.flat(),group_id:r.group_id.flat()}))},showInstallWebRtcDoc=()=>new Promise((d,_)=>__async(void 0,null,function*(){const e=yield(0,_utils_fetch__WEBPACK_IMPORTED_MODULE_10__.ZP)("/api/documents/webrtc_content",{method:"get"});antd__WEBPACK_IMPORTED_MODULE_15__.default.info({title:"WebRTC\u63D2\u4EF6\u5B89\u88C5\u6559\u7A0B",width:"1000px",centered:!0,content:react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{style:{maxHeight:"70vh",overflow:"auto"}},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_RenderHtml__WEBPACK_IMPORTED_MODULE_9__.Z,{value:(e==null?void 0:e.data)||""}))}),d(e==null?void 0:e.data)}));function copyToClipboard(d){return navigator.clipboard?navigator.clipboard.writeText(d).then(()=>(console.log("Text copied to clipboard successfully!"),!0)).catch(_=>{throw console.error("Failed to copy text: ",_),_}):new Promise((_,e)=>{const r=document.createElement("textarea");r.value=d,document.body.appendChild(r),r.select();try{const i=document.execCommand("copy");document.body.removeChild(r),i?(console.log("Text copied to clipboard successfully!"),_(!0)):(console.error("Failed to copy text using execCommand."),e(!1))}catch(i){document.body.removeChild(r),console.error("Failed to copy text: ",i),e(i)}})}const isArrayBuffer=d=>Object.prototype.toString.call(d)==="[object ArrayBuffer]",parseArrayBufferAsText=(d,_="utf-8")=>isArrayBuffer(d)?new TextDecoder(_).decode(d):d,numFormat=d=>d?(d>=1e3&&(d=d/1e3+"K"),d):0,aiReviewConfigformatChecks=d=>{if(!d||d.length===0)return!0;const _=new Set,e=new Set;let r=!0,i=!0;const l=d==null?void 0:d.reduce((c,f)=>{_!=null&&_.has(f.name)&&(r=!1),_==null||_.add(f.name),e!=null&&e.has(f.content)&&(i=!1),e==null||e.add(f.content);const o=parseFloat(f.weight);return c+o},0);return r?i?parseFloat(l.toFixed(2))!=100?(antd__WEBPACK_IMPORTED_MODULE_14__.ZP.warning("\u6240\u6709\u8BC4\u5206\u9879\u76EE\u7684\u6743\u91CD\u4E4B\u548C\u5FC5\u987B\u4E3A100%"),!1):!0:(antd__WEBPACK_IMPORTED_MODULE_14__.ZP.warning("\u8BC4\u5206\u6807\u51C6\u5185\u5BB9\u4E0D\u80FD\u91CD\u590D!"),!1):(antd__WEBPACK_IMPORTED_MODULE_14__.ZP.warning("\u8BC4\u5206\u9879\u76EE\u5185\u5BB9\u4E0D\u80FD\u91CD\u590D!"),!1)}},93490:function(d,_,e){"use strict";e.d(_,{t:function(){return r}});const r=l=>{var c=/^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$/;return c.test(l)},i=l=>{var c=/^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.$/;return c.test(l)}},9139:function(d,_,e){"use strict";e.d(_,{Il:function(){return f},Ov:function(){return o},T$:function(){return u}});var r=e(38127),i=e(59301),l=e(35338),c=["element"],f=i.createContext({});function o(){return i.useContext(f)}function h(){var y=(0,l.TH)(),m=o(),b=m.clientRoutes,S=(0,l.fp)(b,y.pathname);return S||[]}function u(){var y,m=h().slice(-1),b=((y=m[0])===null||y===void 0?void 0:y.route)||{},S=b.element,D=(0,r.Z)(b,c);return D}function a(){var y=h(),m=o(),b=m.serverLoaderData,S=m.basename,D=React.useState(function(){var M={},B=!1;return y.forEach(function(N){var K=b[N.route.id];K&&(Object.assign(M,K),B=!0)}),B?M:void 0}),R=_slicedToArray(D,2),A=R[0],P=R[1];return React.useEffect(function(){window.__UMI_LOADER_DATA__||Promise.all(y.filter(function(M){return M.route.hasServerLoader}).map(function(M){return new Promise(function(B){fetchServerLoader({id:M.route.id,basename:S,cb:B})})})).then(function(M){if(M.length){var B={};M.forEach(function(N){Object.assign(B,N)}),P(B)}})},[]),{data:A}}function x(){var y=useRouteData(),m=o();return{data:m.clientLoaderData[y.route.id]}}function p(){var y=a(),m=x();return{data:_objectSpread(_objectSpread({},y.data),m.data)}}},91392:function(d){var _={en_GB:"en-gb",en_US:"en",zh_CN:"zh-cn",zh_TW:"zh-tw"},e=function(i){var l=_[i];return l||i.split("_")[0]};d.exports=function(r,i,l){var c=i.prototype.locale;i.prototype.locale=function(f){return typeof f=="string"&&(f=e(f)),c.call(this,f)}}},92806:function(d,_,e){"use strict";var r=e(41799),i=e(59301),l=e(3113),c=e(67797);function f(h){return!!(h&&h.then)}const o=h=>{const{type:u,children:a,prefixCls:x,buttonProps:p,close:y,autoFocus:m,emitEvent:b,isSilent:S,quitOnNullishReturnValue:D,actionFn:R}=h,A=i.useRef(!1),P=i.useRef(null),[M,B]=(0,r.Z)(!1),N=function(){y==null||y.apply(void 0,arguments)};i.useEffect(()=>{let W=null;return m&&(W=setTimeout(()=>{var ae;(ae=P.current)===null||ae===void 0||ae.focus()})),()=>{W&&clearTimeout(W)}},[]);const K=W=>{f(W)&&(B(!0),W.then(function(){B(!1,!0),N.apply(void 0,arguments),A.current=!1},ae=>{if(B(!1,!0),A.current=!1,!(S!=null&&S()))return Promise.reject(ae)}))},H=W=>{if(A.current)return;if(A.current=!0,!R){N();return}let ae;if(b){if(ae=R(W),D&&!f(ae)){A.current=!1,N(W);return}}else if(R.length)ae=R(y),A.current=!1;else if(ae=R(),!ae){N();return}K(ae)};return i.createElement(l.ZP,Object.assign({},(0,c.n)(u),{onClick:H,loading:M,prefixCls:x},p,{ref:P}),a)};_.Z=o},53487:function(d,_,e){"use strict";e.d(_,{Z:function(){return o},i:function(){return f}});var r=e(18929),i=e(59301),l=e(92736),c=e(36355);function f(h){return function(a){return i.createElement(l.ZP,{theme:{token:{motion:!1,zIndexPopupBase:0}}},i.createElement(h,Object.assign({},a)))}}function o(h,u,a,x){function p(y){const{prefixCls:m,style:b}=y,S=i.useRef(null),[D,R]=i.useState(0),[A,P]=i.useState(0),[M,B]=(0,r.Z)(!1,{value:y.open}),{getPrefixCls:N}=i.useContext(c.E_),K=N(u||"select",m);i.useEffect(()=>{if(B(!0),typeof ResizeObserver!="undefined"){const W=new ResizeObserver(ne=>{const oe=ne[0].target;R(oe.offsetHeight+8),P(oe.offsetWidth)}),ae=setInterval(()=>{var ne;const oe=a?`.${a(K)}`:`.${K}-dropdown`,q=(ne=S.current)===null||ne===void 0?void 0:ne.querySelector(oe);q&&(clearInterval(ae),W.observe(q))},10);return()=>{clearInterval(ae),W.disconnect()}}},[]);let H=Object.assign(Object.assign({},y),{style:Object.assign(Object.assign({},b),{margin:0}),open:M,visible:M,getPopupContainer:()=>S.current});return x&&(H=x(H)),i.createElement("div",{ref:S,style:{paddingBottom:D,position:"relative",minWidth:A}},i.createElement(h,Object.assign({},H)))}return f(p)}},36785:function(d,_,e){"use strict";e.d(_,{o2:function(){return f},yT:function(){return o}});var r=e(3300),i=e(33166);const l=i.i.map(h=>`${h}-inverse`),c=["success","processing","error","default","warning"];function f(h){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat((0,r.Z)(l),(0,r.Z)(i.i)).includes(h):i.i.includes(h)}function o(h){return c.includes(h)}},47729:function(d,_,e){"use strict";e.d(_,{Z:function(){return c}});var r=e(99267),i=e(59301);function l(f,o,h){return typeof f=="boolean"?f:o===void 0?!!h:o!==!1&&o!==null}function c(f,o,h){let u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:i.createElement(r.Z,null),a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(!l(f,o,a))return[!1,null];const p=typeof o=="boolean"||o===void 0||o===null?u:o;return[!0,h?h(p):p]}},62892:function(d,_,e){"use strict";e.d(_,{m:function(){return h}});const r=()=>({height:0,opacity:0}),i=u=>{const{scrollHeight:a}=u;return{height:a,opacity:1}},l=u=>({height:u?u.offsetHeight:0}),c=(u,a)=>(a==null?void 0:a.deadline)===!0||a.propertyName==="height",f=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:r,onEnterStart:r,onAppearActive:i,onEnterActive:i,onLeaveStart:l,onLeaveActive:r,onAppearEnd:c,onEnterEnd:c,onLeaveEnd:c,motionDeadline:500}},o=null,h=(u,a,x)=>x!==void 0?x:`${u}-${a}`;_.Z=f},79676:function(d,_,e){"use strict";e.d(_,{Z:function(){return o}});var r=e(19447);function i(h,u,a,x){if(x===!1)return{adjustX:!1,adjustY:!1};const p=x&&typeof x=="object"?x:{},y={};switch(h){case"top":case"bottom":y.shiftX=u.dropdownArrowOffset*2+a;break;case"left":case"right":y.shiftY=u.dropdownArrowOffsetVertical*2+a;break}const m=Object.assign(Object.assign({},y),p);return m.shiftX||(m.adjustX=!0),m.shiftY||(m.adjustY=!0),m}const l={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},c={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},f=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function o(h){const{arrowWidth:u,autoAdjustOverflow:a,arrowPointAtCenter:x,offset:p,borderRadius:y,visibleFirst:m}=h,b=u/2,S={};return Object.keys(l).forEach(D=>{const R=x&&c[D]||l[D],A=Object.assign(Object.assign({},R),{offset:[0,0]});switch(S[D]=A,f.has(D)&&(A.autoArrow=!1),D){case"top":case"topLeft":case"topRight":A.offset[1]=-b-p;break;case"bottom":case"bottomLeft":case"bottomRight":A.offset[1]=b+p;break;case"left":case"leftTop":case"leftBottom":A.offset[0]=-b-p;break;case"right":case"rightTop":case"rightBottom":A.offset[0]=b+p;break}const P=(0,r.fS)({contentRadius:y,limitVerticalRadius:!0});if(x)switch(D){case"topLeft":case"bottomLeft":A.offset[0]=-P.dropdownArrowOffset-b;break;case"topRight":case"bottomRight":A.offset[0]=P.dropdownArrowOffset+b;break;case"leftTop":case"rightTop":A.offset[1]=-P.dropdownArrowOffset-b;break;case"leftBottom":case"rightBottom":A.offset[1]=P.dropdownArrowOffset+b;break}A.overflow=i(D,P,u,a),m&&(A.htmlRegion="visibleFirst")}),S}},92343:function(d,_,e){"use strict";var r;e.d(_,{M2:function(){return c},Tm:function(){return o},l$:function(){return l},wm:function(){return f}});var i=e(59301);const{isValidElement:l}=r||(r=e.t(i,2));function c(h){return h&&l(h)&&h.type===i.Fragment}function f(h,u,a){return l(h)?i.cloneElement(h,typeof a=="function"?a(h.props||{}):a):u}function o(h,u){return f(h,h,u)}},69507:function(d,_,e){"use strict";e.d(_,{ZP:function(){return o},c4:function(){return l},m9:function(){return h}});var r=e(59301),i=e(88088);const l=["xxl","xl","lg","md","sm","xs"],c=u=>({xs:`(max-width: ${u.screenXSMax}px)`,sm:`(min-width: ${u.screenSM}px)`,md:`(min-width: ${u.screenMD}px)`,lg:`(min-width: ${u.screenLG}px)`,xl:`(min-width: ${u.screenXL}px)`,xxl:`(min-width: ${u.screenXXL}px)`}),f=u=>{const a=u,x=[].concat(l).reverse();return x.forEach((p,y)=>{const m=p.toUpperCase(),b=`screen${m}Min`,S=`screen${m}`;if(!(a[b]<=a[S]))throw new Error(`${b}<=${S} fails : !(${a[b]}<=${a[S]})`);if(y{const x=new Map;let p=-1,y={};return{matchHandlers:{},dispatch(m){return y=m,x.forEach(b=>b(y)),x.size>=1},subscribe(m){return x.size||this.register(),p+=1,x.set(p,m),m(y),p},unsubscribe(m){x.delete(m),x.size||this.unregister()},unregister(){Object.keys(a).forEach(m=>{const b=a[m],S=this.matchHandlers[b];S==null||S.mql.removeListener(S==null?void 0:S.listener)}),x.clear()},register(){Object.keys(a).forEach(m=>{const b=a[m],S=R=>{let{matches:A}=R;this.dispatch(Object.assign(Object.assign({},y),{[m]:A}))},D=window.matchMedia(b);D.addListener(S),this.matchHandlers[b]={mql:D,listener:S},S(D)})},responsiveMap:a}},[u])}const h=(u,a)=>{if(a&&typeof a=="object")for(let x=0;x{const{componentCls:oe,colorPrimary:q}=ne;return{[oe]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${q})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${ne.motionEaseOutCirc}`,`opacity 2s ${ne.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow 0.3s ${ne.motionEaseInOut}`,`opacity 0.35s ${ne.motionEaseInOut}`].join(",")}}}}};var x=(0,u.Z)("Wave",ne=>[a(ne)]),p=e(70425),y=e(16089),m=e(77900),b=e(1585);function S(ne){const oe=(ne||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return oe&&oe[1]&&oe[2]&&oe[3]?!(oe[1]===oe[2]&&oe[2]===oe[3]):!0}function D(ne){return ne&&ne!=="#fff"&&ne!=="#ffffff"&&ne!=="rgb(255, 255, 255)"&&ne!=="rgba(255, 255, 255, 1)"&&S(ne)&&!/rgba\((?:\d*, ){3}0\)/.test(ne)&&ne!=="transparent"}function R(ne){const{borderTopColor:oe,borderColor:q,backgroundColor:J}=getComputedStyle(ne);return D(oe)?oe:D(q)?q:D(J)?J:null}var A=e(4572);function P(ne){return Number.isNaN(ne)?0:ne}const M=ne=>{const{className:oe,target:q,component:J}=ne,G=f.useRef(null),[se,ee]=f.useState(null),[Q,le]=f.useState([]),[$,j]=f.useState(0),[ie,me]=f.useState(0),[Te,Oe]=f.useState(0),[Ge,Ue]=f.useState(0),[Lt,yt]=f.useState(!1),Dt={left:$,top:ie,width:Te,height:Ge,borderRadius:Q.map(er=>`${er}px`).join(" ")};se&&(Dt["--wave-color"]=se);function $t(){const er=getComputedStyle(q);ee(R(q));const ze=er.position==="static",{borderLeftWidth:wt,borderTopWidth:Ft}=er;j(ze?q.offsetLeft:P(-parseFloat(wt))),me(ze?q.offsetTop:P(-parseFloat(Ft))),Oe(q.offsetWidth),Ue(q.offsetHeight);const{borderTopLeftRadius:nt,borderTopRightRadius:_t,borderBottomLeftRadius:ht,borderBottomRightRadius:Je}=er;le([nt,_t,Je,ht].map(Ne=>P(parseFloat(Ne))))}if(f.useEffect(()=>{if(q){const er=(0,y.Z)(()=>{$t(),yt(!0)});let ze;return typeof ResizeObserver!="undefined"&&(ze=new ResizeObserver($t),ze.observe(q)),()=>{y.Z.cancel(er),ze==null||ze.disconnect()}}},[]),!Lt)return null;const Mt=(J==="Checkbox"||J==="Radio")&&(q==null?void 0:q.classList.contains(A.A));return f.createElement(m.default,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(er,ze)=>{var wt;if(ze.deadline||ze.propertyName==="opacity"){const Ft=(wt=G.current)===null||wt===void 0?void 0:wt.parentElement;(0,b.v)(Ft).then(()=>{Ft==null||Ft.remove()})}return!1}},er=>{let{className:ze}=er;return f.createElement("div",{ref:G,className:i()(oe,{"wave-quick":Mt},ze),style:Dt})})};var N=(ne,oe)=>{var q;const{component:J}=oe;if(J==="Checkbox"&&!(!((q=ne.querySelector("input"))===null||q===void 0)&&q.checked))return;const G=document.createElement("div");G.style.position="absolute",G.style.left="0px",G.style.top="0px",ne==null||ne.insertBefore(G,ne==null?void 0:ne.firstChild),(0,b.s)(f.createElement(M,Object.assign({},oe,{target:ne})),G)},K=e(88088);function H(ne,oe,q){const{wave:J}=f.useContext(o.E_),[,G,se]=(0,K.Z)(),ee=(0,p.useEvent)($=>{const j=ne.current;if(J!=null&&J.disabled||!j)return;const ie=j.querySelector(`.${A.A}`)||j,{showEffect:me}=J||{};(me||N)(ie,{className:oe,token:G,component:q,event:$,hashId:se})}),Q=f.useRef();return $=>{y.Z.cancel(Q.current),Q.current=(0,y.Z)(()=>{ee($)})}}var ae=ne=>{const{children:oe,disabled:q,component:J}=ne,{getPrefixCls:G}=(0,f.useContext)(o.E_),se=(0,f.useRef)(null),ee=G("wave"),[,Q]=x(ee),le=H(se,i()(ee,Q),J);if(f.useEffect(()=>{const j=se.current;if(!j||j.nodeType!==1||q)return;const ie=me=>{!(0,c.Z)(me.target)||!j.getAttribute||j.getAttribute("disabled")||j.disabled||j.className.includes("disabled")||j.className.includes("-leave")||le(me)};return j.addEventListener("click",ie,!0),()=>{j.removeEventListener("click",ie,!0)}},[q]),!f.isValidElement(oe))return oe!=null?oe:null;const $=(0,l.Yr)(oe)?(0,l.sQ)(oe.ref,se):se;return(0,h.Tm)(oe,{ref:$})}},4572:function(d,_,e){"use strict";e.d(_,{A:function(){return r}});const r="ant-wave-target"},67797:function(d,_,e){"use strict";e.d(_,{n:function(){return Rt},Z:function(){return Ht}});var r=e(59301),i=e(92310),l=e.n(i),c=e(2738),f=e(8654),o=e(14088),h=e(36355),u=e(1684),a=e(19716),x=e(33234),p=e(88088),y=function(Ie,ce){var he={};for(var It in Ie)Object.prototype.hasOwnProperty.call(Ie,It)&&ce.indexOf(It)<0&&(he[It]=Ie[It]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ce=0,It=Object.getOwnPropertySymbols(Ie);Ce{const{getPrefixCls:ce,direction:he}=r.useContext(h.E_),{prefixCls:It,size:Ce,className:ft}=Ie,Gt=y(Ie,["prefixCls","size","className"]),Tt=ce("btn-group",It),[,,Pe]=(0,p.Z)();let At="";switch(Ce){case"large":At="lg";break;case"small":At="sm";break;case"middle":case void 0:break;default:}const Ze=l()(Tt,{[`${Tt}-${At}`]:At,[`${Tt}-rtl`]:he==="rtl"},ft,Pe);return r.createElement(m.Provider,{value:Ce},r.createElement("div",Object.assign({},Gt,{className:Ze})))},D=e(92343);const R=/^[\u4e00-\u9fa5]{2}$/,A=R.test.bind(R);function P(Ie){return typeof Ie=="string"}function M(Ie){return Ie==="text"||Ie==="link"}function B(Ie,ce){if(Ie==null)return;const he=ce?" ":"";return typeof Ie!="string"&&typeof Ie!="number"&&P(Ie.type)&&A(Ie.props.children)?(0,D.Tm)(Ie,{children:Ie.props.children.split("").join(he)}):P(Ie)?A(Ie)?r.createElement("span",null,Ie.split("").join(he)):r.createElement("span",null,Ie):(0,D.M2)(Ie)?r.createElement("span",null,Ie):Ie}function N(Ie,ce){let he=!1;const It=[];return r.Children.forEach(Ie,Ce=>{const ft=typeof Ce,Gt=ft==="string"||ft==="number";if(he&&Gt){const Tt=It.length-1,Pe=It[Tt];It[Tt]=`${Pe}${Ce}`}else It.push(Ce);he=Gt}),r.Children.map(It,Ce=>B(Ce,ce))}const K=null,H=null,W=null;var ne=(0,r.forwardRef)((Ie,ce)=>{const{className:he,style:It,children:Ce,prefixCls:ft}=Ie,Gt=l()(`${ft}-icon`,he);return r.createElement("span",{ref:ce,className:Gt,style:It},Ce)}),oe=e(58617),q=e(77900);const J=(0,r.forwardRef)((Ie,ce)=>{let{prefixCls:he,className:It,style:Ce,iconClassName:ft}=Ie;const Gt=l()(`${he}-loading-icon`,It);return r.createElement(ne,{prefixCls:he,className:Gt,style:Ce,ref:ce},r.createElement(oe.Z,{className:ft}))}),G=()=>({width:0,opacity:0,transform:"scale(0)"}),se=Ie=>({width:Ie.scrollWidth,opacity:1,transform:"scale(1)"});var Q=Ie=>{const{prefixCls:ce,loading:he,existIcon:It,className:Ce,style:ft}=Ie,Gt=!!he;return It?r.createElement(J,{prefixCls:ce,className:Ce,style:ft}):r.createElement(q.default,{visible:Gt,motionName:`${ce}-loading-icon-motion`,removeOnLeave:!0,onAppearStart:G,onAppearActive:se,onEnterStart:G,onEnterActive:se,onLeaveStart:se,onLeaveActive:G},(Tt,Pe)=>{let{className:At,style:Ze}=Tt;return r.createElement(J,{prefixCls:ce,className:Ce,style:Object.assign(Object.assign({},ft),Ze),ref:Pe,iconClassName:At})})},le=e(17313),$=e(37613),j=e(83116);const ie=(Ie,ce)=>({[`> span, > ${Ie}`]:{"&:not(:last-child)":{[`&, & > ${Ie}`]:{"&:not(:disabled)":{borderInlineEndColor:ce}}},"&:not(:first-child)":{[`&, & > ${Ie}`]:{"&:not(:disabled)":{borderInlineStartColor:ce}}}}});var Te=Ie=>{const{componentCls:ce,fontSize:he,lineWidth:It,groupBorderColor:Ce,colorErrorHover:ft}=Ie;return{[`${ce}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${ce}`]:{"&:not(:last-child)":{[`&, & > ${ce}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-It,[`&, & > ${ce}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[ce]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${ce}-icon-only`]:{fontSize:he}},ie(`${ce}-primary`,Ce),ie(`${ce}-danger`,ft)]}};const Oe=Ie=>{const{componentCls:ce,iconCls:he,fontWeight:It}=Ie;return{[ce]:{outline:"none",position:"relative",display:"inline-block",fontWeight:It,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${Ie.lineWidth}px ${Ie.lineType} transparent`,cursor:"pointer",transition:`all ${Ie.motionDurationMid} ${Ie.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:Ie.lineHeight,color:Ie.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${ce}-icon`]:{lineHeight:0},[`> ${he} + span, > span + ${he}`]:{marginInlineStart:Ie.marginXS},[`&:not(${ce}-icon-only) > ${ce}-icon`]:{[`&${ce}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:Ie.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},(0,le.Qy)(Ie)),[`&-icon-only${ce}-compact-item`]:{flex:"none"},[`&-compact-item${ce}-primary`]:{[`&:not([disabled]) + ${ce}-compact-item${ce}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-Ie.lineWidth,insetInlineStart:-Ie.lineWidth,display:"inline-block",width:Ie.lineWidth,height:`calc(100% + ${Ie.lineWidth*2}px)`,backgroundColor:Ie.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${ce}-primary`]:{[`&:not([disabled]) + ${ce}-compact-vertical-item${ce}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-Ie.lineWidth,insetInlineStart:-Ie.lineWidth,display:"inline-block",width:`calc(100% + ${Ie.lineWidth*2}px)`,height:Ie.lineWidth,backgroundColor:Ie.colorPrimaryHover,content:'""'}}}}}}},Ge=(Ie,ce,he)=>({[`&:not(:disabled):not(${Ie}-disabled)`]:{"&:hover":ce,"&:active":he}}),Ue=Ie=>({minWidth:Ie.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),Lt=Ie=>({borderRadius:Ie.controlHeight,paddingInlineStart:Ie.controlHeight/2,paddingInlineEnd:Ie.controlHeight/2}),yt=Ie=>({cursor:"not-allowed",borderColor:Ie.borderColorDisabled,color:Ie.colorTextDisabled,backgroundColor:Ie.colorBgContainerDisabled,boxShadow:"none"}),Dt=(Ie,ce,he,It,Ce,ft,Gt,Tt)=>({[`&${Ie}-background-ghost`]:Object.assign(Object.assign({color:he||void 0,backgroundColor:ce,borderColor:It||void 0,boxShadow:"none"},Ge(Ie,Object.assign({backgroundColor:ce},Gt),Object.assign({backgroundColor:ce},Tt))),{"&:disabled":{cursor:"not-allowed",color:Ce||void 0,borderColor:ft||void 0}})}),$t=Ie=>({[`&:disabled, &${Ie.componentCls}-disabled`]:Object.assign({},yt(Ie))}),Mt=Ie=>Object.assign({},$t(Ie)),er=Ie=>({[`&:disabled, &${Ie.componentCls}-disabled`]:{cursor:"not-allowed",color:Ie.colorTextDisabled}}),ze=Ie=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Mt(Ie)),{backgroundColor:Ie.defaultBg,borderColor:Ie.defaultBorderColor,color:Ie.defaultColor,boxShadow:Ie.defaultShadow}),Ge(Ie.componentCls,{color:Ie.colorPrimaryHover,borderColor:Ie.colorPrimaryHover},{color:Ie.colorPrimaryActive,borderColor:Ie.colorPrimaryActive})),Dt(Ie.componentCls,Ie.ghostBg,Ie.defaultGhostColor,Ie.defaultGhostBorderColor,Ie.colorTextDisabled,Ie.colorBorder)),{[`&${Ie.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:Ie.colorError,borderColor:Ie.colorError},Ge(Ie.componentCls,{color:Ie.colorErrorHover,borderColor:Ie.colorErrorBorderHover},{color:Ie.colorErrorActive,borderColor:Ie.colorErrorActive})),Dt(Ie.componentCls,Ie.ghostBg,Ie.colorError,Ie.colorError,Ie.colorTextDisabled,Ie.colorBorder)),$t(Ie))}),wt=Ie=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Mt(Ie)),{color:Ie.primaryColor,backgroundColor:Ie.colorPrimary,boxShadow:Ie.primaryShadow}),Ge(Ie.componentCls,{color:Ie.colorTextLightSolid,backgroundColor:Ie.colorPrimaryHover},{color:Ie.colorTextLightSolid,backgroundColor:Ie.colorPrimaryActive})),Dt(Ie.componentCls,Ie.ghostBg,Ie.colorPrimary,Ie.colorPrimary,Ie.colorTextDisabled,Ie.colorBorder,{color:Ie.colorPrimaryHover,borderColor:Ie.colorPrimaryHover},{color:Ie.colorPrimaryActive,borderColor:Ie.colorPrimaryActive})),{[`&${Ie.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({backgroundColor:Ie.colorError,boxShadow:Ie.dangerShadow,color:Ie.dangerColor},Ge(Ie.componentCls,{backgroundColor:Ie.colorErrorHover},{backgroundColor:Ie.colorErrorActive})),Dt(Ie.componentCls,Ie.ghostBg,Ie.colorError,Ie.colorError,Ie.colorTextDisabled,Ie.colorBorder,{color:Ie.colorErrorHover,borderColor:Ie.colorErrorHover},{color:Ie.colorErrorActive,borderColor:Ie.colorErrorActive})),$t(Ie))}),Ft=Ie=>Object.assign(Object.assign({},ze(Ie)),{borderStyle:"dashed"}),nt=Ie=>Object.assign(Object.assign(Object.assign({color:Ie.colorLink},Ge(Ie.componentCls,{color:Ie.colorLinkHover,backgroundColor:Ie.linkHoverBg},{color:Ie.colorLinkActive})),er(Ie)),{[`&${Ie.componentCls}-dangerous`]:Object.assign(Object.assign({color:Ie.colorError},Ge(Ie.componentCls,{color:Ie.colorErrorHover},{color:Ie.colorErrorActive})),er(Ie))}),_t=Ie=>Object.assign(Object.assign(Object.assign({},Ge(Ie.componentCls,{color:Ie.colorText,backgroundColor:Ie.textHoverBg},{color:Ie.colorText,backgroundColor:Ie.colorBgTextActive})),er(Ie)),{[`&${Ie.componentCls}-dangerous`]:Object.assign(Object.assign({color:Ie.colorError},er(Ie)),Ge(Ie.componentCls,{color:Ie.colorErrorHover,backgroundColor:Ie.colorErrorBg},{color:Ie.colorErrorHover,backgroundColor:Ie.colorErrorBg}))}),ht=Ie=>{const{componentCls:ce}=Ie;return{[`${ce}-default`]:ze(Ie),[`${ce}-primary`]:wt(Ie),[`${ce}-dashed`]:Ft(Ie),[`${ce}-link`]:nt(Ie),[`${ce}-text`]:_t(Ie),[`${ce}-ghost`]:Dt(Ie.componentCls,Ie.ghostBg,Ie.colorBgContainer,Ie.colorBgContainer,Ie.colorTextDisabled,Ie.colorBorder)}},Je=function(Ie){let ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:he,controlHeight:It,fontSize:Ce,lineHeight:ft,lineWidth:Gt,borderRadius:Tt,buttonPaddingHorizontal:Pe,iconCls:At}=Ie,Ze=Math.max(0,(It-Ce*ft)/2-Gt),we=`${he}-icon-only`;return[{[`${he}${ce}`]:{fontSize:Ce,height:It,padding:`${Ze}px ${Pe}px`,borderRadius:Tt,[`&${we}`]:{width:It,paddingInlineStart:0,paddingInlineEnd:0,[`&${he}-round`]:{width:"auto"},[At]:{fontSize:Ie.buttonIconOnlyFontSize}},[`&${he}-loading`]:{opacity:Ie.opacityLoading,cursor:"default"},[`${he}-loading-icon`]:{transition:`width ${Ie.motionDurationSlow} ${Ie.motionEaseInOut}, opacity ${Ie.motionDurationSlow} ${Ie.motionEaseInOut}`}}},{[`${he}${he}-circle${ce}`]:Ue(Ie)},{[`${he}${he}-round${ce}`]:Lt(Ie)}]},Ne=Ie=>Je((0,$.TS)(Ie,{fontSize:Ie.contentFontSize})),be=Ie=>{const ce=(0,$.TS)(Ie,{controlHeight:Ie.controlHeightSM,fontSize:Ie.contentFontSizeSM,padding:Ie.paddingXS,buttonPaddingHorizontal:Ie.paddingInlineSM,borderRadius:Ie.borderRadiusSM,buttonIconOnlyFontSize:Ie.onlyIconSizeSM});return Je(ce,`${Ie.componentCls}-sm`)},Le=Ie=>{const ce=(0,$.TS)(Ie,{controlHeight:Ie.controlHeightLG,fontSize:Ie.contentFontSizeLG,buttonPaddingHorizontal:Ie.paddingInlineLG,borderRadius:Ie.borderRadiusLG,buttonIconOnlyFontSize:Ie.onlyIconSizeLG});return Je(ce,`${Ie.componentCls}-lg`)},Ke=Ie=>{const{componentCls:ce}=Ie;return{[ce]:{[`&${ce}-block`]:{width:"100%"}}}},He=Ie=>{const{paddingInline:ce,onlyIconSize:he}=Ie;return(0,$.TS)(Ie,{buttonPaddingHorizontal:ce,buttonIconOnlyFontSize:he})},Xe=Ie=>({fontWeight:400,defaultShadow:`0 ${Ie.controlOutlineWidth}px 0 ${Ie.controlTmpOutline}`,primaryShadow:`0 ${Ie.controlOutlineWidth}px 0 ${Ie.controlOutline}`,dangerShadow:`0 ${Ie.controlOutlineWidth}px 0 ${Ie.colorErrorOutline}`,primaryColor:Ie.colorTextLightSolid,dangerColor:Ie.colorTextLightSolid,borderColorDisabled:Ie.colorBorder,defaultGhostColor:Ie.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:Ie.colorBgContainer,paddingInline:Ie.paddingContentHorizontal-Ie.lineWidth,paddingInlineLG:Ie.paddingContentHorizontal-Ie.lineWidth,paddingInlineSM:8-Ie.lineWidth,onlyIconSize:Ie.fontSizeLG,onlyIconSizeSM:Ie.fontSizeLG-2,onlyIconSizeLG:Ie.fontSizeLG+2,groupBorderColor:Ie.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:Ie.colorBgTextHover,defaultColor:Ie.colorText,defaultBg:Ie.colorBgContainer,defaultBorderColor:Ie.colorBorder,defaultBorderColorDisabled:Ie.colorBorder,contentFontSize:Ie.fontSize,contentFontSizeSM:Ie.fontSize,contentFontSizeLG:Ie.fontSizeLG});var pt=(0,j.Z)("Button",Ie=>{const ce=He(Ie);return[Oe(ce),be(ce),Ne(ce),Le(ce),Ke(ce),ht(ce),Te(ce)]},Xe),bt=e(74207);function tr(Ie,ce){return{[`&-item:not(${ce}-last-item)`]:{marginBottom:-Ie.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function Jt(Ie,ce){return{[`&-item:not(${ce}-first-item):not(${ce}-last-item)`]:{borderRadius:0},[`&-item${ce}-first-item:not(${ce}-last-item)`]:{[`&, &${Ie}-sm, &${Ie}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${ce}-last-item:not(${ce}-first-item)`]:{[`&, &${Ie}-sm, &${Ie}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function Me(Ie){const ce=`${Ie.componentCls}-compact-vertical`;return{[ce]:Object.assign(Object.assign({},tr(Ie,ce)),Jt(Ie.componentCls,ce))}}var rt=(0,j.b)(["Button","compact"],Ie=>{const ce=He(Ie);return[(0,bt.c)(ce),Me(ce)]},Xe),Vt=function(Ie,ce){var he={};for(var It in Ie)Object.prototype.hasOwnProperty.call(Ie,It)&&ce.indexOf(It)<0&&(he[It]=Ie[It]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ce=0,It=Object.getOwnPropertySymbols(Ie);Ce{var he,It;const{loading:Ce=!1,prefixCls:ft,type:Gt="default",danger:Tt,shape:Pe="default",size:At,styles:Ze,disabled:we,className:gt,rootClassName:kt,children:Fe,icon:Pr,ghost:Ct=!1,block:Yr=!1,htmlType:rn="button",classNames:Ir,style:Lr={}}=Ie,mr=Vt(Ie,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:Wr,autoInsertSpaceInButton:un,direction:hn,button:Yt}=(0,r.useContext)(h.E_),vt=Wr("btn",ft),[ot,ct]=pt(vt),Bt=(0,r.useContext)(u.Z),gr=we!=null?we:Bt,vr=(0,r.useContext)(m),tn=(0,r.useMemo)(()=>Zt(Ce),[Ce]),[Zr,wn]=(0,r.useState)(tn.loading),[Et,kr]=(0,r.useState)(!1),Rn=(0,r.createRef)(),qn=(0,f.sQ)(ce,Rn),zn=r.Children.count(Fe)===1&&!Pr&&!M(Gt);(0,r.useEffect)(()=>{let Ei=null;tn.delay>0?Ei=setTimeout(()=>{Ei=null,wn(!0)},tn.delay):wn(tn.loading);function fi(){Ei&&(clearTimeout(Ei),Ei=null)}return fi},[tn]),(0,r.useEffect)(()=>{if(!qn||!qn.current||un===!1)return;const Ei=qn.current.textContent;zn&&A(Ei)?Et||kr(!0):Et&&kr(!1)},[qn]);const ti=Ei=>{const{onClick:fi}=Ie;if(Zr||gr){Ei.preventDefault();return}fi==null||fi(Ei)},Pn=un!==!1,{compactSize:Ci,compactItemClassnames:ai}=(0,x.ri)(vt,hn),Ti={large:"lg",small:"sm",middle:void 0},ta=(0,a.Z)(Ei=>{var fi,Dn;return(Dn=(fi=At!=null?At:Ci)!==null&&fi!==void 0?fi:vr)!==null&&Dn!==void 0?Dn:Ei}),Zi=ta&&Ti[ta]||"",Aa=Zr?"loading":Pr,li=(0,c.Z)(mr,["navigate"]),fa=l()(vt,ct,{[`${vt}-${Pe}`]:Pe!=="default"&&Pe,[`${vt}-${Gt}`]:Gt,[`${vt}-${Zi}`]:Zi,[`${vt}-icon-only`]:!Fe&&Fe!==0&&!!Aa,[`${vt}-background-ghost`]:Ct&&!M(Gt),[`${vt}-loading`]:Zr,[`${vt}-two-chinese-chars`]:Et&&Pn&&!Zr,[`${vt}-block`]:Yr,[`${vt}-dangerous`]:!!Tt,[`${vt}-rtl`]:hn==="rtl"},ai,gt,kt,Yt==null?void 0:Yt.className),Pa=Object.assign(Object.assign({},Yt==null?void 0:Yt.style),Lr),St=l()(Ir==null?void 0:Ir.icon,(he=Yt==null?void 0:Yt.classNames)===null||he===void 0?void 0:he.icon),ga=Object.assign(Object.assign({},(Ze==null?void 0:Ze.icon)||{}),((It=Yt==null?void 0:Yt.styles)===null||It===void 0?void 0:It.icon)||{}),oa=Pr&&!Zr?r.createElement(ne,{prefixCls:vt,className:St,style:ga},Pr):r.createElement(Q,{existIcon:!!Pr,prefixCls:vt,loading:!!Zr}),yi=Fe||Fe===0?N(Fe,zn&&Pn):null;if(li.href!==void 0)return ot(r.createElement("a",Object.assign({},li,{className:l()(fa,{[`${vt}-disabled`]:gr}),style:Pa,onClick:ti,ref:qn}),oa,yi));let La=r.createElement("button",Object.assign({},mr,{type:rn,className:fa,style:Pa,onClick:ti,disabled:gr,ref:qn}),oa,yi,ai&&r.createElement(rt,{key:"compact",prefixCls:vt}));return M(Gt)||(La=r.createElement(o.Z,{component:"Button",disabled:!!Zr},La)),ot(La)},nr=(0,r.forwardRef)(Wt);nr.Group=S,nr.__ANT_BUTTON=!0;var Ht=nr},3113:function(d,_,e){"use strict";var r=e(67797);_.ZP=r.Z},43604:function(d,_,e){"use strict";var r=e(37028);_.Z=r.Z},1684:function(d,_,e){"use strict";e.d(_,{n:function(){return l}});var r=e(59301);const i=r.createContext(!1),l=c=>{let{children:f,disabled:o}=c;const h=r.useContext(i);return r.createElement(i.Provider,{value:o!=null?o:h},f)};_.Z=i},52946:function(d,_,e){"use strict";e.d(_,{q:function(){return l}});var r=e(59301);const i=r.createContext(void 0),l=c=>{let{children:f,size:o}=c;const h=r.useContext(i);return r.createElement(i.Provider,{value:o||h},f)};_.Z=i},36355:function(d,_,e){"use strict";e.d(_,{E_:function(){return c},oR:function(){return i}});var r=e(59301);const i="anticon",l=(o,h)=>h||(o?`ant-${o}`:"ant"),c=r.createContext({getPrefixCls:l,iconPrefixCls:i}),{Consumer:f}=c},19716:function(d,_,e){"use strict";var r=e(59301),i=e(52946);const l=c=>{const f=r.useContext(i.Z);return r.useMemo(()=>c?typeof c=="string"?c!=null?c:f:c instanceof Function?c(f):f:f,[c,f])};_.Z=l},92736:function(d,_,e){"use strict";e.d(_,{ZP:function(){return er},w6:function(){return Dt}});var r=e(36237),i=e(18418),l=e(80547),c=e(24434),f=e(59301),o=e(28726),h=e(98044),u=e(41887);const a="internalMark";var p=ze=>{const{locale:wt={},children:Ft,_ANT_MARK__:nt}=ze;f.useEffect(()=>(0,h.f)(wt&&wt.Modal),[wt]);const _t=f.useMemo(()=>Object.assign(Object.assign({},wt),{exist:!0}),[wt]);return f.createElement(u.Z.Provider,{value:_t},Ft)},y=e(31724),m=e(45246),b=e(34117),S=e(36355),D=e(30071),R=e(64993),A=e(47273),P=e(810);const M=`-ant-${Date.now()}-${Math.random()}`;function B(ze,wt){const Ft={},nt=(Je,Ne)=>{let be=Je.clone();return be=(Ne==null?void 0:Ne(be))||be,be.toRgbString()},_t=(Je,Ne)=>{const be=new R.C(Je),Le=(0,D.generate)(be.toRgbString());Ft[`${Ne}-color`]=nt(be),Ft[`${Ne}-color-disabled`]=Le[1],Ft[`${Ne}-color-hover`]=Le[4],Ft[`${Ne}-color-active`]=Le[6],Ft[`${Ne}-color-outline`]=be.clone().setAlpha(.2).toRgbString(),Ft[`${Ne}-color-deprecated-bg`]=Le[0],Ft[`${Ne}-color-deprecated-border`]=Le[2]};if(wt.primaryColor){_t(wt.primaryColor,"primary");const Je=new R.C(wt.primaryColor),Ne=(0,D.generate)(Je.toRgbString());Ne.forEach((Le,Ke)=>{Ft[`primary-${Ke+1}`]=Le}),Ft["primary-color-deprecated-l-35"]=nt(Je,Le=>Le.lighten(35)),Ft["primary-color-deprecated-l-20"]=nt(Je,Le=>Le.lighten(20)),Ft["primary-color-deprecated-t-20"]=nt(Je,Le=>Le.tint(20)),Ft["primary-color-deprecated-t-50"]=nt(Je,Le=>Le.tint(50)),Ft["primary-color-deprecated-f-12"]=nt(Je,Le=>Le.setAlpha(Le.getAlpha()*.12));const be=new R.C(Ne[0]);Ft["primary-color-active-deprecated-f-30"]=nt(be,Le=>Le.setAlpha(Le.getAlpha()*.3)),Ft["primary-color-active-deprecated-d-02"]=nt(be,Le=>Le.darken(2))}return wt.successColor&&_t(wt.successColor,"success"),wt.warningColor&&_t(wt.warningColor,"warning"),wt.errorColor&&_t(wt.errorColor,"error"),wt.infoColor&&_t(wt.infoColor,"info"),` :root { ${Object.keys(Ft).map(Je=>`--${ze}-${Je}: ${Ft[Je]};`).join(`