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.
NewEduCoderBuild/p__Graduations__Lists__Task...

2 lines
44 KiB

(self.webpackChunk=self.webpackChunk||[]).push([[9416],{57895:function(Oe,K,s){"use strict";s.r(K),s.d(K,{default:function(){return n}});var a=s(59301),O=s(25690),N=s(458),B=s(6767),D=s(14566),d=s(25399),I=s(77019),o=s(51257),H=s(69922),_=s(346),P=s(38986),G=s(62957),c={flex_box_center:"flex_box_center___dejrx",flex_space_between:"flex_space_between___WBGxf",flex_box_vertical_center:"flex_box_vertical_center___OMTvG",flex_box_center_end:"flex_box_center_end___FHZRS",flex_box_column:"flex_box_column___cDBl4",File:"File___Vzzv4",deletfileIcon:"deletfileIcon___snNZ9",wrap:"wrap___eGzSn",row:"row___qfnoA",img:"img___Ftdlp"},v=s(9148),C=s(67711),L={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M574 665.4a8.03 8.03 0 00-11.3 0L446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3l-39.8-39.8a8.03 8.03 0 00-11.3 0L191.4 526.5c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3L574 665.4zm258.6-474c-84.6-84.6-221.5-84.6-306 0L410.3 307.6a8.03 8.03 0 000 11.3l39.7 39.7c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204L665.3 562.6a8.03 8.03 0 000 11.3l39.8 39.8c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c84.5-84.6 84.5-221.5 0-306.1zM610.1 372.3a8.03 8.03 0 00-11.3 0L372.3 598.7a8.03 8.03 0 000 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l226.4-226.4c3.1-3.1 3.1-8.2 0-11.3l-39.5-39.6z"}}]},name:"link",theme:"outlined"},$=L,U=s(7657),j=function(u,l){return a.createElement(U.Z,(0,C.Z)({},u,{ref:l,icon:$}))},ae=a.forwardRef(j),V=ae,oe=Object.defineProperty,De=Object.defineProperties,M=Object.getOwnPropertyDescriptors,k=Object.getOwnPropertySymbols,Z=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,fe=(i,u,l)=>u in i?oe(i,u,{enumerable:!0,configurable:!0,writable:!0,value:l}):i[u]=l,me=(i,u)=>{for(var l in u||(u={}))Z.call(u,l)&&fe(i,l,u[l]);if(k)for(var l of k(u))xe.call(u,l)&&fe(i,l,u[l]);return i},we=(i,u)=>De(i,M(u)),se=(i,u,l)=>new Promise((f,p)=>{var y=E=>{try{m(l.next(E))}catch(T){p(T)}},F=E=>{try{m(l.throw(E))}catch(T){p(T)}},m=E=>E.done?f(E.value):Promise.resolve(E.value).then(y,F);m((l=l.apply(i,u)).next())}),ce=({visible:i,data:u,onClose:l=()=>{},sendUrl:f})=>{var p,y,F;const[m,E]=(0,a.useState)([]),T=m.map(x=>{var g;return x.response?we(me({},x),{linkProps:{download:!0},url:(g=x==null?void 0:x.response)==null?void 0:g.url}):x});(0,a.useEffect)(()=>{var x;i&&E(((x=u==null?void 0:u.attachments)==null?void 0:x.map(g=>({name:g.title,status:"done",linkProps:{download:!0},response:{id:g.id,url:g.url}})))||[])},[i]);const J={multiple:!0,withCredentials:!0,fileList:T,beforeUpload:x=>x.size/1024/1024>150?(B.ZP.error(`\u300A${x.name}\u300B\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(150M)`),D.default.LIST_IGNORE):!0,itemRender:(x,g)=>{var Q;return a.createElement(I.Z,{wrap:!1,align:"middle",justify:"space-between",className:`ant-upload-list-item ant-upload-list-item-done ${c.File}`},a.createElement("a",{download:"download",onClick:he=>{var te;console.log(g,"file"),he.preventDefault(),(0,o.Nd)("",`${_.Z.API_SERVER}${(te=g==null?void 0:g.url)==null?void 0:te.replace("disposition=inline","")}`)},title:g==null?void 0:g.name,href:g.url},a.createElement(V,{className:"mr10 c-grey-666"}),(0,o.tP)(g==null?void 0:g.name,35)),((Q=g==null?void 0:g.response)==null?void 0:Q.id)&&a.createElement("i",{className:`iconfont icon-shanchu14 font14 ${c.deletfileIcon}`,onClick:()=>se(void 0,null,function*(){(yield _e(T==null?void 0:T.filter(te=>te.response.id!=g.response.id))).status==0&&(B.ZP.success("\u5220\u9664\u6210\u529F"),E(T==null?void 0:T.filter(te=>{var Ae,Ce;return((Ae=te==null?void 0:te.response)==null?void 0:Ae.id)!=((Ce=g==null?void 0:g.response)==null?void 0:Ce.id)})))})}))},action:`${_.Z.API_SERVER}/api/attachments.json`,onChange:x=>{const g=(0,o.uD)(x);E(g),g.every(Q=>Q.status!=="uploading")&&_e(g)}},_e=x=>se(void 0,null,function*(){const g=yield(0,P.ZP)(f,{method:"post",body:{graduation_task_id:u.id,attachment_ids:x.filter(Q=>Q.status==="done").map(Q=>{var he;return(he=Q==null?void 0:Q.response)==null?void 0:he.id})}});return g.status,g});return a.createElement(G.default,{centered:!0,destroyOnClose:!0,onCancel:l,open:i,footer:null,title:"\u4EFB\u52A1\u4E66\u8BE6\u60C5",width:620,className:"pb20",afterClose:()=>{E([])}},a.createElement("div",{className:c.wrap},a.createElement("div",{className:c.row},a.createElement("div",null,"\u8BFE\u9898\u540D\u79F0"),a.createElement("div",{title:u.name},u.name)),a.createElement("div",{className:c.row},a.createElement("div",null,"\u6307\u5BFC\u8001\u5E08"),a.createElement("div",null,(p=u==null?void 0:u.teachers)!=null&&p.length?(F=(y=u==null?void 0:u.teachers)==null?void 0:y.map(x=>x.real_name))==null?void 0:F.join("\u3001"):"--")),a.createElement("div",{className:c.row},a.createElement("div",null,"\u8BFE\u9898\u6765\u6E90"),a.createElement("div",null,u.source||"--")),a.createElement("div",{className:c.row},a.createElement("div",null,"\u9009\u9898\u5B66\u751F"),a.createElement("div",null,u.real_name||"--")),u.status===1&&a.createElement("div",{className:`${c.img} iconfont icon-yixiada`}),a.createElement(D.default,me({},J),a.createElement(I.Z,{align:"middle",className:"mt10"},a.createElement(v.op,{style:{borderRadius:2}},a.createElement("i",{className:"icon-shangchuan3 mr5"}),"\u4E0A\u4F20\u6587\u6863"),a.createElement("div",{className:"ml10 font14",style:{color:"#5F6367"},onClick:x=>{x.stopPropagation()}},"\u4E0A\u4F20\u4EFB\u52A1\u4E66\uFF0C\u5355\u4E2A\u6587\u6863\u5927\u5C0F\u4E0D\u8D85\u8FC7150M"))),a.createElement("div",{style:{height:"20px"}})))},Se=Object.defineProperty,Fe=Object.getOwnPropertySymbols,Le=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable,R=(i,u,l)=>u in i?Se(i,u,{enumerable:!0,configurable:!0,writable:!0,value:l}):i[u]=l,z=(i,u)=>{for(var l in u||(u={}))Le.call(u,l)&&R(i,l,u[l]);if(Fe)for(var l of Fe(u))Ee.call(u,l)&&R(i,l,u[l]);return i},ge=(i,u,l)=>new Promise((f,p)=>{var y=E=>{try{m(l.next(E))}catch(T){p(T)}},F=E=>{try{m(l.throw(E))}catch(T){p(T)}},m=E=>E.done?f(E.value):Promise.resolve(E.value).then(y,F);m((l=l.apply(i,u)).next())});const Ue=({graduations:i,dispatch:u})=>{var l;const f=(0,O.useParams)(),[p,y]=(0,a.useState)([]),[F,m]=(0,a.useState)({}),[E,T]=(0,a.useState)(!1),[J,_e]=(0,a.useState)(1),x=(0,a.useRef)(null),g=(0,a.useRef)([]),Q=(l=location.pathname.split("/"))==null?void 0:l[3],{menus:he}=i,te=he.find(w=>w.clazz===Q)||{},Ae=`/api/graduations/${f.id}/graduation_stages/${te==null?void 0:te.id}/submit.json`,Ce={multiple:!0,withCredentials:!0,fileList:p,showUploadList:!1,beforeUpload:w=>w.size/1024/1024>150?(B.ZP.error(`\u300A${w.name}\u300B\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(150M)`),D.default.LIST_IGNORE):!0,action:`${_.Z.API_SERVER}/api/attachments.json`,onChange:w=>{u({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u4E0A\u4F20\u4E2D\uFF0C\u8BF7\u7A0D\u5019"}});const W=(0,o.uD)(w);y(W),W.every(re=>re.status!=="uploading")&&q(W)}},q=w=>ge(void 0,null,function*(){var W;(yield(0,P.ZP)(Ae,{method:"post",body:{graduation_task_id:x.current,attachment_ids:(W=w.filter(h=>h.status==="done").map(h=>{var b;return(b=h==null?void 0:h.response)==null?void 0:b.id}))==null?void 0:W.concat(g.current)}})).status===0&&(B.ZP.success("\u63D0\u4EA4\u6210\u529F"),_e(J+1)),y([]),x.current=null,g.current=[],u({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}})}),ze=[{id:"",name:"\u5168\u90E8"},{id:0,name:"\u672A\u4E0B\u8FBE"},{id:1,name:"\u5DF2\u4E0B\u8FBE"}],Me=[{title:"\u8BFE\u9898\u540D\u79F0",dataIndex:"name",ellipsis:!0,render:w=>a.createElement(d.Z,{placement:"topLeft",title:w},a.createElement("span",{className:"c-grey-333"},w||"--"))},{title:"\u6307\u5BFC\u8001\u5E08",dataIndex:"teachers",width:156,ellipsis:!0,render:w=>{var W;const re=w!=null&&w.length?(W=w==null?void 0:w.map(h=>h.real_name))==null?void 0:W.join("\u3001"):"";return a.createElement(d.Z,{placement:"topLeft",title:re},a.createElement("span",{className:"c-grey-333"},re||"--"))}},{title:"\u9009\u9898\u5B66\u751F",width:156,ellipsis:!0,dataIndex:"real_name",render:w=>a.createElement(d.Z,{placement:"topLeft",title:w},a.createElement("span",{className:"c-black"},w||"--"))},{title:"\u6587\u6863",dataIndex:"attachments",width:156,ellipsis:{showTitle:!1},render:(w,W)=>{var re,h;if(!(w!=null&&w.length))return"--";let b="";return w!=null&&w.length&&(b=(0,o.tP)((re=w==null?void 0:w[0])==null?void 0:re.title,6)),a.createElement(d.Z,{placement:"topLeft",title:(h=w==null?void 0:w[0])==null?void 0:h.title},a.createElement("span",{onClick:()=>{var ne,ie;(0,o.Nd)("",`${_.Z.API_SERVER}${(ie=(ne=w[0])==null?void 0:ne.url)==null?void 0:ie.replace("disposition=inline","")}`)},className:"current",style:{color:"#3061D0"}},b))}},{title:"\u72B6\u6001",dataIndex:"status",width:90,render:w=>a.createElement(a.Fragment,null,w===0&&a.createElement("span",{className:"c-black"},"\u672A\u4E0B\u8FBE"),w===1&&a.createElement("span",{className:"c-black"},"\u5DF2\u4E0B\u8FBE"))},{title:"\u64CD\u4F5C",dataIndex:"action",align:"right",width:100,render:(w,W)=>a.createElement(I.Z,{align:"middle",justify:"end"},a.createElement(D.default,z({},Ce),a.createElement("span",{onClick:()=>{var re;x.current=W.id,g.current=(re=W==null?void 0:W.attachments)==null?void 0:re.map(h=>h.id)},className:"current font14 c-light-primary"},"\u63D0\u4EA4")),a.createElement("span",{onClick:()=>{T(!0),m(z({},W))},className:"current font14 c-light-primary ml20"},"\u8BE6\u60C5"))}];return a.createElement(a.Fragment,null,a.createElement(H.Z,{tags:ze,tagsTitle:"\u4E0B\u8FBE\u72B6\u6001",tagsTitleWidth:56,placeholder:"\u8BF7\u8F93\u5165\u8BFE\u9898\u540D\u79F0\u8FDB\u884C\u641C\u7D22",columns:Me,updateKey:J,inputWidth:222}),a.createElement(ce,{visible:E,data:F,sendUrl:Ae,onClose:()=>{T(!1),m({}),_e(J+1)}}))};var Te=(0,O.connect)(({graduations:i})=>({graduations:i}))(Ue),Y={flex_box_center:"flex_box_center___YhVJ8",flex_space_between:"flex_space_between___ZwNFf",flex_box_vertical_center:"flex_box_vertical_center___zVi38",flex_box_center_end:"flex_box_center_end___XiBd9",flex_box_column:"flex_box_column___wlJ_z",wrap:"wrap___btDZi",card:"card___ynWkb",title:"title___ZK2i5",teacherWrap:"teacherWrap___mwbsp",titleCol:"titleCol___Yw1us",head:"head___Eh7hH",rowWrap:"rowWrap___iqlIh",row:"row___ysuMF",name:"name___Vp5LK",btns:"btns___TQ4qx"},Ne=s(62673),pe=s(28426),ve=s(49854),Pe=s(45677),A=s(86129),ye=s.n(A),X=s(89392),S=(i,u,l)=>new Promise((f,p)=>{var y=E=>{try{m(l.next(E))}catch(T){p(T)}},F=E=>{try{m(l.throw(E))}catch(T){p(T)}},m=E=>E.done?f(E.value):Promise.resolve(E.value).then(y,F);m((l=l.apply(i,u)).next())});const Be=({graduations:i,dispatch:u})=>{var l;const f=(0,O.useParams)(),[p,y]=(0,a.useState)(!0),[F,m]=(0,a.useState)([{}]),[E,T]=(0,a.useState)([{}]),[J,_e]=(0,a.useState)([]),[x,g]=(0,a.useState)([]),[Q,he]=(0,a.useState)(0),te=(0,a.useRef)(),{menus:Ae,details:Ce}=i,q=Ae.find(h=>h.clazz==="tasks")||{};(0,a.useEffect)(()=>{q!=null&&q.id&&ze()},[q==null?void 0:q.id]);const ze=()=>S(void 0,null,function*(){var h,b,ne,ie,ue,Re;y(!0);const le=yield(0,P.ZP)(`/api/graduations/${f.id}/graduation_stages/${q==null?void 0:q.id}.json`,{method:"get"});if(le.status===0){m(((h=le==null?void 0:le.data)==null?void 0:h[0])||{}),_e(((ne=(b=le==null?void 0:le.data)==null?void 0:b[0])==null?void 0:ne.attachments)||[]);let Ie=0;(0,X.isEmpty)((ie=le==null?void 0:le.data)==null?void 0:ie[0])?Ie=1:((Re=(ue=le==null?void 0:le.data)==null?void 0:ue[0])==null?void 0:Re.status)===0&&(Ie=2),he(Ie)}y(!1)}),Me=(h,b,ne)=>{let ie=[];ne==="all"&&h?ie=J.map(ue=>ue.id):ne!=="all"&&(h?ie=[...x,b]:ie=x.filter(ue=>ue!==b)),g(ie)},w=()=>{if(!x.length){B.ZP.warning("\u8BF7\u9009\u62E9\u6587\u4EF6");return}const h=J.filter(b=>x.includes(b.id));re((Ce==null?void 0:Ce.name)+"-\u4EFB\u52A1\u4E66",h)},W=h=>S(void 0,null,function*(){if(h.file_type==="txt"){const b=yield(0,P.ZP)(h.url,{method:"get",headers:{"Content-Type":"application/xml"}});te.current=b}T({type:h.file_type,content:_.Z.API_SERVER+h.url})}),re=(h,...b)=>S(void 0,[h,...b],function*(ne,ie=[]){const ue=ie==null?void 0:ie.filter(de=>de.url!="");if(ue.length==0){B.ZP.warning("\u6682\u65E0\u4E0B\u8F7D\u6587\u4EF6");return}const Re=G.default.info({width:500,icon:null,title:a.createElement("div",null,"\u6B63\u5728\u6279\u91CF\u5BFC\u51FA\u4EFB\u52A1\u6587\u4EF6,",a.createElement("span",{className:"c-red"},"\u8BF7\u52FF\u5173\u95ED\u6216\u64CD\u4F5C\u5F53\u524D\u6D4F\u89C8\u5668\u7A97\u53E3")),content:a.createElement("div",null,"\u5F53\u524D\u8FDB\u5EA6: ",a.createElement("span",{className:"c-blue"},0),"/",ue.length),maskClosable:!1,className:Y.modal,onOk:()=>{}}),le=new(ye()),Ie=[],Ge=(de,ke)=>S(void 0,null,function*(){try{const He=yield(yield fetch(_.Z.API_SERVER+de.url,{method:"get"})).blob(),Ve=(be,Ze=0)=>S(void 0,null,function*(){const We=be.split(".");We.pop();const $e=`${We.join("")}(${Ze}).${be.split(".").at(-1)}`;Ze==0&&Ie.includes(be)||Ie.includes($e)?Ve(be,Ze+1):(Ie.push(Ze==0?be:$e),le.file(Ze==0?be:$e,He))});yield Ve(de==null?void 0:de.title),Re.update({content:a.createElement("div",null,"\u5F53\u524D\u8FDB\u5EA6: ",a.createElement("span",{className:"c-blue"},ke),"/",ue.length)})}catch(je){B.ZP.error(`${de==null?void 0:de.title}\u4E0B\u8F7D\u5931\u8D25\uFF0C\u539F\u56E0\uFF1A${je}`)}});if(ue.length>0){let de=0;for(let ke of ue)yield Ge(ke,++de);le.generateAsync({type:"blob"}).then(ke=>{(0,o.FH)(ne,window.URL.createObjectURL(ke))})}Re.destroy()});return console.log(E,"previewData"),a.createElement("div",{className:Y.wrap},a.createElement(ve.Z,{title:"\u4EFB\u52A1\u4E66",status:q==null?void 0:q.status,startAt:q==null?void 0:q.start_at,endAt:q==null?void 0:q.end_at}),a.createElement(N.Z,{active:!0,loading:p},!!Q&&a.createElement(pe.Z,{customText:Q===1?"\u5F53\u524D\u9636\u6BB5\u6682\u65F6\u65E0\u6CD5\u5F00\u542F\uFF0C\u8BF7\u5148\u5B8C\u6210\u4E4B\u524D\u9636\u6BB5\u7684\u4EFB\u52A1":"\u5F53\u524D\u8001\u5E08\u8FD8\u672A\u4E0B\u8FBE\u4EFB\u52A1\u4E66\u54E6"}),!Q&&a.createElement("div",{className:Y.card},a.createElement(I.Z,{align:"middle"},a.createElement("span",{style:{color:"#5f6368"},className:"mr20 font14"},"\u8BFE\u9898\u540D\u79F0"),a.createElement(d.Z,{title:F==null?void 0:F.name},a.createElement("span",{style:{color:"#333",fontSize:16}},(0,o.Pq)(F==null?void 0:F.name,59)))),a.createElement("div",{className:Y.title},a.createElement("span",{style:{flexShrink:0,marginTop:4,color:"#5f6368"},className:"mr20"},"\u6307\u5BFC\u8001\u5E08"),a.createElement("div",{className:Y.teacherWrap},(l=F==null?void 0:F.teachers)==null?void 0:l.map((h,b)=>{var ne;return a.createElement("div",{key:b,className:Y.titleCol},a.createElement("img",{width:28,height:28,style:{borderRadius:"50%"},src:`${(ne=_.Z)==null?void 0:ne.IMG_SERVER}/images/${h==null?void 0:h.avatar_url}`}),a.createElement("span",{className:"c-grey-333 ml10 font16"},h.real_name))}))),a.createElement("div",{className:Y.head},a.createElement(Ne.default,{onChange:h=>Me(h.target.checked,null,"all"),checked:!!x.length&&x.length===J.length,indeterminate:!!x.length&&x.length!==J.length}),a.createElement("span",{className:"ml10"},"\u4EFB\u52A1\u4E66"),!!(x!=null&&x.length)&&a.createElement("span",{onClick:w,style:{marginLeft:"auto"},className:"c-light-primary current"},a.createElement("i",{className:"iconfont icon-xiazai4 mr5 font14"}),"\u6279\u91CF\u4E0B\u8F7D")),a.createElement("div",{className:Y.rowWrap},J==null?void 0:J.map(h=>a.createElement("div",{key:h.id,className:Y.row},a.createElement(Ne.default,{onChange:b=>Me(b.target.checked,h.id),checked:x.includes(h.id)}),a.createElement("span",{className:Y.name,title:h.title},(0,o.tP)(h.title,60)),a.createElement("span",{className:Y.btns},a.createElement(d.Z,{className:"mr20",title:"\u9884\u89C8"}," ",a.createElement("i",{onClick:()=>W(h),className:"iconfont icon-chakanshenqingjilu c-light-primary current font14"})),a.createElement(d.Z,{title:"\u4E0B\u8F7D"}," ",a.createElement("i",{onClick:()=>{var b;(0,o.Nd)("",`${_.Z.API_SERVER}${(b=h.url)==null?void 0:b.replace("disposition=inline","")}`)},className:"iconfont icon-xiazai4 c-light-primary current font14"})))))))),a.createElement(Pe.Z,{close:!0,data:E==null?void 0:E.content,type:E==null?void 0:E.type,hasMask:!0,monacoEditor:{value:te.current,language:"txt",onChange:()=>{},options:{readOnly:!0,fontSize:14,minimap:{enabled:!1}}},onClose:()=>{T({content:"",type:""})}}))};var r=(0,O.connect)(({graduations:i})=>({graduations:i}))(Be),e=s(48790);const t=({graduations:i,dispatch:u,loading:l})=>a.createElement(N.Z,{style:{margin:"20px 0 0 45px"},loading:l.effects["graduations/getGraduationsDetails"]},(0,e.tu)()?a.createElement(Te,null):a.createElement(r,null));var n=(0,O.connect)(({loading:i,graduations:u})=>({loading:i,graduations:u}))(t)},69922:function(Oe,K,s){"use strict";s.d(K,{Z:function(){return De}});var a=s(59301),O={flex_box_center:"flex_box_center___Q4rC9",flex_space_between:"flex_space_between___pzGZc",flex_box_vertical_center:"flex_box_vertical_center___DhNf8",flex_box_center_end:"flex_box_center_end___ALRjT",flex_box_column:"flex_box_column___p6z9Y",wrap:"wrap____H2XH"},N=s(25690),B=s(77019),D=s(54172),d=s(9148),I=s(49854),o=s(38986),H=s(89674),_=s(28426),P=s(51257),G=Object.defineProperty,c=Object.defineProperties,v=Object.getOwnPropertyDescriptors,C=Object.getOwnPropertySymbols,L=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable,U=(M,k,Z)=>k in M?G(M,k,{enumerable:!0,configurable:!0,writable:!0,value:Z}):M[k]=Z,j=(M,k)=>{for(var Z in k||(k={}))L.call(k,Z)&&U(M,Z,k[Z]);if(C)for(var Z of C(k))$.call(k,Z)&&U(M,Z,k[Z]);return M},ae=(M,k)=>c(M,v(k)),V=(M,k,Z)=>new Promise((xe,fe)=>{var me=ee=>{try{se(Z.next(ee))}catch(ce){fe(ce)}},we=ee=>{try{se(Z.throw(ee))}catch(ce){fe(ce)}},se=ee=>ee.done?xe(ee.value):Promise.resolve(ee.value).then(me,we);se((Z=Z.apply(M,k)).next())});const oe=({graduations:M,dispatch:k,tags:Z,tagsTitle:xe,tagsTitleWidth:fe,placeholder:me,columns:we,updateKey:se,inputWidth:ee=214})=>{var ce,Se,Fe;const Le=(0,N.useParams)(),[Ee]=(0,N.useSearchParams)(),[R,z]=(0,a.useState)(!1),[ge,Ue]=(0,a.useState)(0),[Te,Y]=(0,a.useState)([]),[Ne,pe]=(0,a.useState)(!1),{menus:ve}=M,Pe=(ce=location.pathname.split("/"))==null?void 0:ce[3],A=ve.find(l=>l.clazz===Pe)||{},ye=ve.find(l=>l.clazz===Pe)||1,X=Ee!=null&&Ee.get("state")?Number(Ee==null?void 0:Ee.get("state")):"",[S,Be]=(0,a.useState)({keyword:"",status:X,page:1,limit:20});(0,a.useEffect)(()=>{A!=null&&A.id&&r(S)},[A==null?void 0:A.id,se]);const r=l=>V(void 0,null,function*(){z(!0);const f=yield(0,o.ZP)(`/api/graduations/${Le.id}/graduation_stages/${A==null?void 0:A.id}.json`,{method:"get",params:l});f.status===0&&(Y((f==null?void 0:f.data)||[]),Ue(f==null?void 0:f.total_count)),z(!1)}),e=l=>{S.status=l,S.page=1,Be(S),r(S)},t=l=>{S.keyword=l,S.page=1,Be(S),r(S)},n=(l,f)=>{S.page=l,S.limit=f,Be(S),r(S)},i=[{name:"\u4EFB\u52A1\u4E66",key:"tasks",notStartText:"\u5F53\u524D\u9636\u6BB5\u8FD8\u672A\u5F00\u542F"},{name:"\u5F00\u9898\u62A5\u544A",key:"opening_report",notStartText:"\u5F53\u524D\u9636\u6BB5\u8FD8\u672A\u5F00\u542F"},{name:"\u4E2D\u671F\u68C0\u67E5",key:"midterm_report",notStartText:"\u5F53\u524D\u9636\u6BB5\u8FD8\u672A\u5F00\u542F"},{name:"\u6BD5\u4E1A\u8BBA\u6587",key:"thesis",notStartText:"\u5F53\u524D\u9636\u6BB5\u8FD8\u672A\u5F00\u542F"},{name:"\u6BD5\u4E1A\u7B54\u8FA9",key:"final_defense",notStartText:"\u5F53\u524D\u9636\u6BB5\u8FD8\u672A\u5F00\u542F"},{name:"\u8BBA\u6587\u5B9A\u7A3F",key:"final_thesis",notStartText:"\u5F53\u524D\u9636\u6BB5\u8FD8\u672A\u5F00\u542F"}],u=(Se=i==null?void 0:i.find(l=>l.key===(A==null?void 0:A.clazz)))==null?void 0:Se.notStartText;return a.createElement("div",{className:O.wrap},a.createElement(I.Z,{title:A==null?void 0:A.name,className:"mb10",status:A==null?void 0:A.status,startAt:A==null?void 0:A.start_at,endAt:A==null?void 0:A.end_at}),a.createElement(B.Z,{align:"middle",justify:"end",style:{height:66}},!!(A!=null&&A.status)&&a.createElement(B.Z,{align:"middle",style:{flex:1}},a.createElement(d.qp,{title:xe,value:S.status,onChange:e,dataSource:Z,className:"mt20",titleWidth:fe}),a.createElement(d.t7,{style:{width:ee,marginLeft:"auto"},placeholder:me,value:S.keyword,onChange:t})),(0,P.QB)(A==null?void 0:A.next_start_at)&&a.createElement(d.op,{style:{marginLeft:15},onClick:()=>pe(!0)},a.createElement("i",{className:"iconfont icon-anquanshezhi font14 mr5"}),A==null?void 0:A.name,"\u8BBE\u7F6E")),(A==null?void 0:A.status)===0&&a.createElement(_.Z,{customText:u}),!!(A!=null&&A.status)&&a.createElement(D.default,{columns:we,dataSource:Te,loading:R,rowKey:"id",locale:{emptyText:a.createElement(_.Z,null)},pagination:{current:S.page,hideOnSinglePage:!ge,showQuickJumper:!0,showSizeChanger:!0,pageSize:S.limit,pageSizeOptions:["10","20","50","100","200"],total:ge,size:"default",showTotal:P.rU,onChange:n}}),a.createElement(H.Z,{visible:Ne,data:ae(j({},A),{disabled_time:(Fe=ve==null?void 0:ve[ye-1])==null?void 0:Fe.end_at}),onClose:()=>pe(!1),onSuccess:()=>{pe(!1)}}))};var De=(0,N.connect)(({graduations:M})=>({graduations:M}))(oe)},86251:function(Oe,K){"use strict";K.byteLength=I,K.toByteArray=H,K.fromByteArray=G;for(var s=[],a=[],O=typeof Uint8Array!="undefined"?Uint8Array:Array,N="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",B=0,D=N.length;B<D;++B)s[B]=N[B],a[N.charCodeAt(B)]=B;a[45]=62,a[95]=63;function d(c){var v=c.length;if(v%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var C=c.indexOf("=");C===-1&&(C=v);var L=C===v?0:4-C%4;return[C,L]}function I(c){var v=d(c),C=v[0],L=v[1];return(C+L)*3/4-L}function o(c,v,C){return(v+C)*3/4-C}function H(c){var v,C=d(c),L=C[0],$=C[1],U=new O(o(c,L,$)),j=0,ae=$>0?L-4:L,V;for(V=0;V<ae;V+=4)v=a[c.charCodeAt(V)]<<18|a[c.charCodeAt(V+1)]<<12|a[c.charCodeAt(V+2)]<<6|a[c.charCodeAt(V+3)],U[j++]=v>>16&255,U[j++]=v>>8&255,U[j++]=v&255;return $===2&&(v=a[c.charCodeAt(V)]<<2|a[c.charCodeAt(V+1)]>>4,U[j++]=v&255),$===1&&(v=a[c.charCodeAt(V)]<<10|a[c.charCodeAt(V+1)]<<4|a[c.charCodeAt(V+2)]>>2,U[j++]=v>>8&255,U[j++]=v&255),U}function _(c){return s[c>>18&63]+s[c>>12&63]+s[c>>6&63]+s[c&63]}function P(c,v,C){for(var L,$=[],U=v;U<C;U+=3)L=(c[U]<<16&16711680)+(c[U+1]<<8&65280)+(c[U+2]&255),$.push(_(L));return $.join("")}function G(c){for(var v,C=c.length,L=C%3,$=[],U=16383,j=0,ae=C-L;j<ae;j+=U)$.push(P(c,j,j+U>ae?ae:j+U));return L===1?(v=c[C-1],$.push(s[v>>2]+s[v<<4&63]+"==")):L===2&&(v=(c[C-2]<<8)+c[C-1],$.push(s[v>>10]+s[v>>4&63]+s[v<<2&63]+"=")),$.join("")}},19208:function(Oe,K,s){"use strict";var a;var O=s(86251),N=s(67467),B=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;K.lW=o,a=j,K.h2=50;var D=2147483647;a=D,o.TYPED_ARRAY_SUPPORT=d(),!o.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 d(){try{var r=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(r,e),r.foo()===42}catch(t){return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function I(r){if(r>D)throw new RangeError('The value "'+r+'" is invalid for option "size"');var e=new Uint8Array(r);return Object.setPrototypeOf(e,o.prototype),e}function o(r,e,t){if(typeof r=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return G(r)}return H(r,e,t)}o.poolSize=8192;function H(r,e,t){if(typeof r=="string")return c(r,e);if(ArrayBuffer.isView(r))return C(r);if(r==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r);if(X(r,ArrayBuffer)||r&&X(r.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(X(r,SharedArrayBuffer)||r&&X(r.buffer,SharedArrayBuffer)))return L(r,e,t);if(typeof r=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=r.valueOf&&r.valueOf();if(n!=null&&n!==r)return o.from(n,e,t);var i=$(r);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof r[Symbol.toPrimitive]=="function")return o.from(r[Symbol.toPrimitive]("string"),e,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r)}o.from=function(r,e,t){return H(r,e,t)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function _(r){if(typeof r!="number")throw new TypeError('"size" argument must be of type number');if(r<0)throw new RangeError('The value "'+r+'" is invalid for option "size"')}function P(r,e,t){return _(r),r<=0?I(r):e!==void 0?typeof t=="string"?I(r).fill(e,t):I(r).fill(e):I(r)}o.alloc=function(r,e,t){return P(r,e,t)};function G(r){return _(r),I(r<0?0:U(r)|0)}o.allocUnsafe=function(r){return G(r)},o.allocUnsafeSlow=function(r){return G(r)};function c(r,e){if((typeof e!="string"||e==="")&&(e="utf8"),!o.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var t=ae(r,e)|0,n=I(t),i=n.write(r,e);return i!==t&&(n=n.slice(0,i)),n}function v(r){for(var e=r.length<0?0:U(r.length)|0,t=I(e),n=0;n<e;n+=1)t[n]=r[n]&255;return t}function C(r){if(X(r,Uint8Array)){var e=new Uint8Array(r);return L(e.buffer,e.byteOffset,e.byteLength)}return v(r)}function L(r,e,t){if(e<0||r.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(r.byteLength<e+(t||0))throw new RangeError('"length" is outside of buffer bounds');var n;return e===void 0&&t===void 0?n=new Uint8Array(r):t===void 0?n=new Uint8Array(r,e):n=new Uint8Array(r,e,t),Object.setPrototypeOf(n,o.prototype),n}function $(r){if(o.isBuffer(r)){var e=U(r.length)|0,t=I(e);return t.length===0||r.copy(t,0,0,e),t}if(r.length!==void 0)return typeof r.length!="number"||S(r.length)?I(0):v(r);if(r.type==="Buffer"&&Array.isArray(r.data))return v(r.data)}function U(r){if(r>=D)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+D.toString(16)+" bytes");return r|0}function j(r){return+r!=r&&(r=0),o.alloc(+r)}o.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==o.prototype},o.compare=function(e,t){if(X(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),X(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),!o.isBuffer(e)||!o.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,i=t.length,u=0,l=Math.min(n,i);u<l;++u)if(e[u]!==t[u]){n=e[u],i=t[u];break}return n<i?-1:i<n?1:0},o.isEncoding=function(e){switch(String(e).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}},o.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return o.alloc(0);var n;if(t===void 0)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var i=o.allocUnsafe(t),u=0;for(n=0;n<e.length;++n){var l=e[n];if(X(l,Uint8Array))u+l.length>i.length?o.from(l).copy(i,u):Uint8Array.prototype.set.call(i,l,u);else if(o.isBuffer(l))l.copy(i,u);else throw new TypeError('"list" argument must be an Array of Buffers');u+=l.length}return i};function ae(r,e){if(o.isBuffer(r))return r.length;if(ArrayBuffer.isView(r)||X(r,ArrayBuffer))return r.byteLength;if(typeof r!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof r);var t=r.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&t===0)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return pe(r).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return A(r).length;default:if(i)return n?-1:pe(r).length;e=(""+e).toLowerCase(),i=!0}}o.byteLength=ae;function V(r,e,t){var n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,e>>>=0,t<=e))return"";for(r||(r="utf8");;)switch(r){case"hex":return Le(this,e,t);case"utf8":case"utf-8":return se(this,e,t);case"ascii":return Se(this,e,t);case"latin1":case"binary":return Fe(this,e,t);case"base64":return we(this,e,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ee(this,e,t);default:if(n)throw new TypeError("Unknown encoding: "+r);r=(r+"").toLowerCase(),n=!0}}o.prototype._isBuffer=!0;function oe(r,e,t){var n=r[e];r[e]=r[t],r[t]=n}o.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)oe(this,t,t+1);return this},o.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)oe(this,t,t+3),oe(this,t+1,t+2);return this},o.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)oe(this,t,t+7),oe(this,t+1,t+6),oe(this,t+2,t+5),oe(this,t+3,t+4);return this},o.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?se(this,0,e):V.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(e){if(!o.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:o.compare(this,e)===0},o.prototype.inspect=function(){var e="",t=K.h2;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},B&&(o.prototype[B]=o.prototype.inspect),o.prototype.compare=function(e,t,n,i,u){if(X(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),!o.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),i===void 0&&(i=0),u===void 0&&(u=this.length),t<0||n>e.length||i<0||u>this.length)throw new RangeError("out of range index");if(i>=u&&t>=n)return 0;if(i>=u)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,u>>>=0,this===e)return 0;for(var l=u-i,f=n-t,p=Math.min(l,f),y=this.slice(i,u),F=e.slice(t,n),m=0;m<p;++m)if(y[m]!==F[m]){l=y[m],f=F[m];break}return l<f?-1:f<l?1:0};function De(r,e,t,n,i){if(r.length===0)return-1;if(typeof t=="string"?(n=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,S(t)&&(t=i?0:r.length-1),t<0&&(t=r.length+t),t>=r.length){if(i)return-1;t=r.length-1}else if(t<0)if(i)t=0;else return-1;if(typeof e=="string"&&(e=o.from(e,n)),o.isBuffer(e))return e.length===0?-1:M(r,e,t,n,i);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(r,e,t):Uint8Array.prototype.lastIndexOf.call(r,e,t):M(r,[e],t,n,i);throw new TypeError("val must be string, number or Buffer")}function M(r,e,t,n,i){var u=1,l=r.length,f=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(r.length<2||e.length<2)return-1;u=2,l/=2,f/=2,t/=2}function p(T,J){return u===1?T[J]:T.readUInt16BE(J*u)}var y;if(i){var F=-1;for(y=t;y<l;y++)if(p(r,y)===p(e,F===-1?0:y-F)){if(F===-1&&(F=y),y-F+1===f)return F*u}else F!==-1&&(y-=y-F),F=-1}else for(t+f>l&&(t=l-f),y=t;y>=0;y--){for(var m=!0,E=0;E<f;E++)if(p(r,y+E)!==p(e,E)){m=!1;break}if(m)return y}return-1}o.prototype.includes=function(e,t,n){return this.indexOf(e,t,n)!==-1},o.prototype.indexOf=function(e,t,n){return De(this,e,t,n,!0)},o.prototype.lastIndexOf=function(e,t,n){return De(this,e,t,n,!1)};function k(r,e,t,n){t=Number(t)||0;var i=r.length-t;n?(n=Number(n),n>i&&(n=i)):n=i;var u=e.length;n>u/2&&(n=u/2);for(var l=0;l<n;++l){var f=parseInt(e.substr(l*2,2),16);if(S(f))return l;r[t+l]=f}return l}function Z(r,e,t,n){return ye(pe(e,r.length-t),r,t,n)}function xe(r,e,t,n){return ye(ve(e),r,t,n)}function fe(r,e,t,n){return ye(A(e),r,t,n)}function me(r,e,t,n){return ye(Pe(e,r.length-t),r,t,n)}o.prototype.write=function(e,t,n,i){if(t===void 0)i="utf8",n=this.length,t=0;else if(n===void 0&&typeof t=="string")i=t,n=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var u=this.length-t;if((n===void 0||n>u)&&(n=u),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var l=!1;;)switch(i){case"hex":return k(this,e,t,n);case"utf8":case"utf-8":return Z(this,e,t,n);case"ascii":case"latin1":case"binary":return xe(this,e,t,n);case"base64":return fe(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return me(this,e,t,n);default:if(l)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),l=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function we(r,e,t){return e===0&&t===r.length?O.fromByteArray(r):O.fromByteArray(r.slice(e,t))}function se(r,e,t){t=Math.min(r.length,t);for(var n=[],i=e;i<t;){var u=r[i],l=null,f=u>239?4:u>223?3:u>191?2:1;if(i+f<=t){var p,y,F,m;switch(f){case 1:u<128&&(l=u);break;case 2:p=r[i+1],(p&192)===128&&(m=(u&31)<<6|p&63,m>127&&(l=m));break;case 3:p=r[i+1],y=r[i+2],(p&192)===128&&(y&192)===128&&(m=(u&15)<<12|(p&63)<<6|y&63,m>2047&&(m<55296||m>57343)&&(l=m));break;case 4:p=r[i+1],y=r[i+2],F=r[i+3],(p&192)===128&&(y&192)===128&&(F&192)===128&&(m=(u&15)<<18|(p&63)<<12|(y&63)<<6|F&63,m>65535&&m<1114112&&(l=m))}}l===null?(l=65533,f=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|l&1023),n.push(l),i+=f}return ce(n)}var ee=4096;function ce(r){var e=r.length;if(e<=ee)return String.fromCharCode.apply(String,r);for(var t="",n=0;n<e;)t+=String.fromCharCode.apply(String,r.slice(n,n+=ee));return t}function Se(r,e,t){var n="";t=Math.min(r.length,t);for(var i=e;i<t;++i)n+=String.fromCharCode(r[i]&127);return n}function Fe(r,e,t){var n="";t=Math.min(r.length,t);for(var i=e;i<t;++i)n+=String.fromCharCode(r[i]);return n}function Le(r,e,t){var n=r.length;(!e||e<0)&&(e=0),(!t||t<0||t>n)&&(t=n);for(var i="",u=e;u<t;++u)i+=Be[r[u]];return i}function Ee(r,e,t){for(var n=r.slice(e,t),i="",u=0;u<n.length-1;u+=2)i+=String.fromCharCode(n[u]+n[u+1]*256);return i}o.prototype.slice=function(e,t){var n=this.length;e=~~e,t=t===void 0?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<e&&(t=e);var i=this.subarray(e,t);return Object.setPrototypeOf(i,o.prototype),i};function R(r,e,t){if(r%1!==0||r<0)throw new RangeError("offset is not uint");if(r+e>t)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(e,t,n){e=e>>>0,t=t>>>0,n||R(e,t,this.length);for(var i=this[e],u=1,l=0;++l<t&&(u*=256);)i+=this[e+l]*u;return i},o.prototype.readUintBE=o.prototype.readUIntBE=function(e,t,n){e=e>>>0,t=t>>>0,n||R(e,t,this.length);for(var i=this[e+--t],u=1;t>0&&(u*=256);)i+=this[e+--t]*u;return i},o.prototype.readUint8=o.prototype.readUInt8=function(e,t){return e=e>>>0,t||R(e,1,this.length),this[e]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(e,t){return e=e>>>0,t||R(e,2,this.length),this[e]|this[e+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(e,t){return e=e>>>0,t||R(e,2,this.length),this[e]<<8|this[e+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(e,t){return e=e>>>0,t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(e,t){return e=e>>>0,t||R(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readIntLE=function(e,t,n){e=e>>>0,t=t>>>0,n||R(e,t,this.length);for(var i=this[e],u=1,l=0;++l<t&&(u*=256);)i+=this[e+l]*u;return u*=128,i>=u&&(i-=Math.pow(2,8*t)),i},o.prototype.readIntBE=function(e,t,n){e=e>>>0,t=t>>>0,n||R(e,t,this.length);for(var i=t,u=1,l=this[e+--i];i>0&&(u*=256);)l+=this[e+--i]*u;return u*=128,l>=u&&(l-=Math.pow(2,8*t)),l},o.prototype.readInt8=function(e,t){return e=e>>>0,t||R(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},o.prototype.readInt16LE=function(e,t){e=e>>>0,t||R(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n},o.prototype.readInt16BE=function(e,t){e=e>>>0,t||R(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n},o.prototype.readInt32LE=function(e,t){return e=e>>>0,t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},o.prototype.readInt32BE=function(e,t){return e=e>>>0,t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},o.prototype.readFloatLE=function(e,t){return e=e>>>0,t||R(e,4,this.length),N.read(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,t){return e=e>>>0,t||R(e,4,this.length),N.read(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,t){return e=e>>>0,t||R(e,8,this.length),N.read(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,t){return e=e>>>0,t||R(e,8,this.length),N.read(this,e,!1,52,8)};function z(r,e,t,n,i,u){if(!o.isBuffer(r))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<u)throw new RangeError('"value" argument is out of bounds');if(t+n>r.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(e,t,n,i){if(e=+e,t=t>>>0,n=n>>>0,!i){var u=Math.pow(2,8*n)-1;z(this,e,t,n,u,0)}var l=1,f=0;for(this[t]=e&255;++f<n&&(l*=256);)this[t+f]=e/l&255;return t+n},o.prototype.writeUintBE=o.prototype.writeUIntBE=function(e,t,n,i){if(e=+e,t=t>>>0,n=n>>>0,!i){var u=Math.pow(2,8*n)-1;z(this,e,t,n,u,0)}var l=n-1,f=1;for(this[t+l]=e&255;--l>=0&&(f*=256);)this[t+l]=e/f&255;return t+n},o.prototype.writeUint8=o.prototype.writeUInt8=function(e,t,n){return e=+e,t=t>>>0,n||z(this,e,t,1,255,0),this[t]=e&255,t+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(e,t,n){return e=+e,t=t>>>0,n||z(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(e,t,n){return e=+e,t=t>>>0,n||z(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(e,t,n){return e=+e,t=t>>>0,n||z(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(e,t,n){return e=+e,t=t>>>0,n||z(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},o.prototype.writeIntLE=function(e,t,n,i){if(e=+e,t=t>>>0,!i){var u=Math.pow(2,8*n-1);z(this,e,t,n,u-1,-u)}var l=0,f=1,p=0;for(this[t]=e&255;++l<n&&(f*=256);)e<0&&p===0&&this[t+l-1]!==0&&(p=1),this[t+l]=(e/f>>0)-p&255;return t+n},o.prototype.writeIntBE=function(e,t,n,i){if(e=+e,t=t>>>0,!i){var u=Math.pow(2,8*n-1);z(this,e,t,n,u-1,-u)}var l=n-1,f=1,p=0;for(this[t+l]=e&255;--l>=0&&(f*=256);)e<0&&p===0&&this[t+l+1]!==0&&(p=1),this[t+l]=(e/f>>0)-p&255;return t+n},o.prototype.writeInt8=function(e,t,n){return e=+e,t=t>>>0,n||z(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},o.prototype.writeInt16LE=function(e,t,n){return e=+e,t=t>>>0,n||z(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},o.prototype.writeInt16BE=function(e,t,n){return e=+e,t=t>>>0,n||z(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},o.prototype.writeInt32LE=function(e,t,n){return e=+e,t=t>>>0,n||z(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},o.prototype.writeInt32BE=function(e,t,n){return e=+e,t=t>>>0,n||z(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function ge(r,e,t,n,i,u){if(t+n>r.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function Ue(r,e,t,n,i){return e=+e,t=t>>>0,i||ge(r,e,t,4,34028234663852886e22,-34028234663852886e22),N.write(r,e,t,n,23,4),t+4}o.prototype.writeFloatLE=function(e,t,n){return Ue(this,e,t,!0,n)},o.prototype.writeFloatBE=function(e,t,n){return Ue(this,e,t,!1,n)};function Te(r,e,t,n,i){return e=+e,t=t>>>0,i||ge(r,e,t,8,17976931348623157e292,-17976931348623157e292),N.write(r,e,t,n,52,8),t+8}o.prototype.writeDoubleLE=function(e,t,n){return Te(this,e,t,!0,n)},o.prototype.writeDoubleBE=function(e,t,n){return Te(this,e,t,!1,n)},o.prototype.copy=function(e,t,n,i){if(!o.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<n&&(i=n),i===n||e.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-n&&(i=e.length-t+n);var u=i-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,n,i):Uint8Array.prototype.set.call(e,this.subarray(n,i),t),u},o.prototype.fill=function(e,t,n,i){if(typeof e=="string"){if(typeof t=="string"?(i=t,t=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!o.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(e.length===1){var u=e.charCodeAt(0);(i==="utf8"&&u<128||i==="latin1")&&(e=u)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;t=t>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);var l;if(typeof e=="number")for(l=t;l<n;++l)this[l]=e;else{var f=o.isBuffer(e)?e:o.from(e,i),p=f.length;if(p===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(l=0;l<n-t;++l)this[l+t]=f[l%p]}return this};var Y=/[^+/0-9A-Za-z-_]/g;function Ne(r){if(r=r.split("=")[0],r=r.trim().replace(Y,""),r.length<2)return"";for(;r.length%4!==0;)r=r+"=";return r}function pe(r,e){e=e||1/0;for(var t,n=r.length,i=null,u=[],l=0;l<n;++l){if(t=r.charCodeAt(l),t>55295&&t<57344){if(!i){if(t>56319){(e-=3)>-1&&u.push(239,191,189);continue}else if(l+1===n){(e-=3)>-1&&u.push(239,191,189);continue}i=t;continue}if(t<56320){(e-=3)>-1&&u.push(239,191,189),i=t;continue}t=(i-55296<<10|t-56320)+65536}else i&&(e-=3)>-1&&u.push(239,191,189);if(i=null,t<128){if((e-=1)<0)break;u.push(t)}else if(t<2048){if((e-=2)<0)break;u.push(t>>6|192,t&63|128)}else if(t<65536){if((e-=3)<0)break;u.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((e-=4)<0)break;u.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return u}function ve(r){for(var e=[],t=0;t<r.length;++t)e.push(r.charCodeAt(t)&255);return e}function Pe(r,e){for(var t,n,i,u=[],l=0;l<r.length&&!((e-=2)<0);++l)t=r.charCodeAt(l),n=t>>8,i=t%256,u.push(i),u.push(n);return u}function A(r){return O.toByteArray(Ne(r))}function ye(r,e,t,n){for(var i=0;i<n&&!(i+t>=e.length||i>=r.length);++i)e[i+t]=r[i];return i}function X(r,e){return r instanceof e||r!=null&&r.constructor!=null&&r.constructor.name!=null&&r.constructor.name===e.name}function S(r){return r!==r}var Be=function(){for(var r="0123456789abcdef",e=new Array(256),t=0;t<16;++t)for(var n=t*16,i=0;i<16;++i)e[n+i]=r[t]+r[i];return e}()},67467:function(Oe,K){K.read=function(s,a,O,N,B){var D,d,I=B*8-N-1,o=(1<<I)-1,H=o>>1,_=-7,P=O?B-1:0,G=O?-1:1,c=s[a+P];for(P+=G,D=c&(1<<-_)-1,c>>=-_,_+=I;_>0;D=D*256+s[a+P],P+=G,_-=8);for(d=D&(1<<-_)-1,D>>=-_,_+=N;_>0;d=d*256+s[a+P],P+=G,_-=8);if(D===0)D=1-H;else{if(D===o)return d?NaN:(c?-1:1)*(1/0);d=d+Math.pow(2,N),D=D-H}return(c?-1:1)*d*Math.pow(2,D-N)},K.write=function(s,a,O,N,B,D){var d,I,o,H=D*8-B-1,_=(1<<H)-1,P=_>>1,G=B===23?Math.pow(2,-24)-Math.pow(2,-77):0,c=N?0:D-1,v=N?1:-1,C=a<0||a===0&&1/a<0?1:0;for(a=Math.abs(a),isNaN(a)||a===1/0?(I=isNaN(a)?1:0,d=_):(d=Math.floor(Math.log(a)/Math.LN2),a*(o=Math.pow(2,-d))<1&&(d--,o*=2),d+P>=1?a+=G/o:a+=G*Math.pow(2,1-P),a*o>=2&&(d++,o/=2),d+P>=_?(I=0,d=_):d+P>=1?(I=(a*o-1)*Math.pow(2,B),d=d+P):(I=a*Math.pow(2,P-1)*Math.pow(2,B),d=0));B>=8;s[O+c]=I&255,c+=v,I/=256,B-=8);for(d=d<<B|I,H+=B;H>0;s[O+c]=d&255,c+=v,d/=256,H-=8);s[O+c-v]|=C*128}}}]);