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__Classrooms__Lists__Exerc...

13 lines
118 KiB

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

(window.webpackJsonp=window.webpackJsonp||[]).push([[67],{k5F3:function(Lt,Mt,H){"use strict";var Jt=H("g9YV"),St=H("wCAj"),Ft=H("WmNS"),kt=H.n(Ft),Tt=H("9og8"),At=H("oBTY"),Bt=H("k1fw"),wt=H("tJVT"),Ot=H("q1tI"),tt=H.n(Ot),pt=H("Ty5D"),st=H("9kvl"),Dt=H("uJ6K"),mt=H.n(Dt),ut=H("V0Rq"),ft=H("9Bee"),yt=H("1vsH"),ct=function(nt){var ot=nt.isPreview,Et=ot===void 0?!1:ot,rt=nt.isExportBlank,o=rt===void 0?!1:rt,T=nt.activeTabs,x=nt.exercise,h=nt.globalSetting,p=nt.loading,n=nt.user,u=nt.dispatch,v=Object(pt.m)(),E=n.userInfo,b=Object(Ot.useState)(),y=Object(wt.a)(b,2),a=y[0],d=y[1],_=Object(Ot.useState)(),l=Object(wt.a)(_,2),i=l[0],f=l[1];Object(Ot.useEffect)(function(){Object(yt.D)(T)||T==="2"&&O()},[v.userId,v.coursesId,v.exerciseId,v.categoryId,T]),Object(Ot.useEffect)(function(){var R;if((R=x.exerciseExportHeadData)===null||R===void 0?void 0:R.title){var F=x.exerciseExportHeadData;d(Object(Bt.a)({},F||{}));var I=F||{},g=I.table,$,r;((g==null?void 0:g.total_singles_scores)||(g==null?void 0:g.total_doubles_scores)||(g==null?void 0:g.total_nulls_scores)||(g==null?void 0:g.total_judges_scores)||(g==null?void 0:g.total_pros_scores)||(g==null?void 0:g.total_shixuns_scores)||(g==null?void 0:g.total_mains_scores))&&($=Number(g==null?void 0:g.total_singles_scores)+Number(g==null?void 0:g.total_doubles_scores)+Number(g==null?void 0:g.total_nulls_scores)+Number(g==null?void 0:g.total_judges_scores)+Number(g==null?void 0:g.total_pros_scores)+Number(g==null?void 0:g.total_shixuns_scores)+Number(g==null?void 0:g.total_mains_scores)),((g==null?void 0:g.singles_scores)||(g==null?void 0:g.doubles_scores)||(g==null?void 0:g.nulls_scores)||(g==null?void 0:g.judges_scores)||(g==null?void 0:g.pros_scores)||(g==null?void 0:g.shixuns_scores)||(g==null?void 0:g.mains_scores))&&(r=Number(g==null?void 0:g.singles_scores)+Number(g==null?void 0:g.doubles_scores)+Number(g==null?void 0:g.nulls_scores)+Number(g==null?void 0:g.judges_scores)+Number(g==null?void 0:g.pros_scores)+Number(g==null?void 0:g.shixuns_scores)+Number(g==null?void 0:g.mains_scores));var A=[{key:"1",name:"\u5E94\u5F97\u5206",singles_score:g==null?void 0:g.total_singles_scores,doubles_score:g==null?void 0:g.total_doubles_scores,nulls_score:g==null?void 0:g.total_nulls_scores,judges_score:g==null?void 0:g.total_judges_scores,pros_score:g==null?void 0:g.total_pros_scores,shixuns_score:g==null?void 0:g.total_shixuns_scores,mains_score:g==null?void 0:g.total_mains_scores,total_score:$},{key:"2",name:"\u5B9E\u5F97\u5206",singles_score:g==null?void 0:g.singles_scores,doubles_score:g==null?void 0:g.doubles_scores,nulls_score:g==null?void 0:g.nulls_scores,judges_score:g==null?void 0:g.judges_scores,pros_score:g==null?void 0:g.pros_scores,shixuns_score:g==null?void 0:g.shixuns_scores,mains_score:g==null?void 0:g.mains_scores,total_score:r},{key:"3",name:"\u8BC4\u5377\u4EBA"}],e=[{key:"1",name:"\u5E94\u5F97\u5206"},{key:"2",name:"\u5B9E\u5F97\u5206"},{key:"3",name:"\u8BC4\u5377\u4EBA"}];f(Object(At.a)(o?e:A))}},[x.exerciseExportHeadData]);var O=function(){var R=Object(Tt.a)(kt.a.mark(function F(){var I,g,$,r,A,e,S,X;return kt.a.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return I={id:v.exerciseId||v.categoryId,identify:(E==null?void 0:E.login)||null},Q.next=3,Object(ut.u)(I);case 3:g=Q.sent,d(g||{}),$=g||{},r=$.table,((r==null?void 0:r.total_singles_scores)||(r==null?void 0:r.total_doubles_scores)||(r==null?void 0:r.total_nulls_scores)||(r==null?void 0:r.total_judges_scores)||(r==null?void 0:r.total_pros_scores)||(r==null?void 0:r.total_shixuns_scores)||(r==null?void 0:r.total_mains_scores))&&(A=Number(r==null?void 0:r.total_singles_scores)+Number(r==null?void 0:r.total_doubles_scores)+Number(r==null?void 0:r.total_nulls_scores)+Number(r==null?void 0:r.total_judges_scores)+Number(r==null?void 0:r.total_pros_scores)+Number(r==null?void 0:r.total_shixuns_scores)+Number(r==null?void 0:r.total_mains_scores)),((r==null?void 0:r.singles_scores)||(r==null?void 0:r.doubles_scores)||(r==null?void 0:r.nulls_scores)||(r==null?void 0:r.judges_scores)||(r==null?void 0:r.pros_scores)||(r==null?void 0:r.shixuns_scores)||(r==null?void 0:r.mains_scores))&&(e=Number(r==null?void 0:r.singles_scores)+Number(r==null?void 0:r.doubles_scores)+Number(r==null?void 0:r.nulls_scores)+Number(r==null?void 0:r.judges_scores)+Number(r==null?void 0:r.pros_scores)+Number(r==null?void 0:r.shixuns_scores)+Number(r==null?void 0:r.mains_scores)),S=[{key:"1",name:"\u5E94\u5F97\u5206",singles_score:r==null?void 0:r.total_singles_scores,doubles_score:r==null?void 0:r.total_doubles_scores,nulls_score:r==null?void 0:r.total_nulls_scores,judges_score:r==null?void 0:r.total_judges_scores,pros_score:r==null?void 0:r.total_pros_scores,shixuns_score:r==null?void 0:r.total_shixuns_scores,mains_score:r==null?void 0:r.total_mains_scores,total_score:A},{key:"2",name:"\u5B9E\u5F97\u5206",singles_score:r==null?void 0:r.singles_scores,doubles_score:r==null?void 0:r.doubles_scores,nulls_score:r==null?void 0:r.nulls_scores,judges_score:r==null?void 0:r.judges_scores,pros_score:r==null?void 0:r.pros_scores,shixuns_score:r==null?void 0:r.shixuns_scores,mains_score:r==null?void 0:r.mains_scores,total_score:e},{key:"3",name:"\u8BC4\u5377\u4EBA"}],X=[{key:"1",name:"\u5E94\u5F97\u5206"},{key:"2",name:"\u5B9E\u5F97\u5206"},{key:"3",name:"\u8BC4\u5377\u4EBA"}],f(o?X:S);case 11:case"end":return Q.stop()}},F)}));return function(){return R.apply(this,arguments)}}(),D=[{width:"11%",title:"\u9898\u578B",align:"center",dataIndex:"name",render:function(F){return tt.a.createElement("a",null,F)}},{width:"11%",title:"\u5355\u9009\u9898",align:"center",dataIndex:"singles_score",render:function(F){return tt.a.createElement("a",null,F==="0.0"?0:F)}},{width:"11%",title:"\u591A\u9009\u9898",align:"center",dataIndex:"doubles_score",render:function(F){return tt.a.createElement("a",null,F==="0.0"?0:F)}},{width:"11%",title:"\u586B\u7A7A\u9898",align:"center",dataIndex:"nulls_score",render:function(F){return tt.a.createElement("a",null,F==="0.0"?0:F)}},{width:140,title:"\u5224\u65AD\u9898",align:"center",dataIndex:"judges_score",render:function(F){return tt.a.createElement("a",null,F==="0.0"?0:F)}},{width:"11%",title:"\u7F16\u7A0B\u9898",align:"center",dataIndex:"pros_score",render:function(F){return tt.a.createElement("a",null,F==="0.0"?0:F)}},{width:"11%",title:"\u5B9E\u8BAD\u9898",align:"center",dataIndex:"shixuns_score",render:function(F){return tt.a.createElement("a",null,F==="0.0"?0:F)}},{width:"11%",title:"\u7B80\u7B54\u9898",align:"center",dataIndex:"mains_score",render:function(F){return tt.a.createElement("a",null,F==="0.0"?0:F)}},{width:"11%",title:"\u603B\u5206",align:"center",dataIndex:"total_score",render:function(F){return tt.a.createElement("a",null,F==="0.0"?0:F)}}],w=a||{},U=w.exercise_header;return tt.a.createElement(tt.a.Fragment,null,((U==null?void 0:U.show_user)||(U==null?void 0:U.show_no)||(U==null?void 0:U.show_group))&&tt.a.createElement("section",{className:mt.a.glassSeal},(U==null?void 0:U.show_user)&&tt.a.createElement("span",null,"\u59D3\u540D\uFF1A",tt.a.createElement("span",null,a==null?void 0:a.user)),(U==null?void 0:U.show_no)&&tt.a.createElement("span",null,"\u5B66\u53F7\uFF1A",tt.a.createElement("span",null,a==null?void 0:a.student_id)),(U==null?void 0:U.show_group)&&tt.a.createElement("span",null,"\u4E13\u4E1A\u73ED\u7EA7\uFF1A",tt.a.createElement("span",null,a==null?void 0:a.group_name))),tt.a.createElement("section",{className:"".concat(mt.a.wrap," ").concat(Et?"pl20":""," ")},(a==null?void 0:a.photo_url)&&tt.a.createElement("img",{className:mt.a.img,src:a==null?void 0:a.photo_url}),(U==null?void 0:U.show_title)&&tt.a.createElement("p",{className:"font16 tc c-grey-333"},tt.a.createElement("strong",null,a==null?void 0:a.title)),(U==null?void 0:U.show_body)&&tt.a.createElement("p",{className:"tc c-grey-333"},"\u8003\u8BD5\u5185\u5BB9\uFF1A",a==null?void 0:a.body),(U==null?void 0:U.show_info)&&tt.a.createElement("p",{className:"tc c-grey-666"},"\u5171:\u3010",a==null?void 0:a.large_counts,"\u5927\u9898\u3011\u3010",a==null?void 0:a.total_count,"\u5C0F\u9898\u3011\u3010 \u6EE1\u5206",a==null?void 0:a.score,"\u5206\u3011 \u8003\u8BD5\u65F6\u95F4\uFF1A\u3010",(a==null?void 0:a.time)>-1?"".concat(a==null?void 0:a.time,"\u5206\u949F"):"\u4E0D\u9650","\u3011"),(U==null?void 0:U.show_desc)&&tt.a.createElement("div",{className:"mt10"},tt.a.createElement("p",{className:"font16"},"\u8003\u8BD5\u8BF4\u660E\uFF1A"),tt.a.createElement(ft.a,{value:a==null?void 0:a.description})),(U==null?void 0:U.show_table)&&tt.a.createElement("div",{className:"mt10"},tt.a.createElement(St.a,{className:mt.a.table,columns:D,dataSource:Object(At.a)(i||[]),bordered:!0,pagination:!1}))))};Mt.a=Object(st.a)(function(it){var nt=it.exercise,ot=it.loading,Et=it.user,rt=it.globalSetting;return{exercise:nt,globalSetting:rt,user:Et,loading:ot.effects}})(ct)},mrIW:function(Lt,Mt,H){"use strict";H.r(Mt);var Jt=H("+L6B"),St=H("2/Rp"),Ft=H("sPJy"),kt=H("bE4q"),Tt=H("/zsF"),At=H("PArb"),Bt=H("sRBo"),wt=H("kaz8"),Ot=H("14J3"),tt=H("BMrR"),pt=H("jCWc"),st=H("kPKH"),Dt=H("7Kak"),mt=H("9yH6"),ut=H("2qtc"),ft=H("kLXV"),yt=H("WmNS"),ct=H.n(yt),it=H("k1fw"),nt=H("9og8"),ot=H("tJVT"),Et=H("PpiC"),rt=H("q1tI"),o=H.n(rt),T=H("Ty5D"),x=H("55Ip"),h=H("9kvl"),p=H("r0c9"),n=H.n(p),u=H("jhfD"),v=H("dF/Y"),E=H("q5bB"),b=H.n(E),y=H("9Bee"),a=H("1vsH"),d=H("cw1j"),_=H("gfsA"),l=H("cqsG"),i=H("NaKt"),f=H("k5F3"),O=H("wd/R"),D=H.n(O),w=H("1n7x"),U=H.n(w),R=H("xKgJ"),F=30,I=["\u5355\u9009\u9898","\u591A\u9009\u9898","\u5224\u65AD\u9898","\u586B\u7A7A\u9898","\u7B80\u7B54\u9898","\u5B9E\u8BAD\u9898","\u7F16\u7A0B\u9898"],g=function(r){var A,e,S,X,M,Q,j,V=r.exercise,C=r.globalSetting,z=r.loading,vt=r.user,c=r.dispatch,k=Object(Et.a)(r,["exercise","globalSetting","loading","user","dispatch"]),t=Object(T.m)(),P=vt.userInfo,m=Object(rt.useState)({}),s=Object(ot.a)(m,2),N=s[0],B=s[1],W=Object(rt.useRef)(),K=Object(rt.useState)(!1),L=Object(ot.a)(K,2),Y=L[0],q=L[1],J=Object(rt.useState)({}),et=Object(ot.a)(J,2),Z=et[0],lt=et[1],Gt=Object(rt.useState)(!1),Ut=Object(ot.a)(Gt,2),Kt=Ut[0],Zt=Ut[1],qt=Object(rt.useState)(new n.a),Vt=Object(ot.a)(qt,2),jt=Vt[0],Wt=Vt[1],Ht=Object(rt.useState)([]),ee=Object(ot.a)(Ht,2),Ct=ee[0],de=ee[1],ce=Object(rt.useState)(!1),re=Object(ot.a)(ce,2),ne=re[0],he=re[1];Object(rt.useEffect)(function(){(P==null?void 0:P.login)&&fe();try{de(JSON.parse(localStorage.total_exercise_users))}catch(It){}},[t.userId,t.coursesId,t.exerciseId,P]);var ie=function(){document.querySelectorAll("canvas").forEach(function(G){(!G.clientWidth||!G.clientHeight)&&G.remove()})},ae=function(){document.body.scrollIntoView()},fe=function(){var It=Object(nt.a)(ct.a.mark(function G(){var ht;return ct.a.wrap(function(at){for(;;)switch(at.prev=at.next){case 0:if(c({type:"exercise/getExerciseExportHeadData",payload:{id:t.exerciseId||t.categoryId,identify:t.userId||null}}),!t.userId){at.next=8;break}return at.next=4,c({type:"exercise/getReviewExercise",payload:{exerciseId:t.exerciseId,login:t.userId}});case 4:ht=at.sent,Zt(!1),at.next=12;break;case 8:return at.next=10,c({type:"exercise/editExercise",payload:{coursesId:t.coursesId,categoryId:t.exerciseId}});case 10:ht=at.sent,Zt(!0);case 12:lt(Object(it.a)({},ht||{})),setTimeout(function(){var _t=1,bt=document.getElementById("export-id-all"),zt=860,Pt=0},1500);case 14:case"end":return at.stop()}},G)}));return function(){return It.apply(this,arguments)}}(),te=function(){jt.generateAsync({type:"blob"}).then(function(G){var ht,dt,at,_t=document.createElement("a");_t.href=window.URL.createObjectURL(G),_t.download=Object.keys(jt.files).length>1?Z==null||((ht=Z.exercise)===null||ht===void 0)?void 0:ht.exercise_name:((V==null||((dt=V.exerciseExportHeadData)===null||dt===void 0)?void 0:dt.user)||(Z==null||((at=Z.exercise)===null||at===void 0)?void 0:at.exercise_name))+".zip",document.body.appendChild(_t);var bt=document.createEvent("MouseEvents");bt.initEvent("click",!1,!1),_t.dispatchEvent(bt),document.body.removeChild(_t),Wt(new n.a)})},se=function(){var It=Object(nt.a)(ct.a.mark(function G(ht){var dt,at,_t,bt,zt,Pt,gt,xt,Rt,Xt;return ct.a.wrap(function(Nt){for(;;)switch(Nt.prev=Nt.next){case 0:return Xt=function(){return Xt=Object(nt.a)(ct.a.mark(function oe(){var le;return ct.a.wrap(function(Yt){for(;;)switch(Yt.prev=Yt.next){case 0:return at++,ae(),Yt.next=4,c({type:"exercise/getExerciseExportHeadData",payload:{id:t.exerciseId||t.categoryId,identify:Ct[at-1].user_login}});case 4:return Yt.next=6,c({type:"exercise/getReviewExercise",payload:{exerciseId:t.exerciseId,login:Ct[at-1].user_login}});case 6:le=Yt.sent,lt(Object(it.a)({},le||{})),setTimeout(Object(nt.a)(ct.a.mark(function ve(){var ue;return ct.a.wrap(function($t){for(;;)switch($t.prev=$t.next){case 0:return ie(),$t.next=3,U()().from(document.getElementById("export-all")).set(bt).output("blob");case 3:ue=$t.sent,q(!1),jt.file("".concat(Ct[at-1].user_name,"-").concat(D()().format("YYYY-MM-DD HH:mm:ss"),".pdf"),ue),_t.update({content:o.a.createElement("div",null,"\u5F53\u524D\u8FDB\u5EA6: ",o.a.createElement("span",{className:"c-blue"},at+1),"/",Ct==null?void 0:Ct.length)}),at==(Ct==null?void 0:Ct.length)?(_t.destroy(),te()):Rt();case 8:case"end":return $t.stop()}},ve)})),2600);case 9:case"end":return Yt.stop()}},oe)})),Xt.apply(this,arguments)},Rt=function(){return Xt.apply(this,arguments)},ht==="all"?Zt(!1):t.userId||Zt(!0),ae(),he(!0),at=0,ht!=="all"&&q(!0),_t=ft.a.info({width:460,title:o.a.createElement("div",null,"\u6B63\u5728\u5BFC\u51FA\u8BD5\u5377,",o.a.createElement("span",{className:"c-red"},"\u8BF7\u52FF\u5173\u95ED\u6216\u64CD\u4F5C\u5F53\u524D\u6D4F\u89C8\u5668\u7A97\u53E3")),content:ht==="all"?o.a.createElement("div",null,"\u5F53\u524D\u8FDB\u5EA6: ",o.a.createElement("span",{className:"c-blue"},at+1),"/",Ct==null?void 0:Ct.length):null,maskClosable:!1,className:b.a.modal,onOk:function(){}}),ie(),Nt.next=11,new Promise(function(Qt,oe){setTimeout(function(){Qt("")},5e3)});case 11:return bt={html2canvas:{letterRendering:!0,useCORS:!0,allowTaint:!1},jsPDF:{unit:"in",format:"letter",orientation:"portrait"}},zt="".concat(D()().format("YYYY-MM-DD HH:mm:ss")),((dt=V.exerciseExportHeadData)===null||dt===void 0?void 0:dt.user)&&(zt="".concat(((Pt=V.exerciseExportHeadData)===null||Pt===void 0?void 0:Pt.student_id)||"").concat((gt=V.exerciseExportHeadData)===null||gt===void 0?void 0:gt.user)),Nt.next=16,U()().from(document.getElementById("export-all")).set(bt).output("blob");case 16:if(xt=Nt.sent,q(!1),ht!=="all"&&jt.file("".concat(zt,"-").concat(D()().format("YYYY-MM-DD HH:mm:ss"),".pdf"),xt),!(ht!=="all")){Nt.next=23;break}return _t.destroy(),te(),Nt.abrupt("return");case 23:!!(Ct==null?void 0:Ct.length)&&ht==="all"?Rt():te();case 24:case"end":return Nt.stop()}},G)}));return function(ht){return It.apply(this,arguments)}}(),ge=function(G){for(var ht=G.internal.getNumberOfPages(),dt=1;dt<=ht;dt+=1)G.setPage(dt),G.setFontSize(9),G.setTextColor("#6a6a6a"),G.text("".concat(dt," / ").concat(ht),G.internal.pageSize.getWidth()-20,G.internal.pageSize.getHeight()-6)},_e=function(G,ht){var dt,at,_t,bt,zt;return o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{style:{display:"flex"},className:b.a.programTitle},o.a.createElement("span",{style:{flexShrink:0},className:"font18"},ht+1,"."),o.a.createElement(y.a,{value:G.question_title}),o.a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",G.question_score,"\u5206\uFF09")),G.question_type===0&&o.a.createElement(o.a.Fragment,null,(dt=G.question_choices)===null||dt===void 0?void 0:dt.map(function(Pt,gt){var xt;return o.a.createElement(tt.a,{key:gt},o.a.createElement(st.a,{flex:"25px"},o.a.createElement("div",{style:{width:25,overflow:"hidden"}},o.a.createElement(mt.a,{checked:(xt=G.user_answer)===null||xt===void 0?void 0:xt.includes(Pt.choice_id),style:{width:25}}))),o.a.createElement(st.a,{flex:"1"},o.a.createElement(y.a,{value:Pt.choice_text||""})))})),G.question_type===1&&o.a.createElement(o.a.Fragment,null,(at=G.question_choices)===null||at===void 0?void 0:at.map(function(Pt,gt){var xt;return o.a.createElement(tt.a,{key:gt},o.a.createElement(st.a,{flex:"25px"},o.a.createElement("div",{style:{width:25,overflow:"hidden"}},o.a.createElement(wt.a,{checked:(xt=G.user_answer)===null||xt===void 0?void 0:xt.includes(Pt.choice_id),style:{width:25}}))),o.a.createElement(st.a,{flex:"1"},o.a.createElement(y.a,{value:Pt.choice_text||""})))})),G.question_type===2&&o.a.createElement("div",{className:b.a.flexRow},(_t=G.question_choices)===null||_t===void 0?void 0:_t.map(function(Pt,gt){var xt;return o.a.createElement(tt.a,{key:gt},o.a.createElement(st.a,{flex:"25px"},o.a.createElement("div",{style:{width:25,overflow:"hidden"}},o.a.createElement(mt.a,{checked:(xt=G.user_answer)===null||xt===void 0?void 0:xt.includes(Pt.choice_id),style:{width:25}}))),o.a.createElement(st.a,{flex:"1"},Pt.choice_text))})),G.question_type===3&&!Kt&&o.a.createElement(d.a,{item:G,answerData:Z,changeScoreData:N,textValue:(bt=N[G.q_position])===null||bt===void 0?void 0:bt.text,textOnChange:function(gt){N[G.q_position].text=gt,B(Object(it.a)({},N))}}),G.question_type===5&&o.a.createElement(_.a,{item:G,answerData:Z,hasChangeScore:!1,autoHeight:ne}),G.question_type===4&&o.a.createElement(l.a,{item:G,answerData:Z,changeScoreData:N,textValue:(zt=N[G.q_position])===null||zt===void 0?void 0:zt.text,textOnChange:function(gt){N[G.q_position].text=gt,B(Object(it.a)({},N))}}),G.question_type===6&&o.a.createElement(i.a,{item:G,answerData:Z,autoHeight:ne}),o.a.createElement(At.a,{style:Kt?{marginTop:30}:{}}))},pe=function(G){var ht=["\u96F6","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D"],dt=["","\u5341","\u767E","\u5343","\u4E07"];G=parseInt(G);var at=function(Pt){for(var gt=Pt.toString().split("").reverse(),xt="",Rt=0;Rt<gt.length;Rt++)xt=(Rt==0&&gt[Rt]==0||Rt>0&&gt[Rt]==0&&gt[Rt-1]==0?"":ht[gt[Rt]]+(gt[Rt]==0?dt[0]:dt[Rt]))+xt;return xt},_t=Math.floor(G/1e4),bt=G%1e4;return bt.toString().length<4&&(bt="0"+bt),_t?at(_t)+"\u4E07"+at(bt):at(G)},me=function(){var G,ht=Z==null||((G=Z.exercise_question_types)===null||G===void 0)?void 0:G.map(function(dt,at){var _t;return o.a.createElement(rt.Fragment,{key:at},o.a.createElement("div",null,o.a.createElement("span",{className:"font16 c-light-primary"},pe(at+1),"\u3001",dt.name),o.a.createElement("span",{className:"c-grey-999"},"\uFF08\u5171",dt.count,"\u9898\uFF1B\u5171",dt.score,"\u5206\uFF09")),(_t=dt.items)===null||_t===void 0?void 0:_t.map(function(bt,zt){return o.a.createElement(rt.Fragment,{key:zt},_e(bt,zt))}))});return ht};return console.log(Z,"exportData"),o.a.createElement("section",{className:"edu-container"},o.a.createElement("section",{className:"animated fadeIn"},o.a.createElement("aside",{className:"mt10"},P&&o.a.createElement(kt.a,{separator:">"},o.a.createElement(kt.a.Item,null,o.a.createElement(x.Link,{to:"/classrooms/".concat(t.coursesId,"/exercise")},P==null||((A=P.course)===null||A===void 0)?void 0:A.course_name)),o.a.createElement(kt.a.Item,null,o.a.createElement(x.Link,{to:"/classrooms/".concat(t.coursesId,"/exercise")},"\u8BD5\u5377\u5217\u8868")),o.a.createElement(kt.a.Item,null,o.a.createElement(x.Link,{to:"/classrooms/".concat(t.coursesId,"/exercise/").concat(Z==null||((e=Z.exercise)===null||e===void 0)?void 0:e.id,"/detail")},"\u8BD5\u5377\u8BE6\u60C5")),o.a.createElement(kt.a.Item,null,(Z==null||((S=Z.exercise_answer_user)===null||S===void 0)?void 0:S.user_name)||(Z==null||((X=Z.exercise)===null||X===void 0)?void 0:X.exercise_name)))),o.a.createElement("aside",{className:[b.a.title,"mt20"].join(" ")},o.a.createElement(tt.a,{style:{width:"100%"}},o.a.createElement(st.a,{flex:"1"},o.a.createElement(x.Link,{to:"/classrooms/".concat(t.coursesId,"/exercise/").concat(Z==null||((M=Z.exercise)===null||M===void 0)?void 0:M.id,"/detail")},o.a.createElement(u.a,{className:"font16 c-black"})),o.a.createElement("strong",{className:"font20 ml5"},Z==null||((Q=Z.exercise)===null||Q===void 0)?void 0:Q.exercise_name),o.a.createElement(a.h,{status:[a.c[(j=Z.exercise)===null||j===void 0?void 0:j.exercise_status]]})),o.a.createElement(st.a,null,o.a.createElement(St.a,{type:"primary",onClick:function(){return se("")},loading:Y},o.a.createElement(v.a,null),"\u5BFC\u51FA\u5F53\u524D\u8BD5\u5377"),Object(R.d)()&&o.a.createElement(St.a,{disabled:Y,className:"ml10",type:"primary",onClick:function(){return se("all")}},o.a.createElement(v.a,null),"\u5BFC\u51FA\u6240\u6709\u5B66\u751F\u8BD5\u5377"))))),o.a.createElement("section",{id:"export-all",className:[b.a.bg,"pt30","pb30","mt20","mb20","relative","pl60","pr30"].join(" "),ref:W},o.a.createElement(f.a,{isExportBlank:Kt}),o.a.createElement(At.a,{className:b.a.divider}),me()))};Mt.default=Object(h.a)(function($){var r=$.exercise,A=$.loading,e=$.user,S=$.globalSetting;return{exercise:r,globalSetting:S,user:e,loading:A.effects}})(g)},q5bB:function(Lt,Mt,H){Lt.exports={flex_box_center:"flex_box_center___uTq5a",flex_space_between:"flex_space_between___LTVj-",flex_box_vertical_center:"flex_box_vertical_center___1L3z-",flex_box_center_end:"flex_box_center_end___3ghBL",flex_box_column:"flex_box_column___2bU1n",bg:"bg___2iXhR",title:"title___2PlPP",questionIcons:"questionIcons___3jZbU",green:"green___1msyJ",orange:"orange___1uebJ",greenTip:"greenTip___1th4S",redTip:"redTip___18tx7",orangeTip:"orangeTip___2T44_",flexRow:"flexRow___14mZI",simpleWrap:"simpleWrap___325ES",divider:"divider___33qYV",modal:"modal___B_owv",programTitle:"programTitle___1CfOY"}},r0c9:function(Lt,Mt,H){(function(Jt,St){var Ft,Ft;/*!
JSZip v3.6.0 - A JavaScript class for generating and reading zip files
<http://stuartk.com/jszip>
(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/master/LICENSE.markdown.
JSZip uses the library pako released under the MIT license :
https://github.com/nodeca/pako/blob/master/LICENSE
*/!function(kt){Lt.exports=kt()}(function(){return function kt(Tt,At,Bt){function wt(pt,st){if(!At[pt]){if(!Tt[pt]){var Dt=typeof Ft=="function"&&Ft;if(!st&&Dt)return Ft(pt,!0);if(Ot)return Ot(pt,!0);var mt=new Error("Cannot find module '"+pt+"'");throw mt.code="MODULE_NOT_FOUND",mt}var ut=At[pt]={exports:{}};Tt[pt][0].call(ut.exports,function(ft){var yt=Tt[pt][1][ft];return wt(yt||ft)},ut,ut.exports,kt,Tt,At,Bt)}return At[pt].exports}for(var Ot=typeof Ft=="function"&&Ft,tt=0;tt<Bt.length;tt++)wt(Bt[tt]);return wt}({1:[function(kt,Tt,At){(function(Bt){!function(wt){typeof At=="object"&&Tt!==void 0?Tt.exports=wt():(typeof window!="undefined"?window:Bt!==void 0?Bt:typeof self!="undefined"?self:this).JSZip=wt()}(function(){return function wt(Ot,tt,pt){function st(ut,ft){if(!tt[ut]){if(!Ot[ut]){var yt=typeof kt=="function"&&kt;if(!ft&&yt)return yt(ut,!0);if(Dt)return Dt(ut,!0);var ct=new Error("Cannot find module '"+ut+"'");throw ct.code="MODULE_NOT_FOUND",ct}var it=tt[ut]={exports:{}};Ot[ut][0].call(it.exports,function(nt){return st(Ot[ut][1][nt]||nt)},it,it.exports,wt,Ot,tt,pt)}return tt[ut].exports}for(var Dt=typeof kt=="function"&&kt,mt=0;mt<pt.length;mt++)st(pt[mt]);return st}({1:[function(wt,Ot,tt){(function(pt){!function(st){typeof tt=="object"&&Ot!==void 0?Ot.exports=st():(typeof window!="undefined"?window:pt!==void 0?pt:typeof self!="undefined"?self:this).JSZip=st()}(function(){return function st(Dt,mt,ut){function ft(it,nt){if(!mt[it]){if(!Dt[it]){var ot=typeof wt=="function"&&wt;if(!nt&&ot)return ot(it,!0);if(yt)return yt(it,!0);var Et=new Error("Cannot find module '"+it+"'");throw Et.code="MODULE_NOT_FOUND",Et}var rt=mt[it]={exports:{}};Dt[it][0].call(rt.exports,function(o){return ft(Dt[it][1][o]||o)},rt,rt.exports,st,Dt,mt,ut)}return mt[it].exports}for(var yt=typeof wt=="function"&&wt,ct=0;ct<ut.length;ct++)ft(ut[ct]);return ft}({1:[function(st,Dt,mt){(function(ut){!function(ft){typeof mt=="object"&&Dt!==void 0?Dt.exports=ft():(typeof window!="undefined"?window:ut!==void 0?ut:typeof self!="undefined"?self:this).JSZip=ft()}(function(){return function ft(yt,ct,it){function nt(rt,o){if(!ct[rt]){if(!yt[rt]){var T=typeof st=="function"&&st;if(!o&&T)return T(rt,!0);if(ot)return ot(rt,!0);var x=new Error("Cannot find module '"+rt+"'");throw x.code="MODULE_NOT_FOUND",x}var h=ct[rt]={exports:{}};yt[rt][0].call(h.exports,function(p){return nt(yt[rt][1][p]||p)},h,h.exports,ft,yt,ct,it)}return ct[rt].exports}for(var ot=typeof st=="function"&&st,Et=0;Et<it.length;Et++)nt(it[Et]);return nt}({1:[function(ft,yt,ct){(function(it){!function(nt){typeof ct=="object"&&yt!==void 0?yt.exports=nt():(typeof window!="undefined"?window:it!==void 0?it:typeof self!="undefined"?self:this).JSZip=nt()}(function(){return function nt(ot,Et,rt){function o(h,p){if(!Et[h]){if(!ot[h]){var n=typeof ft=="function"&&ft;if(!p&&n)return n(h,!0);if(T)return T(h,!0);var u=new Error("Cannot find module '"+h+"'");throw u.code="MODULE_NOT_FOUND",u}var v=Et[h]={exports:{}};ot[h][0].call(v.exports,function(E){return o(ot[h][1][E]||E)},v,v.exports,nt,ot,Et,rt)}return Et[h].exports}for(var T=typeof ft=="function"&&ft,x=0;x<rt.length;x++)o(rt[x]);return o}({1:[function(nt,ot,Et){(function(rt){!function(o){typeof Et=="object"&&ot!==void 0?ot.exports=o():(typeof window!="undefined"?window:rt!==void 0?rt:typeof self!="undefined"?self:this).JSZip=o()}(function(){return function o(T,x,h){function p(v,E){if(!x[v]){if(!T[v]){var b=typeof nt=="function"&&nt;if(!E&&b)return b(v,!0);if(n)return n(v,!0);var y=new Error("Cannot find module '"+v+"'");throw y.code="MODULE_NOT_FOUND",y}var a=x[v]={exports:{}};T[v][0].call(a.exports,function(d){return p(T[v][1][d]||d)},a,a.exports,o,T,x,h)}return x[v].exports}for(var n=typeof nt=="function"&&nt,u=0;u<h.length;u++)p(h[u]);return p}({1:[function(o,T,x){"use strict";var h=o("./utils"),p=o("./support"),n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";x.encode=function(u){for(var v,E,b,y,a,d,_,l=[],i=0,f=u.length,O=f,D=h.getTypeOf(u)!=="string";i<u.length;)O=f-i,b=D?(v=u[i++],E=i<f?u[i++]:0,i<f?u[i++]:0):(v=u.charCodeAt(i++),E=i<f?u.charCodeAt(i++):0,i<f?u.charCodeAt(i++):0),y=v>>2,a=(3&v)<<4|E>>4,d=1<O?(15&E)<<2|b>>6:64,_=2<O?63&b:64,l.push(n.charAt(y)+n.charAt(a)+n.charAt(d)+n.charAt(_));return l.join("")},x.decode=function(u){var v,E,b,y,a,d,_=0,l=0;if(u.substr(0,"data:".length)==="data:")throw new Error("Invalid base64 input, it looks like a data url.");var i,f=3*(u=u.replace(/[^A-Za-z0-9\+\/\=]/g,"")).length/4;if(u.charAt(u.length-1)===n.charAt(64)&&f--,u.charAt(u.length-2)===n.charAt(64)&&f--,f%1!=0)throw new Error("Invalid base64 input, bad content length.");for(i=p.uint8array?new Uint8Array(0|f):new Array(0|f);_<u.length;)v=n.indexOf(u.charAt(_++))<<2|(y=n.indexOf(u.charAt(_++)))>>4,E=(15&y)<<4|(a=n.indexOf(u.charAt(_++)))>>2,b=(3&a)<<6|(d=n.indexOf(u.charAt(_++))),i[l++]=v,a!==64&&(i[l++]=E),d!==64&&(i[l++]=b);return i}},{"./support":30,"./utils":32}],2:[function(o,T,x){"use strict";var h=o("./external"),p=o("./stream/DataWorker"),n=o("./stream/Crc32Probe"),u=o("./stream/DataLengthProbe");function v(E,b,y,a,d){this.compressedSize=E,this.uncompressedSize=b,this.crc32=y,this.compression=a,this.compressedContent=d}v.prototype={getContentWorker:function(){var b=new p(h.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new u("data_length")),y=this;return b.on("end",function(){if(this.streamInfo.data_length!==y.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),b},getCompressedWorker:function(){return new p(h.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},v.createWorkerFrom=function(E,b,y){return E.pipe(new n).pipe(new u("uncompressedSize")).pipe(b.compressWorker(y)).pipe(new u("compressedSize")).withStreamInfo("compression",b)},T.exports=v},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(o,T,x){"use strict";var h=o("./stream/GenericWorker");x.STORE={magic:"\0\0",compressWorker:function(n){return new h("STORE compression")},uncompressWorker:function(){return new h("STORE decompression")}},x.DEFLATE=o("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(o,T,x){"use strict";var h=o("./utils"),p=function(){for(var n,u=[],v=0;v<256;v++){n=v;for(var E=0;E<8;E++)n=1&n?3988292384^n>>>1:n>>>1;u[v]=n}return u}();T.exports=function(n,u){return n!==void 0&&n.length?h.getTypeOf(n)!=="string"?function(v,E,b){var y=p,a=0+b;v^=-1;for(var d=0;d<a;d++)v=v>>>8^y[255&(v^E[d])];return-1^v}(0|u,n,n.length):function(v,E,b){var y=p,a=0+b;v^=-1;for(var d=0;d<a;d++)v=v>>>8^y[255&(v^E.charCodeAt(d))];return-1^v}(0|u,n,n.length):0}},{"./utils":32}],5:[function(o,T,x){"use strict";x.base64=!1,x.binary=!1,x.dir=!1,x.createFolders=!0,x.date=null,x.compression=null,x.compressionOptions=null,x.comment=null,x.unixPermissions=null,x.dosPermissions=null},{}],6:[function(o,T,x){"use strict";var h;h=typeof Promise!="undefined"?Promise:o("lie"),T.exports={Promise:h}},{lie:37}],7:[function(o,T,x){"use strict";var h=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined",p=o("pako"),n=o("./utils"),u=o("./stream/GenericWorker"),v=h?"uint8array":"array";function E(b,y){u.call(this,"FlateWorker/"+b),this._pako=null,this._pakoAction=b,this._pakoOptions=y,this.meta={}}x.magic="\b\0",n.inherits(E,u),E.prototype.processChunk=function(b){this.meta=b.meta,this._pako===null&&this._createPako(),this._pako.push(n.transformTo(v,b.data),!1)},E.prototype.flush=function(){u.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},E.prototype.cleanUp=function(){u.prototype.cleanUp.call(this),this._pako=null},E.prototype._createPako=function(){this._pako=new p[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var b=this;this._pako.onData=function(y){b.push({data:y,meta:b.meta})}},x.compressWorker=function(b){return new E("Deflate",b)},x.uncompressWorker=function(){return new E("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(o,T,x){"use strict";function h(a,d){var _,l="";for(_=0;_<d;_++)l+=String.fromCharCode(255&a),a>>>=8;return l}function p(a,d,_,l,i,f){var O,D,w=a.file,U=a.compression,R=f!==v.utf8encode,F=n.transformTo("string",f(w.name)),I=n.transformTo("string",v.utf8encode(w.name)),g=w.comment,$=n.transformTo("string",f(g)),r=n.transformTo("string",v.utf8encode(g)),A=I.length!==w.name.length,e=r.length!==g.length,S="",X="",M="",Q=w.dir,j=w.date,V={crc32:0,compressedSize:0,uncompressedSize:0};d&&!_||(V.crc32=a.crc32,V.compressedSize=a.compressedSize,V.uncompressedSize=a.uncompressedSize);var C=0;d&&(C|=8),R||!A&&!e||(C|=2048);var z,vt=0,c=0;Q&&(vt|=16),i==="UNIX"?(c=798,vt|=((z=w.unixPermissions)||(z=Q?16893:33204),(65535&z)<<16)):(c=20,vt|=63&(w.dosPermissions||0)),O=j.getUTCHours(),O<<=6,O|=j.getUTCMinutes(),O<<=5,O|=j.getUTCSeconds()/2,D=j.getUTCFullYear()-1980,D<<=4,D|=j.getUTCMonth()+1,D<<=5,D|=j.getUTCDate(),A&&(S+="up"+h((X=h(1,1)+h(E(F),4)+I).length,2)+X),e&&(S+="uc"+h((M=h(1,1)+h(E($),4)+r).length,2)+M);var k="";return k+=`
\0`,k+=h(C,2),k+=U.magic,k+=h(O,2),k+=h(D,2),k+=h(V.crc32,4),k+=h(V.compressedSize,4),k+=h(V.uncompressedSize,4),k+=h(F.length,2),k+=h(S.length,2),{fileRecord:b.LOCAL_FILE_HEADER+k+F+S,dirRecord:b.CENTRAL_FILE_HEADER+h(c,2)+k+h($.length,2)+"\0\0\0\0"+h(vt,4)+h(l,4)+F+S+$}}var n=o("../utils"),u=o("../stream/GenericWorker"),v=o("../utf8"),E=o("../crc32"),b=o("../signature");function y(a,d,_,l){u.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=d,this.zipPlatform=_,this.encodeFileName=l,this.streamFiles=a,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}n.inherits(y,u),y.prototype.push=function(a){var d=a.meta.percent||0,_=this.entriesCount,l=this._sources.length;this.accumulate?this.contentBuffer.push(a):(this.bytesWritten+=a.data.length,u.prototype.push.call(this,{data:a.data,meta:{currentFile:this.currentFile,percent:_?(d+100*(_-l-1))/_:100}}))},y.prototype.openedSource=function(a){this.currentSourceOffset=this.bytesWritten,this.currentFile=a.file.name;var d=this.streamFiles&&!a.file.dir;if(d){var _=p(a,d,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:_.fileRecord,meta:{percent:0}})}else this.accumulate=!0},y.prototype.closedSource=function(a){this.accumulate=!1;var d,_=this.streamFiles&&!a.file.dir,l=p(a,_,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(l.dirRecord),_)this.push({data:(d=a,b.DATA_DESCRIPTOR+h(d.crc32,4)+h(d.compressedSize,4)+h(d.uncompressedSize,4)),meta:{percent:100}});else for(this.push({data:l.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},y.prototype.flush=function(){for(var a=this.bytesWritten,d=0;d<this.dirRecords.length;d++)this.push({data:this.dirRecords[d],meta:{percent:100}});var _,l,i,f,O,D,w=this.bytesWritten-a,U=(_=this.dirRecords.length,l=w,i=a,f=this.zipComment,O=this.encodeFileName,D=n.transformTo("string",O(f)),b.CENTRAL_DIRECTORY_END+"\0\0\0\0"+h(_,2)+h(_,2)+h(l,4)+h(i,4)+h(D.length,2)+D);this.push({data:U,meta:{percent:100}})},y.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},y.prototype.registerPrevious=function(a){this._sources.push(a);var d=this;return a.on("data",function(_){d.processChunk(_)}),a.on("end",function(){d.closedSource(d.previous.streamInfo),d._sources.length?d.prepareNextSource():d.end()}),a.on("error",function(_){d.error(_)}),this},y.prototype.resume=function(){return!!u.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},y.prototype.error=function(a){var d=this._sources;if(!u.prototype.error.call(this,a))return!1;for(var _=0;_<d.length;_++)try{d[_].error(a)}catch(l){}return!0},y.prototype.lock=function(){u.prototype.lock.call(this);for(var a=this._sources,d=0;d<a.length;d++)a[d].lock()},T.exports=y},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(o,T,x){"use strict";var h=o("../compressions"),p=o("./ZipFileWorker");x.generateWorker=function(n,u,v){var E=new p(u.streamFiles,v,u.platform,u.encodeFileName),b=0;try{n.forEach(function(y,a){b++;var d=function(f,O){var D=f||O,w=h[D];if(!w)throw new Error(D+" is not a valid compression method !");return w}(a.options.compression,u.compression),_=a.options.compressionOptions||u.compressionOptions||{},l=a.dir,i=a.date;a._compressWorker(d,_).withStreamInfo("file",{name:y,dir:l,date:i,comment:a.comment||"",unixPermissions:a.unixPermissions,dosPermissions:a.dosPermissions}).pipe(E)}),E.entriesCount=b}catch(y){E.error(y)}return E}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(o,T,x){"use strict";function h(){if(!(this instanceof h))return new h;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files={},this.comment=null,this.root="",this.clone=function(){var p=new h;for(var n in this)typeof this[n]!="function"&&(p[n]=this[n]);return p}}(h.prototype=o("./object")).loadAsync=o("./load"),h.support=o("./support"),h.defaults=o("./defaults"),h.version="3.5.0",h.loadAsync=function(p,n){return new h().loadAsync(p,n)},h.external=o("./external"),T.exports=h},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(o,T,x){"use strict";var h=o("./utils"),p=o("./external"),n=o("./utf8"),u=o("./zipEntries"),v=o("./stream/Crc32Probe"),E=o("./nodejsUtils");function b(y){return new p.Promise(function(a,d){var _=y.decompressed.getContentWorker().pipe(new v);_.on("error",function(l){d(l)}).on("end",function(){_.streamInfo.crc32!==y.decompressed.crc32?d(new Error("Corrupted zip : CRC32 mismatch")):a()}).resume()})}T.exports=function(y,a){var d=this;return a=h.extend(a||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:n.utf8decode}),E.isNode&&E.isStream(y)?p.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):h.prepareContent("the loaded zip file",y,!0,a.optimizedBinaryString,a.base64).then(function(_){var l=new u(a);return l.load(_),l}).then(function(_){var l=[p.Promise.resolve(_)],i=_.files;if(a.checkCRC32)for(var f=0;f<i.length;f++)l.push(b(i[f]));return p.Promise.all(l)}).then(function(_){for(var l=_.shift(),i=l.files,f=0;f<i.length;f++){var O=i[f];d.file(O.fileNameStr,O.decompressed,{binary:!0,optimizedBinaryString:!0,date:O.date,dir:O.dir,comment:O.fileCommentStr.length?O.fileCommentStr:null,unixPermissions:O.unixPermissions,dosPermissions:O.dosPermissions,createFolders:a.createFolders})}return l.zipComment.length&&(d.comment=l.zipComment),d})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(o,T,x){"use strict";var h=o("../utils"),p=o("../stream/GenericWorker");function n(u,v){p.call(this,"Nodejs stream input adapter for "+u),this._upstreamEnded=!1,this._bindStream(v)}h.inherits(n,p),n.prototype._bindStream=function(u){var v=this;(this._stream=u).pause(),u.on("data",function(E){v.push({data:E,meta:{percent:0}})}).on("error",function(E){v.isPaused?this.generatedError=E:v.error(E)}).on("end",function(){v.isPaused?v._upstreamEnded=!0:v.end()})},n.prototype.pause=function(){return!!p.prototype.pause.call(this)&&(this._stream.pause(),!0)},n.prototype.resume=function(){return!!p.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},T.exports=n},{"../stream/GenericWorker":28,"../utils":32}],13:[function(o,T,x){"use strict";var h=o("readable-stream").Readable;function p(n,u,v){h.call(this,u),this._helper=n;var E=this;n.on("data",function(b,y){E.push(b)||E._helper.pause(),v&&v(y)}).on("error",function(b){E.emit("error",b)}).on("end",function(){E.push(null)})}o("../utils").inherits(p,h),p.prototype._read=function(){this._helper.resume()},T.exports=p},{"../utils":32,"readable-stream":16}],14:[function(o,T,x){"use strict";T.exports={isNode:typeof St!="undefined",newBufferFrom:function(p,n){if(St.from&&St.from!==Uint8Array.from)return St.from(p,n);if(typeof p=="number")throw new Error('The "data" argument must not be a number');return new St(p,n)},allocBuffer:function(p){if(St.alloc)return St.alloc(p);var n=new St(p);return n.fill(0),n},isBuffer:function(p){return St.isBuffer(p)},isStream:function(p){return p&&typeof p.on=="function"&&typeof p.pause=="function"&&typeof p.resume=="function"}}},{}],15:[function(o,T,x){"use strict";function h(D,w,U){var R,F=u.getTypeOf(w),I=u.extend(U||{},b);I.date=I.date||new Date,I.compression!==null&&(I.compression=I.compression.toUpperCase()),typeof I.unixPermissions=="string"&&(I.unixPermissions=parseInt(I.unixPermissions,8)),I.unixPermissions&&16384&I.unixPermissions&&(I.dir=!0),I.dosPermissions&&16&I.dosPermissions&&(I.dir=!0),I.dir&&(D=p(D)),I.createFolders&&(R=function(A){A.slice(-1)==="/"&&(A=A.substring(0,A.length-1));var e=A.lastIndexOf("/");return 0<e?A.substring(0,e):""}(D))&&i.call(this,R,!0);var g,$=F==="string"&&I.binary===!1&&I.base64===!1;U&&U.binary!==void 0||(I.binary=!$),(w instanceof y&&w.uncompressedSize===0||I.dir||!w||w.length===0)&&(I.base64=!1,I.binary=!0,w="",I.compression="STORE",F="string"),g=w instanceof y||w instanceof v?w:_.isNode&&_.isStream(w)?new l(D,w):u.prepareContent(D,w,I.binary,I.optimizedBinaryString,I.base64);var r=new a(D,g,I);this.files[D]=r}function p(D){return D.slice(-1)!=="/"&&(D+="/"),D}var n=o("./utf8"),u=o("./utils"),v=o("./stream/GenericWorker"),E=o("./stream/StreamHelper"),b=o("./defaults"),y=o("./compressedObject"),a=o("./zipObject"),d=o("./generate"),_=o("./nodejsUtils"),l=o("./nodejs/NodejsStreamInputAdapter"),i=function(w,U){return U=U!==void 0?U:b.createFolders,w=p(w),this.files[w]||h.call(this,w,null,{dir:!0,createFolders:U}),this.files[w]};function f(D){return Object.prototype.toString.call(D)==="[object RegExp]"}var O={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(w){var U,R,F;for(U in this.files)this.files.hasOwnProperty(U)&&(F=this.files[U],(R=U.slice(this.root.length,U.length))&&U.slice(0,this.root.length)===this.root&&w(R,F))},filter:function(w){var U=[];return this.forEach(function(R,F){w(R,F)&&U.push(F)}),U},file:function(w,U,R){if(arguments.length!==1)return w=this.root+w,h.call(this,w,U,R),this;if(f(w)){var F=w;return this.filter(function(g,$){return!$.dir&&F.test(g)})}var I=this.files[this.root+w];return I&&!I.dir?I:null},folder:function(w){if(!w)return this;if(f(w))return this.filter(function(I,g){return g.dir&&w.test(I)});var U=this.root+w,R=i.call(this,U),F=this.clone();return F.root=R.name,F},remove:function(w){w=this.root+w;var U=this.files[w];if(U||(w.slice(-1)!=="/"&&(w+="/"),U=this.files[w]),U&&!U.dir)delete this.files[w];else for(var R=this.filter(function(I,g){return g.name.slice(0,w.length)===w}),F=0;F<R.length;F++)delete this.files[R[F].name];return this},generate:function(w){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(w){var U,R={};try{if((R=u.extend(w||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:n.utf8encode})).type=R.type.toLowerCase(),R.compression=R.compression.toUpperCase(),R.type==="binarystring"&&(R.type="string"),!R.type)throw new Error("No output type specified.");u.checkSupport(R.type),R.platform!=="darwin"&&R.platform!=="freebsd"&&R.platform!=="linux"&&R.platform!=="sunos"||(R.platform="UNIX"),R.platform==="win32"&&(R.platform="DOS");var F=R.comment||this.comment||"";U=d.generateWorker(this,R,F)}catch(I){(U=new v("error")).error(I)}return new E(U,R.type||"string",R.mimeType)},generateAsync:function(w,U){return this.generateInternalStream(w).accumulate(U)},generateNodeStream:function(w,U){return(w=w||{}).type||(w.type="nodebuffer"),this.generateInternalStream(w).toNodejsStream(U)}};T.exports=O},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(o,T,x){T.exports=o("stream")},{stream:void 0}],17:[function(o,T,x){"use strict";var h=o("./DataReader");function p(n){h.call(this,n);for(var u=0;u<this.data.length;u++)n[u]=255&n[u]}o("../utils").inherits(p,h),p.prototype.byteAt=function(n){return this.data[this.zero+n]},p.prototype.lastIndexOfSignature=function(n){for(var u=n.charCodeAt(0),v=n.charCodeAt(1),E=n.charCodeAt(2),b=n.charCodeAt(3),y=this.length-4;0<=y;--y)if(this.data[y]===u&&this.data[y+1]===v&&this.data[y+2]===E&&this.data[y+3]===b)return y-this.zero;return-1},p.prototype.readAndCheckSignature=function(n){var u=n.charCodeAt(0),v=n.charCodeAt(1),E=n.charCodeAt(2),b=n.charCodeAt(3),y=this.readData(4);return u===y[0]&&v===y[1]&&E===y[2]&&b===y[3]},p.prototype.readData=function(n){if(this.checkOffset(n),n===0)return[];var u=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,u},T.exports=p},{"../utils":32,"./DataReader":18}],18:[function(o,T,x){"use strict";var h=o("../utils");function p(n){this.data=n,this.length=n.length,this.index=0,this.zero=0}p.prototype={checkOffset:function(u){this.checkIndex(this.index+u)},checkIndex:function(u){if(this.length<this.zero+u||u<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+u+"). Corrupted zip ?")},setIndex:function(u){this.checkIndex(u),this.index=u},skip:function(u){this.setIndex(this.index+u)},byteAt:function(u){},readInt:function(u){var v,E=0;for(this.checkOffset(u),v=this.index+u-1;v>=this.index;v--)E=(E<<8)+this.byteAt(v);return this.index+=u,E},readString:function(u){return h.transformTo("string",this.readData(u))},readData:function(u){},lastIndexOfSignature:function(u){},readAndCheckSignature:function(u){},readDate:function(){var u=this.readInt(4);return new Date(Date.UTC(1980+(u>>25&127),(u>>21&15)-1,u>>16&31,u>>11&31,u>>5&63,(31&u)<<1))}},T.exports=p},{"../utils":32}],19:[function(o,T,x){"use strict";var h=o("./Uint8ArrayReader");function p(n){h.call(this,n)}o("../utils").inherits(p,h),p.prototype.readData=function(n){this.checkOffset(n);var u=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,u},T.exports=p},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(o,T,x){"use strict";var h=o("./DataReader");function p(n){h.call(this,n)}o("../utils").inherits(p,h),p.prototype.byteAt=function(n){return this.data.charCodeAt(this.zero+n)},p.prototype.lastIndexOfSignature=function(n){return this.data.lastIndexOf(n)-this.zero},p.prototype.readAndCheckSignature=function(n){return n===this.readData(4)},p.prototype.readData=function(n){this.checkOffset(n);var u=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,u},T.exports=p},{"../utils":32,"./DataReader":18}],21:[function(o,T,x){"use strict";var h=o("./ArrayReader");function p(n){h.call(this,n)}o("../utils").inherits(p,h),p.prototype.readData=function(n){if(this.checkOffset(n),n===0)return new Uint8Array(0);var u=this.data.subarray(this.zero+this.index,this.zero+this.index+n);return this.index+=n,u},T.exports=p},{"../utils":32,"./ArrayReader":17}],22:[function(o,T,x){"use strict";var h=o("../utils"),p=o("../support"),n=o("./ArrayReader"),u=o("./StringReader"),v=o("./NodeBufferReader"),E=o("./Uint8ArrayReader");T.exports=function(b){var y=h.getTypeOf(b);return h.checkSupport(y),y!=="string"||p.uint8array?y==="nodebuffer"?new v(b):p.uint8array?new E(h.transformTo("uint8array",b)):new n(h.transformTo("array",b)):new u(b)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(o,T,x){"use strict";x.LOCAL_FILE_HEADER="PK",x.CENTRAL_FILE_HEADER="PK",x.CENTRAL_DIRECTORY_END="PK",x.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",x.ZIP64_CENTRAL_DIRECTORY_END="PK",x.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(o,T,x){"use strict";var h=o("./GenericWorker"),p=o("../utils");function n(u){h.call(this,"ConvertWorker to "+u),this.destType=u}p.inherits(n,h),n.prototype.processChunk=function(u){this.push({data:p.transformTo(this.destType,u.data),meta:u.meta})},T.exports=n},{"../utils":32,"./GenericWorker":28}],25:[function(o,T,x){"use strict";var h=o("./GenericWorker"),p=o("../crc32");function n(){h.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}o("../utils").inherits(n,h),n.prototype.processChunk=function(u){this.streamInfo.crc32=p(u.data,this.streamInfo.crc32||0),this.push(u)},T.exports=n},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(o,T,x){"use strict";var h=o("../utils"),p=o("./GenericWorker");function n(u){p.call(this,"DataLengthProbe for "+u),this.propName=u,this.withStreamInfo(u,0)}h.inherits(n,p),n.prototype.processChunk=function(u){if(u){var v=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=v+u.data.length}p.prototype.processChunk.call(this,u)},T.exports=n},{"../utils":32,"./GenericWorker":28}],27:[function(o,T,x){"use strict";var h=o("../utils"),p=o("./GenericWorker");function n(u){p.call(this,"DataWorker");var v=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,u.then(function(E){v.dataIsReady=!0,v.data=E,v.max=E&&E.length||0,v.type=h.getTypeOf(E),v.isPaused||v._tickAndRepeat()},function(E){v.error(E)})}h.inherits(n,p),n.prototype.cleanUp=function(){p.prototype.cleanUp.call(this),this.data=null},n.prototype.resume=function(){return!!p.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,h.delay(this._tickAndRepeat,[],this)),!0)},n.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(h.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},n.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var u=null,v=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":u=this.data.substring(this.index,v);break;case"uint8array":u=this.data.subarray(this.index,v);break;case"array":case"nodebuffer":u=this.data.slice(this.index,v)}return this.index=v,this.push({data:u,meta:{percent:this.max?this.index/this.max*100:0}})},T.exports=n},{"../utils":32,"./GenericWorker":28}],28:[function(o,T,x){"use strict";function h(p){this.name=p||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}h.prototype={push:function(n){this.emit("data",n)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(n){this.emit("error",n)}return!0},error:function(n){return!this.isFinished&&(this.isPaused?this.generatedError=n:(this.isFinished=!0,this.emit("error",n),this.previous&&this.previous.error(n),this.cleanUp()),!0)},on:function(n,u){return this._listeners[n].push(u),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(n,u){if(this._listeners[n])for(var v=0;v<this._listeners[n].length;v++)this._listeners[n][v].call(this,u)},pipe:function(n){return n.registerPrevious(this)},registerPrevious:function(n){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=n.streamInfo,this.mergeStreamInfo(),this.previous=n;var u=this;return n.on("data",function(v){u.processChunk(v)}),n.on("end",function(){u.end()}),n.on("error",function(v){u.error(v)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var n=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),n=!0),this.previous&&this.previous.resume(),!n},flush:function(){},processChunk:function(n){this.push(n)},withStreamInfo:function(n,u){return this.extraStreamInfo[n]=u,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var n in this.extraStreamInfo)this.extraStreamInfo.hasOwnProperty(n)&&(this.streamInfo[n]=this.extraStreamInfo[n])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var n="Worker "+this.name;return this.previous?this.previous+" -> "+n:n}},T.exports=h},{}],29:[function(o,T,x){"use strict";var h=o("../utils"),p=o("./ConvertWorker"),n=o("./GenericWorker"),u=o("../base64"),v=o("../support"),E=o("../external"),b=null;if(v.nodestream)try{b=o("../nodejs/NodejsStreamOutputAdapter")}catch(a){}function y(a,d,_){var l=d;switch(d){case"blob":case"arraybuffer":l="uint8array";break;case"base64":l="string"}try{this._internalType=l,this._outputType=d,this._mimeType=_,h.checkSupport(l),this._worker=a.pipe(new p(l)),a.lock()}catch(i){this._worker=new n("error"),this._worker.error(i)}}y.prototype={accumulate:function(d){return _=this,l=d,new E.Promise(function(i,f){var O=[],D=_._internalType,w=_._outputType,U=_._mimeType;_.on("data",function(R,F){O.push(R),l&&l(F)}).on("error",function(R){O=[],f(R)}).on("end",function(){try{var R=function(F,I,g){switch(F){case"blob":return h.newBlob(h.transformTo("arraybuffer",I),g);case"base64":return u.encode(I);default:return h.transformTo(F,I)}}(w,function(F,I){var g,$=0,r=null,A=0;for(g=0;g<I.length;g++)A+=I[g].length;switch(F){case"string":return I.join("");case"array":return Array.prototype.concat.apply([],I);case"uint8array":for(r=new Uint8Array(A),g=0;g<I.length;g++)r.set(I[g],$),$+=I[g].length;return r;case"nodebuffer":return St.concat(I);default:throw new Error("concat : unsupported type '"+F+"'")}}(D,O),U);i(R)}catch(F){f(F)}O=[]}).resume()});var _,l},on:function(d,_){var l=this;return d==="data"?this._worker.on(d,function(i){_.call(l,i.data,i.meta)}):this._worker.on(d,function(){h.delay(_,arguments,l)}),this},resume:function(){return h.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(d){if(h.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new b(this,{objectMode:this._outputType!=="nodebuffer"},d)}},T.exports=y},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(o,T,x){"use strict";if(x.base64=!0,x.array=!0,x.string=!0,x.arraybuffer=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined",x.nodebuffer=typeof St!="undefined",x.uint8array=typeof Uint8Array!="undefined",typeof ArrayBuffer=="undefined")x.blob=!1;else{var h=new ArrayBuffer(0);try{x.blob=new Blob([h],{type:"application/zip"}).size===0}catch(n){try{var p=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);p.append(h),x.blob=p.getBlob("application/zip").size===0}catch(u){x.blob=!1}}}try{x.nodestream=!!o("readable-stream").Readable}catch(n){x.nodestream=!1}},{"readable-stream":16}],31:[function(o,T,x){"use strict";for(var h=o("./utils"),p=o("./support"),n=o("./nodejsUtils"),u=o("./stream/GenericWorker"),v=new Array(256),E=0;E<256;E++)v[E]=252<=E?6:248<=E?5:240<=E?4:224<=E?3:192<=E?2:1;function b(){u.call(this,"utf-8 decode"),this.leftOver=null}function y(){u.call(this,"utf-8 encode")}v[254]=v[254]=1,x.utf8encode=function(a){return p.nodebuffer?n.newBufferFrom(a,"utf-8"):function(d){var _,l,i,f,O,D=d.length,w=0;for(f=0;f<D;f++)(64512&(l=d.charCodeAt(f)))==55296&&f+1<D&&(64512&(i=d.charCodeAt(f+1)))==56320&&(l=65536+(l-55296<<10)+(i-56320),f++),w+=l<128?1:l<2048?2:l<65536?3:4;for(_=p.uint8array?new Uint8Array(w):new Array(w),f=O=0;O<w;f++)(64512&(l=d.charCodeAt(f)))==55296&&f+1<D&&(64512&(i=d.charCodeAt(f+1)))==56320&&(l=65536+(l-55296<<10)+(i-56320),f++),l<128?_[O++]=l:(l<2048?_[O++]=192|l>>>6:(l<65536?_[O++]=224|l>>>12:(_[O++]=240|l>>>18,_[O++]=128|l>>>12&63),_[O++]=128|l>>>6&63),_[O++]=128|63&l);return _}(a)},x.utf8decode=function(a){return p.nodebuffer?h.transformTo("nodebuffer",a).toString("utf-8"):function(d){var _,l,i,f,O=d.length,D=new Array(2*O);for(_=l=0;_<O;)if((i=d[_++])<128)D[l++]=i;else if(4<(f=v[i]))D[l++]=65533,_+=f-1;else{for(i&=f===2?31:f===3?15:7;1<f&&_<O;)i=i<<6|63&d[_++],f--;1<f?D[l++]=65533:i<65536?D[l++]=i:(i-=65536,D[l++]=55296|i>>10&1023,D[l++]=56320|1023&i)}return D.length!==l&&(D.subarray?D=D.subarray(0,l):D.length=l),h.applyFromCharCode(D)}(a=h.transformTo(p.uint8array?"uint8array":"array",a))},h.inherits(b,u),b.prototype.processChunk=function(a){var d=h.transformTo(p.uint8array?"uint8array":"array",a.data);if(this.leftOver&&this.leftOver.length){if(p.uint8array){var _=d;(d=new Uint8Array(_.length+this.leftOver.length)).set(this.leftOver,0),d.set(_,this.leftOver.length)}else d=this.leftOver.concat(d);this.leftOver=null}var l=function(f,O){var D;for((O=O||f.length)>f.length&&(O=f.length),D=O-1;0<=D&&(192&f[D])==128;)D--;return D<0||D===0?O:D+v[f[D]]>O?D:O}(d),i=d;l!==d.length&&(p.uint8array?(i=d.subarray(0,l),this.leftOver=d.subarray(l,d.length)):(i=d.slice(0,l),this.leftOver=d.slice(l,d.length))),this.push({data:x.utf8decode(i),meta:a.meta})},b.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:x.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},x.Utf8DecodeWorker=b,h.inherits(y,u),y.prototype.processChunk=function(a){this.push({data:x.utf8encode(a.data),meta:a.meta})},x.Utf8EncodeWorker=y},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(o,T,x){"use strict";var h=o("./support"),p=o("./base64"),n=o("./nodejsUtils"),u=o("set-immediate-shim"),v=o("./external");function E(l){return l}function b(l,i){for(var f=0;f<l.length;++f)i[f]=255&l.charCodeAt(f);return i}x.newBlob=function(l,i){x.checkSupport("blob");try{return new Blob([l],{type:i})}catch(O){try{var f=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return f.append(l),f.getBlob(i)}catch(D){throw new Error("Bug : can't construct the Blob.")}}};var y={stringifyByChunk:function(i,f,O){var D=[],w=0,U=i.length;if(U<=O)return String.fromCharCode.apply(null,i);for(;w<U;)f==="array"||f==="nodebuffer"?D.push(String.fromCharCode.apply(null,i.slice(w,Math.min(w+O,U)))):D.push(String.fromCharCode.apply(null,i.subarray(w,Math.min(w+O,U)))),w+=O;return D.join("")},stringifyByChar:function(i){for(var f="",O=0;O<i.length;O++)f+=String.fromCharCode(i[O]);return f},applyCanBeUsed:{uint8array:function(){try{return h.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(l){return!1}}(),nodebuffer:function(){try{return h.nodebuffer&&String.fromCharCode.apply(null,n.allocBuffer(1)).length===1}catch(l){return!1}}()}};function a(l){var i=65536,f=x.getTypeOf(l),O=!0;if(f==="uint8array"?O=y.applyCanBeUsed.uint8array:f==="nodebuffer"&&(O=y.applyCanBeUsed.nodebuffer),O)for(;1<i;)try{return y.stringifyByChunk(l,f,i)}catch(D){i=Math.floor(i/2)}return y.stringifyByChar(l)}function d(l,i){for(var f=0;f<l.length;f++)i[f]=l[f];return i}x.applyFromCharCode=a;var _={};_.string={string:E,array:function(i){return b(i,new Array(i.length))},arraybuffer:function(i){return _.string.uint8array(i).buffer},uint8array:function(i){return b(i,new Uint8Array(i.length))},nodebuffer:function(i){return b(i,n.allocBuffer(i.length))}},_.array={string:a,array:E,arraybuffer:function(i){return new Uint8Array(i).buffer},uint8array:function(i){return new Uint8Array(i)},nodebuffer:function(i){return n.newBufferFrom(i)}},_.arraybuffer={string:function(i){return a(new Uint8Array(i))},array:function(i){return d(new Uint8Array(i),new Array(i.byteLength))},arraybuffer:E,uint8array:function(i){return new Uint8Array(i)},nodebuffer:function(i){return n.newBufferFrom(new Uint8Array(i))}},_.uint8array={string:a,array:function(i){return d(i,new Array(i.length))},arraybuffer:function(i){return i.buffer},uint8array:E,nodebuffer:function(i){return n.newBufferFrom(i)}},_.nodebuffer={string:a,array:function(i){return d(i,new Array(i.length))},arraybuffer:function(i){return _.nodebuffer.uint8array(i).buffer},uint8array:function(i){return d(i,new Uint8Array(i.length))},nodebuffer:E},x.transformTo=function(l,i){if(i=i||"",!l)return i;x.checkSupport(l);var f=x.getTypeOf(i);return _[f][l](i)},x.getTypeOf=function(l){return typeof l=="string"?"string":Object.prototype.toString.call(l)==="[object Array]"?"array":h.nodebuffer&&n.isBuffer(l)?"nodebuffer":h.uint8array&&l instanceof Uint8Array?"uint8array":h.arraybuffer&&l instanceof ArrayBuffer?"arraybuffer":void 0},x.checkSupport=function(l){if(!h[l.toLowerCase()])throw new Error(l+" is not supported by this platform")},x.MAX_VALUE_16BITS=65535,x.MAX_VALUE_32BITS=-1,x.pretty=function(l){var i,f,O="";for(f=0;f<(l||"").length;f++)O+="\\x"+((i=l.charCodeAt(f))<16?"0":"")+i.toString(16).toUpperCase();return O},x.delay=function(l,i,f){u(function(){l.apply(f||null,i||[])})},x.inherits=function(l,i){function f(){}f.prototype=i.prototype,l.prototype=new f},x.extend=function(){var l,i,f={};for(l=0;l<arguments.length;l++)for(i in arguments[l])arguments[l].hasOwnProperty(i)&&f[i]===void 0&&(f[i]=arguments[l][i]);return f},x.prepareContent=function(l,i,f,O,D){return v.Promise.resolve(i).then(function(w){return h.blob&&(w instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(w))!==-1)&&typeof FileReader!="undefined"?new v.Promise(function(U,R){var F=new FileReader;F.onload=function(I){U(I.target.result)},F.onerror=function(I){R(I.target.error)},F.readAsArrayBuffer(w)}):w}).then(function(w){var U,R=x.getTypeOf(w);return R?(R==="arraybuffer"?w=x.transformTo("uint8array",w):R==="string"&&(D?w=p.decode(w):f&&O!==!0&&(w=b(U=w,h.uint8array?new Uint8Array(U.length):new Array(U.length)))),w):v.Promise.reject(new Error("Can't read the data of '"+l+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,"set-immediate-shim":54}],33:[function(o,T,x){"use strict";var h=o("./reader/readerFor"),p=o("./utils"),n=o("./signature"),u=o("./zipEntry"),v=(o("./utf8"),o("./support"));function E(b){this.files=[],this.loadOptions=b}E.prototype={checkSignature:function(y){if(!this.reader.readAndCheckSignature(y)){this.reader.index-=4;var a=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+p.pretty(a)+", expected "+p.pretty(y)+")")}},isSignature:function(y,a){var d=this.reader.index;this.reader.setIndex(y);var _=this.reader.readString(4)===a;return this.reader.setIndex(d),_},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var y=this.reader.readData(this.zipCommentLength),a=v.uint8array?"uint8array":"array",d=p.transformTo(a,y);this.zipComment=this.loadOptions.decodeFileName(d)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var y,a,d,_=this.zip64EndOfCentralSize-44;0<_;)y=this.reader.readInt(2),a=this.reader.readInt(4),d=this.reader.readData(a),this.zip64ExtensibleData[y]={id:y,length:a,value:d}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var y,a;for(y=0;y<this.files.length;y++)a=this.files[y],this.reader.setIndex(a.localHeaderOffset),this.checkSignature(n.LOCAL_FILE_HEADER),a.readLocalPart(this.reader),a.handleUTF8(),a.processAttributes()},readCentralDir:function(){var y;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(n.CENTRAL_FILE_HEADER);)(y=new u({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(y);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var y=this.reader.lastIndexOfSignature(n.CENTRAL_DIRECTORY_END);if(y<0)throw this.isSignature(0,n.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(y);var a=y;if(this.checkSignature(n.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===p.MAX_VALUE_16BITS||this.diskWithCentralDirStart===p.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===p.MAX_VALUE_16BITS||this.centralDirRecords===p.MAX_VALUE_16BITS||this.centralDirSize===p.MAX_VALUE_32BITS||this.centralDirOffset===p.MAX_VALUE_32BITS){if(this.zip64=!0,(y=this.reader.lastIndexOfSignature(n.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(y),this.checkSignature(n.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,n.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(n.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(n.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var d=this.centralDirOffset+this.centralDirSize;this.zip64&&(d+=20,d+=12+this.zip64EndOfCentralSize);var _=a-d;if(0<_)this.isSignature(a,n.CENTRAL_FILE_HEADER)||(this.reader.zero=_);else if(_<0)throw new Error("Corrupted zip: missing "+Math.abs(_)+" bytes.")},prepareReader:function(y){this.reader=h(y)},load:function(y){this.prepareReader(y),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},T.exports=E},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utf8":31,"./utils":32,"./zipEntry":34}],34:[function(o,T,x){"use strict";var h=o("./reader/readerFor"),p=o("./utils"),n=o("./compressedObject"),u=o("./crc32"),v=o("./utf8"),E=o("./compressions"),b=o("./support");function y(a,d){this.options=a,this.loadOptions=d}y.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(d){var _,l;if(d.skip(22),this.fileNameLength=d.readInt(2),l=d.readInt(2),this.fileName=d.readData(this.fileNameLength),d.skip(l),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((_=function(i){for(var f in E)if(E.hasOwnProperty(f)&&E[f].magic===i)return E[f];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+p.pretty(this.compressionMethod)+" unknown (inner file : "+p.transformTo("string",this.fileName)+")");this.decompressed=new n(this.compressedSize,this.uncompressedSize,this.crc32,_,d.readData(this.compressedSize))},readCentralPart:function(d){this.versionMadeBy=d.readInt(2),d.skip(2),this.bitFlag=d.readInt(2),this.compressionMethod=d.readString(2),this.date=d.readDate(),this.crc32=d.readInt(4),this.compressedSize=d.readInt(4),this.uncompressedSize=d.readInt(4);var _=d.readInt(2);if(this.extraFieldsLength=d.readInt(2),this.fileCommentLength=d.readInt(2),this.diskNumberStart=d.readInt(2),this.internalFileAttributes=d.readInt(2),this.externalFileAttributes=d.readInt(4),this.localHeaderOffset=d.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");d.skip(_),this.readExtraFields(d),this.parseZIP64ExtraField(d),this.fileComment=d.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var d=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),d==0&&(this.dosPermissions=63&this.externalFileAttributes),d==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(d){if(this.extraFields[1]){var _=h(this.extraFields[1].value);this.uncompressedSize===p.MAX_VALUE_32BITS&&(this.uncompressedSize=_.readInt(8)),this.compressedSize===p.MAX_VALUE_32BITS&&(this.compressedSize=_.readInt(8)),this.localHeaderOffset===p.MAX_VALUE_32BITS&&(this.localHeaderOffset=_.readInt(8)),this.diskNumberStart===p.MAX_VALUE_32BITS&&(this.diskNumberStart=_.readInt(4))}},readExtraFields:function(d){var _,l,i,f=d.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});d.index+4<f;)_=d.readInt(2),l=d.readInt(2),i=d.readData(l),this.extraFields[_]={id:_,length:l,value:i};d.setIndex(f)},handleUTF8:function(){var d=b.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=v.utf8decode(this.fileName),this.fileCommentStr=v.utf8decode(this.fileComment);else{var _=this.findExtraFieldUnicodePath();if(_!==null)this.fileNameStr=_;else{var l=p.transformTo(d,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(l)}var i=this.findExtraFieldUnicodeComment();if(i!==null)this.fileCommentStr=i;else{var f=p.transformTo(d,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(f)}}},findExtraFieldUnicodePath:function(){var d=this.extraFields[28789];if(d){var _=h(d.value);return _.readInt(1)!==1||u(this.fileName)!==_.readInt(4)?null:v.utf8decode(_.readData(d.length-5))}return null},findExtraFieldUnicodeComment:function(){var d=this.extraFields[25461];if(d){var _=h(d.value);return _.readInt(1)!==1||u(this.fileComment)!==_.readInt(4)?null:v.utf8decode(_.readData(d.length-5))}return null}},T.exports=y},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(o,T,x){"use strict";function h(d,_,l){this.name=d,this.dir=l.dir,this.date=l.date,this.comment=l.comment,this.unixPermissions=l.unixPermissions,this.dosPermissions=l.dosPermissions,this._data=_,this._dataBinary=l.binary,this.options={compression:l.compression,compressionOptions:l.compressionOptions}}var p=o("./stream/StreamHelper"),n=o("./stream/DataWorker"),u=o("./utf8"),v=o("./compressedObject"),E=o("./stream/GenericWorker");h.prototype={internalStream:function(_){var l=null,i="string";try{if(!_)throw new Error("No output type specified.");var f=(i=_.toLowerCase())==="string"||i==="text";i!=="binarystring"&&i!=="text"||(i="string"),l=this._decompressWorker();var O=!this._dataBinary;O&&!f&&(l=l.pipe(new u.Utf8EncodeWorker)),!O&&f&&(l=l.pipe(new u.Utf8DecodeWorker))}catch(D){(l=new E("error")).error(D)}return new p(l,i,"")},async:function(_,l){return this.internalStream(_).accumulate(l)},nodeStream:function(_,l){return this.internalStream(_||"nodebuffer").toNodejsStream(l)},_compressWorker:function(_,l){if(this._data instanceof v&&this._data.compression.magic===_.magic)return this._data.getCompressedWorker();var i=this._decompressWorker();return this._dataBinary||(i=i.pipe(new u.Utf8EncodeWorker)),v.createWorkerFrom(i,_,l)},_decompressWorker:function(){return this._data instanceof v?this._data.getContentWorker():this._data instanceof E?this._data:new n(this._data)}};for(var b=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],y=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},a=0;a<b.length;a++)h.prototype[b[a]]=y;T.exports=h},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(o,T,x){(function(h){"use strict";var p,n,u=h.MutationObserver||h.WebKitMutationObserver;if(u){var v=0,E=new u(d),b=h.document.createTextNode("");E.observe(b,{characterData:!0}),p=function(){b.data=v=++v%2}}else if(h.setImmediate||h.MessageChannel===void 0)p="document"in h&&"onreadystatechange"in h.document.createElement("script")?function(){var _=h.document.createElement("script");_.onreadystatechange=function(){d(),_.onreadystatechange=null,_.parentNode.removeChild(_),_=null},h.document.documentElement.appendChild(_)}:function(){setTimeout(d,0)};else{var y=new h.MessageChannel;y.port1.onmessage=d,p=function(){y.port2.postMessage(0)}}var a=[];function d(){var _,l;n=!0;for(var i=a.length;i;){for(l=a,a=[],_=-1;++_<i;)l[_]();i=a.length}n=!1}T.exports=function(_){a.push(_)!==1||n||p()}}).call(this,rt!==void 0?rt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],37:[function(o,T,x){"use strict";var h=o("immediate");function p(){}var n={},u=["REJECTED"],v=["FULFILLED"],E=["PENDING"];function b(i){if(typeof i!="function")throw new TypeError("resolver must be a function");this.state=E,this.queue=[],this.outcome=void 0,i!==p&&_(this,i)}function y(i,f,O){this.promise=i,typeof f=="function"&&(this.onFulfilled=f,this.callFulfilled=this.otherCallFulfilled),typeof O=="function"&&(this.onRejected=O,this.callRejected=this.otherCallRejected)}function a(i,f,O){h(function(){var D;try{D=f(O)}catch(w){return n.reject(i,w)}D===i?n.reject(i,new TypeError("Cannot resolve promise with itself")):n.resolve(i,D)})}function d(i){var f=i&&i.then;if(i&&(typeof i=="object"||typeof i=="function")&&typeof f=="function")return function(){f.apply(i,arguments)}}function _(i,f){var O=!1;function D(R){O||(O=!0,n.reject(i,R))}function w(R){O||(O=!0,n.resolve(i,R))}var U=l(function(){f(w,D)});U.status==="error"&&D(U.value)}function l(i,f){var O={};try{O.value=i(f),O.status="success"}catch(D){O.status="error",O.value=D}return O}(T.exports=b).prototype.finally=function(i){if(typeof i!="function")return this;var f=this.constructor;return this.then(function(O){return f.resolve(i()).then(function(){return O})},function(O){return f.resolve(i()).then(function(){throw O})})},b.prototype.catch=function(i){return this.then(null,i)},b.prototype.then=function(i,f){if(typeof i!="function"&&this.state===v||typeof f!="function"&&this.state===u)return this;var O=new this.constructor(p);return this.state!==E?a(O,this.state===v?i:f,this.outcome):this.queue.push(new y(O,i,f)),O},y.prototype.callFulfilled=function(i){n.resolve(this.promise,i)},y.prototype.otherCallFulfilled=function(i){a(this.promise,this.onFulfilled,i)},y.prototype.callRejected=function(i){n.reject(this.promise,i)},y.prototype.otherCallRejected=function(i){a(this.promise,this.onRejected,i)},n.resolve=function(i,f){var O=l(d,f);if(O.status==="error")return n.reject(i,O.value);var D=O.value;if(D)_(i,D);else{i.state=v,i.outcome=f;for(var w=-1,U=i.queue.length;++w<U;)i.queue[w].callFulfilled(f)}return i},n.reject=function(i,f){i.state=u,i.outcome=f;for(var O=-1,D=i.queue.length;++O<D;)i.queue[O].callRejected(f);return i},b.resolve=function(i){return i instanceof this?i:n.resolve(new this(p),i)},b.reject=function(i){var f=new this(p);return n.reject(f,i)},b.all=function(i){var f=this;if(Object.prototype.toString.call(i)!=="[object Array]")return this.reject(new TypeError("must be an array"));var O=i.length,D=!1;if(!O)return this.resolve([]);for(var w=new Array(O),U=0,R=-1,F=new this(p);++R<O;)I(i[R],R);return F;function I(g,$){f.resolve(g).then(function(r){w[$]=r,++U!==O||D||(D=!0,n.resolve(F,w))},function(r){D||(D=!0,n.reject(F,r))})}},b.race=function(i){if(Object.prototype.toString.call(i)!=="[object Array]")return this.reject(new TypeError("must be an array"));var f=i.length,O=!1;if(!f)return this.resolve([]);for(var D,w=-1,U=new this(p);++w<f;)D=i[w],this.resolve(D).then(function(R){O||(O=!0,n.resolve(U,R))},function(R){O||(O=!0,n.reject(U,R))});return U}},{immediate:36}],38:[function(o,T,x){"use strict";var h={};(0,o("./lib/utils/common").assign)(h,o("./lib/deflate"),o("./lib/inflate"),o("./lib/zlib/constants")),T.exports=h},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(o,T,x){"use strict";var h=o("./zlib/deflate"),p=o("./utils/common"),n=o("./utils/strings"),u=o("./zlib/messages"),v=o("./zlib/zstream"),E=Object.prototype.toString,b=0,y=-1,a=0,d=8;function _(i){if(!(this instanceof _))return new _(i);this.options=p.assign({level:y,method:d,chunkSize:16384,windowBits:15,memLevel:8,strategy:a,to:""},i||{});var f=this.options;f.raw&&0<f.windowBits?f.windowBits=-f.windowBits:f.gzip&&0<f.windowBits&&f.windowBits<16&&(f.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new v,this.strm.avail_out=0;var O=h.deflateInit2(this.strm,f.level,f.method,f.windowBits,f.memLevel,f.strategy);if(O!==b)throw new Error(u[O]);if(f.header&&h.deflateSetHeader(this.strm,f.header),f.dictionary){var D;if(D=typeof f.dictionary=="string"?n.string2buf(f.dictionary):E.call(f.dictionary)==="[object ArrayBuffer]"?new Uint8Array(f.dictionary):f.dictionary,(O=h.deflateSetDictionary(this.strm,D))!==b)throw new Error(u[O]);this._dict_set=!0}}function l(i,f){var O=new _(f);if(O.push(i,!0),O.err)throw O.msg||u[O.err];return O.result}_.prototype.push=function(i,f){var O,D,w=this.strm,U=this.options.chunkSize;if(this.ended)return!1;D=f===~~f?f:f===!0?4:0,typeof i=="string"?w.input=n.string2buf(i):E.call(i)==="[object ArrayBuffer]"?w.input=new Uint8Array(i):w.input=i,w.next_in=0,w.avail_in=w.input.length;do{if(w.avail_out===0&&(w.output=new p.Buf8(U),w.next_out=0,w.avail_out=U),(O=h.deflate(w,D))!==1&&O!==b)return this.onEnd(O),!(this.ended=!0);w.avail_out!==0&&(w.avail_in!==0||D!==4&&D!==2)||(this.options.to==="string"?this.onData(n.buf2binstring(p.shrinkBuf(w.output,w.next_out))):this.onData(p.shrinkBuf(w.output,w.next_out)))}while((0<w.avail_in||w.avail_out===0)&&O!==1);return D===4?(O=h.deflateEnd(this.strm),this.onEnd(O),this.ended=!0,O===b):D!==2||(this.onEnd(b),!(w.avail_out=0))},_.prototype.onData=function(i){this.chunks.push(i)},_.prototype.onEnd=function(i){i===b&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=p.flattenChunks(this.chunks)),this.chunks=[],this.err=i,this.msg=this.strm.msg},x.Deflate=_,x.deflate=l,x.deflateRaw=function(i,f){return(f=f||{}).raw=!0,l(i,f)},x.gzip=function(i,f){return(f=f||{}).gzip=!0,l(i,f)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(o,T,x){"use strict";var h=o("./zlib/inflate"),p=o("./utils/common"),n=o("./utils/strings"),u=o("./zlib/constants"),v=o("./zlib/messages"),E=o("./zlib/zstream"),b=o("./zlib/gzheader"),y=Object.prototype.toString;function a(_){if(!(this instanceof a))return new a(_);this.options=p.assign({chunkSize:16384,windowBits:0,to:""},_||{});var l=this.options;l.raw&&0<=l.windowBits&&l.windowBits<16&&(l.windowBits=-l.windowBits,l.windowBits===0&&(l.windowBits=-15)),!(0<=l.windowBits&&l.windowBits<16)||_&&_.windowBits||(l.windowBits+=32),15<l.windowBits&&l.windowBits<48&&(15&l.windowBits)==0&&(l.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new E,this.strm.avail_out=0;var i=h.inflateInit2(this.strm,l.windowBits);if(i!==u.Z_OK)throw new Error(v[i]);this.header=new b,h.inflateGetHeader(this.strm,this.header)}function d(_,l){var i=new a(l);if(i.push(_,!0),i.err)throw i.msg||v[i.err];return i.result}a.prototype.push=function(_,l){var i,f,O,D,w,U,R=this.strm,F=this.options.chunkSize,I=this.options.dictionary,g=!1;if(this.ended)return!1;f=l===~~l?l:l===!0?u.Z_FINISH:u.Z_NO_FLUSH,typeof _=="string"?R.input=n.binstring2buf(_):y.call(_)==="[object ArrayBuffer]"?R.input=new Uint8Array(_):R.input=_,R.next_in=0,R.avail_in=R.input.length;do{if(R.avail_out===0&&(R.output=new p.Buf8(F),R.next_out=0,R.avail_out=F),(i=h.inflate(R,u.Z_NO_FLUSH))===u.Z_NEED_DICT&&I&&(U=typeof I=="string"?n.string2buf(I):y.call(I)==="[object ArrayBuffer]"?new Uint8Array(I):I,i=h.inflateSetDictionary(this.strm,U)),i===u.Z_BUF_ERROR&&g===!0&&(i=u.Z_OK,g=!1),i!==u.Z_STREAM_END&&i!==u.Z_OK)return this.onEnd(i),!(this.ended=!0);R.next_out&&(R.avail_out!==0&&i!==u.Z_STREAM_END&&(R.avail_in!==0||f!==u.Z_FINISH&&f!==u.Z_SYNC_FLUSH)||(this.options.to==="string"?(O=n.utf8border(R.output,R.next_out),D=R.next_out-O,w=n.buf2string(R.output,O),R.next_out=D,R.avail_out=F-D,D&&p.arraySet(R.output,R.output,O,D,0),this.onData(w)):this.onData(p.shrinkBuf(R.output,R.next_out)))),R.avail_in===0&&R.avail_out===0&&(g=!0)}while((0<R.avail_in||R.avail_out===0)&&i!==u.Z_STREAM_END);return i===u.Z_STREAM_END&&(f=u.Z_FINISH),f===u.Z_FINISH?(i=h.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===u.Z_OK):f!==u.Z_SYNC_FLUSH||(this.onEnd(u.Z_OK),!(R.avail_out=0))},a.prototype.onData=function(_){this.chunks.push(_)},a.prototype.onEnd=function(_){_===u.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=p.flattenChunks(this.chunks)),this.chunks=[],this.err=_,this.msg=this.strm.msg},x.Inflate=a,x.inflate=d,x.inflateRaw=function(_,l){return(l=l||{}).raw=!0,d(_,l)},x.ungzip=d},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(o,T,x){"use strict";var h=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";x.assign=function(u){for(var v=Array.prototype.slice.call(arguments,1);v.length;){var E=v.shift();if(E){if(typeof E!="object")throw new TypeError(E+"must be non-object");for(var b in E)E.hasOwnProperty(b)&&(u[b]=E[b])}}return u},x.shrinkBuf=function(u,v){return u.length===v?u:u.subarray?u.subarray(0,v):(u.length=v,u)};var p={arraySet:function(v,E,b,y,a){if(E.subarray&&v.subarray)v.set(E.subarray(b,b+y),a);else for(var d=0;d<y;d++)v[a+d]=E[b+d]},flattenChunks:function(v){var E,b,y,a,d,_;for(E=y=0,b=v.length;E<b;E++)y+=v[E].length;for(_=new Uint8Array(y),E=a=0,b=v.length;E<b;E++)d=v[E],_.set(d,a),a+=d.length;return _}},n={arraySet:function(v,E,b,y,a){for(var d=0;d<y;d++)v[a+d]=E[b+d]},flattenChunks:function(v){return[].concat.apply([],v)}};x.setTyped=function(u){u?(x.Buf8=Uint8Array,x.Buf16=Uint16Array,x.Buf32=Int32Array,x.assign(x,p)):(x.Buf8=Array,x.Buf16=Array,x.Buf32=Array,x.assign(x,n))},x.setTyped(h)},{}],42:[function(o,T,x){"use strict";var h=o("./common"),p=!0,n=!0;try{String.fromCharCode.apply(null,[0])}catch(b){p=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(b){n=!1}for(var u=new h.Buf8(256),v=0;v<256;v++)u[v]=252<=v?6:248<=v?5:240<=v?4:224<=v?3:192<=v?2:1;function E(b,y){if(y<65537&&(b.subarray&&n||!b.subarray&&p))return String.fromCharCode.apply(null,h.shrinkBuf(b,y));for(var a="",d=0;d<y;d++)a+=String.fromCharCode(b[d]);return a}u[254]=u[254]=1,x.string2buf=function(b){var y,a,d,_,l,i=b.length,f=0;for(_=0;_<i;_++)(64512&(a=b.charCodeAt(_)))==55296&&_+1<i&&(64512&(d=b.charCodeAt(_+1)))==56320&&(a=65536+(a-55296<<10)+(d-56320),_++),f+=a<128?1:a<2048?2:a<65536?3:4;for(y=new h.Buf8(f),_=l=0;l<f;_++)(64512&(a=b.charCodeAt(_)))==55296&&_+1<i&&(64512&(d=b.charCodeAt(_+1)))==56320&&(a=65536+(a-55296<<10)+(d-56320),_++),a<128?y[l++]=a:(a<2048?y[l++]=192|a>>>6:(a<65536?y[l++]=224|a>>>12:(y[l++]=240|a>>>18,y[l++]=128|a>>>12&63),y[l++]=128|a>>>6&63),y[l++]=128|63&a);return y},x.buf2binstring=function(b){return E(b,b.length)},x.binstring2buf=function(b){for(var y=new h.Buf8(b.length),a=0,d=y.length;a<d;a++)y[a]=b.charCodeAt(a);return y},x.buf2string=function(b,y){var a,d,_,l,i=y||b.length,f=new Array(2*i);for(a=d=0;a<i;)if((_=b[a++])<128)f[d++]=_;else if(4<(l=u[_]))f[d++]=65533,a+=l-1;else{for(_&=l===2?31:l===3?15:7;1<l&&a<i;)_=_<<6|63&b[a++],l--;1<l?f[d++]=65533:_<65536?f[d++]=_:(_-=65536,f[d++]=55296|_>>10&1023,f[d++]=56320|1023&_)}return E(f,d)},x.utf8border=function(b,y){var a;for((y=y||b.length)>b.length&&(y=b.length),a=y-1;0<=a&&(192&b[a])==128;)a--;return a<0||a===0?y:a+u[b[a]]>y?a:y}},{"./common":41}],43:[function(o,T,x){"use strict";T.exports=function(h,p,n,u){for(var v=65535&h|0,E=h>>>16&65535|0,b=0;n!==0;){for(n-=b=2e3<n?2e3:n;E=E+(v=v+p[u++]|0)|0,--b;);v%=65521,E%=65521}return v|E<<16|0}},{}],44:[function(o,T,x){"use strict";T.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(o,T,x){"use strict";var h=function(){for(var p,n=[],u=0;u<256;u++){p=u;for(var v=0;v<8;v++)p=1&p?3988292384^p>>>1:p>>>1;n[u]=p}return n}();T.exports=function(p,n,u,v){var E=h,b=v+u;p^=-1;for(var y=v;y<b;y++)p=p>>>8^E[255&(p^n[y])];return-1^p}},{}],46:[function(o,T,x){"use strict";var h,p=o("../utils/common"),n=o("./trees"),u=o("./adler32"),v=o("./crc32"),E=o("./messages"),b=0,y=0,a=-2,d=2,_=8,l=286,i=30,f=19,O=2*l+1,D=15,w=3,U=258,R=U+w+1,F=42,I=113;function g(t,P){return t.msg=E[P],P}function $(t){return(t<<1)-(4<t?9:0)}function r(t){for(var P=t.length;0<=--P;)t[P]=0}function A(t){var P=t.state,m=P.pending;m>t.avail_out&&(m=t.avail_out),m!==0&&(p.arraySet(t.output,P.pending_buf,P.pending_out,m,t.next_out),t.next_out+=m,P.pending_out+=m,t.total_out+=m,t.avail_out-=m,P.pending-=m,P.pending===0&&(P.pending_out=0))}function e(t,P){n._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,P),t.block_start=t.strstart,A(t.strm)}function S(t,P){t.pending_buf[t.pending++]=P}function X(t,P){t.pending_buf[t.pending++]=P>>>8&255,t.pending_buf[t.pending++]=255&P}function M(t,P){var m,s,N=t.max_chain_length,B=t.strstart,W=t.prev_length,K=t.nice_match,L=t.strstart>t.w_size-R?t.strstart-(t.w_size-R):0,Y=t.window,q=t.w_mask,J=t.prev,et=t.strstart+U,Z=Y[B+W-1],lt=Y[B+W];t.prev_length>=t.good_match&&(N>>=2),K>t.lookahead&&(K=t.lookahead);do if(Y[(m=P)+W]===lt&&Y[m+W-1]===Z&&Y[m]===Y[B]&&Y[++m]===Y[B+1]){B+=2,m++;do;while(Y[++B]===Y[++m]&&Y[++B]===Y[++m]&&Y[++B]===Y[++m]&&Y[++B]===Y[++m]&&Y[++B]===Y[++m]&&Y[++B]===Y[++m]&&Y[++B]===Y[++m]&&Y[++B]===Y[++m]&&B<et);if(s=U-(et-B),B=et-U,W<s){if(t.match_start=P,K<=(W=s))break;Z=Y[B+W-1],lt=Y[B+W]}}while((P=J[P&q])>L&&--N!=0);return W<=t.lookahead?W:t.lookahead}function Q(t){var P,m,s,N,B,W,K,L,Y,q,J=t.w_size;do{if(N=t.window_size-t.lookahead-t.strstart,t.strstart>=J+(J-R)){for(p.arraySet(t.window,t.window,J,J,0),t.match_start-=J,t.strstart-=J,t.block_start-=J,P=m=t.hash_size;s=t.head[--P],t.head[P]=J<=s?s-J:0,--m;);for(P=m=J;s=t.prev[--P],t.prev[P]=J<=s?s-J:0,--m;);N+=J}if(t.strm.avail_in===0)break;if(W=t.strm,K=t.window,L=t.strstart+t.lookahead,q=void 0,(Y=N)<(q=W.avail_in)&&(q=Y),m=q===0?0:(W.avail_in-=q,p.arraySet(K,W.input,W.next_in,q,L),W.state.wrap===1?W.adler=u(W.adler,K,q,L):W.state.wrap===2&&(W.adler=v(W.adler,K,q,L)),W.next_in+=q,W.total_in+=q,q),t.lookahead+=m,t.lookahead+t.insert>=w)for(B=t.strstart-t.insert,t.ins_h=t.window[B],t.ins_h=(t.ins_h<<t.hash_shift^t.window[B+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[B+w-1])&t.hash_mask,t.prev[B&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=B,B++,t.insert--,!(t.lookahead+t.insert<w)););}while(t.lookahead<R&&t.strm.avail_in!==0)}function j(t,P){for(var m,s;;){if(t.lookahead<R){if(Q(t),t.lookahead<R&&P===b)return 1;if(t.lookahead===0)break}if(m=0,t.lookahead>=w&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+w-1])&t.hash_mask,m=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),m!==0&&t.strstart-m<=t.w_size-R&&(t.match_length=M(t,m)),t.match_length>=w)if(s=n._tr_tally(t,t.strstart-t.match_start,t.match_length-w),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=w){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+w-1])&t.hash_mask,m=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart,--t.match_length!=0;);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else s=n._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(s&&(e(t,!1),t.strm.avail_out===0))return 1}return t.insert=t.strstart<w-1?t.strstart:w-1,P===4?(e(t,!0),t.strm.avail_out===0?3:4):t.last_lit&&(e(t,!1),t.strm.avail_out===0)?1:2}function V(t,P){for(var m,s,N;;){if(t.lookahead<R){if(Q(t),t.lookahead<R&&P===b)return 1;if(t.lookahead===0)break}if(m=0,t.lookahead>=w&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+w-1])&t.hash_mask,m=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=w-1,m!==0&&t.prev_length<t.max_lazy_match&&t.strstart-m<=t.w_size-R&&(t.match_length=M(t,m),t.match_length<=5&&(t.strategy===1||t.match_length===w&&4096<t.strstart-t.match_start)&&(t.match_length=w-1)),t.prev_length>=w&&t.match_length<=t.prev_length){for(N=t.strstart+t.lookahead-w,s=n._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-w),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=N&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+w-1])&t.hash_mask,m=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),--t.prev_length!=0;);if(t.match_available=0,t.match_length=w-1,t.strstart++,s&&(e(t,!1),t.strm.avail_out===0))return 1}else if(t.match_available){if((s=n._tr_tally(t,0,t.window[t.strstart-1]))&&e(t,!1),t.strstart++,t.lookahead--,t.strm.avail_out===0)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(s=n._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<w-1?t.strstart:w-1,P===4?(e(t,!0),t.strm.avail_out===0?3:4):t.last_lit&&(e(t,!1),t.strm.avail_out===0)?1:2}function C(t,P,m,s,N){this.good_length=t,this.max_lazy=P,this.nice_length=m,this.max_chain=s,this.func=N}function z(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=_,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new p.Buf16(2*O),this.dyn_dtree=new p.Buf16(2*(2*i+1)),this.bl_tree=new p.Buf16(2*(2*f+1)),r(this.dyn_ltree),r(this.dyn_dtree),r(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new p.Buf16(D+1),this.heap=new p.Buf16(2*l+1),r(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new p.Buf16(2*l+1),r(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function vt(t){var P;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=d,(P=t.state).pending=0,P.pending_out=0,P.wrap<0&&(P.wrap=-P.wrap),P.status=P.wrap?F:I,t.adler=P.wrap===2?0:1,P.last_flush=b,n._tr_init(P),y):g(t,a)}function c(t){var P,m=vt(t);return m===y&&((P=t.state).window_size=2*P.w_size,r(P.head),P.max_lazy_match=h[P.level].max_lazy,P.good_match=h[P.level].good_length,P.nice_match=h[P.level].nice_length,P.max_chain_length=h[P.level].max_chain,P.strstart=0,P.block_start=0,P.lookahead=0,P.insert=0,P.match_length=P.prev_length=w-1,P.match_available=0,P.ins_h=0),m}function k(t,P,m,s,N,B){if(!t)return a;var W=1;if(P===-1&&(P=6),s<0?(W=0,s=-s):15<s&&(W=2,s-=16),N<1||9<N||m!==_||s<8||15<s||P<0||9<P||B<0||4<B)return g(t,a);s===8&&(s=9);var K=new z;return(t.state=K).strm=t,K.wrap=W,K.gzhead=null,K.w_bits=s,K.w_size=1<<K.w_bits,K.w_mask=K.w_size-1,K.hash_bits=N+7,K.hash_size=1<<K.hash_bits,K.hash_mask=K.hash_size-1,K.hash_shift=~~((K.hash_bits+w-1)/w),K.window=new p.Buf8(2*K.w_size),K.head=new p.Buf16(K.hash_size),K.prev=new p.Buf16(K.w_size),K.lit_bufsize=1<<N+6,K.pending_buf_size=4*K.lit_bufsize,K.pending_buf=new p.Buf8(K.pending_buf_size),K.d_buf=1*K.lit_bufsize,K.l_buf=3*K.lit_bufsize,K.level=P,K.strategy=B,K.method=m,c(t)}h=[new C(0,0,0,0,function(t,P){var m=65535;for(m>t.pending_buf_size-5&&(m=t.pending_buf_size-5);;){if(t.lookahead<=1){if(Q(t),t.lookahead===0&&P===b)return 1;if(t.lookahead===0)break}t.strstart+=t.lookahead,t.lookahead=0;var s=t.block_start+m;if((t.strstart===0||t.strstart>=s)&&(t.lookahead=t.strstart-s,t.strstart=s,e(t,!1),t.strm.avail_out===0))return 1;if(t.strstart-t.block_start>=t.w_size-R&&(e(t,!1),t.strm.avail_out===0))return 1}return t.insert=0,P===4?(e(t,!0),t.strm.avail_out===0?3:4):(t.strstart>t.block_start&&(e(t,!1),t.strm.avail_out),1)}),new C(4,4,8,4,j),new C(4,5,16,8,j),new C(4,6,32,32,j),new C(4,4,16,16,V),new C(8,16,32,32,V),new C(8,16,128,128,V),new C(8,32,128,256,V),new C(32,128,258,1024,V),new C(32,258,258,4096,V)],x.deflateInit=function(t,P){return k(t,P,_,15,8,0)},x.deflateInit2=k,x.deflateReset=c,x.deflateResetKeep=vt,x.deflateSetHeader=function(t,P){return t&&t.state?t.state.wrap!==2?a:(t.state.gzhead=P,y):a},x.deflate=function(t,P){var m,s,N,B;if(!t||!t.state||5<P||P<0)return t?g(t,a):a;if(s=t.state,!t.output||!t.input&&t.avail_in!==0||s.status===666&&P!==4)return g(t,t.avail_out===0?-5:a);if(s.strm=t,m=s.last_flush,s.last_flush=P,s.status===F)if(s.wrap===2)t.adler=0,S(s,31),S(s,139),S(s,8),s.gzhead?(S(s,(s.gzhead.text?1:0)+(s.gzhead.hcrc?2:0)+(s.gzhead.extra?4:0)+(s.gzhead.name?8:0)+(s.gzhead.comment?16:0)),S(s,255&s.gzhead.time),S(s,s.gzhead.time>>8&255),S(s,s.gzhead.time>>16&255),S(s,s.gzhead.time>>24&255),S(s,s.level===9?2:2<=s.strategy||s.level<2?4:0),S(s,255&s.gzhead.os),s.gzhead.extra&&s.gzhead.extra.length&&(S(s,255&s.gzhead.extra.length),S(s,s.gzhead.extra.length>>8&255)),s.gzhead.hcrc&&(t.adler=v(t.adler,s.pending_buf,s.pending,0)),s.gzindex=0,s.status=69):(S(s,0),S(s,0),S(s,0),S(s,0),S(s,0),S(s,s.level===9?2:2<=s.strategy||s.level<2?4:0),S(s,3),s.status=I);else{var W=_+(s.w_bits-8<<4)<<8;W|=(2<=s.strategy||s.level<2?0:s.level<6?1:s.level===6?2:3)<<6,s.strstart!==0&&(W|=32),W+=31-W%31,s.status=I,X(s,W),s.strstart!==0&&(X(s,t.adler>>>16),X(s,65535&t.adler)),t.adler=1}if(s.status===69)if(s.gzhead.extra){for(N=s.pending;s.gzindex<(65535&s.gzhead.extra.length)&&(s.pending!==s.pending_buf_size||(s.gzhead.hcrc&&s.pending>N&&(t.adler=v(t.adler,s.pending_buf,s.pending-N,N)),A(t),N=s.pending,s.pending!==s.pending_buf_size));)S(s,255&s.gzhead.extra[s.gzindex]),s.gzindex++;s.gzhead.hcrc&&s.pending>N&&(t.adler=v(t.adler,s.pending_buf,s.pending-N,N)),s.gzindex===s.gzhead.extra.length&&(s.gzindex=0,s.status=73)}else s.status=73;if(s.status===73)if(s.gzhead.name){N=s.pending;do{if(s.pending===s.pending_buf_size&&(s.gzhead.hcrc&&s.pending>N&&(t.adler=v(t.adler,s.pending_buf,s.pending-N,N)),A(t),N=s.pending,s.pending===s.pending_buf_size)){B=1;break}B=s.gzindex<s.gzhead.name.length?255&s.gzhead.name.charCodeAt(s.gzindex++):0,S(s,B)}while(B!==0);s.gzhead.hcrc&&s.pending>N&&(t.adler=v(t.adler,s.pending_buf,s.pending-N,N)),B===0&&(s.gzindex=0,s.status=91)}else s.status=91;if(s.status===91)if(s.gzhead.comment){N=s.pending;do{if(s.pending===s.pending_buf_size&&(s.gzhead.hcrc&&s.pending>N&&(t.adler=v(t.adler,s.pending_buf,s.pending-N,N)),A(t),N=s.pending,s.pending===s.pending_buf_size)){B=1;break}B=s.gzindex<s.gzhead.comment.length?255&s.gzhead.comment.charCodeAt(s.gzindex++):0,S(s,B)}while(B!==0);s.gzhead.hcrc&&s.pending>N&&(t.adler=v(t.adler,s.pending_buf,s.pending-N,N)),B===0&&(s.status=103)}else s.status=103;if(s.status===103&&(s.gzhead.hcrc?(s.pending+2>s.pending_buf_size&&A(t),s.pending+2<=s.pending_buf_size&&(S(s,255&t.adler),S(s,t.adler>>8&255),t.adler=0,s.status=I)):s.status=I),s.pending!==0){if(A(t),t.avail_out===0)return s.last_flush=-1,y}else if(t.avail_in===0&&$(P)<=$(m)&&P!==4)return g(t,-5);if(s.status===666&&t.avail_in!==0)return g(t,-5);if(t.avail_in!==0||s.lookahead!==0||P!==b&&s.status!==666){var K=s.strategy===2?function(L,Y){for(var q;;){if(L.lookahead===0&&(Q(L),L.lookahead===0)){if(Y===b)return 1;break}if(L.match_length=0,q=n._tr_tally(L,0,L.window[L.strstart]),L.lookahead--,L.strstart++,q&&(e(L,!1),L.strm.avail_out===0))return 1}return L.insert=0,Y===4?(e(L,!0),L.strm.avail_out===0?3:4):L.last_lit&&(e(L,!1),L.strm.avail_out===0)?1:2}(s,P):s.strategy===3?function(L,Y){for(var q,J,et,Z,lt=L.window;;){if(L.lookahead<=U){if(Q(L),L.lookahead<=U&&Y===b)return 1;if(L.lookahead===0)break}if(L.match_length=0,L.lookahead>=w&&0<L.strstart&&(J=lt[et=L.strstart-1])===lt[++et]&&J===lt[++et]&&J===lt[++et]){Z=L.strstart+U;do;while(J===lt[++et]&&J===lt[++et]&&J===lt[++et]&&J===lt[++et]&&J===lt[++et]&&J===lt[++et]&&J===lt[++et]&&J===lt[++et]&&et<Z);L.match_length=U-(Z-et),L.match_length>L.lookahead&&(L.match_length=L.lookahead)}if(L.match_length>=w?(q=n._tr_tally(L,1,L.match_length-w),L.lookahead-=L.match_length,L.strstart+=L.match_length,L.match_length=0):(q=n._tr_tally(L,0,L.window[L.strstart]),L.lookahead--,L.strstart++),q&&(e(L,!1),L.strm.avail_out===0))return 1}return L.insert=0,Y===4?(e(L,!0),L.strm.avail_out===0?3:4):L.last_lit&&(e(L,!1),L.strm.avail_out===0)?1:2}(s,P):h[s.level].func(s,P);if(K!==3&&K!==4||(s.status=666),K===1||K===3)return t.avail_out===0&&(s.last_flush=-1),y;if(K===2&&(P===1?n._tr_align(s):P!==5&&(n._tr_stored_block(s,0,0,!1),P===3&&(r(s.head),s.lookahead===0&&(s.strstart=0,s.block_start=0,s.insert=0))),A(t),t.avail_out===0))return s.last_flush=-1,y}return P!==4?y:s.wrap<=0?1:(s.wrap===2?(S(s,255&t.adler),S(s,t.adler>>8&255),S(s,t.adler>>16&255),S(s,t.adler>>24&255),S(s,255&t.total_in),S(s,t.total_in>>8&255),S(s,t.total_in>>16&255),S(s,t.total_in>>24&255)):(X(s,t.adler>>>16),X(s,65535&t.adler)),A(t),0<s.wrap&&(s.wrap=-s.wrap),s.pending!==0?y:1)},x.deflateEnd=function(t){var P;return t&&t.state?(P=t.state.status)!==F&&P!==69&&P!==73&&P!==91&&P!==103&&P!==I&&P!==666?g(t,a):(t.state=null,P===I?g(t,-3):y):a},x.deflateSetDictionary=function(t,P){var m,s,N,B,W,K,L,Y,q=P.length;if(!t||!t.state)return a;if((B=(m=t.state).wrap)===2||B===1&&m.status!==F||m.lookahead)return a;for(B===1&&(t.adler=u(t.adler,P,q,0)),m.wrap=0,q>=m.w_size&&(B===0&&(r(m.head),m.strstart=0,m.block_start=0,m.insert=0),Y=new p.Buf8(m.w_size),p.arraySet(Y,P,q-m.w_size,m.w_size,0),P=Y,q=m.w_size),W=t.avail_in,K=t.next_in,L=t.input,t.avail_in=q,t.next_in=0,t.input=P,Q(m);m.lookahead>=w;){for(s=m.strstart,N=m.lookahead-(w-1);m.ins_h=(m.ins_h<<m.hash_shift^m.window[s+w-1])&m.hash_mask,m.prev[s&m.w_mask]=m.head[m.ins_h],m.head[m.ins_h]=s,s++,--N;);m.strstart=s,m.lookahead=w-1,Q(m)}return m.strstart+=m.lookahead,m.block_start=m.strstart,m.insert=m.lookahead,m.lookahead=0,m.match_length=m.prev_length=w-1,m.match_available=0,t.next_in=K,t.input=L,t.avail_in=W,m.wrap=B,y},x.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(o,T,x){"use strict";T.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(o,T,x){"use strict";T.exports=function(h,p){var n,u,v,E,b,y,a,d,_,l,i,f,O,D,w,U,R,F,I,g,$,r,A,e,S;n=h.state,u=h.next_in,e=h.input,v=u+(h.avail_in-5),E=h.next_out,S=h.output,b=E-(p-h.avail_out),y=E+(h.avail_out-257),a=n.dmax,d=n.wsize,_=n.whave,l=n.wnext,i=n.window,f=n.hold,O=n.bits,D=n.lencode,w=n.distcode,U=(1<<n.lenbits)-1,R=(1<<n.distbits)-1;t:do{O<15&&(f+=e[u++]<<O,O+=8,f+=e[u++]<<O,O+=8),F=D[f&U];e:for(;;){if(f>>>=I=F>>>24,O-=I,(I=F>>>16&255)==0)S[E++]=65535&F;else{if(!(16&I)){if((64&I)==0){F=D[(65535&F)+(f&(1<<I)-1)];continue e}if(32&I){n.mode=12;break t}h.msg="invalid literal/length code",n.mode=30;break t}g=65535&F,(I&=15)&&(O<I&&(f+=e[u++]<<O,O+=8),g+=f&(1<<I)-1,f>>>=I,O-=I),O<15&&(f+=e[u++]<<O,O+=8,f+=e[u++]<<O,O+=8),F=w[f&R];r:for(;;){if(f>>>=I=F>>>24,O-=I,!(16&(I=F>>>16&255))){if((64&I)==0){F=w[(65535&F)+(f&(1<<I)-1)];continue r}h.msg="invalid distance code",n.mode=30;break t}if($=65535&F,O<(I&=15)&&(f+=e[u++]<<O,(O+=8)<I&&(f+=e[u++]<<O,O+=8)),a<($+=f&(1<<I)-1)){h.msg="invalid distance too far back",n.mode=30;break t}if(f>>>=I,O-=I,(I=E-b)<$){if(_<(I=$-I)&&n.sane){h.msg="invalid distance too far back",n.mode=30;break t}if(A=i,(r=0)===l){if(r+=d-I,I<g){for(g-=I;S[E++]=i[r++],--I;);r=E-$,A=S}}else if(l<I){if(r+=d+l-I,(I-=l)<g){for(g-=I;S[E++]=i[r++],--I;);if(r=0,l<g){for(g-=I=l;S[E++]=i[r++],--I;);r=E-$,A=S}}}else if(r+=l-I,I<g){for(g-=I;S[E++]=i[r++],--I;);r=E-$,A=S}for(;2<g;)S[E++]=A[r++],S[E++]=A[r++],S[E++]=A[r++],g-=3;g&&(S[E++]=A[r++],1<g&&(S[E++]=A[r++]))}else{for(r=E-$;S[E++]=S[r++],S[E++]=S[r++],S[E++]=S[r++],2<(g-=3););g&&(S[E++]=S[r++],1<g&&(S[E++]=S[r++]))}break}}break}}while(u<v&&E<y);u-=g=O>>3,f&=(1<<(O-=g<<3))-1,h.next_in=u,h.next_out=E,h.avail_in=u<v?v-u+5:5-(u-v),h.avail_out=E<y?y-E+257:257-(E-y),n.hold=f,n.bits=O}},{}],49:[function(o,T,x){"use strict";var h=o("../utils/common"),p=o("./adler32"),n=o("./crc32"),u=o("./inffast"),v=o("./inftrees"),E=1,b=2,y=0,a=-2,d=1,_=852,l=592;function i(r){return(r>>>24&255)+(r>>>8&65280)+((65280&r)<<8)+((255&r)<<24)}function f(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new h.Buf16(320),this.work=new h.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function O(r){var A;return r&&r.state?(A=r.state,r.total_in=r.total_out=A.total=0,r.msg="",A.wrap&&(r.adler=1&A.wrap),A.mode=d,A.last=0,A.havedict=0,A.dmax=32768,A.head=null,A.hold=0,A.bits=0,A.lencode=A.lendyn=new h.Buf32(_),A.distcode=A.distdyn=new h.Buf32(l),A.sane=1,A.back=-1,y):a}function D(r){var A;return r&&r.state?((A=r.state).wsize=0,A.whave=0,A.wnext=0,O(r)):a}function w(r,A){var e,S;return r&&r.state?(S=r.state,A<0?(e=0,A=-A):(e=1+(A>>4),A<48&&(A&=15)),A&&(A<8||15<A)?a:(S.window!==null&&S.wbits!==A&&(S.window=null),S.wrap=e,S.wbits=A,D(r))):a}function U(r,A){var e,S;return r?(S=new f,(r.state=S).window=null,(e=w(r,A))!==y&&(r.state=null),e):a}var R,F,I=!0;function g(r){if(I){var A;for(R=new h.Buf32(512),F=new h.Buf32(32),A=0;A<144;)r.lens[A++]=8;for(;A<256;)r.lens[A++]=9;for(;A<280;)r.lens[A++]=7;for(;A<288;)r.lens[A++]=8;for(v(E,r.lens,0,288,R,0,r.work,{bits:9}),A=0;A<32;)r.lens[A++]=5;v(b,r.lens,0,32,F,0,r.work,{bits:5}),I=!1}r.lencode=R,r.lenbits=9,r.distcode=F,r.distbits=5}function $(r,A,e,S){var X,M=r.state;return M.window===null&&(M.wsize=1<<M.wbits,M.wnext=0,M.whave=0,M.window=new h.Buf8(M.wsize)),S>=M.wsize?(h.arraySet(M.window,A,e-M.wsize,M.wsize,0),M.wnext=0,M.whave=M.wsize):(S<(X=M.wsize-M.wnext)&&(X=S),h.arraySet(M.window,A,e-S,X,M.wnext),(S-=X)?(h.arraySet(M.window,A,e-S,S,0),M.wnext=S,M.whave=M.wsize):(M.wnext+=X,M.wnext===M.wsize&&(M.wnext=0),M.whave<M.wsize&&(M.whave+=X))),0}x.inflateReset=D,x.inflateReset2=w,x.inflateResetKeep=O,x.inflateInit=function(r){return U(r,15)},x.inflateInit2=U,x.inflate=function(r,A){var e,S,X,M,Q,j,V,C,z,vt,c,k,t,P,m,s,N,B,W,K,L,Y,q,J,et=0,Z=new h.Buf8(4),lt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!r||!r.state||!r.output||!r.input&&r.avail_in!==0)return a;(e=r.state).mode===12&&(e.mode=13),Q=r.next_out,X=r.output,V=r.avail_out,M=r.next_in,S=r.input,j=r.avail_in,C=e.hold,z=e.bits,vt=j,c=V,Y=y;t:for(;;)switch(e.mode){case d:if(e.wrap===0){e.mode=13;break}for(;z<16;){if(j===0)break t;j--,C+=S[M++]<<z,z+=8}if(2&e.wrap&&C===35615){Z[e.check=0]=255&C,Z[1]=C>>>8&255,e.check=n(e.check,Z,2,0),z=C=0,e.mode=2;break}if(e.flags=0,e.head&&(e.head.done=!1),!(1&e.wrap)||(((255&C)<<8)+(C>>8))%31){r.msg="incorrect header check",e.mode=30;break}if((15&C)!=8){r.msg="unknown compression method",e.mode=30;break}if(z-=4,L=8+(15&(C>>>=4)),e.wbits===0)e.wbits=L;else if(L>e.wbits){r.msg="invalid window size",e.mode=30;break}e.dmax=1<<L,r.adler=e.check=1,e.mode=512&C?10:12,z=C=0;break;case 2:for(;z<16;){if(j===0)break t;j--,C+=S[M++]<<z,z+=8}if(e.flags=C,(255&e.flags)!=8){r.msg="unknown compression method",e.mode=30;break}if(57344&e.flags){r.msg="unknown header flags set",e.mode=30;break}e.head&&(e.head.text=C>>8&1),512&e.flags&&(Z[0]=255&C,Z[1]=C>>>8&255,e.check=n(e.check,Z,2,0)),z=C=0,e.mode=3;case 3:for(;z<32;){if(j===0)break t;j--,C+=S[M++]<<z,z+=8}e.head&&(e.head.time=C),512&e.flags&&(Z[0]=255&C,Z[1]=C>>>8&255,Z[2]=C>>>16&255,Z[3]=C>>>24&255,e.check=n(e.check,Z,4,0)),z=C=0,e.mode=4;case 4:for(;z<16;){if(j===0)break t;j--,C+=S[M++]<<z,z+=8}e.head&&(e.head.xflags=255&C,e.head.os=C>>8),512&e.flags&&(Z[0]=255&C,Z[1]=C>>>8&255,e.check=n(e.check,Z,2,0)),z=C=0,e.mode=5;case 5:if(1024&e.flags){for(;z<16;){if(j===0)break t;j--,C+=S[M++]<<z,z+=8}e.length=C,e.head&&(e.head.extra_len=C),512&e.flags&&(Z[0]=255&C,Z[1]=C>>>8&255,e.check=n(e.check,Z,2,0)),z=C=0}else e.head&&(e.head.extra=null);e.mode=6;case 6:if(1024&e.flags&&(j<(k=e.length)&&(k=j),k&&(e.head&&(L=e.head.extra_len-e.length,e.head.extra||(e.head.extra=new Array(e.head.extra_len)),h.arraySet(e.head.extra,S,M,k,L)),512&e.flags&&(e.check=n(e.check,S,k,M)),j-=k,M+=k,e.length-=k),e.length))break t;e.length=0,e.mode=7;case 7:if(2048&e.flags){if(j===0)break t;for(k=0;L=S[M+k++],e.head&&L&&e.length<65536&&(e.head.name+=String.fromCharCode(L)),L&&k<j;);if(512&e.flags&&(e.check=n(e.check,S,k,M)),j-=k,M+=k,L)break t}else e.head&&(e.head.name=null);e.length=0,e.mode=8;case 8:if(4096&e.flags){if(j===0)break t;for(k=0;L=S[M+k++],e.head&&L&&e.length<65536&&(e.head.comment+=String.fromCharCode(L)),L&&k<j;);if(512&e.flags&&(e.check=n(e.check,S,k,M)),j-=k,M+=k,L)break t}else e.head&&(e.head.comment=null);e.mode=9;case 9:if(512&e.flags){for(;z<16;){if(j===0)break t;j--,C+=S[M++]<<z,z+=8}if(C!==(65535&e.check)){r.msg="header crc mismatch",e.mode=30;break}z=C=0}e.head&&(e.head.hcrc=e.flags>>9&1,e.head.done=!0),r.adler=e.check=0,e.mode=12;break;case 10:for(;z<32;){if(j===0)break t;j--,C+=S[M++]<<z,z+=8}r.adler=e.check=i(C),z=C=0,e.mode=11;case 11:if(e.havedict===0)return r.next_out=Q,r.avail_out=V,r.next_in=M,r.avail_in=j,e.hold=C,e.bits=z,2;r.adler=e.check=1,e.mode=12;case 12:if(A===5||A===6)break t;case 13:if(e.last){C>>>=7&z,z-=7&z,e.mode=27;break}for(;z<3;){if(j===0)break t;j--,C+=S[M++]<<z,z+=8}switch(e.last=1&C,z-=1,3&(C>>>=1)){case 0:e.mode=14;break;case 1:if(g(e),e.mode=20,A!==6)break;C>>>=2,z-=2;break t;case 2:e.mode=17;break;case 3:r.msg="invalid block type",e.mode=30}C>>>=2,z-=2;break;case 14:for(C>>>=7&z,z-=7&z;z<32;){if(j===0)break t;j--,C+=S[M++]<<z,z+=8}if((65535&C)!=(C>>>16^65535)){r.msg="invalid stored block lengths",e.mode=30;break}if(e.length=65535&C,z=C=0,e.mode=15,A===6)break t;case 15:e.mode=16;case 16:if(k=e.length){if(j<k&&(k=j),V<k&&(k=V),k===0)break t;h.arraySet(X,S,M,k,Q),j-=k,M+=k,V-=k,Q+=k,e.length-=k;break}e.mode=12;break;case 17:for(;z<14;){if(j===0)break t;j--,C+=S[M++]<<z,z+=8}if(e.nlen=257+(31&C),C>>>=5,z-=5,e.ndist=1+(31&C),C>>>=5,z-=5,e.ncode=4+(15&C),C>>>=4,z-=4,286<e.nlen||30<e.ndist){r.msg="too many length or distance symbols",e.mode=30;break}e.have=0,e.mode=18;case 18:for(;e.have<e.ncode;){for(;z<3;){if(j===0)break t;j--,C+=S[M++]<<z,z+=8}e.lens[lt[e.have++]]=7&C,C>>>=3,z-=3}for(;e.have<19;)e.lens[lt[e.have++]]=0;if(e.lencode=e.lendyn,e.lenbits=7,q={bits:e.lenbits},Y=v(0,e.lens,0,19,e.lencode,0,e.work,q),e.lenbits=q.bits,Y){r.msg="invalid code lengths set",e.mode=30;break}e.have=0,e.mode=19;case 19:for(;e.have<e.nlen+e.ndist;){for(;s=(et=e.lencode[C&(1<<e.lenbits)-1])>>>16&255,N=65535&et,!((m=et>>>24)<=z);){if(j===0)break t;j--,C+=S[M++]<<z,z+=8}if(N<16)C>>>=m,z-=m,e.lens[e.have++]=N;else{if(N===16){for(J=m+2;z<J;){if(j===0)break t;j--,C+=S[M++]<<z,z+=8}if(C>>>=m,z-=m,e.have===0){r.msg="invalid bit length repeat",e.mode=30;break}L=e.lens[e.have-1],k=3+(3&C),C>>>=2,z-=2}else if(N===17){for(J=m+3;z<J;){if(j===0)break t;j--,C+=S[M++]<<z,z+=8}z-=m,L=0,k=3+(7&(C>>>=m)),C>>>=3,z-=3}else{for(J=m+7;z<J;){if(j===0)break t;j--,C+=S[M++]<<z,z+=8}z-=m,L=0,k=11+(127&(C>>>=m)),C>>>=7,z-=7}if(e.have+k>e.nlen+e.ndist){r.msg="invalid bit length repeat",e.mode=30;break}for(;k--;)e.lens[e.have++]=L}}if(e.mode===30)break;if(e.lens[256]===0){r.msg="invalid code -- missing end-of-block",e.mode=30;break}if(e.lenbits=9,q={bits:e.lenbits},Y=v(E,e.lens,0,e.nlen,e.lencode,0,e.work,q),e.lenbits=q.bits,Y){r.msg="invalid literal/lengths set",e.mode=30;break}if(e.distbits=6,e.distcode=e.distdyn,q={bits:e.distbits},Y=v(b,e.lens,e.nlen,e.ndist,e.distcode,0,e.work,q),e.distbits=q.bits,Y){r.msg="invalid distances set",e.mode=30;break}if(e.mode=20,A===6)break t;case 20:e.mode=21;case 21:if(6<=j&&258<=V){r.next_out=Q,r.avail_out=V,r.next_in=M,r.avail_in=j,e.hold=C,e.bits=z,u(r,c),Q=r.next_out,X=r.output,V=r.avail_out,M=r.next_in,S=r.input,j=r.avail_in,C=e.hold,z=e.bits,e.mode===12&&(e.back=-1);break}for(e.back=0;s=(et=e.lencode[C&(1<<e.lenbits)-1])>>>16&255,N=65535&et,!((m=et>>>24)<=z);){if(j===0)break t;j--,C+=S[M++]<<z,z+=8}if(s&&(240&s)==0){for(B=m,W=s,K=N;s=(et=e.lencode[K+((C&(1<<B+W)-1)>>B)])>>>16&255,N=65535&et,!(B+(m=et>>>24)<=z);){if(j===0)break t;j--,C+=S[M++]<<z,z+=8}C>>>=B,z-=B,e.back+=B}if(C>>>=m,z-=m,e.back+=m,e.length=N,s===0){e.mode=26;break}if(32&s){e.back=-1,e.mode=12;break}if(64&s){r.msg="invalid literal/length code",e.mode=30;break}e.extra=15&s,e.mode=22;case 22:if(e.extra){for(J=e.extra;z<J;){if(j===0)break t;j--,C+=S[M++]<<z,z+=8}e.length+=C&(1<<e.extra)-1,C>>>=e.extra,z-=e.extra,e.back+=e.extra}e.was=e.length,e.mode=23;case 23:for(;s=(et=e.distcode[C&(1<<e.distbits)-1])>>>16&255,N=65535&et,!((m=et>>>24)<=z);){if(j===0)break t;j--,C+=S[M++]<<z,z+=8}if((240&s)==0){for(B=m,W=s,K=N;s=(et=e.distcode[K+((C&(1<<B+W)-1)>>B)])>>>16&255,N=65535&et,!(B+(m=et>>>24)<=z);){if(j===0)break t;j--,C+=S[M++]<<z,z+=8}C>>>=B,z-=B,e.back+=B}if(C>>>=m,z-=m,e.back+=m,64&s){r.msg="invalid distance code",e.mode=30;break}e.offset=N,e.extra=15&s,e.mode=24;case 24:if(e.extra){for(J=e.extra;z<J;){if(j===0)break t;j--,C+=S[M++]<<z,z+=8}e.offset+=C&(1<<e.extra)-1,C>>>=e.extra,z-=e.extra,e.back+=e.extra}if(e.offset>e.dmax){r.msg="invalid distance too far back",e.mode=30;break}e.mode=25;case 25:if(V===0)break t;if(k=c-V,e.offset>k){if((k=e.offset-k)>e.whave&&e.sane){r.msg="invalid distance too far back",e.mode=30;break}t=k>e.wnext?(k-=e.wnext,e.wsize-k):e.wnext-k,k>e.length&&(k=e.length),P=e.window}else P=X,t=Q-e.offset,k=e.length;for(V<k&&(k=V),V-=k,e.length-=k;X[Q++]=P[t++],--k;);e.length===0&&(e.mode=21);break;case 26:if(V===0)break t;X[Q++]=e.length,V--,e.mode=21;break;case 27:if(e.wrap){for(;z<32;){if(j===0)break t;j--,C|=S[M++]<<z,z+=8}if(c-=V,r.total_out+=c,e.total+=c,c&&(r.adler=e.check=e.flags?n(e.check,X,c,Q-c):p(e.check,X,c,Q-c)),c=V,(e.flags?C:i(C))!==e.check){r.msg="incorrect data check",e.mode=30;break}z=C=0}e.mode=28;case 28:if(e.wrap&&e.flags){for(;z<32;){if(j===0)break t;j--,C+=S[M++]<<z,z+=8}if(C!==(4294967295&e.total)){r.msg="incorrect length check",e.mode=30;break}z=C=0}e.mode=29;case 29:Y=1;break t;case 30:Y=-3;break t;case 31:return-4;case 32:default:return a}return r.next_out=Q,r.avail_out=V,r.next_in=M,r.avail_in=j,e.hold=C,e.bits=z,(e.wsize||c!==r.avail_out&&e.mode<30&&(e.mode<27||A!==4))&&$(r,r.output,r.next_out,c-r.avail_out)?(e.mode=31,-4):(vt-=r.avail_in,c-=r.avail_out,r.total_in+=vt,r.total_out+=c,e.total+=c,e.wrap&&c&&(r.adler=e.check=e.flags?n(e.check,X,c,r.next_out-c):p(e.check,X,c,r.next_out-c)),r.data_type=e.bits+(e.last?64:0)+(e.mode===12?128:0)+(e.mode===20||e.mode===15?256:0),(vt==0&&c===0||A===4)&&Y===y&&(Y=-5),Y)},x.inflateEnd=function(r){if(!r||!r.state)return a;var A=r.state;return A.window&&(A.window=null),r.state=null,y},x.inflateGetHeader=function(r,A){var e;return r&&r.state?(2&(e=r.state).wrap)==0?a:((e.head=A).done=!1,y):a},x.inflateSetDictionary=function(r,A){var e,S=A.length;return r&&r.state?(e=r.state).wrap!==0&&e.mode!==11?a:e.mode===11&&p(1,A,S,0)!==e.check?-3:$(r,A,S,S)?(e.mode=31,-4):(e.havedict=1,y):a},x.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(o,T,x){"use strict";var h=o("../utils/common"),p=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],n=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],u=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],v=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];T.exports=function(E,b,y,a,d,_,l,i){var f,O,D,w,U,R,F,I,g,$=i.bits,r=0,A=0,e=0,S=0,X=0,M=0,Q=0,j=0,V=0,C=0,z=null,vt=0,c=new h.Buf16(16),k=new h.Buf16(16),t=null,P=0;for(r=0;r<=15;r++)c[r]=0;for(A=0;A<a;A++)c[b[y+A]]++;for(X=$,S=15;1<=S&&c[S]===0;S--);if(S<X&&(X=S),S===0)return d[_++]=20971520,d[_++]=20971520,i.bits=1,0;for(e=1;e<S&&c[e]===0;e++);for(X<e&&(X=e),r=j=1;r<=15;r++)if(j<<=1,(j-=c[r])<0)return-1;if(0<j&&(E===0||S!==1))return-1;for(k[1]=0,r=1;r<15;r++)k[r+1]=k[r]+c[r];for(A=0;A<a;A++)b[y+A]!==0&&(l[k[b[y+A]]++]=A);if(R=E===0?(z=t=l,19):E===1?(z=p,vt-=257,t=n,P-=257,256):(z=u,t=v,-1),r=e,U=_,Q=A=C=0,D=-1,w=(V=1<<(M=X))-1,E===1&&852<V||E===2&&592<V)return 1;for(;;){for(F=r-Q,g=l[A]<R?(I=0,l[A]):l[A]>R?(I=t[P+l[A]],z[vt+l[A]]):(I=96,0),f=1<<r-Q,e=O=1<<M;d[U+(C>>Q)+(O-=f)]=F<<24|I<<16|g|0,O!==0;);for(f=1<<r-1;C&f;)f>>=1;if(f!==0?(C&=f-1,C+=f):C=0,A++,--c[r]==0){if(r===S)break;r=b[y+l[A]]}if(X<r&&(C&w)!==D){for(Q===0&&(Q=X),U+=e,j=1<<(M=r-Q);M+Q<S&&!((j-=c[M+Q])<=0);)M++,j<<=1;if(V+=1<<M,E===1&&852<V||E===2&&592<V)return 1;d[D=C&w]=X<<24|M<<16|U-_|0}}return C!==0&&(d[U+C]=r-Q<<24|64<<16|0),i.bits=X,0}},{"../utils/common":41}],51:[function(o,T,x){"use strict";T.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(o,T,x){"use strict";var h=o("../utils/common");function p(c){for(var k=c.length;0<=--k;)c[k]=0}var n=15,u=16,v=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],E=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],b=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],y=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],a=new Array(576);p(a);var d=new Array(60);p(d);var _=new Array(512);p(_);var l=new Array(256);p(l);var i=new Array(29);p(i);var f,O,D,w=new Array(30);function U(c,k,t,P,m){this.static_tree=c,this.extra_bits=k,this.extra_base=t,this.elems=P,this.max_length=m,this.has_stree=c&&c.length}function R(c,k){this.dyn_tree=c,this.max_code=0,this.stat_desc=k}function F(c){return c<256?_[c]:_[256+(c>>>7)]}function I(c,k){c.pending_buf[c.pending++]=255&k,c.pending_buf[c.pending++]=k>>>8&255}function g(c,k,t){c.bi_valid>u-t?(c.bi_buf|=k<<c.bi_valid&65535,I(c,c.bi_buf),c.bi_buf=k>>u-c.bi_valid,c.bi_valid+=t-u):(c.bi_buf|=k<<c.bi_valid&65535,c.bi_valid+=t)}function $(c,k,t){g(c,t[2*k],t[2*k+1])}function r(c,k){for(var t=0;t|=1&c,c>>>=1,t<<=1,0<--k;);return t>>>1}function A(c,k,t){var P,m,s=new Array(n+1),N=0;for(P=1;P<=n;P++)s[P]=N=N+t[P-1]<<1;for(m=0;m<=k;m++){var B=c[2*m+1];B!==0&&(c[2*m]=r(s[B]++,B))}}function e(c){var k;for(k=0;k<286;k++)c.dyn_ltree[2*k]=0;for(k=0;k<30;k++)c.dyn_dtree[2*k]=0;for(k=0;k<19;k++)c.bl_tree[2*k]=0;c.dyn_ltree[512]=1,c.opt_len=c.static_len=0,c.last_lit=c.matches=0}function S(c){8<c.bi_valid?I(c,c.bi_buf):0<c.bi_valid&&(c.pending_buf[c.pending++]=c.bi_buf),c.bi_buf=0,c.bi_valid=0}function X(c,k,t,P){var m=2*k,s=2*t;return c[m]<c[s]||c[m]===c[s]&&P[k]<=P[t]}function M(c,k,t){for(var P=c.heap[t],m=t<<1;m<=c.heap_len&&(m<c.heap_len&&X(k,c.heap[m+1],c.heap[m],c.depth)&&m++,!X(k,P,c.heap[m],c.depth));)c.heap[t]=c.heap[m],t=m,m<<=1;c.heap[t]=P}function Q(c,k,t){var P,m,s,N,B=0;if(c.last_lit!==0)for(;P=c.pending_buf[c.d_buf+2*B]<<8|c.pending_buf[c.d_buf+2*B+1],m=c.pending_buf[c.l_buf+B],B++,P===0?$(c,m,k):($(c,(s=l[m])+256+1,k),(N=v[s])!==0&&g(c,m-=i[s],N),$(c,s=F(--P),t),(N=E[s])!==0&&g(c,P-=w[s],N)),B<c.last_lit;);$(c,256,k)}function j(c,k){var t,P,m,s=k.dyn_tree,N=k.stat_desc.static_tree,B=k.stat_desc.has_stree,W=k.stat_desc.elems,K=-1;for(c.heap_len=0,c.heap_max=573,t=0;t<W;t++)s[2*t]!==0?(c.heap[++c.heap_len]=K=t,c.depth[t]=0):s[2*t+1]=0;for(;c.heap_len<2;)s[2*(m=c.heap[++c.heap_len]=K<2?++K:0)]=1,c.depth[m]=0,c.opt_len--,B&&(c.static_len-=N[2*m+1]);for(k.max_code=K,t=c.heap_len>>1;1<=t;t--)M(c,s,t);for(m=W;t=c.heap[1],c.heap[1]=c.heap[c.heap_len--],M(c,s,1),P=c.heap[1],c.heap[--c.heap_max]=t,c.heap[--c.heap_max]=P,s[2*m]=s[2*t]+s[2*P],c.depth[m]=(c.depth[t]>=c.depth[P]?c.depth[t]:c.depth[P])+1,s[2*t+1]=s[2*P+1]=m,c.heap[1]=m++,M(c,s,1),2<=c.heap_len;);c.heap[--c.heap_max]=c.heap[1],function(L,Y){var q,J,et,Z,lt,Gt,Ut=Y.dyn_tree,Kt=Y.max_code,Zt=Y.stat_desc.static_tree,qt=Y.stat_desc.has_stree,Vt=Y.stat_desc.extra_bits,jt=Y.stat_desc.extra_base,Wt=Y.stat_desc.max_length,Ht=0;for(Z=0;Z<=n;Z++)L.bl_count[Z]=0;for(Ut[2*L.heap[L.heap_max]+1]=0,q=L.heap_max+1;q<573;q++)Wt<(Z=Ut[2*Ut[2*(J=L.heap[q])+1]+1]+1)&&(Z=Wt,Ht++),Ut[2*J+1]=Z,Kt<J||(L.bl_count[Z]++,lt=0,jt<=J&&(lt=Vt[J-jt]),Gt=Ut[2*J],L.opt_len+=Gt*(Z+lt),qt&&(L.static_len+=Gt*(Zt[2*J+1]+lt)));if(Ht!==0){do{for(Z=Wt-1;L.bl_count[Z]===0;)Z--;L.bl_count[Z]--,L.bl_count[Z+1]+=2,L.bl_count[Wt]--,Ht-=2}while(0<Ht);for(Z=Wt;Z!==0;Z--)for(J=L.bl_count[Z];J!==0;)Kt<(et=L.heap[--q])||(Ut[2*et+1]!==Z&&(L.opt_len+=(Z-Ut[2*et+1])*Ut[2*et],Ut[2*et+1]=Z),J--)}}(c,k),A(s,K,c.bl_count)}function V(c,k,t){var P,m,s=-1,N=k[1],B=0,W=7,K=4;for(N===0&&(W=138,K=3),k[2*(t+1)+1]=65535,P=0;P<=t;P++)m=N,N=k[2*(P+1)+1],++B<W&&m===N||(B<K?c.bl_tree[2*m]+=B:m!==0?(m!==s&&c.bl_tree[2*m]++,c.bl_tree[32]++):B<=10?c.bl_tree[34]++:c.bl_tree[36]++,s=m,K=(B=0)===N?(W=138,3):m===N?(W=6,3):(W=7,4))}function C(c,k,t){var P,m,s=-1,N=k[1],B=0,W=7,K=4;for(N===0&&(W=138,K=3),P=0;P<=t;P++)if(m=N,N=k[2*(P+1)+1],!(++B<W&&m===N)){if(B<K)for(;$(c,m,c.bl_tree),--B!=0;);else m!==0?(m!==s&&($(c,m,c.bl_tree),B--),$(c,16,c.bl_tree),g(c,B-3,2)):B<=10?($(c,17,c.bl_tree),g(c,B-3,3)):($(c,18,c.bl_tree),g(c,B-11,7));s=m,K=(B=0)===N?(W=138,3):m===N?(W=6,3):(W=7,4)}}p(w);var z=!1;function vt(c,k,t,P){var m,s,N;g(c,0+(P?1:0),3),s=k,N=t,S(m=c),I(m,N),I(m,~N),h.arraySet(m.pending_buf,m.window,s,N,m.pending),m.pending+=N}x._tr_init=function(c){z||(function(){var k,t,P,m,s,N=new Array(n+1);for(m=P=0;m<28;m++)for(i[m]=P,k=0;k<1<<v[m];k++)l[P++]=m;for(l[P-1]=m,m=s=0;m<16;m++)for(w[m]=s,k=0;k<1<<E[m];k++)_[s++]=m;for(s>>=7;m<30;m++)for(w[m]=s<<7,k=0;k<1<<E[m]-7;k++)_[256+s++]=m;for(t=0;t<=n;t++)N[t]=0;for(k=0;k<=143;)a[2*k+1]=8,k++,N[8]++;for(;k<=255;)a[2*k+1]=9,k++,N[9]++;for(;k<=279;)a[2*k+1]=7,k++,N[7]++;for(;k<=287;)a[2*k+1]=8,k++,N[8]++;for(A(a,287,N),k=0;k<30;k++)d[2*k+1]=5,d[2*k]=r(k,5);f=new U(a,v,257,286,n),O=new U(d,E,0,30,n),D=new U(new Array(0),b,0,19,7)}(),z=!0),c.l_desc=new R(c.dyn_ltree,f),c.d_desc=new R(c.dyn_dtree,O),c.bl_desc=new R(c.bl_tree,D),c.bi_buf=0,c.bi_valid=0,e(c)},x._tr_stored_block=vt,x._tr_flush_block=function(c,k,t,P){var m,s,N=0;0<c.level?(c.strm.data_type===2&&(c.strm.data_type=function(B){var W,K=4093624447;for(W=0;W<=31;W++,K>>>=1)if(1&K&&B.dyn_ltree[2*W]!==0)return 0;if(B.dyn_ltree[18]!==0||B.dyn_ltree[20]!==0||B.dyn_ltree[26]!==0)return 1;for(W=32;W<256;W++)if(B.dyn_ltree[2*W]!==0)return 1;return 0}(c)),j(c,c.l_desc),j(c,c.d_desc),N=function(B){var W;for(V(B,B.dyn_ltree,B.l_desc.max_code),V(B,B.dyn_dtree,B.d_desc.max_code),j(B,B.bl_desc),W=18;3<=W&&B.bl_tree[2*y[W]+1]===0;W--);return B.opt_len+=3*(W+1)+5+5+4,W}(c),m=c.opt_len+3+7>>>3,(s=c.static_len+3+7>>>3)<=m&&(m=s)):m=s=t+5,t+4<=m&&k!==-1?vt(c,k,t,P):c.strategy===4||s===m?(g(c,2+(P?1:0),3),Q(c,a,d)):(g(c,4+(P?1:0),3),function(B,W,K,L){var Y;for(g(B,W-257,5),g(B,K-1,5),g(B,L-4,4),Y=0;Y<L;Y++)g(B,B.bl_tree[2*y[Y]+1],3);C(B,B.dyn_ltree,W-1),C(B,B.dyn_dtree,K-1)}(c,c.l_desc.max_code+1,c.d_desc.max_code+1,N+1),Q(c,c.dyn_ltree,c.dyn_dtree)),e(c),P&&S(c)},x._tr_tally=function(c,k,t){return c.pending_buf[c.d_buf+2*c.last_lit]=k>>>8&255,c.pending_buf[c.d_buf+2*c.last_lit+1]=255&k,c.pending_buf[c.l_buf+c.last_lit]=255&t,c.last_lit++,k===0?c.dyn_ltree[2*t]++:(c.matches++,k--,c.dyn_ltree[2*(l[t]+256+1)]++,c.dyn_dtree[2*F(k)]++),c.last_lit===c.lit_bufsize-1},x._tr_align=function(c){var k;g(c,2,3),$(c,256,a),(k=c).bi_valid===16?(I(k,k.bi_buf),k.bi_buf=0,k.bi_valid=0):8<=k.bi_valid&&(k.pending_buf[k.pending++]=255&k.bi_buf,k.bi_buf>>=8,k.bi_valid-=8)}},{"../utils/common":41}],53:[function(o,T,x){"use strict";T.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(o,T,x){"use strict";T.exports=typeof setImmediate=="function"?setImmediate:function(){var h=[].slice.apply(arguments);h.splice(1,0,0),setTimeout.apply(null,h)}},{}]},{},[10])(10)})}).call(this,it!==void 0?it:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}]},{},[1])(1)})}).call(this,ut!==void 0?ut:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}]},{},[1])(1)})}).call(this,pt!==void 0?pt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}]},{},[1])(1)})}).call(this,Bt!==void 0?Bt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}]},{},[1])(1)})}).call(this,typeof Jt!="undefined"?Jt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}]},{},[1])(1)})}).call(this,H("yLpj"),H("HDXh").Buffer)},uJ6K:function(Lt,Mt,H){Lt.exports={wrap:"wrap___1AALq",img:"img___20GEO",table:"table___26NT5",totalScore:"totalScore___1t1Bx",people:"people___BMR7K",glassSeal:"glassSeal___2woZ-"}}}]);