From c2f5b6ab0cf531081fa84c20335a3d33d464b0e9 Mon Sep 17 00:00:00 2001 From: autosubmit Date: Thu, 4 Sep 2025 19:48:11 +0800 Subject: [PATCH] Auto Submit --- umi.8073e353.js => umi.aa80ca9d.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename umi.8073e353.js => umi.aa80ca9d.js (98%) diff --git a/umi.8073e353.js b/umi.aa80ca9d.js similarity index 98% rename from umi.8073e353.js rename to umi.aa80ca9d.js index 4115f46c63..4288962847 100644 --- a/umi.8073e353.js +++ b/umi.aa80ca9d.js @@ -103,7 +103,7 @@ http://j.mp/37Fkd5Q `)?i.slice(0,-2)+"\x1B[41m\x1B[37m\u21B5\x1B[0m":i.endsWith(` `)||i.endsWith("\r")?i.slice(0,-1)+"\x1B[41m\x1B[37m\u21B5\x1B[0m":i):"",StatusTags=i=>{const f={\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 i.data&&i.data.map(function(e,t){return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{key:t,className:f[e]&&f[e].class},e)})},formatHomeWorkStatusToName=i=>({[-1]:"\u91CD\u505A\u4E2D",0:"\u672A\u5F00\u542F",1:"\u672A\u901A\u5173",2:"\u6309\u65F6\u901A\u5173"})[i]||"\u8FDF\u4EA4\u901A\u5173",HomeWorkListStatus=i=>{var f,e;const t={[-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:(f=t==null?void 0:t[i.status])==null?void 0:f.class},(e=t==null?void 0:t[i.status])==null?void 0:e.name)},HomeWorkShixunListStatus=i=>{var f,e;const t={[-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:(f=t==null?void 0:t[i.status])==null?void 0:f.class},(e=t==null?void 0:t[i.status])==null?void 0:e.name)},HomeWorkDetailStatus=i=>{var f,e;const t={[-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:(f=t==null?void 0:t[i.status])==null?void 0:f.color,borderRadius:"20px",width:"65px",height:"18px",justifyContent:"center",display:"inline-flex",lineHeight:"18px"}},(e=t==null?void 0:t[i.status])==null?void 0:e.name)},HomeWorkShixunDetailStatus=i=>{var f,e;const t={[-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:(f=t==null?void 0:t[i.status])==null?void 0:f.color,borderRadius:"20px",padding:"0 8px",height:"18px",justifyContent:"center",display:"inline-flex",lineHeight:"18px"}},(e=t==null?void 0:t[i.status])==null?void 0:e.name)},HomeWorkCommonDetailStatus=i=>{var f,e;const t={[-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:(f=t==null?void 0:t[i.status])==null?void 0:f.color,borderRadius:"20px",padding:"0 8px",height:"18px",justifyContent:"center",display:"inline-flex",lineHeight:"18px"}},(e=t==null?void 0:t[i.status])==null?void 0:e.name)},StatusGraduationProjectTags=i=>{const{status:f}=i,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[f].class},e[f].name)}catch(t){console.log("utils.StatusGraduationProjectTags",i.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=i=>{let f={\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"},\u672A\u5F00\u8BFE:{class:"tag-style bg-c5d6ff ml10soft"},\u4E0A\u8BFE\u4E2D:{class:"tag-style bg-blue ml10soft"},\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"}};i.temporary&&(f=__spreadValues(__spreadValues({},f),e));const t=[];i.is_random&&t.push(react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"tag-style bg-blue ml10"},"\u968F\u673A"));try{i.status&&i.status.map((r,n)=>{t.push(react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:(i==null?void 0:i.style)||[],key:n,className:f[r]&&f[r].class},r))})}catch(r){console.log("utils.status.tag:",r,i.status)}return t},exerciseTips=(i,f)=>{if(i===5||f)return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:{backgroundColor:"#f59a23"},className:"tag-style ml5"},"\u96C6\u4E2D\u9605\u5377");if(i===1)return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:{backgroundColor:"#B8B8B8"},className:"tag-style ml5"},"\u672A\u5F00\u59CB");if(i===2)return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:{backgroundColor:"#007AFF"},className:"tag-style ml5"},"\u8003\u8BD5\u4E2D");if(i===3)return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:{backgroundColor:"#FC2D6B"},className:"tag-style ml5"},"\u5DF2\u622A\u6B62");if(i===-1)return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"export ml5"},"\u5BFC\u5165")},WorkStatus=i=>{var f,e;const t={[-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:(f=t[i.status])==null?void 0:f.class},(e=t[i.status])==null?void 0:e.name)},CommonWorkStatus=i=>{var f,e;const t={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${i!=null&&i.lineBreak?` `:""}\uFF08\u6559\u5E08\u63D0\u4EA4\uFF09`,class:"c-green"},5:{name:`\u672A\u63D0\u4EA4${i!=null&&i.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:(f=t[i.status])==null?void 0:f.class},(e=t[i.status])==null?void 0:e.name)},levelStatus={0:{name:"\u57FA\u7840\u7248",icon:__webpack_require__(89718),img:__webpack_require__(79390),bg:__webpack_require__(51466),class:"sq",limit_capacity:50},1:{name:"\u6807\u51C6\u7248",icon:__webpack_require__(70689),img:__webpack_require__(65985),bg:__webpack_require__(1938),class:"jc",limit_capacity:500},2:{name:"\u4E13\u4E1A\u7248",icon:__webpack_require__(44649),img:__webpack_require__(34591),bg:__webpack_require__(48742),class:"gj",limit_capacity:1024}},timego=i=>{i=new Date(i).getTime();let f=1e3*60,e=f*60,t=e*24,r="",a=new Date().getTime()-i;if(a<0)return console.log("\u65F6\u95F4\u4E0D\u5BF9\u52B2,\u670D\u52A1\u5668\u521B\u5EFA\u65F6\u95F4\u4E0E\u5F53\u524D\u65F6\u95F4\u4E0D\u540C\u6B65"),r="\u521A\u521A";let s=parseInt(a/t,10),u=parseInt(a/e,10),c=parseInt(a/f,10);return s>30?r=""+timeformat(i,"yyyy-MM-dd"):s>1?r=""+s+"\u5929\u524D":s==1?r="\u6628\u5929":u>=1?r=""+u+"\u5C0F\u65F6\u524D":c>=5?r=""+c+"\u5206\u949F\u524D":r="\u521A\u521A",r};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=(i,f)=>{typeof i=="string"&&(i.indexOf("T")>=0&&(i=i.replace("T"," ")),i=new Date(Date.parse(i.replace(/-/g,"/")))),i=new Date(i);let e={"M+":i.getMonth()+1,"d+":i.getDate(),"h+":i.getHours(),"m+":i.getMinutes(),"s+":i.getSeconds(),"q+":Math.floor((i.getMonth()+3)/3),S:i.getMilliseconds()},t=[["\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(f)&&(f=f.replace(RegExp.$1,(i.getFullYear()+"").substr(4-RegExp.$1.length))),/(w+)/.test(f)&&(f=f.replace(RegExp.$1,t[RegExp.$1.length-1][i.getDay()]));for(let r in e)new RegExp("("+r+")").test(f)&&(f=f.replace(RegExp.$1,RegExp.$1.length==1?e[r]:("00"+e[r]).substr((""+e[r]).length)));return f},toTimeFormat=i=>{if(!i||i<0)return"0\u79D2";console.log("time:",i);let f=60,e=f*60,t=e*24,r=i/t,n=i/e,a=i/f,s=i%60;return r>=1?parseInt(r.toString())+"\u5929"+Math.floor(n%24)+"\u65F6"+Math.floor(a%60)+"\u5206"+Math.floor(i%60)+"\u79D2":n>1?parseInt(n.toString())+"\u65F6"+Math.floor(a%60)+"\u5206"+Math.floor(i%60)+"\u79D2":a>=1?parseInt(a.toString())+"\u5206"+Math.floor(i%60)+"\u79D2":Math.ceil(i)+"\u79D2"},validateLength=(i="",f=100)=>{let e=0;if(i){e=i.length;for(let t=0;t=55296&&r<=56319&&(e--,t++)}}return e<=f};function buildTree(i,f){const e={};let t=null;return i.forEach(r=>{e[r.properties.uuid]=__spreadProps(__spreadValues({},r),{children:[]})}),f.forEach(r=>{const n=e[r.startNodeUuid],a=e[r.endNodeUuid];n&&a&&n.children.push(a)}),i.forEach(r=>{!f.some(a=>a.endNodeUuid===r.properties.uuid)&&(t=e[r.properties.uuid])}),t}const handleValidatorNickName=(i,f,e)=>{if(f){let t=/[`~!@#$%^&*()\-+=<>?:"{}|,.\/;'\\[\]~!@#¥%……&*()——\-+={}|《》?:“”【】、;‘’,。、]/im;const n=/[\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(f),a=t.test(f);(n===!0||a===!0||f.length<2||f.length>=21)&&e("2-20\u4F4D\u4E2D\u82F1\u6587\u3001\u6570\u5B57\u53CA\u4E0B\u5212\u7EBF")}e()},handleValidatorName=(i,f,e)=>{if(f){let t=/[`~!@#$%^&()_\-+=<>?:"{}|,.\/;'\\[\]~!@#¥%……&()——\-+={}|《》?:“”【】、;‘’,。、]/im;const n=/[\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(f),a=t.test(f);(n===!0||a===!0||f.length<2||f.length>=21)&&e("2-20\u4F4D\u4E2D\u82F1\u6587\u3001\u6570\u5B57")}e()},getHiddenName=i=>{if(!i)return"";let f=i.length-1,e="";for(var t=0;t{const e=new FileReader;e.addEventListener("load",()=>f(e.result)),e.readAsDataURL(i)},getFileContentAndUrl=i=>new Promise((f,e)=>{var t=new FileReader;t.onload=function(){try{const r=window.URL.createObjectURL(i);f({text:this.result,link:r})}catch(r){antd__WEBPACK_IMPORTED_MODULE_12__.ZP.warning("\u5F53\u524D\u6587\u4EF6\u65E0\u6CD5\u8BFB\u53D6\u5185\u5BB9"),e("\u5F53\u524D\u6587\u4EF6\u65E0\u6CD5\u8BFB\u53D6\u5185\u5BB9")}},t.readAsText(i)});function setmiyah(i){return md5__WEBPACK_IMPORTED_MODULE_6___default()("79e33abd4b6588941ab7622aed1e67e8"+i)}const getCookie=i=>{var f,e=RegExp("(^| )"+i+"=([^;]+)(;|$)");return(f=document.cookie.match(e))?decodeURIComponent(f[2]):null};function setCookie(i,f,e){var t=new Date;t.setTime(t.getTime()+e*24*60*60*1e3);var r="expires="+t.toUTCString();document.cookie=i+"="+f+"; "+r+`;domain=${document.domain.indexOf("educoder.net")>-1?".educoder.net":document.domain};path=/;SameSite=None;secure`}const delCookie=i=>{document.cookie=i+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT;path=/;"},clearAllCookies=()=>{for(var i=document.cookie.split(";"),f=0;f-1?e.substr(0,t):e;document.cookie=r+"=;expires=Thu, 01 Jan 1970 00:00:00 GMT"}};function downLoadLink(i,f){let e=new XMLHttpRequest;e.open("GET",f,!0),e.responseType="blob",e.onload=function(){if(e.status===200){const t=e.response,r=document.createElement("a"),n=URL.createObjectURL(t);r.href=n,i&&(r.title=i,r.download=i),document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(n)}},e.onerror=function(){console.error("File download failed!")},e.send()}function getFirstLevelDomain(){var i=window.location.hostname,f=i.split(".").reverse();return f.length>2?[f[1],f[0]].join("."):i}function getBlob(i){return new Promise(f=>{const e=new window.XMLHttpRequest;(i.indexOf(getFirstLevelDomain())>-1||location.hostname==="localhost"&&i.indexOf("/api/")>-1)&&(e.withCredentials=!0),e.open("GET",i,!0),e.responseType="blob",e.onload=()=>{e.status===200&&f(e.response)},e.send()})}function saveAs(i,f){if(window.navigator.msSaveOrOpenBlob)window.navigator.msSaveBlob(i,f);else{const e=document.createElement("a"),t=document.querySelector("body");e.href=window.URL.createObjectURL(i),e.download=f,e.style.display="none",t.appendChild(e),e.click(),t.removeChild(e),window.URL.revokeObjectURL(e.href)}}function download(i,f){getBlob(i).then(e=>{saveAs(e,f)})}function downLoadFileIframe(i,f){return new Promise((e,t)=>{var r=f,n=document.createElement("iframe"),a;document.body.appendChild(n),n.src=r,n.style.display="none",n.addEventListener("load",function(){setTimeout(()=>{document.body.removeChild(n)},1e3)},!0),a=setInterval(()=>{getCookie("fileDownload")&&(delCookie("fileDownload"),clearInterval(a),document.body.removeChild(n),e())},1e3)})}function downLoadFile(i,f){downLoadLink(i,f)}const setUrlQuery=i=>{let{url:f,query:e}=i;if(!f)return"";if(e){let t=[];for(const r in e)e.hasOwnProperty(r)&&!isUnOrNull(e[r])&&(typeof e[r]=="object"?e[r].map(n=>{t.push(`${r}[]=${n}`)}):t.push(`${r}=${e[r]}`));f.indexOf("?")!==-1?f=`${f}&${t.join("&")}`:f=`${f}?${t.join("&")}`,console.log("url1111",f)}return f};function isPc(){let i=navigator.userAgent,f=["Android","iPhone","SymbianOS","Windows Phone","iPad","iPod"],e=!0;for(var t=0;t0){e=!1;break}return e}function isChrome(){let i=navigator.userAgent;return["Chrome"].some(e=>i.indexOf(e)>-1)}function isFirefox(){let i=navigator.userAgent;return["Firefox"].some(e=>i.indexOf(e)>-1)}function isChromeOrFirefox(){let i=navigator.userAgent;return["Chrome","Firefox"].some(e=>i.indexOf(e)>-1)}const formatMoney=(i="")=>{var f;return(f=i==null?void 0:i.toString())==null?void 0:f.replace(/\B(?=(\d{3})+(?!\d))/g,",")},openNewWindow=i=>{let f=document.createElement("a");f.target="_blank",document.body.appendChild(f),f.href=i;let e=document.createEvent("MouseEvents");e.initEvent("click",!1,!1),f.dispatchEvent(e),document.body.removeChild(f)},openNewWindows=i=>{let f=document.createElement("a");document.body.appendChild(f),f.href=i;let e=document.createEvent("MouseEvents");e.initEvent("click",!1,!1),f.dispatchEvent(e),document.body.removeChild(f)},formatTextMiddleIntercept=(i="")=>i.length<=6?i:`${i.substring(0,3)}...${i.substring(i.length-3,i.length)}`,HalfPastOne=()=>{let i=new Date().getHours(),f=new Date().getMinutes();return f>=30?(i++,f="00"):f="30",i+":"+f},DayHalfPastOne=(i="-")=>{let f=new Date().getHours(),e=new Date().getMinutes();return e>=30?(f++,e="00"):e="30",new Date().toLocaleDateString().replace(/\//g,i)+" "+f+":"+e};var Type=(i=>(i.Number="Number",i.String="String",i.Boolean="Boolean",i.Object="Object",i.Array="Array",i.Function="Function",i))(Type||{});const type=i=>{const f=Object.prototype.toString.call(i);return f.substring(8,f.length-1)},isEmpty=i=>type(i)==="Array"?i.length===0:type(i)==="Object"?Object.keys(i).length===0:!i,rangeNumber=(i,f)=>{const e=[];for(let t=i;t{let e=f/2-2,t=f/2+3;return i.length>f?i.substr(0,e)+"..."+i.substr(t,f):i},formatRate=i=>i>4.5?5:i>4&&i<=4.5?4.5:i>3.5&&i<=4?4:i>3&&i<=3.5?3.5:i>2.5&&i<=3?3:i>2&&i<=2.5?2.5:i>1.5&&i<=2?2:i>1&&i<=1.5?1.5:i>.5&&i<=1?1:i>0&&i<=.5?.5:0,isUnOrNull=i=>i==null;function getUrlToken(i,f){const e=new RegExp(`(^|&)${i}=([^&]*)(&|$)`,"i"),t=f.substr(1).match(e);return t!=null?decodeURIComponent(t[2]):null}const getMessagesUrl=i=>{var f;if(i.link_url)return window.open(i.link_url);switch(i==null?void 0:i.container_type){case"TeacherChangeUserInfo":return window.open("/account/profile");case"TeacherResetUserPassword":return window.open("/account/secure");case"ApplyUserAuthentication":return window.open("/account/certification")}switch(i.container_type){case"ApplyUserAuthentication":if(i.tiding_type==="Apply"){if(i.auth_type===1)return window.open("/admins/identity_authentications");if(i.auth_type===2)return window.open("/admins/professional_authentications")}return i.tiding_type==="System"?window.open("/account/certification"):i.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 i.tiding_type==="Apply"?window.open("/admins/department_applies"):i.tiding_type==="System"?window.open("/account/profile"):void 0;case"ApplyAddSchools":return i.tiding_type==="Apply"?window.open("/admins/unit_applies"):i.tiding_type==="System"?window.open("/account/profile"):void 0;case"ApplyAction":switch(i.parent_container_type){case"ApplyShixun":if(i.tiding_type==="Apply")return window.open("/admins/shixun_authorizations");if(i.tiding_type==="System")return window.open(`/shixuns/${i.identifier}/challenges`);case"ApplySubject":if(i.tiding_type==="Apply")return window.open("/admins/subject_authorizations");if(i.tiding_type==="System")return window.open(`/paths/${i.parent_container_id}`);case"TrialAuthorization":if(i.tiding_type==="Apply")return window.open("/managements/trial_authorization");if(i.tiding_type==="System")return window.open("/account/profile")}return;case"JoinCourse":return window.open(`/classrooms/${i.belong_container_id}/teachers`);case"StudentJoinCourse":if(i.tiding_type==="Apply")return window.open(`/classrooms/${i.belong_container_id}/teachers`);if(i.tiding_type==="System")return window.open(`/classrooms/${i.belong_container_id}/students`);case"DealCourse":return window.open(`/classrooms/${i.belong_container_id}/shixun_homework/`);case"TeacherJoinCourse":return window.open(`/classrooms/${i.belong_container_id}/shixun_homework/`);case"Course":return i.tiding_type==="Delete"?void 0:window.open(`/classrooms/${i.belong_container_id}/shixun_homework/`);case"ArchiveCourse":return window.open(`/classrooms/${i.belong_container_id}/shixun_homework/`);case"Shixun":return window.open(`/shixuns/${i.identifier}/challenges`);case"Subject":return window.open(`/paths/${i.container_id}`);case"JournalsForMessage":switch(i.parent_container_type){case"Principal":return"";case"HomeworkCommon":return i.homework_type==="normal"?window.open(`/classrooms/${i.belong_container_id}/common_homework/${i.parent_container_id}/question`):i.homework_type==="group"?window.open(`/classrooms/${i.belong_container_id}/group_homework/${i.parent_container_id}/question`):i.homework_type==="practice"?window.open(`/classrooms/${i.belong_container_id}/shixun_homework/${i.parent_container_id}/detail?tabs=1`):"";case"GraduationTopic":return window.open(`/classrooms/${i.belong_container_id}/graduation_topics/${i.parent_container_id}/detail`);case"StudentWorksScore":return window.open(i.link_url)}case"Memo":return window.open(`/forums/${i.parent_container_id}`);case"Message":return window.open("/forums/");case"Watcher":return window.open(`/users/${i.trigger_user.login}/classrooms`);case"PraiseTread":return"";case"Grade":return"";case"JoinProject":return window.open(_env__WEBPACK_IMPORTED_MODULE_7__.Z.FORGE+i.project_url);case"ReporterJoinProject":return window.open(_env__WEBPACK_IMPORTED_MODULE_7__.Z.FORGE+i.project_url);case"DealProject":return window.open(_env__WEBPACK_IMPORTED_MODULE_7__.Z.FORGE+i.project_url);case"ManagerJoinProject":return window.open(_env__WEBPACK_IMPORTED_MODULE_7__.Z.FORGE+i.project_url);case"Poll":switch(i.parent_container_type){case"CommitPoll":return window.open(` /classrooms/${i.belong_container_id}/poll/${i.container_id}/detail`);default:return window.open(` /classrooms/${i.belong_container_id}/poll/${i.container_id}/detail`)}case"Exercise":switch(i.parent_container_type){case"CommitExercise":return window.open(` /classrooms/${i.belong_container_id}/exercise/${i.container_id}/detail?tab=0`);case"ExerciseScore":return window.open(` /classrooms/${i.belong_container_id}/exercise/${i.container_id}/detail?tab=0`);default:return window.open(`/classrooms/${i.belong_container_id}/exercise/${i.container_id}/detail?tab=0`)}case"StudentGraduationTopic":return window.open(`/classrooms/${i.belong_container_id}/graduation_topics/${i.parent_container_id}/detail`);case"DealStudentTopicSelect":return window.open(`/classrooms/${i.belong_container_id}/graduation_topics/${i.parent_container_id}/detail`);case"GraduationTask":return window.open(`/classrooms/${i.belong_container_id}/graduation_tasks/${i.container_id}`);case"GraduationWork":return window.open(`/classrooms/${i.belong_container_id}/graduation_tasks/${i.container_id}`);case"GraduationWorkScore":return window.open(`/classrooms/${i.belong_container_id}/graduation_tasks/${i.parent_container_id}`);case"HomeworkCommon":switch(i.parent_container_type){case"AnonymousCommentFail":if(i.homework_type==="normal")return window.open(`/classrooms/${i.belong_container_id}/common_homework/${i.parent_container_id}/detail`);if(i.homework_type==="group")return window.open(`/classrooms/${i.belong_container_id}/group_homework/${i.parent_container_id}/detail`);if(i.homework_type==="practice")return window.open(`/classrooms/${i.belong_container_id}/shixun_homework/${i.parent_container_id}/detail?tabs=0`);case"HomeworkPublish":if(i.homework_type==="normal")return window.open(`/classrooms/${i.belong_container_id}/common_homework/${i.parent_container_id}/detail`);if(i.homework_type==="group")return window.open(`/classrooms/${i.belong_container_id}/group_homework/${i.parent_container_id}/detail`);if(i.homework_type==="practice")return window.open(`/classrooms/${i.belong_container_id}/shixun_homework/${i.parent_container_id}/detail?tabs=0`);case"AnonymousAppeal":if(i.homework_type==="normal")return window.open(`/classrooms/${i.belong_container_id}/common_homework/${i.parent_container_id}/detail`);if(i.homework_type==="group")return window.open(`/classrooms/${i.belong_container_id}/group_homework/${i.parent_container_id}/detail`);if(i.homework_type==="practice")return window.open(`/classrooms/${i.belong_container_id}/shixun_homework/${i.parent_container_id}/detail?tabs=0`);default:if(i.homework_type==="normal")return window.open(`/classrooms/${i.belong_container_id}/common_homework/${i.parent_container_id}/detail`);if(i.homework_type==="group")return window.open(`/classrooms/${i.belong_container_id}/group_homework/${i.parent_container_id}/detail`);if(i.homework_type==="practice")return window.open(`/classrooms/${i.belong_container_id}/shixun_homework/${i.parent_container_id}/detail?tabs=0`)}case"StudentWork":if(i.homework_type==="normal")return window.open(`/classrooms/${i.belong_container_id}/common_homework/${i.parent_container_id}/review/${i.container_id}`);if(i.homework_type==="group")return window.open(`/classrooms/${i.belong_container_id}/group_homework/${i.parent_container_id}/review/${i.container_id}`);if(i.homework_type==="practice")return window.open(`/classrooms/${i.belong_container_id}/shixun_homework/${i.parent_container_id}/detail`);case"StudentWorksScore":return window.open(`/classrooms/${i.belong_container_id}/common_homework/${i.trigger_user.id}/review/${i.parent_container_id}`);case"StudentWorksScoresAppeal":return window.open(`/classrooms/${i.belong_container_id}/common_homework/${i.trigger_user.id}/review/${i.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/${i.parent_container_id}`);case"Issue":return window.open(`/issues/${i.container_id}`);case"PullRequest":return window.open(_env__WEBPACK_IMPORTED_MODULE_7__.Z.FORGE+i.project_url);case"Department":return window.open("/account/profile");case"Library":if(i.tiding_type==="Apply")return window.open("/admins/library_applies");if(i.tiding_type==="System")return window.open(`/moop_cases/${i.container_id}`);case"ProjectPackage":return i.tiding_type==="Destroyed"||i.tiding_type==="Destroyed_end"?void 0:i.tiding_type==="Apply"?window.open("/admins/project_package_applies"):window.open(`/crowdsourcing/${i.container_id}`);case"Discuss":return i.parent_container_type==="Hack"&&i.extra?window.open(`/myproblems/${i.extra}/comment`):i.extra==="ai_reply"&&i.task_identifier?window.open(`/tasks/${i.task_identifier}?extra=extra`):window.open(`/shixuns/${i.identifier}/shixun_discuss`);case"Video":return i.tiding_type==="Apply"?window.open("/admins/video_applies"):i.tiding_type==="System"?window.open(`/users/${(f=(0,_utils_authority__WEBPACK_IMPORTED_MODULE_1__.eY)())==null?void 0:f.login}/videos`):"";case"PublicCourseStart":return window.open(`/classrooms/${i.container_id}/informs`);case"SubjectStartCourse":return window.open(`/paths/${i.container_id}`);case"ResubmitStudentWork":if(i.homework_type==="normal")return window.open(`/classrooms/${i.belong_container_id}/common_homework/${i.parent_container_id}/${i.container_id}/appraise`);if(i.homework_type==="group")return window.open(`/classrooms/${i.belong_container_id}/group_homework/${i.parent_container_id}/${i.container_id}/appraise`);case"AdjustScore":if(i.homework_type==="normal")return window.open(`/classrooms/${i.belong_container_id}/common_homework/${i.parent_container_id}`);if(i.homework_type==="group")return window.open(`/classrooms/${i.belong_container_id}/group_homework/${i.parent_container_id}`);case"LiveLink":return window.open(`/classrooms/${i.belong_container_id}/course_videos?open=live`);case"Hack":if(i.extra&&i.parent_container_type!=="HackDelete")return window.open(`/problems/${i.extra}/edit`);default:return}},checkLocalOrPublicIp=(i,f)=>__async(void 0,null,function*(){let e="",t;return new Promise((r,n)=>__async(void 0,null,function*(){if(i.ip_limit!=="no"||i.ip_bind_type)try{e=yield(0,_components_Exercise_ip__WEBPACK_IMPORTED_MODULE_2__.y)({ip_limit:i==null?void 0:i.ip_limit,ip_bind:i==null?void 0:i.ip_bind_type}),console.log(e,44)}catch(s){n(void 0)}const a=yield(0,_service_exercise__WEBPACK_IMPORTED_MODULE_3__.Cl)({id:i.exerciseId,ip:e});if(a.status===0)r(a);else if(a.status===-5){(0,umi__WEBPACK_IMPORTED_MODULE_5__.getDvaApp)()._store.dispatch({type:"exercise/setActionTabs",payload:{key:"student-unlock",exerciseParams:{errorMessage:a==null?void 0:a.message,exercise_user_id:i==null?void 0:i.exercise_user_id,id:i.exerciseId,unlockClose:i.unlockClose}}});return}else r(a);if(i.errmsgHide||f)return!0;if(a.status===-1)return t=antd__WEBPACK_IMPORTED_MODULE_13__.default.info({title:react__WEBPACK_IMPORTED_MODULE_0__.createElement(antd__WEBPACK_IMPORTED_MODULE_14__.Z,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(antd__WEBPACK_IMPORTED_MODULE_15__.Z,{flex:"1"},"\u63D0\u793A"),react__WEBPACK_IMPORTED_MODULE_0__.createElement(antd__WEBPACK_IMPORTED_MODULE_15__.Z,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"iconfont icon-yiguanbi1 current c-grey-c",onClick:()=>t.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(a.status===-2)return t=antd__WEBPACK_IMPORTED_MODULE_13__.default.info({title:react__WEBPACK_IMPORTED_MODULE_0__.createElement(antd__WEBPACK_IMPORTED_MODULE_14__.Z,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(antd__WEBPACK_IMPORTED_MODULE_15__.Z,{flex:"1"},"\u63D0\u793A"),react__WEBPACK_IMPORTED_MODULE_0__.createElement(antd__WEBPACK_IMPORTED_MODULE_15__.Z,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"iconfont icon-yiguanbi1 current c-grey-c",onClick:()=>t.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"},a.ip),"\u8BF7\u4F7F\u7528\u8BE5IP\u5730\u5740\u8FDB\u5165\u8003\u8BD5\u3002"),okText:"\u6211\u77E5\u9053\u4E86"}),!1}))}),checkDisabledExam=i=>new Promise((f,e)=>__async(void 0,null,function*(){const t=yield(0,_service_exercise__WEBPACK_IMPORTED_MODULE_3__.Zg)({id:i==null?void 0:i.exerciseId,coursesId:i==null?void 0:i.coursesId});if((t==null?void 0:t.status)===0){f("");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=i=>__async(void 0,null,function*(){var f,e,t;sessionStorage.removeItem("studentunlock");let r,n;if((location.pathname.indexOf("/classrooms/4RW9CYHY")>-1||location.pathname.indexOf("/classrooms/qb4ft587")>-1||location.pathname.indexOf("/classrooms/c5q9bsp2")>-1)&&!isPc()){antd__WEBPACK_IMPORTED_MODULE_13__.default.info({content:"\u8BF7\u4F7F\u7528\u7535\u8111\u53C2\u52A0\u8003\u8BD5\uFF01"});return}if(copyTextFuc(" ",!0),yield checkDisabledExam(i),i.ip_limit!=="no"||i.ip_bind){const a=yield checkLocalOrPublicIp(i,!0);if((a==null?void 0:a.status)!==0)return;if(!isChrome()){antd__WEBPACK_IMPORTED_MODULE_13__.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(i.forbid_screen){const a=new WebSocket("ws://localhost:8082");yield new Promise(s=>setTimeout(()=>s(),200)),sendAppStatus(a,i)}if(i.open_camera||i.screen_open||i.ip_limit!=="no"||i.identity_verify){if(!isChromeOrFirefox())return antd__WEBPACK_IMPORTED_MODULE_13__.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;i.open_phone_video_recording?n=`/classrooms/${i.coursesId}/exercise/${i.exerciseId}/users/${(f=(0,_utils_authority__WEBPACK_IMPORTED_MODULE_1__.eY)())==null?void 0:f.login}/check`:i.identity_verify&&i.current_status===2?n=`/classrooms/${i.coursesId}/exercise/${i.exerciseId}/users/${(e=(0,_utils_authority__WEBPACK_IMPORTED_MODULE_1__.eY)())==null?void 0:e.login}/check`:n=`/classrooms/${i.coursesId}/exercise/${i.exerciseId}/users/${(t=(0,_utils_authority__WEBPACK_IMPORTED_MODULE_1__.eY)())==null?void 0:t.login}`}else i.identity_verify&&i.current_status===2?n=`/classrooms/${i.coursesId}/exercise/${i.exerciseId}/users/${i.login}/check`:n=`/classrooms/${i.coursesId}/exercise/${i.exerciseId}/users/${i.login}`;n&&(openNewWindow(n),umi__WEBPACK_IMPORTED_MODULE_5__.history.replace(`/classrooms/${i.coursesId}/exercise/${i.exerciseId}/detail`))});var httpBuildQuery=function(i,f,e,t){if(console.log("param:",i),f=f||null,e=e||"&",t=t||null,!i)return"";var r=function(u){for(var c=new Array,o=0;o{const e={},t=Object.assign(!0,i,{}),r=[];return Object.keys(t).sort().forEach(function(n){if(t[n]=t[n]===!0?"true":t[n],t[n]=t[n]===!1?"false":t[n],f==="GET"){if(t[n]!==null){if(typeof t[n]=="object"&&(!Array.isArray(t[n])||Array.isArray(t[n])&&!t[n].length))return;const a=t[n]===null||t[n]==="null"?"":t[n];r.push(`${n}=${typeof a=="string"||typeof a=="number"?decodeURIComponent(a):JSON.stringify(a)}`)}}else{const a=t[n]===null||t[n]==="null"?"":t[n];r.push(`${n}=${typeof a=="string"||typeof a=="number"?a:JSON.stringify(a)}`),t[n],e[n]=t[n]}}),r.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 i=window.location.hostname;if(/^\d+\.\d+\.\d+\.\d+$/.test(i)||i==="localhost")return i;let f=i.split(".");return f.length>2&&/^[a-z]{2}$/.test(f[f.length-2])?f.slice(-3).join("."):f.slice(-2).join(".")}const setHeader=(i,f)=>{var e;try{const t=Date.now(),r=(0,uuid__WEBPACK_IMPORTED_MODULE_16__.Z)();let n="method="+((e=i.method)==null?void 0:e.toLocaleUpperCase())+"&ak="+getKey(_key__WEBPACK_IMPORTED_MODULE_17__.mi)+"&sk="+getKey(_key__WEBPACK_IMPORTED_MODULE_17__.hw)+"&time="+t;return i.headers["X-EDU-Type"]="pc",i.headers["X-EDU-Timestamp"]=t,i.headers["X-EDU-Signature"]=md5__WEBPACK_IMPORTED_MODULE_6___default()(window.btoa(n)),i.headers["Pc-Authorization"]=getCookie("_educoder_session"),i.headers["X-Original-Protocol"]=location.protocol,i.headers["X-Original-Host"]=location.host,i.headers["X-Original-Origin"]=location.origin,i.headers["X-Request-Id"]=r,i}catch(t){console.log("error:",t,i,f)}},setThreeComponent=()=>{(function(i){XMLHttpRequest.prototype.open=function(f,e,t=!0){const r=setHeader({method:f,headers:{}});i.call(this,f,e,t);try{e.indexOf(getTopLevelDomain())>-1&&(this.setRequestHeader("X-EDU-Type","pc"),this.setRequestHeader("X-EDU-Timestamps",r.headers["X-EDU-Timestamp"]),this.setRequestHeader("X-EDU-Signatures",r.headers["X-EDU-Signature"]),this.setRequestHeader("Pc-Authorization",getCookie("_educoder_session")))}catch(n){}}})(XMLHttpRequest.prototype.open),function(i){window.fetch=function(f,e){var t;return e=e||{},(t=e.headers)!=null&&t["X-EDU-Timestamp"]||setHeader(e),i.apply(this,arguments).then(function(r){return r})}}(window.fetch)},parseUrl=i=>{const f=/(\w+)=([^\#&]*)/gi,e={};return i.replace(f,function(t,r,n){e[r]=decodeURI(n)}),e},messageInfo=(i,f)=>{const t={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${f}\u53D1\u5E03\uFF0C\u8BF7\u7B49\u5F85\u3002`}[i];antd__WEBPACK_IMPORTED_MODULE_12__.ZP.warning(t)},base64ToBlob=(i,f)=>{var e;const t=window.atob(i),r=t.length,n=new Uint8Array(r);for(let a=0;a{const t=base64ToBlob(f,e);if(window.navigator.msSaveOrOpenBlob)navigator.msSaveBlob(t,i);else{const r=document.createElement("a");r.href=window.URL.createObjectURL(t),r.download=i,document.body.appendChild(r);const n=document.createEvent("MouseEvents");n.initEvent("click",!1,!1),r.dispatchEvent(n),document.body.removeChild(r)}},trackEvent=i=>{var f;if(i.length)try{window._czc.push(["_trackEvent",...i]),window==null||window.gtag("event",i[1],{event_category:i[0],event_label:i[2]||"",value:i[3]||"",user_id:((f=(0,_utils_authority__WEBPACK_IMPORTED_MODULE_1__.eY)())==null?void 0:f.login)||""})}catch(e){console.log("trackEvent:err:",e)}},trackEventCustom=i=>{if(i.length)try{window._czc.push(["_setCustomVar",...i])}catch(f){console.log("trackEvent:err:",f)}},onPreviewImage=i=>{const f=(r,n)=>{if(r.localName===n)return r;for(let a=0,s=r;s=s.parentNode;a++){if(s.localName===n)return s;if(s==document.documentElement)return!1}},e=i.target,t=f(e,"a");if(!(t!=null&&t.href)&&e.tagName.toUpperCase()==="IMG"){let r=e.src||e.getAttribute("src");r&&r.indexOf("/images/avatars/User")===-1&&(i.stopPropagation(),i.preventDefault(),_components_mediator__WEBPACK_IMPORTED_MODULE_8__.Z.publish("preview-image",r))}},getCategoryName=(i,f)=>{var e,t,r,n;if(i){let a=(e=i==null?void 0:i.filter(s=>s.type===location.pathname.split("/")[3]))==null?void 0:e[0];return f?(n=(r=(t=a==null?void 0:a.second_category)==null?void 0:t.filter(s=>s.category_id==f))==null?void 0:r[0])==null?void 0:n.category_name:a==null?void 0:a.name}return null},bindPhone=i=>{const f=antd__WEBPACK_IMPORTED_MODULE_13__.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,maskClosable:!1,keyboard:!1,closeIcon:i!=null&&i.hiddenCloseIcon?null:"",onOk:()=>{location.href="/account/secure"},onCancel:()=>{f.destroy(),i!=null&&i.onCancel&&i.onCancel()}})},copyTextFuc=(i="",f=!1)=>{const e=document.createElement("textarea");e.value=i,document.body.appendChild(e),e.select(),document.execCommand("Copy"),f||antd__WEBPACK_IMPORTED_MODULE_12__.ZP.success("\u590D\u5236\u6210\u529F"),document.body.removeChild(e)},getJsonFromUrl=i=>{if(i||(i=window.location.search),!i)return{};let f=i.substring(1),e={};return f.split("&").forEach(function(t){let r=t.split("=");e[r[0]]=decodeURIComponent(r[1])}),e},arrTrans=(i,f)=>{if(!f)return null;const e=[];return f.forEach((t,r)=>{const n=Math.floor(r/i);e[n]||(e[n]=[]),e[n].push(t)}),e},setDocumentTitle=i=>{checkIsClientExam()?document.title="\u5934\u6B4C\u8003\u8BD5\u7CFB\u7EDF":i!==""&&i&&(document.title=i||(document.domain.indexOf(".educoder.net")>-1?"\u5934\u6B4C\u5B9E\u8DF5\u6559\u5B66\u5E73\u53F0":""))},checkIsClientExam=()=>{var i;return(i=window==null?void 0:window.localStorage)==null?void 0:i.isClientExam},localSort={setItem:(i,f,e)=>{const t=i,r=localStorage.getItem(t),n=r!==null&&r!=="[object Object]"?JSON.parse(r):{};n[e]=f,localStorage.setItem(t,JSON.stringify(n))},getItem:(i,f)=>{const e=i,t=localStorage.getItem(e);return(t!==null&&t!=="[object Object]"?JSON.parse(t):{})[f]}},ImgSrcConvert=i=>i!=null&&i.startsWith("http")?i:_env__WEBPACK_IMPORTED_MODULE_7__.Z.IMG_SERVER+i,compareVersion=i=>{const f=getVersion(),e=i.split("."),t=f.split("."),r=Math.max(e.length,t.length);for(;e.lengths)return 1;if(a{i=`${i}${f?","+f:""}`;const e=crypto_js__WEBPACK_IMPORTED_MODULE_9___default().enc.Utf8.parse(window.atob(window.atob(_key__WEBPACK_IMPORTED_MODULE_17__.Bn)).substring(0,16)),t=crypto_js__WEBPACK_IMPORTED_MODULE_9___default().AES.encrypt(i||"",e,{iv:e,mode:crypto_js__WEBPACK_IMPORTED_MODULE_9___default().mode.CBC});return window.btoa(t.toString())},getVersion=()=>{const f=navigator.userAgent.toLowerCase().match(/version\/[\d.]+/gi);return f&&f[0].replace(/version\//,"")},isLocalApp=()=>navigator.userAgent.indexOf("ExerciseApp")>-1;function randomArray(i,f){let e=i.length,t,r;f=f||1;let n=function(){var a=Math.sin(f++)*1e3;return a-Math.floor(a)};for(;e!==0;)r=Math.floor(n()*e),e-=1,t=i[e],i[e]=i[r],i[r]=t;return i}function pointerEvents(i){const f=document.getElementsByTagName("iframe");for(let t=0;tnew Promise((f,e)=>{var t=new XMLHttpRequest;t.withCredentials=!0,t.onload=function(){var r=new FileReader;r.onloadend=function(){f(r.result)},r.readAsDataURL(t.response)},t.open("GET",i),t.responseType="blob",t.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(i){var f;(f=document.querySelector(i))==null||f.scrollTo({left:0,top:0,behavior:"smooth"})}function dealUploadChange(i){var f,e,t,r,n;const a=(f=i.fileList)==null?void 0:f.map(s=>{var u,c;return __spreadProps(__spreadValues({},s),{status:typeof(s==null?void 0:s.response)=="string"||((u=s==null?void 0:s.response)==null?void 0:u.status)===-1?"error":s.status,response:typeof(s==null?void 0:s.response)=="string"?s==null?void 0:s.response:s!=null&&s.response&&(s==null?void 0:s.response.status)===-1?(c=s==null?void 0:s.response)==null?void 0:c.message:s==null?void 0:s.response})});return((t=(e=i.file)==null?void 0:e.response)==null?void 0:t.status)===-1&&(antd__WEBPACK_IMPORTED_MODULE_12__.ZP.destroy(),antd__WEBPACK_IMPORTED_MODULE_12__.ZP.warning((n=(r=i.file)==null?void 0:r.response)==null?void 0:n.message)),a}function cutFileName(i="",f){if(!i)return"";const e=i.lastIndexOf(".");let t=[i,""];if(e!==-1&&e!==i.length-1){const r=i.substring(0,e),n=i.substring(e+1);t=[r,n]}return t[0].length>f?t[0].slice(0,f)+"..."+t[1]:i}function cutName(i="",f,e="--"){return i?(i==null?void 0:i.length)>=f?(i==null?void 0:i.slice(0,f))+"...":i:e}function timeContrast(i){return i?moment__WEBPACK_IMPORTED_MODULE_10___default()().isBefore(moment__WEBPACK_IMPORTED_MODULE_10___default()(i)):!0}function showTotal(i){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",i,"\xA0"),"\u6761\u6570\u636E")}const formatRandomPaperData=i=>{const f={1:"\u4E00",2:"\u4E8C",3:"\u4E09",4:"\u56DB",5:"\u4E94",6:"\u516D",7:"\u4E03"};if(!i)return;const{exam:e,single_questions:t,multiple_questions:r,judgement_questions:n,program_questions:a,completion_questions:s,subjective_questions:u,practical_questions:c,combination_questions:o,bprogram_questions:d}=i||{},m=[__spreadValues({type:"SINGLE",name:"\u5355\u9009\u9898"},t),__spreadValues({type:"MULTIPLE",name:"\u591A\u9009\u9898"},r),__spreadValues({type:"COMPLETION",name:"\u586B\u7A7A\u9898"},s),__spreadValues({type:"JUDGMENT",name:"\u5224\u65AD\u9898"},n),__spreadValues({type:"SUBJECTIVE",name:"\u7B80\u7B54\u9898"},u),__spreadValues({type:"PROGRAM",name:"\u7F16\u7A0B\u9898"},a),__spreadValues({type:"BPROGRAM",name:"\u7A0B\u5E8F\u586B\u7A7A\u9898"},d),__spreadValues({type:"PRACTICAL",name:"\u5B9E\u8BAD\u9898"},c),__spreadValues({type:"COMBINATION",name:"\u7EC4\u5408\u9898"},o)],p=[];let b=0,g=0;const P=m.filter(O=>O.questions_count>0).map((O,S)=>{var I;return(I=O.questions)==null||I.forEach(E=>{p.push(E.id),b=b+E.score,g=g+1}),__spreadValues(__spreadValues({},O),{number:f[S+1]})});return{all_questions_count:g,all_score:b,questionList:P,ids:p,exam:e}},formatRandomPaperDatas=i=>{var f;const e={1:"\u4E00",2:"\u4E8C",3:"\u4E09",4:"\u56DB",5:"\u4E94",6:"\u516D",7:"\u4E03"};if(!i)return;const{exam:t,single_questions:r,multiple_questions:n,judgement_questions:a,program_questions:s,completion_questions:u,subjective_questions:c,practical_questions:o,combination_questions:d,bprogram_questions:m}=i||{},p=[__spreadValues({type:"SINGLE",name:"\u5355\u9009\u9898"},r),__spreadValues({type:"MULTIPLE",name:"\u591A\u9009\u9898"},n),__spreadValues({type:"COMPLETION",name:"\u586B\u7A7A\u9898"},u),__spreadValues({type:"JUDGMENT",name:"\u5224\u65AD\u9898"},a),__spreadValues({type:"SUBJECTIVE",name:"\u7B80\u7B54\u9898"},c),__spreadValues({type:"PROGRAM",name:"\u7F16\u7A0B\u9898"},s),__spreadValues({type:"BPROGRAM",name:"\u7A0B\u5E8F\u586B\u7A7A\u9898"},m),__spreadValues({type:"PRACTICAL",name:"\u5B9E\u8BAD\u9898"},o),__spreadValues({type:"COMBINATION",name:"\u7EC4\u5408\u9898"},d)];let b=[];(f=t==null?void 0:t.question_type_position)==null||f.map((I,E)=>{p==null||p.map((A,D)=>{I.type===A.type&&b.push(A)})});const g=[];let P=0,O=0;const S=b.filter(I=>I.questions_count>0).map((I,E)=>{var A;return(A=I.questions)==null||A.forEach(D=>{g.push(D.id),P=P+D.score,O=O+1}),__spreadValues(__spreadValues({},I),{number:e[E+1]})});return{all_questions_count:O,all_score:P,questionList:S,ids:g,exam:t}},isWechatBrowser=()=>navigator.userAgent.toLowerCase().match(/MicroMessenger/i)=="micromessenger",toWechatLogin=()=>{localStorage.setItem("addinfo","1"),localStorage.setItem("classromeurl",location.href),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=(i,f)=>{var e;try{f?(i.send(JSON.stringify({type:"toggleLockExit",data:!0})),f!=null&&f.forbid_screen&&i.send(JSON.stringify({type:"open-disabled-switchscreen"})),f!=null&&f.use_white_list&&i.send(JSON.stringify({type:"open-only-allow-runapp",data:f==null?void 0:f.white_list})),f!=null&&f.net_limit&&i.send(JSON.stringify({type:"network-close",data:(e=f==null?void 0:f.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:(f=t[i.status])==null?void 0:f.class},(e=t[i.status])==null?void 0:e.name)},levelStatus={0:{name:"\u57FA\u7840\u7248",icon:__webpack_require__(89718),img:__webpack_require__(79390),bg:__webpack_require__(51466),class:"sq",limit_capacity:50},1:{name:"\u6807\u51C6\u7248",icon:__webpack_require__(70689),img:__webpack_require__(65985),bg:__webpack_require__(1938),class:"jc",limit_capacity:500},2:{name:"\u4E13\u4E1A\u7248",icon:__webpack_require__(44649),img:__webpack_require__(34591),bg:__webpack_require__(48742),class:"gj",limit_capacity:1024}},timego=i=>{i=new Date(i).getTime();let f=1e3*60,e=f*60,t=e*24,r="",a=new Date().getTime()-i;if(a<0)return console.log("\u65F6\u95F4\u4E0D\u5BF9\u52B2,\u670D\u52A1\u5668\u521B\u5EFA\u65F6\u95F4\u4E0E\u5F53\u524D\u65F6\u95F4\u4E0D\u540C\u6B65"),r="\u521A\u521A";let s=parseInt(a/t,10),u=parseInt(a/e,10),c=parseInt(a/f,10);return s>30?r=""+timeformat(i,"yyyy-MM-dd"):s>1?r=""+s+"\u5929\u524D":s==1?r="\u6628\u5929":u>=1?r=""+u+"\u5C0F\u65F6\u524D":c>=5?r=""+c+"\u5206\u949F\u524D":r="\u521A\u521A",r};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=(i,f)=>{typeof i=="string"&&(i.indexOf("T")>=0&&(i=i.replace("T"," ")),i=new Date(Date.parse(i.replace(/-/g,"/")))),i=new Date(i);let e={"M+":i.getMonth()+1,"d+":i.getDate(),"h+":i.getHours(),"m+":i.getMinutes(),"s+":i.getSeconds(),"q+":Math.floor((i.getMonth()+3)/3),S:i.getMilliseconds()},t=[["\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(f)&&(f=f.replace(RegExp.$1,(i.getFullYear()+"").substr(4-RegExp.$1.length))),/(w+)/.test(f)&&(f=f.replace(RegExp.$1,t[RegExp.$1.length-1][i.getDay()]));for(let r in e)new RegExp("("+r+")").test(f)&&(f=f.replace(RegExp.$1,RegExp.$1.length==1?e[r]:("00"+e[r]).substr((""+e[r]).length)));return f},toTimeFormat=i=>{if(!i||i<0)return"0\u79D2";console.log("time:",i);let f=60,e=f*60,t=e*24,r=i/t,n=i/e,a=i/f,s=i%60;return r>=1?parseInt(r.toString())+"\u5929"+Math.floor(n%24)+"\u65F6"+Math.floor(a%60)+"\u5206"+Math.floor(i%60)+"\u79D2":n>1?parseInt(n.toString())+"\u65F6"+Math.floor(a%60)+"\u5206"+Math.floor(i%60)+"\u79D2":a>=1?parseInt(a.toString())+"\u5206"+Math.floor(i%60)+"\u79D2":Math.ceil(i)+"\u79D2"},validateLength=(i="",f=100)=>{let e=0;if(i){e=i.length;for(let t=0;t=55296&&r<=56319&&(e--,t++)}}return e<=f};function buildTree(i,f){const e={};let t=null;return i.forEach(r=>{e[r.properties.uuid]=__spreadProps(__spreadValues({},r),{children:[]})}),f.forEach(r=>{const n=e[r.startNodeUuid],a=e[r.endNodeUuid];n&&a&&n.children.push(a)}),i.forEach(r=>{!f.some(a=>a.endNodeUuid===r.properties.uuid)&&(t=e[r.properties.uuid])}),t}const handleValidatorNickName=(i,f,e)=>{if(f){let t=/[`~!@#$%^&*()\-+=<>?:"{}|,.\/;'\\[\]~!@#¥%……&*()——\-+={}|《》?:“”【】、;‘’,。、]/im;const n=/[\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(f),a=t.test(f);(n===!0||a===!0||f.length<2||f.length>=21)&&e("2-20\u4F4D\u4E2D\u82F1\u6587\u3001\u6570\u5B57\u53CA\u4E0B\u5212\u7EBF")}e()},handleValidatorName=(i,f,e)=>{if(f){let t=/[`~!@#$%^&()_\-+=<>?:"{}|,.\/;'\\[\]~!@#¥%……&()——\-+={}|《》?:“”【】、;‘’,。、]/im;const n=/[\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(f),a=t.test(f);(n===!0||a===!0||f.length<2||f.length>=21)&&e("2-20\u4F4D\u4E2D\u82F1\u6587\u3001\u6570\u5B57")}e()},getHiddenName=i=>{if(!i)return"";let f=i.length-1,e="";for(var t=0;t{const e=new FileReader;e.addEventListener("load",()=>f(e.result)),e.readAsDataURL(i)},getFileContentAndUrl=i=>new Promise((f,e)=>{var t=new FileReader;t.onload=function(){try{const r=window.URL.createObjectURL(i);f({text:this.result,link:r})}catch(r){antd__WEBPACK_IMPORTED_MODULE_12__.ZP.warning("\u5F53\u524D\u6587\u4EF6\u65E0\u6CD5\u8BFB\u53D6\u5185\u5BB9"),e("\u5F53\u524D\u6587\u4EF6\u65E0\u6CD5\u8BFB\u53D6\u5185\u5BB9")}},t.readAsText(i)});function setmiyah(i){return md5__WEBPACK_IMPORTED_MODULE_6___default()("79e33abd4b6588941ab7622aed1e67e8"+i)}const getCookie=i=>{var f,e=RegExp("(^| )"+i+"=([^;]+)(;|$)");return(f=document.cookie.match(e))?decodeURIComponent(f[2]):null};function setCookie(i,f,e){var t=new Date;t.setTime(t.getTime()+e*24*60*60*1e3);var r="expires="+t.toUTCString();document.cookie=i+"="+f+"; "+r+`;domain=${document.domain.indexOf("educoder.net")>-1?".educoder.net":document.domain};path=/;SameSite=None;secure`}const delCookie=i=>{document.cookie=i+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT;path=/;"},clearAllCookies=()=>{for(var i=document.cookie.split(";"),f=0;f-1?e.substr(0,t):e;document.cookie=r+"=;expires=Thu, 01 Jan 1970 00:00:00 GMT"}};function downLoadLink(i,f){let e=new XMLHttpRequest;e.open("GET",f,!0),e.responseType="blob",e.onload=function(){if(e.status===200){const t=e.response,r=document.createElement("a"),n=URL.createObjectURL(t);if("download"in r)r.href=n,i&&(r.download=i),document.body.appendChild(r),r.click(),document.body.removeChild(r);else{const a=new FileReader;a.onload=function(){const s=document.createElement("a");s.href=a.result,s.download=i||"file",document.body.appendChild(s),s.click(),document.body.removeChild(s)},a.readAsDataURL(t)}URL.revokeObjectURL(n)}},e.onerror=function(){console.error("File download failed!")},e.send()}function getFirstLevelDomain(){var i=window.location.hostname,f=i.split(".").reverse();return f.length>2?[f[1],f[0]].join("."):i}function getBlob(i){return new Promise(f=>{const e=new window.XMLHttpRequest;(i.indexOf(getFirstLevelDomain())>-1||location.hostname==="localhost"&&i.indexOf("/api/")>-1)&&(e.withCredentials=!0),e.open("GET",i,!0),e.responseType="blob",e.onload=()=>{e.status===200&&f(e.response)},e.send()})}function saveAs(i,f){if(window.navigator.msSaveOrOpenBlob)window.navigator.msSaveBlob(i,f);else{const e=document.createElement("a"),t=document.querySelector("body");e.href=window.URL.createObjectURL(i),e.download=f,e.style.display="none",t.appendChild(e),e.click(),t.removeChild(e),window.URL.revokeObjectURL(e.href)}}function download(i,f){getBlob(i).then(e=>{saveAs(e,f)})}function downLoadFileIframe(i,f){return new Promise((e,t)=>{var r=f,n=document.createElement("iframe"),a;document.body.appendChild(n),n.src=r,n.style.display="none",n.addEventListener("load",function(){setTimeout(()=>{document.body.removeChild(n)},1e3)},!0),a=setInterval(()=>{getCookie("fileDownload")&&(delCookie("fileDownload"),clearInterval(a),document.body.removeChild(n),e())},1e3)})}function downLoadFile(i,f){downLoadLink(i,f)}const setUrlQuery=i=>{let{url:f,query:e}=i;if(!f)return"";if(e){let t=[];for(const r in e)e.hasOwnProperty(r)&&!isUnOrNull(e[r])&&(typeof e[r]=="object"?e[r].map(n=>{t.push(`${r}[]=${n}`)}):t.push(`${r}=${e[r]}`));f.indexOf("?")!==-1?f=`${f}&${t.join("&")}`:f=`${f}?${t.join("&")}`,console.log("url1111",f)}return f};function isPc(){let i=navigator.userAgent,f=["Android","iPhone","SymbianOS","Windows Phone","iPad","iPod"],e=!0;for(var t=0;t0){e=!1;break}return e}function isChrome(){let i=navigator.userAgent;return["Chrome"].some(e=>i.indexOf(e)>-1)}function isFirefox(){let i=navigator.userAgent;return["Firefox"].some(e=>i.indexOf(e)>-1)}function isChromeOrFirefox(){let i=navigator.userAgent;return["Chrome","Firefox"].some(e=>i.indexOf(e)>-1)}const formatMoney=(i="")=>{var f;return(f=i==null?void 0:i.toString())==null?void 0:f.replace(/\B(?=(\d{3})+(?!\d))/g,",")},openNewWindow=i=>{let f=document.createElement("a");f.target="_blank",document.body.appendChild(f),f.href=i;let e=document.createEvent("MouseEvents");e.initEvent("click",!1,!1),f.dispatchEvent(e),document.body.removeChild(f)},openNewWindows=i=>{let f=document.createElement("a");document.body.appendChild(f),f.href=i;let e=document.createEvent("MouseEvents");e.initEvent("click",!1,!1),f.dispatchEvent(e),document.body.removeChild(f)},formatTextMiddleIntercept=(i="")=>i.length<=6?i:`${i.substring(0,3)}...${i.substring(i.length-3,i.length)}`,HalfPastOne=()=>{let i=new Date().getHours(),f=new Date().getMinutes();return f>=30?(i++,f="00"):f="30",i+":"+f},DayHalfPastOne=(i="-")=>{let f=new Date().getHours(),e=new Date().getMinutes();return e>=30?(f++,e="00"):e="30",new Date().toLocaleDateString().replace(/\//g,i)+" "+f+":"+e};var Type=(i=>(i.Number="Number",i.String="String",i.Boolean="Boolean",i.Object="Object",i.Array="Array",i.Function="Function",i))(Type||{});const type=i=>{const f=Object.prototype.toString.call(i);return f.substring(8,f.length-1)},isEmpty=i=>type(i)==="Array"?i.length===0:type(i)==="Object"?Object.keys(i).length===0:!i,rangeNumber=(i,f)=>{const e=[];for(let t=i;t{let e=f/2-2,t=f/2+3;return i.length>f?i.substr(0,e)+"..."+i.substr(t,f):i},formatRate=i=>i>4.5?5:i>4&&i<=4.5?4.5:i>3.5&&i<=4?4:i>3&&i<=3.5?3.5:i>2.5&&i<=3?3:i>2&&i<=2.5?2.5:i>1.5&&i<=2?2:i>1&&i<=1.5?1.5:i>.5&&i<=1?1:i>0&&i<=.5?.5:0,isUnOrNull=i=>i==null;function getUrlToken(i,f){const e=new RegExp(`(^|&)${i}=([^&]*)(&|$)`,"i"),t=f.substr(1).match(e);return t!=null?decodeURIComponent(t[2]):null}const getMessagesUrl=i=>{var f;if(i.link_url)return window.open(i.link_url);switch(i==null?void 0:i.container_type){case"TeacherChangeUserInfo":return window.open("/account/profile");case"TeacherResetUserPassword":return window.open("/account/secure");case"ApplyUserAuthentication":return window.open("/account/certification")}switch(i.container_type){case"ApplyUserAuthentication":if(i.tiding_type==="Apply"){if(i.auth_type===1)return window.open("/admins/identity_authentications");if(i.auth_type===2)return window.open("/admins/professional_authentications")}return i.tiding_type==="System"?window.open("/account/certification"):i.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 i.tiding_type==="Apply"?window.open("/admins/department_applies"):i.tiding_type==="System"?window.open("/account/profile"):void 0;case"ApplyAddSchools":return i.tiding_type==="Apply"?window.open("/admins/unit_applies"):i.tiding_type==="System"?window.open("/account/profile"):void 0;case"ApplyAction":switch(i.parent_container_type){case"ApplyShixun":if(i.tiding_type==="Apply")return window.open("/admins/shixun_authorizations");if(i.tiding_type==="System")return window.open(`/shixuns/${i.identifier}/challenges`);case"ApplySubject":if(i.tiding_type==="Apply")return window.open("/admins/subject_authorizations");if(i.tiding_type==="System")return window.open(`/paths/${i.parent_container_id}`);case"TrialAuthorization":if(i.tiding_type==="Apply")return window.open("/managements/trial_authorization");if(i.tiding_type==="System")return window.open("/account/profile")}return;case"JoinCourse":return window.open(`/classrooms/${i.belong_container_id}/teachers`);case"StudentJoinCourse":if(i.tiding_type==="Apply")return window.open(`/classrooms/${i.belong_container_id}/teachers`);if(i.tiding_type==="System")return window.open(`/classrooms/${i.belong_container_id}/students`);case"DealCourse":return window.open(`/classrooms/${i.belong_container_id}/shixun_homework/`);case"TeacherJoinCourse":return window.open(`/classrooms/${i.belong_container_id}/shixun_homework/`);case"Course":return i.tiding_type==="Delete"?void 0:window.open(`/classrooms/${i.belong_container_id}/shixun_homework/`);case"ArchiveCourse":return window.open(`/classrooms/${i.belong_container_id}/shixun_homework/`);case"Shixun":return window.open(`/shixuns/${i.identifier}/challenges`);case"Subject":return window.open(`/paths/${i.container_id}`);case"JournalsForMessage":switch(i.parent_container_type){case"Principal":return"";case"HomeworkCommon":return i.homework_type==="normal"?window.open(`/classrooms/${i.belong_container_id}/common_homework/${i.parent_container_id}/question`):i.homework_type==="group"?window.open(`/classrooms/${i.belong_container_id}/group_homework/${i.parent_container_id}/question`):i.homework_type==="practice"?window.open(`/classrooms/${i.belong_container_id}/shixun_homework/${i.parent_container_id}/detail?tabs=1`):"";case"GraduationTopic":return window.open(`/classrooms/${i.belong_container_id}/graduation_topics/${i.parent_container_id}/detail`);case"StudentWorksScore":return window.open(i.link_url)}case"Memo":return window.open(`/forums/${i.parent_container_id}`);case"Message":return window.open("/forums/");case"Watcher":return window.open(`/users/${i.trigger_user.login}/classrooms`);case"PraiseTread":return"";case"Grade":return"";case"JoinProject":return window.open(_env__WEBPACK_IMPORTED_MODULE_7__.Z.FORGE+i.project_url);case"ReporterJoinProject":return window.open(_env__WEBPACK_IMPORTED_MODULE_7__.Z.FORGE+i.project_url);case"DealProject":return window.open(_env__WEBPACK_IMPORTED_MODULE_7__.Z.FORGE+i.project_url);case"ManagerJoinProject":return window.open(_env__WEBPACK_IMPORTED_MODULE_7__.Z.FORGE+i.project_url);case"Poll":switch(i.parent_container_type){case"CommitPoll":return window.open(` /classrooms/${i.belong_container_id}/poll/${i.container_id}/detail`);default:return window.open(` /classrooms/${i.belong_container_id}/poll/${i.container_id}/detail`)}case"Exercise":switch(i.parent_container_type){case"CommitExercise":return window.open(` /classrooms/${i.belong_container_id}/exercise/${i.container_id}/detail?tab=0`);case"ExerciseScore":return window.open(` /classrooms/${i.belong_container_id}/exercise/${i.container_id}/detail?tab=0`);default:return window.open(`/classrooms/${i.belong_container_id}/exercise/${i.container_id}/detail?tab=0`)}case"StudentGraduationTopic":return window.open(`/classrooms/${i.belong_container_id}/graduation_topics/${i.parent_container_id}/detail`);case"DealStudentTopicSelect":return window.open(`/classrooms/${i.belong_container_id}/graduation_topics/${i.parent_container_id}/detail`);case"GraduationTask":return window.open(`/classrooms/${i.belong_container_id}/graduation_tasks/${i.container_id}`);case"GraduationWork":return window.open(`/classrooms/${i.belong_container_id}/graduation_tasks/${i.container_id}`);case"GraduationWorkScore":return window.open(`/classrooms/${i.belong_container_id}/graduation_tasks/${i.parent_container_id}`);case"HomeworkCommon":switch(i.parent_container_type){case"AnonymousCommentFail":if(i.homework_type==="normal")return window.open(`/classrooms/${i.belong_container_id}/common_homework/${i.parent_container_id}/detail`);if(i.homework_type==="group")return window.open(`/classrooms/${i.belong_container_id}/group_homework/${i.parent_container_id}/detail`);if(i.homework_type==="practice")return window.open(`/classrooms/${i.belong_container_id}/shixun_homework/${i.parent_container_id}/detail?tabs=0`);case"HomeworkPublish":if(i.homework_type==="normal")return window.open(`/classrooms/${i.belong_container_id}/common_homework/${i.parent_container_id}/detail`);if(i.homework_type==="group")return window.open(`/classrooms/${i.belong_container_id}/group_homework/${i.parent_container_id}/detail`);if(i.homework_type==="practice")return window.open(`/classrooms/${i.belong_container_id}/shixun_homework/${i.parent_container_id}/detail?tabs=0`);case"AnonymousAppeal":if(i.homework_type==="normal")return window.open(`/classrooms/${i.belong_container_id}/common_homework/${i.parent_container_id}/detail`);if(i.homework_type==="group")return window.open(`/classrooms/${i.belong_container_id}/group_homework/${i.parent_container_id}/detail`);if(i.homework_type==="practice")return window.open(`/classrooms/${i.belong_container_id}/shixun_homework/${i.parent_container_id}/detail?tabs=0`);default:if(i.homework_type==="normal")return window.open(`/classrooms/${i.belong_container_id}/common_homework/${i.parent_container_id}/detail`);if(i.homework_type==="group")return window.open(`/classrooms/${i.belong_container_id}/group_homework/${i.parent_container_id}/detail`);if(i.homework_type==="practice")return window.open(`/classrooms/${i.belong_container_id}/shixun_homework/${i.parent_container_id}/detail?tabs=0`)}case"StudentWork":if(i.homework_type==="normal")return window.open(`/classrooms/${i.belong_container_id}/common_homework/${i.parent_container_id}/review/${i.container_id}`);if(i.homework_type==="group")return window.open(`/classrooms/${i.belong_container_id}/group_homework/${i.parent_container_id}/review/${i.container_id}`);if(i.homework_type==="practice")return window.open(`/classrooms/${i.belong_container_id}/shixun_homework/${i.parent_container_id}/detail`);case"StudentWorksScore":return window.open(`/classrooms/${i.belong_container_id}/common_homework/${i.trigger_user.id}/review/${i.parent_container_id}`);case"StudentWorksScoresAppeal":return window.open(`/classrooms/${i.belong_container_id}/common_homework/${i.trigger_user.id}/review/${i.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/${i.parent_container_id}`);case"Issue":return window.open(`/issues/${i.container_id}`);case"PullRequest":return window.open(_env__WEBPACK_IMPORTED_MODULE_7__.Z.FORGE+i.project_url);case"Department":return window.open("/account/profile");case"Library":if(i.tiding_type==="Apply")return window.open("/admins/library_applies");if(i.tiding_type==="System")return window.open(`/moop_cases/${i.container_id}`);case"ProjectPackage":return i.tiding_type==="Destroyed"||i.tiding_type==="Destroyed_end"?void 0:i.tiding_type==="Apply"?window.open("/admins/project_package_applies"):window.open(`/crowdsourcing/${i.container_id}`);case"Discuss":return i.parent_container_type==="Hack"&&i.extra?window.open(`/myproblems/${i.extra}/comment`):i.extra==="ai_reply"&&i.task_identifier?window.open(`/tasks/${i.task_identifier}?extra=extra`):window.open(`/shixuns/${i.identifier}/shixun_discuss`);case"Video":return i.tiding_type==="Apply"?window.open("/admins/video_applies"):i.tiding_type==="System"?window.open(`/users/${(f=(0,_utils_authority__WEBPACK_IMPORTED_MODULE_1__.eY)())==null?void 0:f.login}/videos`):"";case"PublicCourseStart":return window.open(`/classrooms/${i.container_id}/informs`);case"SubjectStartCourse":return window.open(`/paths/${i.container_id}`);case"ResubmitStudentWork":if(i.homework_type==="normal")return window.open(`/classrooms/${i.belong_container_id}/common_homework/${i.parent_container_id}/${i.container_id}/appraise`);if(i.homework_type==="group")return window.open(`/classrooms/${i.belong_container_id}/group_homework/${i.parent_container_id}/${i.container_id}/appraise`);case"AdjustScore":if(i.homework_type==="normal")return window.open(`/classrooms/${i.belong_container_id}/common_homework/${i.parent_container_id}`);if(i.homework_type==="group")return window.open(`/classrooms/${i.belong_container_id}/group_homework/${i.parent_container_id}`);case"LiveLink":return window.open(`/classrooms/${i.belong_container_id}/course_videos?open=live`);case"Hack":if(i.extra&&i.parent_container_type!=="HackDelete")return window.open(`/problems/${i.extra}/edit`);default:return}},checkLocalOrPublicIp=(i,f)=>__async(void 0,null,function*(){let e="",t;return new Promise((r,n)=>__async(void 0,null,function*(){if(i.ip_limit!=="no"||i.ip_bind_type)try{e=yield(0,_components_Exercise_ip__WEBPACK_IMPORTED_MODULE_2__.y)({ip_limit:i==null?void 0:i.ip_limit,ip_bind:i==null?void 0:i.ip_bind_type}),console.log(e,44)}catch(s){n(void 0)}const a=yield(0,_service_exercise__WEBPACK_IMPORTED_MODULE_3__.Cl)({id:i.exerciseId,ip:e});if(a.status===0)r(a);else if(a.status===-5){(0,umi__WEBPACK_IMPORTED_MODULE_5__.getDvaApp)()._store.dispatch({type:"exercise/setActionTabs",payload:{key:"student-unlock",exerciseParams:{errorMessage:a==null?void 0:a.message,exercise_user_id:i==null?void 0:i.exercise_user_id,id:i.exerciseId,unlockClose:i.unlockClose}}});return}else r(a);if(i.errmsgHide||f)return!0;if(a.status===-1)return t=antd__WEBPACK_IMPORTED_MODULE_13__.default.info({title:react__WEBPACK_IMPORTED_MODULE_0__.createElement(antd__WEBPACK_IMPORTED_MODULE_14__.Z,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(antd__WEBPACK_IMPORTED_MODULE_15__.Z,{flex:"1"},"\u63D0\u793A"),react__WEBPACK_IMPORTED_MODULE_0__.createElement(antd__WEBPACK_IMPORTED_MODULE_15__.Z,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"iconfont icon-yiguanbi1 current c-grey-c",onClick:()=>t.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(a.status===-2)return t=antd__WEBPACK_IMPORTED_MODULE_13__.default.info({title:react__WEBPACK_IMPORTED_MODULE_0__.createElement(antd__WEBPACK_IMPORTED_MODULE_14__.Z,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(antd__WEBPACK_IMPORTED_MODULE_15__.Z,{flex:"1"},"\u63D0\u793A"),react__WEBPACK_IMPORTED_MODULE_0__.createElement(antd__WEBPACK_IMPORTED_MODULE_15__.Z,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"iconfont icon-yiguanbi1 current c-grey-c",onClick:()=>t.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"},a.ip),"\u8BF7\u4F7F\u7528\u8BE5IP\u5730\u5740\u8FDB\u5165\u8003\u8BD5\u3002"),okText:"\u6211\u77E5\u9053\u4E86"}),!1}))}),checkDisabledExam=i=>new Promise((f,e)=>__async(void 0,null,function*(){const t=yield(0,_service_exercise__WEBPACK_IMPORTED_MODULE_3__.Zg)({id:i==null?void 0:i.exerciseId,coursesId:i==null?void 0:i.coursesId});if((t==null?void 0:t.status)===0){f("");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=i=>__async(void 0,null,function*(){var f,e,t;sessionStorage.removeItem("studentunlock");let r,n;if((location.pathname.indexOf("/classrooms/4RW9CYHY")>-1||location.pathname.indexOf("/classrooms/qb4ft587")>-1||location.pathname.indexOf("/classrooms/c5q9bsp2")>-1)&&!isPc()){antd__WEBPACK_IMPORTED_MODULE_13__.default.info({content:"\u8BF7\u4F7F\u7528\u7535\u8111\u53C2\u52A0\u8003\u8BD5\uFF01"});return}if(copyTextFuc(" ",!0),yield checkDisabledExam(i),i.ip_limit!=="no"||i.ip_bind){const a=yield checkLocalOrPublicIp(i,!0);if((a==null?void 0:a.status)!==0)return;if(!isChrome()){antd__WEBPACK_IMPORTED_MODULE_13__.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(i.forbid_screen){const a=new WebSocket("ws://localhost:8082");yield new Promise(s=>setTimeout(()=>s(),200)),sendAppStatus(a,i)}if(i.open_camera||i.screen_open||i.ip_limit!=="no"||i.identity_verify){if(!isChromeOrFirefox())return antd__WEBPACK_IMPORTED_MODULE_13__.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;i.open_phone_video_recording?n=`/classrooms/${i.coursesId}/exercise/${i.exerciseId}/users/${(f=(0,_utils_authority__WEBPACK_IMPORTED_MODULE_1__.eY)())==null?void 0:f.login}/check`:i.identity_verify&&i.current_status===2?n=`/classrooms/${i.coursesId}/exercise/${i.exerciseId}/users/${(e=(0,_utils_authority__WEBPACK_IMPORTED_MODULE_1__.eY)())==null?void 0:e.login}/check`:n=`/classrooms/${i.coursesId}/exercise/${i.exerciseId}/users/${(t=(0,_utils_authority__WEBPACK_IMPORTED_MODULE_1__.eY)())==null?void 0:t.login}`}else i.identity_verify&&i.current_status===2?n=`/classrooms/${i.coursesId}/exercise/${i.exerciseId}/users/${i.login}/check`:n=`/classrooms/${i.coursesId}/exercise/${i.exerciseId}/users/${i.login}`;n&&(openNewWindow(n),umi__WEBPACK_IMPORTED_MODULE_5__.history.replace(`/classrooms/${i.coursesId}/exercise/${i.exerciseId}/detail`))});var httpBuildQuery=function(i,f,e,t){if(console.log("param:",i),f=f||null,e=e||"&",t=t||null,!i)return"";var r=function(u){for(var c=new Array,o=0;o{const e={},t=Object.assign(!0,i,{}),r=[];return Object.keys(t).sort().forEach(function(n){if(t[n]=t[n]===!0?"true":t[n],t[n]=t[n]===!1?"false":t[n],f==="GET"){if(t[n]!==null){if(typeof t[n]=="object"&&(!Array.isArray(t[n])||Array.isArray(t[n])&&!t[n].length))return;const a=t[n]===null||t[n]==="null"?"":t[n];r.push(`${n}=${typeof a=="string"||typeof a=="number"?decodeURIComponent(a):JSON.stringify(a)}`)}}else{const a=t[n]===null||t[n]==="null"?"":t[n];r.push(`${n}=${typeof a=="string"||typeof a=="number"?a:JSON.stringify(a)}`),t[n],e[n]=t[n]}}),r.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 i=window.location.hostname;if(/^\d+\.\d+\.\d+\.\d+$/.test(i)||i==="localhost")return i;let f=i.split(".");return f.length>2&&/^[a-z]{2}$/.test(f[f.length-2])?f.slice(-3).join("."):f.slice(-2).join(".")}const setHeader=(i,f)=>{var e;try{const t=Date.now(),r=(0,uuid__WEBPACK_IMPORTED_MODULE_16__.Z)();let n="method="+((e=i.method)==null?void 0:e.toLocaleUpperCase())+"&ak="+getKey(_key__WEBPACK_IMPORTED_MODULE_17__.mi)+"&sk="+getKey(_key__WEBPACK_IMPORTED_MODULE_17__.hw)+"&time="+t;return i.headers["X-EDU-Type"]="pc",i.headers["X-EDU-Timestamp"]=t,i.headers["X-EDU-Signature"]=md5__WEBPACK_IMPORTED_MODULE_6___default()(window.btoa(n)),i.headers["Pc-Authorization"]=getCookie("_educoder_session"),i.headers["X-Original-Protocol"]=location.protocol,i.headers["X-Original-Host"]=location.host,i.headers["X-Original-Origin"]=location.origin,i.headers["X-Request-Id"]=r,i}catch(t){console.log("error:",t,i,f)}},setThreeComponent=()=>{(function(i){XMLHttpRequest.prototype.open=function(f,e,t=!0){const r=setHeader({method:f,headers:{}});i.call(this,f,e,t);try{e.indexOf(getTopLevelDomain())>-1&&(this.setRequestHeader("X-EDU-Type","pc"),this.setRequestHeader("X-EDU-Timestamps",r.headers["X-EDU-Timestamp"]),this.setRequestHeader("X-EDU-Signatures",r.headers["X-EDU-Signature"]),this.setRequestHeader("Pc-Authorization",getCookie("_educoder_session")))}catch(n){}}})(XMLHttpRequest.prototype.open),function(i){window.fetch=function(f,e){var t;return e=e||{},(t=e.headers)!=null&&t["X-EDU-Timestamp"]||setHeader(e),i.apply(this,arguments).then(function(r){return r})}}(window.fetch)},parseUrl=i=>{const f=/(\w+)=([^\#&]*)/gi,e={};return i.replace(f,function(t,r,n){e[r]=decodeURI(n)}),e},messageInfo=(i,f)=>{const t={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${f}\u53D1\u5E03\uFF0C\u8BF7\u7B49\u5F85\u3002`}[i];antd__WEBPACK_IMPORTED_MODULE_12__.ZP.warning(t)},base64ToBlob=(i,f)=>{var e;const t=window.atob(i),r=t.length,n=new Uint8Array(r);for(let a=0;a{const t=base64ToBlob(f,e);if(window.navigator.msSaveOrOpenBlob)navigator.msSaveBlob(t,i);else{const r=document.createElement("a");r.href=window.URL.createObjectURL(t),r.download=i,document.body.appendChild(r);const n=document.createEvent("MouseEvents");n.initEvent("click",!1,!1),r.dispatchEvent(n),document.body.removeChild(r)}},trackEvent=i=>{var f;if(i.length)try{window._czc.push(["_trackEvent",...i]),window==null||window.gtag("event",i[1],{event_category:i[0],event_label:i[2]||"",value:i[3]||"",user_id:((f=(0,_utils_authority__WEBPACK_IMPORTED_MODULE_1__.eY)())==null?void 0:f.login)||""})}catch(e){console.log("trackEvent:err:",e)}},trackEventCustom=i=>{if(i.length)try{window._czc.push(["_setCustomVar",...i])}catch(f){console.log("trackEvent:err:",f)}},onPreviewImage=i=>{const f=(r,n)=>{if(r.localName===n)return r;for(let a=0,s=r;s=s.parentNode;a++){if(s.localName===n)return s;if(s==document.documentElement)return!1}},e=i.target,t=f(e,"a");if(!(t!=null&&t.href)&&e.tagName.toUpperCase()==="IMG"){let r=e.src||e.getAttribute("src");r&&r.indexOf("/images/avatars/User")===-1&&(i.stopPropagation(),i.preventDefault(),_components_mediator__WEBPACK_IMPORTED_MODULE_8__.Z.publish("preview-image",r))}},getCategoryName=(i,f)=>{var e,t,r,n;if(i){let a=(e=i==null?void 0:i.filter(s=>s.type===location.pathname.split("/")[3]))==null?void 0:e[0];return f?(n=(r=(t=a==null?void 0:a.second_category)==null?void 0:t.filter(s=>s.category_id==f))==null?void 0:r[0])==null?void 0:n.category_name:a==null?void 0:a.name}return null},bindPhone=i=>{const f=antd__WEBPACK_IMPORTED_MODULE_13__.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,maskClosable:!1,keyboard:!1,closeIcon:i!=null&&i.hiddenCloseIcon?null:"",onOk:()=>{location.href="/account/secure"},onCancel:()=>{f.destroy(),i!=null&&i.onCancel&&i.onCancel()}})},copyTextFuc=(i="",f=!1)=>{const e=document.createElement("textarea");e.value=i,document.body.appendChild(e),e.select(),document.execCommand("Copy"),f||antd__WEBPACK_IMPORTED_MODULE_12__.ZP.success("\u590D\u5236\u6210\u529F"),document.body.removeChild(e)},getJsonFromUrl=i=>{if(i||(i=window.location.search),!i)return{};let f=i.substring(1),e={};return f.split("&").forEach(function(t){let r=t.split("=");e[r[0]]=decodeURIComponent(r[1])}),e},arrTrans=(i,f)=>{if(!f)return null;const e=[];return f.forEach((t,r)=>{const n=Math.floor(r/i);e[n]||(e[n]=[]),e[n].push(t)}),e},setDocumentTitle=i=>{checkIsClientExam()?document.title="\u5934\u6B4C\u8003\u8BD5\u7CFB\u7EDF":i!==""&&i&&(document.title=i||(document.domain.indexOf(".educoder.net")>-1?"\u5934\u6B4C\u5B9E\u8DF5\u6559\u5B66\u5E73\u53F0":""))},checkIsClientExam=()=>{var i;return(i=window==null?void 0:window.localStorage)==null?void 0:i.isClientExam},localSort={setItem:(i,f,e)=>{const t=i,r=localStorage.getItem(t),n=r!==null&&r!=="[object Object]"?JSON.parse(r):{};n[e]=f,localStorage.setItem(t,JSON.stringify(n))},getItem:(i,f)=>{const e=i,t=localStorage.getItem(e);return(t!==null&&t!=="[object Object]"?JSON.parse(t):{})[f]}},ImgSrcConvert=i=>i!=null&&i.startsWith("http")?i:_env__WEBPACK_IMPORTED_MODULE_7__.Z.IMG_SERVER+i,compareVersion=i=>{const f=getVersion(),e=i.split("."),t=f.split("."),r=Math.max(e.length,t.length);for(;e.lengths)return 1;if(a{i=`${i}${f?","+f:""}`;const e=crypto_js__WEBPACK_IMPORTED_MODULE_9___default().enc.Utf8.parse(window.atob(window.atob(_key__WEBPACK_IMPORTED_MODULE_17__.Bn)).substring(0,16)),t=crypto_js__WEBPACK_IMPORTED_MODULE_9___default().AES.encrypt(i||"",e,{iv:e,mode:crypto_js__WEBPACK_IMPORTED_MODULE_9___default().mode.CBC});return window.btoa(t.toString())},getVersion=()=>{const f=navigator.userAgent.toLowerCase().match(/version\/[\d.]+/gi);return f&&f[0].replace(/version\//,"")},isLocalApp=()=>navigator.userAgent.indexOf("ExerciseApp")>-1;function randomArray(i,f){let e=i.length,t,r;f=f||1;let n=function(){var a=Math.sin(f++)*1e3;return a-Math.floor(a)};for(;e!==0;)r=Math.floor(n()*e),e-=1,t=i[e],i[e]=i[r],i[r]=t;return i}function pointerEvents(i){const f=document.getElementsByTagName("iframe");for(let t=0;tnew Promise((f,e)=>{var t=new XMLHttpRequest;t.withCredentials=!0,t.onload=function(){var r=new FileReader;r.onloadend=function(){f(r.result)},r.readAsDataURL(t.response)},t.open("GET",i),t.responseType="blob",t.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(i){var f;(f=document.querySelector(i))==null||f.scrollTo({left:0,top:0,behavior:"smooth"})}function dealUploadChange(i){var f,e,t,r,n;const a=(f=i.fileList)==null?void 0:f.map(s=>{var u,c;return __spreadProps(__spreadValues({},s),{status:typeof(s==null?void 0:s.response)=="string"||((u=s==null?void 0:s.response)==null?void 0:u.status)===-1?"error":s.status,response:typeof(s==null?void 0:s.response)=="string"?s==null?void 0:s.response:s!=null&&s.response&&(s==null?void 0:s.response.status)===-1?(c=s==null?void 0:s.response)==null?void 0:c.message:s==null?void 0:s.response})});return((t=(e=i.file)==null?void 0:e.response)==null?void 0:t.status)===-1&&(antd__WEBPACK_IMPORTED_MODULE_12__.ZP.destroy(),antd__WEBPACK_IMPORTED_MODULE_12__.ZP.warning((n=(r=i.file)==null?void 0:r.response)==null?void 0:n.message)),a}function cutFileName(i="",f){if(!i)return"";const e=i.lastIndexOf(".");let t=[i,""];if(e!==-1&&e!==i.length-1){const r=i.substring(0,e),n=i.substring(e+1);t=[r,n]}return t[0].length>f?t[0].slice(0,f)+"..."+t[1]:i}function cutName(i="",f,e="--"){return i?(i==null?void 0:i.length)>=f?(i==null?void 0:i.slice(0,f))+"...":i:e}function timeContrast(i){return i?moment__WEBPACK_IMPORTED_MODULE_10___default()().isBefore(moment__WEBPACK_IMPORTED_MODULE_10___default()(i)):!0}function showTotal(i){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",i,"\xA0"),"\u6761\u6570\u636E")}const formatRandomPaperData=i=>{const f={1:"\u4E00",2:"\u4E8C",3:"\u4E09",4:"\u56DB",5:"\u4E94",6:"\u516D",7:"\u4E03"};if(!i)return;const{exam:e,single_questions:t,multiple_questions:r,judgement_questions:n,program_questions:a,completion_questions:s,subjective_questions:u,practical_questions:c,combination_questions:o,bprogram_questions:d}=i||{},m=[__spreadValues({type:"SINGLE",name:"\u5355\u9009\u9898"},t),__spreadValues({type:"MULTIPLE",name:"\u591A\u9009\u9898"},r),__spreadValues({type:"COMPLETION",name:"\u586B\u7A7A\u9898"},s),__spreadValues({type:"JUDGMENT",name:"\u5224\u65AD\u9898"},n),__spreadValues({type:"SUBJECTIVE",name:"\u7B80\u7B54\u9898"},u),__spreadValues({type:"PROGRAM",name:"\u7F16\u7A0B\u9898"},a),__spreadValues({type:"BPROGRAM",name:"\u7A0B\u5E8F\u586B\u7A7A\u9898"},d),__spreadValues({type:"PRACTICAL",name:"\u5B9E\u8BAD\u9898"},c),__spreadValues({type:"COMBINATION",name:"\u7EC4\u5408\u9898"},o)],p=[];let b=0,g=0;const P=m.filter(O=>O.questions_count>0).map((O,S)=>{var I;return(I=O.questions)==null||I.forEach(E=>{p.push(E.id),b=b+E.score,g=g+1}),__spreadValues(__spreadValues({},O),{number:f[S+1]})});return{all_questions_count:g,all_score:b,questionList:P,ids:p,exam:e}},formatRandomPaperDatas=i=>{var f;const e={1:"\u4E00",2:"\u4E8C",3:"\u4E09",4:"\u56DB",5:"\u4E94",6:"\u516D",7:"\u4E03"};if(!i)return;const{exam:t,single_questions:r,multiple_questions:n,judgement_questions:a,program_questions:s,completion_questions:u,subjective_questions:c,practical_questions:o,combination_questions:d,bprogram_questions:m}=i||{},p=[__spreadValues({type:"SINGLE",name:"\u5355\u9009\u9898"},r),__spreadValues({type:"MULTIPLE",name:"\u591A\u9009\u9898"},n),__spreadValues({type:"COMPLETION",name:"\u586B\u7A7A\u9898"},u),__spreadValues({type:"JUDGMENT",name:"\u5224\u65AD\u9898"},a),__spreadValues({type:"SUBJECTIVE",name:"\u7B80\u7B54\u9898"},c),__spreadValues({type:"PROGRAM",name:"\u7F16\u7A0B\u9898"},s),__spreadValues({type:"BPROGRAM",name:"\u7A0B\u5E8F\u586B\u7A7A\u9898"},m),__spreadValues({type:"PRACTICAL",name:"\u5B9E\u8BAD\u9898"},o),__spreadValues({type:"COMBINATION",name:"\u7EC4\u5408\u9898"},d)];let b=[];(f=t==null?void 0:t.question_type_position)==null||f.map((I,E)=>{p==null||p.map((A,D)=>{I.type===A.type&&b.push(A)})});const g=[];let P=0,O=0;const S=b.filter(I=>I.questions_count>0).map((I,E)=>{var A;return(A=I.questions)==null||A.forEach(D=>{g.push(D.id),P=P+D.score,O=O+1}),__spreadValues(__spreadValues({},I),{number:e[E+1]})});return{all_questions_count:O,all_score:P,questionList:S,ids:g,exam:t}},isWechatBrowser=()=>navigator.userAgent.toLowerCase().match(/MicroMessenger/i)=="micromessenger",toWechatLogin=()=>{localStorage.setItem("addinfo","1"),localStorage.setItem("classromeurl",location.href),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=(i,f)=>{var e;try{f?(i.send(JSON.stringify({type:"toggleLockExit",data:!0})),f!=null&&f.forbid_screen&&i.send(JSON.stringify({type:"open-disabled-switchscreen"})),f!=null&&f.use_white_list&&i.send(JSON.stringify({type:"open-only-allow-runapp",data:f==null?void 0:f.white_list})),f!=null&&f.net_limit&&i.send(JSON.stringify({type:"network-close",data:(e=f==null?void 0:f.net_limit_list)==null?void 0:e.split(` `)}))):(i.send(JSON.stringify({type:"toggleLockExit",data:!1})),i.send(JSON.stringify({type:"close-disabled-switchscreen"})),i.send(JSON.stringify({type:"close-only-allow-runapp"})),i.send(JSON.stringify({type:"network-open"})))}catch(t){}},addJumping=()=>{const i=document.querySelector('a[title="\u589E\u52A0\u586B\u7A7A"]'),f=i==null?void 0:i.querySelector("span");f&&(f.classList.remove("jumping-icon"),f.offsetWidth,f.classList.add("jumping-icon"),setTimeout(()=>{var e;(e=f==null?void 0:f.classList)==null||e.remove("jumping-icon")},2e3))},showClassroomsmodal=i=>i!=null&&i.forbid_student_visit?(antd__WEBPACK_IMPORTED_MODULE_13__.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}},i==null?void 0:i.username,"\u8001\u5E08 "),"\u5DF2\u5173\u95ED\u8BE5\u8BFE\u5802\uFF0C\u5B66\u751F\u7528\u6237\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE ")}),!0):!1,getExamRestrictionInfo=i=>{const f=[];return i.is_locked&&f.push("\u8003\u8BD5\u89E3\u9501\u7801"),i.login_restrict&&f.push("\u8003\u8BD5\u767B\u5F55\u9650\u5236"),i.screen_open&&f.push("\u5207\u5C4F\u540E\u5F3A\u5236\u4EA4\u5377"),i.ip_bind&&f.push("IP\u5730\u5740\u7ED1\u5B9A"),(i.ip_limit==="pub"||i.ip_limit==="inner")&&f.push("\u9650\u5236\u8003\u8BD5\u8BBF\u95EEIP"),i.open_camera&&f.push("\u8003\u8BD5\u4E2D\u542F\u7528\u62CD\u7167\u529F\u80FD\u8FDB\u884C\u76D1\u8003\u548C\u884C\u4E3A\u5206\u6790"),i.identity_verify&&f.push("\u8003\u8BD5\u524D\u4EBA\u8138\u8EAB\u4EFD\u6838\u9A8C"),i.open_phone_video_recording&&f.push("\u8003\u8BD5\u4E2D\u5F00\u542F\u624B\u673A\u89C6\u9891\u5F55\u5236"),f.length>0?f.join("\u3001"):""},releaseRuleDataAdjust=i=>{const f=i.reduce((t,r)=>{const n=`${r.publish_time}_${r.end_time}_${r.is_admin}`;return t[n]?(t[n].group_name.push(r.group_name),t[n].group_id.push(r.group_id)):t[n]={publish_time:r.publish_time,end_time:r.end_time,is_admin:r.is_admin,group_name:[r.group_name],group_id:[r.group_id]},t},{});return Object.values(f).map(t=>__spreadProps(__spreadValues({},t),{group_name:t.group_name.flat(),group_id:t.group_id.flat()}))},releaseRuleDataSmartPlan=i=>{console.log(i);const f=i.reduce((t,r)=>{const n=`${r.start_at}_${r.end_at}_${r.lesson_mode}`;return t[n]?(t[n].group_name.push(r.group_name),t[n].group_id.push(r.group_id)):t[n]={start_at:r.start_at,end_at:r.end_at,is_admin:r.is_admin,group_name:[r.group_name],group_id:[r.group_id],lesson_mode:r.lesson_mode,status:r.status},t},{});return Object.values(f).map(t=>__spreadProps(__spreadValues({},t),{group_name:t.group_name.flat(),group_id:t.group_id.flat()}))},aiReviewConfigformatChecks=(i,f=!0)=>{if(!i||i.length===0)return!0;const e=new Set,t=new Set;let r=!0,n=!0,a=!0,s=!0,u=!0;const c=i==null?void 0:i.reduce((o,d)=>{e!=null&&e.has(d.name)&&(r=!1),d.name||(a=!1),e==null||e.add(d.name),t!=null&&t.has(d.content)&&(n=!1),d.content||(s=!1),d.weight||(u=!1),t==null||t.add(d.content);const m=parseFloat(d.weight);return o+m},0);return r?n?parseFloat(c.toFixed(2))!=100?(f&&antd__WEBPACK_IMPORTED_MODULE_12__.ZP.warning("\u6240\u6709\u8BC4\u5206\u70B9\u7684\u6743\u91CD\u4E4B\u548C\u5FC5\u987B\u4E3A100%"),!1):!(!a||!s||!u):(f&&antd__WEBPACK_IMPORTED_MODULE_12__.ZP.warning("\u8BC4\u5206\u6807\u51C6\u5185\u5BB9\u4E0D\u80FD\u91CD\u590D!"),!1):(f&&antd__WEBPACK_IMPORTED_MODULE_12__.ZP.warning("\u8BC4\u5206\u70B9\u5185\u5BB9\u4E0D\u80FD\u91CD\u590D!"),!1)},storageHomeworkId=i=>{localStorage.setItem("homework_common_id",i)},getStorageHomeworkId=()=>{var i=localStorage.getItem("homework_common_id");return i},locationPoint=()=>{var i;let f=(i=getJsonFromUrl())==null?void 0:i.position;return f=f==null?void 0:f.split(","),{keywords:(f==null?void 0:f[0])||"",classifyType:(f==null?void 0:f[1])||"All",stageId:(f==null?void 0:f[2])||"",expandId:(f==null?void 0:f[3])||"",itemId:(f==null?void 0:f[4])||"",serial:(f==null?void 0:f[5])||""}},checkVersion=i=>{if((0,_utils_authority__WEBPACK_IMPORTED_MODULE_1__.k5)())return i({type:"user/setActionTabs",payload:{key:"\u6682\u65E0\u6743\u9650"}}),!0}},93490:function(i,f,e){"use strict";e.d(f,{t:function(){return t}});const t=n=>{var a=/^(\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 a.test(n)},r=n=>{var a=/^(\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 a.test(n)}},9139:function(i,f,e){"use strict";e.d(f,{Il:function(){return s},Ov:function(){return u},T$:function(){return o}});var t=e(38127),r=e(59301),n=e(35338),a=["element"],s=r.createContext({});function u(){return r.useContext(s)}function c(){var b=(0,n.TH)(),g=u(),P=g.clientRoutes,O=(0,n.fp)(P,b.pathname);return O||[]}function o(){var b,g=c().slice(-1),P=((b=g[0])===null||b===void 0?void 0:b.route)||{},O=P.element,S=(0,t.Z)(P,a);return S}function d(){var b=c(),g=u(),P=g.serverLoaderData,O=g.basename,S=React.useState(function(){var D={},T=!1;return b.forEach(function(k){var R=P[k.route.id];R&&(Object.assign(D,R),T=!0)}),T?D:void 0}),I=_slicedToArray(S,2),E=I[0],A=I[1];return React.useEffect(function(){window.__UMI_LOADER_DATA__||Promise.all(b.filter(function(D){return D.route.hasServerLoader}).map(function(D){return new Promise(function(T){fetchServerLoader({id:D.route.id,basename:O,cb:T})})})).then(function(D){if(D.length){var T={};D.forEach(function(k){Object.assign(T,k)}),A(T)}})},[]),{data:E}}function m(){var b=useRouteData(),g=u();return{data:g.clientLoaderData[b.route.id]}}function p(){var b=d(),g=m();return{data:_objectSpread(_objectSpread({},b.data),g.data)}}},91392:function(i){var f={en_GB:"en-gb",en_US:"en",zh_CN:"zh-cn",zh_TW:"zh-tw"},e=function(r){var n=f[r];return n||r.split("_")[0]};i.exports=function(t,r,n){var a=r.prototype.locale;r.prototype.locale=function(s){return typeof s=="string"&&(s=e(s)),a.call(this,s)}}},15565:function(i,f,e){"use strict";var t=e(59301),r=e(41799),n=e(99571),a=e(61670);function s(c){return!!(c!=null&&c.then)}const u=c=>{const{type:o,children:d,prefixCls:m,buttonProps:p,close:b,autoFocus:g,emitEvent:P,isSilent:O,quitOnNullishReturnValue:S,actionFn:I}=c,E=t.useRef(!1),A=t.useRef(null),[D,T]=(0,r.Z)(!1),k=function(){b==null||b.apply(void 0,arguments)};t.useEffect(()=>{let L=null;return g&&(L=setTimeout(()=>{var K;(K=A.current)===null||K===void 0||K.focus({preventScroll:!0})})),()=>{L&&clearTimeout(L)}},[]);const R=L=>{s(L)&&(T(!0),L.then(function(){T(!1,!0),k.apply(void 0,arguments),E.current=!1},K=>{if(T(!1,!0),E.current=!1,!(O!=null&&O()))return Promise.reject(K)}))},F=L=>{if(E.current)return;if(E.current=!0,!I){k();return}let K;if(P){if(K=I(L),S&&!s(K)){E.current=!1,k(L);return}}else if(I.length)K=I(b),E.current=!1;else if(K=I(),!s(K)){k();return}R(K)};return t.createElement(n.ZP,Object.assign({},(0,a.nx)(o),{onClick:F,loading:D,prefixCls:m},p,{ref:A}),d)};f.Z=u},62487:function(i,f,e){"use strict";var t=e(59301),r=e(56553),n=e(70045);const a=s=>{const{space:u,form:c,children:o}=s;if(o==null)return null;let d=o;return c&&(d=t.createElement(r.Ux,{override:!0,status:!0},d)),u&&(d=t.createElement(n.BR,null,d)),d};f.Z=a},45915:function(i,f,e){"use strict";e.d(f,{i:function(){return s}});var t=e(59301),r=e(18929),n=e(60840),a=e(48755);function s(c){return o=>t.createElement(n.ZP,{theme:{token:{motion:!1,zIndexPopupBase:0}}},t.createElement(c,Object.assign({},o)))}const u=(c,o,d,m,p)=>s(g=>{const{prefixCls:P,style:O}=g,S=t.useRef(null),[I,E]=t.useState(0),[A,D]=t.useState(0),[T,k]=(0,r.Z)(!1,{value:g.open}),{getPrefixCls:R}=t.useContext(a.E_),F=R(m||"select",P);t.useEffect(()=>{if(k(!0),typeof ResizeObserver!="undefined"){const U=new ResizeObserver(N=>{const G=N[0].target;E(G.offsetHeight+8),D(G.offsetWidth)}),Y=setInterval(()=>{var N;const G=p?`.${p(F)}`:`.${F}-dropdown`,V=(N=S.current)===null||N===void 0?void 0:N.querySelector(G);V&&(clearInterval(Y),U.observe(V))},10);return()=>{clearInterval(Y),U.disconnect()}}},[]);let L=Object.assign(Object.assign({},g),{style:Object.assign(Object.assign({},O),{margin:0}),open:T,visible:T,getPopupContainer:()=>S.current});d&&(L=d(L)),o&&Object.assign(L,{[o]:{overflow:{adjustX:!1,adjustY:!1}}});const K={paddingBottom:I,position:"relative",minWidth:A};return t.createElement("div",{ref:S,style:K},t.createElement(c,Object.assign({},L)))});f.Z=u},78776:function(i,f,e){"use strict";e.d(f,{Z:function(){return o},w:function(){return a}});var t=e(59301),r=e(99267),n=e(26112);function a(d){if(d)return{closable:d.closable,closeIcon:d.closeIcon}}function s(d){const{closable:m,closeIcon:p}=d||{};return t.useMemo(()=>{if(!m&&(m===!1||p===!1||p===null))return!1;if(m===void 0&&p===void 0)return null;let b={closeIcon:typeof p!="boolean"&&p!==null?p:void 0};return m&&typeof m=="object"&&(b=Object.assign(Object.assign({},b),m)),b},[m,p])}function u(){const d={};for(var m=arguments.length,p=new Array(m),b=0;b{g&&Object.keys(g).forEach(P=>{g[P]!==void 0&&(d[P]=g[P])})}),d}const c={};function o(d,m){let p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:c;const b=s(d),g=s(m),P=typeof b!="boolean"?!!(b!=null&&b.disabled):!1,O=t.useMemo(()=>Object.assign({closeIcon:t.createElement(r.Z,null)},p),[p]),S=t.useMemo(()=>b===!1?!1:b?u(O,g,b):g===!1?!1:g?u(O,g):O.closable?O:!1,[b,g,O]);return t.useMemo(()=>{if(S===!1)return[!1,null,P];const{closeIconRender:I}=O,{closeIcon:E}=S;let A=E;if(A!=null){I&&(A=I(E));const D=(0,n.Z)(S,!0);Object.keys(D).length&&(A=t.isValidElement(A)?t.cloneElement(A,D):t.createElement("span",Object.assign({},D),A))}return[!0,A,P]},[S,O])}},40192:function(i,f,e){"use strict";e.d(f,{Z:function(){return r}});var t=e(59301);function r(){const[,n]=t.useReducer(a=>a+1,0);return n}},75030:function(i,f,e){"use strict";e.d(f,{Cn:function(){return p},u6:function(){return u}});var t=e(59301),r=e(57700),n=e(55743);const a=100,u=a*10,c=u+a,o={Modal:a,Drawer:a,Popover:a,Popconfirm:a,Tooltip:a,Tour:a,FloatButton:a},d={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function m(b){return b in o}const p=(b,g)=>{const[,P]=(0,r.ZP)(),O=t.useContext(n.Z),S=m(b);let I;if(g!==void 0)I=[g,g];else{let E=O!=null?O:0;S?E+=(O?0:P.zIndexPopupBase)+o[b]:E+=d[b],I=[O===void 0?g:E,E]}return I}},86641:function(i,f,e){"use strict";e.d(f,{m:function(){return o}});var t=e(48755);const r=()=>({height:0,opacity:0}),n=d=>{const{scrollHeight:m}=d;return{height:m,opacity:1}},a=d=>({height:d?d.offsetHeight:0}),s=(d,m)=>(m==null?void 0:m.deadline)===!0||m.propertyName==="height",u=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:t.Rf}-motion-collapse`,onAppearStart:r,onEnterStart:r,onAppearActive:n,onEnterActive:n,onLeaveStart:a,onLeaveActive:r,onAppearEnd:s,onEnterEnd:s,onLeaveEnd:s,motionDeadline:500}},c=null,o=(d,m,p)=>p!==void 0?p:`${d}-${m}`;f.Z=u},22703:function(i,f,e){"use strict";e.d(f,{M2:function(){return r},Tm:function(){return a},wm:function(){return n}});var t=e(59301);function r(s){return s&&t.isValidElement(s)&&s.type===t.Fragment}const n=(s,u,c)=>t.isValidElement(s)?t.cloneElement(s,typeof c=="function"?c(s.props||{}):c):u;function a(s,u){return n(s,s,u)}},47999:function(i,f,e){"use strict";e.d(f,{c4:function(){return n},m9:function(){return u}});var t=e(59301),r=e(57700);const n=["xxl","xl","lg","md","sm","xs"],a=o=>({xs:`(max-width: ${o.screenXSMax}px)`,sm:`(min-width: ${o.screenSM}px)`,md:`(min-width: ${o.screenMD}px)`,lg:`(min-width: ${o.screenLG}px)`,xl:`(min-width: ${o.screenXL}px)`,xxl:`(min-width: ${o.screenXXL}px)`}),s=o=>{const d=o,m=[].concat(n).reverse();return m.forEach((p,b)=>{const g=p.toUpperCase(),P=`screen${g}Min`,O=`screen${g}`;if(!(d[P]<=d[O]))throw new Error(`${P}<=${O} fails : !(${d[P]}<=${d[O]})`);if(b{if(d){for(const m of n)if(o[m]&&(d==null?void 0:d[m])!==void 0)return d[m]}},c=()=>{const[,o]=(0,r.ZP)(),d=a(s(o));return t.useMemo(()=>{const m=new Map;let p=-1,b={};return{responsiveMap:d,matchHandlers:{},dispatch(g){return b=g,m.forEach(P=>P(b)),m.size>=1},subscribe(g){return m.size||this.register(),p+=1,m.set(p,g),g(b),p},unsubscribe(g){m.delete(g),m.size||this.unregister()},register(){Object.keys(d).forEach(g=>{const P=d[g],O=I=>{let{matches:E}=I;this.dispatch(Object.assign(Object.assign({},b),{[g]:E}))},S=window.matchMedia(P);S.addListener(O),this.matchHandlers[P]={mql:S,listener:O},O(S)})},unregister(){Object.keys(d).forEach(g=>{const P=d[g],O=this.matchHandlers[P];O==null||O.mql.removeListener(O==null?void 0:O.listener)}),m.clear()}}},[o])};f.ZP=c},32383:function(i,f,e){"use strict";e.d(f,{G8:function(){return c},ln:function(){return o}});var t=e(59301),r=e(48736);function n(){}let a=null;function s(){a=null,rcResetWarned()}let u=null;const c=t.createContext({}),o=()=>{const m=()=>{};return m.deprecated=n,m};var d=null},12919:function(i,f,e){"use strict";e.d(f,{Z:function(){return K}});var t=e(59301),r=e(92310),n=e.n(r),a=e(29194),s=e(8654),u=e(48755),c=e(22703),o=e(16931);const d=U=>{const{componentCls:Y,colorPrimary:N}=U;return{[Y]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${N})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${U.motionEaseOutCirc}`,`opacity 2s ${U.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${U.motionDurationSlow} ${U.motionEaseInOut}`,`opacity ${U.motionDurationSlow} ${U.motionEaseInOut}`].join(",")}}}}};var m=(0,o.A1)("Wave",U=>[d(U)]),p=e(6089),b=e(16089),g=e(57700),P=e(63872),O=e(77900),S=e(11774);function I(U){return U&&U!=="#fff"&&U!=="#ffffff"&&U!=="rgb(255, 255, 255)"&&U!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(U)&&U!=="transparent"}function E(U){const{borderTopColor:Y,borderColor:N,backgroundColor:G}=getComputedStyle(U);return I(Y)?Y:I(N)?N:I(G)?G:null}function A(U){return Number.isNaN(U)?0:U}const D=U=>{const{className:Y,target:N,component:G,registerUnmount:V}=U,q=t.useRef(null),W=t.useRef(null);t.useEffect(()=>{W.current=V()},[]);const[B,Q]=t.useState(null),[M,z]=t.useState([]),[X,ne]=t.useState(0),[se,ve]=t.useState(0),[le,he]=t.useState(0),[Ve,Ye]=t.useState(0),[ft,pt]=t.useState(!1),dt={left:X,top:se,width:le,height:Ve,borderRadius:M.map(ke=>`${ke}px`).join(" ")};B&&(dt["--wave-color"]=B);function tt(){const ke=getComputedStyle(N);Q(E(N));const Be=ke.position==="static",{borderLeftWidth:at,borderTopWidth:xt}=ke;ne(Be?N.offsetLeft:A(-parseFloat(at))),ve(Be?N.offsetTop:A(-parseFloat(xt))),he(N.offsetWidth),Ye(N.offsetHeight);const{borderTopLeftRadius:Rt,borderTopRightRadius:At,borderBottomLeftRadius:Me,borderBottomRightRadius:Je}=ke;z([Rt,At,Je,Me].map(ht=>A(parseFloat(ht))))}if(t.useEffect(()=>{if(N){const ke=(0,b.Z)(()=>{tt(),pt(!0)});let Be;return typeof ResizeObserver!="undefined"&&(Be=new ResizeObserver(tt),Be.observe(N)),()=>{b.Z.cancel(ke),Be==null||Be.disconnect()}}},[]),!ft)return null;const me=(G==="Checkbox"||G==="Radio")&&(N==null?void 0:N.classList.contains(P.A));return t.createElement(O.default,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(ke,Be)=>{var at,xt;if(Be.deadline||Be.propertyName==="opacity"){const Rt=(at=q.current)===null||at===void 0?void 0:at.parentElement;(xt=W.current)===null||xt===void 0||xt.call(W).then(()=>{Rt==null||Rt.remove()})}return!1}},(ke,Be)=>{let{className:at}=ke;return t.createElement("div",{ref:(0,s.sQ)(q,Be),className:n()(Y,at,{"wave-quick":me}),style:dt})})};var k=(U,Y)=>{var N;const{component:G}=Y;if(G==="Checkbox"&&!(!((N=U.querySelector("input"))===null||N===void 0)&&N.checked))return;const V=document.createElement("div");V.style.position="absolute",V.style.left="0px",V.style.top="0px",U==null||U.insertBefore(V,U==null?void 0:U.firstChild);const q=(0,S.x)();let W=null;function B(){return W}W=q(t.createElement(D,Object.assign({},Y,{target:U,registerUnmount:B})),V)},F=(U,Y,N)=>{const{wave:G}=t.useContext(u.E_),[,V,q]=(0,g.ZP)(),W=(0,p.Z)(M=>{const z=U.current;if(G!=null&&G.disabled||!z)return;const X=z.querySelector(`.${P.A}`)||z,{showEffect:ne}=G||{};(ne||k)(X,{className:Y,token:V,component:N,event:M,hashId:q})}),B=t.useRef(null);return M=>{b.Z.cancel(B.current),B.current=(0,b.Z)(()=>{W(M)})}},K=U=>{const{children:Y,disabled:N,component:G}=U,{getPrefixCls:V}=(0,t.useContext)(u.E_),q=(0,t.useRef)(null),W=V("wave"),[,B]=m(W),Q=F(q,n()(W,B),G);if(t.useEffect(()=>{const z=q.current;if(!z||z.nodeType!==1||N)return;const X=ne=>{!(0,a.Z)(ne.target)||!z.getAttribute||z.getAttribute("disabled")||z.disabled||z.className.includes("disabled")||z.className.includes("-leave")||Q(ne)};return z.addEventListener("click",X,!0),()=>{z.removeEventListener("click",X,!0)}},[N]),!t.isValidElement(Y))return Y!=null?Y:null;const M=(0,s.Yr)(Y)?(0,s.sQ)((0,s.C4)(Y),q):q;return(0,c.Tm)(Y,{ref:M})}},63872:function(i,f,e){"use strict";e.d(f,{A:function(){return r}});var t=e(48755);const r=`${t.Rf}-wave-target`},55743:function(i,f,e){"use strict";var t=e(59301);const r=t.createContext(void 0);f.Z=r},17004:function(i,f,e){"use strict";e.d(f,{J:function(){return r}});var t=e(59301);const r=t.createContext({}),n=t.createContext({message:{},notification:{},modal:{}});var a=null},61670:function(i,f,e){"use strict";e.d(f,{Dn:function(){return d},aG:function(){return u},hU:function(){return p},nx:function(){return c}});var t=e(3300),r=e(59301),n=e(22703),a=e(34998);const s=/^[\u4E00-\u9FA5]{2}$/,u=s.test.bind(s);function c(I){return I==="danger"?{danger:!0}:{type:I}}function o(I){return typeof I=="string"}function d(I){return I==="text"||I==="link"}function m(I,E){if(I==null)return;const A=E?" ":"";return typeof I!="string"&&typeof I!="number"&&o(I.type)&&u(I.props.children)?(0,n.Tm)(I,{children:I.props.children.split("").join(A)}):o(I)?u(I)?r.createElement("span",null,I.split("").join(A)):r.createElement("span",null,I):(0,n.M2)(I)?r.createElement("span",null,I):I}function p(I,E){let A=!1;const D=[];return r.Children.forEach(I,T=>{const k=typeof T,R=k==="string"||k==="number";if(A&&R){const F=D.length-1,L=D[F];D[F]=`${L}${T}`}else D.push(T);A=R}),r.Children.map(D,T=>m(T,E))}const b=null,g=null,P=null,O=null,S=["default","primary","danger"].concat((0,t.Z)(a.i))},99571:function(i,f,e){"use strict";e.d(f,{ZP:function(){return vr}});var t=e(59301),r=e(92310),n=e.n(r),a=e(2738),s=e(8654),u=e(12919),c=e(48755),o=e(2171),d=e(31756),m=e(70045),p=e(57700),b=function(ie,ct){var Xt={};for(var Wt in ie)Object.prototype.hasOwnProperty.call(ie,Wt)&&ct.indexOf(Wt)<0&&(Xt[Wt]=ie[Wt]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,Wt=Object.getOwnPropertySymbols(ie);Et{const{getPrefixCls:ct,direction:Xt}=t.useContext(c.E_),{prefixCls:Wt,size:Et,className:St}=ie,Mt=b(ie,["prefixCls","size","className"]),Bt=ct("btn-group",Wt),[,,nr]=(0,p.ZP)(),pr=t.useMemo(()=>{switch(Et){case"large":return"lg";case"small":return"sm";default:return""}},[Et]),mt=n()(Bt,{[`${Bt}-${pr}`]:pr,[`${Bt}-rtl`]:Xt==="rtl"},St,nr);return t.createElement(g.Provider,{value:Et},t.createElement("div",Object.assign({},Mt,{className:mt})))},S=e(61670),I=e(58617),E=e(77900),D=(0,t.forwardRef)((ie,ct)=>{const{className:Xt,style:Wt,children:Et,prefixCls:St}=ie,Mt=n()(`${St}-icon`,Xt);return t.createElement("span",{ref:ct,className:Mt,style:Wt},Et)});const T=(0,t.forwardRef)((ie,ct)=>{const{prefixCls:Xt,className:Wt,style:Et,iconClassName:St}=ie,Mt=n()(`${Xt}-loading-icon`,Wt);return t.createElement(D,{prefixCls:Xt,className:Mt,style:Et,ref:ct},t.createElement(I.Z,{className:St}))}),k=()=>({width:0,opacity:0,transform:"scale(0)"}),R=ie=>({width:ie.scrollWidth,opacity:1,transform:"scale(1)"});var L=ie=>{const{prefixCls:ct,loading:Xt,existIcon:Wt,className:Et,style:St,mount:Mt}=ie,Bt=!!Xt;return Wt?t.createElement(T,{prefixCls:ct,className:Et,style:St}):t.createElement(E.default,{visible:Bt,motionName:`${ct}-loading-icon-motion`,motionAppear:!Mt,motionEnter:!Mt,motionLeave:!Mt,removeOnLeave:!0,onAppearStart:k,onAppearActive:R,onEnterStart:k,onEnterActive:R,onLeaveStart:R,onLeaveActive:k},(nr,pr)=>{let{className:mt,style:qe}=nr;const Ne=Object.assign(Object.assign({},St),qe);return t.createElement(T,{prefixCls:ct,className:n()(Et,mt),style:Ne,ref:pr})})},K=e(36237),U=e(63356),Y=e(34998),N=e(51636),G=e(16931);const V=(ie,ct)=>({[`> span, > ${ie}`]:{"&:not(:last-child)":{[`&, & > ${ie}`]:{"&:not(:disabled)":{borderInlineEndColor:ct}}},"&:not(:first-child)":{[`&, & > ${ie}`]:{"&:not(:disabled)":{borderInlineStartColor:ct}}}}});var W=ie=>{const{componentCls:ct,fontSize:Xt,lineWidth:Wt,groupBorderColor:Et,colorErrorHover:St}=ie;return{[`${ct}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${ct}`]:{"&:not(:last-child)":{[`&, & > ${ct}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:ie.calc(Wt).mul(-1).equal(),[`&, & > ${ct}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[ct]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${ct}-icon-only`]:{fontSize:Xt}},V(`${ct}-primary`,Et),V(`${ct}-danger`,St)]}},B=e(33377),Q=e(93912),M=e(76196);const z=(ie,ct)=>(ie==null?void 0:ie.replace(/[^\w/]/g,"").slice(0,ct?8:6))||"",X=(ie,ct)=>ie?z(ie,ct):"";let ne=function(){function ie(ct){(0,B.Z)(this,ie);var Xt;if(this.cleared=!1,ct instanceof ie){this.metaColor=ct.metaColor.clone(),this.colors=(Xt=ct.colors)===null||Xt===void 0?void 0:Xt.map(Et=>({color:new ie(Et.color),percent:Et.percent})),this.cleared=ct.cleared;return}const Wt=Array.isArray(ct);Wt&&ct.length?(this.colors=ct.map(Et=>{let{color:St,percent:Mt}=Et;return{color:new ie(St),percent:Mt}}),this.metaColor=new M.Color(this.colors[0].color.metaColor)):this.metaColor=new M.Color(Wt?"":ct),(!ct||Wt&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return(0,Q.Z)(ie,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return X(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:Xt}=this;return Xt?`linear-gradient(90deg, ${Xt.map(Et=>`${Et.color.toRgbString()} ${Et.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(Xt){return!Xt||this.isGradient()!==Xt.isGradient()?!1:this.isGradient()?this.colors.length===Xt.colors.length&&this.colors.every((Wt,Et)=>{const St=Xt.colors[Et];return Wt.percent===St.percent&&Wt.color.equals(St.color)}):this.toHexString()===Xt.toHexString()}}])}();var se=e(18929);const ve=ie=>ie.map(ct=>(ct.colors=ct.colors.map(generateColor),ct)),le=(ie,ct)=>{const{r:Xt,g:Wt,b:Et,a:St}=ie.toRgb(),Mt=new M.Color(ie.toRgbString()).onBackground(ct).toHsv();return St<=.5?Mt.v>.5:Xt*.299+Wt*.587+Et*.114>192},he=(ie,ct)=>{var Xt;return`panel-${(Xt=ie.key)!==null&&Xt!==void 0?Xt:ct}`},Ve=ie=>{let{prefixCls:ct,presets:Xt,value:Wt,onChange:Et}=ie;const[St]=useLocale("ColorPicker"),[,Mt]=useToken(),[Bt]=useMergedState(ve(Xt),{value:ve(Xt),postState:ve}),nr=`${ct}-presets`,pr=useMemo(()=>Bt.reduce((Ne,Fe,$e)=>{const{defaultOpen:Lt=!0}=Fe;return Lt&&Ne.push(he(Fe,$e)),Ne},[]),[Bt]),mt=Ne=>{Et==null||Et(Ne)},qe=Bt.map((Ne,Fe)=>{var $e;return{key:he(Ne,Fe),label:React.createElement("div",{className:`${nr}-label`},Ne==null?void 0:Ne.label),children:React.createElement("div",{className:`${nr}-items`},Array.isArray(Ne==null?void 0:Ne.colors)&&(($e=Ne.colors)===null||$e===void 0?void 0:$e.length)>0?Ne.colors.map((Lt,Nt)=>React.createElement(ColorBlock,{key:`preset-${Nt}-${Lt.toHexString()}`,color:generateColor(Lt).toRgbString(),prefixCls:ct,className:classNames(`${nr}-color`,{[`${nr}-color-checked`]:Lt.toHexString()===(Wt==null?void 0:Wt.toHexString()),[`${nr}-color-bright`]:le(Lt,Mt.colorBgElevated)}),onClick:()=>mt(Lt)})):React.createElement("span",{className:`${nr}-empty`},St.presetEmpty))}});return React.createElement("div",{className:nr},React.createElement(Collapse,{defaultActiveKey:pr,ghost:!0,items:qe}))};var Ye=null,ft=e(45156),pt=e(28620);const dt=ie=>{const{paddingInline:ct,onlyIconSize:Xt}=ie;return(0,N.mergeToken)(ie,{buttonPaddingHorizontal:ct,buttonPaddingVertical:0,buttonIconOnlyFontSize:Xt})},tt=ie=>{var ct,Xt,Wt,Et,St,Mt;const Bt=(ct=ie.contentFontSize)!==null&&ct!==void 0?ct:ie.fontSize,nr=(Xt=ie.contentFontSizeSM)!==null&&Xt!==void 0?Xt:ie.fontSize,pr=(Wt=ie.contentFontSizeLG)!==null&&Wt!==void 0?Wt:ie.fontSizeLG,mt=(Et=ie.contentLineHeight)!==null&&Et!==void 0?Et:(0,ft.D)(Bt),qe=(St=ie.contentLineHeightSM)!==null&&St!==void 0?St:(0,ft.D)(nr),Ne=(Mt=ie.contentLineHeightLG)!==null&&Mt!==void 0?Mt:(0,ft.D)(pr),Fe=le(new ne(ie.colorBgSolid),"#fff")?"#000":"#fff",$e=Y.i.reduce((Lt,Nt)=>Object.assign(Object.assign({},Lt),{[`${Nt}ShadowColor`]:`0 ${(0,K.unit)(ie.controlOutlineWidth)} 0 ${(0,pt.Z)(ie[`${Nt}1`],ie.colorBgContainer)}`}),{});return Object.assign(Object.assign({},$e),{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:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:ie.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:ie.colorText,textTextHoverColor:ie.colorText,textTextActiveColor:ie.colorText,textHoverBg:ie.colorFillTertiary,defaultColor:ie.colorText,defaultBg:ie.colorBgContainer,defaultBorderColor:ie.colorBorder,defaultBorderColorDisabled:ie.colorBorder,defaultHoverBg:ie.colorBgContainer,defaultHoverColor:ie.colorPrimaryHover,defaultHoverBorderColor:ie.colorPrimaryHover,defaultActiveBg:ie.colorBgContainer,defaultActiveColor:ie.colorPrimaryActive,defaultActiveBorderColor:ie.colorPrimaryActive,solidTextColor:Fe,contentFontSize:Bt,contentFontSizeSM:nr,contentFontSizeLG:pr,contentLineHeight:mt,contentLineHeightSM:qe,contentLineHeightLG:Ne,paddingBlock:Math.max((ie.controlHeight-Bt*mt)/2-ie.lineWidth,0),paddingBlockSM:Math.max((ie.controlHeightSM-nr*qe)/2-ie.lineWidth,0),paddingBlockLG:Math.max((ie.controlHeightLG-pr*Ne)/2-ie.lineWidth,0)})},me=ie=>{const{componentCls:ct,iconCls:Xt,fontWeight:Wt,opacityLoading:Et,motionDurationSlow:St,motionEaseInOut:Mt,marginXS:Bt,calc:nr}=ie;return{[ct]:{outline:"none",position:"relative",display:"inline-flex",gap:ie.marginXS,alignItems:"center",justifyContent:"center",fontWeight:Wt,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${(0,K.unit)(ie.lineWidth)} ${ie.lineType} transparent`,cursor:"pointer",transition:`all ${ie.motionDurationMid} ${ie.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:ie.colorText,"&:disabled > *":{pointerEvents:"none"},[`${ct}-icon > svg`]:(0,U.Ro)(),"> a":{color:"currentColor"},"&:not(:disabled)":(0,U.Qy)(ie),[`&${ct}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${ct}-two-chinese-chars > *:not(${Xt})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${ct}-icon-only`]:{paddingInline:0,[`&${ct}-compact-item`]:{flex:"none"},[`&${ct}-round`]:{width:"auto"}},[`&${ct}-loading`]:{opacity:Et,cursor:"default"},[`${ct}-loading-icon`]:{transition:["width","opacity","margin"].map(pr=>`${pr} ${St} ${Mt}`).join(",")},[`&:not(${ct}-icon-end)`]:{[`${ct}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:nr(Bt).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:nr(Bt).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${ct}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:nr(Bt).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:nr(Bt).mul(-1).equal()}}}}}},ke=(ie,ct,Xt)=>({[`&:not(:disabled):not(${ie}-disabled)`]:{"&:hover":ct,"&:active":Xt}}),Be=ie=>({minWidth:ie.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),at=ie=>({borderRadius:ie.controlHeight,paddingInlineStart:ie.calc(ie.controlHeight).div(2).equal(),paddingInlineEnd:ie.calc(ie.controlHeight).div(2).equal()}),xt=ie=>({cursor:"not-allowed",borderColor:ie.borderColorDisabled,color:ie.colorTextDisabled,background:ie.colorBgContainerDisabled,boxShadow:"none"}),Rt=(ie,ct,Xt,Wt,Et,St,Mt,Bt)=>({[`&${ie}-background-ghost`]:Object.assign(Object.assign({color:Xt||void 0,background:ct,borderColor:Wt||void 0,boxShadow:"none"},ke(ie,Object.assign({background:ct},Mt),Object.assign({background:ct},Bt))),{"&:disabled":{cursor:"not-allowed",color:Et||void 0,borderColor:St||void 0}})}),At=ie=>({[`&:disabled, &${ie.componentCls}-disabled`]:Object.assign({},xt(ie))}),Me=ie=>({[`&:disabled, &${ie.componentCls}-disabled`]:{cursor:"not-allowed",color:ie.colorTextDisabled}}),Je=(ie,ct,Xt,Wt)=>{const St=Wt&&["link","text"].includes(Wt)?Me:At;return Object.assign(Object.assign({},St(ie)),ke(ie.componentCls,ct,Xt))},ht=(ie,ct,Xt,Wt,Et)=>({[`&${ie.componentCls}-variant-solid`]:Object.assign({color:ct,background:Xt},Je(ie,Wt,Et))}),Ze=(ie,ct,Xt,Wt,Et)=>({[`&${ie.componentCls}-variant-outlined, &${ie.componentCls}-variant-dashed`]:Object.assign({borderColor:ct,background:Xt},Je(ie,Wt,Et))}),Pe=ie=>({[`&${ie.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),ue=(ie,ct,Xt,Wt)=>({[`&${ie.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:ct},Je(ie,Xt,Wt))}),ye=(ie,ct,Xt,Wt,Et)=>({[`&${ie.componentCls}-variant-${Xt}`]:Object.assign({color:ct,boxShadow:"none"},Je(ie,Wt,Et,Xt))}),Oe=ie=>{const{componentCls:ct}=ie;return Y.i.reduce((Xt,Wt)=>{const Et=ie[`${Wt}6`],St=ie[`${Wt}1`],Mt=ie[`${Wt}5`],Bt=ie[`${Wt}2`],nr=ie[`${Wt}3`],pr=ie[`${Wt}7`];return Object.assign(Object.assign({},Xt),{[`&${ct}-color-${Wt}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:Et,boxShadow:ie[`${Wt}ShadowColor`]},ht(ie,ie.colorTextLightSolid,Et,{background:Mt},{background:pr})),Ze(ie,Et,ie.colorBgContainer,{color:Mt,borderColor:Mt,background:ie.colorBgContainer},{color:pr,borderColor:pr,background:ie.colorBgContainer})),Pe(ie)),ue(ie,St,{background:Bt},{background:nr})),ye(ie,Et,"link",{color:Mt},{color:pr})),ye(ie,Et,"text",{color:Mt,background:St},{color:pr,background:nr}))})},{})},nt=ie=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:ie.defaultColor,boxShadow:ie.defaultShadow},ht(ie,ie.solidTextColor,ie.colorBgSolid,{color:ie.solidTextColor,background:ie.colorBgSolidHover},{color:ie.solidTextColor,background:ie.colorBgSolidActive})),Pe(ie)),ue(ie,ie.colorFillTertiary,{background:ie.colorFillSecondary},{background:ie.colorFill})),Rt(ie.componentCls,ie.ghostBg,ie.defaultGhostColor,ie.defaultGhostBorderColor,ie.colorTextDisabled,ie.colorBorder)),ye(ie,ie.textTextColor,"link",{color:ie.colorLinkHover,background:ie.linkHoverBg},{color:ie.colorLinkActive})),bt=ie=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:ie.colorPrimary,boxShadow:ie.primaryShadow},Ze(ie,ie.colorPrimary,ie.colorBgContainer,{color:ie.colorPrimaryTextHover,borderColor:ie.colorPrimaryHover,background:ie.colorBgContainer},{color:ie.colorPrimaryTextActive,borderColor:ie.colorPrimaryActive,background:ie.colorBgContainer})),Pe(ie)),ue(ie,ie.colorPrimaryBg,{background:ie.colorPrimaryBgHover},{background:ie.colorPrimaryBorder})),ye(ie,ie.colorPrimaryText,"text",{color:ie.colorPrimaryTextHover,background:ie.colorPrimaryBg},{color:ie.colorPrimaryTextActive,background:ie.colorPrimaryBorder})),ye(ie,ie.colorPrimaryText,"link",{color:ie.colorPrimaryTextHover,background:ie.linkHoverBg},{color:ie.colorPrimaryTextActive})),Rt(ie.componentCls,ie.ghostBg,ie.colorPrimary,ie.colorPrimary,ie.colorTextDisabled,ie.colorBorder,{color:ie.colorPrimaryHover,borderColor:ie.colorPrimaryHover},{color:ie.colorPrimaryActive,borderColor:ie.colorPrimaryActive})),ce=ie=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:ie.colorError,boxShadow:ie.dangerShadow},ht(ie,ie.dangerColor,ie.colorError,{background:ie.colorErrorHover},{background:ie.colorErrorActive})),Ze(ie,ie.colorError,ie.colorBgContainer,{color:ie.colorErrorHover,borderColor:ie.colorErrorBorderHover},{color:ie.colorErrorActive,borderColor:ie.colorErrorActive})),Pe(ie)),ue(ie,ie.colorErrorBg,{background:ie.colorErrorBgFilledHover},{background:ie.colorErrorBgActive})),ye(ie,ie.colorError,"text",{color:ie.colorErrorHover,background:ie.colorErrorBg},{color:ie.colorErrorHover,background:ie.colorErrorBgActive})),ye(ie,ie.colorError,"link",{color:ie.colorErrorHover},{color:ie.colorErrorActive})),Rt(ie.componentCls,ie.ghostBg,ie.colorError,ie.colorError,ie.colorTextDisabled,ie.colorBorder,{color:ie.colorErrorHover,borderColor:ie.colorErrorHover},{color:ie.colorErrorActive,borderColor:ie.colorErrorActive})),we=ie=>Object.assign(Object.assign({},ye(ie,ie.colorLink,"link",{color:ie.colorLinkHover},{color:ie.colorLinkActive})),Rt(ie.componentCls,ie.ghostBg,ie.colorInfo,ie.colorInfo,ie.colorTextDisabled,ie.colorBorder,{color:ie.colorInfoHover,borderColor:ie.colorInfoHover},{color:ie.colorInfoActive,borderColor:ie.colorInfoActive})),lt=ie=>{const{componentCls:ct}=ie;return Object.assign({[`${ct}-color-default`]:nt(ie),[`${ct}-color-primary`]:bt(ie),[`${ct}-color-dangerous`]:ce(ie),[`${ct}-color-link`]:we(ie)},Oe(ie))},Qe=ie=>Object.assign(Object.assign(Object.assign(Object.assign({},Ze(ie,ie.defaultBorderColor,ie.defaultBg,{color:ie.defaultHoverColor,borderColor:ie.defaultHoverBorderColor,background:ie.defaultHoverBg},{color:ie.defaultActiveColor,borderColor:ie.defaultActiveBorderColor,background:ie.defaultActiveBg})),ye(ie,ie.textTextColor,"text",{color:ie.textTextHoverColor,background:ie.textHoverBg},{color:ie.textTextActiveColor,background:ie.colorBgTextActive})),ht(ie,ie.primaryColor,ie.colorPrimary,{background:ie.colorPrimaryHover,color:ie.primaryColor},{background:ie.colorPrimaryActive,color:ie.primaryColor})),ye(ie,ie.colorLink,"link",{color:ie.colorLinkHover,background:ie.linkHoverBg},{color:ie.colorLinkActive})),Ge=function(ie){let ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:Xt,controlHeight:Wt,fontSize:Et,borderRadius:St,buttonPaddingHorizontal:Mt,iconCls:Bt,buttonPaddingVertical:nr,buttonIconOnlyFontSize:pr}=ie;return[{[ct]:{fontSize:Et,height:Wt,padding:`${(0,K.unit)(nr)} ${(0,K.unit)(Mt)}`,borderRadius:St,[`&${Xt}-icon-only`]:{width:Wt,[Bt]:{fontSize:pr}}}},{[`${Xt}${Xt}-circle${ct}`]:Be(ie)},{[`${Xt}${Xt}-round${ct}`]:at(ie)}]},ot=ie=>{const ct=(0,N.mergeToken)(ie,{fontSize:ie.contentFontSize});return Ge(ct,ie.componentCls)},Dt=ie=>{const ct=(0,N.mergeToken)(ie,{controlHeight:ie.controlHeightSM,fontSize:ie.contentFontSizeSM,padding:ie.paddingXS,buttonPaddingHorizontal:ie.paddingInlineSM,buttonPaddingVertical:0,borderRadius:ie.borderRadiusSM,buttonIconOnlyFontSize:ie.onlyIconSizeSM});return Ge(ct,`${ie.componentCls}-sm`)},Qt=ie=>{const ct=(0,N.mergeToken)(ie,{controlHeight:ie.controlHeightLG,fontSize:ie.contentFontSizeLG,buttonPaddingHorizontal:ie.paddingInlineLG,buttonPaddingVertical:0,borderRadius:ie.borderRadiusLG,buttonIconOnlyFontSize:ie.onlyIconSizeLG});return Ge(ct,`${ie.componentCls}-lg`)},Ce=ie=>{const{componentCls:ct}=ie;return{[ct]:{[`&${ct}-block`]:{width:"100%"}}}};var je=(0,G.I$)("Button",ie=>{const ct=dt(ie);return[me(ct),ot(ct),Dt(ct),Qt(ct),Ce(ct),lt(ct),Qe(ct),W(ct)]},tt,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}}),ze=e(56119);function _t(ie,ct){return{[`&-item:not(${ct}-last-item)`]:{marginBottom:ie.calc(ie.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function Tt(ie,ct){return{[`&-item:not(${ct}-first-item):not(${ct}-last-item)`]:{borderRadius:0},[`&-item${ct}-first-item:not(${ct}-last-item)`]:{[`&, &${ie}-sm, &${ie}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${ct}-last-item:not(${ct}-first-item)`]:{[`&, &${ie}-sm, &${ie}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function lr(ie){const ct=`${ie.componentCls}-compact-vertical`;return{[ct]:Object.assign(Object.assign({},_t(ie,ct)),Tt(ie.componentCls,ct))}}const cr=ie=>{const{componentCls:ct,colorPrimaryHover:Xt,lineWidth:Wt,calc:Et}=ie,St=Et(Wt).mul(-1).equal(),Mt=Bt=>{const nr=`${ct}-compact${Bt?"-vertical":""}-item${ct}-primary:not([disabled])`;return{[`${nr} + ${nr}::before`]:{position:"absolute",top:Bt?St:0,insetInlineStart:Bt?0:St,backgroundColor:Xt,content:'""',width:Bt?"100%":Wt,height:Bt?Wt:"100%"}}};return Object.assign(Object.assign({},Mt()),Mt(!0))};var Ir=(0,G.bk)(["Button","compact"],ie=>{const ct=dt(ie);return[(0,ze.c)(ct),lr(ct),cr(ct)]},tt),Sr=function(ie,ct){var Xt={};for(var Wt in ie)Object.prototype.hasOwnProperty.call(ie,Wt)&&ct.indexOf(Wt)<0&&(Xt[Wt]=ie[Wt]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,Wt=Object.getOwnPropertySymbols(ie);Et{var Xt,Wt;const{loading:Et=!1,prefixCls:St,color:Mt,variant:Bt,type:nr,danger:pr=!1,shape:mt="default",size:qe,styles:Ne,disabled:Fe,className:$e,rootClassName:Lt,children:Nt,icon:_r,iconPosition:yr="start",ghost:Jr=!1,block:vn=!1,htmlType:ar="button",classNames:Te,style:Rr={},autoInsertSpace:Le,autoFocus:Ln}=ie,ln=Sr(ie,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),$n=nr||"default",[ra,ca]=(0,t.useMemo)(()=>{if(Mt&&Bt)return[Mt,Bt];const gr=He[$n]||[];return pr?["danger",gr[1]]:gr},[nr,Mt,Bt,pr]),Ea=ra==="danger"?"dangerous":ra,{getPrefixCls:ja,direction:yn,autoInsertSpace:Wa,className:$a,style:vo,classNames:io,styles:go}=(0,c.dj)("button"),Fa=(Xt=Le!=null?Le:Wa)!==null&&Xt!==void 0?Xt:!0,ka=ja("btn",St),[sa,ea,xn]=je(ka),xa=(0,t.useContext)(o.Z),Ee=Fe!=null?Fe:xa,Un=(0,t.useContext)(g),qn=(0,t.useMemo)(()=>br(Et),[Et]),[Ga,Uo]=(0,t.useState)(qn.loading),[Ba,Ha]=(0,t.useState)(!1),Ie=(0,t.useRef)(null),be=(0,s.x1)(ct,Ie),Xe=t.Children.count(Nt)===1&&!_r&&!(0,S.Dn)(ca),$=(0,t.useRef)(!0);t.useEffect(()=>($.current=!1,()=>{$.current=!0}),[]),(0,t.useEffect)(()=>{let gr=null;qn.delay>0?gr=setTimeout(()=>{gr=null,Uo(!0)},qn.delay):Uo(qn.loading);function Cr(){gr&&(clearTimeout(gr),gr=null)}return Cr},[qn]),(0,t.useEffect)(()=>{if(!Ie.current||!Fa)return;const gr=Ie.current.textContent||"";Xe&&(0,S.aG)(gr)?Ba||Ha(!0):Ba&&Ha(!1)}),(0,t.useEffect)(()=>{Ln&&Ie.current&&Ie.current.focus()},[]);const kt=t.useCallback(gr=>{var Cr;if(Ga||Ee){gr.preventDefault();return}(Cr=ie.onClick)===null||Cr===void 0||Cr.call(ie,("href"in ie,gr))},[ie.onClick,Ga,Ee]),{compactSize:qt,compactItemClassnames:wr}=(0,m.ri)(ka,yn),Lr={large:"lg",small:"sm",middle:void 0},rt=(0,d.Z)(gr=>{var Cr,Dn;return(Dn=(Cr=qe!=null?qe:qt)!==null&&Cr!==void 0?Cr:Un)!==null&&Dn!==void 0?Dn:gr}),Se=rt&&(Wt=Lr[rt])!==null&&Wt!==void 0?Wt:"",_e=Ga?"loading":_r,De=(0,a.Z)(ln,["navigate"]),ge=n()(ka,ea,xn,{[`${ka}-${mt}`]:mt!=="default"&&mt,[`${ka}-${$n}`]:$n,[`${ka}-dangerous`]:pr,[`${ka}-color-${Ea}`]:Ea,[`${ka}-variant-${ca}`]:ca,[`${ka}-${Se}`]:Se,[`${ka}-icon-only`]:!Nt&&Nt!==0&&!!_e,[`${ka}-background-ghost`]:Jr&&!(0,S.Dn)(ca),[`${ka}-loading`]:Ga,[`${ka}-two-chinese-chars`]:Ba&&Fa&&!Ga,[`${ka}-block`]:vn,[`${ka}-rtl`]:yn==="rtl",[`${ka}-icon-end`]:yr==="end"},wr,$e,Lt,$a),Ke=Object.assign(Object.assign({},vo),Rr),ut=n()(Te==null?void 0:Te.icon,io.icon),Pt=Object.assign(Object.assign({},(Ne==null?void 0:Ne.icon)||{}),go.icon||{}),ir=_r&&!Ga?t.createElement(D,{prefixCls:ka,className:ut,style:Pt},_r):Et&&typeof Et=="object"&&Et.icon?t.createElement(D,{prefixCls:ka,className:ut,style:Pt},Et.icon):t.createElement(L,{existIcon:!!_r,prefixCls:ka,loading:Ga,mount:$.current}),xr=Nt||Nt===0?(0,S.hU)(Nt,Xe&&Fa):null;if(De.href!==void 0)return sa(t.createElement("a",Object.assign({},De,{className:n()(ge,{[`${ka}-disabled`]:Ee}),href:Ee?void 0:De.href,style:Ke,onClick:kt,ref:be,tabIndex:Ee?-1:0}),ir,xr));let Jt=t.createElement("button",Object.assign({},ln,{type:ar,className:ge,style:Ke,onClick:kt,disabled:Ee,ref:be}),ir,xr,wr&&t.createElement(Ir,{prefixCls:ka}));return(0,S.Dn)(ca)||(Jt=t.createElement(u.Z,{component:"Button",disabled:Ga},Jt)),sa(Jt)});gt.Group=O,gt.__ANT_BUTTON=!0;var $t=gt,vr=$t},5269:function(i,f,e){"use strict";var t=e(5472);f.Z=t.Z},2171:function(i,f,e){"use strict";e.d(f,{n:function(){return n}});var t=e(59301);const r=t.createContext(!1),n=a=>{let{children:s,disabled:u}=a;const c=t.useContext(r);return t.createElement(r.Provider,{value:u!=null?u:c},s)};f.Z=r},23069:function(i,f,e){"use strict";e.d(f,{q:function(){return n}});var t=e(59301);const r=t.createContext(void 0),n=a=>{let{children:s,size:u}=a;const c=t.useContext(r);return t.createElement(r.Provider,{value:u||c},s)};f.Z=r},11774:function(i,f,e){"use strict";e.d(f,{x:function(){return N}});var t=e(59301),r=e(4676),n=e.t(r,2),a=e(13932),s=e(68702),u=e(34666),c=e(27247),o=(0,c.Z)({},n),d=o.version,m=o.render,p=o.unmountComponentAtNode,b;try{var g=Number((d||"").split(".")[0]);g>=18&&(b=o.createRoot)}catch(G){}function P(G){var V=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;V&&(0,u.Z)(V)==="object"&&(V.usingClientEntryPoint=G)}var O="__rc_react_root__";function S(G,V){P(!0);var q=V[O]||b(V);P(!1),q.render(G),V[O]=q}function I(G,V){m==null||m(G,V)}function E(G,V){}function A(G,V){if(b){S(G,V);return}I(G,V)}function D(G){return T.apply(this,arguments)}function T(){return T=(0,s.Z)((0,a.Z)().mark(function G(V){return(0,a.Z)().wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.abrupt("return",Promise.resolve().then(function(){var B;(B=V[O])===null||B===void 0||B.unmount(),delete V[O]}));case 1:case"end":return W.stop()}},G)})),T.apply(this,arguments)}function k(G){p(G)}function R(G){}function F(G){return L.apply(this,arguments)}function L(){return L=(0,s.Z)((0,a.Z)().mark(function G(V){return(0,a.Z)().wrap(function(W){for(;;)switch(W.prev=W.next){case 0:if(b===void 0){W.next=2;break}return W.abrupt("return",D(V));case 2:k(V);case 3:case"end":return W.stop()}},G)})),L.apply(this,arguments)}let U=(G,V)=>(A(G,V),()=>F(V));function Y(G){U=G}function N(){return U}},48755:function(i,f,e){"use strict";e.d(f,{E_:function(){return u},Rf:function(){return r},dj:function(){return d},oR:function(){return n},tr:function(){return a}});var t=e(59301);const r="ant",n="anticon",a=["outlined","borderless","filled","underlined"],s=(m,p)=>p||(m?`${r}-${m}`:r),u=t.createContext({getPrefixCls:s,iconPrefixCls:n}),{Consumer:c}=u,o={};function d(m){const p=t.useContext(u),{getPrefixCls:b,direction:g,getPopupContainer:P}=p,O=p[m];return Object.assign(Object.assign({classNames:o,styles:o},O),{getPrefixCls:b,direction:g,getPopupContainer:P})}},83397:function(i,f,e){"use strict";var t=e(57700);const r=n=>{const[,,,,a]=(0,t.ZP)();return a?`${n}-css-var`:""};f.Z=r},31756:function(i,f,e){"use strict";var t=e(59301),r=e(23069);const n=a=>{const s=t.useContext(r.Z);return t.useMemo(()=>a?typeof a=="string"?a!=null?a:s:typeof a=="function"?a(s):s:s,[a,s])};f.Z=n},60840:function(i,f,e){"use strict";e.d(f,{ZP:function(){return Pe},w6:function(){return Je}});var t=e(59301),r=e.t(t,2),n=e(36237),a=e(18418),s=e(80547),u=e(24434),c=e(32383),o=e(98350),d=e(25012),m=e(22200);const p="internalMark";var g=ue=>{const{locale:ye={},children:Oe,_ANT_MARK__:nt}=ue;t.useEffect(()=>(0,d.f)(ye==null?void 0:ye.Modal),[ye]);const bt=t.useMemo(()=>Object.assign(Object.assign({},ye),{exist:!0}),[ye]);return t.createElement(m.Z.Provider,{value:bt},Oe)},P=e(85981),O=e(42146),S=e(29796),I=e(90820),E=e(48755),A=e(68361),D=e(17835),T=e(47273),k=e(810);const R=`-ant-${Date.now()}-${Math.random()}`;function F(ue,ye){const Oe={},nt=(we,lt)=>{let Qe=we.clone();return Qe=(lt==null?void 0:lt(Qe))||Qe,Qe.toRgbString()},bt=(we,lt)=>{const Qe=new D.FastColor(we),Ge=(0,A.generate)(Qe.toRgbString());Oe[`${lt}-color`]=nt(Qe),Oe[`${lt}-color-disabled`]=Ge[1],Oe[`${lt}-color-hover`]=Ge[4],Oe[`${lt}-color-active`]=Ge[6],Oe[`${lt}-color-outline`]=Qe.clone().setA(.2).toRgbString(),Oe[`${lt}-color-deprecated-bg`]=Ge[0],Oe[`${lt}-color-deprecated-border`]=Ge[2]};if(ye.primaryColor){bt(ye.primaryColor,"primary");const we=new D.FastColor(ye.primaryColor),lt=(0,A.generate)(we.toRgbString());lt.forEach((Ge,ot)=>{Oe[`primary-${ot+1}`]=Ge}),Oe["primary-color-deprecated-l-35"]=nt(we,Ge=>Ge.lighten(35)),Oe["primary-color-deprecated-l-20"]=nt(we,Ge=>Ge.lighten(20)),Oe["primary-color-deprecated-t-20"]=nt(we,Ge=>Ge.tint(20)),Oe["primary-color-deprecated-t-50"]=nt(we,Ge=>Ge.tint(50)),Oe["primary-color-deprecated-f-12"]=nt(we,Ge=>Ge.setA(Ge.a*.12));const Qe=new D.FastColor(lt[0]);Oe["primary-color-active-deprecated-f-30"]=nt(Qe,Ge=>Ge.setA(Ge.a*.3)),Oe["primary-color-active-deprecated-d-02"]=nt(Qe,Ge=>Ge.darken(2))}return ye.successColor&&bt(ye.successColor,"success"),ye.warningColor&&bt(ye.warningColor,"warning"),ye.errorColor&&bt(ye.errorColor,"error"),ye.infoColor&&bt(ye.infoColor,"info"),` :root { ${Object.keys(Oe).map(we=>`--${ue}-${we}: ${Oe[we]};`).join(`