You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
177 KiB
11 lines
177 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[2570],{72654:function(on,Et,F){"use strict";F.r(Et),F.d(Et,{default:function(){return yl}});var l=F(59301),ue=F(76560),p=F(46211),Le=F(78420),ne=F(14566),L=F(6767),pe=F(62957),y=F(61481),Ye=F(25992),z=Object.defineProperty,Xe=Object.getOwnPropertySymbols,B=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,Se=(o,a,c)=>a in o?z(o,a,{enumerable:!0,configurable:!0,writable:!0,value:c}):o[a]=c,$e=(o,a)=>{for(var c in a||(a={}))B.call(a,c)&&Se(o,c,a[c]);if(Xe)for(var c of Xe(a))te.call(a,c)&&Se(o,c,a[c]);return o},Je=(o,a,c)=>new Promise((G,w)=>{var M=P=>{try{R(c.next(P))}catch(K){w(K)}},_e=P=>{try{R(c.throw(P))}catch(K){w(K)}},R=P=>P.done?G(P.value):Promise.resolve(P.value).then(M,_e);R((c=c.apply(o,a)).next())});const{Dragger:Ge}=ne.default,Qe=({user:o,dispatch:a,classroomList:c,shixunsDetail:G,getResults:w})=>{const M=(0,ue.useParams)(),[_e,R]=(0,l.useState)(),[P,K]=(0,l.useState)([]),[tt,rt]=(0,l.useState)(!1),Ke={onRemove:()=>{K([])},beforeUpload:ze=>{if(console.log(ze),(ze==null?void 0:ze.size)>1024*1024*500)return L.ZP.info("\u6587\u4EF6\u8D85\u8FC7500M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;let Te=[];return Te.push(ze),K([...Te]),!1},fileList:P};return l.createElement(pe.default,{title:"\u63D0\u4EA4\u6587\u4EF6",open:G.actionTabs.key==="md-tab",confirmLoading:tt,onOk:()=>Je(void 0,null,function*(){var ze,Te;if((P==null?void 0:P.length)<=0){L.ZP.info("\u8BF7\u5148\u9009\u62E9\u6587\u4EF6");return}rt(!0);const Re=yield(0,Ye.cT)(P[0],{login:(ze=o.userInfo)==null?void 0:ze.login,container_type:"Competition",container_id:G.actionTabs.params.id,stage_type:G.actionTabs.params.value,file_name:(Te=P[0])==null?void 0:Te.name});(Re==null?void 0:Re.status)===0?(L.ZP.info("\u63D0\u4EA4\u6210\u529F"),a({type:"shixunsDetail/setActionTabs",payload:{key:""}}),rt(!1),K([]),w(G.actionTabs.params.value)):(rt(!1),L.ZP.info("\u63D0\u4EA4\u5931\u8D25"))}),onCancel:()=>{K([]),a({type:"shixunsDetail/setActionTabs",payload:{key:""}})}},l.createElement(Ge,$e({},Ke),l.createElement("p",{className:"ant-upload-drag-icon"},l.createElement(y.Z,null)),l.createElement("p",{className:"ant-upload-hint"},"\u62D6\u62FD\u6587\u4EF6\u6216\u8005\u70B9\u51FB\u4E0A\u4F20")))};var st=(0,ue.connect)(({user:o,classroomList:a,shixunsDetail:c})=>({user:o,classroomList:a,shixunsDetail:c}))(Qe),_t=F(91882),Ve=F(29787),fe=F(99571),$t=F(93041),Pt=F(38394),ye=F(77019),de=F(37568),ae=F(90524),x=F(82093),nt=F(23869),Z=F(82326),Zt=F(84022),Ct=F(33853),at=F(38819),Ft=(o,a,c)=>new Promise((G,w)=>{var M=P=>{try{R(c.next(P))}catch(K){w(K)}},_e=P=>{try{R(c.throw(P))}catch(K){w(K)}},R=P=>P.done?G(P.value):Promise.resolve(P.value).then(M,_e);R((c=c.apply(o,a)).next())});const{Option:yt}=Z.default;function g({rewarddata:o,getlistdatas:a,is_signed:c,dispatch:G,userlist:w}){const M=(0,l.useRef)(null),[_e,R]=(0,l.useState)(!1),[P,K]=(0,l.useState)(void 0),[tt,rt]=(0,l.useState)(""),[Ke,ze]=(0,l.useState)(void 0),[Te,Re]=(0,l.useState)(void 0),[Fe,h]=(0,l.useState)(void 0);function Ze(ie){return Ft(this,null,function*(){if(ie.user_received){window.open(ie.click_info);return}if(!(0,nt.o1)(G))return;if(c===!1){L.ZP.info("\u60A8\u5C1A\u672A\u62A5\u540D\u53C2\u8D5B\uFF0C\u8BF7\u62A5\u540D\u53C2\u8D5B\u540E\u9886\u53D6");return}if(ie.click_event==="Pop"){rt(ie.id),R(!0);return}else K(void 0);const he=yield G({type:"competitions/Reward",payload:{competition_module_setting_id:ie.id}});he&&he.status===0&&(a(),ie.click_event==="Link"?(L.ZP.info("\u9886\u53D6\u6210\u529F"),window.open(ie.click_info)):L.ZP.info(ie.click_info))})}function J(){return Ft(this,null,function*(){if(w&&!w.real_name&&!Ke){L.ZP.info("\u59D3\u540D\u4E0D\u80FD\u4E3A\u7A7A");return}if(w&&!w.email&&!Te){L.ZP.info("\u90AE\u7BB1\u4E0D\u80FD\u4E3A\u7A7A");return}if(w&&!w.phone&&!Fe){L.ZP.info("\u624B\u673A\u53F7\u7801\u4E0D\u80FD\u4E3A\u7A7A");return}if(!P){L.ZP.info("\u8BF7\u9009\u62E9\u4F60\u7684\u5E74\u7EA7");return}const ie=yield G({type:"competitions/Reward",payload:{competition_module_setting_id:tt,className:P,name:Ke,mail:Te,phone:Fe}});ie&&ie.status===0&&(R(!1),a(),L.ZP.info("HCIA\u8BA4\u8BC1\u8003\u8BD5\u4EE3\u91D1\u52B5\u5C06\u7531Educoder\u5E73\u53F0\u7EDF\u4E00\u53D1\u653E\uFF0C\u8BF7\u53CA\u65F6\u5173\u6CE8\u90AE\u7BB1\u6216\u7AD9\u5185\u77ED\u4FE1\u67E5\u6536"))})}return l.createElement("div",null,l.createElement(pe.default,{open:_e,title:"\u5B8C\u5584\u4FE1\u606F",onCancel:()=>R(!1),onOk:()=>{J()}},l.createElement("p",null,"\u60A8\u7684\u59D3\u540D\uFF1A",l.createElement(de.default,{className:w&&w.real_name?"":p.Z.bkfff,style:{width:"300px",marginLeft:"14px",background:w&&w.phone?"":"#ffffff!important"},value:w&&w.real_name||Ke,disabled:w&&w.real_name||!1,onChange:ie=>ze(ie.target.value)})),l.createElement("p",{style:{marginTop:"1em"}},"\u60A8\u7684\u90AE\u7BB1\uFF1A",l.createElement(de.default,{className:w&&w.email?"":"bkfff",style:{width:"300px",marginLeft:"14px",background:w&&w.phone?"":"#ffffff!important"},value:w&&w.email||Te,disabled:w&&w.email||!1,onChange:ie=>Re(ie.target.value)})),l.createElement("p",{style:{marginTop:"1em"}},"\u60A8\u7684\u624B\u673A\u53F7\uFF1A",l.createElement(de.default,{style:{width:"300px"},className:w&&w.phone?"":"bkfff",value:w&&w.phone||Fe,disabled:w&&w.phone||!1,onChange:ie=>h(ie.target.value)})),"\u60A8\u7684\u5E74\u7EA7\uFF1A",l.createElement(Z.default,{style:{width:"300px",marginTop:"1em",marginLeft:"14px"},onChange:ie=>{K(ie)}},l.createElement(yt,{value:"\u5927\u4E00"},"\u5927\u4E00"),l.createElement(yt,{value:"\u5927\u4E8C"},"\u5927\u4E8C"),l.createElement(yt,{value:"\u5927\u4E09"},"\u5927\u4E09"),l.createElement(yt,{value:"\u5927\u56DB"},"\u5927\u56DB"),l.createElement(yt,{value:"\u5927\u4E94"},"\u5927\u4E94"),l.createElement(yt,{value:"\u7855\u4E00"},"\u7855\u4E00"),l.createElement(yt,{value:"\u7855\u4E8C"},"\u7855\u4E8C"),l.createElement(yt,{value:"\u7855\u4E09"},"\u7855\u4E09"),l.createElement(yt,{value:"\u535A\u4E00"},"\u535A\u4E00"),l.createElement(yt,{value:"\u535A\u4E8C"},"\u535A\u4E8C"),l.createElement(yt,{value:"\u535A\u4E09"},"\u535A\u4E09"),l.createElement(yt,{value:"\u535A\u56DB"},"\u535A\u56DB"),l.createElement(yt,{value:"\u535A\u4E94"},"\u535A\u4E94")),l.createElement("p",{style:{marginTop:"1em"}},"\u63D0\u9192\uFF1A\u5982\u65E0\u534E\u4E3A\u4E91\u8D26\u53F7\uFF0C\u8BF7\u5C3D\u5FEB\u6CE8\u518C\u534E\u4E3A\u4E91\uFF01")),o&&o.length>3?l.createElement("div",{style:{position:"relative",marginBottom:"10px",marginTop:"10px"}},l.createElement("span",{className:p.Z.spanprev,onClick:()=>{M.current.prev()}},l.createElement(Ct.Z,{style:{color:"#fff",fontSize:"20px",marginLeft:"15px"}})),l.createElement(Zt.Z,{ref:M,className:p.Z.divwidth,slidesToShow:3,slidesToScroll:1},o&&o.map((ie,he)=>l.createElement("div",{style:{textAlign:"center",position:"relative"}},l.createElement("img",{src:ae.Z.IMG_SERVER+`/${ie.image_url}`}),ie.user_received===!1||ie.click_event==="Link"?l.createElement("p",{className:p.Z.receiveclick,onClick:()=>Ze(ie)},"\u70B9\u51FB\u9886\u53D6"):l.createElement("p",{className:p.Z.receivealready},"\u5DF2\u7ECF\u9886\u53D6")))),l.createElement("span",{className:p.Z.spannext,onClick:()=>{M.current.next()}},l.createElement(at.Z,{style:{color:"#fff",fontSize:"20px",marginLeft:"5px"}}))):l.createElement("div",{className:p.Z.divwidth,style:{justifyContent:"space-around",marginBottom:"10px",marginTop:"10px"}},o&&o.map((ie,he)=>l.createElement("div",{style:{textAlign:"center",position:"relative"}},l.createElement("img",{src:ae.Z.IMG_SERVER+`/${ie.image_url}`}),ie.user_received===!1||ie.click_event==="Link"?l.createElement("p",{className:p.Z.receiveclick,onClick:()=>Ze(ie)},"\u70B9\u51FB\u9886\u53D6"):l.createElement("p",{className:p.Z.receivealready},"\u5DF2\u7ECF\u9886\u53D6")))))}var I=g,Y=Object.defineProperty,$=Object.getOwnPropertySymbols,le=Object.prototype.hasOwnProperty,qe=Object.prototype.propertyIsEnumerable,ot=(o,a,c)=>a in o?Y(o,a,{enumerable:!0,configurable:!0,writable:!0,value:c}):o[a]=c,bt=(o,a)=>{for(var c in a||(a={}))le.call(a,c)&&ot(o,c,a[c]);if($)for(var c of $(a))qe.call(a,c)&&ot(o,c,a[c]);return o},xt=(o,a,c)=>new Promise((G,w)=>{var M=P=>{try{R(c.next(P))}catch(K){w(K)}},_e=P=>{try{R(c.throw(P))}catch(K){w(K)}},R=P=>P.done?G(P.value):Promise.resolve(P.value).then(M,_e);R((c=c.apply(o,a)).next())});const kt=({StaffDetail:o,HeaderDetail:a,ItemData:c,setIssee:G,ModelType:w,dispatch:M,userinfo:_e,Editable:R},P)=>{const[K,tt]=(0,l.useState)(!1),[rt,Ke]=(0,l.useState)([]),[ze,Te]=(0,l.useState)(""),[Re,Fe]=(0,l.useState)(""),[h,Ze]=(0,l.useState)(!1),{identifier:J}=(0,ue.useParams)(),ie=(0,l.useRef)(null),he=(0,l.useRef)(null);ie.current=o==null?void 0:o.enrolled,(0,l.useEffect)(()=>{var ve;return(ve=he.current)==null||ve.addEventListener("click",vt),()=>{var W;(W=he.current)==null||W.removeEventListener("click",vt)}},[]);const vt=ve=>{var W;if(((W=ve==null?void 0:ve.target)==null?void 0:W.id)==="modal-upload"){if(!(0,nt.tJ)(M))return;if(!ie.current){pe.default.info({title:"\u63D0\u793A",centered:!0,okText:"\u6211\u77E5\u9053\u4E86",content:"\u8BF7\u5148\u62A5\u540D\uFF0C\u518D\u63D0\u4EA4\u4F5C\u54C1"});return}tt(!0)}};(0,l.useEffect)(()=>{var ve,W,V;a!=null&&a.upload_file&&(Ke([{name:(ve=a==null?void 0:a.upload_file)==null?void 0:ve.title,status:"done",uid:"123456789"}]),Fe(a==null?void 0:a.upload_file_url),Te((V=(W=a==null?void 0:a.upload_file)==null?void 0:W.url)==null?void 0:V.split("/")[3]))},[a==null?void 0:a.upload_file]);const b={name:"file",multiple:!1,withCredentials:!0,action:ae.Z.API_SERVER+"/api/attachments.json",showUploadList:{showRemoveIcon:!1},fileList:rt,onChange:ve=>{var W,V;const{status:xe}=ve.file,it=[bt({},ve.file)];Ke(it),ve.file.status==="uploading"&&Ze(!0),xe==="done"&&(Te((V=(W=it[0])==null?void 0:W.response)==null?void 0:V.id),Ze(!1)),xe==="error"&&(Ke([]),Ze(!1))},beforeUpload:ve=>ve.size/1024/1024<1e3?Promise.resolve():(L.ZP.info("\u6587\u4EF6\u5927\u5C0F\u5FC5\u987B\u5C0F\u4E8E1000MB"),Promise.reject())},Ot=()=>{tt(!0)};return(0,l.useImperativeHandle)(P,()=>({handleVisible:Ot})),l.createElement("div",{ref:he},w==="reward"?l.createElement(I,{userlist:_e,dispatch:M,rewarddata:c.reward_setting,is_signed:c.is_signed}):null,l.createElement("div",{style:{textAlign:"right"}},((_e==null?void 0:_e.admin)||(_e==null?void 0:_e.business)||R)&&l.createElement(fe.ZP,{onClick:()=>G(!1)},"\u7F16\u8F91")),l.createElement(Pt.Z,{value:c.md_content||"\u6682\u65E0"}),c&&c.attachments&&c.attachments.map((ve,W)=>{var V;return l.createElement("div",null,l.createElement("a",{href:((V=ae.Z)==null?void 0:V.API_SERVER)+ve.url,target:"_self",download:ve.title},l.createElement("i",{style:{color:"#29BD8B"},className:"font-14 color-green iconfont icon-fujian mr8"}),l.createElement("span",{style:{color:"#000000"}},ve.title),l.createElement("span",{style:{color:"#000000",marginLeft:"10px"}},ve.filesize)))}),l.createElement(pe.default,{centered:!0,title:"\u4E0A\u4F20\u4F5C\u54C1",open:K,okText:"\u63D0\u4EA4\u4F5C\u54C1",cancelText:"\u53D6\u6D88",confirmLoading:h,onCancel:()=>tt(!1),onOk:()=>xt(void 0,null,function*(){if(!ze&&!Re){tt(!1);return}Ze(!0),(yield(0,x.ZP)(`/api/competitions/${J}/upload_file.json`,{method:"post",body:{attachment_id:ze,upload_file_url:Re}})).status===0&&(tt(!1),Ze(!1))})},l.createElement("div",null,l.createElement(ye.Z,{align:"middle",className:"mb20"},l.createElement("span",null,"\u4F5C\u54C1\u94FE\u63A5\uFF1A"),l.createElement(de.default,{style:{width:416},value:Re,onChange:ve=>{var W;return Fe((W=ve.target)==null?void 0:W.value)}})),l.createElement(ye.Z,{align:"top"},l.createElement("span",{style:{lineHeight:"28px"}},"\u4F5C\u54C1\u6587\u4EF6\uFF1A"),l.createElement(ne.default,bt({},b),l.createElement(fe.ZP,{type:"primary",className:"mb10"},"\u4E0A\u4F20\u4F5C\u54C1"))))))};var Dt=(0,l.forwardRef)(kt),dt=F(2978),Lt=F(65906),Mt=Object.defineProperty,St=Object.getOwnPropertySymbols,Rt=Object.prototype.hasOwnProperty,jt=Object.prototype.propertyIsEnumerable,i=(o,a,c)=>a in o?Mt(o,a,{enumerable:!0,configurable:!0,writable:!0,value:c}):o[a]=c,t=(o,a)=>{for(var c in a||(a={}))Rt.call(a,c)&&i(o,c,a[c]);if(St)for(var c of St(a))jt.call(a,c)&&i(o,c,a[c]);return o},n=(o,a,c)=>new Promise((G,w)=>{var M=P=>{try{R(c.next(P))}catch(K){w(K)}},_e=P=>{try{R(c.throw(P))}catch(K){w(K)}},R=P=>P.done?G(P.value):Promise.resolve(P.value).then(M,_e);R((c=c.apply(o,a)).next())});function u({ItemData:o,setIssee:a,MenuItem:c,dispatch:G,identifier:w,ModelType:M,userinfo:_e,getrightdatas:R}){let[P,K]=(0,l.useState)([]);const[tt,rt]=(0,l.useState)(o.md_content);(0,l.useEffect)(()=>{var Fe;let h=[];(Fe=o==null?void 0:o.attachments)==null||Fe.map(Ze=>{let J={uid:Ze.id,name:Ze.title,response:{id:Ze.id}};h.push(J)}),K(h)},[o==null?void 0:o.attachments]);function Ke(){var Fe;let h=[];return(Fe=o==null?void 0:o.attachments)==null||Fe.map(Ze=>{let J={uid:Ze==null?void 0:Ze.id,name:Ze.title,response:{id:Ze.id}};h.push(J)}),h}const ze={name:"file",multiple:!0,withCredentials:!0,action:ae.Z.API_SERVER+"/api/attachments.json",defaultFileList:Ke(),onRemove(Fe){(0,Lt.y8)({id:Fe.uid})},onChange(Fe){const{status:h}=Fe.file;h==="removed"&&K(Fe.fileList),h==="done"?(K(Fe.fileList),L.ZP.success(`${Fe.file.name} \u6587\u4EF6\u4E0A\u4F20\u6210\u529F`)):h==="error"&&L.ZP.error(`${Fe.file.name} \u6587\u4EF6\u4E0A\u4F20\u5931\u8D25`)},beforeUpload:Fe=>{const h=Fe.size/1024/1024<150;return h||L.ZP.info("\u6587\u4EF6\u5927\u5C0F\u5FC5\u987B\u5C0F\u4E8E150MB"),h}};console.log(ze);function Te(){return n(this,null,function*(){(yield G({type:"competitions/updateMdContent",payload:{attachment_ids:Re(P),competition_module_id:o.id,md_content_id:o.md_id,content:tt,identifier:w}}))&&(L.ZP.info("\u63D0\u4EA4\u6210\u529F"),a(!0),R(c))})}function Re(Fe){let h=[];return Fe&&Fe.map(Ze=>{h.push(Ze.response.id)}),h}return l.createElement("div",null,M==="reward"?l.createElement(I,{userlist:_e,dispatch:G,rewarddata:o.reward_setting,is_signed:o.is_signed}):null,l.createElement(dt.Z,{defaultValue:tt,onChange:Fe=>rt(Fe)}),l.createElement(ne.default,t({},ze),l.createElement(fe.ZP,{className:"uploadBtn"},"\u4E0A\u4F20\u9644\u4EF6"),"(\u5355\u4E2A\u6587\u4EF6150M\u4EE5\u5185)"),l.createElement("p",{style:{marginTop:"10px"}},l.createElement(fe.ZP,{style:{width:"90px"},type:"primary",onClick:()=>Te()},"\u63D0\u4EA4"),l.createElement(fe.ZP,{style:{marginLeft:"30px",width:"90px"},onClick:()=>a(!0)},"\u53D6\u6D88")))}var v=u,C=F(20554),k=F(54172),ge=F(5269),Ae=F(15037);function je({oneItem:o,towItem:a,threeItem:c}){return l.createElement("div",{style:{textAlign:"center"}},l.createElement(ye.Z,{gutter:16,style:{justifyContent:"center"}},l.createElement(ge.Z,{span:6,style:{marginTop:"30px",marginRight:"20px"}},l.createElement(Ae.Z,{title:l.createElement("div",{className:p.Z.towtop},l.createElement("img",{style:{marginTop:"20px"},src:ae.Z.IMG_SERVER+"/images/educoder/huangguan-two.png"}),l.createElement("p",{style:{marginTop:"10px"}},l.createElement(ue.Link,{to:`/users/${a==null?void 0:a.user_login}/classrooms`},l.createElement("img",{className:p.Z.imgradius,src:ae.Z.IMG_SERVER+`/images/${a==null?void 0:a.user_image}`}),(a==null?void 0:a.competition_prize)&&l.createElement("p",{className:p.Z.prize},a==null?void 0:a.competition_prize),l.createElement("p",{style:{color:"#05101a",fontSize:"16px",marginTop:"10px"}},a==null?void 0:a.record_user_name)))),className:p.Z.towdiv,bordered:!1},l.createElement("p",{style:{fontSize:"14px"}},a==null?void 0:a.school_name),l.createElement("p",{style:{fontSize:"18px"}},a==null?void 0:a.spend_time),l.createElement("p",{style:{fontSize:"26px",color:"#a55b29"}},parseFloat(a==null?void 0:a.extra_score)+parseFloat(a==null?void 0:a.score),"\u5206"))),l.createElement(ge.Z,{span:6},l.createElement(Ae.Z,{title:l.createElement("div",{className:p.Z.onetop},l.createElement("img",{style:{marginTop:"20px"},src:ae.Z.IMG_SERVER+"/images/educoder/huangguan.png"}),l.createElement("p",{style:{marginTop:"10px"}},l.createElement(ue.Link,{to:`/users/${o==null?void 0:o.user_login}/classrooms`},l.createElement("img",{className:p.Z.imgradius,src:ae.Z.IMG_SERVER+`/images/${o==null?void 0:o.user_image}`}),(o==null?void 0:o.competition_prize)&&l.createElement("p",{className:p.Z.prize},o==null?void 0:o.competition_prize),l.createElement("p",{style:{color:"#05101a",fontSize:"16px",marginTop:"10px"}},o==null?void 0:o.record_user_name)))),className:p.Z.onediv,bordered:!1},l.createElement("p",{style:{fontSize:"14px"}},o==null?void 0:o.school_name),l.createElement("p",{style:{fontSize:"18px"}},o==null?void 0:o.spend_time),l.createElement("p",{style:{fontSize:"26px",color:"#a55b29"}},parseFloat(o==null?void 0:o.extra_score)+parseFloat(o==null?void 0:o.score),"\u5206"))),l.createElement(ge.Z,{span:6,style:{marginTop:"40px",marginLeft:"20px"}},l.createElement(Ae.Z,{title:l.createElement("div",{className:p.Z.threetop},l.createElement("img",{style:{marginTop:"20px"},src:ae.Z.IMG_SERVER+"/images/educoder/huangguan-three.png"}),l.createElement("p",{style:{marginTop:"10px"}},l.createElement(ue.Link,{to:`/users/${c==null?void 0:c.user_login}/classrooms`},l.createElement("img",{className:p.Z.imgradius,src:ae.Z.IMG_SERVER+`/images/${c==null?void 0:c.user_image}`}),(c==null?void 0:c.competition_prize)&&l.createElement("p",{className:p.Z.prize},c==null?void 0:c.competition_prize),l.createElement("p",{style:{color:"#05101a",fontSize:"16px",marginTop:"10px"}},c==null?void 0:c.record_user_name)))),className:p.Z.threediv,bordered:!1},l.createElement("p",{style:{fontSize:"14px"}},c==null?void 0:c.school_name),l.createElement("p",{style:{fontSize:"18px"}},c==null?void 0:c.spend_time),l.createElement("p",{style:{fontSize:"26px",color:"#a55b29"}},parseFloat(c==null?void 0:c.extra_score)+parseFloat(c==null?void 0:c.score),"\u5206")))))}var pt=je,Ce=F(25399);function ft({ItemData:o}){var a,c,G,w,M,_e,R,P,K,tt,rt,Ke,ze,Te,Re,Fe,h,Ze,J,ie,he,vt,b,Ot,ve,W,V,xe,it,f;return l.createElement("div",null,l.createElement("p",{style:{fontSize:"24px",color:"#05101a"}},"\u603B\u6392\u884C"),l.createElement(pt,{oneItem:o==null?void 0:o.teams[0],towItem:o==null?void 0:o.teams[1],threeItem:o==null?void 0:o.teams[2]}),((a=o==null?void 0:o.user_ranks)==null?void 0:a.length)>0&&l.createElement("div",{className:p.Z.myTeam},((G=(c=o==null?void 0:o.user_ranks)==null?void 0:c[0])==null?void 0:G.success)===!1?l.createElement("span",{style:{marginRight:"70px",padding:"10px"}},l.createElement("p",{style:{marginBottom:"0px"}}," \u662F\u5426\u664B\u7EA7\uFF1A",l.createElement("span",{style:{color:((M=(w=o==null?void 0:o.user_ranks)==null?void 0:w[0])==null?void 0:M.success)===!1?"red":"green"}},((R=(_e=o==null?void 0:o.user_ranks)==null?void 0:_e[0])==null?void 0:R.success)===!1?"\u5426":(K=(P=o==null?void 0:o.user_ranks)==null?void 0:P[0])!=null&&K.success?"\u662F":"")),((rt=(tt=o==null?void 0:o.user_ranks)==null?void 0:tt[0])==null?void 0:rt.awards)&&l.createElement("p",{style:{marginBottom:"0px"}}," \u662F\u5426\u83B7\u5956\uFF1A",l.createElement("span",null,((ze=(Ke=o==null?void 0:o.user_ranks)==null?void 0:Ke[0])==null?void 0:ze.awards)==="percent_20"?"\u4E8C\u7B49\u5956":((Re=(Te=o==null?void 0:o.user_ranks)==null?void 0:Te[0])==null?void 0:Re.awards)==="percent_30"?"\u4E09\u7B49\u5956":"\u6CA1\u6709\u83B7\u5F97\u5956\u9879"))):l.createElement("span",{style:{marginRight:"70px"}},"\u6211\u7684\u6392\u540D\uFF1A",(h=(Fe=o==null?void 0:o.user_ranks)==null?void 0:Fe[0])==null?void 0:h.rank),l.createElement("span",{style:{flex:1}},l.createElement(Ce.Z,{title:"\u6218\u961F\u540D"},(J=(Ze=o==null?void 0:o.user_ranks)==null?void 0:Ze[0])==null?void 0:J.team_name)),l.createElement("span",{style:{flex:1}},l.createElement(Ce.Z,{title:"\u65F6\u95F4"},(he=(ie=o==null?void 0:o.user_ranks)==null?void 0:ie[0])==null?void 0:he.cost_time)),l.createElement("span",{style:{flex:1,textAlign:"center"}},l.createElement(Ce.Z,{title:"\u8D4B\u80FD\u8D5B\u52A0\u5206"},(b=(vt=o==null?void 0:o.user_ranks)==null?void 0:vt[0])==null?void 0:b.extra_score)),l.createElement("span",{style:{flex:1}},l.createElement(Ce.Z,{title:"\u6BD4\u8D5B\u6210\u7EE9"},(ve=(Ot=o==null?void 0:o.user_ranks)==null?void 0:Ot[0])==null?void 0:ve.score)),l.createElement("span",null,l.createElement(Ce.Z,{title:"\u603B\u5206"},parseFloat((V=(W=o==null?void 0:o.user_ranks)==null?void 0:W[0])==null?void 0:V.extra_score)+parseFloat((it=(xe=o==null?void 0:o.user_ranks)==null?void 0:xe[0])==null?void 0:it.score)||0))),(f=o==null?void 0:o.teams)==null?void 0:f.map((A,N)=>l.createElement("div",{className:p.Z.bottomItem},l.createElement("span",{style:{color:"#0152d9",marginRight:"20px"}},N+1),l.createElement(ue.Link,{to:`/users/${A==null?void 0:A.user_login}/classrooms`,style:{marginRight:"80px",position:"relative"}},l.createElement("img",{className:p.Z.imgradius,src:ae.Z.IMG_SERVER+`/images/${A==null?void 0:A.user_image}`}),(A==null?void 0:A.competition_prize)&&l.createElement("span",{className:p.Z.spanrightradius},A==null?void 0:A.competition_prize)),l.createElement("span",{style:{flex:1}},l.createElement(Ce.Z,{title:"\u6218\u961F\u540D"},A==null?void 0:A.team_name)),l.createElement("span",{style:{flex:1}},l.createElement(Ce.Z,{title:"\u5355\u4F4D/\u5B66\u6821\u540D"},A.school_name)),l.createElement("span",{style:{flex:1,textAlign:"center"}},l.createElement(Ce.Z,{title:"\u8D4B\u80FD\u8D5B\u52A0\u5206"},A.extra_score)),l.createElement("span",{style:{flex:1}},l.createElement(Ce.Z,{title:"\u6BD4\u8D5B\u6210\u7EE9"},A.score)),l.createElement("span",{style:{color:"#0152d9"}},l.createElement(Ce.Z,{title:"\u603B\u5206"},parseFloat(A.extra_score)+parseFloat(A.score))))))}var en=ft,tn=(o,a,c)=>new Promise((G,w)=>{var M=P=>{try{R(c.next(P))}catch(K){w(K)}},_e=P=>{try{R(c.throw(P))}catch(K){w(K)}},R=P=>P.done?G(P.value):Promise.resolve(P.value).then(M,_e);R((c=c.apply(o,a)).next())});const{TabPane:Wt}=C.default;function Oe({ChartRules:o,ItemData:a,getCharts:c,Selectkey:G,getChartRules:w,userinfo:M,Editable:_e,HeaderDetail:R}){var P,K,tt,rt,Ke;const[ze,Te]=(0,l.useState)(!1),[Re,Fe]=(0,l.useState)(""),[h,Ze]=(0,l.useState)(!0),[J,ie]=(0,l.useState)(),[he,vt]=(0,l.useState)(),{identifier:b}=(0,ue.useParams)();(0,l.useEffect)(()=>{var W,V,xe,it,f,A,N;if(h){let be=(W=o==null?void 0:o.stages)==null?void 0:W[0];ie(be),be!=null&&be.id?(((R==null?void 0:R.task)==="mAP"||(R==null?void 0:R.task)==="dog")&&c(be==null?void 0:be.id),Fe(((it=(xe=(V=o.rule_contents)==null?void 0:V.filter(Ne=>parseInt(Ne.competition_stage_id)===parseInt(be==null?void 0:be.id)))==null?void 0:xe[0])==null?void 0:it.content)||"")):((R==null?void 0:R.task)==="mAP"||(R==null||R.task),Fe(((N=(A=(f=o.rule_contents)==null?void 0:f.filter(Ne=>parseInt(Ne.competition_stage_id)===0))==null?void 0:A[0])==null?void 0:N.content)||""))}},[o]);function Ot(){return tn(this,null,function*(){var W,V,xe,it,f,A;if(!Re){L.ZP.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A");return}Ze(!1);let N=J==null?void 0:J.id;N?(yield(0,x.ZP)(`/api/competitions/${b}/update_md_content.json`,{method:"post",body:{competition_module_id:G,content:Re,md_content_id:(xe=(V=(W=o.rule_contents)==null?void 0:W.filter(Ne=>parseInt(Ne.competition_stage_id)===parseInt(N)))==null?void 0:V[0])==null?void 0:xe.id,stage_id:J==null?void 0:J.id}})).status===0&&(L.ZP.info("\u66F4\u65B0\u6210\u529F"),Te(!1),w()):(yield(0,x.ZP)(`/api/competitions/${b}/update_md_content.json`,{method:"post",body:{competition_module_id:G,content:Re,md_content_id:(A=(f=(it=o.rule_contents)==null?void 0:it.filter(Ne=>parseInt(Ne.competition_stage_id)===0))==null?void 0:f[0])==null?void 0:A.id,stage_id:J==null?void 0:J.id}})).status===0&&(L.ZP.info("\u66F4\u65B0\u6210\u529F"),Te(!1),w())})}const ve=[{title:"\u6392\u540D",dataIndex:"name",align:"center",key:"name",render:(W,V,xe)=>l.createElement("span",null,xe+1)},{title:"\u5934\u50CF",dataIndex:"user_image",align:"center",key:"user_image",render:W=>l.createElement("img",{className:p.Z.imgradius,src:ae.Z.IMG_SERVER+`/images/${W}`})},{title:"\u6218\u961F\u540D\u79F0",dataIndex:"team_name",key:"team_name",render:W=>l.createElement("span",{title:W},W&&(W==null?void 0:W.length)>=15?(W==null?void 0:W.substr(0,15))+"...":W||"--")},{title:"\u5355\u4F4D",dataIndex:"school_name",key:"school_name",align:"center",render:W=>l.createElement("span",null,W||"--")},{title:(R==null?void 0:R.task)==="mAP"?"mAP\u6307\u6807":(R==null?void 0:R.task)==="Jittor-3"?"\u603B\u5206":"top1\u6307\u6807",dataIndex:"score",key:"score",render:W=>l.createElement("span",null,W||"--")}];return l.createElement("div",null,((P=o==null?void 0:o.stages)==null?void 0:P.length)>0&&l.createElement(C.default,{animated:!0,tabBarExtraContent:((M==null?void 0:M.admin)||(M==null?void 0:M.business)||_e)&&l.createElement(fe.ZP,{onClick:()=>{Te(!0)}},"\u7F16\u8F91"),onChange:W=>{var V,xe,it,f,A;Te(!1);let N=(V=o==null?void 0:o.stages)==null?void 0:V.filter(Ne=>parseInt(W)===parseInt(Ne==null?void 0:Ne.id))[0];ie(N);let be=(xe=N==null?void 0:N.children)==null?void 0:xe[0];vt(be),Fe(((A=(f=(it=o.rule_contents)==null?void 0:it.filter(Ne=>parseInt(Ne.competition_stage_id)===parseInt(N==null?void 0:N.id)))==null?void 0:f[0])==null?void 0:A.content)||""),c((be==null?void 0:be.id)||W)}},o&&o.stages.map((W,V)=>l.createElement(Wt,{tab:W.name,key:W.id===null?0:W.id},ze===!1&&o&&o.rule_contents.map((xe,it)=>{if(W.id===xe.competition_stage_id)return l.createElement(Pt.Z,{key:it,value:xe.content===void 0||xe.content===null?"":xe.content});if(W.id===null&&xe.competition_stage_id===0)return l.createElement(Pt.Z,{key:it,value:xe.content===void 0||xe.content===null?"":xe.content})})))),((K=J==null?void 0:J.children)==null?void 0:K.length)>0&&l.createElement(C.default,{activeKey:(he==null?void 0:he.id)+"",onChange:W=>{var V;let xe=(V=J==null?void 0:J.children)==null?void 0:V.filter(it=>parseInt(W)===parseInt(it==null?void 0:it.id))[0];vt(xe),c(W)}},(tt=J==null?void 0:J.children)==null?void 0:tt.map((W,V)=>l.createElement(Wt,{tab:W.name,key:W.id===null?0:W.id}))),ze&&l.createElement("div",null,l.createElement(dt.Z,{defaultValue:Re,onChange:W=>{Fe(W)}}),l.createElement("p",{style:{marginTop:"10px"}},l.createElement(fe.ZP,{style:{width:"90px"},type:"primary",onClick:()=>Ot()},"\u63D0\u4EA4"),l.createElement(fe.ZP,{style:{marginLeft:"30px",width:"90px"},onClick:()=>Te(!1)},"\u53D6\u6D88"))),((rt=a==null?void 0:a.teams)==null?void 0:rt.length)>0&&((R==null?void 0:R.task)==="mAP"||(R==null?void 0:R.task)==="dog"||(R==null?void 0:R.task)==="Jittor-3")?l.createElement(k.default,{dataSource:a==null?void 0:a.teams,columns:ve,pagination:!1}):((Ke=a==null?void 0:a.teams)==null?void 0:Ke.length)>0&&l.createElement(en,{ItemData:a}))}var gt=Oe,q=F(3538),Pe=F(49661),lt=F(34055),Ut=F(61186),At=F.n(Ut),re=F(59301),sn=(o,a,c)=>new Promise((G,w)=>{var M=P=>{try{R(c.next(P))}catch(K){w(K)}},_e=P=>{try{R(c.throw(P))}catch(K){w(K)}},R=P=>P.done?G(P.value):Promise.resolve(P.value).then(M,_e);R((c=c.apply(o,a)).next())});const{TabPane:cn}=C.default;function nn({ChartRules:o,ItemData:a,getCharts:c,Selectkey:G,HeaderDetail:w,getChartRules:M,userinfo:_e,Editable:R,dispatch:P,StaffDetail:K}){var tt,rt,Ke,ze,Te,Re,Fe;const[h,Ze]=(0,l.useState)(!1),[J,ie]=(0,l.useState)(""),[he,vt]=(0,l.useState)(!0),[b,Ot]=(0,l.useState)(),[ve,W]=(0,l.useState)(),{identifier:V}=(0,ue.useParams)();(0,l.useEffect)(()=>{var f,A,N,be,Ne,ut,ce,Ue,ct,De,Bt;if(he&&((f=o==null?void 0:o.stages)==null?void 0:f.length)>0){let mt=(A=o==null?void 0:o.stages)==null?void 0:A[0];Ot(mt);let Xt=(Ne=(be=(N=o==null?void 0:o.stages)==null?void 0:N[0])==null?void 0:be.children)==null?void 0:Ne[0];W(Xt),mt!=null&&mt.id?(c(mt==null?void 0:mt.id),ie(((Ue=(ce=(ut=o.rule_contents)==null?void 0:ut.filter(un=>parseInt(un.competition_stage_id)===parseInt(mt==null?void 0:mt.id)))==null?void 0:ce[0])==null?void 0:Ue.content)||"")):(c(0),ie(((Bt=(De=(ct=o.rule_contents)==null?void 0:ct.filter(un=>parseInt(un.competition_stage_id)===0))==null?void 0:De[0])==null?void 0:Bt.content)||""))}},[o]);function xe(){return sn(this,null,function*(){var f,A,N,be,Ne,ut;if(!J){L.ZP.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A");return}vt(!1);let ce=b==null?void 0:b.id;ce?(yield(0,x.ZP)(`/api/competitions/${V}/update_md_content.json`,{method:"post",body:{competition_module_id:G,content:J,md_content_id:(N=(A=(f=o.rule_contents)==null?void 0:f.filter(ct=>parseInt(ct.competition_stage_id)===parseInt(ce)))==null?void 0:A[0])==null?void 0:N.id,stage_id:b==null?void 0:b.id}})).status===0&&(L.ZP.info("\u66F4\u65B0\u6210\u529F"),Ze(!1),M()):(yield(0,x.ZP)(`/api/competitions/${V}/update_md_content.json`,{method:"post",body:{competition_module_id:G,content:J,md_content_id:(ut=(Ne=(be=o.rule_contents)==null?void 0:be.filter(ct=>parseInt(ct.competition_stage_id)===0))==null?void 0:Ne[0])==null?void 0:ut.id,stage_id:b==null?void 0:b.id}})).status===0&&(L.ZP.info("\u66F4\u65B0\u6210\u529F"),Ze(!1),M())})}const it=[{title:"request_id",dataIndex:"request_id",width:120,align:"center",key:"name",render:(f,A,N)=>re.createElement("span",null,f)},{title:"\u9644\u4EF6",dataIndex:"file_name",align:"center",width:150,key:"file_name",render:f=>re.createElement(Ce.Z,{title:f},re.createElement("span",{title:f},f&&(f==null?void 0:f.length)>=10?(f==null?void 0:f.substr(0,10))+"...":f||"--"))},{title:"\u63D0\u4EA4\u4EBA",dataIndex:"user_name",key:"user_name",width:100,render:f=>re.createElement("span",{title:f},f&&(f==null?void 0:f.length)>=6?(f==null?void 0:f.substr(0,6))+"...":f||"--")},{title:"\u63D0\u4EA4\u65F6\u95F4",dataIndex:"created_at",key:"created_at",align:"center"},{title:"\u72B6\u6001",dataIndex:"status",key:"status",width:50,render:f=>re.createElement("span",null,f===1?"\u8BA1\u7B97\u4E2D":f===2?"\u5B8C\u6210":f===0?"\u5F85\u8BA1\u7B97":f===3&&"\u9519\u8BEF")},!(b!=null&&b.display_four_indicators)&&(b==null?void 0:b.name)==="\u8BA1\u56FE\u6311\u6218\u70ED\u8EAB\u8D5B"&&{title:"\u6570\u636E\u6307\u68071",dataIndex:"data_ranking",key:"data_ranking",align:"center",render:f=>re.createElement("span",null,f||"--")},!(b!=null&&b.display_four_indicators)&&(b==null?void 0:b.name)==="\u8BA1\u56FE\u6311\u6218\u70ED\u8EAB\u8D5B"&&{title:"\u6570\u636E\u6307\u68072",dataIndex:"data_other",key:"data_other",align:"left",render:f=>(f==null?void 0:f.length)>0?f==null?void 0:f.map((A,N)=>re.createElement("span",null,A==null?void 0:A.name,"\uFF1A",A==null?void 0:A.value," ",re.createElement("br",null))):re.createElement("span",null,"--")},(b==null?void 0:b.display_six_indicators)&&{title:"\u6570\u636E\u6307\u6807",dataIndex:"data_other",key:"data_other",align:"left",render:f=>(f==null?void 0:f.length)>0?f==null?void 0:f.map((A,N)=>re.createElement("span",null,A==null?void 0:A.name,"\uFF1A",A==null?void 0:A.value," ",re.createElement("br",null))):re.createElement("span",null,"--")},(b==null?void 0:b.display_five_indicators)&&{title:"top1\u6307\u6807",dataIndex:"data_indicators",key:"data_indicators",align:"left",render:f=>{var A;return((A=f==null?void 0:f[0])==null?void 0:A.value)||"- -"}},(b==null?void 0:b.display_five_indicators)&&{title:"top5\u6307\u6807",dataIndex:"data_indicators",key:"data_indicators",align:"left",render:f=>{var A;return((A=f==null?void 0:f[1])==null?void 0:A.value)||"- -"}},(b==null?void 0:b.display_four_indicators)&&{title:"mask accuary",dataIndex:"data_ranking",key:"data_ranking",align:"left",render:f=>re.createElement("span",null,f||"--")},(b==null?void 0:b.display_one_indicators)&&{title:"mIoU",dataIndex:"data_other",key:"data_ranking",align:"left",render:f=>{var A;return re.createElement("span",null,((A=f==null?void 0:f.find(N=>(N==null?void 0:N.name)==="mIoU"))==null?void 0:A.value)||"--")}},(b==null?void 0:b.display_four_indicators)&&{title:"\u7F8E\u5B66\u8BC4\u5206",dataIndex:"data_other",key:"data_other",align:"left",render:f=>{var A;return re.createElement("span",null,((A=f==null?void 0:f.find(N=>(N==null?void 0:N.name)==="score"))==null?void 0:A.value)||"--")}},(b==null?void 0:b.display_four_indicators)&&{title:"FID",dataIndex:"data_other",key:"data_other",align:"left",render:f=>{var A;return re.createElement("span",null,((A=f==null?void 0:f.find(N=>(N==null?void 0:N.name)==="fid"))==null?void 0:A.value)||"--")}},(b==null?void 0:b.display_four_indicators)&&{title:"\u98CE\u683C\u76F8\u4F3C\u5EA6",dataIndex:"data_other",key:"data_other",align:"left",render:f=>{var A;return re.createElement("span",null,((A=f==null?void 0:f.find(N=>(N==null?void 0:N.name)==="style_similarity"))==null?void 0:A.value)||"--")}},(b==null?void 0:b.display_four_indicators)&&{title:"\u603B\u5206",dataIndex:"data_other",key:"data_other",align:"left",render:f=>{var A;return re.createElement("span",null,((A=f==null?void 0:f.find(N=>(N==null?void 0:N.name)==="total_score"))==null?void 0:A.value)||"--")}},!(b!=null&&b.display_four_indicators)&&(b==null?void 0:b.name.includes("\u53EF\u5FAE\u6E32\u67D3\u65B0\u89C6\u89D2\u751F\u6210\u8D5B\u9898"))&&{title:"Car",dataIndex:"data_ranking",key:"data_ranking",align:"center",render:f=>re.createElement("span",null,f||"--")},!(b!=null&&b.display_four_indicators)&&(b==null?void 0:b.name.includes("\u53EF\u5FAE\u6E32\u67D3\u65B0\u89C6\u89D2\u751F\u6210\u8D5B\u9898"))&&{title:"Coffee",dataIndex:"data_other",key:"data_other",align:"center",render:f=>{var A;return re.createElement("span",null,((A=f==null?void 0:f.find(N=>(N==null?void 0:N.name)==="Coffee"))==null?void 0:A.value)||"--")}},!(b!=null&&b.display_four_indicators)&&(b==null?void 0:b.name.includes("\u53EF\u5FAE\u6E32\u67D3\u65B0\u89C6\u89D2\u751F\u6210\u8D5B\u9898"))&&{title:"Easyship",dataIndex:"data_other",key:"data_other",align:"center",render:f=>{var A;return re.createElement("span",null,((A=f==null?void 0:f.find(N=>(N==null?void 0:N.name)==="Easyship"))==null?void 0:A.value)||"--")}},!(b!=null&&b.display_four_indicators)&&(b==null?void 0:b.name.includes("\u53EF\u5FAE\u6E32\u67D3\u65B0\u89C6\u89D2\u751F\u6210\u8D5B\u9898"))&&{title:"Scar",dataIndex:"data_other",key:"data_other",align:"center",render:f=>{var A;return re.createElement("span",null,((A=f==null?void 0:f.find(N=>(N==null?void 0:N.name)==="Scar"))==null?void 0:A.value)||"--")}},!(b!=null&&b.display_four_indicators)&&(b==null?void 0:b.name.includes("\u53EF\u5FAE\u6E32\u67D3\u65B0\u89C6\u89D2\u751F\u6210\u8D5B\u9898"))&&{title:"Scarf",dataIndex:"data_other",key:"data_other",align:"center",render:f=>{var A;return re.createElement("span",null,((A=f==null?void 0:f.find(N=>(N==null?void 0:N.name)==="Scarf"))==null?void 0:A.value)||"--")}},!(b!=null&&b.display_four_indicators)&&(b==null?void 0:b.name.includes("\u53EF\u5FAE\u6E32\u67D3\u65B0\u89C6\u89D2\u751F\u6210\u8D5B\u9898"))&&{title:"\u603B\u5206",dataIndex:"data_other",key:"data_other",align:"center",render:f=>{var A;return re.createElement("span",null,((A=f==null?void 0:f.find(N=>(N==null?void 0:N.name)==="Total"))==null?void 0:A.value)||"--")}},{title:"\u64CD\u4F5C",dataIndex:"result_url",width:50,key:"result_url",render:f=>re.createElement("a",{href:f,target:"_blank",download:"\u9644\u4EF6"},"\u4E0B\u8F7D")}].filter(f=>!!f);return re.createElement("div",null,((tt=o==null?void 0:o.stages)==null?void 0:tt.length)>0&&re.createElement(C.default,{animated:!0,tabBarExtraContent:_e!=null&&_e.admin||_e!=null&&_e.business||R?re.createElement(fe.ZP,{onClick:()=>{Ze(!0)}},"\u7F16\u8F91"):K.enrolled&&(b==null?void 0:b.start_time)&&(b==null?void 0:b.end_time)&&re.createElement("span",null,"\u63D0\u4EA4\u65F6\u95F4\uFF1A",At()(b==null?void 0:b.start_time).format("YYYY-MM-DD HH:mm:ss"),"\u81F3",At()(b==null?void 0:b.end_time).format("YYYY-MM-DD HH:mm:ss"),re.createElement(fe.ZP,{style:{marginLeft:"20px"},disabled:At()(b==null?void 0:b.start_time).unix()>At()(At()().format("YYYY-MM-DD HH:mm:s")).unix()||At()(At()().format("YYYY-MM-DD HH:mm:s")).unix()>At()(b==null?void 0:b.end_time).unix(),onClick:()=>{P({type:"shixunsDetail/setActionTabs",payload:{key:"md-tab",params:{value:(ve==null?void 0:ve.id)||(b==null?void 0:b.id),id:w==null?void 0:w.id}}})}},"\u63D0\u4EA4\u7ED3\u679C")),onChange:f=>{var A,N,be,Ne,ut;Ze(!1);let ce=(A=o==null?void 0:o.stages)==null?void 0:A.filter(ct=>parseInt(f)===parseInt(ct==null?void 0:ct.id))[0],Ue=(N=ce==null?void 0:ce.children)==null?void 0:N[0];W(Ue),Ot(ce),ie(((ut=(Ne=(be=o.rule_contents)==null?void 0:be.filter(ct=>parseInt(ct.competition_stage_id)===parseInt(ce==null?void 0:ce.id)))==null?void 0:Ne[0])==null?void 0:ut.content)||""),c((Ue==null?void 0:Ue.id)||f)}},o&&o.stages.map((f,A)=>re.createElement(cn,{tab:f.name,key:f.id===null?0:f.id},h===!1&&o&&o.rule_contents.map((N,be)=>{if(f.id===N.competition_stage_id)return re.createElement(Pt.Z,{key:be,value:N.content===void 0||N.content===null?"":N.content});if(f.id===null&&N.competition_stage_id===0)return re.createElement(Pt.Z,{key:be,value:N.content===void 0||N.content===null?"":N.content})})))),((rt=b==null?void 0:b.children)==null?void 0:rt.length)===0&&(a==null?void 0:a.total_user_count)>0&&re.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:10}},re.createElement("div",{style:{width:"33%",height:44,background:"#EEF7FF",color:"#3061D0",textAlign:"center",lineHeight:"44px"}},"\u672C\u8D5B\u9053\u7684\u6218\u961F\u6570\u91CF\uFF1A",a==null?void 0:a.total_team_count),re.createElement("div",{style:{width:"33%",height:44,background:"#EEF7FF",color:"#3061D0",textAlign:"center",lineHeight:"44px"}},"\u53C2\u8D5B\u4EBA\u6570\uFF1A",a==null?void 0:a.total_user_count),re.createElement("div",{style:{width:"33%",height:44,background:"#EEF7FF",color:"#3061D0",textAlign:"center",lineHeight:"44px"}},"\u63D0\u4EA4\u8BC4\u6D4B\u6B21\u6570\uFF1A",a==null?void 0:a.total_count)),((Ke=b==null?void 0:b.children)==null?void 0:Ke.length)>0&&re.createElement(C.default,{activeKey:(ve==null?void 0:ve.id)+"",onChange:f=>{var A;let N=(A=b==null?void 0:b.children)==null?void 0:A.filter(be=>parseInt(f)===parseInt(be==null?void 0:be.id))[0];W(N),c(f)}},(ze=b==null?void 0:b.children)==null?void 0:ze.map((f,A)=>re.createElement(cn,{tab:f.name,key:f.id===null?0:f.id}))),((Te=b==null?void 0:b.children)==null?void 0:Te.length)>0&&(a==null?void 0:a.total_user_count)>0&&re.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:10}},re.createElement("div",{style:{width:"33%",height:44,background:"#EEF7FF",color:"#3061D0",textAlign:"center",lineHeight:"44px"}},"\u672C\u8D5B\u9053\u7684\u6218\u961F\u6570\u91CF\uFF1A",a==null?void 0:a.total_team_count),re.createElement("div",{style:{width:"33%",height:44,background:"#EEF7FF",color:"#3061D0",textAlign:"center",lineHeight:"44px"}},"\u53C2\u8D5B\u4EBA\u6570\uFF1A",a==null?void 0:a.total_user_count),re.createElement("div",{style:{width:"33%",height:44,background:"#EEF7FF",color:"#3061D0",textAlign:"center",lineHeight:"44px"}},"\u63D0\u4EA4\u8BC4\u6D4B\u6B21\u6570\uFF1A",a==null?void 0:a.total_count)),h&&re.createElement("div",null,re.createElement(dt.Z,{defaultValue:J,onChange:f=>{ie(f)}}),re.createElement("p",{style:{marginTop:"10px"}},re.createElement(fe.ZP,{style:{width:"90px"},type:"primary",onClick:()=>xe()},"\u63D0\u4EA4"),re.createElement(fe.ZP,{style:{marginLeft:"30px",width:"90px"},onClick:()=>Ze(!1)},"\u53D6\u6D88"))),((Fe=(Re=w.competition_modules.filter(f=>f.id===G))==null?void 0:Re[0])==null?void 0:Fe.show_leaderboard)&&re.createElement(k.default,{dataSource:a==null?void 0:a.results,columns:it}))}var kn=nn,pn=F(13747),Dn=Object.defineProperty,Ln=Object.defineProperties,On=Object.getOwnPropertyDescriptors,Bn=Object.getOwnPropertySymbols,Tn=Object.prototype.hasOwnProperty,In=Object.prototype.propertyIsEnumerable,bn=(o,a,c)=>a in o?Dn(o,a,{enumerable:!0,configurable:!0,writable:!0,value:c}):o[a]=c,zt=(o,a)=>{for(var c in a||(a={}))Tn.call(a,c)&&bn(o,c,a[c]);if(Bn)for(var c of Bn(a))In.call(a,c)&&bn(o,c,a[c]);return o},An=(o,a)=>Ln(o,On(a)),En=(o,a,c)=>new Promise((G,w)=>{var M=P=>{try{R(c.next(P))}catch(K){w(K)}},_e=P=>{try{R(c.throw(P))}catch(K){w(K)}},R=P=>P.done?G(P.value):Promise.resolve(P.value).then(M,_e);R((c=c.apply(o,a)).next())});const{TabPane:It}=C.default;function wt({loading:o,ChartRules:a,ItemData:c,getCharts:G,Selectkey:w,HeaderDetail:M,getChartRules:_e,userinfo:R,Editable:P,dispatch:K,StaffDetail:tt}){var rt,Ke,ze,Te,Re;const[Fe,h]=(0,l.useState)(!1),[Ze,J]=(0,l.useState)(""),[ie,he]=(0,l.useState)(!0),[vt,b]=(0,l.useState)(),[Ot,ve]=(0,l.useState)(),{identifier:W}=(0,ue.useParams)();let[V,xe]=(0,l.useState)({page:1,limit:10,sort:"desc"});(0,l.useEffect)(()=>{var f;ie&&((f=a==null?void 0:a.stages)!=null&&f[0])&&it()},[(rt=a==null?void 0:a.stages)==null?void 0:rt[0]]);const it=()=>En(this,null,function*(){var f,A,N,be;let Ne=(f=a==null?void 0:a.stages)==null?void 0:f[0];b(Ne);let ut=(be=(N=(A=a==null?void 0:a.stages)==null?void 0:A[0])==null?void 0:N.children)==null?void 0:be[0];ve(ut),V.id=(ut==null?void 0:ut.id)||(Ne==null?void 0:Ne.id),xe(zt({},V)),yield G(An(zt({},V),{stage_id:V.id}))});return l.createElement("div",null,((Ke=a==null?void 0:a.stages)==null?void 0:Ke.length)>0&&l.createElement(C.default,{tabBarStyle:{height:65,marginLeft:35,marginRight:30},animated:!0,onChange:f=>En(this,null,function*(){var A,N,be,Ne,ut;h(!1);let ce=(A=a==null?void 0:a.stages)==null?void 0:A.filter(ct=>parseInt(f)===parseInt(ct==null?void 0:ct.id))[0],Ue=(N=ce==null?void 0:ce.children)==null?void 0:N[0];ve(Ue),b(ce),J(((ut=(Ne=(be=a.rule_contents)==null?void 0:be.filter(ct=>parseInt(ct.competition_stage_id)===parseInt(ce==null?void 0:ce.id)))==null?void 0:Ne[0])==null?void 0:ut.content)||""),V.page=1,V.limit=10,V.id=(Ue==null?void 0:Ue.id)||f,xe(zt({},V)),yield G(zt({},V))})},a&&a.stages.map((f,A)=>l.createElement(It,{tab:f.name,key:f.id===null?0:f.id}))),((ze=vt==null?void 0:vt.children)==null?void 0:ze.length)>0&&l.createElement(C.default,{activeKey:(Ot==null?void 0:Ot.id)+"",onChange:f=>En(this,null,function*(){var A;let N=(A=vt==null?void 0:vt.children)==null?void 0:A.filter(be=>parseInt(f)===parseInt(be==null?void 0:be.id))[0];ve(N),V.page=1,V.limit=10,V.id=f,xe(zt({},V)),yield G(zt({},V))})},(Te=vt==null?void 0:vt.children)==null?void 0:Te.map((f,A)=>l.createElement(It,{tab:f.name,key:f.id===null?0:f.id}))),l.createElement("div",{style:{height:10,background:"#F5F5F5"}}),l.createElement("div",{style:{padding:"20px 30px"}},l.createElement("span",{style:{cursor:"pointer",marginRight:20},onClick:()=>{V.page=1,V.sort=V.sort==="desc"?"asc":"desc",xe(zt({},V)),G(zt({},V))}},"\u6309\u63D0\u4EA4\u65F6\u95F4",V.sort==="asc"?"\u6B63":"\u5012","\u5E8F\u6392\u5E8F ",l.createElement("i",{className:`iconfont font14 ${V.sort==="asc"?"icon-jiantou9":"icon-changyongtubiao-xianxingdaochu-zhuanqu-"}`}))," ",l.createElement(de.default.Search,{onSearch:f=>{V.page=1,V.search=f,xe(zt({},V)),G(zt({},V))},style:{width:"82%"},placeholder:"\u8F93\u5165\u4EBA\u5458/\u6218\u961F\u540D\u79F0\u8FDB\u884C\u641C\u7D22"}),l.createElement(Ve.Z,{spinning:o},(Re=c==null?void 0:c.results)==null?void 0:Re.map((f,A)=>l.createElement("div",{style:{border:"1px solid #E3EFFC",height:100,borderRadius:"2px 2px 0px 0px",marginTop:A===0?14:30}},l.createElement("div",{style:{height:60,padding:10,display:"flex",alignItems:"center"}},l.createElement("img",{src:ae.Z.IMG_SERVER+"/images/"+(f==null?void 0:f.image_url),style:{width:40,height:40,borderRadius:"50%"}}),l.createElement("div",{style:{marginLeft:10}},l.createElement("span",{style:{color:"#333333",fontWeight:500,fontSize:"16px"}},f==null?void 0:f.user_name),l.createElement("span",{style:{color:"#999999",fontWeight:400,fontSize:"14px",marginLeft:60}},"\u6240\u5C5E\u6218\u961F",l.createElement("span",{style:{marginLeft:10,color:"#333"}},(f==null?void 0:f.team_name)||"- -")),l.createElement("span",{style:{color:"#333333",fontWeight:400,fontSize:"14px",marginLeft:40}},"\u5B66\u6821 ",l.createElement("span",{style:{marginLeft:10,color:"#333"}},(f==null?void 0:f.school_name)||"- -")))),l.createElement("div",{style:{background:"#EEF2F8",height:40,borderRadius:"0px 0px 2px 2px",paddingLeft:60,paddingRight:40,display:"flex",alignItems:"center",justifyContent:"space-between"}},l.createElement("div",null,l.createElement("span",{style:{color:"#666666",fontSize:"12px"}},"\u63D0\u4EA4\u65F6\u95F4\uFF1A",f==null?void 0:f.created_at),l.createElement("span",{style:{color:"#666666",fontSize:"12px",margin:"0px 40px"}},"\u6D88\u8017\u5185\u5B58\uFF1A",(f==null?void 0:f.ts_mem)||"- -","MB"),l.createElement("span",{style:{color:"#666666",fontSize:"12px"}},"\u4EE3\u7801\u6267\u884C\u65F6\u95F4\uFF1A",(f==null?void 0:f.ts_time)||"- -","\u79D2")),l.createElement("a",{style:{display:"flex",alignItems:"center"},href:`/tasks/${f==null?void 0:f.game_identifier}`,target:"_blank"},l.createElement("i",{className:"iconfont icon-chakandaima",style:{marginRight:4}}),l.createElement("span",{style:{lineHeight:"14px"}},"\u67E5\u770B\u4EE3\u7801")))))),l.createElement(pn.Z,{total:c==null?void 0:c.total_count,pageSize:10,hideOnSinglePage:!0,style:{marginTop:40,textAlign:"center"},showSizeChanger:!1,current:V.page,onChange:(f,A)=>{V.page=f,xe(zt({},V)),G(zt({},V))}})))}var S=wt,r=F(35705),s=Object.defineProperty,e=Object.defineProperties,_=Object.getOwnPropertyDescriptors,d=Object.getOwnPropertySymbols,m=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,O=(o,a,c)=>a in o?s(o,a,{enumerable:!0,configurable:!0,writable:!0,value:c}):o[a]=c,ee=(o,a)=>{for(var c in a||(a={}))m.call(a,c)&&O(o,c,a[c]);if(d)for(var c of d(a))E.call(a,c)&&O(o,c,a[c]);return o},oe=(o,a)=>e(o,_(a)),U=(o,a,c)=>new Promise((G,w)=>{var M=P=>{try{R(c.next(P))}catch(K){w(K)}},_e=P=>{try{R(c.throw(P))}catch(K){w(K)}},R=P=>P.done?G(P.value):Promise.resolve(P.value).then(M,_e);R((c=c.apply(o,a)).next())});const{TabPane:we}=C.default;function ke({loading:o,ChartRules:a,ItemData:c,getCharts:G,Selectkey:w,HeaderDetail:M,getChartRules:_e,userinfo:R,Editable:P,dispatch:K,StaffDetail:tt}){var rt,Ke,ze,Te,Re,Fe;const[h,Ze]=(0,l.useState)(!1),[J,ie]=(0,l.useState)(""),[he,vt]=(0,l.useState)(!0),[b,Ot]=(0,l.useState)(),[ve,W]=(0,l.useState)(),[V,xe]=(0,l.useState)([]),{identifier:it}=(0,ue.useParams)();let[f,A]=(0,l.useState)({page:1,limit:10}),[N,be]=(0,l.useState)();(0,l.useEffect)(()=>{var ce;he&&((ce=a==null?void 0:a.stages)!=null&&ce[0])&&Ne()},[(rt=a==null?void 0:a.stages)==null?void 0:rt[0]]);const Ne=()=>U(this,null,function*(){var ce,Ue,ct,De;let Bt=(ce=a==null?void 0:a.stages)==null?void 0:ce[0];Ot(Bt);let mt=(De=(ct=(Ue=a==null?void 0:a.stages)==null?void 0:Ue[0])==null?void 0:ct.children)==null?void 0:De[0];W(mt),f.id=(mt==null?void 0:mt.id)||(Bt==null?void 0:Bt.id),A(ee({},f)),yield G(oe(ee({},f),{stage_id:f.id}))});(0,l.useEffect)(()=>{M!=null&&M.is_new&&ut()},[M]);function ut(){return U(this,null,function*(){let ce=yield(0,x.ZP)(`/api/competitions/${it}/get_shixun_settings.json`,{method:"get"});(ce==null?void 0:ce.status)===0&&xe(ce)})}return l.createElement("div",null,((Ke=a==null?void 0:a.stages)==null?void 0:Ke.length)>0&&l.createElement(C.default,{tabBarStyle:{height:65,marginLeft:35,marginRight:30},animated:!0,onChange:ce=>U(this,null,function*(){var Ue,ct,De,Bt,mt;Ze(!1);let Xt=(Ue=a==null?void 0:a.stages)==null?void 0:Ue.filter(an=>parseInt(ce)===parseInt(an==null?void 0:an.id))[0],un=(ct=Xt==null?void 0:Xt.children)==null?void 0:ct[0];W(un),Ot(Xt),ie(((mt=(Bt=(De=a.rule_contents)==null?void 0:De.filter(an=>parseInt(an.competition_stage_id)===parseInt(Xt==null?void 0:Xt.id)))==null?void 0:Bt[0])==null?void 0:mt.content)||""),f.page=1,f.limit=10,f.id=(un==null?void 0:un.id)||ce,A(ee({},f)),yield G(ee({},f))})},a&&a.stages.map((ce,Ue)=>l.createElement(we,{tab:ce.name,key:ce.id===null?0:ce.id}))),((ze=b==null?void 0:b.children)==null?void 0:ze.length)>0&&l.createElement(C.default,{activeKey:(ve==null?void 0:ve.id)+"",tabBarStyle:{height:65,marginLeft:35,marginRight:30},onChange:ce=>U(this,null,function*(){var Ue;let ct=(Ue=b==null?void 0:b.children)==null?void 0:Ue.filter(De=>parseInt(ce)===parseInt(De==null?void 0:De.id))[0];W(ct),f.page=1,f.limit=10,f.id=ce,A(ee({},f)),yield G(ee({},f))})},(Te=b==null?void 0:b.children)==null?void 0:Te.map((ce,Ue)=>l.createElement(we,{tab:ce.name,key:ce.id===null?0:ce.id}))),l.createElement("div",{style:{height:10,background:"#F5F5F5"}}),l.createElement("div",{style:{padding:"20px 30px"}},l.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},l.createElement("span",{style:{color:"#9096A3"}},"\u4F5C\u54C1\u63D0\u4EA4\u65F6\u95F4",l.createElement("span",{style:{color:"#333333",marginLeft:5}},c==null?void 0:c.start_time,"~",c==null?void 0:c.end_time)),l.createElement("span",{style:{color:"#9096A3"}},"\u6210\u7EE9\u6765\u6E90",l.createElement("span",{style:{color:"#333333",marginLeft:5}},(c==null?void 0:c.score_source)===0?"\u7ECF\u9A8C\u503C":"\u9884\u6D4B\u51C6\u786E\u7387")," ")),l.createElement(Ve.Z,{spinning:o},!(M!=null&&M.is_new)&&((Re=c==null?void 0:c.results)==null?void 0:Re.map((ce,Ue)=>l.createElement(r.Z,{dispatch:K,Header:M,StaffDetail:tt,item:ce,index:Ue}))),(M==null?void 0:M.is_new)&&((Fe=V==null?void 0:V.data)==null?void 0:Fe.map((ce,Ue)=>l.createElement(r.Z,{dispatch:K,Header:M,StaffDetail:tt,item:ce,index:Ue})))),l.createElement(pn.Z,{total:c==null?void 0:c.total_count,pageSize:10,hideOnSinglePage:!0,style:{marginTop:40,textAlign:"center"},showSizeChanger:!1,current:f.page,onChange:(ce,Ue)=>{f.page=ce,A(ee({},f)),G(ee({},f))}})))}var Ee=ke,X=F(34928),me=F(8007),We=F(25290),H=F(28284),Me=F(32050),Ie={WorkSubmitDesc:"WorkSubmitDesc___zk_Kc",WorkSubmit:"WorkSubmit___BOuVl",span:"span___sGFYr",search:"search___wZWVl",downBut:"downBut___tfNYQ"},et=F(57884),ht=F(64885),ln=F(86129),Yt=F.n(ln),D=F(59301),yn=Object.defineProperty,Mn=Object.defineProperties,rn=Object.getOwnPropertyDescriptors,fn=Object.getOwnPropertySymbols,Jn=Object.prototype.hasOwnProperty,Qn=Object.prototype.propertyIsEnumerable,qn=(o,a,c)=>a in o?yn(o,a,{enumerable:!0,configurable:!0,writable:!0,value:c}):o[a]=c,Cn=(o,a)=>{for(var c in a||(a={}))Jn.call(a,c)&&qn(o,c,a[c]);if(fn)for(var c of fn(a))Qn.call(a,c)&&qn(o,c,a[c]);return o},Wn=(o,a)=>Mn(o,rn(a)),Gt=(o,a,c)=>new Promise((G,w)=>{var M=P=>{try{R(c.next(P))}catch(K){w(K)}},_e=P=>{try{R(c.throw(P))}catch(K){w(K)}},R=P=>P.done?G(P.value):Promise.resolve(P.value).then(M,_e);R((c=c.apply(o,a)).next())});const sl=({dispatch:o,userinfo:a,Editable:c,ItemData:G,TabResults:w,HeaderDetail:M,StaffDetail:_e,getTabResults:R=()=>{}})=>{var P,K,tt,rt,Ke,ze,Te;const[Re]=H.default.useForm(),[Fe,h]=(0,l.useState)(!1),[Ze,J]=(0,l.useState)(!1),{identifier:ie}=(0,ue.useParams)(),[he,vt]=(0,l.useState)(1),[b,Ot]=(0,l.useState)(!1),[ve,W]=(0,l.useState)(!1),[V,xe]=(0,l.useState)([]),[it,f]=(0,l.useState)(!1),[A,N]=(0,l.useState)([]),[be,Ne]=(0,l.useState)(!1),[ut,ce]=(0,l.useState)({name:"",url:"",id:null,fileList:[],competition_team_id:""}),[Ue,ct]=(0,l.useState)({total_count:0,results:[]}),[De,Bt]=(0,l.useState)(null),[mt,Xt]=(0,l.useState)({page:1,limit:20,keyword:""}),[un,an]=(0,l.useState)("");let xn=(0,l.useRef)(new(Yt()));(0,l.useEffect)(()=>{Ot((a==null?void 0:a.admin)||(a==null?void 0:a.business)||c)},[a==null?void 0:a.admin,a==null?void 0:a.business,c]),(0,l.useEffect)(()=>{G!=null&&G.only_file&&vt(2)},[G]),(0,l.useEffect)(()=>{var T,se,He,Ht,Vt,dn,Jt,Tt;w.stages&&((T=w.stages)==null?void 0:T.length)>0&&(((Ht=(He=(se=w.stages)==null?void 0:se[0])==null?void 0:He.children)==null?void 0:Ht.length)>0?Bt(((Jt=(dn=(Vt=w.stages)==null?void 0:Vt[0])==null?void 0:dn.children)==null?void 0:Jt[0])||null):Bt(((Tt=w.stages)==null?void 0:Tt[0])||null))},[w.stages]),(0,l.useEffect)(()=>{vn(),Gn()},[De==null?void 0:De.id,mt.page,mt.limit]);function el(){return Gt(this,null,function*(){var T,se;Ne(!0);let He=yield(0,x.ZP)(`/api/competitions/${ie}/my_teams`,{method:"get"});Ne(!1),W(!0),(He==null?void 0:He.status)===0&&(N(He==null?void 0:He.data),Re.setFieldsValue({name:"",url:"",id:"",competition_team_id:(se=(T=He==null?void 0:He.data)==null?void 0:T[0])==null?void 0:se.id}))})}function Gn(){return Gt(this,null,function*(){let T=yield(0,x.ZP)(`/api/competitions/${ie}/my_teams`,{method:"get"});(T==null?void 0:T.status)===0&&N(T==null?void 0:T.data)})}const Vn=[{title:D.createElement("span",{style:{color:"#5F6368"}},"\u961F\u4F0D\u540D\u79F0"),dataIndex:"team_name",width:"120px",ellipsis:!0,render:T=>D.createElement(Ce.Z,{placement:"topLeft",title:T},T||"- -"),isShow:[1,2]},{title:D.createElement("span",{style:{color:"#5F6368"}},"\u63D0\u4EA4\u4EBA"),dataIndex:"user_name",width:"120px",ellipsis:!0,render:T=>D.createElement(Ce.Z,{placement:"topLeft",title:T},T||"- -"),isShow:[1,2]},{title:D.createElement("span",{style:{color:"#5F6368"}},"\u4F5C\u54C1\u540D\u79F0"),dataIndex:"name",ellipsis:!0,render:(T,se)=>T?D.createElement("a",{href:se.url||"#",target:"_blank"},D.createElement(Ce.Z,{placement:"topLeft",title:T},T)):"--",isShow:[1]},{title:D.createElement("span",{style:{color:"#5F6368"}},"\u4F5C\u54C1\u6587\u4EF6"),dataIndex:"file_name",width:he==1?"180px":"",ellipsis:!0,render:T=>D.createElement(Ce.Z,{placement:"topLeft",title:T},T||"- -"),isShow:[1,2]},{title:D.createElement("span",{style:{color:"#5F6368"}},"\u66F4\u65B0\u65F6\u95F4"),dataIndex:"updated_at",width:"180px",render:T=>T||"- -",isShow:[1,2]},{title:D.createElement("span",{style:{color:"#5F6368"}},"\u64CD\u4F5C"),dataIndex:"result_url",ellipsis:!0,width:"200px",align:"center",render:(T,se)=>D.createElement(ye.Z,{justify:b?"center":"space-between"},!b&&D.createElement(fe.ZP,{type:"link",onClick:()=>{W(!0),ce({name:se.name,url:se.url,id:se.id,competition_team_id:se.competition_team_id}),Re.setFieldsValue({name:se.name,url:se.url,id:se.id,competition_team_id:se.competition_team_id}),se.file_name&&xe([{uid:"-1",name:se.file_name,status:"done",url:se.result_url||""}])}},"\u7F16\u8F91"),D.createElement(ht.Z,{type:"link",disabled:!T,onClick:()=>Gt(void 0,null,function*(){return(0,Pe.Nd)(se.file_name,T)})},b?"\u4E0B\u8F7D\u6587\u4EF6":"\u4E0B\u8F7D"),!b&&D.createElement(fe.ZP,{type:"link",onClick:()=>Gt(void 0,null,function*(){pe.default.confirm({title:"\u63D0\u793A",content:"\u63D0\u4EA4\u4F5C\u54C1\u5220\u9664\u540E\u4E0D\u53EF\u6062\u590D\uFF0C\u786E\u8BA4\u5220\u9664\u8BE5\u4F5C\u54C1",onOk:()=>Gt(void 0,null,function*(){let He=yield(0,x.ZP)(`/api/competitions/${ie}/delete_result.json`,{method:"Delete",body:{result_id:se==null?void 0:se.id}});(He==null?void 0:He.status)===0&&(L.ZP.info("\u5220\u9664\u6210\u529F"),vn())})})})},"\u5220\u9664")),isShow:[1,2]}].filter(T=>T.isShow.includes(he)),vn=()=>Gt(void 0,null,function*(){f(!0);const T=yield o({type:"competitions/Results",payload:Cn({identifier:ie,stage_id:De==null?void 0:De.id,module_type:"worksubmit"},mt)});ct(T),f(!1)}),Zn=T=>Gt(void 0,null,function*(){const se=yield o({type:"competitions/updateMdContent",payload:{identifier:ie,stage_id:De==null?void 0:De.id,competition_module_id:G.id,content:un,md_content_id:T==null?void 0:T.id}});se.status==0&&L.ZP.success(se.message),J(!1),yield R()}),Yn=T=>Gt(void 0,null,function*(){var se;if(he==2&&V.length==0){L.ZP.error("\u8BF7\u9009\u62E9\u6587\u4EF6");return}h(!0);let He;const Ht={login:a==null?void 0:a.login,container_type:"Competition",file_name:(se=V==null?void 0:V[0])==null?void 0:se.name,stage_type:De==null?void 0:De.id,container_id:M==null?void 0:M.id,result_id:ut==null?void 0:ut.id,module_type:"worksubmit",competition_team_id:T.competition_team_id};if(he==1){const Vt=yield(0,x.ZP)(`/api/competitions/${ie}/check_result_url.json`,{method:"GET",params:{url:T.url,stage_id:De==null?void 0:De.id,result_id:ut==null?void 0:ut.id,competition_team_id:T.competition_team_id}});if((Vt==null?void 0:Vt.status)!=0){h(!1);return}Ht.name=T.name,Ht.url=T.url}he==1&&V.length==0?He=yield o({type:"competitions/getWorkSubmitUpdateRes",payload:{identifier:ie,result_id:ut==null?void 0:ut.id,name:T.name,url:T.url,stage_id:De==null?void 0:De.id,result_url:ut==null?void 0:ut.result_url,module_type:"worksubmit",competition_team_id:T.competition_team_id}}):He=yield(0,Ye.cT)(V[0],Ht),(He==null?void 0:He.status)==0?L.ZP.success("\u63D0\u4EA4\u6210\u529F"):L.ZP.info((He==null?void 0:He.message)||"\u63D0\u4EA4\u5931\u8D25"),h(!1),W(!1),xe([]),vn()}),zn=()=>Gt(void 0,null,function*(){var T;const se=yield o({type:"competitions/Results",payload:{identifier:ie,stage_id:De==null?void 0:De.id,page:1,limit:9999999,keyword:"",module_type:"worksubmit"}}),He=(T=se==null?void 0:se.results)==null?void 0:T.filter(Nt=>(Nt==null?void 0:Nt.result_url)&&Nt.file_name),Ht=pe.default.info({width:460,title:D.createElement("div",null,"\u6B63\u5728\u5BFC\u51FA\u53C2\u8D5B\u6587\u4EF6,",D.createElement("span",{className:"c-red"},"\u8BF7\u52FF\u5173\u95ED\u6216\u64CD\u4F5C\u5F53\u524D\u6D4F\u89C8\u5668\u7A97\u53E3")),content:D.createElement("div",null,"\u5F53\u524D\u8FDB\u5EA6: ",D.createElement("span",{className:"c-blue"},0),"/",He.length),maskClosable:!1,className:Ie.modal,onOk:()=>{}}),Vt=[];let dn=800*1024*1024,Jt=0,Tt=0;const mn=(Nt,gn)=>Gt(void 0,null,function*(){try{const $n=new(Yt()),_n=yield(yield fetch(Nt.result_url,{method:"get"})).blob();$n.file(Nt.file_name,_n);const Kn=yield $n.generateAsync({type:"blob"}),Rn=_n.size;Jt+Rn>dn&&(yield xn.current.generateAsync({type:"blob"}).then(Qt=>{(0,Pe.Nd)(`${M.name}-batch${Tt+1}`,window.URL.createObjectURL(Qt))}),xn.current=new(Yt()),Jt=0,Tt++);const jn=(Qt,qt=0)=>{qt==0&&Vt.includes(Qt)||Vt.includes(`${Qt}(${qt})`)?jn(Qt,qt+1):(Vt.push(qt==0?Qt:`${Qt}(${qt})`),xn.current.file(qt==0?Qt+".zip":`${Qt}(${qt}).zip`,Kn),Jt+=Rn)};jn(`${Nt==null?void 0:Nt.team_name}-${Nt==null?void 0:Nt.user_name}`),Ht.update({content:D.createElement("div",null,"\u5F53\u524D\u8FDB\u5EA6: ",D.createElement("span",{className:"c-blue"},gn),"/",He.length)})}catch($n){L.ZP.error(`${Nt.file_name}\u4E0B\u8F7D\u5931\u8D25`)}}),wn=()=>Gt(void 0,null,function*(){let Nt=0;for(const gn of He)yield mn(gn,++Nt);Jt>0&&(yield xn.current.generateAsync({type:"blob"}).then(gn=>{(0,Pe.Nd)(`${M.name}-batch${Tt+1}`,window.URL.createObjectURL(gn))})),Ht.destroy()});console.log("DownloadList===",He),He.length>0&&wn()}),Nn={maxCount:1,withCredentials:!0,fileList:V,onRemove:()=>{xe([])},beforeUpload:T=>{const se=T.size/1024/1024,He=T.name.split(".").slice(-1)[0].toLowerCase();return he==1&&se>150||he==2&&se/1024>1||se==0?(L.ZP.error(`${T.name} \u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002${se==0?"\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A":`\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${he==1?"150MB":"1G"})`}`),Promise.reject()):(xe([T]),!1)}};return D.createElement("div",{className:Ie.WorkSubmit},De?D.createElement(C.default,{defaultActiveKey:((K=(P=w.stages)==null?void 0:P[0])==null?void 0:K.id)||1,destroyInactiveTabPane:!0,tabBarExtraContent:D.createElement(ye.Z,{style:{marginBottom:"10px"}},!b&&_e.enrolled&&D.createElement(fe.ZP,{type:"primary",onClick:()=>W(!0)},"\u4F5C\u54C1\u63D0\u4EA4"),b&&!Ze&&D.createElement(fe.ZP,{style:{marginLeft:"10px"},type:"primary",onClick:()=>J(!0)},"\u7F16\u8F91")),onChange:T=>{const se=w.stages.find(He=>He.id==T);se.children.length>0?Bt(se.children[0]):Bt(se)}},(tt=w.stages)==null?void 0:tt.map((T,se)=>{var He,Ht,Vt,dn,Jt,Tt;return D.createElement(C.default.TabPane,{tab:D.createElement("div",{style:{marginBottom:"20px"}},T.name),key:T.id},Ze?D.createElement(D.Fragment,null,D.createElement(dt.Z,{defaultValue:((He=w.rule_contents[se])==null?void 0:He.content)||"",onChange:mn=>an(mn)}),D.createElement(ye.Z,null,D.createElement(ht.Z,{type:"primary",onClick:()=>Zn(w.rule_contents[se])},"\u63D0\u4EA4"),D.createElement(fe.ZP,{style:{marginLeft:"10px"},onClick:()=>Gt(void 0,null,function*(){return J(!1)})},"\u53D6\u6D88"))):D.createElement(Pt.Z,{style:{marginTop:"10px"},value:((Ht=w.rule_contents[se])==null?void 0:Ht.content)||""}),((Vt=T.children)==null?void 0:Vt.length)>0&&D.createElement(C.default,{defaultActiveKey:(Jt=(dn=T.children)==null?void 0:dn[0])==null?void 0:Jt.id,destroyInactiveTabPane:!0,onChange:mn=>{var wn;Bt((wn=T.children)==null?void 0:wn.find(Nt=>Nt.id==mn))}},(Tt=T.children)==null?void 0:Tt.map(mn=>D.createElement(C.default.TabPane,{tab:mn.name,key:mn.id}))))})):D.createElement("div",null,(_e.enrolled||b)&&D.createElement(ye.Z,{style:{marginBottom:"10px",paddingBottom:"10px",borderBottom:"1px solid #eee"}},!b&&_e.enrolled&&D.createElement(fe.ZP,{style:{marginLeft:"auto"},loading:be,type:"primary",onClick:()=>{el()}},"\u4F5C\u54C1\u63D0\u4EA4"),b&&!Ze&&D.createElement(fe.ZP,{style:{marginLeft:!b&&_e.enrolled?"10px":"auto"},type:"primary",onClick:()=>J(!0)},"\u7F16\u8F91")),Ze?D.createElement(D.Fragment,null,D.createElement(dt.Z,{defaultValue:((Ke=(rt=w.rule_contents)==null?void 0:rt[0])==null?void 0:Ke.content)||"",onChange:T=>an(T)}),D.createElement(ye.Z,null,D.createElement(ht.Z,{type:"primary",onClick:()=>{var T;return Zn((T=w.rule_contents)==null?void 0:T[0])}},"\u63D0\u4EA4"),D.createElement(fe.ZP,{style:{marginLeft:"10px"},onClick:()=>Gt(void 0,null,function*(){return J(!1)})},"\u53D6\u6D88"))):D.createElement(Pt.Z,{style:{marginTop:"10px"},value:((Te=(ze=w.rule_contents)==null?void 0:ze[0])==null?void 0:Te.content)||""})),D.createElement(ye.Z,{align:"middle",justify:"space-between",style:{marginTop:"21px"}},D.createElement(ye.Z,{align:"middle"},D.createElement(de.default,{className:Ie.search,placeholder:"\u8BF7\u8F93\u5165\u961F\u4F0D\u540D\u79F0\u6216\u63D0\u4EA4\u4EBA\u59D3\u540D\u641C\u7D22",suffix:D.createElement("i",{className:"iconfont icon-sousuo9",onClick:vn,style:{color:"#000",cursor:"pointer",fontSize:"14px"}}),onChange:T=>{mt.keyword=T.target.value,mt.search=T.target.value,Xt(mt)},style:{background:"#F6F7F9"},bordered:!1,onPressEnter:vn}),D.createElement("div",{style:{color:"#9B9B9B",fontSize:"14px",marginLeft:"20px"}},"\u5F53\u524D\u5171\u8BA1\u4F5C\u54C1",D.createElement("span",{style:{color:"#165DFF"}},Ue.total_count),"\u4E2A")),b&&D.createElement(ye.Z,{align:"middle"},he==1&&D.createElement(fe.ZP,{style:{lineHeight:"32px"},target:"_blank",href:`/api/competitions/${ie}/results.xlsx?identifier=${ie}&stage_id=${(De==null?void 0:De.id)||""}&module_type=worksubmit`,icon:D.createElement("i",{className:"iconfont icon-lianjie3",style:{fontSize:"16px",color:"#44D7B6"}}),className:Ie.downBut},"\u4E0B\u8F7D\u4F5C\u54C1\u94FE\u63A5"),D.createElement(ht.Z,{icon:D.createElement("i",{className:"iconfont icon-wenjian4",style:{fontSize:"16px",color:"#F6C555"}}),className:Ie.downBut,style:{marginLeft:"20px"},onClick:zn},"\u4E0B\u8F7D\u6240\u6709\u6587\u4EF6"))),D.createElement(k.default,{style:{marginTop:"17px"},loading:it,columns:Vn,dataSource:Ue.results,locale:{emptyText:D.createElement(et.Z,null)},pagination:!1}),D.createElement(ye.Z,{style:{marginTop:"20px"},align:"middle",justify:"space-between"},((De==null?void 0:De.end_time)&&(De==null?void 0:De.start_time)||M.start_time&&M.end_time)&&D.createElement("span",{className:Ie.span},"\u63D0\u4EA4\u65F6\u95F4\uFF1A",D.createElement("span",null,At()((De==null?void 0:De.start_time)||M.start_time).format("YYYY-MM-DD HH:mm:ss"))," \u81F3 ",D.createElement("span",null,At()((De==null?void 0:De.end_time)||M.end_time).format("YYYY-MM-DD HH:mm:ss"))),D.createElement(pn.Z,{showQuickJumper:!0,hideOnSinglePage:!0,showSizeChanger:!0,current:mt.page,pageSize:mt.limit,onChange:(T,se)=>Xt(Wn(Cn({},mt),{page:T,limit:se})),onShowSizeChange:(T,se)=>Xt(Wn(Cn({},mt),{page:1,limit:se})),total:Ue.total_count||0})),D.createElement(pe.default,{centered:!0,destroyOnClose:!0,title:D.createElement("div",{style:{fontWeight:"500",color:"#000000",marginTop:"10px"}},"\u4F5C\u54C1\u63D0\u4EA4"),open:ve,bodyStyle:{padding:" 0px 25px 10px 25px"},onOk:()=>Re.submit(),confirmLoading:Fe,onCancel:()=>{W(!1),xe([]),ce(null)}},D.createElement("div",{className:Ie.WorkSubmitDesc},"\u8BF4\u660E\uFF1A\u5927\u8D5B\u8FDB\u884C\u4E2D\u4E0A\u4F20\u540E\u7684\u4F5C\u54C1\u5982\u9700\u4FEE\u6539\uFF0C\u53EF\u5728\u3010\u4F5C\u54C1\u63D0\u4EA4\u3011\u5217\u8868\u70B9\u51FB\u201C\u7F16\u8F91\u201D\u8FDB\u884C\u4FEE\u6539\u3002"),D.createElement(H.default,{form:Re,colon:!1,onFinish:Yn},he==1&&D.createElement(D.Fragment,null,D.createElement(H.default.Item,{label:"\u4F5C\u54C1\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u4F5C\u54C1\u540D\u79F0"}]},D.createElement(de.default,{showCount:!0,maxLength:60,placeholder:"\u8BF7\u8F93\u5165\u4F5C\u54C1\u540D\u79F0"})),D.createElement(H.default.Item,{label:"\u4F5C\u54C1\u94FE\u63A5",name:"url",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u4F5C\u54C1\u94FE\u63A5"}]},D.createElement(de.default,{placeholder:"\u8BF7\u8F93\u5165\u4F5C\u54C1\u94FE\u63A5"}))),D.createElement(H.default.Item,{label:"\u63D0\u4EA4\u6218\u961F",name:"competition_team_id",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6218\u961F"}]},D.createElement(Z.default,null,A==null?void 0:A.map(T=>D.createElement(Z.default.Option,{key:T==null?void 0:T.id,value:T==null?void 0:T.id},T==null?void 0:T.name)))),D.createElement(H.default.Item,{name:"fileList",style:{paddingLeft:he==1?"76px":"0"},valuePropName:"fileList",getValueFromEvent:T=>Array.isArray(T)?T:T==null?void 0:T.fileList},he==1&&D.createElement(ne.default,Cn({},Nn),D.createElement(ye.Z,{align:"middle"},D.createElement(fe.ZP,{type:"primary",ghost:!0,icon:D.createElement(Me.Z,null)},V.length>0?"\u66F4\u6362\u6587\u4EF6":"\u6587\u4EF6\u4E0A\u4F20"),D.createElement(Ce.Z,{placement:"right",overlayStyle:{maxWidth:600},title:D.createElement("div",{onClick:T=>{T.preventDefault(),T.stopPropagation()}},D.createElement("p",null,"\u63D0\u793A\uFF1A"),D.createElement("p",null,"1. \u4E00\u6B21\u6700\u591A\u4E0A\u4F201\u4E2A\u6587\u4EF6\u3002"),D.createElement("p",null,"2. \u5355\u4E2A\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC7150M\u3002"))},D.createElement("i",{onClick:T=>{T.preventDefault(),T.stopPropagation()},className:"iconfont icon-tishixiaowenhao ml5",style:{cursor:"pointer",color:"#C5C5C5"}})))),he==2&&D.createElement(ne.default.Dragger,Cn({className:Ie.fileList,style:{background:"#fff",padding:"31px 0px"}},Nn),D.createElement("p",{className:"ant-upload-drag-icon"},D.createElement("i",{className:"iconfont icon-shangchuan4",style:{fontSize:"32px",color:"#165DFF"}})),D.createElement("p",{className:"ant-upload-text"},"\u62D6\u62FD\u6587\u4EF6\u6216\u8005\u70B9\u51FB\u4E0A\u4F20"))))))};var dl=(0,ue.connect)(({})=>({}))(sl),j=F(59301),cl=Object.defineProperty,pl=Object.defineProperties,fl=Object.getOwnPropertyDescriptors,Un=Object.getOwnPropertySymbols,ll=Object.prototype.hasOwnProperty,rl=Object.prototype.propertyIsEnumerable,il=(o,a,c)=>a in o?cl(o,a,{enumerable:!0,configurable:!0,writable:!0,value:c}):o[a]=c,Hn=(o,a)=>{for(var c in a||(a={}))ll.call(a,c)&&il(o,c,a[c]);if(Un)for(var c of Un(a))rl.call(a,c)&&il(o,c,a[c]);return o},vl=(o,a)=>pl(o,fl(a)),ml=(o,a)=>{var c={};for(var G in o)ll.call(o,G)&&a.indexOf(G)<0&&(c[G]=o[G]);if(o!=null&&Un)for(var G of Un(o))a.indexOf(G)<0&&rl.call(o,G)&&(c[G]=o[G]);return c},Kt=(o,a,c)=>new Promise((G,w)=>{var M=P=>{try{R(c.next(P))}catch(K){w(K)}},_e=P=>{try{R(c.throw(P))}catch(K){w(K)}},R=P=>P.done?G(P.value):Promise.resolve(P.value).then(M,_e);R((c=c.apply(o,a)).next())});const hl=o=>{var a=o,{globalSetting:c,loading:G,dispatch:w,user:M}=a,_e=ml(a,["globalSetting","loading","dispatch","user"]),R,P,K,tt,rt,Ke,ze,Te,Re,Fe;const[h,Ze]=(0,l.useState)({avatar_url:""}),[J,ie]=(0,l.useState)([]),{identifier:he}=(0,ue.useParams)(),[vt,b]=(0,l.useState)([]),[Ot,ve]=(0,l.useState)(!0),[W,V]=(0,l.useState)([]),[xe,it]=(0,l.useState)([]),[f,A]=(0,l.useState)(!1),[N,be]=(0,l.useState)(!1),[Ne,ut]=(0,l.useState)(!1),[ce,Ue]=(0,l.useState)([]),[ct,De]=(0,l.useState)([]);let[Bt,mt]=(0,l.useState)([]);const[Xt,un]=(0,l.useState)(!1),[an,xn]=(0,l.useState)([]),[el,Gn]=(0,l.useState)(),[Vn,vn]=(0,l.useState)(!0),[Zn,Yn]=(0,l.useState)(!1),[zn,Nn]=(0,l.useState)(!1),[T,se]=(0,l.useState)(!1),[He,Ht]=(0,l.useState)(!1),[Vt,dn]=(0,l.useState)(!1),[Jt,Tt]=(0,l.useState)(!0),[mn,wn]=(0,l.useState)(!1),[Nt,gn]=(0,l.useState)(!1),[$n,tl]=(0,l.useState)(""),_n=(0,ue.useLocation)(),Kn=(0,l.useRef)(null),[Rn,jn]=(0,l.useState)(!1);(0,l.useEffect)(()=>{console.log("++++++++++++++++++++++++++++++++++++",he),he&&Qt(),(0,Pe.Dk)("\u7ADE\u8D5B")},[he]);function Qt(){return Kt(this,null,function*(){ie(yield w({type:"competitions/getStaff",payload:{identifier:he}}));const Q=yield w({type:"competitions/getHeader",payload:{identifier:he}});Ze(Q),(0,Pe.Dk)((Q==null?void 0:Q.name)||"\u7ADE\u8D5B")})}(0,l.useEffect)(()=>{var Q;Gn(parseInt((Q=_n==null?void 0:_n.query)==null?void 0:Q.type)===1)},[_n]),(0,l.useEffect)(()=>{var Q,Be,hn,Sn;if(((Q=h==null?void 0:h.competition_modules)==null?void 0:Q.length)>0){if(((Be=_n==null?void 0:_n.query)==null?void 0:Be.active)==="\u8D5B\u9898\u53D1\u5E03"){const Pn=(hn=h==null?void 0:h.competition_modules)==null?void 0:hn.find(Xn=>Xn.name==="\u8D5B\u9898\u53D1\u5E03");if(Pn){qt(Pn);return}}qt((Sn=h==null?void 0:h.competition_modules)==null?void 0:Sn[0])}h!=null&&h.id&&w({type:"globalSetting/setShareData",payload:{title:h==null?void 0:h.name,desc:h==null?void 0:h.description,imgUrl:`${h==null?void 0:h.image}?x-oss-process=image/resize,h_200,w_200,m_pad`}})},[h]);function qt(Q){return Kt(this,null,function*(){mt(Q.id),Bt=Q.id,V(Q);let Be;Q.module_type==="entrance"?Be=yield w({type:"competitions/getItem",payload:{url:Q.module_url,module_type:"entrance"}}):Be=yield w({type:"competitions/getItem",payload:{url:Q.module_url}}),A(!1),ut(!1),un(!1),b(Be),Yn(!1),Nn(!1),jn(!1),xn([]),it(Q.module_type),Q.module_type==="worksubmit"?(ve(!1),jn(!0),Fn()):Q.module_type==="chart"?(A(!0),ve(!1),ul()):Q.module_type==="certificate"?(ut(!0),A(!1),ve(!1),Fl()):Q.module_type==="md_tab"?(un(!0),ve(!1),localStorage.setItem("issee","2"),A(!1),ut(!1),Fn()):Q.module_type==="md_shixun"?(Yn(!0),ve(!1),Fn()):Q.module_type==="entrance"?(Nn(!0),ve(!1),Fn()):(ve(!0),localStorage.setItem("issee","1"))})}function nl(Q,Be,hn){return Kt(this,null,function*(){var Sn;if(Q.stopPropagation(),h.teacher_need_phone||h.member_need_phone){wn(!0);return}if((0,nt.tJ)(w)){if(h!=null&&h.is_authentication&&!((Sn=M==null?void 0:M.userInfo)!=null&&Sn.authentication)){w({type:"shixunsDetail/setActionTabs",payload:{key:"Banner-Auth"}});return}if(h!=null&&h.enroll_url){(0,Pe.xg)(h==null?void 0:h.enroll_url);return}if(hn==="ismodel"){if(!Be.invite_code){L.ZP.info("\u672C\u7ADE\u8D5B\u53EA\u9762\u5411\u90E8\u5206\u5B66\u6821/\u5355\u4F4D\u5F00\u653E\uFF0C\u4F60\u6682\u65F6\u6CA1\u6709\u53C2\u8D5B\u8D44\u683C");return}if(Be.member_of_course===!0)(0,Pe.xg)(`/classrooms/${Be.course_id}`);else{if(!Be.invite_code){L.ZP.info("\u672C\u7ADE\u8D5B\u53EA\u9762\u5411\u90E8\u5206\u5B66\u6821/\u5355\u4F4D\u5F00\u653E\uFF0C\u4F60\u6682\u65F6\u6CA1\u6709\u53C2\u8D5B\u8D44\u683C");return}(yield w({type:"competitions/addApplytojoincourse",payload:{invite_code:Be.invite_code,student:1}})).status===0&&(0,Pe.xg)(`/classrooms/${Be.course_id}`)}}else{if(J.enrolled===!0){(0,Pe.xg)(hn);return}se(!0)}}})}function ul(){return Kt(this,null,function*(){yield be(yield w({type:"competitions/ChartRules",payload:{identifier:he}}))})}function gl(Q){return Kt(this,null,function*(){let Be=yield w({type:"competitions/Charts",payload:{identifier:he,stage_id:Q}});b(Be)})}function El(Q){return Kt(this,null,function*(){vn(!0);let Be=yield w({type:"competitions/Results",payload:Hn({identifier:he,stage_id:Q==null?void 0:Q.id},Q)});b(Be),vn(!1)})}function _l(Q){return Kt(this,null,function*(){vn(!0);let Be=yield w({type:"competitions/Results",payload:Hn({identifier:he,stage_id:Q==null?void 0:Q.id,module_type:"entrance"},Q)});b(Be),vn(!1)})}function al(Q){return Kt(this,null,function*(){let Be=yield w({type:"competitions/Results",payload:{identifier:he,stage_id:Q}});localStorage.getItem("issee")!=="1"&&b(Be)})}function Fn(){return Kt(this,null,function*(){xn(yield w({type:"competitions/TabResults",payload:{identifier:he,competition_module_id:Bt}}))})}function Fl(){return Kt(this,null,function*(){var Q;let Be=yield w({type:"competitions/Prize",payload:{identifier:he,user_id:(Q=M==null?void 0:M.userInfo)==null?void 0:Q.user_id}});Ue(Be)})}function Sl(){return Kt(this,null,function*(){var Q;let Be=yield w({type:"competitions/Accounts",payload:{id:(Q=M==null?void 0:M.userInfo)==null?void 0:Q.user_id}});De(Be)})}function Cl(Q){return Kt(this,null,function*(){if(!Jt||(Tt(!1),ol()))return;let Be=yield w({type:"competitions/AddTeam",payload:vl(Hn({},Q),{identifier:he})});Be&&Be.status===0?(tl(Be),gn(!0),Qt(),Ht(!1)):Tt(!0)})}function ol(){var Q,Be,hn,Sn,Pn,Xn;if((Q=M==null?void 0:M.userInfo)!=null&&Q.is_teacher){if(((Be=J==null?void 0:J.all_staff)!=null&&Be.mutiple_limited||(hn=J==null?void 0:J.teacher_staff)!=null&&hn.mutiple_limited)&&J!=null&&J.enrolled)return L.ZP.info("\u4F60\u5DF2\u7ECF\u62A5\u540D\uFF0C\u4E0D\u80FD\u91CD\u590D\u62A5\u540D"),Tt(!0),!0}else if(((Sn=J==null?void 0:J.all_staff)!=null&&Sn.mutiple_limited||(Pn=J==null?void 0:J.member_staff)!=null&&Pn.mutiple_limited)&&J!=null&&J.enrolled)return L.ZP.info("\u4F60\u5DF2\u7ECF\u62A5\u540D\uFF0C\u4E0D\u80FD\u91CD\u590D\u62A5\u540D"),Tt(!0),!0;if(J!=null&&J.enroll_ended)return L.ZP.info("\u62A5\u540D\u5DF2\u622A\u6B62\uFF0C\u65E0\u9700\u62A5\u540D"),Tt(!0),!0;if(J!=null&&J.all_staff)return!1;if((Xn=M==null?void 0:M.userInfo)!=null&&Xn.is_teacher){if(!J.teacher_staff)return L.ZP.info("\u5DF2\u7981\u6B62\u8001\u5E08\u62A5\u540D"),Tt(!0),!0}else if(!(J!=null&&J.member_staff))return L.ZP.info("\u5DF2\u7981\u6B62\u5B66\u751F\u62A5\u540D"),Tt(!0),!0}function xl(Q){return Kt(this,null,function*(){if(!Jt||ol())return;Tt(!1);let Be=yield w({type:"competitions/JoinTeam",payload:Hn({identifier:he},Q)});Be&&Be.status===0?(gn(!0),tl(Be),dn(!1),Tt(!0),Qt()):Tt(!0)})}return j.createElement("div",{className:"edu-container minH500"},j.createElement(_t.Z,{className:"mt10",separator:">"},j.createElement(_t.Z.Item,null,j.createElement(ue.Link,{to:"/competitions/index"},"\u5728\u7EBF\u7ADE\u8D5B")),j.createElement(_t.Z.Item,null,h.name,h.sub_title?"-"+h.sub_title:null)),j.createElement("div",{className:"mt10",style:{display:"flex",background:"#fff",position:"relative",padding:"20px 12px"}},j.createElement(Ve.Z,{spinning:G.effects["competitions/getHeader"]},j.createElement("div",{style:{height:"355px",width:"800px"}},(h==null?void 0:h.avatar_url)&&(h==null?void 0:h.avatar_url)!==null&&j.createElement("img",{style:{height:"355px",width:"800px"},src:h==null?void 0:h.avatar_url}),!(h!=null&&h.avatar_url)&&(h==null?void 0:h.avatar_url)==null&&j.createElement("img",{style:{height:"355px",width:"800px"},src:"/images/educoder/competitions/mainbanner.jpg"}))),j.createElement("div",{style:{marginLeft:"20px",width:"400px"}},j.createElement("p",{className:`${p.Z.titlesize}`},h.name,h.sub_title?"-"+h.sub_title:null),j.createElement("p",{style:{display:"flex",justifyContent:"space-between",marginRight:18}},!!(h!=null&&h.bonus)&&j.createElement("span",{style:{display:"flex",flexDirection:"column",alignItems:"center"}},j.createElement("span",null,"\u5956\u91D1"),h!=null&&h.bonus?j.createElement("span",{style:{fontSize:"24px"}},"\xA5",parseInt(h&&h.bonus).toLocaleString()):j.createElement("span",{style:{fontSize:"24px"}},"\u6682\u65E0")),j.createElement("span",{style:{display:"flex",flexDirection:"column",alignItems:"center"}},j.createElement("span",null,"\u6D4F\u89C8"),j.createElement("span",{style:{fontSize:"24px"}},parseInt(h&&h.visits_count).toLocaleString())),j.createElement("span",{style:{display:"flex",flexDirection:"column",alignItems:"center"}},j.createElement("span",null,"\u62A5\u540D"),j.createElement("span",{style:{fontSize:"24px"}},parseInt(h&&h.member_count).toLocaleString()))),j.createElement("p",{className:p.Z.timesize,style:{marginTop:30}},j.createElement("span",{style:{color:"#9b9b9b",marginTop:"30px"}},"\u7ADE\u8D5B\u65F6\u95F4\uFF1A"),h.start_time,"~",h.end_time),j.createElement("p",{className:p.Z.timesize},j.createElement("span",{style:{color:"#9b9b9b"}},"\u62A5\u540D\u622A\u6B62\uFF1A"),h.enroll_end_time),h.competition_status==="ended"?j.createElement("p",{className:p.Z.timesize},j.createElement("span",{style:{color:"#9b9b9b"}},"\u7ADE\u8D5B\u72B6\u6001\uFF1A"),"\u5DF2\u7ED3\u675F"):null,h.competition_status==="nearly_published"?j.createElement("p",{className:p.Z.timesize},j.createElement("span",{style:{color:"#9b9b9b"}},"\u7ADE\u8D5B\u72B6\u6001\uFF1A"),"\u5373\u5C06\u53D1\u5E03"):null,h.competition_status==="progressing"?j.createElement("p",{className:p.Z.timesize},j.createElement("span",{style:{color:"#9b9b9b"}},"\u7ADE\u8D5B\u72B6\u6001\uFF1A"),"\u8FDB\u884C\u4E2D"):null,h.competition_status==="apply"?j.createElement("p",{className:p.Z.timesize},j.createElement("span",{style:{color:"#9b9b9b"}},"\u7ADE\u8D5B\u72B6\u6001\uFF1A"),"\u6B63\u5728\u62A5\u540D"):null,j.createElement("div",{style:{display:"flex",justifyContent:"center"}},(h==null?void 0:h.mode)<=2&&J.enrolled&&j.createElement(fe.ZP,{onClick:Q=>{var Be;(h==null?void 0:h.mode)===1||(h==null?void 0:h.mode)===3?qt((Be=h.competition_modules)==null?void 0:Be.find(hn=>hn.module_type==="entrance")):nl(Q,h,"ismodel")},style:{background:"#07C160",color:"#fff",border:"1px solid #07C160",marginRight:20,display:(h==null?void 0:h.mode)===2||(h==null?void 0:h.mode)===1&&((P=(R=h.competition_modules)==null?void 0:R.filter(Q=>Q.module_type==="entrance"))==null?void 0:P.length)>0?"":"none"},className:p.Z.buttonsize},(h==null?void 0:h.mode)===1&&"\u8D5B\u9898\u5165\u53E3",(h==null?void 0:h.mode)===2&&"\u8FDB\u5165\u8BFE\u5802",(h==null?void 0:h.mode)===3&&"\u8D5B\u9898\u5165\u53E3"),h.competition_status==="ended"?j.createElement(fe.ZP,{type:"primary",className:p.Z.buttonsize,disabled:!0},"\u5DF2\u7ED3\u675F"):null,h.competition_status==="nearly_published"?j.createElement(fe.ZP,{type:"primary",className:p.Z.buttonsize,disabled:!0},"\u5373\u5C06\u53D1\u5E03"):null,h.competition_status!=="nearly_published"&&h.enroll_end&&h.competition_status!=="ended"?j.createElement(fe.ZP,{type:"primary",className:p.Z.buttonsize,disabled:!0},"\u62A5\u540D\u622A\u6B62"):null,(h.competition_status==="progressing"||h.competition_status==="apply")&&h.enroll_end!=!0&&h.enroll_end_time?j.createElement(fe.ZP,{type:"primary",disabled:J.enrolled&&!h.need_attachment,className:p.Z.buttonsize,onClick:Q=>{var Be;if(J.enrolled&&h.need_attachment){(Be=Kn.current)==null||Be.handleVisible();return}nl(Q,h,h.mode===2?"ismodel":h.personal?"personal":`/competitions/${h.identifier}/detail/enroll`)}},J.enrolled?h.need_attachment?"\u4E0A\u4F20\u4F5C\u54C1":"\u5DF2\u62A5\u540D":h!=null&&h.enroll_url?"\u524D\u5F80\u5927\u8D5B\u5B98\u7F51\u62A5\u540D":"\u7ACB\u5373\u62A5\u540D"):null),(K=h==null?void 0:h.permission)!=null&&K.editable?j.createElement("span",{onClick:()=>(0,Pe.xg)(`/competitions/${h.identifier}/detail/enroll`),className:p.Z.myteam},"\u6211\u7684\u6218\u961F>>"):j.createElement(j.Fragment,null,M.userInfo.real_name!="\u6E38\u5BA2"&&!(h!=null&&h.enroll_url)&&h.enroll_end_time&&j.createElement("span",{onClick:Q=>nl(Q,h,h.mode===2?"ismodel":h.personal?"personal":`/competitions/${h.identifier}/detail/enroll`),className:p.Z.myteam},(0,lt.j5)()?"\u53C2\u8D5B\u6218\u961F>>":"\u6211\u7684\u6218\u961F>>")))),j.createElement("div",{className:p.Z.bootmdetail},j.createElement("div",{className:p.Z.flex1},j.createElement($t.default,{selectedKeys:[`${Bt}`]},h&&h.competition_modules&&h.competition_modules.map((Q,Be)=>{if(Q.module_type!="enroll")return j.createElement($t.default.Item,{className:p.Z.menuItem,onClick:()=>{if(Q!=null&&Q.is_authentication){if(!(0,nt.tJ)(w))return;L.ZP.info("\u52A0\u5165\u6218\u961F\u624D\u80FD\u67E5\u770B");return}qt(Q)},key:Q.id},Q.name)}))),j.createElement("div",{className:p.Z.flex6,style:{padding:(Zn||zn)&&0}},Ne?j.createElement(q.Z,{dispatch:w,userid:(tt=M==null?void 0:M.userInfo)==null?void 0:tt.user_id,Prize:ce,Accounts:ct,getAccounts:Sl}):null,f?j.createElement(gt,{HeaderDetail:h,userinfo:M.userInfo,Editable:(rt=h==null?void 0:h.permission)==null?void 0:rt.editable,getCharts:gl,getChartRules:ul,Selectkey:Bt,ChartRules:N,ItemData:vt}):null,Ot?j.createElement(Dt,{ref:Kn,StaffDetail:J,HeaderDetail:h,userinfo:M.userInfo,Editable:(Ke=h==null?void 0:h.permission)==null?void 0:Ke.editable,ItemData:vt,setIssee:ve,ModelType:xe,dispatch:w}):null,!Ot&&!Zn&&!zn&&!f&&!Ne&&!Xt&&!Rn?j.createElement(v,{userinfo:M.userInfo,ModelType:xe,getrightdatas:qt,dispatch:w,MenuItem:W,setIssee:ve,identifier:he,ItemData:vt}):null,Xt&&j.createElement(kn,{dispatch:w,StaffDetail:J,userinfo:M.userInfo,HeaderDetail:h,Editable:(ze=h==null?void 0:h.permission)==null?void 0:ze.editable,getCharts:al,getChartRules:Fn,Selectkey:Bt,ChartRules:an,ItemData:vt}),Zn&&j.createElement(S,{loading:Vn,dispatch:w,StaffDetail:J,userinfo:M.userInfo,HeaderDetail:h,Editable:(Te=h==null?void 0:h.permission)==null?void 0:Te.editable,getCharts:El,getChartRules:Fn,Selectkey:Bt,ChartRules:an,ItemData:vt}),zn&&j.createElement(Ee,{loading:Vn,dispatch:w,StaffDetail:J,userinfo:M.userInfo,HeaderDetail:h,Editable:(Re=h==null?void 0:h.permission)==null?void 0:Re.editable,getCharts:_l,getChartRules:Fn,Selectkey:Bt,ChartRules:an,ItemData:vt}),Rn&&j.createElement(dl,{HeaderDetail:h,userinfo:M.userInfo,StaffDetail:J,Editable:(Fe=h==null?void 0:h.permission)==null?void 0:Fe.editable,ItemData:W,TabResults:an,getTabResults:Fn}))),j.createElement(Le.Z,null),j.createElement(st,{getResults:al}),j.createElement(pe.default,{open:el,footer:null,width:720,title:"\u63D0\u793A",centered:!0,onCancel:()=>Gn(!1)},j.createElement("div",{className:p.Z.modal},j.createElement("div",null,"\u534E\u4E3A\u6A21\u578B\u738B\u8005\u6311\u6218\u8D5B\u9EC4\u91D1\u8D5B\u6B63\u5F0F\u5F00\u542F\u5566"),j.createElement("div",null,"\u672C\u8D5B\u6BB5\u603B\u5956\u91D1\u9AD8\u8FBE",j.createElement("span",{style:{color:"#FF8C29"}},"300,000"),"\u5143"),j.createElement("div",null,"1\u3001\u7B26\u5408\u8D5B\u9898\u8981\u6C42\u7684\u961F\u4F0D\uFF08\u517125\u652F\uFF09\u53EF\u83B7\u5F97\u5956\u91D1\uFF1A12000RMB/\u961F \uFF1B"),j.createElement("div",null,"2\u3001\u53C2\u4E0E\u83B7\u5F97\u201C\u8363\u8000\u6BBF\u5802\u201D\u699C\u4E3B\u7684\u961F\u4F0D\uFF0C\u53EF\u83B7\u5F97\u7531\u4E2D\u56FD\u8F6F\u4EF6\u5F00\u6E90\u521B\u65B0\u5927\u8D5B\u7EC4\u59D4\u4F1A\u9881\u53D1\u7684\u9EC4\u91D1\u5B9D\u7BB1\uFF1B"),j.createElement("div",null,"3\u3001\u5404\u8D5B\u9898\u7CBE\u5EA6\u6700\u9AD8\u7684\u961F\u4F0D\uFF0C\u53EF\u83B7\u5F97\u7531\u4E2D\u56FD\u8F6F\u4EF6\u5F00\u6E90\u521B\u65B0\u5927\u8D5B\u7EC4\u59D4\u4F1A\u9881\u53D1\u7684\u9EC4\u91D1\u5B9D\u7BB1+\u8363\u8A89\u8BC1\u4E66\uFF1B"),j.createElement("div",null,"\u5FC3\u52A8\u5427\uFF0C\u90A3\u5C31\u5FEB\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u62A5\u540D\u53C2\u8D5B"),j.createElement(fe.ZP,{type:"primary",onClick:()=>(0,Pe.xg)("https://competition.huaweicloud.com/information/1000041485/introduction")},"\u524D\u5F80\u62A5\u540D\u53C2\u8D5B"))),j.createElement(pe.default,{title:"\u9009\u62E9\u53C2\u8D5B\u65B9\u5F0F",open:T,onCancel:()=>{se(!1)},footer:!1},j.createElement("div",{style:{display:"flex",justifyContent:"space-around",height:100,alignItems:"center"}},j.createElement(fe.ZP,{type:"primary",style:{height:40},onClick:()=>{dn(!0),se(!1)}},"\u52A0\u5165\u6218\u961F\u53C2\u8D5B"),j.createElement(fe.ZP,{style:{height:40},onClick:()=>{Ht(!0),se(!1)}},"\u53BB\u521B\u5EFA\u6218\u961F\u53C2\u8D5B"))),Vt?j.createElement(X.Z,{isjoin:Vt,setJoin:dn,JoinTeams:xl}):null,He?j.createElement(me.Z,{isAddmodle:He,setIsAdd:Ht,createTeam:Cl}):null,j.createElement(We.Z,{datas:$n,isopen:Nt,setisopen:gn,isShowPhone:mn,setIsShowPhone:wn,user:M,dispatch:w,onOK:()=>Kt(void 0,null,function*(){const Q=yield w({type:"competitions/getHeader",payload:{identifier:he}});Ze(Q)})}))};var yl=(0,ue.connect)(({loading:o,globalSetting:a,user:c})=>({globalSetting:a,loading:o,user:c}))(hl)},8007:function(on,Et,F){"use strict";var l=F(82326),ue=F(28284),p=F(62957),Le=F(6767),ne=F(37568),L=F(47889),pe=F(1560),y=F(99267),Ye=F(89392),z=F.n(Ye),Xe=F(59301),B=F(59301),te=Object.defineProperty,Se=Object.defineProperties,$e=Object.getOwnPropertyDescriptors,Je=Object.getOwnPropertySymbols,Ge=Object.prototype.hasOwnProperty,Qe=Object.prototype.propertyIsEnumerable,st=(ye,de,ae)=>de in ye?te(ye,de,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ye[de]=ae,_t=(ye,de)=>{for(var ae in de||(de={}))Ge.call(de,ae)&&st(ye,ae,de[ae]);if(Je)for(var ae of Je(de))Qe.call(de,ae)&&st(ye,ae,de[ae]);return ye},Ve=(ye,de)=>Se(ye,$e(de)),fe=(ye,de,ae)=>new Promise((x,nt)=>{var Z=at=>{try{Ct(ae.next(at))}catch(Ft){nt(Ft)}},Zt=at=>{try{Ct(ae.throw(at))}catch(Ft){nt(Ft)}},Ct=at=>at.done?x(at.value):Promise.resolve(at.value).then(Z,Zt);Ct((ae=ae.apply(ye,de)).next())});const $t=l.default.Option;function Pt({isAddmodle:ye,setIsAdd:de,createTeam:ae,Data:x,user:nt={},dispatch:Z}){var Zt,Ct,at,Ft,yt,g,I,Y,$,le,qe,ot,bt,xt,kt,Dt,dt,Lt,Mt,St,Rt,jt,i,t,n,u,v,C,k,ge;const[Ae]=ue.default.useForm();console.log("---",nt);const[je,pt]=(0,Xe.useState)([]),Ce=(0,Xe.useRef)((0,Ye.throttle)(Oe=>Wt(Oe),1200,{leading:!0,trailing:!0})).current,[ft,en]=(0,Xe.useState)([]),tn=()=>{const Oe=new Date().getFullYear();return Array(31).fill({}).map(function(gt,q){return B.createElement($t,{key:q,value:Oe-q},B.createElement("span",null,Oe-q))})},Wt=Oe=>fe(this,null,function*(){var gt;const q=yield Z({type:"account/getSchoolOption",payload:{keyword:Oe,competition_id:x==null?void 0:x.identifier,display_aliases:!0}});pt(q==null?void 0:q.schools),Oe&&Oe!=""&&en((gt=q==null?void 0:q.schools)==null?void 0:gt.filter(Pe=>Pe.name.toUpperCase().indexOf(Oe.toUpperCase())!==-1))});return(0,Xe.useEffect)(()=>{var Oe,gt,q,Pe,lt,Ut,At,re,sn;((Oe=x==null?void 0:x.need_apply_info)!=null&&Oe.need_apply_name||(gt=x==null?void 0:x.need_apply_info)!=null&>.need_apply_teacher_phone||(q=x==null?void 0:x.need_apply_info)!=null&&q.need_apply_student_id||(Pe=x==null?void 0:x.need_apply_info)!=null&&Pe.need_apply_sex||(lt=x==null?void 0:x.need_apply_info)!=null&<.need_apply_phone||(Ut=x==null?void 0:x.need_apply_info)!=null&&Ut.need_apply_grade||(At=x==null?void 0:x.need_apply_info)!=null&&At.need_apply_teacher_name||(re=x==null?void 0:x.need_apply_info)!=null&&re.need_apply_school)&&Wt((x==null?void 0:x.region_rule)===1||(x==null?void 0:x.identifier)==="81bjsjjs"?"":(sn=nt==null?void 0:nt.userInfo)==null?void 0:sn.school_name)},[((Zt=x==null?void 0:x.need_apply_info)==null?void 0:Zt.need_apply_teacher_phone)||((Ct=x==null?void 0:x.need_apply_info)==null?void 0:Ct.need_apply_name)||((at=x==null?void 0:x.need_apply_info)==null?void 0:at.need_apply_student_id)||((Ft=x==null?void 0:x.need_apply_info)==null?void 0:Ft.need_apply_sex)||((yt=x==null?void 0:x.need_apply_info)==null?void 0:yt.need_apply_phone)||((g=x==null?void 0:x.need_apply_info)==null?void 0:g.need_apply_grade)||((I=x==null?void 0:x.need_apply_info)==null?void 0:I.need_apply_teacher_name)||((Y=x==null?void 0:x.need_apply_info)==null?void 0:Y.need_apply_school)]),B.createElement(p.default,{className:"modal_styles",centered:!0,title:B.createElement("div",{style:{alignItems:"center",display:"flex"}},B.createElement("div",{style:{textAlign:"left",flex:"1"}},"\u521B\u5EFA\u6218\u961F"),B.createElement(y.Z,{onClick:()=>de(!1),style:{cursor:"porint"}})),open:ye,closable:!1,width:700,destroyOnClose:!0,onOk:(0,Ye.debounce)(()=>{Ae.submit()},500),onCancel:()=>de(!1)},B.createElement(ue.default,{form:Ae,initialValues:Ve(_t({},nt.userInfo),{sex:($=nt==null?void 0:nt.userInfo)==null?void 0:$.gender,grade:(le=nt==null?void 0:nt.userInfo)==null?void 0:le.edu_entry_year,school:(qe=x==null?void 0:x.need_apply_info)!=null&&qe.need_apply_school&&(x==null?void 0:x.region_rule)===1||(x==null?void 0:x.identifier)==="81bjsjjs"?"":(ot=nt==null?void 0:nt.userInfo)==null?void 0:ot.school_name}),labelCol:{span:5},size:"large",onFinish:Oe=>fe(this,null,function*(){var gt,q;const Pe=(gt=je.find(lt=>lt.name===(Oe==null?void 0:Oe.school)))==null?void 0:gt.id;if(!Pe&&((q=x==null?void 0:x.need_apply_info)!=null&&q.need_apply_school)){Le.ZP.info("\u8BF7\u9009\u62E9\u6B63\u786E\u7684\u5B66\u6821");return}ae(Ve(_t({},Oe),{school_id:Pe}))})},(((bt=x==null?void 0:x.need_apply_info)==null?void 0:bt.need_apply_name)||((xt=x==null?void 0:x.need_apply_info)==null?void 0:xt.need_apply_teacher_phone)||((kt=x==null?void 0:x.need_apply_info)==null?void 0:kt.need_apply_student_id)||((Dt=x==null?void 0:x.need_apply_info)==null?void 0:Dt.need_apply_sex)||((dt=x==null?void 0:x.need_apply_info)==null?void 0:dt.need_apply_phone)||((Lt=x==null?void 0:x.need_apply_info)==null?void 0:Lt.need_apply_grade)||((Mt=x==null?void 0:x.need_apply_info)==null?void 0:Mt.need_apply_teacher_name)||((St=x==null?void 0:x.need_apply_info)==null?void 0:St.need_apply_school))&&B.createElement("div",{className:"mb20"},"\u6839\u636E\u7ADE\u8D5B\u5B98\u65B9\u7684\u89C4\u5B9A\uFF0C\u53C2\u8D5B\u4EBA\u5458\u9700\u586B\u5199\u5FC5\u586B\u4FE1\u606F\u624D\u53EF\u5B8C\u6210\u62A5\u540D\uFF0C\u8BF7\u786E\u4FDD\u586B\u5199\u7684\u4FE1\u606F\u51C6\u786E\u5B8C\u6574\u3002"),B.createElement(ue.default.Item,{label:"\u961F\u4F0D\u540D\u79F0",name:"name",rules:[{required:!0,validator:(Oe,gt)=>{var q;return((q=gt==null?void 0:gt.replaceAll(" ",""))==null?void 0:q.length)>0?Promise.resolve():Promise.reject("\u8BF7\u586B\u5199\u961F\u4F0D\u540D\u79F0")}}]},B.createElement(ne.default,{maxLength:60,showCount:!0,placeholder:"\u8BF7\u8F93\u5165\u961F\u4F0D\u540D\u79F0"})),((Rt=x==null?void 0:x.need_apply_info)==null?void 0:Rt.need_apply_name)&&B.createElement(ue.default.Item,{label:"\u53C2\u8D5B\u4EBA\u5458\u59D3\u540D",name:"real_name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u53C2\u8D5B\u4EBA\u5458\u59D3\u540D"},{whitespace:!0,message:"\u59D3\u540D\u4E0D\u80FD\u4E3A\u7A7A"}]},B.createElement(ne.default,{placeholder:"\u8BF7\u8F93\u5165\u53C2\u8D5B\u4EBA\u5458\u59D3\u540D",showCount:!0,maxLength:60})),((jt=x==null?void 0:x.need_apply_info)==null?void 0:jt.need_apply_sex)&&B.createElement(ue.default.Item,{label:"\u6027\u522B",name:"sex",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u53C2\u8D5B\u4EBA\u5458\u6027\u522B"}]},B.createElement(L.ZP.Group,null,B.createElement(L.ZP,{value:0},"\u7537"),B.createElement(L.ZP,{value:1},"\u5973"))),((i=x==null?void 0:x.need_apply_info)==null?void 0:i.need_apply_student_id)&&B.createElement(ue.default.Item,{label:"\u5B66\u53F7",name:"student_id",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u53C2\u8D5B\u4EBA\u5458\u5B66\u53F7"},{whitespace:!0,message:"\u5B66\u53F7\u4E0D\u80FD\u4E3A\u7A7A"}]},B.createElement(ne.default,{placeholder:"\u8BF7\u8F93\u5165\u53C2\u8D5B\u4EBA\u5458\u5B66\u53F7",showCount:!0,maxLength:60})),((t=x==null?void 0:x.need_apply_info)==null?void 0:t.need_apply_id_number)&&B.createElement(ue.default.Item,{label:"\u8EAB\u4EFD\u8BC1\u53F7\u7801",name:"id_number",rules:[{required:!0,pattern:/^[1-9]\d{5}(18|19|20)\d{2}(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])\d{3}(\d|X)$/i,message:"\u8BF7\u586B\u5199\u6B63\u786E\u7684\u8EAB\u4EFD\u8BC1\u683C\u5F0F"}]},B.createElement(ne.default,{maxLength:18,showCount:!0,placeholder:"\u8BF7\u8F93\u8EAB\u4EFD\u8BC1\u53F7\u7801"})),((n=x==null?void 0:x.need_apply_info)==null?void 0:n.need_apply_phone)&&B.createElement(ue.default.Item,{label:"\u7535\u8BDD",name:"phone",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u53C2\u8D5B\u4EBA\u5458\u7535\u8BDD"},{whitespace:!0,message:"\u7535\u8BDD\u4E0D\u80FD\u4E3A\u7A7A"}]},B.createElement(ne.default,{placeholder:"\u8BF7\u8F93\u5165\u53C2\u8D5B\u4EBA\u5458\u7535\u8BDD",showCount:!0,maxLength:60})),((u=x==null?void 0:x.need_apply_info)==null?void 0:u.need_apply_grade)&&B.createElement(ue.default.Item,{label:"\u5E74\u7EA7",name:"grade",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u53C2\u8D5B\u4EBA\u5458\u5E74\u7EA7"}]},B.createElement(l.default,{placeholder:"\u8BF7\u9009\u62E9\u53C2\u8D5B\u4EBA\u5458\u5E74\u7EA7",size:"large"},tn())),((v=x==null?void 0:x.need_apply_info)==null?void 0:v.need_apply_teacher_name)&&B.createElement(ue.default.Item,{label:"\u6307\u5BFC\u8001\u5E08\u59D3\u540D",name:"teacher_name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6307\u5BFC\u8001\u5E08\u59D3\u540D"},{whitespace:!0,message:"\u6307\u5BFC\u8001\u5E08\u59D3\u540D\u4E0D\u80FD\u4E3A\u7A7A"}]},B.createElement(ne.default,{placeholder:"\u5982\u6CA1\u6709\u6307\u5BFC\u8001\u5E08\u8BF7\u586B\u65E0",showCount:!0,maxLength:60})),((C=x==null?void 0:x.need_apply_info)==null?void 0:C.need_apply_teacher_phone)&&B.createElement(ue.default.Item,{label:"\u6307\u5BFC\u8001\u5E08\u8054\u7CFB\u65B9\u5F0F",name:"teacher_phone",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6307\u5BFC\u8001\u5E08\u8054\u7CFB\u65B9\u5F0F"},{whitespace:!0,message:"\u6307\u5BFC\u8001\u5E08\u8054\u7CFB\u65B9\u5F0F\u4E0D\u80FD\u4E3A\u7A7A"}]},B.createElement(ne.default,{placeholder:"\u8BF7\u8F93\u5165\u6307\u5BFC\u8001\u5E08\u8054\u7CFB\u65B9\u5F0F",showCount:!0,maxLength:60})),((k=x==null?void 0:x.need_apply_info)==null?void 0:k.need_apply_school)&&(x==null?void 0:x.region_rule)!==1&&(x==null?void 0:x.identifier)!=="81bjsjjs"&&B.createElement(ue.default.Item,{label:"\u5B66\u6821",name:"school",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5B66\u6821"}]},B.createElement(pe.Z,{size:"large",showSearch:!0,onChange:Oe=>Ce(Oe,x.identifier)},ft.map((Oe,gt)=>B.createElement($t,{key:gt,value:Oe.name},Oe.name)))),(((ge=x==null?void 0:x.need_apply_info)==null?void 0:ge.need_apply_school)&&(x==null?void 0:x.region_rule)===1||(x==null?void 0:x.identifier)==="81bjsjjs")&&B.createElement(ue.default.Item,{label:"\u5B66\u6821",name:"school",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5B66\u6821"}]},B.createElement(l.default,{showSearch:!0},je.map((Oe,gt)=>B.createElement($t,{key:gt,value:Oe.name},Oe.name))))))}Et.Z=Pt},34928:function(on,Et,F){"use strict";var l=F(59301),ue=F(82326),p=F(28284),Le=F(62957),ne=F(6767),L=F(37568),pe=F(47889),y=F(1560),Ye=F(99267),z=F(89392),Xe=F.n(z),B=F(59301),te=Object.defineProperty,Se=Object.defineProperties,$e=Object.getOwnPropertyDescriptors,Je=Object.getOwnPropertySymbols,Ge=Object.prototype.hasOwnProperty,Qe=Object.prototype.propertyIsEnumerable,st=(ye,de,ae)=>de in ye?te(ye,de,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ye[de]=ae,_t=(ye,de)=>{for(var ae in de||(de={}))Ge.call(de,ae)&&st(ye,ae,de[ae]);if(Je)for(var ae of Je(de))Qe.call(de,ae)&&st(ye,ae,de[ae]);return ye},Ve=(ye,de)=>Se(ye,$e(de)),fe=(ye,de,ae)=>new Promise((x,nt)=>{var Z=at=>{try{Ct(ae.next(at))}catch(Ft){nt(Ft)}},Zt=at=>{try{Ct(ae.throw(at))}catch(Ft){nt(Ft)}},Ct=at=>at.done?x(at.value):Promise.resolve(at.value).then(Z,Zt);Ct((ae=ae.apply(ye,de)).next())});const $t=ue.default.Option;function Pt({isjoin:ye,setJoin:de,JoinTeams:ae,user:x={},dispatch:nt,Data:Z={}}){var Zt,Ct,at,Ft,yt,g,I,Y,$,le,qe,ot,bt,xt,kt,Dt,dt,Lt,Mt,St,Rt,jt,i,t,n,u,v,C,k,ge;const[Ae,je]=(0,l.useState)(""),[pt,Ce]=(0,l.useState)([]),[ft]=p.default.useForm(),en=(0,l.useRef)((0,z.throttle)(q=>gt(q),1200,{leading:!0,trailing:!0})).current,[tn,Wt]=(0,l.useState)([]),Oe=()=>{const q=new Date().getFullYear();return Array(31).fill({}).map(function(Pe,lt){return B.createElement($t,{key:lt,value:q-lt},B.createElement("span",null,q-lt))})};(0,l.useEffect)(()=>{var q,Pe,lt,Ut,At,re,sn,cn,nn;((q=Z==null?void 0:Z.need_apply_info)!=null&&q.need_apply_name||(Pe=Z==null?void 0:Z.need_apply_info)!=null&&Pe.need_apply_teacher_phone||(lt=Z==null?void 0:Z.need_apply_info)!=null&<.need_apply_student_id||(Ut=Z==null?void 0:Z.need_apply_info)!=null&&Ut.need_apply_sex||(At=Z==null?void 0:Z.need_apply_info)!=null&&At.need_apply_phone||(re=Z==null?void 0:Z.need_apply_info)!=null&&re.need_apply_grade||(sn=Z==null?void 0:Z.need_apply_info)!=null&&sn.need_apply_teacher_name||(cn=Z==null?void 0:Z.need_apply_info)!=null&&cn.need_apply_school)&>((Z==null?void 0:Z.region_rule)===1||(Z==null?void 0:Z.identifier)==="81bjsjjs"?"":(nn=x==null?void 0:x.userInfo)==null?void 0:nn.school_name)},[((Zt=Z==null?void 0:Z.need_apply_info)==null?void 0:Zt.need_apply_teacher_phone)||((Ct=Z==null?void 0:Z.need_apply_info)==null?void 0:Ct.need_apply_name)||((at=Z==null?void 0:Z.need_apply_info)==null?void 0:at.need_apply_student_id)||((Ft=Z==null?void 0:Z.need_apply_info)==null?void 0:Ft.need_apply_sex)||((yt=Z==null?void 0:Z.need_apply_info)==null?void 0:yt.need_apply_phone)||((g=Z==null?void 0:Z.need_apply_info)==null?void 0:g.need_apply_grade)||((I=Z==null?void 0:Z.need_apply_info)==null?void 0:I.need_apply_teacher_name)||((Y=Z==null?void 0:Z.need_apply_info)==null?void 0:Y.need_apply_school)]);const gt=q=>fe(this,null,function*(){var Pe;const lt=yield nt({type:"account/getSchoolOption",payload:{keyword:q,competition_id:Z==null?void 0:Z.identifier,display_aliases:!0}});Ce(lt==null?void 0:lt.schools),q&&q!=""&&Wt((Pe=lt==null?void 0:lt.schools)==null?void 0:Pe.filter(Ut=>Ut.name.includes(q)))});return B.createElement(Le.default,{className:"modal_styles",centered:!0,title:B.createElement("div",{style:{alignItems:"center",display:"flex"}},B.createElement("div",{style:{textAlign:"left",flex:"1"}},"\u52A0\u5165\u6218\u961F"),B.createElement(Ye.Z,{onClick:()=>de(!1),style:{cursor:"porint"}})),open:ye,width:700,closable:!1,destroyOnClose:!0,onOk:(0,z.debounce)(()=>{ft.submit()},500),onCancel:()=>de(!1)},B.createElement(p.default,{form:ft,size:"large",labelCol:{span:4},initialValues:Ve(_t({},x.userInfo),{sex:($=x==null?void 0:x.userInfo)==null?void 0:$.gender,grade:(le=x==null?void 0:x.userInfo)==null?void 0:le.edu_entry_year,school:(qe=Z==null?void 0:Z.need_apply_info)!=null&&qe.need_apply_school&&(Z==null?void 0:Z.region_rule)===1||(Z==null?void 0:Z.identifier)==="81bjsjjs"?"":(ot=x==null?void 0:x.userInfo)==null?void 0:ot.school_name}),onFinish:q=>fe(this,null,function*(){var Pe,lt;const Ut=(Pe=pt.find(At=>At.name===(q==null?void 0:q.school)))==null?void 0:Pe.id;if(!Ut&&((lt=Z==null?void 0:Z.need_apply_info)!=null&<.need_apply_school)){ne.ZP.info("\u8BF7\u9009\u62E9\u6B63\u786E\u7684\u5B66\u6821");return}ae(Ve(_t({},q),{school_id:Ut}))})},(((bt=Z==null?void 0:Z.need_apply_info)==null?void 0:bt.need_apply_name)||((xt=Z==null?void 0:Z.need_apply_info)==null?void 0:xt.need_apply_teacher_phone)||((kt=Z==null?void 0:Z.need_apply_info)==null?void 0:kt.need_apply_student_id)||((Dt=Z==null?void 0:Z.need_apply_info)==null?void 0:Dt.need_apply_sex)||((dt=Z==null?void 0:Z.need_apply_info)==null?void 0:dt.need_apply_phone)||((Lt=Z==null?void 0:Z.need_apply_info)==null?void 0:Lt.need_apply_grade)||((Mt=Z==null?void 0:Z.need_apply_info)==null?void 0:Mt.need_apply_teacher_name)||((St=Z==null?void 0:Z.need_apply_info)==null?void 0:St.need_apply_school))&&B.createElement("div",{className:"mb20"},"\u6839\u636E\u7ADE\u8D5B\u5B98\u65B9\u7684\u89C4\u5B9A\uFF0C\u53C2\u8D5B\u4EBA\u5458\u9700\u586B\u5199\u5FC5\u586B\u4FE1\u606F\u624D\u53EF\u5B8C\u6210\u62A5\u540D\uFF0C\u8BF7\u786E\u4FDD\u586B\u5199\u7684\u4FE1\u606F\u51C6\u786E\u5B8C\u6574\u3002"),B.createElement(p.default.Item,{label:"\u9080\u8BF7\u7801",name:"invite_code",rules:[{required:!0,validator:(q,Pe)=>{var lt;return((lt=Pe==null?void 0:Pe.replaceAll(" ",""))==null?void 0:lt.length)>0?Promise.resolve():Promise.reject("\u8BF7\u8F93\u5165\u9080\u8BF7\u7801")}}]},B.createElement(L.default,{maxLength:60,showCount:!0,placeholder:"\u8BF7\u8F93\u5165\u9080\u8BF7\u7801"})),((Rt=Z==null?void 0:Z.need_apply_info)==null?void 0:Rt.need_apply_name)&&B.createElement(p.default.Item,{label:"\u53C2\u8D5B\u4EBA\u5458\u59D3\u540D",name:"real_name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u53C2\u8D5B\u4EBA\u5458\u59D3\u540D"},{whitespace:!0,message:"\u59D3\u540D\u4E0D\u80FD\u4E3A\u7A7A"}]},B.createElement(L.default,{placeholder:"\u8BF7\u8F93\u5165\u53C2\u8D5B\u4EBA\u5458\u59D3\u540D",showCount:!0,maxLength:60})),((jt=Z==null?void 0:Z.need_apply_info)==null?void 0:jt.need_apply_sex)&&B.createElement(p.default.Item,{label:"\u6027\u522B",name:"sex",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u53C2\u8D5B\u4EBA\u5458\u6027\u522B"}]},B.createElement(pe.ZP.Group,null,B.createElement(pe.ZP,{value:0},"\u7537"),B.createElement(pe.ZP,{value:1},"\u5973"))),((i=Z==null?void 0:Z.need_apply_info)==null?void 0:i.need_apply_student_id)&&B.createElement(p.default.Item,{label:"\u5B66\u53F7",name:"student_id",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u53C2\u8D5B\u4EBA\u5458\u5B66\u53F7"},{whitespace:!0,message:"\u5B66\u53F7\u4E0D\u80FD\u4E3A\u7A7A"}]},B.createElement(L.default,{placeholder:"\u8BF7\u8F93\u5165\u53C2\u8D5B\u4EBA\u5458\u5B66\u53F7",showCount:!0,maxLength:60})),((t=Z==null?void 0:Z.need_apply_info)==null?void 0:t.need_apply_id_number)&&B.createElement(p.default.Item,{label:"\u8EAB\u4EFD\u8BC1\u53F7\u7801",name:"id_number",rules:[{required:!0,pattern:/^[1-9]\d{5}(18|19|20)\d{2}(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])\d{3}(\d|X)$/i,message:"\u8BF7\u586B\u5199\u6B63\u786E\u7684\u8EAB\u4EFD\u8BC1\u683C\u5F0F"}]},B.createElement(L.default,{maxLength:18,showCount:!0,placeholder:"\u8BF7\u8F93\u8EAB\u4EFD\u8BC1\u53F7\u7801"})),((n=Z==null?void 0:Z.need_apply_info)==null?void 0:n.need_apply_phone)&&B.createElement(p.default.Item,{label:"\u7535\u8BDD",name:"phone",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u53C2\u8D5B\u4EBA\u5458\u7535\u8BDD"},{whitespace:!0,message:"\u7535\u8BDD\u4E0D\u80FD\u4E3A\u7A7A"}]},B.createElement(L.default,{placeholder:"\u8BF7\u8F93\u5165\u53C2\u8D5B\u4EBA\u5458\u7535\u8BDD",showCount:!0,maxLength:60})),((u=Z==null?void 0:Z.need_apply_info)==null?void 0:u.need_apply_grade)&&B.createElement(p.default.Item,{label:"\u5E74\u7EA7",name:"grade",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u53C2\u8D5B\u4EBA\u5458\u5E74\u7EA7"}]},B.createElement(ue.default,{placeholder:"\u8BF7\u9009\u62E9\u53C2\u8D5B\u4EBA\u5458\u5E74\u7EA7",size:"large"},Oe())),((v=Z==null?void 0:Z.need_apply_info)==null?void 0:v.need_apply_teacher_name)&&B.createElement(p.default.Item,{label:"\u6307\u5BFC\u8001\u5E08\u59D3\u540D",name:"teacher_name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6307\u5BFC\u8001\u5E08\u59D3\u540D"},{whitespace:!0,message:"\u6307\u5BFC\u8001\u5E08\u59D3\u540D\u4E0D\u80FD\u4E3A\u7A7A"}]},B.createElement(L.default,{placeholder:"\u5982\u6CA1\u6709\u6307\u5BFC\u8001\u5E08\u8BF7\u586B\u65E0",showCount:!0,maxLength:60})),((C=Z==null?void 0:Z.need_apply_info)==null?void 0:C.need_apply_teacher_phone)&&B.createElement(p.default.Item,{label:"\u6307\u5BFC\u8001\u5E08\u8054\u7CFB\u65B9\u5F0F",name:"teacher_phone",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6307\u5BFC\u8001\u5E08\u8054\u7CFB\u65B9\u5F0F"},{whitespace:!0,message:"\u6307\u5BFC\u8001\u5E08\u8054\u7CFB\u65B9\u5F0F\u4E0D\u80FD\u4E3A\u7A7A"}]},B.createElement(L.default,{placeholder:"\u8BF7\u8F93\u5165\u6307\u5BFC\u8001\u5E08\u8054\u7CFB\u65B9\u5F0F",showCount:!0,maxLength:60})),((k=Z==null?void 0:Z.need_apply_info)==null?void 0:k.need_apply_school)&&(Z==null?void 0:Z.region_rule)!==1&&(Z==null?void 0:Z.identifier)!=="81bjsjjs"&&B.createElement(p.default.Item,{label:"\u5B66\u6821",name:"school",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5B66\u6821"}]},B.createElement(y.Z,{size:"large",showSearch:!0,onChange:q=>en(q,Z.identifier)},tn.map((q,Pe)=>B.createElement($t,{key:Pe,value:q.name},q.name)))),(((ge=Z==null?void 0:Z.need_apply_info)==null?void 0:ge.need_apply_school)&&(Z==null?void 0:Z.region_rule)===1||(Z==null?void 0:Z.identifier)==="81bjsjjs")&&B.createElement(p.default.Item,{label:"\u5B66\u6821",name:"school",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5B66\u6821"}]},B.createElement(ue.default,{showSearch:!0},pt.map((q,Pe)=>B.createElement($t,{key:Pe,value:q.name},q.name))))))}Et.Z=Pt},15037:function(on,Et,F){"use strict";F.d(Et,{Z:function(){return yt}});var l=F(59301),ue=F(92310),p=F.n(ue),Le=F(2738),ne=F(48755),L=F(31756),pe=F(458),y=F(20554),Ye=function(g,I){var Y={};for(var $ in g)Object.prototype.hasOwnProperty.call(g,$)&&I.indexOf($)<0&&(Y[$]=g[$]);if(g!=null&&typeof Object.getOwnPropertySymbols=="function")for(var le=0,$=Object.getOwnPropertySymbols(g);le<$.length;le++)I.indexOf($[le])<0&&Object.prototype.propertyIsEnumerable.call(g,$[le])&&(Y[$[le]]=g[$[le]]);return Y},Xe=g=>{var{prefixCls:I,className:Y,hoverable:$=!0}=g,le=Ye(g,["prefixCls","className","hoverable"]);const{getPrefixCls:qe}=l.useContext(ne.E_),ot=qe("card",I),bt=p()(`${ot}-grid`,Y,{[`${ot}-grid-hoverable`]:$});return l.createElement("div",Object.assign({},le,{className:bt}))},B=F(36237),te=F(63356),Se=F(16931),$e=F(51636);const Je=g=>{const{antCls:I,componentCls:Y,headerHeight:$,headerPadding:le,tabsMarginBottom:qe}=g;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:$,marginBottom:-1,padding:`0 ${(0,B.unit)(le)}`,color:g.colorTextHeading,fontWeight:g.fontWeightStrong,fontSize:g.headerFontSize,background:g.headerBg,borderBottom:`${(0,B.unit)(g.lineWidth)} ${g.lineType} ${g.colorBorderSecondary}`,borderRadius:`${(0,B.unit)(g.borderRadiusLG)} ${(0,B.unit)(g.borderRadiusLG)} 0 0`},(0,te.dF)()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},te.vS),{[`
|
|
> ${Y}-typography,
|
|
> ${Y}-typography-edit-content
|
|
`]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${I}-tabs-top`]:{clear:"both",marginBottom:qe,color:g.colorText,fontWeight:"normal",fontSize:g.fontSize,"&-bar":{borderBottom:`${(0,B.unit)(g.lineWidth)} ${g.lineType} ${g.colorBorderSecondary}`}}})},Ge=g=>{const{cardPaddingBase:I,colorBorderSecondary:Y,cardShadow:$,lineWidth:le}=g;return{width:"33.33%",padding:I,border:0,borderRadius:0,boxShadow:`
|
|
${(0,B.unit)(le)} 0 0 0 ${Y},
|
|
0 ${(0,B.unit)(le)} 0 0 ${Y},
|
|
${(0,B.unit)(le)} ${(0,B.unit)(le)} 0 0 ${Y},
|
|
${(0,B.unit)(le)} 0 0 0 ${Y} inset,
|
|
0 ${(0,B.unit)(le)} 0 0 ${Y} inset;
|
|
`,transition:`all ${g.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:$}}},Qe=g=>{const{componentCls:I,iconCls:Y,actionsLiMargin:$,cardActionsIconSize:le,colorBorderSecondary:qe,actionsBg:ot}=g;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:ot,borderTop:`${(0,B.unit)(g.lineWidth)} ${g.lineType} ${qe}`,display:"flex",borderRadius:`0 0 ${(0,B.unit)(g.borderRadiusLG)} ${(0,B.unit)(g.borderRadiusLG)}`},(0,te.dF)()),{"& > li":{margin:$,color:g.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:g.calc(g.cardActionsIconSize).mul(2).equal(),fontSize:g.fontSize,lineHeight:g.lineHeight,cursor:"pointer","&:hover":{color:g.colorPrimary,transition:`color ${g.motionDurationMid}`},[`a:not(${I}-btn), > ${Y}`]:{display:"inline-block",width:"100%",color:g.colorTextDescription,lineHeight:(0,B.unit)(g.fontHeight),transition:`color ${g.motionDurationMid}`,"&:hover":{color:g.colorPrimary}},[`> ${Y}`]:{fontSize:le,lineHeight:(0,B.unit)(g.calc(le).mul(g.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${(0,B.unit)(g.lineWidth)} ${g.lineType} ${qe}`}}})},st=g=>Object.assign(Object.assign({margin:`${(0,B.unit)(g.calc(g.marginXXS).mul(-1).equal())} 0`,display:"flex"},(0,te.dF)()),{"&-avatar":{paddingInlineEnd:g.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:g.marginXS}},"&-title":Object.assign({color:g.colorTextHeading,fontWeight:g.fontWeightStrong,fontSize:g.fontSizeLG},te.vS),"&-description":{color:g.colorTextDescription}}),_t=g=>{const{componentCls:I,colorFillAlter:Y,headerPadding:$,bodyPadding:le}=g;return{[`${I}-head`]:{padding:`0 ${(0,B.unit)($)}`,background:Y,"&-title":{fontSize:g.fontSize}},[`${I}-body`]:{padding:`${(0,B.unit)(g.padding)} ${(0,B.unit)(le)}`}}},Ve=g=>{const{componentCls:I}=g;return{overflow:"hidden",[`${I}-body`]:{userSelect:"none"}}},fe=g=>{const{componentCls:I,cardShadow:Y,cardHeadPadding:$,colorBorderSecondary:le,boxShadowTertiary:qe,bodyPadding:ot,extraColor:bt}=g;return{[I]:Object.assign(Object.assign({},(0,te.Wf)(g)),{position:"relative",background:g.colorBgContainer,borderRadius:g.borderRadiusLG,[`&:not(${I}-bordered)`]:{boxShadow:qe},[`${I}-head`]:Je(g),[`${I}-extra`]:{marginInlineStart:"auto",color:bt,fontWeight:"normal",fontSize:g.fontSize},[`${I}-body`]:Object.assign({padding:ot,borderRadius:`0 0 ${(0,B.unit)(g.borderRadiusLG)} ${(0,B.unit)(g.borderRadiusLG)}`},(0,te.dF)()),[`${I}-grid`]:Ge(g),[`${I}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${(0,B.unit)(g.borderRadiusLG)} ${(0,B.unit)(g.borderRadiusLG)} 0 0`}},[`${I}-actions`]:Qe(g),[`${I}-meta`]:st(g)}),[`${I}-bordered`]:{border:`${(0,B.unit)(g.lineWidth)} ${g.lineType} ${le}`,[`${I}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${I}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${g.motionDurationMid}, border-color ${g.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:Y}},[`${I}-contain-grid`]:{borderRadius:`${(0,B.unit)(g.borderRadiusLG)} ${(0,B.unit)(g.borderRadiusLG)} 0 0 `,[`${I}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${I}-loading) ${I}-body`]:{marginBlockStart:g.calc(g.lineWidth).mul(-1).equal(),marginInlineStart:g.calc(g.lineWidth).mul(-1).equal(),padding:0}},[`${I}-contain-tabs`]:{[`> div${I}-head`]:{minHeight:0,[`${I}-head-title, ${I}-extra`]:{paddingTop:$}}},[`${I}-type-inner`]:_t(g),[`${I}-loading`]:Ve(g),[`${I}-rtl`]:{direction:"rtl"}}},$t=g=>{const{componentCls:I,bodyPaddingSM:Y,headerPaddingSM:$,headerHeightSM:le,headerFontSizeSM:qe}=g;return{[`${I}-small`]:{[`> ${I}-head`]:{minHeight:le,padding:`0 ${(0,B.unit)($)}`,fontSize:qe,[`> ${I}-head-wrapper`]:{[`> ${I}-extra`]:{fontSize:g.fontSize}}},[`> ${I}-body`]:{padding:Y}},[`${I}-small${I}-contain-tabs`]:{[`> ${I}-head`]:{[`${I}-head-title, ${I}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},Pt=g=>{var I,Y;return{headerBg:"transparent",headerFontSize:g.fontSizeLG,headerFontSizeSM:g.fontSize,headerHeight:g.fontSizeLG*g.lineHeightLG+g.padding*2,headerHeightSM:g.fontSize*g.lineHeight+g.paddingXS*2,actionsBg:g.colorBgContainer,actionsLiMargin:`${g.paddingSM}px 0`,tabsMarginBottom:-g.padding-g.lineWidth,extraColor:g.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:(I=g.bodyPadding)!==null&&I!==void 0?I:g.paddingLG,headerPadding:(Y=g.headerPadding)!==null&&Y!==void 0?Y:g.paddingLG}};var ye=(0,Se.I$)("Card",g=>{const I=(0,$e.mergeToken)(g,{cardShadow:g.boxShadowCard,cardHeadPadding:g.padding,cardPaddingBase:g.paddingLG,cardActionsIconSize:g.fontSize});return[fe(I),$t(I)]},Pt),de=F(24971),ae=function(g,I){var Y={};for(var $ in g)Object.prototype.hasOwnProperty.call(g,$)&&I.indexOf($)<0&&(Y[$]=g[$]);if(g!=null&&typeof Object.getOwnPropertySymbols=="function")for(var le=0,$=Object.getOwnPropertySymbols(g);le<$.length;le++)I.indexOf($[le])<0&&Object.prototype.propertyIsEnumerable.call(g,$[le])&&(Y[$[le]]=g[$[le]]);return Y};const x=g=>{const{actionClasses:I,actions:Y=[],actionStyle:$}=g;return l.createElement("ul",{className:I,style:$},Y.map((le,qe)=>{const ot=`action-${qe}`;return l.createElement("li",{style:{width:`${100/Y.length}%`},key:ot},l.createElement("span",null,le))}))};var Z=l.forwardRef((g,I)=>{const{prefixCls:Y,className:$,rootClassName:le,style:qe,extra:ot,headStyle:bt={},bodyStyle:xt={},title:kt,loading:Dt,bordered:dt,variant:Lt,size:Mt,type:St,cover:Rt,actions:jt,tabList:i,children:t,activeTabKey:n,defaultActiveTabKey:u,tabBarExtraContent:v,hoverable:C,tabProps:k={},classNames:ge,styles:Ae}=g,je=ae(g,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","variant","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:pt,direction:Ce,card:ft}=l.useContext(ne.E_),[en]=(0,de.Z)("card",Lt,dt),tn=It=>{var wt;(wt=g.onTabChange)===null||wt===void 0||wt.call(g,It)},Wt=It=>{var wt;return p()((wt=ft==null?void 0:ft.classNames)===null||wt===void 0?void 0:wt[It],ge==null?void 0:ge[It])},Oe=It=>{var wt;return Object.assign(Object.assign({},(wt=ft==null?void 0:ft.styles)===null||wt===void 0?void 0:wt[It]),Ae==null?void 0:Ae[It])},gt=l.useMemo(()=>{let It=!1;return l.Children.forEach(t,wt=>{(wt==null?void 0:wt.type)===Xe&&(It=!0)}),It},[t]),q=pt("card",Y),[Pe,lt,Ut]=ye(q),At=l.createElement(pe.Z,{loading:!0,active:!0,paragraph:{rows:4},title:!1},t),re=n!==void 0,sn=Object.assign(Object.assign({},k),{[re?"activeKey":"defaultActiveKey"]:re?n:u,tabBarExtraContent:v});let cn;const nn=(0,L.Z)(Mt),kn=!nn||nn==="default"?"large":nn,pn=i?l.createElement(y.default,Object.assign({size:kn},sn,{className:`${q}-head-tabs`,onChange:tn,items:i.map(It=>{var{tab:wt}=It,S=ae(It,["tab"]);return Object.assign({label:wt},S)})})):null;if(kt||ot||pn){const It=p()(`${q}-head`,Wt("header")),wt=p()(`${q}-head-title`,Wt("title")),S=p()(`${q}-extra`,Wt("extra")),r=Object.assign(Object.assign({},bt),Oe("header"));cn=l.createElement("div",{className:It,style:r},l.createElement("div",{className:`${q}-head-wrapper`},kt&&l.createElement("div",{className:wt,style:Oe("title")},kt),ot&&l.createElement("div",{className:S,style:Oe("extra")},ot)),pn)}const Dn=p()(`${q}-cover`,Wt("cover")),Ln=Rt?l.createElement("div",{className:Dn,style:Oe("cover")},Rt):null,On=p()(`${q}-body`,Wt("body")),Bn=Object.assign(Object.assign({},xt),Oe("body")),Tn=l.createElement("div",{className:On,style:Bn},Dt?At:t),In=p()(`${q}-actions`,Wt("actions")),bn=jt!=null&&jt.length?l.createElement(x,{actionClasses:In,actionStyle:Oe("actions"),actions:jt}):null,zt=(0,Le.Z)(je,["onTabChange"]),An=p()(q,ft==null?void 0:ft.className,{[`${q}-loading`]:Dt,[`${q}-bordered`]:en!=="borderless",[`${q}-hoverable`]:C,[`${q}-contain-grid`]:gt,[`${q}-contain-tabs`]:i==null?void 0:i.length,[`${q}-${nn}`]:nn,[`${q}-type-${St}`]:!!St,[`${q}-rtl`]:Ce==="rtl"},$,le,lt,Ut),En=Object.assign(Object.assign({},ft==null?void 0:ft.style),qe);return Pe(l.createElement("div",Object.assign({ref:I},zt,{className:An,style:En}),cn,Ln,Tn,bn))}),Zt=function(g,I){var Y={};for(var $ in g)Object.prototype.hasOwnProperty.call(g,$)&&I.indexOf($)<0&&(Y[$]=g[$]);if(g!=null&&typeof Object.getOwnPropertySymbols=="function")for(var le=0,$=Object.getOwnPropertySymbols(g);le<$.length;le++)I.indexOf($[le])<0&&Object.prototype.propertyIsEnumerable.call(g,$[le])&&(Y[$[le]]=g[$[le]]);return Y},at=g=>{const{prefixCls:I,className:Y,avatar:$,title:le,description:qe}=g,ot=Zt(g,["prefixCls","className","avatar","title","description"]),{getPrefixCls:bt}=l.useContext(ne.E_),xt=bt("card",I),kt=p()(`${xt}-meta`,Y),Dt=$?l.createElement("div",{className:`${xt}-meta-avatar`},$):null,dt=le?l.createElement("div",{className:`${xt}-meta-title`},le):null,Lt=qe?l.createElement("div",{className:`${xt}-meta-description`},qe):null,Mt=dt||Lt?l.createElement("div",{className:`${xt}-meta-detail`},dt,Lt):null;return l.createElement("div",Object.assign({},ot,{className:kt}),Dt,Mt)};const Ft=Z;Ft.Grid=Xe,Ft.Meta=at;var yt=Ft},84022:function(on,Et,F){"use strict";F.d(Et,{Z:function(){return wt}});var l=F(59301),ue=F(67711),p=F(98506),Le=F(42573),ne=F(58698),L=F(43011),pe=F(87042),y=F(20456),Ye=F(74700),z=F(52873),Xe=F(26420),B=F(33346),te={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0},Se=te,$e=F(53280),Je=F(92310),Ge=F.n(Je),Qe={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(r){return l.createElement("ul",{style:{display:"block"}},r)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(r){return l.createElement("button",null,r+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0,asNavFor:null},st=Qe;function _t(S,r,s){return Math.max(r,Math.min(S,s))}var Ve=function(r){var s=["onTouchStart","onTouchMove","onWheel"];s.includes(r._reactName)||r.preventDefault()},fe=function(r){for(var s=[],e=Pt(r),_=ye(r),d=e;d<_;d++)r.lazyLoadedList.indexOf(d)<0&&s.push(d);return s},$t=function(r){for(var s=[],e=Pt(r),_=ye(r),d=e;d<_;d++)s.push(d);return s},Pt=function(r){return r.currentSlide-de(r)},ye=function(r){return r.currentSlide+ae(r)},de=function(r){return r.centerMode?Math.floor(r.slidesToShow/2)+(parseInt(r.centerPadding)>0?1:0):0},ae=function(r){return r.centerMode?Math.floor((r.slidesToShow-1)/2)+1+(parseInt(r.centerPadding)>0?1:0):r.slidesToShow},x=function(r){return r&&r.offsetWidth||0},nt=function(r){return r&&r.offsetHeight||0},Z=function(r){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,e,_,d,m;return e=r.startX-r.curX,_=r.startY-r.curY,d=Math.atan2(_,e),m=Math.round(d*180/Math.PI),m<0&&(m=360-Math.abs(m)),m<=45&&m>=0||m<=360&&m>=315?"left":m>=135&&m<=225?"right":s===!0?m>=35&&m<=135?"up":"down":"vertical"},Zt=function(r){var s=!0;return r.infinite||(r.centerMode&&r.currentSlide>=r.slideCount-1||r.slideCount<=r.slidesToShow||r.currentSlide>=r.slideCount-r.slidesToShow)&&(s=!1),s},Ct=function(r,s){var e={};return s.forEach(function(_){return e[_]=r[_]}),e},at=function(r){var s=l.Children.count(r.children),e=r.listRef,_=Math.ceil(x(e)),d=r.trackRef&&r.trackRef.node,m=Math.ceil(x(d)),E;if(r.vertical)E=_;else{var O=r.centerMode&&parseInt(r.centerPadding)*2;typeof r.centerPadding=="string"&&r.centerPadding.slice(-1)==="%"&&(O*=_/100),E=Math.ceil((_-O)/r.slidesToShow)}var ee=e&&nt(e.querySelector('[data-index="0"]')),oe=ee*r.slidesToShow,U=r.currentSlide===void 0?r.initialSlide:r.currentSlide;r.rtl&&r.currentSlide===void 0&&(U=s-1-r.initialSlide);var we=r.lazyLoadedList||[],ke=fe((0,p.Z)((0,p.Z)({},r),{},{currentSlide:U,lazyLoadedList:we}));we=we.concat(ke);var Ee={slideCount:s,slideWidth:E,listWidth:_,trackWidth:m,currentSlide:U,slideHeight:ee,listHeight:oe,lazyLoadedList:we};return r.autoplaying===null&&r.autoplay&&(Ee.autoplaying="playing"),Ee},Ft=function(r){var s=r.waitForAnimate,e=r.animating,_=r.fade,d=r.infinite,m=r.index,E=r.slideCount,O=r.lazyLoad,ee=r.currentSlide,oe=r.centerMode,U=r.slidesToScroll,we=r.slidesToShow,ke=r.useCSS,Ee=r.lazyLoadedList;if(s&&e)return{};var X=m,me,We,H,Me={},Ie={},et=d?m:_t(m,0,E-1);if(_){if(!d&&(m<0||m>=E))return{};m<0?X=m+E:m>=E&&(X=m-E),O&&Ee.indexOf(X)<0&&(Ee=Ee.concat(X)),Me={animating:!0,currentSlide:X,lazyLoadedList:Ee,targetSlide:X},Ie={animating:!1,targetSlide:X}}else me=X,X<0?(me=X+E,d?E%U!==0&&(me=E-E%U):me=0):!Zt(r)&&X>ee?X=me=ee:oe&&X>=E?(X=d?E:E-1,me=d?0:E-1):X>=E&&(me=X-E,d?E%U!==0&&(me=0):me=E-we),!d&&X+we>=E&&(me=E-we),We=Dt((0,p.Z)((0,p.Z)({},r),{},{slideIndex:X})),H=Dt((0,p.Z)((0,p.Z)({},r),{},{slideIndex:me})),d||(We===H&&(X=me),We=H),O&&(Ee=Ee.concat(fe((0,p.Z)((0,p.Z)({},r),{},{currentSlide:X})))),ke?(Me={animating:!0,currentSlide:me,trackStyle:kt((0,p.Z)((0,p.Z)({},r),{},{left:We})),lazyLoadedList:Ee,targetSlide:et},Ie={animating:!1,currentSlide:me,trackStyle:xt((0,p.Z)((0,p.Z)({},r),{},{left:H})),swipeLeft:null,targetSlide:et}):Me={currentSlide:me,trackStyle:xt((0,p.Z)((0,p.Z)({},r),{},{left:H})),lazyLoadedList:Ee,targetSlide:et};return{state:Me,nextState:Ie}},yt=function(r,s){var e,_,d,m,E,O=r.slidesToScroll,ee=r.slidesToShow,oe=r.slideCount,U=r.currentSlide,we=r.targetSlide,ke=r.lazyLoad,Ee=r.infinite;if(m=oe%O!==0,e=m?0:(oe-U)%O,s.message==="previous")d=e===0?O:ee-e,E=U-d,ke&&!Ee&&(_=U-d,E=_===-1?oe-1:_),Ee||(E=we-O);else if(s.message==="next")d=e===0?O:e,E=U+d,ke&&!Ee&&(E=(U+O)%oe+e),Ee||(E=we+O);else if(s.message==="dots")E=s.index*s.slidesToScroll;else if(s.message==="children"){if(E=s.index,Ee){var X=St((0,p.Z)((0,p.Z)({},r),{},{targetSlide:E}));E>s.currentSlide&&X==="left"?E=E-oe:E<s.currentSlide&&X==="right"&&(E=E+oe)}}else s.message==="index"&&(E=Number(s.index));return E},g=function(r,s,e){return r.target.tagName.match("TEXTAREA|INPUT|SELECT")||!s?"":r.keyCode===37?e?"next":"previous":r.keyCode===39?e?"previous":"next":""},I=function(r,s,e){return r.target.tagName==="IMG"&&Ve(r),!s||!e&&r.type.indexOf("mouse")!==-1?"":{dragging:!0,touchObject:{startX:r.touches?r.touches[0].pageX:r.clientX,startY:r.touches?r.touches[0].pageY:r.clientY,curX:r.touches?r.touches[0].pageX:r.clientX,curY:r.touches?r.touches[0].pageY:r.clientY}}},Y=function(r,s){var e=s.scrolling,_=s.animating,d=s.vertical,m=s.swipeToSlide,E=s.verticalSwiping,O=s.rtl,ee=s.currentSlide,oe=s.edgeFriction,U=s.edgeDragged,we=s.onEdge,ke=s.swiped,Ee=s.swiping,X=s.slideCount,me=s.slidesToScroll,We=s.infinite,H=s.touchObject,Me=s.swipeEvent,Ie=s.listHeight,et=s.listWidth;if(!e){if(_)return Ve(r);d&&m&&E&&Ve(r);var ht,ln={},Yt=Dt(s);H.curX=r.touches?r.touches[0].pageX:r.clientX,H.curY=r.touches?r.touches[0].pageY:r.clientY,H.swipeLength=Math.round(Math.sqrt(Math.pow(H.curX-H.startX,2)));var D=Math.round(Math.sqrt(Math.pow(H.curY-H.startY,2)));if(!E&&!Ee&&D>10)return{scrolling:!0};E&&(H.swipeLength=D);var yn=(O?-1:1)*(H.curX>H.startX?1:-1);E&&(yn=H.curY>H.startY?1:-1);var Mn=Math.ceil(X/me),rn=Z(s.touchObject,E),fn=H.swipeLength;return We||(ee===0&&(rn==="right"||rn==="down")||ee+1>=Mn&&(rn==="left"||rn==="up")||!Zt(s)&&(rn==="left"||rn==="up"))&&(fn=H.swipeLength*oe,U===!1&&we&&(we(rn),ln.edgeDragged=!0)),!ke&&Me&&(Me(rn),ln.swiped=!0),d?ht=Yt+fn*(Ie/et)*yn:O?ht=Yt-fn*yn:ht=Yt+fn*yn,E&&(ht=Yt+fn*yn),ln=(0,p.Z)((0,p.Z)({},ln),{},{touchObject:H,swipeLeft:ht,trackStyle:xt((0,p.Z)((0,p.Z)({},s),{},{left:ht}))}),Math.abs(H.curX-H.startX)<Math.abs(H.curY-H.startY)*.8||H.swipeLength>10&&(ln.swiping=!0,Ve(r)),ln}},$=function(r,s){var e=s.dragging,_=s.swipe,d=s.touchObject,m=s.listWidth,E=s.touchThreshold,O=s.verticalSwiping,ee=s.listHeight,oe=s.swipeToSlide,U=s.scrolling,we=s.onSwipe,ke=s.targetSlide,Ee=s.currentSlide,X=s.infinite;if(!e)return _&&Ve(r),{};var me=O?ee/E:m/E,We=Z(d,O),H={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(U||!d.swipeLength)return H;if(d.swipeLength>me){Ve(r),we&&we(We);var Me,Ie,et=X?Ee:ke;switch(We){case"left":case"up":Ie=et+ot(s),Me=oe?qe(s,Ie):Ie,H.currentDirection=0;break;case"right":case"down":Ie=et-ot(s),Me=oe?qe(s,Ie):Ie,H.currentDirection=1;break;default:Me=et}H.triggerSlideHandler=Me}else{var ht=Dt(s);H.trackStyle=kt((0,p.Z)((0,p.Z)({},s),{},{left:ht}))}return H},le=function(r){for(var s=r.infinite?r.slideCount*2:r.slideCount,e=r.infinite?r.slidesToShow*-1:0,_=r.infinite?r.slidesToShow*-1:0,d=[];e<s;)d.push(e),e=_+r.slidesToScroll,_+=Math.min(r.slidesToScroll,r.slidesToShow);return d},qe=function(r,s){var e=le(r),_=0;if(s>e[e.length-1])s=e[e.length-1];else for(var d in e){if(s<e[d]){s=_;break}_=e[d]}return s},ot=function(r){var s=r.centerMode?r.slideWidth*Math.floor(r.slidesToShow/2):0;if(r.swipeToSlide){var e,_=r.listRef,d=_.querySelectorAll&&_.querySelectorAll(".slick-slide")||[];if(Array.from(d).every(function(O){if(r.vertical){if(O.offsetTop+nt(O)/2>r.swipeLeft*-1)return e=O,!1}else if(O.offsetLeft-s+x(O)/2>r.swipeLeft*-1)return e=O,!1;return!0}),!e)return 0;var m=r.rtl===!0?r.slideCount-r.currentSlide:r.currentSlide,E=Math.abs(e.dataset.index-m)||1;return E}else return r.slidesToScroll},bt=function(r,s){return s.reduce(function(e,_){return e&&r.hasOwnProperty(_)},!0)?null:console.error("Keys Missing:",r)},xt=function(r){bt(r,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var s,e;if(!r.vertical)s=Mt(r)*r.slideWidth;else{var _=r.unslick?r.slideCount:r.slideCount+2*r.slidesToShow;e=_*r.slideHeight}var d={opacity:1,transition:"",WebkitTransition:""};if(r.useTransform){var m=r.vertical?"translate3d(0px, "+r.left+"px, 0px)":"translate3d("+r.left+"px, 0px, 0px)",E=r.vertical?"translate3d(0px, "+r.left+"px, 0px)":"translate3d("+r.left+"px, 0px, 0px)",O=r.vertical?"translateY("+r.left+"px)":"translateX("+r.left+"px)";d=(0,p.Z)((0,p.Z)({},d),{},{WebkitTransform:m,transform:E,msTransform:O})}else r.vertical?d.top=r.left:d.left=r.left;return r.fade&&(d={opacity:1}),s&&(d.width=s),e&&(d.height=e),window&&!window.addEventListener&&window.attachEvent&&(r.vertical?d.marginTop=r.left+"px":d.marginLeft=r.left+"px"),d},kt=function(r){bt(r,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var s=xt(r);return r.useTransform?(s.WebkitTransition="-webkit-transform "+r.speed+"ms "+r.cssEase,s.transition="transform "+r.speed+"ms "+r.cssEase):r.vertical?s.transition="top "+r.speed+"ms "+r.cssEase:s.transition="left "+r.speed+"ms "+r.cssEase,s},Dt=function(r){if(r.unslick)return 0;bt(r,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var s=r.slideIndex,e=r.trackRef,_=r.infinite,d=r.centerMode,m=r.slideCount,E=r.slidesToShow,O=r.slidesToScroll,ee=r.slideWidth,oe=r.listWidth,U=r.variableWidth,we=r.slideHeight,ke=r.fade,Ee=r.vertical,X=0,me,We,H=0;if(ke||r.slideCount===1)return 0;var Me=0;if(_?(Me=-dt(r),m%O!==0&&s+O>m&&(Me=-(s>m?E-(s-m):m%O)),d&&(Me+=parseInt(E/2))):(m%O!==0&&s+O>m&&(Me=E-m%O),d&&(Me=parseInt(E/2))),X=Me*ee,H=Me*we,Ee?me=s*we*-1+H:me=s*ee*-1+X,U===!0){var Ie,et=e&&e.node;if(Ie=s+dt(r),We=et&&et.childNodes[Ie],me=We?We.offsetLeft*-1:0,d===!0){Ie=_?s+dt(r):s,We=et&&et.children[Ie],me=0;for(var ht=0;ht<Ie;ht++)me-=et&&et.children[ht]&&et.children[ht].offsetWidth;me-=parseInt(r.centerPadding),me+=We&&(oe-We.offsetWidth)/2}}return me},dt=function(r){return r.unslick||!r.infinite?0:r.variableWidth?r.slideCount:r.slidesToShow+(r.centerMode?1:0)},Lt=function(r){return r.unslick||!r.infinite?0:r.slideCount},Mt=function(r){return r.slideCount===1?1:dt(r)+r.slideCount+Lt(r)},St=function(r){return r.targetSlide>r.currentSlide?r.targetSlide>r.currentSlide+Rt(r)?"left":"right":r.targetSlide<r.currentSlide-jt(r)?"right":"left"},Rt=function(r){var s=r.slidesToShow,e=r.centerMode,_=r.rtl,d=r.centerPadding;if(e){var m=(s-1)/2+1;return parseInt(d)>0&&(m+=1),_&&s%2===0&&(m+=1),m}return _?0:s-1},jt=function(r){var s=r.slidesToShow,e=r.centerMode,_=r.rtl,d=r.centerPadding;if(e){var m=(s-1)/2+1;return parseInt(d)>0&&(m+=1),!_&&s%2===0&&(m+=1),m}return _?s-1:0},i=function(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)},t=Object.keys(st);function n(S){return t.reduce(function(r,s){return S.hasOwnProperty(s)&&(r[s]=S[s]),r},{})}function u(S,r,s){return r=(0,y.Z)(r),(0,L.Z)(S,(0,pe.Z)()?Reflect.construct(r,s||[],(0,y.Z)(S).constructor):r.apply(S,s))}var v=function(r){var s,e,_,d,m;r.rtl?m=r.slideCount-1-r.index:m=r.index,_=m<0||m>=r.slideCount,r.centerMode?(d=Math.floor(r.slidesToShow/2),e=(m-r.currentSlide)%r.slideCount===0,m>r.currentSlide-d-1&&m<=r.currentSlide+d&&(s=!0)):s=r.currentSlide<=m&&m<r.currentSlide+r.slidesToShow;var E;r.targetSlide<0?E=r.targetSlide+r.slideCount:r.targetSlide>=r.slideCount?E=r.targetSlide-r.slideCount:E=r.targetSlide;var O=m===E;return{"slick-slide":!0,"slick-active":s,"slick-center":e,"slick-cloned":_,"slick-current":O}},C=function(r){var s={};return(r.variableWidth===void 0||r.variableWidth===!1)&&(s.width=r.slideWidth),r.fade&&(s.position="relative",r.vertical&&r.slideHeight?s.top=-r.index*parseInt(r.slideHeight):s.left=-r.index*parseInt(r.slideWidth),s.opacity=r.currentSlide===r.index?1:0,s.zIndex=r.currentSlide===r.index?999:998,r.useCSS&&(s.transition="opacity "+r.speed+"ms "+r.cssEase+", visibility "+r.speed+"ms "+r.cssEase)),s},k=function(r,s){return r.key+"-"+s},ge=function(r){var s,e=[],_=[],d=[],m=l.Children.count(r.children),E=Pt(r),O=ye(r);return l.Children.forEach(r.children,function(ee,oe){var U,we={message:"children",index:oe,slidesToScroll:r.slidesToScroll,currentSlide:r.currentSlide};!r.lazyLoad||r.lazyLoad&&r.lazyLoadedList.indexOf(oe)>=0?U=ee:U=l.createElement("div",null);var ke=C((0,p.Z)((0,p.Z)({},r),{},{index:oe})),Ee=U.props.className||"",X=v((0,p.Z)((0,p.Z)({},r),{},{index:oe}));if(e.push(l.cloneElement(U,{key:"original"+k(U,oe),"data-index":oe,className:Ge()(X,Ee),tabIndex:"-1","aria-hidden":!X["slick-active"],style:(0,p.Z)((0,p.Z)({outline:"none"},U.props.style||{}),ke),onClick:function(H){U.props&&U.props.onClick&&U.props.onClick(H),r.focusOnSelect&&r.focusOnSelect(we)}})),r.infinite&&m>1&&r.fade===!1&&!r.unslick){var me=m-oe;me<=dt(r)&&(s=-me,s>=E&&(U=ee),X=v((0,p.Z)((0,p.Z)({},r),{},{index:s})),_.push(l.cloneElement(U,{key:"precloned"+k(U,s),"data-index":s,tabIndex:"-1",className:Ge()(X,Ee),"aria-hidden":!X["slick-active"],style:(0,p.Z)((0,p.Z)({},U.props.style||{}),ke),onClick:function(H){U.props&&U.props.onClick&&U.props.onClick(H),r.focusOnSelect&&r.focusOnSelect(we)}}))),s=m+oe,s<O&&(U=ee),X=v((0,p.Z)((0,p.Z)({},r),{},{index:s})),d.push(l.cloneElement(U,{key:"postcloned"+k(U,s),"data-index":s,tabIndex:"-1",className:Ge()(X,Ee),"aria-hidden":!X["slick-active"],style:(0,p.Z)((0,p.Z)({},U.props.style||{}),ke),onClick:function(H){U.props&&U.props.onClick&&U.props.onClick(H),r.focusOnSelect&&r.focusOnSelect(we)}}))}}),r.rtl?_.concat(e,d).reverse():_.concat(e,d)},Ae=function(S){function r(){var s;(0,Le.Z)(this,r);for(var e=arguments.length,_=new Array(e),d=0;d<e;d++)_[d]=arguments[d];return s=u(this,r,[].concat(_)),(0,z.Z)(s,"node",null),(0,z.Z)(s,"handleRef",function(m){s.node=m}),s}return(0,Ye.Z)(r,S),(0,ne.Z)(r,[{key:"render",value:function(){var e=ge(this.props),_=this.props,d=_.onMouseEnter,m=_.onMouseOver,E=_.onMouseLeave,O={onMouseEnter:d,onMouseOver:m,onMouseLeave:E};return l.createElement("div",(0,ue.Z)({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},O),e)}}])}(l.PureComponent);function je(S,r,s){return r=(0,y.Z)(r),(0,L.Z)(S,(0,pe.Z)()?Reflect.construct(r,s||[],(0,y.Z)(S).constructor):r.apply(S,s))}var pt=function(r){var s;return r.infinite?s=Math.ceil(r.slideCount/r.slidesToScroll):s=Math.ceil((r.slideCount-r.slidesToShow)/r.slidesToScroll)+1,s},Ce=function(S){function r(){return(0,Le.Z)(this,r),je(this,r,arguments)}return(0,Ye.Z)(r,S),(0,ne.Z)(r,[{key:"clickHandler",value:function(e,_){_.preventDefault(),this.props.clickHandler(e)}},{key:"render",value:function(){for(var e=this.props,_=e.onMouseEnter,d=e.onMouseOver,m=e.onMouseLeave,E=e.infinite,O=e.slidesToScroll,ee=e.slidesToShow,oe=e.slideCount,U=e.currentSlide,we=pt({slideCount:oe,slidesToScroll:O,slidesToShow:ee,infinite:E}),ke={onMouseEnter:_,onMouseOver:d,onMouseLeave:m},Ee=[],X=0;X<we;X++){var me=(X+1)*O-1,We=E?me:_t(me,0,oe-1),H=We-(O-1),Me=E?H:_t(H,0,oe-1),Ie=Ge()({"slick-active":E?U>=Me&&U<=We:U===Me}),et={message:"dots",index:X,slidesToScroll:O,currentSlide:U},ht=this.clickHandler.bind(this,et);Ee=Ee.concat(l.createElement("li",{key:X,className:Ie},l.cloneElement(this.props.customPaging(X),{onClick:ht})))}return l.cloneElement(this.props.appendDots(Ee),(0,p.Z)({className:this.props.dotsClass},ke))}}])}(l.PureComponent);function ft(S,r,s){return r=(0,y.Z)(r),(0,L.Z)(S,(0,pe.Z)()?Reflect.construct(r,s||[],(0,y.Z)(S).constructor):r.apply(S,s))}var en=function(S){function r(){return(0,Le.Z)(this,r),ft(this,r,arguments)}return(0,Ye.Z)(r,S),(0,ne.Z)(r,[{key:"clickHandler",value:function(e,_){_&&_.preventDefault(),this.props.clickHandler(e,_)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-prev":!0},_=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(this.props.currentSlide===0||this.props.slideCount<=this.props.slidesToShow)&&(e["slick-disabled"]=!0,_=null);var d={key:"0","data-role":"none",className:Ge()(e),style:{display:"block"},onClick:_},m={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},E;return this.props.prevArrow?E=l.cloneElement(this.props.prevArrow,(0,p.Z)((0,p.Z)({},d),m)):E=l.createElement("button",(0,ue.Z)({key:"0",type:"button"},d)," ","Previous"),E}}])}(l.PureComponent),tn=function(S){function r(){return(0,Le.Z)(this,r),ft(this,r,arguments)}return(0,Ye.Z)(r,S),(0,ne.Z)(r,[{key:"clickHandler",value:function(e,_){_&&_.preventDefault(),this.props.clickHandler(e,_)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-next":!0},_=this.clickHandler.bind(this,{message:"next"});Zt(this.props)||(e["slick-disabled"]=!0,_=null);var d={key:"1","data-role":"none",className:Ge()(e),style:{display:"block"},onClick:_},m={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},E;return this.props.nextArrow?E=l.cloneElement(this.props.nextArrow,(0,p.Z)((0,p.Z)({},d),m)):E=l.createElement("button",(0,ue.Z)({key:"1",type:"button"},d)," ","Next"),E}}])}(l.PureComponent),Wt=F(76374),Oe=["animating"];function gt(S,r,s){return r=(0,y.Z)(r),(0,L.Z)(S,(0,pe.Z)()?Reflect.construct(r,s||[],(0,y.Z)(S).constructor):r.apply(S,s))}var q=function(S){function r(s){var e;(0,Le.Z)(this,r),e=gt(this,r,[s]),(0,z.Z)(e,"listRefHandler",function(d){return e.list=d}),(0,z.Z)(e,"trackRefHandler",function(d){return e.track=d}),(0,z.Z)(e,"adaptHeight",function(){if(e.props.adaptiveHeight&&e.list){var d=e.list.querySelector('[data-index="'.concat(e.state.currentSlide,'"]'));e.list.style.height=nt(d)+"px"}}),(0,z.Z)(e,"componentDidMount",function(){if(e.props.onInit&&e.props.onInit(),e.props.lazyLoad){var d=fe((0,p.Z)((0,p.Z)({},e.props),e.state));d.length>0&&(e.setState(function(E){return{lazyLoadedList:E.lazyLoadedList.concat(d)}}),e.props.onLazyLoad&&e.props.onLazyLoad(d))}var m=(0,p.Z)({listRef:e.list,trackRef:e.track},e.props);e.updateState(m,!0,function(){e.adaptHeight(),e.props.autoplay&&e.autoPlay("playing")}),e.props.lazyLoad==="progressive"&&(e.lazyLoadTimer=setInterval(e.progressiveLazyLoad,1e3)),e.ro=new Wt.Z(function(){e.state.animating?(e.onWindowResized(!1),e.callbackTimers.push(setTimeout(function(){return e.onWindowResized()},e.props.speed))):e.onWindowResized()}),e.ro.observe(e.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),function(E){E.onfocus=e.props.pauseOnFocus?e.onSlideFocus:null,E.onblur=e.props.pauseOnFocus?e.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",e.onWindowResized):window.attachEvent("onresize",e.onWindowResized)}),(0,z.Z)(e,"componentWillUnmount",function(){e.animationEndCallback&&clearTimeout(e.animationEndCallback),e.lazyLoadTimer&&clearInterval(e.lazyLoadTimer),e.callbackTimers.length&&(e.callbackTimers.forEach(function(d){return clearTimeout(d)}),e.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",e.onWindowResized):window.detachEvent("onresize",e.onWindowResized),e.autoplayTimer&&clearInterval(e.autoplayTimer),e.ro.disconnect()}),(0,z.Z)(e,"componentDidUpdate",function(d){if(e.checkImagesLoad(),e.props.onReInit&&e.props.onReInit(),e.props.lazyLoad){var m=fe((0,p.Z)((0,p.Z)({},e.props),e.state));m.length>0&&(e.setState(function(ee){return{lazyLoadedList:ee.lazyLoadedList.concat(m)}}),e.props.onLazyLoad&&e.props.onLazyLoad(m))}e.adaptHeight();var E=(0,p.Z)((0,p.Z)({listRef:e.list,trackRef:e.track},e.props),e.state),O=e.didPropsChange(d);O&&e.updateState(E,O,function(){e.state.currentSlide>=l.Children.count(e.props.children)&&e.changeSlide({message:"index",index:l.Children.count(e.props.children)-e.props.slidesToShow,currentSlide:e.state.currentSlide}),(d.autoplay!==e.props.autoplay||d.autoplaySpeed!==e.props.autoplaySpeed)&&(!d.autoplay&&e.props.autoplay?e.autoPlay("playing"):e.props.autoplay?e.autoPlay("update"):e.pause("paused"))})}),(0,z.Z)(e,"onWindowResized",function(d){e.debouncedResize&&e.debouncedResize.cancel(),e.debouncedResize=(0,$e.D)(50,function(){return e.resizeWindow(d)}),e.debouncedResize()}),(0,z.Z)(e,"resizeWindow",function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,m=!!(e.track&&e.track.node);if(m){var E=(0,p.Z)((0,p.Z)({listRef:e.list,trackRef:e.track},e.props),e.state);e.updateState(E,d,function(){e.props.autoplay?e.autoPlay("update"):e.pause("paused")}),e.setState({animating:!1}),clearTimeout(e.animationEndCallback),delete e.animationEndCallback}}),(0,z.Z)(e,"updateState",function(d,m,E){var O=at(d);d=(0,p.Z)((0,p.Z)((0,p.Z)({},d),O),{},{slideIndex:O.currentSlide});var ee=Dt(d);d=(0,p.Z)((0,p.Z)({},d),{},{left:ee});var oe=xt(d);(m||l.Children.count(e.props.children)!==l.Children.count(d.children))&&(O.trackStyle=oe),e.setState(O,E)}),(0,z.Z)(e,"ssrInit",function(){if(e.props.variableWidth){var d=0,m=0,E=[],O=dt((0,p.Z)((0,p.Z)((0,p.Z)({},e.props),e.state),{},{slideCount:e.props.children.length})),ee=Lt((0,p.Z)((0,p.Z)((0,p.Z)({},e.props),e.state),{},{slideCount:e.props.children.length}));e.props.children.forEach(function(ht){E.push(ht.props.style.width),d+=ht.props.style.width});for(var oe=0;oe<O;oe++)m+=E[E.length-1-oe],d+=E[E.length-1-oe];for(var U=0;U<ee;U++)d+=E[U];for(var we=0;we<e.state.currentSlide;we++)m+=E[we];var ke={width:d+"px",left:-m+"px"};if(e.props.centerMode){var Ee="".concat(E[e.state.currentSlide],"px");ke.left="calc(".concat(ke.left," + (100% - ").concat(Ee,") / 2 ) ")}return{trackStyle:ke}}var X=l.Children.count(e.props.children),me=(0,p.Z)((0,p.Z)((0,p.Z)({},e.props),e.state),{},{slideCount:X}),We=dt(me)+Lt(me)+X,H=100/e.props.slidesToShow*We,Me=100/We,Ie=-Me*(dt(me)+e.state.currentSlide)*H/100;e.props.centerMode&&(Ie+=(100-Me*H/100)/2);var et={width:H+"%",left:Ie+"%"};return{slideWidth:Me+"%",trackStyle:et}}),(0,z.Z)(e,"checkImagesLoad",function(){var d=e.list&&e.list.querySelectorAll&&e.list.querySelectorAll(".slick-slide img")||[],m=d.length,E=0;Array.prototype.forEach.call(d,function(O){var ee=function(){return++E&&E>=m&&e.onWindowResized()};if(!O.onclick)O.onclick=function(){return O.parentNode.focus()};else{var oe=O.onclick;O.onclick=function(U){oe(U),O.parentNode.focus()}}O.onload||(e.props.lazyLoad?O.onload=function(){e.adaptHeight(),e.callbackTimers.push(setTimeout(e.onWindowResized,e.props.speed))}:(O.onload=ee,O.onerror=function(){ee(),e.props.onLazyLoadError&&e.props.onLazyLoadError()}))})}),(0,z.Z)(e,"progressiveLazyLoad",function(){for(var d=[],m=(0,p.Z)((0,p.Z)({},e.props),e.state),E=e.state.currentSlide;E<e.state.slideCount+Lt(m);E++)if(e.state.lazyLoadedList.indexOf(E)<0){d.push(E);break}for(var O=e.state.currentSlide-1;O>=-dt(m);O--)if(e.state.lazyLoadedList.indexOf(O)<0){d.push(O);break}d.length>0?(e.setState(function(ee){return{lazyLoadedList:ee.lazyLoadedList.concat(d)}}),e.props.onLazyLoad&&e.props.onLazyLoad(d)):e.lazyLoadTimer&&(clearInterval(e.lazyLoadTimer),delete e.lazyLoadTimer)}),(0,z.Z)(e,"slideHandler",function(d){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,E=e.props,O=E.asNavFor,ee=E.beforeChange,oe=E.onLazyLoad,U=E.speed,we=E.afterChange,ke=e.state.currentSlide,Ee=Ft((0,p.Z)((0,p.Z)((0,p.Z)({index:d},e.props),e.state),{},{trackRef:e.track,useCSS:e.props.useCSS&&!m})),X=Ee.state,me=Ee.nextState;if(X){ee&&ee(ke,X.currentSlide);var We=X.lazyLoadedList.filter(function(H){return e.state.lazyLoadedList.indexOf(H)<0});oe&&We.length>0&&oe(We),!e.props.waitForAnimate&&e.animationEndCallback&&(clearTimeout(e.animationEndCallback),we&&we(ke),delete e.animationEndCallback),e.setState(X,function(){O&&e.asNavForIndex!==d&&(e.asNavForIndex=d,O.innerSlider.slideHandler(d)),me&&(e.animationEndCallback=setTimeout(function(){var H=me.animating,Me=(0,B.Z)(me,Oe);e.setState(Me,function(){e.callbackTimers.push(setTimeout(function(){return e.setState({animating:H})},10)),we&&we(X.currentSlide),delete e.animationEndCallback})},U))})}}),(0,z.Z)(e,"changeSlide",function(d){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,E=(0,p.Z)((0,p.Z)({},e.props),e.state),O=yt(E,d);if(!(O!==0&&!O)&&(m===!0?e.slideHandler(O,m):e.slideHandler(O),e.props.autoplay&&e.autoPlay("update"),e.props.focusOnSelect)){var ee=e.list.querySelectorAll(".slick-current");ee[0]&&ee[0].focus()}}),(0,z.Z)(e,"clickHandler",function(d){e.clickable===!1&&(d.stopPropagation(),d.preventDefault()),e.clickable=!0}),(0,z.Z)(e,"keyHandler",function(d){var m=g(d,e.props.accessibility,e.props.rtl);m!==""&&e.changeSlide({message:m})}),(0,z.Z)(e,"selectHandler",function(d){e.changeSlide(d)}),(0,z.Z)(e,"disableBodyScroll",function(){var d=function(E){E=E||window.event,E.preventDefault&&E.preventDefault(),E.returnValue=!1};window.ontouchmove=d}),(0,z.Z)(e,"enableBodyScroll",function(){window.ontouchmove=null}),(0,z.Z)(e,"swipeStart",function(d){e.props.verticalSwiping&&e.disableBodyScroll();var m=I(d,e.props.swipe,e.props.draggable);m!==""&&e.setState(m)}),(0,z.Z)(e,"swipeMove",function(d){var m=Y(d,(0,p.Z)((0,p.Z)((0,p.Z)({},e.props),e.state),{},{trackRef:e.track,listRef:e.list,slideIndex:e.state.currentSlide}));m&&(m.swiping&&(e.clickable=!1),e.setState(m))}),(0,z.Z)(e,"swipeEnd",function(d){var m=$(d,(0,p.Z)((0,p.Z)((0,p.Z)({},e.props),e.state),{},{trackRef:e.track,listRef:e.list,slideIndex:e.state.currentSlide}));if(m){var E=m.triggerSlideHandler;delete m.triggerSlideHandler,e.setState(m),E!==void 0&&(e.slideHandler(E),e.props.verticalSwiping&&e.enableBodyScroll())}}),(0,z.Z)(e,"touchEnd",function(d){e.swipeEnd(d),e.clickable=!0}),(0,z.Z)(e,"slickPrev",function(){e.callbackTimers.push(setTimeout(function(){return e.changeSlide({message:"previous"})},0))}),(0,z.Z)(e,"slickNext",function(){e.callbackTimers.push(setTimeout(function(){return e.changeSlide({message:"next"})},0))}),(0,z.Z)(e,"slickGoTo",function(d){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(d=Number(d),isNaN(d))return"";e.callbackTimers.push(setTimeout(function(){return e.changeSlide({message:"index",index:d,currentSlide:e.state.currentSlide},m)},0))}),(0,z.Z)(e,"play",function(){var d;if(e.props.rtl)d=e.state.currentSlide-e.props.slidesToScroll;else if(Zt((0,p.Z)((0,p.Z)({},e.props),e.state)))d=e.state.currentSlide+e.props.slidesToScroll;else return!1;e.slideHandler(d)}),(0,z.Z)(e,"autoPlay",function(d){e.autoplayTimer&&clearInterval(e.autoplayTimer);var m=e.state.autoplaying;if(d==="update"){if(m==="hovered"||m==="focused"||m==="paused")return}else if(d==="leave"){if(m==="paused"||m==="focused")return}else if(d==="blur"&&(m==="paused"||m==="hovered"))return;e.autoplayTimer=setInterval(e.play,e.props.autoplaySpeed+50),e.setState({autoplaying:"playing"})}),(0,z.Z)(e,"pause",function(d){e.autoplayTimer&&(clearInterval(e.autoplayTimer),e.autoplayTimer=null);var m=e.state.autoplaying;d==="paused"?e.setState({autoplaying:"paused"}):d==="focused"?(m==="hovered"||m==="playing")&&e.setState({autoplaying:"focused"}):m==="playing"&&e.setState({autoplaying:"hovered"})}),(0,z.Z)(e,"onDotsOver",function(){return e.props.autoplay&&e.pause("hovered")}),(0,z.Z)(e,"onDotsLeave",function(){return e.props.autoplay&&e.state.autoplaying==="hovered"&&e.autoPlay("leave")}),(0,z.Z)(e,"onTrackOver",function(){return e.props.autoplay&&e.pause("hovered")}),(0,z.Z)(e,"onTrackLeave",function(){return e.props.autoplay&&e.state.autoplaying==="hovered"&&e.autoPlay("leave")}),(0,z.Z)(e,"onSlideFocus",function(){return e.props.autoplay&&e.pause("focused")}),(0,z.Z)(e,"onSlideBlur",function(){return e.props.autoplay&&e.state.autoplaying==="focused"&&e.autoPlay("blur")}),(0,z.Z)(e,"render",function(){var d=Ge()("slick-slider",e.props.className,{"slick-vertical":e.props.vertical,"slick-initialized":!0}),m=(0,p.Z)((0,p.Z)({},e.props),e.state),E=Ct(m,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),O=e.props.pauseOnHover;E=(0,p.Z)((0,p.Z)({},E),{},{onMouseEnter:O?e.onTrackOver:null,onMouseLeave:O?e.onTrackLeave:null,onMouseOver:O?e.onTrackOver:null,focusOnSelect:e.props.focusOnSelect&&e.clickable?e.selectHandler:null});var ee;if(e.props.dots===!0&&e.state.slideCount>=e.props.slidesToShow){var oe=Ct(m,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),U=e.props.pauseOnDotsHover;oe=(0,p.Z)((0,p.Z)({},oe),{},{clickHandler:e.changeSlide,onMouseEnter:U?e.onDotsLeave:null,onMouseOver:U?e.onDotsOver:null,onMouseLeave:U?e.onDotsLeave:null}),ee=l.createElement(Ce,oe)}var we,ke,Ee=Ct(m,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);Ee.clickHandler=e.changeSlide,e.props.arrows&&(we=l.createElement(en,Ee),ke=l.createElement(tn,Ee));var X=null;e.props.vertical&&(X={height:e.state.listHeight});var me=null;e.props.vertical===!1?e.props.centerMode===!0&&(me={padding:"0px "+e.props.centerPadding}):e.props.centerMode===!0&&(me={padding:e.props.centerPadding+" 0px"});var We=(0,p.Z)((0,p.Z)({},X),me),H=e.props.touchMove,Me={className:"slick-list",style:We,onClick:e.clickHandler,onMouseDown:H?e.swipeStart:null,onMouseMove:e.state.dragging&&H?e.swipeMove:null,onMouseUp:H?e.swipeEnd:null,onMouseLeave:e.state.dragging&&H?e.swipeEnd:null,onTouchStart:H?e.swipeStart:null,onTouchMove:e.state.dragging&&H?e.swipeMove:null,onTouchEnd:H?e.touchEnd:null,onTouchCancel:e.state.dragging&&H?e.swipeEnd:null,onKeyDown:e.props.accessibility?e.keyHandler:null},Ie={className:d,dir:"ltr",style:e.props.style};return e.props.unslick&&(Me={className:"slick-list"},Ie={className:d,style:e.props.style}),l.createElement("div",Ie,e.props.unslick?"":we,l.createElement("div",(0,ue.Z)({ref:e.listRefHandler},Me),l.createElement(Ae,(0,ue.Z)({ref:e.trackRefHandler},E),e.props.children)),e.props.unslick?"":ke,e.props.unslick?"":ee)}),e.list=null,e.track=null,e.state=(0,p.Z)((0,p.Z)({},Se),{},{currentSlide:e.props.initialSlide,targetSlide:e.props.initialSlide?e.props.initialSlide:0,slideCount:l.Children.count(e.props.children)}),e.callbackTimers=[],e.clickable=!0,e.debouncedResize=null;var _=e.ssrInit();return e.state=(0,p.Z)((0,p.Z)({},e.state),_),e}return(0,Ye.Z)(r,S),(0,ne.Z)(r,[{key:"didPropsChange",value:function(e){for(var _=!1,d=0,m=Object.keys(this.props);d<m.length;d++){var E=m[d];if(!e.hasOwnProperty(E)){_=!0;break}if(!((0,Xe.Z)(e[E])==="object"||typeof e[E]=="function"||isNaN(e[E]))&&e[E]!==this.props[E]){_=!0;break}}return _||l.Children.count(this.props.children)!==l.Children.count(e.children)}}])}(l.Component),Pe=F(7861),lt=F.n(Pe);function Ut(S,r,s){return r=(0,y.Z)(r),(0,L.Z)(S,(0,pe.Z)()?Reflect.construct(r,s||[],(0,y.Z)(S).constructor):r.apply(S,s))}var At=function(S){function r(s){var e;return(0,Le.Z)(this,r),e=Ut(this,r,[s]),(0,z.Z)(e,"innerSliderRefHandler",function(_){return e.innerSlider=_}),(0,z.Z)(e,"slickPrev",function(){return e.innerSlider.slickPrev()}),(0,z.Z)(e,"slickNext",function(){return e.innerSlider.slickNext()}),(0,z.Z)(e,"slickGoTo",function(_){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return e.innerSlider.slickGoTo(_,d)}),(0,z.Z)(e,"slickPause",function(){return e.innerSlider.pause("paused")}),(0,z.Z)(e,"slickPlay",function(){return e.innerSlider.autoPlay("play")}),e.state={breakpoint:null},e._responsiveMediaHandlers=[],e}return(0,Ye.Z)(r,S),(0,ne.Z)(r,[{key:"media",value:function(e,_){var d=window.matchMedia(e),m=function(O){var ee=O.matches;ee&&_()};d.addListener(m),m(d),this._responsiveMediaHandlers.push({mql:d,query:e,listener:m})}},{key:"componentDidMount",value:function(){var e=this;if(this.props.responsive){var _=this.props.responsive.map(function(m){return m.breakpoint});_.sort(function(m,E){return m-E}),_.forEach(function(m,E){var O;E===0?O=lt()({minWidth:0,maxWidth:m}):O=lt()({minWidth:_[E-1]+1,maxWidth:m}),i()&&e.media(O,function(){e.setState({breakpoint:m})})});var d=lt()({minWidth:_.slice(-1)[0]});i()&&this.media(d,function(){e.setState({breakpoint:null})})}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach(function(e){e.mql.removeListener(e.listener)})}},{key:"render",value:function(){var e=this,_,d;this.state.breakpoint?(d=this.props.responsive.filter(function(X){return X.breakpoint===e.state.breakpoint}),_=d[0].settings==="unslick"?"unslick":(0,p.Z)((0,p.Z)((0,p.Z)({},st),this.props),d[0].settings)):_=(0,p.Z)((0,p.Z)({},st),this.props),_.centerMode&&(_.slidesToScroll>1,_.slidesToScroll=1),_.fade&&(_.slidesToShow>1,_.slidesToScroll>1,_.slidesToShow=1,_.slidesToScroll=1);var m=l.Children.toArray(this.props.children);m=m.filter(function(X){return typeof X=="string"?!!X.trim():!!X}),_.variableWidth&&(_.rows>1||_.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),_.variableWidth=!1);for(var E=[],O=null,ee=0;ee<m.length;ee+=_.rows*_.slidesPerRow){for(var oe=[],U=ee;U<ee+_.rows*_.slidesPerRow;U+=_.slidesPerRow){for(var we=[],ke=U;ke<U+_.slidesPerRow&&(_.variableWidth&&m[ke].props.style&&(O=m[ke].props.style.width),!(ke>=m.length));ke+=1)we.push(l.cloneElement(m[ke],{key:100*ee+10*U+ke,tabIndex:-1,style:{width:"".concat(100/_.slidesPerRow,"%"),display:"inline-block"}}));oe.push(l.createElement("div",{key:10*ee+U},we))}_.variableWidth?E.push(l.createElement("div",{key:ee,style:{width:O}},oe)):E.push(l.createElement("div",{key:ee},oe))}if(_==="unslick"){var Ee="regular slider "+(this.props.className||"");return l.createElement("div",{className:Ee},m)}else E.length<=_.slidesToShow&&!_.infinite&&(_.unslick=!0);return l.createElement(q,(0,ue.Z)({style:this.props.style,ref:this.innerSliderRefHandler},n(_)),E)}}])}(l.Component),re=At,sn=F(48755),cn=F(36237),nn=F(63356),kn=F(16931);const pn="--dot-duration",Dn=S=>{const{componentCls:r,antCls:s}=S;return{[r]:Object.assign(Object.assign({},(0,nn.Wf)(S)),{".slick-slider":{position:"relative",display:"block",boxSizing:"border-box",touchAction:"pan-y",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",".slick-track, .slick-list":{transform:"translate3d(0, 0, 0)",touchAction:"pan-y"}},".slick-list":{position:"relative",display:"block",margin:0,padding:0,overflow:"hidden","&:focus":{outline:"none"},"&.dragging":{cursor:"pointer"},".slick-slide":{pointerEvents:"none",[`input${s}-radio-input, input${s}-checkbox-input`]:{visibility:"hidden"},"&.slick-active":{pointerEvents:"auto",[`input${s}-radio-input, input${s}-checkbox-input`]:{visibility:"visible"}},"> div > div":{verticalAlign:"bottom"}}},".slick-track":{position:"relative",top:0,insetInlineStart:0,display:"block","&::before, &::after":{display:"table",content:'""'},"&::after":{clear:"both"}},".slick-slide":{display:"none",float:"left",height:"100%",minHeight:1,img:{display:"block"},"&.dragging img":{pointerEvents:"none"}},".slick-initialized .slick-slide":{display:"block"},".slick-vertical .slick-slide":{display:"block",height:"auto"}})}},Ln=S=>{const{componentCls:r,motionDurationSlow:s,arrowSize:e,arrowOffset:_}=S,d=S.calc(e).div(Math.SQRT2).equal();return{[r]:{".slick-prev, .slick-next":{position:"absolute",top:"50%",width:e,height:e,transform:"translateY(-50%)",color:"#fff",opacity:.4,background:"transparent",padding:0,lineHeight:0,border:0,outline:"none",cursor:"pointer",zIndex:1,transition:`opacity ${s}`,"&:hover, &:focus":{opacity:1},"&.slick-disabled":{pointerEvents:"none",opacity:0},"&::after":{boxSizing:"border-box",position:"absolute",top:S.calc(e).sub(d).div(2).equal(),insetInlineStart:S.calc(e).sub(d).div(2).equal(),display:"inline-block",width:d,height:d,border:"0 solid currentcolor",borderInlineStartWidth:2,borderBlockStartWidth:2,borderRadius:1,content:'""'}},".slick-prev":{insetInlineStart:_,"&::after":{transform:"rotate(-45deg)"}},".slick-next":{insetInlineEnd:_,"&::after":{transform:"rotate(135deg)"}}}}},On=S=>{const{componentCls:r,dotOffset:s,dotWidth:e,dotHeight:_,dotGap:d,colorBgContainer:m,motionDurationSlow:E}=S;return{[r]:{".slick-dots":{position:"absolute",insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:15,display:"flex !important",justifyContent:"center",paddingInlineStart:0,margin:0,listStyle:"none","&-bottom":{bottom:s},"&-top":{top:s,bottom:"auto"},li:{position:"relative",display:"inline-block",flex:"0 1 auto",boxSizing:"content-box",width:e,height:_,marginInline:d,padding:0,textAlign:"center",textIndent:-999,verticalAlign:"top",transition:`all ${E}`,borderRadius:_,overflow:"hidden","&::after":{display:"block",position:"absolute",top:0,insetInlineStart:0,width:"100%",height:_,content:'""',background:m,borderRadius:_,opacity:1,outline:"none",cursor:"pointer",overflow:"hidden",transform:"translate3d(-100%, 0, 0)"},button:{position:"relative",display:"block",width:"100%",height:_,padding:0,color:"transparent",fontSize:0,background:m,border:0,borderRadius:_,outline:"none",cursor:"pointer",opacity:.2,transition:`all ${E}`,overflow:"hidden","&:hover":{opacity:.75},"&::after":{position:"absolute",inset:S.calc(d).mul(-1).equal(),content:'""'}},"&.slick-active":{width:S.dotActiveWidth,position:"relative","&:hover":{opacity:1},"&::after":{transform:"translate3d(0, 0, 0)",transition:`transform var(${pn}) ease-out`}}}}}}},Bn=S=>{const{componentCls:r,dotOffset:s,arrowOffset:e,marginXXS:_}=S,d={width:S.dotHeight,height:S.dotWidth};return{[`${r}-vertical`]:{".slick-prev, .slick-next":{insetInlineStart:"50%",marginBlockStart:"unset",transform:"translateX(-50%)"},".slick-prev":{insetBlockStart:e,insetInlineStart:"50%","&::after":{transform:"rotate(45deg)"}},".slick-next":{insetBlockStart:"auto",insetBlockEnd:e,"&::after":{transform:"rotate(-135deg)"}},".slick-dots":{top:"50%",bottom:"auto",flexDirection:"column",width:S.dotHeight,height:"auto",margin:0,transform:"translateY(-50%)","&-left":{insetInlineEnd:"auto",insetInlineStart:s},"&-right":{insetInlineEnd:s,insetInlineStart:"auto"},li:Object.assign(Object.assign({},d),{margin:`${(0,cn.unit)(_)} 0`,verticalAlign:"baseline",button:d,"&::after":Object.assign(Object.assign({},d),{height:0}),"&.slick-active":Object.assign(Object.assign({},d),{button:d,"&::after":Object.assign(Object.assign({},d),{transition:`height var(${pn}) ease-out`})})})}}}},Tn=S=>{const{componentCls:r}=S;return[{[`${r}-rtl`]:{direction:"rtl",".slick-dots":{[`${r}-rtl&`]:{flexDirection:"row-reverse"}}}},{[`${r}-vertical`]:{".slick-dots":{[`${r}-rtl&`]:{flexDirection:"column"}}}}]},In=S=>({arrowSize:16,arrowOffset:S.marginXS,dotWidth:16,dotHeight:3,dotGap:S.marginXXS,dotOffset:12,dotWidthActive:24,dotActiveWidth:24});var bn=(0,kn.I$)("Carousel",S=>[Dn(S),Ln(S),On(S),Bn(S),Tn(S)],In,{deprecatedTokens:[["dotWidthActive","dotActiveWidth"]]}),zt=function(S,r){var s={};for(var e in S)Object.prototype.hasOwnProperty.call(S,e)&&r.indexOf(e)<0&&(s[e]=S[e]);if(S!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,e=Object.getOwnPropertySymbols(S);_<e.length;_++)r.indexOf(e[_])<0&&Object.prototype.propertyIsEnumerable.call(S,e[_])&&(s[e[_]]=S[e[_]]);return s};const An="slick-dots",En=S=>{var{currentSlide:r,slideCount:s}=S,e=zt(S,["currentSlide","slideCount"]);return l.createElement("button",Object.assign({type:"button"},e))};var wt=l.forwardRef((S,r)=>{const{dots:s=!0,arrows:e=!1,prevArrow:_=l.createElement(En,{"aria-label":"prev"}),nextArrow:d=l.createElement(En,{"aria-label":"next"}),draggable:m=!1,waitForAnimate:E=!1,dotPosition:O="bottom",vertical:ee=O==="left"||O==="right",rootClassName:oe,className:U,style:we,id:ke,autoplay:Ee=!1,autoplaySpeed:X=3e3}=S,me=zt(S,["dots","arrows","prevArrow","nextArrow","draggable","waitForAnimate","dotPosition","vertical","rootClassName","className","style","id","autoplay","autoplaySpeed"]),{getPrefixCls:We,direction:H,className:Me,style:Ie}=(0,sn.dj)("carousel"),et=l.useRef(null),ht=function(Wn){let Gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;et.current.slickGoTo(Wn,Gt)};l.useImperativeHandle(r,()=>({goTo:ht,autoPlay:et.current.innerSlider.autoPlay,innerSlider:et.current.innerSlider,prev:et.current.slickPrev,next:et.current.slickNext}),[et.current]);const ln=l.useRef(l.Children.count(S.children));l.useEffect(()=>{ln.current!==l.Children.count(S.children)&&(ht(S.initialSlide||0,!1),ln.current=l.Children.count(S.children))},[S.children]);const Yt=Object.assign({vertical:ee,className:Ge()(U,Me),style:Object.assign(Object.assign({},Ie),we),autoplay:!!Ee},me);Yt.effect==="fade"&&(Yt.fade=!0);const D=We("carousel",Yt.prefixCls),yn=!!s,Mn=Ge()(An,`${An}-${O}`,typeof s=="boolean"?!1:s==null?void 0:s.className),[rn,fn,Jn]=bn(D),Qn=Ge()(D,{[`${D}-rtl`]:H==="rtl",[`${D}-vertical`]:Yt.vertical},fn,Jn,oe),Cn=Ee&&(typeof Ee=="object"?Ee.dotDuration:!1)?{[pn]:`${X}ms`}:{};return rn(l.createElement("div",{className:Qn,id:ke,style:Cn},l.createElement(re,Object.assign({ref:et},Yt,{dots:yn,dotsClass:Mn,arrows:e,prevArrow:_,nextArrow:d,draggable:m,verticalSwiping:ee,autoplaySpeed:X,waitForAnimate:E}))))})},86251:function(on,Et){"use strict";Et.byteLength=pe,Et.toByteArray=Ye,Et.fromByteArray=B;for(var F=[],l=[],ue=typeof Uint8Array!="undefined"?Uint8Array:Array,p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Le=0,ne=p.length;Le<ne;++Le)F[Le]=p[Le],l[p.charCodeAt(Le)]=Le;l[45]=62,l[95]=63;function L(te){var Se=te.length;if(Se%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var $e=te.indexOf("=");$e===-1&&($e=Se);var Je=$e===Se?0:4-$e%4;return[$e,Je]}function pe(te){var Se=L(te),$e=Se[0],Je=Se[1];return($e+Je)*3/4-Je}function y(te,Se,$e){return(Se+$e)*3/4-$e}function Ye(te){var Se,$e=L(te),Je=$e[0],Ge=$e[1],Qe=new ue(y(te,Je,Ge)),st=0,_t=Ge>0?Je-4:Je,Ve;for(Ve=0;Ve<_t;Ve+=4)Se=l[te.charCodeAt(Ve)]<<18|l[te.charCodeAt(Ve+1)]<<12|l[te.charCodeAt(Ve+2)]<<6|l[te.charCodeAt(Ve+3)],Qe[st++]=Se>>16&255,Qe[st++]=Se>>8&255,Qe[st++]=Se&255;return Ge===2&&(Se=l[te.charCodeAt(Ve)]<<2|l[te.charCodeAt(Ve+1)]>>4,Qe[st++]=Se&255),Ge===1&&(Se=l[te.charCodeAt(Ve)]<<10|l[te.charCodeAt(Ve+1)]<<4|l[te.charCodeAt(Ve+2)]>>2,Qe[st++]=Se>>8&255,Qe[st++]=Se&255),Qe}function z(te){return F[te>>18&63]+F[te>>12&63]+F[te>>6&63]+F[te&63]}function Xe(te,Se,$e){for(var Je,Ge=[],Qe=Se;Qe<$e;Qe+=3)Je=(te[Qe]<<16&16711680)+(te[Qe+1]<<8&65280)+(te[Qe+2]&255),Ge.push(z(Je));return Ge.join("")}function B(te){for(var Se,$e=te.length,Je=$e%3,Ge=[],Qe=16383,st=0,_t=$e-Je;st<_t;st+=Qe)Ge.push(Xe(te,st,st+Qe>_t?_t:st+Qe));return Je===1?(Se=te[$e-1],Ge.push(F[Se>>2]+F[Se<<4&63]+"==")):Je===2&&(Se=(te[$e-2]<<8)+te[$e-1],Ge.push(F[Se>>10]+F[Se>>4&63]+F[Se<<2&63]+"=")),Ge.join("")}},19208:function(on,Et,F){"use strict";var l;var ue=F(86251),p=F(67467),Le=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Et.lW=y,l=st,Et.h2=50;var ne=2147483647;l=ne,y.TYPED_ARRAY_SUPPORT=L(),!y.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function L(){try{var i=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(i,t),i.foo()===42}catch(n){return!1}}Object.defineProperty(y.prototype,"parent",{enumerable:!0,get:function(){if(y.isBuffer(this))return this.buffer}}),Object.defineProperty(y.prototype,"offset",{enumerable:!0,get:function(){if(y.isBuffer(this))return this.byteOffset}});function pe(i){if(i>ne)throw new RangeError('The value "'+i+'" is invalid for option "size"');var t=new Uint8Array(i);return Object.setPrototypeOf(t,y.prototype),t}function y(i,t,n){if(typeof i=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return B(i)}return Ye(i,t,n)}y.poolSize=8192;function Ye(i,t,n){if(typeof i=="string")return te(i,t);if(ArrayBuffer.isView(i))return $e(i);if(i==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof i);if(St(i,ArrayBuffer)||i&&St(i.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(St(i,SharedArrayBuffer)||i&&St(i.buffer,SharedArrayBuffer)))return Je(i,t,n);if(typeof i=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var u=i.valueOf&&i.valueOf();if(u!=null&&u!==i)return y.from(u,t,n);var v=Ge(i);if(v)return v;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof i[Symbol.toPrimitive]=="function")return y.from(i[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof i)}y.from=function(i,t,n){return Ye(i,t,n)},Object.setPrototypeOf(y.prototype,Uint8Array.prototype),Object.setPrototypeOf(y,Uint8Array);function z(i){if(typeof i!="number")throw new TypeError('"size" argument must be of type number');if(i<0)throw new RangeError('The value "'+i+'" is invalid for option "size"')}function Xe(i,t,n){return z(i),i<=0?pe(i):t!==void 0?typeof n=="string"?pe(i).fill(t,n):pe(i).fill(t):pe(i)}y.alloc=function(i,t,n){return Xe(i,t,n)};function B(i){return z(i),pe(i<0?0:Qe(i)|0)}y.allocUnsafe=function(i){return B(i)},y.allocUnsafeSlow=function(i){return B(i)};function te(i,t){if((typeof t!="string"||t==="")&&(t="utf8"),!y.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var n=_t(i,t)|0,u=pe(n),v=u.write(i,t);return v!==n&&(u=u.slice(0,v)),u}function Se(i){for(var t=i.length<0?0:Qe(i.length)|0,n=pe(t),u=0;u<t;u+=1)n[u]=i[u]&255;return n}function $e(i){if(St(i,Uint8Array)){var t=new Uint8Array(i);return Je(t.buffer,t.byteOffset,t.byteLength)}return Se(i)}function Je(i,t,n){if(t<0||i.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(i.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');var u;return t===void 0&&n===void 0?u=new Uint8Array(i):n===void 0?u=new Uint8Array(i,t):u=new Uint8Array(i,t,n),Object.setPrototypeOf(u,y.prototype),u}function Ge(i){if(y.isBuffer(i)){var t=Qe(i.length)|0,n=pe(t);return n.length===0||i.copy(n,0,0,t),n}if(i.length!==void 0)return typeof i.length!="number"||Rt(i.length)?pe(0):Se(i);if(i.type==="Buffer"&&Array.isArray(i.data))return Se(i.data)}function Qe(i){if(i>=ne)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ne.toString(16)+" bytes");return i|0}function st(i){return+i!=i&&(i=0),y.alloc(+i)}y.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==y.prototype},y.compare=function(t,n){if(St(t,Uint8Array)&&(t=y.from(t,t.offset,t.byteLength)),St(n,Uint8Array)&&(n=y.from(n,n.offset,n.byteLength)),!y.isBuffer(t)||!y.isBuffer(n))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===n)return 0;for(var u=t.length,v=n.length,C=0,k=Math.min(u,v);C<k;++C)if(t[C]!==n[C]){u=t[C],v=n[C];break}return u<v?-1:v<u?1:0},y.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},y.concat=function(t,n){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return y.alloc(0);var u;if(n===void 0)for(n=0,u=0;u<t.length;++u)n+=t[u].length;var v=y.allocUnsafe(n),C=0;for(u=0;u<t.length;++u){var k=t[u];if(St(k,Uint8Array))C+k.length>v.length?y.from(k).copy(v,C):Uint8Array.prototype.set.call(v,k,C);else if(y.isBuffer(k))k.copy(v,C);else throw new TypeError('"list" argument must be an Array of Buffers');C+=k.length}return v};function _t(i,t){if(y.isBuffer(i))return i.length;if(ArrayBuffer.isView(i)||St(i,ArrayBuffer))return i.byteLength;if(typeof i!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof i);var n=i.length,u=arguments.length>2&&arguments[2]===!0;if(!u&&n===0)return 0;for(var v=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return kt(i).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n*2;case"hex":return n>>>1;case"base64":return Lt(i).length;default:if(v)return u?-1:kt(i).length;t=(""+t).toLowerCase(),v=!0}}y.byteLength=_t;function Ve(i,t,n){var u=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,t>>>=0,n<=t))return"";for(i||(i="utf8");;)switch(i){case"hex":return g(this,t,n);case"utf8":case"utf-8":return Zt(this,t,n);case"ascii":return Ft(this,t,n);case"latin1":case"binary":return yt(this,t,n);case"base64":return Z(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,n);default:if(u)throw new TypeError("Unknown encoding: "+i);i=(i+"").toLowerCase(),u=!0}}y.prototype._isBuffer=!0;function fe(i,t,n){var u=i[t];i[t]=i[n],i[n]=u}y.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var n=0;n<t;n+=2)fe(this,n,n+1);return this},y.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var n=0;n<t;n+=4)fe(this,n,n+3),fe(this,n+1,n+2);return this},y.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var n=0;n<t;n+=8)fe(this,n,n+7),fe(this,n+1,n+6),fe(this,n+2,n+5),fe(this,n+3,n+4);return this},y.prototype.toString=function(){var t=this.length;return t===0?"":arguments.length===0?Zt(this,0,t):Ve.apply(this,arguments)},y.prototype.toLocaleString=y.prototype.toString,y.prototype.equals=function(t){if(!y.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:y.compare(this,t)===0},y.prototype.inspect=function(){var t="",n=Et.h2;return t=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(t+=" ... "),"<Buffer "+t+">"},Le&&(y.prototype[Le]=y.prototype.inspect),y.prototype.compare=function(t,n,u,v,C){if(St(t,Uint8Array)&&(t=y.from(t,t.offset,t.byteLength)),!y.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(n===void 0&&(n=0),u===void 0&&(u=t?t.length:0),v===void 0&&(v=0),C===void 0&&(C=this.length),n<0||u>t.length||v<0||C>this.length)throw new RangeError("out of range index");if(v>=C&&n>=u)return 0;if(v>=C)return-1;if(n>=u)return 1;if(n>>>=0,u>>>=0,v>>>=0,C>>>=0,this===t)return 0;for(var k=C-v,ge=u-n,Ae=Math.min(k,ge),je=this.slice(v,C),pt=t.slice(n,u),Ce=0;Ce<Ae;++Ce)if(je[Ce]!==pt[Ce]){k=je[Ce],ge=pt[Ce];break}return k<ge?-1:ge<k?1:0};function $t(i,t,n,u,v){if(i.length===0)return-1;if(typeof n=="string"?(u=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,Rt(n)&&(n=v?0:i.length-1),n<0&&(n=i.length+n),n>=i.length){if(v)return-1;n=i.length-1}else if(n<0)if(v)n=0;else return-1;if(typeof t=="string"&&(t=y.from(t,u)),y.isBuffer(t))return t.length===0?-1:Pt(i,t,n,u,v);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?v?Uint8Array.prototype.indexOf.call(i,t,n):Uint8Array.prototype.lastIndexOf.call(i,t,n):Pt(i,[t],n,u,v);throw new TypeError("val must be string, number or Buffer")}function Pt(i,t,n,u,v){var C=1,k=i.length,ge=t.length;if(u!==void 0&&(u=String(u).toLowerCase(),u==="ucs2"||u==="ucs-2"||u==="utf16le"||u==="utf-16le")){if(i.length<2||t.length<2)return-1;C=2,k/=2,ge/=2,n/=2}function Ae(en,tn){return C===1?en[tn]:en.readUInt16BE(tn*C)}var je;if(v){var pt=-1;for(je=n;je<k;je++)if(Ae(i,je)===Ae(t,pt===-1?0:je-pt)){if(pt===-1&&(pt=je),je-pt+1===ge)return pt*C}else pt!==-1&&(je-=je-pt),pt=-1}else for(n+ge>k&&(n=k-ge),je=n;je>=0;je--){for(var Ce=!0,ft=0;ft<ge;ft++)if(Ae(i,je+ft)!==Ae(t,ft)){Ce=!1;break}if(Ce)return je}return-1}y.prototype.includes=function(t,n,u){return this.indexOf(t,n,u)!==-1},y.prototype.indexOf=function(t,n,u){return $t(this,t,n,u,!0)},y.prototype.lastIndexOf=function(t,n,u){return $t(this,t,n,u,!1)};function ye(i,t,n,u){n=Number(n)||0;var v=i.length-n;u?(u=Number(u),u>v&&(u=v)):u=v;var C=t.length;u>C/2&&(u=C/2);for(var k=0;k<u;++k){var ge=parseInt(t.substr(k*2,2),16);if(Rt(ge))return k;i[n+k]=ge}return k}function de(i,t,n,u){return Mt(kt(t,i.length-n),i,n,u)}function ae(i,t,n,u){return Mt(Dt(t),i,n,u)}function x(i,t,n,u){return Mt(Lt(t),i,n,u)}function nt(i,t,n,u){return Mt(dt(t,i.length-n),i,n,u)}y.prototype.write=function(t,n,u,v){if(n===void 0)v="utf8",u=this.length,n=0;else if(u===void 0&&typeof n=="string")v=n,u=this.length,n=0;else if(isFinite(n))n=n>>>0,isFinite(u)?(u=u>>>0,v===void 0&&(v="utf8")):(v=u,u=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var C=this.length-n;if((u===void 0||u>C)&&(u=C),t.length>0&&(u<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");v||(v="utf8");for(var k=!1;;)switch(v){case"hex":return ye(this,t,n,u);case"utf8":case"utf-8":return de(this,t,n,u);case"ascii":case"latin1":case"binary":return ae(this,t,n,u);case"base64":return x(this,t,n,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return nt(this,t,n,u);default:if(k)throw new TypeError("Unknown encoding: "+v);v=(""+v).toLowerCase(),k=!0}},y.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Z(i,t,n){return t===0&&n===i.length?ue.fromByteArray(i):ue.fromByteArray(i.slice(t,n))}function Zt(i,t,n){n=Math.min(i.length,n);for(var u=[],v=t;v<n;){var C=i[v],k=null,ge=C>239?4:C>223?3:C>191?2:1;if(v+ge<=n){var Ae,je,pt,Ce;switch(ge){case 1:C<128&&(k=C);break;case 2:Ae=i[v+1],(Ae&192)===128&&(Ce=(C&31)<<6|Ae&63,Ce>127&&(k=Ce));break;case 3:Ae=i[v+1],je=i[v+2],(Ae&192)===128&&(je&192)===128&&(Ce=(C&15)<<12|(Ae&63)<<6|je&63,Ce>2047&&(Ce<55296||Ce>57343)&&(k=Ce));break;case 4:Ae=i[v+1],je=i[v+2],pt=i[v+3],(Ae&192)===128&&(je&192)===128&&(pt&192)===128&&(Ce=(C&15)<<18|(Ae&63)<<12|(je&63)<<6|pt&63,Ce>65535&&Ce<1114112&&(k=Ce))}}k===null?(k=65533,ge=1):k>65535&&(k-=65536,u.push(k>>>10&1023|55296),k=56320|k&1023),u.push(k),v+=ge}return at(u)}var Ct=4096;function at(i){var t=i.length;if(t<=Ct)return String.fromCharCode.apply(String,i);for(var n="",u=0;u<t;)n+=String.fromCharCode.apply(String,i.slice(u,u+=Ct));return n}function Ft(i,t,n){var u="";n=Math.min(i.length,n);for(var v=t;v<n;++v)u+=String.fromCharCode(i[v]&127);return u}function yt(i,t,n){var u="";n=Math.min(i.length,n);for(var v=t;v<n;++v)u+=String.fromCharCode(i[v]);return u}function g(i,t,n){var u=i.length;(!t||t<0)&&(t=0),(!n||n<0||n>u)&&(n=u);for(var v="",C=t;C<n;++C)v+=jt[i[C]];return v}function I(i,t,n){for(var u=i.slice(t,n),v="",C=0;C<u.length-1;C+=2)v+=String.fromCharCode(u[C]+u[C+1]*256);return v}y.prototype.slice=function(t,n){var u=this.length;t=~~t,n=n===void 0?u:~~n,t<0?(t+=u,t<0&&(t=0)):t>u&&(t=u),n<0?(n+=u,n<0&&(n=0)):n>u&&(n=u),n<t&&(n=t);var v=this.subarray(t,n);return Object.setPrototypeOf(v,y.prototype),v};function Y(i,t,n){if(i%1!==0||i<0)throw new RangeError("offset is not uint");if(i+t>n)throw new RangeError("Trying to access beyond buffer length")}y.prototype.readUintLE=y.prototype.readUIntLE=function(t,n,u){t=t>>>0,n=n>>>0,u||Y(t,n,this.length);for(var v=this[t],C=1,k=0;++k<n&&(C*=256);)v+=this[t+k]*C;return v},y.prototype.readUintBE=y.prototype.readUIntBE=function(t,n,u){t=t>>>0,n=n>>>0,u||Y(t,n,this.length);for(var v=this[t+--n],C=1;n>0&&(C*=256);)v+=this[t+--n]*C;return v},y.prototype.readUint8=y.prototype.readUInt8=function(t,n){return t=t>>>0,n||Y(t,1,this.length),this[t]},y.prototype.readUint16LE=y.prototype.readUInt16LE=function(t,n){return t=t>>>0,n||Y(t,2,this.length),this[t]|this[t+1]<<8},y.prototype.readUint16BE=y.prototype.readUInt16BE=function(t,n){return t=t>>>0,n||Y(t,2,this.length),this[t]<<8|this[t+1]},y.prototype.readUint32LE=y.prototype.readUInt32LE=function(t,n){return t=t>>>0,n||Y(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216},y.prototype.readUint32BE=y.prototype.readUInt32BE=function(t,n){return t=t>>>0,n||Y(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])},y.prototype.readIntLE=function(t,n,u){t=t>>>0,n=n>>>0,u||Y(t,n,this.length);for(var v=this[t],C=1,k=0;++k<n&&(C*=256);)v+=this[t+k]*C;return C*=128,v>=C&&(v-=Math.pow(2,8*n)),v},y.prototype.readIntBE=function(t,n,u){t=t>>>0,n=n>>>0,u||Y(t,n,this.length);for(var v=n,C=1,k=this[t+--v];v>0&&(C*=256);)k+=this[t+--v]*C;return C*=128,k>=C&&(k-=Math.pow(2,8*n)),k},y.prototype.readInt8=function(t,n){return t=t>>>0,n||Y(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]},y.prototype.readInt16LE=function(t,n){t=t>>>0,n||Y(t,2,this.length);var u=this[t]|this[t+1]<<8;return u&32768?u|4294901760:u},y.prototype.readInt16BE=function(t,n){t=t>>>0,n||Y(t,2,this.length);var u=this[t+1]|this[t]<<8;return u&32768?u|4294901760:u},y.prototype.readInt32LE=function(t,n){return t=t>>>0,n||Y(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},y.prototype.readInt32BE=function(t,n){return t=t>>>0,n||Y(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},y.prototype.readFloatLE=function(t,n){return t=t>>>0,n||Y(t,4,this.length),p.read(this,t,!0,23,4)},y.prototype.readFloatBE=function(t,n){return t=t>>>0,n||Y(t,4,this.length),p.read(this,t,!1,23,4)},y.prototype.readDoubleLE=function(t,n){return t=t>>>0,n||Y(t,8,this.length),p.read(this,t,!0,52,8)},y.prototype.readDoubleBE=function(t,n){return t=t>>>0,n||Y(t,8,this.length),p.read(this,t,!1,52,8)};function $(i,t,n,u,v,C){if(!y.isBuffer(i))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>v||t<C)throw new RangeError('"value" argument is out of bounds');if(n+u>i.length)throw new RangeError("Index out of range")}y.prototype.writeUintLE=y.prototype.writeUIntLE=function(t,n,u,v){if(t=+t,n=n>>>0,u=u>>>0,!v){var C=Math.pow(2,8*u)-1;$(this,t,n,u,C,0)}var k=1,ge=0;for(this[n]=t&255;++ge<u&&(k*=256);)this[n+ge]=t/k&255;return n+u},y.prototype.writeUintBE=y.prototype.writeUIntBE=function(t,n,u,v){if(t=+t,n=n>>>0,u=u>>>0,!v){var C=Math.pow(2,8*u)-1;$(this,t,n,u,C,0)}var k=u-1,ge=1;for(this[n+k]=t&255;--k>=0&&(ge*=256);)this[n+k]=t/ge&255;return n+u},y.prototype.writeUint8=y.prototype.writeUInt8=function(t,n,u){return t=+t,n=n>>>0,u||$(this,t,n,1,255,0),this[n]=t&255,n+1},y.prototype.writeUint16LE=y.prototype.writeUInt16LE=function(t,n,u){return t=+t,n=n>>>0,u||$(this,t,n,2,65535,0),this[n]=t&255,this[n+1]=t>>>8,n+2},y.prototype.writeUint16BE=y.prototype.writeUInt16BE=function(t,n,u){return t=+t,n=n>>>0,u||$(this,t,n,2,65535,0),this[n]=t>>>8,this[n+1]=t&255,n+2},y.prototype.writeUint32LE=y.prototype.writeUInt32LE=function(t,n,u){return t=+t,n=n>>>0,u||$(this,t,n,4,4294967295,0),this[n+3]=t>>>24,this[n+2]=t>>>16,this[n+1]=t>>>8,this[n]=t&255,n+4},y.prototype.writeUint32BE=y.prototype.writeUInt32BE=function(t,n,u){return t=+t,n=n>>>0,u||$(this,t,n,4,4294967295,0),this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=t&255,n+4},y.prototype.writeIntLE=function(t,n,u,v){if(t=+t,n=n>>>0,!v){var C=Math.pow(2,8*u-1);$(this,t,n,u,C-1,-C)}var k=0,ge=1,Ae=0;for(this[n]=t&255;++k<u&&(ge*=256);)t<0&&Ae===0&&this[n+k-1]!==0&&(Ae=1),this[n+k]=(t/ge>>0)-Ae&255;return n+u},y.prototype.writeIntBE=function(t,n,u,v){if(t=+t,n=n>>>0,!v){var C=Math.pow(2,8*u-1);$(this,t,n,u,C-1,-C)}var k=u-1,ge=1,Ae=0;for(this[n+k]=t&255;--k>=0&&(ge*=256);)t<0&&Ae===0&&this[n+k+1]!==0&&(Ae=1),this[n+k]=(t/ge>>0)-Ae&255;return n+u},y.prototype.writeInt8=function(t,n,u){return t=+t,n=n>>>0,u||$(this,t,n,1,127,-128),t<0&&(t=255+t+1),this[n]=t&255,n+1},y.prototype.writeInt16LE=function(t,n,u){return t=+t,n=n>>>0,u||$(this,t,n,2,32767,-32768),this[n]=t&255,this[n+1]=t>>>8,n+2},y.prototype.writeInt16BE=function(t,n,u){return t=+t,n=n>>>0,u||$(this,t,n,2,32767,-32768),this[n]=t>>>8,this[n+1]=t&255,n+2},y.prototype.writeInt32LE=function(t,n,u){return t=+t,n=n>>>0,u||$(this,t,n,4,2147483647,-2147483648),this[n]=t&255,this[n+1]=t>>>8,this[n+2]=t>>>16,this[n+3]=t>>>24,n+4},y.prototype.writeInt32BE=function(t,n,u){return t=+t,n=n>>>0,u||$(this,t,n,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=t&255,n+4};function le(i,t,n,u,v,C){if(n+u>i.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function qe(i,t,n,u,v){return t=+t,n=n>>>0,v||le(i,t,n,4,34028234663852886e22,-34028234663852886e22),p.write(i,t,n,u,23,4),n+4}y.prototype.writeFloatLE=function(t,n,u){return qe(this,t,n,!0,u)},y.prototype.writeFloatBE=function(t,n,u){return qe(this,t,n,!1,u)};function ot(i,t,n,u,v){return t=+t,n=n>>>0,v||le(i,t,n,8,17976931348623157e292,-17976931348623157e292),p.write(i,t,n,u,52,8),n+8}y.prototype.writeDoubleLE=function(t,n,u){return ot(this,t,n,!0,u)},y.prototype.writeDoubleBE=function(t,n,u){return ot(this,t,n,!1,u)},y.prototype.copy=function(t,n,u,v){if(!y.isBuffer(t))throw new TypeError("argument should be a Buffer");if(u||(u=0),!v&&v!==0&&(v=this.length),n>=t.length&&(n=t.length),n||(n=0),v>0&&v<u&&(v=u),v===u||t.length===0||this.length===0)return 0;if(n<0)throw new RangeError("targetStart out of bounds");if(u<0||u>=this.length)throw new RangeError("Index out of range");if(v<0)throw new RangeError("sourceEnd out of bounds");v>this.length&&(v=this.length),t.length-n<v-u&&(v=t.length-n+u);var C=v-u;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(n,u,v):Uint8Array.prototype.set.call(t,this.subarray(u,v),n),C},y.prototype.fill=function(t,n,u,v){if(typeof t=="string"){if(typeof n=="string"?(v=n,n=0,u=this.length):typeof u=="string"&&(v=u,u=this.length),v!==void 0&&typeof v!="string")throw new TypeError("encoding must be a string");if(typeof v=="string"&&!y.isEncoding(v))throw new TypeError("Unknown encoding: "+v);if(t.length===1){var C=t.charCodeAt(0);(v==="utf8"&&C<128||v==="latin1")&&(t=C)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(n<0||this.length<n||this.length<u)throw new RangeError("Out of range index");if(u<=n)return this;n=n>>>0,u=u===void 0?this.length:u>>>0,t||(t=0);var k;if(typeof t=="number")for(k=n;k<u;++k)this[k]=t;else{var ge=y.isBuffer(t)?t:y.from(t,v),Ae=ge.length;if(Ae===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(k=0;k<u-n;++k)this[k+n]=ge[k%Ae]}return this};var bt=/[^+/0-9A-Za-z-_]/g;function xt(i){if(i=i.split("=")[0],i=i.trim().replace(bt,""),i.length<2)return"";for(;i.length%4!==0;)i=i+"=";return i}function kt(i,t){t=t||1/0;for(var n,u=i.length,v=null,C=[],k=0;k<u;++k){if(n=i.charCodeAt(k),n>55295&&n<57344){if(!v){if(n>56319){(t-=3)>-1&&C.push(239,191,189);continue}else if(k+1===u){(t-=3)>-1&&C.push(239,191,189);continue}v=n;continue}if(n<56320){(t-=3)>-1&&C.push(239,191,189),v=n;continue}n=(v-55296<<10|n-56320)+65536}else v&&(t-=3)>-1&&C.push(239,191,189);if(v=null,n<128){if((t-=1)<0)break;C.push(n)}else if(n<2048){if((t-=2)<0)break;C.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;C.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;C.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw new Error("Invalid code point")}return C}function Dt(i){for(var t=[],n=0;n<i.length;++n)t.push(i.charCodeAt(n)&255);return t}function dt(i,t){for(var n,u,v,C=[],k=0;k<i.length&&!((t-=2)<0);++k)n=i.charCodeAt(k),u=n>>8,v=n%256,C.push(v),C.push(u);return C}function Lt(i){return ue.toByteArray(xt(i))}function Mt(i,t,n,u){for(var v=0;v<u&&!(v+n>=t.length||v>=i.length);++v)t[v+n]=i[v];return v}function St(i,t){return i instanceof t||i!=null&&i.constructor!=null&&i.constructor.name!=null&&i.constructor.name===t.name}function Rt(i){return i!==i}var jt=function(){for(var i="0123456789abcdef",t=new Array(256),n=0;n<16;++n)for(var u=n*16,v=0;v<16;++v)t[u+v]=i[n]+i[v];return t}()},67467:function(on,Et){Et.read=function(F,l,ue,p,Le){var ne,L,pe=Le*8-p-1,y=(1<<pe)-1,Ye=y>>1,z=-7,Xe=ue?Le-1:0,B=ue?-1:1,te=F[l+Xe];for(Xe+=B,ne=te&(1<<-z)-1,te>>=-z,z+=pe;z>0;ne=ne*256+F[l+Xe],Xe+=B,z-=8);for(L=ne&(1<<-z)-1,ne>>=-z,z+=p;z>0;L=L*256+F[l+Xe],Xe+=B,z-=8);if(ne===0)ne=1-Ye;else{if(ne===y)return L?NaN:(te?-1:1)*(1/0);L=L+Math.pow(2,p),ne=ne-Ye}return(te?-1:1)*L*Math.pow(2,ne-p)},Et.write=function(F,l,ue,p,Le,ne){var L,pe,y,Ye=ne*8-Le-1,z=(1<<Ye)-1,Xe=z>>1,B=Le===23?Math.pow(2,-24)-Math.pow(2,-77):0,te=p?0:ne-1,Se=p?1:-1,$e=l<0||l===0&&1/l<0?1:0;for(l=Math.abs(l),isNaN(l)||l===1/0?(pe=isNaN(l)?1:0,L=z):(L=Math.floor(Math.log(l)/Math.LN2),l*(y=Math.pow(2,-L))<1&&(L--,y*=2),L+Xe>=1?l+=B/y:l+=B*Math.pow(2,1-Xe),l*y>=2&&(L++,y/=2),L+Xe>=z?(pe=0,L=z):L+Xe>=1?(pe=(l*y-1)*Math.pow(2,Le),L=L+Xe):(pe=l*Math.pow(2,Xe-1)*Math.pow(2,Le),L=0));Le>=8;F[ue+te]=pe&255,te+=Se,pe/=256,Le-=8);for(L=L<<Le|pe,Ye+=Le;Ye>0;F[ue+te]=L&255,te+=Se,L/=256,Ye-=8);F[ue+te-Se]|=$e*128}},7861:function(on,Et,F){var l=F(38710),ue=function(ne){var L=/[height|width]$/;return L.test(ne)},p=function(ne){var L="",pe=Object.keys(ne);return pe.forEach(function(y,Ye){var z=ne[y];y=l(y),ue(y)&&typeof z=="number"&&(z=z+"px"),z===!0?L+=y:z===!1?L+="not "+y:L+="("+y+": "+z+")",Ye<pe.length-1&&(L+=" and ")}),L},Le=function(ne){var L="";return typeof ne=="string"?ne:ne instanceof Array?(ne.forEach(function(pe,y){L+=p(pe),y<ne.length-1&&(L+=", ")}),L):p(ne)};on.exports=Le},38710:function(on){var Et=function(F){return F.replace(/[A-Z]/g,function(l){return"-"+l.toLowerCase()}).toLowerCase()};on.exports=Et}}]);
|