89 lines
500 KiB
JavaScript
89 lines
500 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[52,4,5,6,7,9,10,12,14],{"1vsH":function(e,_,c){"use strict";c.d(_,"i",function(){return T}),c.d(_,"k",function(){return E}),c.d(_,"e",function(){return j}),c.d(_,"h",function(){return O}),c.d(_,"c",function(){return S}),c.d(_,"f",function(){return w}),c.d(_,"g",function(){return p}),c.d(_,"a",function(){return C}),c.d(_,"D",function(){return R}),c.d(_,"C",function(){return I}),c.d(_,"E",function(){return H}),c.d(_,"F",function(){return W}),c.d(_,"s",function(){return D}),c.d(_,"r",function(){return ae}),c.d(_,"p",function(){return V}),c.d(_,"o",function(){return te}),c.d(_,"A",function(){return $}),c.d(_,"j",function(){return J}),c.d(_,"z",function(){return U}),c.d(_,"u",function(){return Z}),c.d(_,"l",function(){return re}),c.d(_,"x",function(){return le}),c.d(_,"n",function(){return de}),c.d(_,"d",function(){return K}),c.d(_,"b",function(){return Se}),c.d(_,"t",function(){return Q}),c.d(_,"y",function(){return ee}),c.d(_,"w",function(){return ce}),c.d(_,"m",function(){return X}),c.d(_,"v",function(){return B}),c.d(_,"q",function(){return N}),c.d(_,"B",function(){return v});var u=c("sRBo"),t=c("kaz8"),y=c("14J3"),f=c("BMrR"),h=c("jCWc"),d=c("kPKH"),n=c("2qtc"),l=c("kLXV"),s=c("jrin"),i=c("q1tI"),o=c.n(i),b=c("xKgJ"),m=c("bntm"),g=c("aCH8"),A=c.n(g),T=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],x=function(r){var L={\u5DF2\u622A\u6B62:{class:"tag-style bg-pink ml10"},\u63D0\u4EA4\u4E2D:{class:"tag-style bg-blue ml10"},\u672A\u53D1\u5E03:{class:"tag-style bg-blue ml10"},\u8865\u4EA4\u4E2D:{class:"tag-style bg-blue ml10"}};return r.data&&r.data.map(function(k,z){return o.a.createElement("span",{key:z,className:L[k]&&L[k].class},k)})},E=function(r){var L,k=(L={},Object(s.a)(L,-1,"\u91CD\u505A\u4E2D"),Object(s.a)(L,0,"\u672A\u5F00\u542F"),Object(s.a)(L,1,"\u672A\u901A\u5173"),Object(s.a)(L,2,"\u6309\u65F6\u901A\u5173"),L);return k[r]||"\u8FDF\u4EA4\u901A\u5173"},j=function(r){var L,k,z,se=(L={},Object(s.a)(L,-1,{name:"\u91CD\u505A\u4E2D",class:"c-orange"}),Object(s.a)(L,0,{name:"\u672A\u5F00\u542F",class:"c-black"}),Object(s.a)(L,1,{name:"\u672A\u901A\u5173",class:"c-red"}),Object(s.a)(L,2,{name:"\u6309\u65F6\u901A\u5173",class:"c-green"}),Object(s.a)(L,3,{name:"\u8FDF\u4EA4\u901A\u5173",class:"c-orange"}),L);return o.a.createElement("span",{className:se==null||((k=se[r.status])===null||k===void 0)?void 0:k.class},se==null||((z=se[r.status])===null||z===void 0)?void 0:z.name)},O=function(r){var L=r.status,k={0:{class:"tag-style bg-blue ml10",name:"\u5F85\u9009\u4E2D"},1:{class:"tag-style bg-blue ml10",name:"\u5F85\u786E\u8BA4"},2:{class:"tag-style bg-pink ml10",name:"\u5DF2\u786E\u8BA4"}};try{return o.a.createElement("span",{className:k[L].class},k[L].name)}catch(z){console.log("utils.StatusGraduationProjectTags",r.status)}},S={1:"\u672A\u53D1\u5E03",2:"\u8003\u8BD5\u4E2D",3:"\u5DF2\u622A\u6B62",4:"\u5DF2\u7ED3\u675F"},w={1:"\u672A\u53D1\u5E03",2:"\u63D0\u4EA4\u4E2D",3:"\u5DF2\u622A\u6B62",4:"\u5DF2\u7ED3\u675F"},p=function(r){var L={\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A:{class:"tag-style-fzb ml10 iconfont icon-fangzuobi"},\u516C\u5F00:{class:"tag-style bg-blue ml10"},\u5DF2\u5F00\u542F\u8865\u4EA4:{class:"tag-style bg-green ml10"},\u672A\u5F00\u542F\u8865\u4EA4:{class:"tag-style bg-pink ml10"},\u672A\u53D1\u5E03:{class:"tag-style bg-light-blue ml10"},\u533F\u540D\u4F5C\u54C1:{class:"tag-style bg-cyan ml10"},\u5DF2\u9009\u62E9:{class:"tag-style bg-grey-ede ml10"},\u5DF2\u7ED3\u675F:{class:"tag-style bg-grey-ede ml10"},\u63D0\u4EA4\u4E2D:{class:"tag-style bg-blue ml10"},\u533F\u8BC4\u4E2D:{class:"tag-style bg-blue ml10"},\u7533\u8BC9\u4E2D:{class:"tag-style bg-blue ml10"},\u8003\u8BD5\u4E2D:{class:"tag-style bg-light-blue ml10"},\u8865\u4EA4\u4E2D:{class:"tag-style bg-blue ml10"},\u8BC4\u9605\u4E2D:{class:"tag-style bg-blue ml10"},\u5F85\u9009\u4E2D:{class:"tag-style bg-blue ml10"},\u4EA4\u53C9\u8BC4\u9605\u4E2D:{class:"tag-style bg-light-orange ml10"},\u5DF2\u5F00\u542F\u4EA4\u53C9\u8BC4\u9605:{class:"tag-style bg-lightblue-purple ml10"},\u5F85\u786E\u8BA4:{class:"tag-style bg-lightblue-purple ml10"},\u5F85\u5904\u7406:{class:"tag-style bg-lightblue-purple ml10"},\u79C1\u6709:{class:"tag-style bg-lightblue-purple ml10"},\u672A\u63D0\u4EA4:{class:"tag-style bg-lightblue-purple ml10"},\u5DF2\u786E\u8BA4:{class:"tag-style bg-light-pink ml10"},\u5DF2\u53D1\u5E03:{class:"tag-style bg-light-blue ml10"},\u5DF2\u622A\u6B62:{class:"tag-style bg-light-pink ml10"},\u5F00\u53D1\u8BFE\u7A0B:{class:"tag-style bg-orange ml10"},\u5DF2\u5F00\u64AD:{class:"tag-style-border border-green c-green ml10"},\u672A\u5F00\u64AD:{class:"tag-style-border border-light-black ml10"},\u6309\u65F6\u901A\u5173:{class:"tag-style-border border-light-black ml10"},\u8FDF\u4EA4\u901A\u5173:{class:"tag-style-border border-light-black ml10"},\u672A\u901A\u5173:{class:"tag-style-border border-light-black ml10"},\u672A\u5F00\u542F:{class:"tag-style-border border-light-black ml10"}},k=[];r.is_random&&k.push(o.a.createElement("span",{className:"tag-style bg-blue ml10"},"\u968F\u673A"));try{r.status&&r.status.map(function(z,se){k.push(o.a.createElement("span",{key:se,className:L[z]&&L[z].class},z))})}catch(z){console.log("utils.status.tag:",z,r.status)}return k},M=function(r){var L,k,z,se=(L={},Object(s.a)(L,-1,{name:"\u91CD\u505A\u4E2D",class:"c-orange"}),Object(s.a)(L,0,{name:"\u672A\u63D0\u4EA4",class:"c-black"}),Object(s.a)(L,1,{name:"\u672A\u901A\u5173",class:"c-red"}),Object(s.a)(L,2,{name:"\u6309\u65F6\u901A\u5173",class:"c-green"}),Object(s.a)(L,3,{name:"\u8FDF\u4EA4\u901A\u5173",class:"c-orange"}),L);return o.a.createElement("span",{className:(k=se[r.status])===null||k===void 0?void 0:k.class},(z=se[r.status])===null||z===void 0?void 0:z.name)},C=function(r){var L,k,z={0:{name:"\u672A\u63D0\u4EA4",class:"c-black"},1:{name:"\u6309\u65F6\u63D0\u4EA4",class:"c-green"},2:{name:"\u5EF6\u65F6\u63D0\u4EA4",class:"c-red"}};return o.a.createElement("span",{className:(L=z[r.status])===null||L===void 0?void 0:L.class},(k=z[r.status])===null||k===void 0?void 0:k.name)},R=function(r){r=new Date(r).getTime();var L=1e3*60,k=L*60,z=k*24,se="",pe=new Date().getTime(),ge=pe-r;if(ge<0)return console.log("\u65F6\u95F4\u4E0D\u5BF9\u52B2,\u670D\u52A1\u5668\u521B\u5EFA\u65F6\u95F4\u4E0E\u5F53\u524D\u65F6\u95F4\u4E0D\u540C\u6B65"),se="\u521A\u521A";var me=parseInt(ge/z,10),ve=parseInt(ge/k,10),be=parseInt(ge/L,10);return me>30?se=""+I(r,"yyyy-MM-dd"):me>1?se=""+me+"\u5929\u524D":me==1?se="\u6628\u5929":ve>=1?se=""+ve+"\u5C0F\u65F6\u524D":be>=5?se=""+be+"\u5206\u949F\u524D":se="\u521A\u521A",se},I=function(r,L){typeof r=="string"&&(r.indexOf("T")>=0&&(r=r.replace("T"," ")),r=new Date(Date.parse(r.replace(/-/g,"/")))),r=new Date(r);var k={"M+":r.getMonth()+1,"d+":r.getDate(),"h+":r.getHours(),"m+":r.getMinutes(),"s+":r.getSeconds(),"q+":Math.floor((r.getMonth()+3)/3),S:r.getMilliseconds()},z=[["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],["\u5468\u65E5","\u5468\u4E00","\u5468\u4E8C","\u5468\u4E09","\u5468\u56DB","\u5468\u4E94","\u5468\u516D"],["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"]];/(y+)/.test(L)&&(L=L.replace(RegExp.$1,(r.getFullYear()+"").substr(4-RegExp.$1.length))),/(w+)/.test(L)&&(L=L.replace(RegExp.$1,z[RegExp.$1.length-1][r.getDay()]));for(var se in k)new RegExp("("+se+")").test(L)&&(L=L.replace(RegExp.$1,RegExp.$1.length==1?k[se]:("00"+k[se]).substr((""+k[se]).length)));return L},H=function(r){if(!r||r<0)return"0\u79D2";console.log("time:",r);var L=60,k=L*60,z=k*24,se=r/z,pe=r/k,ge=r/L,me=r%60;return se>=1?parseInt(se.toString())+"\u5929"+Math.floor(pe%24)+"\u65F6"+Math.floor(ge%60)+"\u5206"+Math.floor(r%60)+"\u79D2":pe>1?parseInt(pe.toString())+"\u65F6"+Math.floor(ge%60)+"\u5206"+Math.floor(r%60)+"\u79D2":ge>=1?parseInt(ge.toString())+"\u5206"+Math.floor(r%60)+"\u79D2":Math.ceil(r)+"\u79D2"},W=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100,k=0;if(r){k=r.length;for(var z=0;z<k;z++){var se=r.charCodeAt(z);se>=55296&&se<=56319&&(k--,z++)}}return k<=L},D=function(r,L,k){if(L){var z=/[`~!@#$%^&*()\-+=<>?:"{}|,.\/;'\\[\]·~!@#¥%……&*()——\-+={}|《》?:“”【】、;‘’,。、]/im,se=/[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF][\u200D|\uFE0F]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF]|[0-9|*|#]\uFE0F\u20E3|[0-9|#]\u20E3|[\u203C-\u3299]\uFE0F\u200D|[\u203C-\u3299]\uFE0F|[\u2122-\u2B55]|\u303D|[\A9|\AE]\u3030|\uA9|\uAE|\u3030/ig,pe=se.test(L),ge=z.test(L);(pe===!0||ge===!0||(L.length<2||L.length>=21))&&k("2-20\u4F4D\u4E2D\u82F1\u6587\u3001\u6570\u5B57\u53CA\u4E0B\u5212\u7EBF")}k()},ae=function(r,L,k){if(L){var z=/[`~!@#$%^&()_\-+=<>?:"{}|,.\/;'\\[\]·~!@#¥%……&()——\-+={}|《》?:“”【】、;‘’,。、]/im,se=/[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF][\u200D|\uFE0F]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF]|[0-9|*|#]\uFE0F\u20E3|[0-9|#]\u20E3|[\u203C-\u3299]\uFE0F\u200D|[\u203C-\u3299]\uFE0F|[\u2122-\u2B55]|\u303D|[\A9|\AE]\u3030|\uA9|\uAE|\u3030/ig,pe=se.test(L),ge=z.test(L);(pe===!0||ge===!0||(L.length<2||L.length>=11))&&k("2-10\u4F4D\u4E2D\u82F1\u6587\u3001\u6570\u5B57")}k()},V=function(r){if(!r)return"";for(var L=r.length-1,k="",z=0;z<L;z++)k+="*";var se=r.substr(0,1)+k;return se},te=function(r,L){var k=new FileReader;k.addEventListener("load",function(){return L(k.result)}),k.readAsDataURL(r)};function $(a){var r="79e33abd4b6588941ab7622aed1e67e8";return A()(r+a)}var P=function(r){var L,k=RegExp("(^| )"+r+"=([^;]+)(;|$)");return(L=document.cookie.match(k))?decodeURIComponent(L[2]):null};function F(a,r,L){var k=new Date;k.setTime(k.getTime()+L*24*60*60*1e3);var z="expires="+k.toUTCString();document.cookie=a+"="+r+"; "+z}var G=function(r){document.cookie=r+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT;path=/;"};function J(a,r){return new Promise(function(L,k){var z=r,se=document.createElement("iframe"),pe;console.log("downloadFileUrl",z),document.body.appendChild(se),se.src=z,se.style.display="none",pe=setInterval(function(){P("fileDownload")&&(G("fileDownload"),clearInterval(pe),L())},1e3)})}var U=function(r){var L=r.url,k=r.query;return L?(k&&function(){var z=[],se=function(me){k.hasOwnProperty(me)&&!B(k[me])&&(typeof k[me]=="object"?k[me].map(function(ve){z.push("".concat(me,"[]=").concat(ve))}):z.push("".concat(me,"=").concat(k[me])))};for(var pe in k)se(pe);L.indexOf("?")!==-1?L="".concat(L,"&").concat(z.join("&")):L="".concat(L,"?").concat(z.join("&")),console.log("url1111",L)}(),L):""};function Z(){for(var a=navigator.userAgent,r=["Android","iPhone","SymbianOS","Windows Phone","iPad","iPod"],L=!0,k=0;k<r.length;k++)if(a.indexOf(r[k])>0){L=!1;break}return L}function ie(){var a=navigator.userAgent,r=["Chrome","Firefox"];return r.some(function(L){return a.indexOf(L)>-1})}var re=function(){var r,L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return L==null||((r=L.toString())===null||r===void 0)?void 0:r.replace(/\B(?=(\d{3})+(?!\d))/g,",")},le=function(r){var L=document.createElement("a");L.target="_blank",document.body.appendChild(L),L.href=r;var k=document.createEvent("MouseEvents");k.initEvent("click",!1,!1),L.dispatchEvent(k),document.body.removeChild(L)},de=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return r.length<=6?r:"".concat(r.substring(0,3),"...").concat(r.substring(r.length-3,r.length))},K=function(){var r=new Date().getHours(),L=new Date().getMinutes();return L>=30?(r++,L="00"):L="30",r+":"+L},Se=function(){var r=new Date().getHours(),L=new Date().getMinutes();return L>=30?(r++,L="00"):L="30",new Date().toLocaleDateString().replace(/\//g,"-")+" "+r+":"+L},oe;(function(a){a.Number="Number",a.String="String",a.Boolean="Boolean",a.Object="Object",a.Array="Array",a.Function="Function"})(oe||(oe={}));var q=function(r){var L=Object.prototype.toString.call(r);return L.substring(8,L.length-1)},Q=function(r){return q(r)===oe.Array?r.length===0:q(r)===oe.Object?Object.keys(r).length===0:!r},ee=function(r,L){for(var k=[],z=r;z<L;z++)k.push(z);return k},ce=function(r){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:12,k=L/2-2,z=L/2+3;return r.length>L?r.substr(0,k)+"..."+r.substr(z,L):r},X=function(r){return r>4.5?5:r>4&&r<=4.5?4.5:r>3.5&&r<=4?4:r>3&&r<=3.5?3.5:r>2.5&&r<=3?3:r>2&&r<=2.5?2.5:r>1.5&&r<=2?2:r>1&&r<=1.5?1.5:r>.5&&r<=1?1:r>0&&r<=.5?.5:0},B=function(r){return r==null};function Y(a,r){var L=new RegExp("(^|&)".concat(a,"=([^&]*)(&|$)"),"i"),k=r.substr(1).match(L);return k!=null?decodeURIComponent(k[2]):null}var N=function(r){switch(r.container_type){case"ApplyUserAuthentication":if(r.tiding_type==="Apply"){if(r.auth_type===1)return window.open("/admins/identity_authentications");if(r.auth_type===2)return window.open("/admins/professional_authentications")}return r.tiding_type==="System"?window.open("/account/certification"):void 0;case"CancelUserAuthentication":return window.open("/account/certification");case"CancelUserProCertification":return window.open("/account/certification");case"ApplyAddDepartment":return r.tiding_type==="Apply"?window.open("/admins/department_applies"):r.tiding_type==="System"?window.open("/account/profile"):void 0;case"ApplyAddSchools":return r.tiding_type==="Apply"?window.open("/admins/unit_applies"):r.tiding_type==="System"?window.open("/account/profile"):void 0;case"ApplyAction":switch(r.parent_container_type){case"ApplyShixun":if(r.tiding_type==="Apply")return window.open("/admins/shixun_authorizations");if(r.tiding_type==="System")return window.open("/shixuns/".concat(r.identifier,"/challenges"));case"ApplySubject":if(r.tiding_type==="Apply")return window.open("/admins/subject_authorizations");if(r.tiding_type==="System")return window.open("/paths/".concat(r.parent_container_id));case"TrialAuthorization":if(r.tiding_type==="Apply")return window.open("/managements/trial_authorization");if(r.tiding_type==="System")return window.open("/account/profile")}return;case"JoinCourse":return window.open("/classrooms/".concat(r.belong_container_id,"/teachers"));case"StudentJoinCourse":if(r.tiding_type==="Apply")return window.open("/classrooms/".concat(r.belong_container_id,"/teachers"));if(r.tiding_type==="System")return window.open("/classrooms/".concat(r.belong_container_id,"/students"));case"DealCourse":return window.open("/classrooms/".concat(r.belong_container_id,"/shixun_homework/"));case"TeacherJoinCourse":return window.open("/classrooms/".concat(r.belong_container_id,"/shixun_homework/"));case"Course":return r.tiding_type==="Delete"?void 0:window.open("/classrooms/".concat(r.belong_container_id,"/shixun_homework/"));case"ArchiveCourse":return window.open("/classrooms/".concat(r.belong_container_id,"/shixun_homework/"));case"Shixun":return window.open("/shixuns/".concat(r.identifier,"/challenges"));case"Subject":return window.open("/paths/".concat(r.container_id));case"JournalsForMessage":switch(r.parent_container_type){case"Principal":return"";case"HomeworkCommon":return r.homework_type==="normal"?window.open("/classrooms/".concat(r.belong_container_id,"/common_homework/").concat(r.parent_container_id,"/question")):r.homework_type==="group"?window.open("/classrooms/".concat(r.belong_container_id,"/group_homework/").concat(r.parent_container_id,"/question")):r.homework_type==="practice"?window.open("/classrooms/".concat(r.belong_container_id,"/shixun_homework/").concat(r.parent_container_id,"/detail?tabs=1")):"";case"GraduationTopic":return window.open("/classrooms/".concat(r.belong_container_id,"/graduation_topics/").concat(r.parent_container_id,"/detail"));case"StudentWorksScore":return r.homework_type==="normal"?window.open("/classrooms/".concat(r.belong_container_id,"/common_homework/").concat(r.parent_container_id,"/question")):r.homework_type==="group"?window.open("/classrooms/".concat(r.belong_container_id,"/group_homework/").concat(r.parent_container_id,"/question")):r.homework_type==="practice"?window.open("/classrooms/".concat(r.belong_container_id,"/shixun_homework/").concat(r.parent_container_id,"/detail?tabs=1")):""}case"Memo":return window.open("/forums/".concat(r.parent_container_id));case"Message":return window.open("/forums/");case"Watcher":return window.open("/users/".concat(r.trigger_user.login,"/classrooms"));case"PraiseTread":return"";case"Grade":return"";case"JoinProject":return window.open("/projects/".concat(r.container_id));case"ReporterJoinProject":return window.open("/projects/".concat(r.container_id));case"DealProject":return window.open("/projects/".concat(r.container_id));case"ManagerJoinProject":return window.open("/projects/".concat(r.container_id));case"Poll":switch(r.parent_container_type){case"CommitPoll":return window.open(" /classrooms/".concat(r.belong_container_id,"/poll/").concat(r.container_id,"/detail"));default:return window.open(" /classrooms/".concat(r.belong_container_id,"/poll/").concat(r.container_id,"/detail"))}case"Exercise":switch(r.parent_container_type){case"CommitExercise":return window.open(" /classrooms/".concat(r.belong_container_id,"/exercise/").concat(r.container_id,"/detail?tab=0"));case"ExerciseScore":return window.open(" /classrooms/".concat(r.belong_container_id,"/exercise/").concat(r.container_id,"/detail?tab=0"));default:return window.open("/classrooms/".concat(r.belong_container_id,"/exercise/").concat(r.container_id,"/detail?tab=0"))}case"StudentGraduationTopic":return window.open("/classrooms/".concat(r.belong_container_id,"/graduation_topics/").concat(r.parent_container_id,"/detail"));case"DealStudentTopicSelect":return window.open("/classrooms/".concat(r.belong_container_id,"/graduation_topics/").concat(r.parent_container_id,"/detail"));case"GraduationTask":return window.open("/classrooms/".concat(r.belong_container_id,"/graduation_tasks/").concat(r.container_id));case"GraduationWork":return window.open("/classrooms/".concat(r.belong_container_id,"/graduation_tasks/").concat(r.container_id));case"GraduationWorkScore":return window.open("/classrooms/".concat(r.belong_container_id,"/graduation_tasks/").concat(r.parent_container_id));case"HomeworkCommon":switch(r.parent_container_type){case"AnonymousCommentFail":if(r.homework_type==="normal")return window.open("/classrooms/".concat(r.belong_container_id,"/common_homework/").concat(r.parent_container_id,"/detail"));if(r.homework_type==="group")return window.open("/classrooms/".concat(r.belong_container_id,"/group_homework/").concat(r.parent_container_id,"/detail"));if(r.homework_type==="practice")return window.open("/classrooms/".concat(r.belong_container_id,"/shixun_homework/").concat(r.parent_container_id,"/detail?tabs=0"));case"HomeworkPublish":if(r.homework_type==="normal")return window.open("/classrooms/".concat(r.belong_container_id,"/common_homework/").concat(r.parent_container_id,"/detail"));if(r.homework_type==="group")return window.open("/classrooms/".concat(r.belong_container_id,"/group_homework/").concat(r.parent_container_id,"/detail"));if(r.homework_type==="practice")return window.open("/classrooms/".concat(r.belong_container_id,"/shixun_homework/").concat(r.parent_container_id,"/detail?tabs=0"));case"AnonymousAppeal":if(r.homework_type==="normal")return window.open("/classrooms/".concat(r.belong_container_id,"/common_homework/").concat(r.parent_container_id,"/detail"));if(r.homework_type==="group")return window.open("/classrooms/".concat(r.belong_container_id,"/group_homework/").concat(r.parent_container_id,"/detail"));if(r.homework_type==="practice")return window.open("/classrooms/".concat(r.belong_container_id,"/shixun_homework/").concat(r.parent_container_id,"/detail?tabs=0"));default:if(r.homework_type==="normal")return window.open("/classrooms/".concat(r.belong_container_id,"/common_homework/").concat(r.parent_container_id,"/detail"));if(r.homework_type==="group")return window.open("/classrooms/".concat(r.belong_container_id,"/group_homework/").concat(r.parent_container_id,"/detail"));if(r.homework_type==="practice")return window.open("/classrooms/".concat(r.belong_container_id,"/shixun_homework/").concat(r.parent_container_id,"/detail?tabs=0"))}case"StudentWork":if(r.homework_type==="normal")return window.open("/classrooms/".concat(r.belong_container_id,"/common_homework/").concat(r.parent_container_id,"/review/").concat(r.container_id));if(r.homework_type==="group")return window.open("/classrooms/".concat(r.belong_container_id,"/group_homework/").concat(r.parent_container_id,"/review/").concat(r.container_id));if(r.homework_type==="practice")return window.open("/classrooms/".concat(r.belong_container_id,"/shixun_homework/").concat(r.parent_container_id,"/detail"));case"StudentWorksScore":return window.open("/classrooms/".concat(r.belong_container_id,"/common_homework/").concat(r.trigger_user.id,"/review/").concat(r.parent_container_id));case"StudentWorksScoresAppeal":return window.open("/classrooms/".concat(r.belong_container_id,"/common_homework/").concat(r.trigger_user.id,"/review/").concat(r.parent_container_id));case"ChallengeWorkScore":return"";case"SendMessage":return window.open("/managements/mirror_repository");case"Journal":return window.open("/issues/".concat(r.parent_container_id));case"Issue":return window.open("/issues/".concat(r.container_id));case"PullRequest":return window.open("/projects/".concat(r.parent_container_id,"/pull_requests"));case"Department":return window.open("/account/profile");case"Library":if(r.tiding_type==="Apply")return window.open("/admins/library_applies");if(r.tiding_type==="System")return window.open("/moop_cases/".concat(r.container_id));case"ProjectPackage":return r.tiding_type==="Destroyed"||r.tiding_type==="Destroyed_end"?void 0:r.tiding_type==="Apply"?window.open("/admins/project_package_applies"):window.open("/crowdsourcing/".concat(r.container_id));case"Discuss":return r.parent_container_type==="Hack"&&r.extra?window.open("/myproblems/".concat(r.extra,"/comment")):window.open("/shixuns/".concat(r.identifier,"/shixun_discuss"));case"Video":if(r.tiding_type==="Apply")return window.open("/admins/video_applies");if(r.tiding_type==="System"){var L;return window.open("/users/".concat((L=Object(b.t)())===null||L===void 0?void 0:L.login,"/videos"))}return"";case"PublicCourseStart":return window.open("/classrooms/".concat(r.container_id,"/informs"));case"SubjectStartCourse":return window.open("/paths/".concat(r.container_id));case"ResubmitStudentWork":if(r.homework_type==="normal")return window.open("/classrooms/".concat(r.belong_container_id,"/common_homework/").concat(r.parent_container_id,"/").concat(r.container_id,"/appraise"));if(r.homework_type==="group")return window.open("/classrooms/".concat(r.belong_container_id,"/group_homework/").concat(r.parent_container_id,"/").concat(r.container_id,"/appraise"));case"AdjustScore":if(r.homework_type==="normal")return window.open("/classrooms/".concat(r.belong_container_id,"/common_homework/").concat(r.parent_container_id));if(r.homework_type==="group")return window.open("/classrooms/".concat(r.belong_container_id,"/group_homework/").concat(r.parent_container_id));case"LiveLink":return window.open("/classrooms/".concat(r.belong_container_id,"/course_videos?open=live"));case"Hack":if(r.extra&&r.parent_container_type!=="HackDelete")return window.open("/problems/".concat(r.extra,"/edit"));default:return}},v=function(r){if(r.open_camera||r.screen_open){if(!ie())return l.a.info({icon:null,okText:"\u786E\u5B9A",width:500,content:o.a.createElement("div",{className:"font16"},"\u672C\u6B21\u8003\u8BD5\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A\u8BBE\u7F6E\uFF0C\u4EC5\u652F\u6301",o.a.createElement("span",{className:"c-red"},"\u8C37\u6B4C"),"\u3001",o.a.createElement("span",{className:"c-red"},"\u706B\u72D0"),"\u6D4F\u89C8\u5668\u3002",o.a.createElement("br",null),"\u8BF7\u4F7F\u7528",o.a.createElement("span",{className:"c-red"},"\u8C37\u6B4C"),"\u3001",o.a.createElement("span",{className:"c-red"},"\u706B\u72D0"),"\u6D4F\u89C8\u5668\u5F00\u59CB\u8003\u8BD5\u3002")}),!1;var L=l.a.info({title:o.a.createElement(f.a,null,o.a.createElement(d.a,{flex:"1"},"\u8003\u8BD5\u8BF4\u660E"),o.a.createElement(d.a,null,o.a.createElement("span",{className:"iconfont icon-yiguanbi1 current c-grey-c",onClick:function(){return L.destroy()}}))),width:700,icon:null,className:"custom-modal-divider",content:o.a.createElement("div",{className:"font16 p20"},r.open_camera&&o.a.createElement(f.a,{align:"middle",justify:"start",className:"mt20"},o.a.createElement(d.a,null,o.a.createElement("span",{className:"iconfont icon-kaiqishexiangtou c-blue mr20 font24"})),o.a.createElement(d.a,null,"\u8FDB\u5165\u8003\u8BD5\u540E\uFF0C\u8BF7\u5141\u8BB8\u6444\u50CF\u5934\u6388\u6743\uFF0C\u6388\u6743\u540E\u6253\u5F00\u6444\u50CF\u5934\u65B9\u53EF\u4F5C\u7B54\uFF01",o.a.createElement("a",{target:"_blank",href:"https://www.educoder.net/forums/4459"},"\u65E0\u6CD5\u8C03\u7528\u6444\u50CF\u5934\uFF1F"))),r.screen_open&&o.a.createElement(f.a,{justify:"start",className:"mt20"},o.a.createElement(d.a,{flex:"24px",className:"mr20"},o.a.createElement("span",{className:"iconfont icon-kaiqifangqieping c-blue font24"})),o.a.createElement(d.a,{flex:"1"},"\u5F53\u524D\u8003\u8BD5\u5DF2\u5F00\u542F\u9632\u5207\u5C4F\uFF0C\u5207\u5C4F\u8D85\u8FC7",r.screen_num,"\u6B21\u5C06\u5F3A\u5236\u4EA4\u5377\u3002\uFF08\u9000\u51FA\u5168\u5C4F\u5C06\u5224\u5B9A\u4E3A\u5207\u5C4F\u4E00\u6B21\uFF0C\u8003\u8BD5\u8FC7\u7A0B\u4E2D\u8BF7\u52FF\u9000\u51FA\u5168\u5C4F\uFF09",o.a.createElement("a",{target:"_blank",href:"https://www.educoder.net/forums/4460"},"\u6D4F\u89C8\u5668\u65E0\u6CD5\u81EA\u52A8\u5168\u5C4F\uFF1F"))),o.a.createElement("p",{className:"ml40 mt40"},o.a.createElement(t.a,{onChange:function(z){return L.update({okButtonProps:{disabled:!z.target.checked}})}},"\u6211\u5DF2\u9605\u8BFB"))),onOk:function(){var z;Object(m.d)(document.body),r.history.push("/classrooms/".concat(r.coursesId,"/exercise/").concat(r.exerciseId,"/users/").concat((z=Object(b.t)())===null||z===void 0?void 0:z.login))},okText:"\u8FDB\u5165\u8003\u8BD5",okButtonProps:{disabled:!0}});L.update({})}else r.history.push("/classrooms/".concat(r.coursesId,"/exercise/").concat(r.exerciseId,"/users/").concat(r.login))}},"7ahc":function(e,_,c){"use strict";c.d(_,"a",function(){return j});var u=c("k1fw"),t=c("0Owb"),y=c("+L6B"),f=c("2/Rp"),h=c("y8nQ"),d=c("Vl3Y"),n=c("tJVT"),l=c("OaEy"),s=c("2fM7"),i=c("q1tI"),o=c.n(i),b=c("VrN/"),m=c.n(b),g=c("p77/"),A=c.n(g),T=s.a.Option,x={labelCol:{span:4},wrapperCol:{span:20}},E={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};_.b=function(O){var S=O.callback,w=O.onCancel,p=Object(i.useState)("python"),M=Object(n.a)(p,2),C=M[0],R=M[1];function I(W){R(E[W][1])}function H(W){S(W)}return o.a.createElement(d.a,Object(t.a)({},x,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:H}),o.a.createElement(d.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},o.a.createElement(s.a,{onChange:I},Object.keys(E).map(function(W){return o.a.createElement(T,{key:W,value:W},E[W][0])}))),o.a.createElement(d.a.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},o.a.createElement(j,{mode:C})),o.a.createElement("div",{className:"flex-container flex-end"},o.a.createElement(f.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),o.a.createElement(f.a,{type:"ghost",onClick:w},"\u53D6\u6D88")))};function j(O){var S=O.value,w=O.onChange,p=O.mode,M=O.options,C=M===void 0?{}:M,R=Object(i.useRef)(),I=Object(i.useState)(),H=Object(n.a)(I,2),W=H[0],D=H[1];return Object(i.useEffect)(function(){if(W){var ae=function(te){var $=te.getValue();w&&w($)};return W.on("change",ae),function(){W.off("change",ae)}}},[W,w]),Object(i.useEffect)(function(){W&&W.setOption("mode",p)},[W,p]),Object(i.useEffect)(function(){W&&(S!==W.getValue()&&W.setValue(S||""))},[W,S]),Object(i.useEffect)(function(){if(R.current&&!W){var ae=m.a.fromTextArea(R.current,Object(u.a)({mode:p,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0},C));D(ae)}},[R.current,W]),o.a.createElement("div",{className:"my-codemirror-container"},o.a.createElement("textarea",{ref:R}))}},"9Bee":function(e,_,c){"use strict";var u=c("q1tI"),t=c.n(u),y=c("vg9a"),f=c("tJVT"),h=c("DlQD"),d=c.n(h),n=c("rUJ1");function l(P,F){var G=P.match(/^(\s+)(?:```)/);if(G===null)return F;var J=G[1];return F.split(`
|
||
`).map(function(U){var Z=U.match(/^\s+/);if(Z===null)return U;var ie=Object(f.a)(Z,1),re=ie[0];return re.length>=J.length?U.slice(J.length):U}).join(`
|
||
`)}var s=[],i=["<ul>"],o=new d.a.Renderer,b=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function m(){s.length=0,i=["<ul>"]}function g(P,F,G,J){if(F>=P.length||P[F].level<=G)return F;var U=P[F];J.push("<li><a href='#"+U.anchor+"'>"+U.text+"</a>"),F++;var Z=[];return F=g(P,F,U.level,Z),Z.length>0&&(J.push("<ul>"),Z.forEach(function(ie){J.push(ie)}),J.push("</ul>")),J.push("</li>"),F=g(P,F,G,J),F}function A(){return g(s,0,0,i),i.push("</ul>"),i.join("")}var T={heading:function(F){var G=b.exec(F);if(G)return{type:"heading",raw:G[0],depth:G[1].length,text:G[2]}},fences:function(F){var G=this.rules.block.fences.exec(F);if(G){var J=G[0],U=l(J,G[3]||""),Z=G[2]?G[2].trim():G[2];if(["latex","katex","math"].indexOf(Z)>=0){var ie=j(),re=U;U=ie,O[ie]={type:"block",expression:re}}return{type:"code",raw:J,lang:Z,text:U}}}},x=/(?:\${2})([^\n`]+?)(?:\${2})/gi,E=0,j=function(){return"__special_katext_id_".concat(E++,"__")},O={};function S(){return O}function w(){E=0,O={}}function p(P){return P=P.replace(x,function(F,G){var J=j();return O[J]={type:"inline",expression:G},J}),P}var M=o.listitem;o.listitem=function(P){return M(p(P))};var C=o.paragraph;o.paragraph=function(P){return C(p(P))};var R=o.tablecell;o.tablecell=function(P,F){return R(p(P),F)},o.code=function(P,F,G){var J=(F||"").match(/\S*/)[0];return J?["latex","katex","math"].indexOf(J)>=0?"<p class='editormd-tex'>".concat(P,"</p>"):'<pre class="prettyprint linenums"><code class="language-'.concat(F,'">').concat(G?P:Object(n.escape)(P,!0),`</code></pre>
|
||
`):'<pre class="prettyprint linenums"><code>'+(G?P:Object(n.escape)(P,!0))+"</code></pre>"},o.heading=function(P,F,G){var J=this.options.headerPrefix+G.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return s.push({anchor:J,level:F,text:P}),"<h"+F+' id="'+J+'">'+P+"</h"+F+">"},d.a.setOptions({silent:!0,smartypants:!0,gfm:!0,pedantic:!1}),d.a.use({tokenizer:T,renderer:o});var I=d.a,H=c("SJMd"),W=c("wMS7"),D=c.n(W),ae=c("Oy/b"),V=/<pre[^>]*>/g;function te(P){var F=document.createElement("div");return F.innerHTML=P,F.childNodes.length===0?"":F.childNodes[0].nodeValue}var $=_.a=function(P){var F=P.value,G=F===void 0?"":F,J=P.className,U=P.style,Z=U===void 0?{}:U,ie=String(G),re=Object(u.useMemo)(function(){var K=I(ie),Se=S();return ie.match(/\[TOC\]/)&&(K=K.replace("<p>[TOC]</p>",A()),m()),K=K.replace(/(__special_katext_id_\d+__)/g,function(oe,q){var Q=Se[q],ee=Q.type,ce=Q.expression;return Object(ae.renderToString)(te(ce)||"",{displayMode:ee==="block",throwOnError:!1,output:"html"})}),K=K.replace(/▁/g,"\u2581\u2581\u2581"),w(),D.a.sanitize(K)},[ie]),le=Object(u.useRef)();function de(K){var Se=K.target;if(Se.tagName.toUpperCase()==="A"){var oe=Se.getAttribute("href");if(oe.startsWith("#")){K.preventDefault();var q=document.getElementById(oe.replace("#",""));q&&q.scrollIntoView(!0)}}}return Object(u.useEffect)(function(){if(le.current&&re&&(re.match(V)&&window.PR.prettyPrint()),le.current)return le.current.addEventListener("click",de),function(){le.current.removeEventListener("click",de),w(),m()}},[re,le.current,de]),t.a.createElement("div",{ref:le,style:Z,className:"".concat(J||""," markdown-body"),dangerouslySetInnerHTML:{__html:re}})}},"9VGf":function(e,_,c){"use strict";c.d(_,"a",function(){return y});var u=c("q1tI"),t=c.n(u);function y(f,h){var d=Object(u.useRef)();Object(u.useEffect)(function(){d.current=f}),Object(u.useEffect)(function(){function n(){d.current()}if(h!==null){var l=setInterval(n,h);return function(){return clearInterval(l)}}},[h])}},BjJ7:function(e,_,c){"use strict";c.d(_,"d",function(){return t}),c.d(_,"c",function(){return y}),c.d(_,"f",function(){return f}),c.d(_,"b",function(){return h}),c.d(_,"e",function(){return d}),c.d(_,"a",function(){return n});var u=c("m3rI");function t(l){var s=!0;if(l.length>0){for(var i=0;i<l.length;i++)if(l[i].compile_success==0||!l[i].compile_success){s=!1;break}}else s=!1;return s}function y(l){for(var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=[],o=0;o<l.length;o++){var b=l[o],m=s?"".concat(s,"/").concat(b.name):"".concat(b.name);i.push({title:b.name,isLeaf:!(b.type==="tree"),key:m})}return i}function f(l,s,i){for(var o=0;o<l.length;o++){var b=l[o];if(b.key===s){b.children=i;break}b.children&&f(b.children,s,i)}return l}function h(l,s,i){var o;return function(){var b=this,m=arguments,g=function(){o=null,i||l.apply(b,m)},A=i&&!o;clearTimeout(o),o=setTimeout(g,s),A&&l.apply(b,m)}}var d=!0,n=u.a.API_SERVER},"C+DQ":function(e,_,c){},DR4n:function(e,_,c){e.exports={flex_box_center:"flex_box_center___2zmmW",flex_space_between:"flex_space_between___3nCIw",flex_box_vertical_center:"flex_box_vertical_center___1PFij",flex_box_center_end:"flex_box_center_end___2FA05",flex_box_column:"flex_box_column___2k0kx",video:"video___1mYnG"}},HmJG:function(e,_,c){},M8RZ:function(e,_,c){"use strict";c.d(_,"a",function(){return s});var u=c("fWQN"),t=c("mtLc"),y=c("yKVA"),f=c("879j"),h=c("q1tI"),d=c.n(h),n=c("i8i4"),l=c.n(n),s=function(i){Object(y.a)(b,i);var o=Object(f.a)(b);function b(m){var g;Object(u.a)(this,b),g=o.call(this,m);var A=window.document;return g.node=A.createElement("div"),A.body.appendChild(g.node),g}return Object(t.a)(b,[{key:"render",value:function(){var g=this.props.children;return Object(n.createPortal)(g,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),b}(d.a.Component)},MvOs:function(e,_,c){"use strict";c.r(_);var u=c("T2oS"),t=c("W9HT"),y=c("14J3"),f=c("BMrR"),h=c("+L6B"),d=c("2/Rp"),n=c("jCWc"),l=c("kPKH"),s=c("sPJy"),i=c("bE4q"),o=c("sRBo"),b=c("kaz8"),m=c("7Kak"),g=c("9yH6"),A=c("MXD1"),T=c("CFYs"),x=c("miYZ"),E=c("tsqr"),j=c("2qtc"),O=c("kLXV"),S=c("WmNS"),w=c.n(S),p=c("k1fw"),M=c("9og8"),C=c("tJVT"),R=c("PpiC"),I=c("aHsQ"),H=c("sGsY"),W=c("q1tI"),D=c.n(W),ae=c("Ty5D"),V=c("9kvl"),te=c("55Ip"),$={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},P=$,F=c("6VBw"),G=function(Ne,Re){return W.createElement(F.a,Object.assign({},Ne,{ref:Re,icon:P}))};G.displayName="MinusSquareOutlined";var J=W.forwardRef(G),U=c("xGfz"),Z=c("jhfD"),ie=c("Llu2"),re=c("ErOA"),le=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),de=new Uint8Array(16);function K(){if(!le)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return le(de)}var Se=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function oe(Be){return typeof Be=="string"&&Se.test(Be)}for(var q=oe,Q=[],ee=0;ee<256;++ee)Q.push((ee+256).toString(16).substr(1));function ce(Be){var Ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Re=(Q[Be[Ne+0]]+Q[Be[Ne+1]]+Q[Be[Ne+2]]+Q[Be[Ne+3]]+"-"+Q[Be[Ne+4]]+Q[Be[Ne+5]]+"-"+Q[Be[Ne+6]]+Q[Be[Ne+7]]+"-"+Q[Be[Ne+8]]+Q[Be[Ne+9]]+"-"+Q[Be[Ne+10]]+Q[Be[Ne+11]]+Q[Be[Ne+12]]+Q[Be[Ne+13]]+Q[Be[Ne+14]]+Q[Be[Ne+15]]).toLowerCase();if(!q(Re))throw TypeError("Stringified UUID is invalid");return Re}var X=ce;function B(Be,Ne,Re){Be=Be||{};var Ge=Be.random||(Be.rng||K)();if(Ge[6]=Ge[6]&15|64,Ge[8]=Ge[8]&63|128,Ne){Re=Re||0;for(var je=0;je<16;++je)Ne[Re+je]=Ge[je];return Ne}return X(Ge)}var Y=B,N=c("DR4n"),v=c.n(N),a=c("mxV5"),r=function(Ne,Re){for(var Ge=Ne.split(","),je=Ge[0].match(/:(.*?);/)[1],it=atob(Ge[1]),Ae=it.length,Ee=new Uint8Array(Ae);Ae--;)Ee[Ae]=it.charCodeAt(Ae);return new Blob([Ee],{type:je})},L=function(Ne){var Re=Ne.time,Ge=Ne.number,je=Ne.supportCamera,it=Ne.update,Ae=Object(W.useRef)(),Ee=Object(W.useRef)(),ke=Object(ae.m)(),vt=Object(W.useState)([]),tt=Object(C.a)(vt,2),Ke=tt[0],He=tt[1],ot=Object(W.useState)(0),mt=Object(C.a)(ot,2),Ze=mt[0],ft=mt[1],Lt=Object(W.useState)(""),It=Object(C.a)(Lt,2),_t=It[0],Me=It[1],Ye=Object(W.useState)(),Ve=Object(C.a)(Ye,2),rt=Ve[0],Nt=Ve[1],kt=Object(W.useState)(0),xt=Object(C.a)(kt,2),At=xt[0],St=xt[1];Object(W.useEffect)(function(){return Ot(),function(){Dt(),yt()}},[]),Object(W.useEffect)(function(){Ze===2&&Re&&Ge>0&&(wt(),St(1))},[Re]),Object(W.useEffect)(function(){if(At===0)return;if(At===2)clearInterval(rt);else{var ut=0,qe=setInterval(function(){Ke.includes(ut)&&Ct(),ut++},1e3);Nt(qe)}return function(){return clearInterval(rt)}},[At]);var yt=function(){St(2)},wt=function(){var qe=Re/Ge,at=[];function gt(jt,Et){return parseInt(Math.floor(Math.random()*(Et-jt+1))+jt)}new Array(Ge).fill(0).map(function(jt,Et){at.push(gt(qe*Et,qe*(Et+1)))}),Ke=at,He([].concat(at)),console.log(at)},Ot=function(){navigator.mediaDevices===void 0&&(navigator.mediaDevices={}),navigator.mediaDevices.getUserMedia===void 0&&(navigator.mediaDevices.getUserMedia=function(qe){var at=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia;return at?new Promise(function(gt,jt){at.call(navigator,qe,gt,jt)}):Promise.reject(new Error("getUserMedia is not implemented in this browser"))}),navigator.mediaDevices.getUserMedia({video:{width:1280,height:720}}).then(function(qe){je&&je(2),ft(2),"srcObject"in Ae.current?Ae.current.srcObject=qe:Ae.current.src=window.URL.createObjectURL(qe),Ae.current.onloadedmetadata=function(at){Ae.current.play()},Ae.current.addEventListener("ended",function(){console.log("\u64AD\u653E\u7ED3\u675F"),yt(),E.b.error({content:"\u60A8\u5DF2\u7ECF\u5173\u95ED\u4E86\u6444\u50CF\u5934\uFF0C\u8BF7\u572810\u79D2\u949F\u5185\u6062\u590D\u6444\u50CF\u5934\uFF0C\u5426\u5219\u5C06\u63A8\u51FA\u8003\u8BD5",duration:10,key:9998})},!1)}).catch(function(qe){ft(1),je&&je(1),qe.message==="Permission denied"||qe.name==="NotAllowedError"?E.b.error("\u60A8\u5DF2\u62D2\u7EDD\u4E86\u83B7\u53D6\u6444\u50CF\u5934"):E.b.error("\u6444\u50CF\u5934\u83B7\u53D6\u5931\u8D25\uFF0C\u6216\u60A8\u5DF2\u62D2\u7EDD\u4E86\u83B7\u53D6\u6444\u50CF\u5934"),console.log("errname: "+qe.name),console.log("err: "+qe.message)})},Ct=function(){try{Ee.current.width=Ae.current.videoWidth,Ee.current.height=Ae.current.videoHeight;var qe=Ee.current.getContext("2d");qe.drawImage(Ae.current,0,0,Ee.current.width,Ee.current.height),Me(Ee.current.toDataURL("image/png")),Pt(Ee.current.toDataURL("image/png"))}catch(at){}},Dt=function(){try{var qe=Ae.current.srcObject,at=qe.getTracks();at.forEach(function(gt){gt.stop()}),Ae.current.srcObject=null}catch(gt){}},Pt=function(){var ut=Object(M.a)(w.a.mark(function qe(at){var gt,jt,Et,Ht,Ft,ze,Pe,Te,ne,Xe,Je;return w.a.wrap(function(et){for(;;)switch(et.prev=et.next){case 0:return et.next=2,Object(re.a)("/api/buckets/get_upload_token.json",{method:"get"});case 2:Te=et.sent,ne=Y(),Xe=new a({endpoint:Te==null||((gt=Te.data)===null||gt===void 0)?void 0:gt.end_point,region:Te==null||((jt=Te.data)===null||jt===void 0)?void 0:jt.region,accessKeyId:Te==null||((Et=Te.data)===null||Et===void 0)?void 0:Et.access_key_id,accessKeySecret:Te==null||((Ht=Te.data)===null||Ht===void 0)?void 0:Ht.access_key_secret,bucket:Te==null||((Ft=Te.data)===null||Ft===void 0)?void 0:Ft.bucket,stsToken:Te==null||((ze=Te.data)===null||ze===void 0)?void 0:ze.security_token}),Je=r(at,ne),Xe.multipartUpload("".concat(ne,".png"),Je,{timeout:10*1e3,partSize:10485760,callback:{url:"https://"+document.domain+(Te==null||((Pe=Te.data)===null||Pe===void 0)?void 0:Pe.callback_url),host:document.domain,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&login="+ke.login+"&exercise_id="+ke.categoryId}}).then(function(dt){console.log("result:",dt)}).catch(function(dt){console.log("err:",dt)});case 7:case"end":return et.stop()}},qe)}));return function(at){return ut.apply(this,arguments)}}();return D.a.createElement(D.a.Fragment,null,Ze!==3&&D.a.createElement("aside",{className:v.a.video,id:"screenshot"},Ze===0&&D.a.createElement("span",null,"\u6B63\u5728\u5F00\u542F\u6444\u50CF\u5934..."),Ze===1&&D.a.createElement("span",null,"\u6444\u50CF\u5934\u5F00\u542F\u5931\u8D25"),Ze===2&&D.a.createElement("div",null,D.a.createElement("video",{width:"288",ref:Ae,autoPlay:!0}),D.a.createElement("canvas",{style:{display:"none"},ref:Ee}))))},k=L,z=c("bPs0"),se=c("wd/R"),pe=c.n(se),ge=c("V5fa"),me=c.n(ge),ve=c("1vsH"),be=c("xKgJ"),Oe=c("bntm"),ue=c("V0Rq"),xe=c("HBuW"),Ie=c("9Bee"),Le=c("5NDa"),We=c("5rEg"),lt=c("Ot1p"),nt=function(Ne){var Re,Ge,je,it,Ae=Ne.item,Ee=Ne.answerData,ke=Ne.onBlur,vt=ke===void 0?function(){}:ke,tt=Object(W.useState)(),Ke=Object(C.a)(tt,2),He=Ke[0],ot=Ke[1],mt=Object(W.useState)(),Ze=Object(C.a)(mt,2),ft=Ze[0],Lt=Ze[1],It=Object(W.useState)(),_t=Object(C.a)(It,2),Me=_t[0],Ye=_t[1];return Object(W.useEffect)(function(){Lt(Ae==null?void 0:Ae.a_flag)},[Ae==null?void 0:Ae.a_flag]),D.a.createElement("div",null,(Ee==null||((Re=Ee.exercise)===null||Re===void 0)?void 0:Re.user_exercise_status)===1?D.a.createElement("div",{className:me.a.simpleText},D.a.createElement(Ie.a,{value:Ae==null||((Ge=Ae.user_answer)===null||Ge===void 0)?void 0:Ge[0]})):D.a.createElement("div",{className:Ae.user_score&&(Ae.user_score===Ae.question_score?"c-green":"c-red")},Me?D.a.createElement(lt.a,{height:150,isFocus:!0,defaultValue:Ae==null||((je=Ae.user_answer)===null||je===void 0)?void 0:je[0],id:Ae==null?void 0:Ae.question_id,onChange:function(rt){return ot(rt)},onBlur:function(){return vt(He)}}):D.a.createElement("div",{onClick:function(){return Ye(!0)}},D.a.createElement(We.a,{size:"large",className:"current",placeholder:"\u70B9\u51FB\u5F00\u59CB\u4F5C\u7B54",readOnly:!0}))),Object(be.q)()&&(Ae==null?void 0:Ae.standard_answer)&&D.a.createElement("div",null,D.a.createElement("p",{className:"mb10 font16"},"\u53C2\u8003\u7B54\u6848\uFF1A"),D.a.createElement(Ie.a,{value:Ae==null||((it=Ae.standard_answer)===null||it===void 0)?void 0:it[0]})))},pt=nt,Tt=c("g9YV"),Rt=c("wCAj"),Kt=c("5GOC"),Yt=c("JsLm"),Vt=c("ZW9T"),ar=c("o5mm"),Xt=c.n(ar),or=function(Ne){var Re,Ge,je,it,Ae,Ee=Ne.item,ke=Ne.answerData,vt=Object(W.useState)([]),tt=Object(C.a)(vt,2),Ke=tt[0],He=tt[1],ot=Object(W.useState)([]),mt=Object(C.a)(ot,2),Ze=mt[0],ft=mt[1];Object(W.useEffect)(function(){var Me;if(!(Ee==null||((Me=Ee.shixun_details)===null||Me===void 0)?void 0:Me.length))return;for(var Ye=[],Ve=[],rt=0;rt<(Ee==null||((Nt=Ee.shixun_details)===null||Nt===void 0)?void 0:Nt.length);rt++){for(var Nt,kt,xt,At=0;At<(Ee==null?void 0:Ee.shixun_details[rt].stage_list.length);At++){var St,yt,wt,Ot,Ct=Ee==null?void 0:Ee.shixun_details[rt].stage_list[At];Ye.push(Object(p.a)(Object(p.a)({},Ct),{operation:Ee==null||((St=Ee.shixun_details)===null||St===void 0||((yt=St[rt])===null||yt===void 0||((wt=yt.shixun_detail)===null||wt===void 0||((Ot=wt[0])===null||Ot===void 0))))?void 0:Ot.game_identifier}))}if(Ee==null||((kt=Ee.shixun_details)===null||kt===void 0||((xt=kt[rt])===null||xt===void 0))?void 0:xt.shixun_detail){var Dt,Pt,ut;Ve.push(Ee==null||((Dt=Ee.shixun_details)===null||Dt===void 0||((Pt=Dt[rt])===null||Pt===void 0||((ut=Pt.shixun_detail)===null||ut===void 0)))?void 0:ut[0])}}ft(Ve),He(Ye)},[Ee==null?void 0:Ee.shixun_details]);var Lt=[{title:"\u5173\u5361",dataIndex:"position",key:"position",align:"center"},{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"name",key:"name",align:"center",render:function(Ye){return D.a.createElement("span",{className:"overflowHidden1",style:{maxWidth:"400px"},title:Ye&&Ye.length>25?Ye:""},Ye)}},{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"evaluate_count",key:"evaluate_count",align:"center",render:function(Ye,Ve){return D.a.createElement("span",null,Ve.evaluate_count?Ve.evaluate_count:D.a.createElement("span",{className:"color-grey-9"},"--"))}},{title:"\u5B8C\u6210\u65F6\u95F4",key:"endTime",dataIndex:"endTime",align:"center",render:function(Ye,Ve){var rt=!1;return Ve.finished_time&&(ke==null?void 0:ke.exercise)&&(ke==null?void 0:ke.exercise_answer_user)&&((ke==null?void 0:ke.exercise.time)===-1?rt=pe()(ke==null?void 0:ke.exercise.end_time).isBefore(Ve.finished_time):rt=pe()(ke==null?void 0:ke.exercise_answer_user.start_at).add(ke==null?void 0:ke.exercise.time,"m").isBefore(Ve.finished_time)),D.a.createElement("span",null,Ve.finished_time||D.a.createElement("span",{className:"c-grey-999"},"--"),D.a.createElement("span",{className:"c-orange-ff9 "},rt?"\uFF08\u5DF2\u8D85\u65F6\uFF09":""))}},{title:"\u8017\u65F6",dataIndex:"time_consuming",key:"time_consuming",align:"center",render:function(Ye,Ve){return D.a.createElement("span",null,Ve.time_consuming||D.a.createElement("span",{className:"color-grey-9"},"--"))}},{title:"\u67E5\u770B\u7B54\u6848",dataIndex:"view_answer",key:"view_answer",align:"center",render:function(Ye,Ve){return D.a.createElement("span",null,Ve.view_answer?"\u5DF2\u67E5\u770B":"\u672A\u67E5\u770B")}},{title:"\u7ECF\u9A8C\u503C",dataIndex:"experience",key:"experience",align:"center",render:function(Ye,Ve){return D.a.createElement("span",null,D.a.createElement("span",{className:"c-green"},Ve.myself_experience),"/",Ve.experience)}},{title:"\u64CD\u4F5C",dataIndex:"operation",key:"operation",align:"center",render:function(Ye,Ve,rt){return Ye?D.a.createElement(Yt.a,{affix:!1,className:"mt10"},D.a.createElement(Yt.a.Link,{href:"#challenge_".concat(Ee==null?void 0:Ee.question_id).concat(rt),title:D.a.createElement("span",{style:{color:"#1890ff"}},"\u67E5\u770B")})):D.a.createElement("span",{className:"c-grey-999"},"--")}}],It=[{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"key",width:"127px",key:"key",align:"center",render:function(Ye,Ve){return D.a.createElement("span",null,Ve.key)}},{title:"\u8BE6\u7EC6\u4FE1\u606F",dataIndex:"error_msg",key:"error_msg",align:"center",render:function(Ye,Ve){return D.a.createElement("span",null,Ve.error_msg?Ve.error_msg:"--")}}],_t={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1};return D.a.createElement("div",{className:"mt15 mb15"},((ke==null||((Re=ke.exercise)===null||Re===void 0)?void 0:Re.student_commit_status)===0||(ke==null||((Ge=ke.exercise)===null||Ge===void 0)?void 0:Ge.user_exercise_status)===0)&&D.a.createElement("div",null,Ee.shixun.map(function(Me,Ye){return D.a.createElement(f.a,{className:"font16",gutter:[0,20]},D.a.createElement(l.a,{flex:"1"},Me.challenge_name," (",Me.challenge_score,"\u5206)"),D.a.createElement(l.a,{flex:"100px",className:"tr"},Me.answer_status===0&&D.a.createElement("span",{className:"font12 tag-style-border border-orange c-orange "},"\u672A\u5B8C\u6210"),Me.answer_status===1&&D.a.createElement("span",{className:"font12 tag-style-border border-green c-green "},"\u5DF2\u5B8C\u6210")))})),(ke==null||((je=ke.exercise)===null||je===void 0)?void 0:je.student_commit_status)!==0||(ke==null||((it=ke.exercise)===null||it===void 0)?void 0:it.user_exercise_status)!==0?D.a.createElement(D.a.Fragment,null,!!(Ke==null?void 0:Ke.length)&&D.a.createElement("div",null,D.a.createElement("p",{className:"font16 c-grey-666"},"\u9636\u6BB5\u6210\u7EE9"),D.a.createElement(Rt.a,{columns:Lt,dataSource:Ke,pagination:!1})),!!(Ze==null?void 0:Ze.length)&&D.a.createElement("div",null,D.a.createElement("p",{className:"font16 c-grey-666 mt10"},"\u5B9E\u8BAD\u8BE6\u60C5"),Ze==null?void 0:Ze.map(function(Me,Ye){return D.a.createElement("div",{id:"challenge_".concat(Ee==null?void 0:Ee.question_id).concat(Ye),className:"mt5"},D.a.createElement("div",null,D.a.createElement("span",{className:"font16 mr15"}," \u7B2C",Me.position,"\u5173"),D.a.createElement(te.Link,{className:"current c-black font16",to:"/tasks/".concat(Me.game_identifier)},Me.name)),(Me==null?void 0:Me.st)===0&&D.a.createElement("aside",{className:Xt.a.shixunWrp},D.a.createElement("h2",null,"\u6700\u540E\u4E00\u6B21\u63D0\u4EA4\u7684\u4EE3\u7801",D.a.createElement("span",{className:"c-light-black"},Me.path)),D.a.createElement(Vt.b,{height:300,language:"python",theme:"default",value:Me.passed_code,options:_t})))}))):D.a.createElement(D.a.Fragment,null,Object(be.q)()&&D.a.createElement(Ie.a,{className:"c-grey-999 mt20 mb20",value:Ee==null?void 0:Ee.question_title}),Ee==null||((Ae=Ee.shixun)===null||Ae===void 0)?void 0:Ae.map(function(Me,Ye){return D.a.createElement("p",{className:"font16 c-grey-666 mb5",key:Ye},D.a.createElement("span",{className:"mr20"},"\u7B2C",Me==null?void 0:Me.challenge_position,"\u5173 ",Me==null?void 0:Me.challenge_name),D.a.createElement("span",null,Me==null?void 0:Me.challenge_score,"\u5206"))})))},mr=or,Jt=c("J66h"),gr=function(Ne){var Re=Ne.item,Ge=Ne.answerData,je=Object(W.useState)([]),it=Object(C.a)(je,2),Ae=it[0],Ee=it[1];Object(W.useEffect)(function(){var tt;if((Re==null||((tt=Re.evaluate_codes)===null||tt===void 0)?void 0:tt.length)>0){var Ke;Ee(Re==null||((Ke=Re.evaluate_codes)===null||Ke===void 0)?void 0:Ke.map(function(He,ot){return{key:ot+1,error_msg:(He==null?void 0:He.error_msg)?Jt.Base64.decode(He==null?void 0:He.error_msg):""}}))}else Ee([{key:"--",error_msg:"--"}])},[Re==null?void 0:Re.evaluate_codes]);var ke=[{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"key",width:"127px",key:"key",align:"center",render:function(Ke,He){return D.a.createElement("span",null,He.key)}},{title:"\u8BE6\u7EC6\u4FE1\u606F",dataIndex:"error_msg",key:"error_msg",align:"center",render:function(Ke,He){return D.a.createElement("span",null,He.error_msg?He.error_msg:"--")}}],vt={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1};return D.a.createElement(D.a.Fragment,null,D.a.createElement("div",{className:"mt15 mb15"},D.a.createElement(Ie.a,{value:Re==null?void 0:Re.description})),!!(Re==null?void 0:Re.user_answer.length)&&D.a.createElement("aside",{className:Xt.a.shixunWrp},D.a.createElement("h3",null,"\u6700\u540E\u63D0\u4EA4\u7684\u4EE3\u7801"),D.a.createElement(Vt.b,{style:{border:"1px solid #ccc"},height:300,language:"python",theme:"vs-light",value:(Re==null?void 0:Re.passed_code)?Jt.Base64.decode(Re==null?void 0:Re.passed_code):"",options:vt})))},sr=gr,br=c("oBTY"),Qt=We.a.TextArea,$t=function(Ne){var Re,Ge,je=Ne.item,it=Ne.answerData,Ae=Ne.onBlur,Ee=Ae===void 0?function(){}:Ae,ke=Object(W.useState)([]),vt=Object(C.a)(ke,2),tt=vt[0],Ke=vt[1];return Object(W.useEffect)(function(){for(var He=[],ot=0;ot<(je==null?void 0:je.multi_count);ot++)He.push(Object(p.a)({},(je==null?void 0:je.user_answer[ot])||{}));Ke(He)},[je==null?void 0:je.user_answer]),D.a.createElement("div",null,tt==null?void 0:tt.map(function(He,ot){var mt;return D.a.createElement("div",null,D.a.createElement("span",null,"\u7B54\u6848\uFF08\u586B\u7A7A",ot+1,"\uFF09:"),D.a.createElement("div",null,D.a.createElement(Qt,{rows:4,disabled:(it==null||((mt=it.exercise)===null||mt===void 0)?void 0:mt.user_exercise_status)===1,value:He==null?void 0:He.answer_text,onChange:function(ft){tt[ot].answer_text=ft.target.value,Ke(Object(br.a)(tt))},onBlur:function(ft){return Ee(He==null?void 0:He.answer_text,ot+1)},className:je.user_score&&(je.user_score===je.question_score?"c-green":"c-red")})))}),!!(je==null||((Re=je.standard_answer)===null||Re===void 0)?void 0:Re.length)&&D.a.createElement("div",null,"\u53C2\u8003\u7B54\u6848\uFF1A",je==null||((Ge=je.standard_answer)===null||Ge===void 0)?void 0:Ge.map(function(He,ot){return D.a.createElement("div",null,D.a.createElement("span",null,"\u7B54\u6848\uFF08\u586B\u7A7A",ot+1,"\uFF09:"),D.a.createElement("div",null,D.a.createElement(Qt,{rows:4,disabled:!0,value:He==null?void 0:He.answer_text[0]})))})))},Zt=$t,qt=H.a.Countdown,Wt=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Er={1:"\u672A\u53D1\u5E03",2:"\u5DF2\u53D1\u5E03",3:"\u5DF2\u622A\u6B62"},vr={1:me.a.flagActive,2:me.a.flagHalf},yr={0:"c-red-ee4",1:"c-green"},_r=["\u5355\u9009\u9898","\u591A\u9009\u9898","\u5224\u65AD\u9898","\u586B\u7A7A\u9898","\u7B80\u7B54\u9898","\u5B9E\u8BAD\u9898","\u7F16\u7A0B\u9898"],ur=function(Ne){var Re,Ge,je,it,Ae,Ee,ke,vt,tt,Ke,He,ot,mt,Ze,ft,Lt,It,_t,Me,Ye,Ve,rt,Nt,kt,xt,At,St,yt,wt,Ot,Ct,Dt,Pt,ut,qe,at,gt=Ne.globalSetting,jt=Ne.loading,Et=Ne.user,Ht=Ne.dispatch,Ft=Object(R.a)(Ne,["globalSetting","loading","user","dispatch"]),ze=Object(ae.m)(),Pe=Object(W.useState)({}),Te=Object(C.a)(Pe,2),ne=Te[0],Xe=Te[1],Je=Object(W.useState)({}),st=Object(C.a)(Je,2),et=st[0],dt=st[1],ht=Object(W.useState)({}),Mt=Object(C.a)(ht,2),Ut=Mt[0],zt=Mt[1],lr=Object(W.useState)(!1),er=Object(C.a)(lr,2),cr=er[0],dr=er[1],Mr=Object(W.useState)(!0),Tr=Object(C.a)(Mr,2),tr=Tr[0],Lr=Tr[1],kr=Object(W.useState)(!1),Sr=Object(C.a)(kr,2),Ur=Sr[0],Or=Sr[1],Fr=Object(W.useState)(!1),xr=Object(C.a)(Fr,2),Br=xr[0],Ar=xr[1],Hr=Object(W.useState)(),Rr=Object(C.a)(Hr,2),Xr=Rr[0],Wr=Rr[1],Gr=Object(W.useState)(0),Ir=Object(C.a)(Gr,2),cn=Ir[0],dn=Ir[1],Vr=Object(W.useState)(""),Nr=Object(C.a)(Vr,2),$r=Nr[0],zr=Nr[1];Object(W.useEffect)(function(){return Object(be.c)()?(fr(),window.addEventListener("beforeunload",wr)):Et.userInfo.login&&Kr(),function(){window.removeEventListener("beforeunload",wr),location.pathname.indexOf("/detail")>-1&&Object(Oe.b)()}},[ze.categoryId,Et.userInfo.login]);var Kr=function(){var ye=Object(M.a)(w.a.mark(function fe(){var he,we,Ce,De,Ue,$e;return w.a.wrap(function(Qe){for(;;)switch(Qe.prev=Qe.next){case 0:return Qe.next=2,Ht({type:"exercise/getExerciseUserInfo",payload:Object(p.a)({},ze)});case 2:if(he=Qe.sent,!((he==null?void 0:he.status)==0)){Qe.next=10;break}if(!((he==null||((we=he.data)===null||we===void 0)?void 0:we.used_screen_num)>(he==null||((Ce=he.data)===null||Ce===void 0)?void 0:Ce.screen_num)&&(he==null||((De=he.data)===null||De===void 0)?void 0:De.screen_open))){Qe.next=7;break}return pr(),Qe.abrupt("return",!1);case 7:dt(Object(p.a)({},he.data)),Or(he==null?void 0:he.data.check_camera),(he==null||((Ue=he.data)===null||Ue===void 0)?void 0:Ue.check_camera)||(fr(),Ar(he==null||(($e=he.data)===null||$e===void 0)?void 0:$e.screen_open));case 10:case"end":return Qe.stop()}},fe)}));return function(){return ye.apply(this,arguments)}}(),wr=function(fe){var he="\u786E\u5B9A\u79BB\u5F00\u6B64\u9875\u9762\u5417?\u6B64\u9875\u6570\u636E\u53EF\u80FD\u4F1A\u4E22\u5931";return(fe||window.event).returnValue=he,he},fr=function(){var ye=Object(M.a)(w.a.mark(function fe(){var he,we,Ce,De,Ue,$e,Fe,Qe,ct,bt,nr,ir;return w.a.wrap(function(Bt){for(;;)switch(Bt.prev=Bt.next){case 0:if(dr(!0),!Object(be.c)()){Bt.next=8;break}return Bt.next=4,Object(ue.y)({exerciseId:ze.categoryId,login:ze.login}).catch(function(){return dr(!1)});case 4:he=Bt.sent,((we=he)===null||we===void 0?void 0:we.exercise)&&(he.exercise.user_exercise_status=1),Bt.next=13;break;case 8:return Bt.next=10,Object(ue.r)(Object(p.a)({},ze)).catch(function(){return dr(!1)});case 10:he=Bt.sent,((Ce=he.exercise)===null||Ce===void 0?void 0:Ce.commit_status)>0&&window.removeEventListener("beforeunload",wr),((De=he)===null||De===void 0||((Ue=De.exercise)===null||Ue===void 0)?void 0:Ue.left_time)&&setTimeout(function(){zr(me.a.red)},((($e=he)===null||$e===void 0||((Fe=$e.exercise)===null||Fe===void 0)?void 0:Fe.left_time)-300>0?((Qe=he)===null||Qe===void 0||((ct=Qe.exercise)===null||ct===void 0)?void 0:ct.left_time)-300:0)*1e3);case 13:dr(!1),he&&(he.exercise_types=((bt=he)===null||bt===void 0?void 0:bt.exercise_types)||((nr=he)===null||nr===void 0||((ir=nr.exercise_scores)===null||ir===void 0)?void 0:ir.exercise_types),Xe(he));case 15:case"end":return Bt.stop()}},fe)}));return function(){return ye.apply(this,arguments)}}();Object(W.useEffect)(function(){var ye,fe,he;((ye=ne.exercise)===null||ye===void 0?void 0:ye.left_time)===0&&pr(),((fe=ne.exercise)===null||fe===void 0?void 0:fe.left_time)&&Wr(Date.now()+(ne==null||((he=ne.exercise)===null||he===void 0)?void 0:he.left_time)*1e3)},[(Re=ne.exercise)===null||Re===void 0?void 0:Re.left_time]);var Yr=function(){var fe;(ne==null||((fe=ne.exercise)===null||fe===void 0)?void 0:fe.exercise_status)===3?O.a.confirm({width:530,title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:D.a.createElement("div",{className:"tc font16"},"\u622A\u6B62\u65F6\u95F4\u5DF2\u5230\uFF0C\u65E0\u6CD5\u6253\u56DE\u8BD5\u5377",D.a.createElement("br",null),"\u8BF7\u5728\u4FEE\u6539\u622A\u6B62\u65F6\u95F4\u540E\u518D\u64CD\u4F5C")}):O.a.confirm({width:530,title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:D.a.createElement("div",{className:"tc font16"},"\u5B66\u751F\u5C06\u5F97\u5230\u4E00\u6B21\u91CD\u65B0\u7B54\u9898\u7684\u673A\u4F1A\uFF0C\u73B0\u6709\u7684\u7B54\u9898\u60C5\u51B5\u5C06\u88AB\u6E05\u7A7A",D.a.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u56DE\u9000TA\u7684\u8BD5\u5377\u7B54\u9898"),onOk:function(){var he=Object(M.a)(w.a.mark(function Ce(){var De,Ue;return w.a.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:return Fe.next=2,Object(ue.G)({categoryId:ze.categoryId,user_ids:[ne==null||((De=ne.exercise_answer_user)===null||De===void 0)?void 0:De.user_id]});case 2:Ue=Fe.sent,Ue&&(E.b.info(Ue==null?void 0:Ue.message),rr());case 4:case"end":return Fe.stop()}},Ce)}));function we(){return he.apply(this,arguments)}return we}()})},rr=function(){V.c.push("/classrooms/".concat(ze.coursesId,"/exercise/").concat(ze.categoryId,"/detail")),Object(Oe.b)()},Jr=function(){var ye=Object(M.a)(w.a.mark(function fe(){var he,we;return w.a.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return De.next=2,Object(ue.K)({categoryId:ze.categoryId,commit_method:2});case 2:he=De.sent,(he==null?void 0:he.status)===0&&(O.a.info({width:530,title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",content:D.a.createElement("div",{className:"tc font16"},"\u7B54\u9898\u7ED3\u675F\u4E86\uFF0C\u7CFB\u7EDF\u5DF2\u81EA\u52A8\u63D0\u4EA4\u8BD5\u5377",D.a.createElement("br",null),"\u4E0D\u80FD\u518D\u4FEE\u6539\u7B54\u9898"),onOk:function(){var Ue=Object(M.a)(w.a.mark(function Fe(){return w.a.wrap(function(ct){for(;;)switch(ct.prev=ct.next){case 0:rr();case 1:case"end":return ct.stop()}},Fe)}));function $e(){return Ue.apply(this,arguments)}return $e}()}),E.b.info(he==null?void 0:he.message)),(he==null?void 0:he.status)===-3&&(we=parseInt(he==null?void 0:he.message),ne.exercise.left_time=we,Xe(Object(p.a)({},ne)));case 5:case"end":return De.stop()}},fe)}));return function(){return ye.apply(this,arguments)}}(),Cr=function(){var ye=Object(M.a)(w.a.mark(function fe(he){var we;return w.a.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return De.next=2,Object(xe.w)({id:he.shixun_identifier});case 2:we=De.sent,(we==null?void 0:we.game_identifier)&&Ft.history.push("/tasks/".concat(we.game_identifier,"?type=exercises&exercisesId=").concat(ze.categoryId,"&coursesId=").concat(ze.coursesId,"&login=").concat(ze.login,"&questionId=").concat(he.question_id));case 4:case"end":return De.stop()}},fe)}));return function(he){return ye.apply(this,arguments)}}(),Qr=function(fe){fe.redo?O.a.info({width:530,title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",content:D.a.createElement("div",{className:"tc font16"},"\u60A8\u4E4B\u524D\u5DF2\u7ECF\u6311\u6218\u8FC7\u8BE5\u5B9E\u8BAD\uFF0C\u8003\u8BD5\u8FC7\u7A0B\u4E2D\u9700\u8981\u91CD\u65B0\u6311\u6218"),onOk:function(){var he=Object(M.a)(w.a.mark(function Ce(){var De;return w.a.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return $e.next=2,Object(ue.H)({id:fe.myshixun_identifier});case 2:De=$e.sent,De&&(ne.exercise_questions.find(function(Fe){return Fe.question_id===fe.question_id}).redo=!1,Xe(Object(p.a)({},ne)),Cr(fe));case 4:case"end":return $e.stop()}},Ce)}));function we(){return he.apply(this,arguments)}return we}()}):Cr(fe)},Zr=function(){var ye=Object(M.a)(w.a.mark(function fe(he){var we;return w.a.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:if(!he.hack_identifier){De.next=5;break}return De.next=3,Object(ue.J)({id:he.hack_identifier});case 3:we=De.sent,(we==null?void 0:we.status)===0&&Ft.history.push("/myproblems/".concat(we.identifier,"?type=exercises&exercisesId=").concat(ze.categoryId,"&coursesId=").concat(ze.coursesId,"&login=").concat(ze.login,"&questionId=").concat(he.question_id));case 5:case"end":return De.stop()}},fe)}));return function(he){return ye.apply(this,arguments)}}(),hr=function(){var ye=Object(M.a)(w.a.mark(function fe(he,we,Ce,De){var Ue;return w.a.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:if(he){Fe.next=3;break}return console.error("handleSave no questionId params"),Fe.abrupt("return");case 3:return Fe.next=5,Object(ue.L)({questionId:he,exercise_choice_id:we,answer_text:Ce});case 5:Ue=Fe.sent,(Ue==null?void 0:Ue.status)===0&&(De&&De());case 7:case"end":return Fe.stop()}},fe)}));return function(he,we,Ce,De){return ye.apply(this,arguments)}}(),Dr=function(){var ye=Object(M.a)(w.a.mark(function fe(he){var we,Ce;return w.a.wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:return Ue.next=2,Object(ue.d)({id:ze.categoryId});case 2:if(we=Ue.sent,we){Ue.next=5;break}return Ue.abrupt("return");case 5:we.question_undo!==0||we.oj_undo!==0?(Ce="",we.question_undo!==0&&we.oj_undo!==0?Ce="\u6709 ".concat(we.question_undo," \u9898\u672A\u5B8C\u6210\uFF0C\u5305\u542B ").concat(we.oj_undo," \u4E2A\u7F16\u7A0B\u9898"):we.question_undo!==0&&we.oj_undo===0?Ce="\u6709 ".concat(we.question_undo," \u9898\u672A\u5B8C\u6210"):we.question_undo===0&&we.oj_undo!==0&&(Ce="\u6709 ".concat(we.oj_undo," \u7F16\u7A0B\u9898\u672A\u5B8C\u6210")),O.a.confirm({width:530,title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:D.a.createElement("div",{className:"tc font16"},Ce,D.a.createElement("br",null),he?"\u5728".concat(pe()(we.end_time).format("YYYY-MM-DD HH:mm"),"\u4E4B\u524D\uFF0C\u5141\u8BB8\u4FEE\u6539\u7B54\u9898"):"\u63D0\u4EA4\u540E\u65E0\u6CD5\u518D\u4FEE\u6539\u7B54\u9898\uFF0C\u662F\u5426\u786E\u8BA4\u63D0\u4EA4\uFF1F"),onOk:function(){var $e=Object(M.a)(w.a.mark(function Qe(){return w.a.wrap(function(bt){for(;;)switch(bt.prev=bt.next){case 0:he?rr():pr();case 1:case"end":return bt.stop()}},Qe)}));function Fe(){return $e.apply(this,arguments)}return Fe}()})):O.a.info({width:530,title:"\u63D0\u793A",centered:!0,okText:"\u77E5\u9053\u5566",content:D.a.createElement("div",{className:"tc font16"},he?"\u5728".concat(pe()(we.end_time).format("YYYY-MM-DD HH:mm"),"\u4E4B\u524D\uFF0C\u5141\u8BB8\u4FEE\u6539\u7B54\u9898"):"\u63D0\u4EA4\u540E\u65E0\u6CD5\u518D\u4FEE\u6539\u7B54\u9898\uFF0C\u662F\u5426\u786E\u8BA4\u63D0\u4EA4\uFF1F"),onOk:function(){var $e=Object(M.a)(w.a.mark(function Qe(){return w.a.wrap(function(bt){for(;;)switch(bt.prev=bt.next){case 0:he?rr():pr();case 1:case"end":return bt.stop()}},Qe)}));function Fe(){return $e.apply(this,arguments)}return Fe}()});case 6:case"end":return Ue.stop()}},fe)}));return function(he){return ye.apply(this,arguments)}}(),Pr=function(fe){return D.a.createElement("div",null,D.a.createElement(T.a,{strokeColor:{from:"#108ee9",to:"#87d068"},status:"active",percent:fe}),D.a.createElement("div",{className:"c-grey-c tc mt10 mb20"},"\u6B63\u5728\u5224\u5206\u4E2D\u2026"))},qr=function(){var fe=0,he=O.a.info({title:"\u4EA4\u5377\u4E2D",icon:null,className:"modal-footer-none",content:Pr(fe)}),we=setInterval(function(){fe<=100?(fe+=2,he.update({content:Pr(fe)})):(O.a.destroyAll(),clearInterval(we))},50)},pr=function(){var ye=Object(M.a)(w.a.mark(function fe(){var he;return w.a.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return qr(),Ce.next=3,Object(ue.K)({categoryId:ze.categoryId,commit_method:1});case 3:he=Ce.sent,Object(Oe.b)(),Ht({type:"exercise/setActionTabs",payload:Object(p.a)({},{removeEventListenerExitScreen:!0})}),(he==null?void 0:he.status)===0&&(E.b.success(he==null?void 0:he.message),Or(!1),setTimeout(function(){O.a.info({title:"\u4EA4\u5377\u6210\u529F\uFF01",okText:"\u786E\u5B9A",onOk:function(){rr()}})},3e3));case 7:case"end":return Ce.stop()}},fe)}));return function(){return ye.apply(this,arguments)}}(),en=function(fe,he){hr(he,fe,null,function(){ne.question_status.find(function(we){return we.ques_id===he}).ques_status=fe?1:0,ne.exercise_questions.find(function(we){return we.question_id===he}).user_answer[0]=fe,Xe(Object(p.a)({},ne))})},tn=function(fe,he){hr(he,fe,null,function(){ne.question_status.find(function(we){return we.ques_id===he}).ques_status=(fe==null?void 0:fe.length)?1:0,Xe(Object(p.a)({},ne))})},rn=function(fe,he,we){hr(we,he,fe,function(){ne.question_status.find(function(Ce){return Ce.ques_id===we}).ques_status=fe?1:0,Xe(Object(p.a)({},ne))})},nn=function(fe,he){hr(he,null,fe,function(){ne.question_status.find(function(we){return we.ques_id===he}).ques_status=fe?1:0,Xe(Object(p.a)({},ne))})},jr=function(fe,he){var we,Ce,De,Ue,$e,Fe,Qe;return D.a.createElement("div",null,D.a.createElement(g.a.Group,{disabled:(ne==null||((we=ne.exercise)===null||we===void 0)?void 0:we.user_exercise_status)===1,value:fe==null||((Ce=fe.user_answer)===null||Ce===void 0)?void 0:Ce[0],onChange:function(bt){return en(bt.target.value,fe==null?void 0:fe.question_id)},className:fe.user_score&&"edu-radio-".concat(fe.user_score===fe.question_score?"green":"red")},fe==null||((De=fe.question_choices)===null||De===void 0)?void 0:De.map(function(ct,bt){var nr=fe.question_type==2,ir=nr?"":"".concat(Wt[bt],".");return D.a.createElement("div",{className:me.a.answerWrap,key:bt},D.a.createElement(g.a,{value:ct==null?void 0:ct.choice_id},D.a.createElement("span",{className:"mr3"},ir),D.a.createElement(Ie.a,{className:me.a.renderHtml,value:ct==null?void 0:ct.choice_text})))})),Object(be.q)()&&(ne==null||((Ue=ne.exercise)===null||Ue===void 0)?void 0:Ue.answer_open)&&((ne==null||(($e=ne.exercise)===null||$e===void 0)?void 0:$e.exercise_status)==3||(ne==null||((Fe=ne.exercise)===null||Fe===void 0)?void 0:Fe.user_exercise_status)==1)&&D.a.createElement("div",null,"\u53C2\u8003\u7B54\u6848\uFF1A",fe==null||((Qe=fe.standard_answer)===null||Qe===void 0)?void 0:Qe.map(function(ct,bt){return D.a.createElement("span",null,Wt[Number(ct)-1])})))},an=function(fe,he){var we,Ce,De,Ue,$e;return D.a.createElement("div",null,D.a.createElement(b.a.Group,{disabled:(ne==null||((we=ne.exercise)===null||we===void 0)?void 0:we.user_exercise_status)===1,defaultValue:fe==null?void 0:fe.user_answer,onChange:function(Qe){return tn(Qe,fe==null?void 0:fe.question_id)},className:fe.user_score&&"edu-checkbox-".concat(fe.user_score===fe.question_score?"green":"red")},fe==null||((Ce=fe.question_choices)===null||Ce===void 0)?void 0:Ce.map(function(Fe,Qe){var ct="".concat(Wt[Qe],".");return D.a.createElement("div",{className:me.a.answerWrap},D.a.createElement(b.a,{value:Fe==null?void 0:Fe.choice_id},D.a.createElement("span",{className:"mr3"},ct),D.a.createElement(Ie.a,{className:me.a.renderHtml,value:Fe==null?void 0:Fe.choice_text})))})),Object(be.q)()&&(ne==null||((De=ne.exercise)===null||De===void 0)?void 0:De.answer_open)&&(ne==null||((Ue=ne.exercise)===null||Ue===void 0)?void 0:Ue.exercise_status)==3&&D.a.createElement("div",null,"\u53C2\u8003\u7B54\u6848\uFF1A",fe==null||(($e=fe.standard_answer)===null||$e===void 0)?void 0:$e.map(function(Fe,Qe){return D.a.createElement("span",null,Wt[Number(Fe)-1])})))},on=function(fe,he){return D.a.createElement(Zt,{item:fe,answerData:ne,onBlur:function(Ce,De){return rn(Ce,De,fe==null?void 0:fe.question_id)}})},sn=function(fe,he){return D.a.createElement(pt,{item:fe,answerData:ne,onBlur:function(Ce){return nn(Ce,fe==null?void 0:fe.question_id)}})},un=function(fe,he){return D.a.createElement(mr,{item:fe,answerData:ne})},ln=function(fe,he){return D.a.createElement(sr,{item:fe,answerData:ne})},Gt=function(fe,he){var we;return D.a.createElement(D.a.Fragment,null,D.a.createElement("h1",{className:"font14 current",onClick:function(){Ut[he]=!Ut[he],zt(Object(p.a)({},Ut))}},!Ut[he]&&D.a.createElement(J,null),Ut[he]&&D.a.createElement(U.a,null),D.a.createElement("span",{className:"ml5 c-grey-666"},fe)),D.a.createElement("ul",{className:me.a.answerSheet,key:he},!Ut[he]&&(ne==null||((we=ne.exercise_questions)===null||we===void 0)?void 0:we.map(function(Ce,De){if(Ce.question_type===he){var Ue;return D.a.createElement("li",{onClick:function(){var Fe="Anchor_".concat(Ce.q_position-1),Qe=document.getElementById(Fe);Qe&&setTimeout(function(){return Qe.scrollIntoView({block:"start",behavior:"smooth"})})},key:De,className:(ne==null||((Ue=ne.question_status)===null||Ue===void 0)?void 0:Ue.some(function($e){return $e.ques_id===Ce.question_id&&!!$e.ques_status}))&&me.a.active},Ce.q_position)}}))))};return D.a.createElement(t.a,{size:"large",spinning:cr},Br&&D.a.createElement(z.a,null),D.a.createElement("section",{className:"edu-container"},D.a.createElement("section",{className:"animated fadeIn"},D.a.createElement("aside",{className:"mt10"},gt.showHeaderFooter&&D.a.createElement(i.a,{separator:">"},D.a.createElement(i.a.Item,null,D.a.createElement(te.Link,{to:"/classrooms/".concat(ze.coursesId,"/exercise")},(Ge=Et.userInfo)===null||Ge===void 0||((je=Ge.course)===null||je===void 0)?void 0:je.course_name)),D.a.createElement(i.a.Item,null,D.a.createElement(te.Link,{to:"/classrooms/".concat(ze.coursesId,"/exercise")},"\u8BD5\u5377")),D.a.createElement(i.a.Item,null,D.a.createElement(te.Link,{to:"/classrooms/".concat(ze.coursesId,"/exercise/").concat(ze.categoryId,"/detail")},"\u8BD5\u5377\u8BE6\u60C5")),D.a.createElement(i.a.Item,null,(it=Et.userInfo)===null||it===void 0?void 0:it.real_name))),D.a.createElement("aside",{className:[me.a.title,"mt10"].join(" ")},D.a.createElement(f.a,{style:{width:"100%"},align:"middle"},D.a.createElement(l.a,{flex:"1"},D.a.createElement("div",{className:me.a.title},(gt==null?void 0:gt.showHeaderFooter)&&D.a.createElement(te.Link,{to:"/classrooms/".concat(ze.coursesId,"/exercise/").concat(ze.categoryId,"/detail")},D.a.createElement(Z.a,{className:"font16 c-black"})),D.a.createElement("strong",{className:"font24 ml5"},ne==null||((Ae=ne.exercise)===null||Ae===void 0)?void 0:Ae.exercise_name),(ne==null||((Ee=ne.exercise)===null||Ee===void 0)?void 0:Ee.is_random)&&D.a.createElement("span",{className:me.a.randomFlag},"\u968F\u673A"),D.a.createElement(ve.g,{status:[ve.c[ne==null||((ke=ne.exercise)===null||ke===void 0)?void 0:ke.exercise_status]]}))),D.a.createElement(l.a,null,Object(be.c)()&&D.a.createElement(d.a,{type:"primary",onClick:Yr},"\u6253\u56DE\u91CD\u505A"),D.a.createElement(l.a,null,((ne==null||((vt=ne.exercise)===null||vt===void 0)?void 0:vt.commit_status)==2||(ne==null||((tt=ne.exercise)===null||tt===void 0)?void 0:tt.commit_status)==1)&&Object(be.q)()&&D.a.createElement(d.a,{type:"primary",onClick:function(){return V.c.push("/classrooms/".concat(ze.coursesId,"/exercise/").concat(ze.categoryId,"/export/").concat(ze.login))}},D.a.createElement(ie.a,null),"\u5BFC\u51FA")),!(Object(be.c)()||Object(be.q)()&&(ne==null||((Ke=ne.exercise)===null||Ke===void 0)?void 0:Ke.user_exercise_status)==1)&&!!(ne==null||((He=ne.exercise)===null||He===void 0)?void 0:He.left_time)&&D.a.createElement("aside",{className:"".concat(me.a.countDown," ").concat($r)},"\u5269\u4F59\u65F6\u95F4:",D.a.createElement(qt,{value:Xr,onFinish:Jr})))))),D.a.createElement(f.a,{className:"mt10"},D.a.createElement(l.a,{flex:tr?"316px":"16px"},D.a.createElement("section",{style:{position:"sticky",top:0,zIndex:1}},Ur&&D.a.createElement(k,{number:(ne==null||((ot=ne.exercise)===null||ot===void 0)?void 0:ot.photo_count)-(ne==null||((mt=ne.exercise)===null||mt===void 0)?void 0:mt.take_photo),time:(Ze=ne.exercise)===null||Ze===void 0?void 0:Ze.left_time,update:fr,supportCamera:function(fe){fe===2?(fr(),Ar(et==null?void 0:et.screen_open),window.onblur=function(){Object(Oe.a)()&&Object(Oe.b)()}):fe===1&&setTimeout(function(){return Ft.history.push("/")},3e3)}}),D.a.createElement("div",{className:"relative",style:{minHeight:236}},tr&&D.a.createElement("aside",{className:"bg-white p16"},D.a.createElement(f.a,null,D.a.createElement(l.a,{span:8},D.a.createElement("span",{className:"font16 blod"},"\u7B54\u9898\u5361")),D.a.createElement(l.a,{span:16},Object(be.q)()&&D.a.createElement("div",{className:"tr"},D.a.createElement("span",{className:me.a.answerYes}),"\u5DF2\u7B54",D.a.createElement("span",{className:"".concat(me.a.answerNo," ml10")}),"\u672A\u7B54"))),D.a.createElement("aside",{className:me.a.answerInfo},D.a.createElement(f.a,null,Object(be.q)()&&D.a.createElement(D.a.Fragment,null,D.a.createElement(l.a,{span:12},"\u7B54\u9898\u8FDB\u5EA6"),D.a.createElement(l.a,{span:12,className:"tr c-blue"},ne==null||((ft=ne.question_status)===null||ft===void 0||((Lt=ft.filter(function(ye){return!!ye.ques_status}))===null||Lt===void 0))?void 0:Lt.length," / ",ne==null||((It=ne.exercise_types)===null||It===void 0)?void 0:It.q_counts),D.a.createElement(l.a,{span:24},D.a.createElement(T.a,{trailColor:"#c3ced2",percent:(ne==null||((_t=ne.question_status)===null||_t===void 0||((Me=_t.filter(function(ye){return!!ye.ques_status}))===null||Me===void 0))?void 0:Me.length)/(ne==null||((Ye=ne.exercise_types)===null||Ye===void 0)?void 0:Ye.q_counts)*100,showInfo:!1}))),D.a.createElement(l.a,null,D.a.createElement("span",{className:"c-grey-333"},"\u5171 ",D.a.createElement("span",{className:"c-blue-4ca"},(ne==null||((Ve=ne.exercise_types)===null||Ve===void 0)?void 0:Ve.q_counts)||(ne==null||((rt=ne.exercise_scores)===null||rt===void 0||((Nt=rt.exercise_types)===null||Nt===void 0))?void 0:Nt.q_counts))," \u9898\uFF1A"),D.a.createElement("span",{className:"c-grey-333"},"\u6EE1\u5206 ",D.a.createElement("span",{className:"c-blue-4ca"},(ne==null||((kt=ne.exercise_types)===null||kt===void 0)?void 0:kt.q_scores)||(ne==null||((xt=ne.exercise_scores)===null||xt===void 0||((At=xt.exercise_types)===null||At===void 0))?void 0:At.q_scores))," \u5206")))),D.a.createElement(f.a,null,D.a.createElement(l.a,{flex:"1"},D.a.createElement("aside",{className:me.a.cardList},(ne==null||((St=ne.exercise_types)===null||St===void 0)?void 0:St.q_singles)>0&&Gt("\u5355\u9009\u9898",0),(ne==null||((yt=ne.exercise_types)===null||yt===void 0)?void 0:yt.q_doubles)>0&&Gt("\u591A\u9009\u9898",1),(ne==null||((wt=ne.exercise_types)===null||wt===void 0)?void 0:wt.q_judges)>0&&Gt("\u5224\u65AD\u9898",2),(ne==null||((Ot=ne.exercise_types)===null||Ot===void 0)?void 0:Ot.q_nulls)>0&&Gt("\u586B\u7A7A\u9898",3),(ne==null||((Ct=ne.exercise_types)===null||Ct===void 0)?void 0:Ct.q_mains)>0&&Gt("\u7B80\u7B54\u9898",4),(ne==null||((Dt=ne.exercise_types)===null||Dt===void 0)?void 0:Dt.q_shixuns)>0&&Gt("\u5B9E\u8BAD\u9898",5),(ne==null||((Pt=ne.exercise_types)===null||Pt===void 0)?void 0:Pt.q_pros)>0&&Gt("\u7F16\u7A0B\u9898",6))))),D.a.createElement("div",{className:me.a.fold,onClick:function(){return Lr(!tr)}},tr&&D.a.createElement("span",{className:"icon-zuojiantou iconfont c-grey-c"}),!tr&&D.a.createElement("span",{className:"icon-youjiantou iconfont c-grey-c"}))))),D.a.createElement(l.a,{flex:"1"},D.a.createElement("section",{className:[me.a.bg,"pt30","pl30","pr30","pb30","mb50","ml20"].join(" ")},D.a.createElement("div",null,ne==null||((ut=ne.exercise_questions)===null||ut===void 0)?void 0:ut.map(function(ye,fe){var he,we,Ce,De=ye.question_type==5?ye.shixun_name:ye.question_title;return D.a.createElement("div",{className:me.a.questionItem,id:"Anchor_".concat(fe)},D.a.createElement("div",{className:me.a.itemType},D.a.createElement(f.a,null,D.a.createElement(l.a,{flex:"1"},D.a.createElement("span",{className:"font16 c-blue mr5"},ye.q_position,"\u3001",_r[ye.question_type]),D.a.createElement("span",{className:"c-grey-999 mr5"},"(",ye.question_score,"\u5206)")),D.a.createElement(l.a,null,ye.question_type<3&&ye.standard_answer_show&&D.a.createElement("span",{className:"font16 ml20"},"\u6B63\u786E\u7B54\u6848\uFF1A",ye==null?void 0:ye.standard_answer_show),(Object(be.c)()||Object(be.q)()&&(ne==null||((he=ne.exercise)===null||he===void 0)?void 0:he.user_exercise_status)>0)&&D.a.createElement("span",{className:"font16 ml20"},ye.user_score&&D.a.createElement("span",null,D.a.createElement("span",{className:yr[Number(ye==null?void 0:ye.answer_status)]||"c-orange-ff9"},ye.user_score)," \u5206"),!ye.user_score&&D.a.createElement("span",{className:"c-red"},"\u672A\u8BC4")),ye.question_type==5&&(ne==null||((we=ne.exercise)===null||we===void 0)?void 0:we.user_exercise_status)===0&&ye.answer_status!=3&&D.a.createElement(d.a,{type:"primary",className:"font16 ml20",onClick:function(){return Qr(ye)}},"\u8FDB\u5165\u7B54\u9898"),Object(be.q)()&&(ne==null||((Ce=ne.exercise)===null||Ce===void 0)?void 0:Ce.user_exercise_status)===0&&ye.question_type==6&&D.a.createElement(d.a,{type:"primary",className:"font16 ml20",onClick:function(){return Zr(ye)}},"\u8FDB\u5165\u7B54\u9898")))),D.a.createElement("div",{className:"blod"},D.a.createElement(Ie.a,{value:De})),ye.question_type==0&&jr(ye,fe),ye.question_type==2&&jr(ye,fe),ye.question_type==1&&an(ye,fe),ye.question_type==3&&on(ye,fe),ye.question_type==4&&sn(ye,fe),ye.question_type==5&&un(ye,fe),ye.question_type==6&&ln(ye,fe))}))),Object(be.q)()&&(ne==null||((qe=ne.exercise)===null||qe===void 0)?void 0:qe.user_exercise_status)===0&&D.a.createElement(f.a,{className:"mt30 mb50"},D.a.createElement(l.a,{flex:"1"}),D.a.createElement(l.a,null,!!(ne==null||((at=ne.exercise)===null||at===void 0)?void 0:at.left_time)&&D.a.createElement("span",{className:"c-grey-999 font12 mr20"},"\u4FDD\u5B58\u6216\u8005\u79BB\u5F00\u9875\u9762\u540E\uFF0C\u7CFB\u7EDF\u5C06\u6301\u7EED\u8BA1\u65F6\uFF0C\u5230\u8FBE\u65F6\u957F\u7CFB\u7EDF\u5C06\u81EA\u52A8\u4EA4\u5377"),D.a.createElement(d.a,{className:"".concat(me.a.submitButton," mr10"),type:"default",onClick:function(){return Dr(!0)}},"\u4FDD\u5B58"),D.a.createElement(d.a,{className:me.a.submitButton,type:"primary",onClick:function(){return Dr(!1)}},"\u4EA4\u5377")))))))},_e=_.default=Object(V.a)(function(Be){var Ne=Be.loading,Re=Be.user,Ge=Be.globalSetting;return{globalSetting:Ge,user:Re,loading:Ne.effects}})(ur)},Ot1p:function(e,_,c){"use strict";var u=c("2qtc"),t=c("kLXV"),y=c("rAM+"),f=c("tJVT"),h=c("jrin"),d=c("q1tI"),n=c.n(d),l=c("VrN/"),s=c.n(l),i=c("bdgK"),o=c("p77/"),b=c("Bd2K"),m=c("ELLl"),g=c("19Vz"),A=c("lZu9"),T=c("kSUc"),x=c("9Bee"),E=c("0Owb"),j=c("dejd"),O=c("C+DQ"),S=[{title:"\u7C97\u4F53",icon:"icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"icon-sum",actionName:"inline-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"icon-formula",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"icon-picture",actionName:"upload-image"},{title:"\u8868\u683C",icon:"icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"icon-eraser",actionName:"eraser"}];function w(ue){var xe=ue.onActionCallback,Ie=ue.title,Le=ue.icon,We=ue.actionName,lt=ue.className,nt=lt===void 0?"":lt,pt=ue.children;function Tt(){xe(We)}return n.a.createElement("a",{title:Ie,className:nt,onClick:Tt},n.a.createElement("i",{className:"md-iconfont ".concat(Le)}),pt)}var p=function(ue){var xe=ue.watch,Ie=ue.showNullButton,Le=ue.onActionCallback,We=ue.fullScreen,lt=[].concat(S,[{title:"".concat(xe?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(xe?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return n.a.createElement("ul",{className:"markdown-toolbar-container"},lt.map(function(nt,pt){return n.a.createElement("li",{key:pt},nt.actionName?n.a.createElement(w,Object(E.a)({},nt,{onActionCallback:Le})):n.a.createElement("span",{className:"v-line"}))}),Ie?n.a.createElement("li",null,n.a.createElement(w,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Le},n.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,n.a.createElement("li",{className:"btn-full-screen"},n.a.createElement(w,{icon:"".concat(We?"icon-shrink":"icon-enlarge"),title:We?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Le})))},M=c("M8RZ"),C=c("+L6B"),R=c("2/Rp"),I=c("y8nQ"),H=c("Vl3Y"),W=c("5NDa"),D=c("5rEg"),ae={labelCol:{span:4},wrapperCol:{span:20}},V=function(ue){var xe=ue.callback,Ie=ue.onCancel;function Le(We){xe(We)}return n.a.createElement(H.a,Object(E.a)({},ae,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Le}),n.a.createElement(H.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},n.a.createElement(D.a,null)),n.a.createElement(H.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},n.a.createElement(D.a,null)),n.a.createElement("div",{className:"flex-container flex-end"},n.a.createElement(R.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),n.a.createElement(R.a,{type:"ghost",onClick:Ie},"\u53D6\u6D88")))},te=c("7ahc"),$=c("HmJG"),P=c("BjJ7"),F=H.a.useForm,G={width:280,marginRight:10},J={labelCol:{span:5},wrapperCol:{span:19}},U=function(ue){var xe=ue.callback,Ie=ue.onCancel,Le=F(),We=Object(f.a)(Le,1),lt=We[0];function nt(Rt){xe(Rt)}function pt(Rt){lt.setFieldsValue({src:"/api/attachments/".concat(Rt.id)})}function Tt(Rt){var Kt=Rt.target.files[0];ie(Kt,pt)}return n.a.createElement(H.a,Object(E.a)({form:lt},J,{className:"upload-image-panel",onFinish:nt}),n.a.createElement(H.a.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},n.a.createElement("div",{className:"flex-container"},n.a.createElement(H.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},n.a.createElement(D.a,{style:G})),n.a.createElement(Z,{onFileChange:Tt}))),n.a.createElement(H.a.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u63CF\u8FF0"}]},n.a.createElement(D.a,{style:{width:264}})),n.a.createElement(H.a.Item,{style:{textAlign:"right"}},n.a.createElement(R.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),n.a.createElement(R.a,{type:"ghost",onClick:Ie},"\u53D6\u6D88")))};function Z(ue){var xe=ue.onFileChange;return n.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",n.a.createElement("input",{type:"file",accept:"image/*",onChange:xe}))}function ie(ue,xe){var Ie=new FormData;Ie.append("editormd-image-file",ue),Ie.append("file_param_name","editormd-image-file"),Ie.append("byxhr","true");var Le=new window.XMLHttpRequest;Le.withCredentials=!0,Le.addEventListener("load",function(We){xe(JSON.parse(We.target.responseText))},!1),Le.addEventListener("error",function(We){console.error(We)},!1),Le.open("POST","".concat(P.a,"/api/attachments.json")),Le.send(Ie)}var re=c("giR+"),le=c("fyUT"),de=c("7Kak"),K=c("9yH6"),Se=K.a.Group,oe={margin:"0 8px"},q=function(ue){var xe=ue.callback,Ie=ue.onCancel;function Le(We){xe(We)}return n.a.createElement(H.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Le},n.a.createElement("div",{className:"flex-container"},n.a.createElement("span",{style:oe},"\u5355\u5143\u683C\u6570\uFF1A"),n.a.createElement("span",{style:oe},"\u884C\u6570"),n.a.createElement(H.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},n.a.createElement(le.a,null)),n.a.createElement("span",{style:oe},"\u5217\u6570"),n.a.createElement(H.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},n.a.createElement(le.a,null))),n.a.createElement("div",{className:"flex-container",style:{marginTop:12}},n.a.createElement("span",{style:oe},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),n.a.createElement(H.a.Item,{name:"align"},n.a.createElement(Se,null,n.a.createElement(K.a,{value:"default"},n.a.createElement("i",{className:"fa fa-align-justify"})),n.a.createElement(K.a,{value:"left"},n.a.createElement("i",{className:"fa fa-align-left"})),n.a.createElement(K.a,{value:"center"},n.a.createElement("i",{className:"fa fa-align-center"})),n.a.createElement(K.a,{value:"right"},n.a.createElement("i",{className:"fa fa-align-right"}))))),n.a.createElement("div",{className:"flex-container flex-end"},n.a.createElement(R.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),n.a.createElement(R.a,{type:"ghost",onClick:Ie},"\u53D6\u6D88")))},Q=c("9kvl"),ee="link",ce="upload-image",X="code-block",B="add-table",Y="------------",N={default:Y,left:":".concat(Y),center:":".concat(Y,":"),right:"".concat(Y,":")},v=c("9VGf"),a,r;function L(){}var k=0,z=1e4,se="\u2581";function pe(ue){return/^\d+$/.test(ue)?"".concat(ue,"px"):ue}var ge=navigator.platform.toUpperCase().indexOf("MAC")>=0,me=ge?"Cmd":"Ctrl",ve=(a={},Object(h.a)(a,me+"-B","bold"),Object(h.a)(a,me+"-I","italic"),a),be=(r={},Object(h.a)(r,ee,"\u6DFB\u52A0\u94FE\u63A5"),Object(h.a)(r,X,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(h.a)(r,ce,"\u6DFB\u52A0\u56FE\u7247"),Object(h.a)(r,B,"\u6DFB\u52A0\u8868\u683C"),r),Oe=_.a=function(ue){var xe=ue.defaultValue,Ie=xe===void 0?"":xe,Le=ue.onChange,We=ue.width,lt=We===void 0?"100%":We,nt=ue.height,pt=nt===void 0?400:nt,Tt=ue.miniToolbar,Rt=Tt===void 0?!1:Tt,Kt=ue.isFocus,Yt=Kt===void 0?!1:Kt,Vt=ue.watch,ar=ue.id,Xt=ar===void 0?"markdown-editor-id":ar,or=ue.showResizeBar,mr=or===void 0?!1:or,Jt=ue.noStorage,gr=Jt===void 0?!1:Jt,sr=ue.showNullButton,br=sr===void 0?!1:sr,Qt=ue.fullScreen,$t=Qt===void 0?!1:Qt,Zt=ue.onBlur,qt=ue.onCMBeforeChange,Wt=ue.className,Er=Wt===void 0?"":Wt,vr=ue.placeholder,yr=vr===void 0?"":vr,_r=Object(d.useState)(null),ur=Object(f.a)(_r,2),_e=ur[0],Be=ur[1],Ne=Object(d.useState)(Ie),Re=Object(f.a)(Ne,2),Ge=Re[0],je=Re[1],it=Object(d.useState)(Vt),Ae=Object(f.a)(it,2),Ee=Ae[0],ke=Ae[1],vt=Object(d.useState)($t),tt=Object(f.a)(vt,2),Ke=tt[0],He=tt[1],ot=Object(d.useState)(""),mt=Object(f.a)(ot,2),Ze=mt[0],ft=mt[1],Lt=Object(d.useState)(0),It=Object(f.a)(Lt,2),_t=It[0],Me=It[1],Ye=Object(d.useState)(pt),Ve=Object(f.a)(Ye,2),rt=Ve[0],Nt=Ve[1],kt=Object(d.useState)(!1),xt=Object(f.a)(kt,2),At=xt[0],St=xt[1],yt=Object(d.useRef)(),wt=Object(d.useRef)(),Ot=Object(d.useRef)(),Ct=Object(d.useRef)();Object(d.useEffect)(function(){if(yt.current){var Pe=function(Xe,Je){var st=Je.clipboardData;if(st){var et=st.types.toString(),dt=st.items;if(et==="text/html,Files"||et==="Files"){var ht=dt[1];et==="Files"&&(ht=dt[0]),ht.kind==="file"&&ht.type.match(/^image\//i)&&ie(ht.getAsFile(),function(Mt){Mt.id?Te.replaceSelection("")):Q.c.replace("/user/login",{from:Q.c.location.pathname})})}else return!0}return!0},Te=s.a.fromTextArea(yt.current,{mode:"markdown",inputStyle:"contenteditable",lineNumbers:!Rt,lineWrapping:!0,value:Ie,autoCloseTags:!0,autoCloseBrackets:!0});return Te.on("paste",Pe),Be(Te),function(){Te.off("paste",Pe)}}},[]);var Dt=Object(d.useCallback)(function(){if(wt.current)try{var Pe=wt.current.getElementsByClassName("markdown-toolbar-container")[0].offsetHeight,Te=wt.current.getElementsByClassName("markdown-editor-body")[0];Ke?Te.style.height="calc(100vh - ".concat(Pe,"px)"):Te.style.height="".concat(rt-Pe,"px")}catch(ne){console.log(ne,"---- to set md editor body height")}},[rt,wt,Ke]);Object(d.useEffect)(function(){function Pe(){var ne=new i.default(function(Xe){var Je=Object(y.a)(Xe),st;try{for(Je.s();!(st=Je.n()).done;){var et=st.value;(et.target.offsetHeight>0||et.target.offsetWidth>0)&&(Dt(),_e.setSize("100%","100%"),_e.refresh())}}catch(dt){Je.e(dt)}finally{Je.f()}});return ne.observe(yt.current.parentElement),ne}if(_e){var Te=Pe();return function(){Te.unobserve(yt.current.parentElement)}}},[_e,Dt]),Object(d.useEffect)(function(){if(_e){for(var Pe=[],Te=function(){var et=Xe[ne];Je=Object(f.a)(et,2);var dt=Je[0],ht=Je[1],Mt=Object(h.a)({},dt,function(){Pt(ht)});Pe.push(Mt),_e.addKeyMap(Mt)},ne=0,Xe=Object.entries(ve);ne<Xe.length;ne++){var Je;Te()}return function(){var st=Object(y.a)(Pe),et;try{for(st.s();!(et=st.n()).done;){var dt=et.value;_e.removeKeyMap(dt)}}catch(ht){st.e(ht)}finally{st.f()}}}},[_e]),Object(d.useEffect)(function(){$t!==Ke&&He($t)},[$t]),Object(v.a)(function(){if(!gr&&_t>0){var Pe=new Date().getTime(),Te=window.sessionStorage.getItem(Xt);Pe>=_t+z&&(!Te||Te!==Ge)&&(window.sessionStorage.setItem(Xt,Ge),St(!0))}},z),Object(d.useEffect)(function(){ke(Vt)},[_e,Vt]),Object(d.useEffect)(function(){_e&&(Yt&&_e.focus())},[_e,Yt]),Object(d.useEffect)(function(){if(Ee&&_e){var Pe=function(Xe){var Je=Xe.target;Ct.current&&(Ct.current.scrollTop=Ct.current.scrollHeight*Je.scrollTop/Je.scrollHeight)},Te=_e.getScrollerElement();return Te.addEventListener("scroll",Pe),function(){Te.removeEventListener("scroll",Pe)}}},[_e,Ee]),Object(d.useEffect)(function(){if(_e&&qt){var Pe=function(ne,Xe){qt(ne,Xe)};return _e.on("beforeChange",Pe),function(){_e.off("beforeChange",Pe)}}},[_e,qt]),Object(d.useEffect)(function(){if(_e&&Zt){var Pe=function(){Zt(_e.getValue())};return _e.on("blur",Pe),function(){_e.off("blur",Pe)}}},[_e,Zt]),Object(d.useEffect)(function(){if(_e){var Pe=function(ne){var Xe=ne.getValue();je(Xe),Me(new Date().getTime()),ne.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Le&&Le(Xe)};return _e.on("change",Pe),function(){_e.off("change",Pe)}}},[_e,Le]),Object(d.useEffect)(function(){_e&&(Ie==null?(_e.setValue(""),je("")):Ie!==_e.getValue()&&(_e.setValue(Ie),je(Ie)))},[_e,Ie]);var Pt=Object(d.useCallback)(function(Pe){var Te=_e.getCursor(),ne=_e.getSelection(),Xe=ne.split(`
|
||
`);switch(Pe){case"bold":return _e.replaceSelection("**"+ne+"**"),ne===""&&_e.setCursor(Te.line,Te.ch+2),_e.focus();case"italic":return _e.replaceSelection("*"+ne+"*"),ne===""&&_e.setCursor(Te.line,Te.ch+1),_e.focus();case"code":return _e.replaceSelection("`"+ne+"`"),ne===""&&_e.setCursor(Te.line,Te.ch+1),_e.focus();case"inline-latex":return _e.replaceSelection("`$$"+ne+"$$`"),ne===""&&_e.setCursor(Te.line,Te.ch+3),_e.focus();case"latex":return _e.replaceSelection("```latex\n"+ne+"\n```"),_e.setCursor(Te.line+1,ne.length+1),_e.focus();case"line-break":return _e.replaceSelection(`<br/>
|
||
`),_e.focus();case"list-ul":return ne===""?_e.replaceSelection("- "+ne):_e.replaceSelection(Xe.map(function(Je){return Je===""?"":"- ".concat(Je)}).join(`
|
||
`)),_e.focus();case"list-ol":return ne===""?_e.replaceSelection("1. "+ne):_e.replaceSelection(Xe.map(function(Je,st){return Je===""?"":"".concat(st+1,". ").concat(Je)}).join(`
|
||
`)),_e.focus();case"add-null-ch":return ne===""&&_e.setCursor(Te.line,Te.ch+1),_e.replaceSelection(se),_e.focus();case"eraser":return _e.setValue(""),_e.focus();case"trigger-watch":return ke(!Ee),_e.focus();case"trigger-full-screen":return He(!Ke),_e.focus();case ee:ft(ee);return;case X:ft(X);return;case ce:ft(ce);return;case B:ft(B);return;default:throw new Error}},[_e,Ee,Ke]),ut=Object(d.useCallback)(function(Pe){ft("");switch(Ze){case ee:var Te=Pe.title,ne=Pe.link;return _e.replaceSelection("[".concat(Te,"](").concat(ne,")")),_e.focus();case X:var Xe=Pe.language,Je=Pe.content;return _e.replaceSelection(["```"+Xe,Je,"```"].join(`
|
||
`)),_e.focus();case ce:var st=Pe.src,et=Pe.alt;return _e.replaceSelection(".concat(st,' "').concat(et,'" )')),_e.focus();case B:for(var dt=Pe.row,ht=Pe.col,Mt=Pe.align,Ut=`
|
||
`,zt=0;zt<dt;zt++){for(var lr=[],er=[],cr=0;cr<ht;cr++)zt===1&&er.push(N[Mt]),lr.push(" ");zt===1&&(Ut+="| ".concat(er.join(" | "),` |
|
||
`)),Ut+="| ".concat(lr.join(ht===1?"":" | "),` |
|
||
`)}return _e.replaceSelection(Ut+`
|
||
`),_e.focus();default:throw new Error}},[_e,Ze]),qe=Object(d.useMemo)(function(){switch(Ze){case ee:return n.a.createElement(V,{callback:ut,onCancel:at});case X:return n.a.createElement(te.b,{callback:ut,onCancel:at});case ce:return n.a.createElement(U,{callback:ut,onCancel:at});case B:return n.a.createElement(q,{callback:ut,onCancel:at});default:return null}},[Ze]);function at(){ft("")}Object(d.useEffect)(function(){if(Ot.current){var Pe=function(dt){Je=!0,st=dt.pageY},Te=function(){Je=!1},ne=function(dt){if(Je){var ht=dt.pageY-st;ht<0&&(ht=0),ht>300&&(ht=300);var Mt=pt+ht+"px";Nt(Mt)}},Xe=Ot.current,Je=!1,st=0;return Xe.addEventListener("mousedown",Pe),document.addEventListener("mousemove",ne),document.addEventListener("mouseup",Te),function(){Xe.removeEventListener("mousedown",Pe),document.removeEventListener("mousemove",ne),document.removeEventListener("mouseup",Te)}}},[_e,Ot]),Object(d.useEffect)(function(){Nt(pt)},[pt]);var gt=pe(lt),jt=pe(rt),Et={width:gt,height:jt},Ht=Object(d.useMemo)(function(){if(_t){var Pe=new Date(_t),Te=Pe.getHours(),ne=Pe.getMinutes(),Xe=Pe.getSeconds();return Te=Te<10?"0"+Te:Te,ne=ne<10?"0"+ne:ne,Xe=Xe<10?"0"+Xe:Xe,"".concat(Te,":").concat(ne,":").concat(Xe)}return 0},[_t]);function Ft(){window.sessionStorage.removeItem(Xt),St(!1),Me(0)}function ze(){St(!1),Me(0),_e.setValue(window.sessionStorage.getItem(Xt))}return n.a.createElement(d.Fragment,null,n.a.createElement("div",{className:"markdown-editor-wrapper",ref:wt},n.a.createElement("div",{className:"markdown-editor-container ".concat(Er," ").concat(Ee?"on-preview":""," ").concat(Rt?"mini":""," ").concat(Ke?"full-screen":""),style:Et},n.a.createElement(p,{watch:Ee,fullScreen:Ke,showNullButton:br,onActionCallback:Pt}),n.a.createElement("div",{className:"markdown-editor-body"},n.a.createElement("div",{className:"codemirror-container"},n.a.createElement("textarea",{ref:yt,placeholder:yr})),Ee?n.a.createElement("div",{ref:Ct,className:"preview-container"},n.a.createElement(x.a,{value:Ge})):null)),At?n.a.createElement("div",{className:"markdown-tip"},"\u60A8\u4E0A\u6B21\u6709\u5DF2\u4FDD\u5B58\u7684\u6570\u636E\uFF0C\u662F\u5426",n.a.createElement("a",{onClick:ze},"\u6062\u590D")," ? /",n.a.createElement("a",{onClick:Ft},"\u4E0D\u6062\u590D")," \uFF08\u6570\u636E\u5DF2\u4E8E ",Ht," \u4FDD\u5B58\uFF09"):null),mr?n.a.createElement("a",{ref:Ot,className:"editor-resize"}):null,n.a.createElement(M.a,null,be[Ze]?n.a.createElement(t.a,{centered:!0,title:be[Ze],visible:!0,onCancel:at,footer:null},qe):null))}},V5fa:function(e,_,c){e.exports={flex_box_center:"flex_box_center___1_S53",flex_space_between:"flex_space_between___1jn1m",flex_box_vertical_center:"flex_box_vertical_center___3ENQs",flex_box_center_end:"flex_box_center_end___1RjJf",flex_box_column:"flex_box_column___3-6wq",bg:"bg___3wGkV",title:"title___1QMPU",questionIcons:"questionIcons___2kqHA",green:"green___3sUty",orange:"orange___1IwUK",greenTip:"greenTip___2LD-4",redTip:"redTip___Ua25P",orangeTip:"orangeTip___1P_qu",pollDesc:"pollDesc___12pG2",answered:"answered___12rTH",unanswer:"unanswer___2WW2x",anchor:"anchor___K9-2U",answerFlag:"answerFlag___3jqRB",flagActive:"flagActive___38hkf",flagHalf:"flagHalf___1rgyT",answerStudentFlag:"answerStudentFlag___2zRLo",answerStudentActive:"answerStudentActive___2T-mu",questionItem:"questionItem___LqD7i",itemType:"itemType___1pbUF",itemFlag:"itemFlag___3xnGm",answerWrap:"answerWrap___13WPD",answerSubjective:"answerSubjective___BuIEZ",otherInput:"otherInput___3j4KI",submitButton:"submitButton___3lR03",randomFlag:"randomFlag___HVH41",answerTrue:"answerTrue___3EG1E",answerFalse:"answerFalse___zj_y6",answerHalf:"answerHalf___27vGH",renderHtml:"renderHtml___1U3SR",simpleText:"simpleText___1ljHF",answerYes:"answerYes___nDZ92",answerNo:"answerNo___1DhaR",answerInfo:"answerInfo___150u3",answerSheet:"answerSheet___1m3xL",active:"active___I4C3w",countDown:"countDown___1gxag",red:"red___1J5W8",fold:"fold___1XoX9",cardList:"cardList___vfXeA"}},ZW9T:function(e,_,c){"use strict";c.d(_,"a",function(){return T});var u=c("k1fw"),t=c("rAM+"),y=c("tJVT"),f=c("q1tI"),h=c.n(f),d=c("bdgK");function n(x,E,j,O,S){var w=E.getWordUntilPosition(j),p={startLineNumber:j.lineNumber,endLineNumber:j.lineNumber,startColumn:w.startColumn,endColumn:w.endColumn},M=O.map(function(C){return{label:C,kind:x.languages.CompletionItemKind.Keyword,insertText:C,insertTextRules:x.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:p}});return S.map(function(C){M.push(Object(u.a)(Object(u.a)({},C),{},{range:p}))}),M}var l=function(x){var E={label:"ifelse",kind:x.languages.CompletionItemKind.Method,insertText:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
|
||
`),insertTextRules:x.languages.CompletionItemInsertTextRule.InsertAsSnippet},j=["auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while","inline","restrict","_Bool","_Complex","_Imaginary","_Alignas","_Alignof","_Atomic","_Static_assert","_Noreturn","_Thread_local","_Generic"];x.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(p,M){var C=n(x,p,M,j,[E]);return{suggestions:C}}});var O=["False","None","True","and","as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","nonlocal","not","or","pass","raise","return","try","while","with","yield"];x.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(p,M){var C=[{label:"print",kind:x.languages.CompletionItemKind.Snippet,insertText:["print($0)"].join(`
|
||
`),insertTextRules:x.languages.CompletionItemInsertTextRule.InsertAsSnippet}],R=n(x,p,M,O,C);return{suggestions:R}}});var S=["abstract","assert","boolean","break","byte","case","catch","char","class","const","continue","default","do","double","else","enum","extends","final","finally","float","for","goto","if","implements","import","instance of","int","interface","long","native","new","package","private","protected","public","return","strictfp","short","static","super","switch","synchronized","this","throw","throws","transient","try","void","volatile","while"];x.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(p,M){var C=[E,{label:"main",kind:x.languages.CompletionItemKind.Snippet,insertText:["public static void main(String[] args) {"," $0","}"].join(`
|
||
`),insertTextRules:x.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"System.out.print",kind:x.languages.CompletionItemKind.Snippet,insertText:["System.out.print($0)"].join(`
|
||
`),insertTextRules:x.languages.CompletionItemInsertTextRule.InsertAsSnippet}],R=n(x,p,M,S,C);return{suggestions:R}}})};function s(x){return/^\d+$/.test(x)?"".concat(x,"px"):x}function i(){}var o=!1,b={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python"};function m(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],E=x;if(Array.isArray(x)){for(var j=0;j<x.length;j++){var O=b[x[j]];if(O)return O}return E[0]}return b[E]||E}var g=null,A=_.b=function(x){var E=x.width,j=E===void 0?"100%":E,O=x.height,S=O===void 0?"100%":O,w=x.value,p=x.language,M=p===void 0?"javascript":p,C=x.style,R=C===void 0?{}:C,I=x.options,H=I===void 0?{}:I,W=x.overrideServices,D=W===void 0?{}:W,ae=x.theme,V=ae===void 0?"vs-dark":ae,te=x.onEditBlur,$=x.onSave,P=x.forbidCopy,F=P===void 0?!1:P,G=x.onChange,J=G===void 0?i:G,U=x.editorDidMount,Z=U===void 0?i:U,ie=x.onFocus,re=ie===void 0?i:ie,le=Object(f.useRef)(),de=Object(f.useRef)({}),K=Object(f.useState)(!1),Se=Object(y.a)(K,2),oe=Se[0],q=Se[1];function Q(){var N;return le.current&&(N=new d.default(function(v){var a=Object(t.a)(v),r;try{for(a.s();!(r=a.n()).done;){var L=r.value;(L.target.offsetHeight>0||L.target.offsetWidth>0)&&de.current.instance.layout()}}catch(k){a.e(k)}finally{a.f()}}),N.observe(le.current)),N}Object(f.useEffect)(function(){var N=de.current.instance;if(w!=null&&N&&oe){var v=N.getModel();v&&w!==v.getValue()&&(o=!0,v.setValue(w),N.layout(),o=!1)}},[w,oe,de.current]);function ee(){var N=de.current.instance;if(N){var v=N.getSelection(),a=de.current.pastePos||{},r=new g.Range(a.startLineNumber||v.endLineNumber,a.startColumn||v.endColumn,a.endLineNumber||v.endLineNumber,a.endColumn||v.endColumn);N.executeEdits("",[{range:r,text:""}])}}function ce(N){(window.navigator.platform.match("Mac")?N.metaKey:N.ctrlKey)&&N.keyCode==83&&(N.preventDefault(),$())}Object(f.useEffect)(function(){le.current&&!oe&&c.e(24).then(c.t.bind(null,"M/lh",7)).then(function(N){g=N,l(g),de.current.instance=g.editor.create(le.current,Object(u.a)({value:w,language:m(M),theme:V},H),D);var v=de.current.instance;Z(v,g),de.current.subscription=v.onDidChangeModelContent(function(r){o||J(v.getValue(),r)}),te&&v.onDidBlurEditorWidget(function(){te(v.getValue())}),re&&v.onDidFocusEditorText(function(){re(v.getValue())}),F&&(v.addCommand(g.KeyMod.CtrlCmd|g.KeyCode.KEY_V,function(){return null}),v.onDidPaste(function(r){de.current.pastePos=r}),window.addEventListener("paste",ee));var a=Q();return q(!0),function(){var r=de.current.instance;r.dispose();var L=r.getModel();L&&L.dispose(),de.current.subscription&&de.current.subscription.dispose(),F&&window.removeEventListener("paste",ee),a.unobserve(le.current)}})},[]),Object(f.useEffect)(function(){var N=de.current.instance;if(N&&oe)return document.addEventListener("keydown",ce,!1),function(){document.removeEventListener("keydown",ce)}},[$,oe]),Object(f.useEffect)(function(){var N=de.current.instance;if(N&&oe){var v=m(M);g.editor.setModelLanguage(N.getModel(),v)}},[M,oe]),Object(f.useEffect)(function(){var N=de.current.instance;N&&oe&&g.editor.setTheme(V)},[V,oe]),Object(f.useEffect)(function(){var N=de.current.instance;N&&oe&&N.updateOptions(H)},[JSON.stringify(H),oe]),Object(f.useEffect)(function(){var N=de.current.instance;N&&oe&&N.layout()},[j,S,oe]);var X=s(j),B=s(S),Y=Object(u.a)(Object(u.a)({},R),{},{width:X,height:B});return h.a.createElement("div",{className:"my-monaco-editor",ref:le,style:Y})};function T(x){var E=x.width,j=E===void 0?"100%":E,O=x.height,S=O===void 0?"100%":O,w=x.original,p=x.modified,M=x.language,C=x.options,R=C===void 0?{}:C,I=Object(f.useRef)(),H=Object(f.useState)(null),W=Object(y.a)(H,2),D=W[0],ae=W[1];function V(F){var G;return I.current&&(G=new d.default(function(J){var U=Object(t.a)(J),Z;try{for(U.s();!(Z=U.n()).done;){var ie=Z.value;(ie.target.offsetHeight>0||ie.target.offsetWidth>0)&&F.layout()}}catch(re){U.e(re)}finally{U.f()}}),G.observe(I.current)),G}Object(f.useEffect)(function(){I.current&&c.e(24).then(c.t.bind(null,"M/lh",7)).then(function(F){g=F;var G=g.editor.createDiffEditor(I.current,Object(u.a)({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",ignoreTrimWhitespace:!1,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},R));ae(G);var J=V(G);return function(){G.dispose();var U=G.getModel();U&&U.dispose(),J.unobserve(I.current)}})},[]),Object(f.useEffect)(function(){D&&D.setModel({original:g.editor.createModel(w,M),modified:g.editor.createModel(p,M)})},[w,p,M,D]);var te=s(j),$=s(S),P={width:te,height:$};return h.a.createElement("div",{className:"my-diff-editor",ref:I,style:P})}},bPs0:function(e,_,c){"use strict";c.d(_,"b",function(){return A});var u=c("k1fw"),t=c("WmNS"),y=c.n(t),f=c("9og8"),h=c("2qtc"),d=c("kLXV"),n=c("tJVT"),l=c("PpiC"),s=c("q1tI"),i=c.n(s),o=c("bntm"),b=c("V0Rq"),m=c("Ty5D"),g=c("9kvl"),A=["fullscreenchange","msfullscreenchange","webkitfullscreenchange","mozfullscreenchange"],T=function(E){var j=E.globalSetting,O=E.loading,S=E.user,w=E.exercise,p=E.dispatch,M=Object(l.a)(E,["globalSetting","loading","user","exercise","dispatch"]),C=Object(s.useState)({}),R=Object(n.a)(C,2),I=R[0],H=R[1],W=d.a.useModal(),D=Object(n.a)(W,2),ae=D[0],V=D[1],te=Object(s.useRef)(null),$=Object(s.useState)(),P=Object(n.a)($,2),F=P[0],G=P[1],J=Object(s.useState)(!0),U=Object(n.a)(J,2),Z=U[0],ie=U[1],re=Object(m.l)().query,le=Object(m.m)();Object(s.useEffect)(function(){var Q,ee;return clearTimeout(te.current),document.addEventListener(Object(o.c)(),q,!1),((Q=w.exerciseUserInfo)===null||Q===void 0?void 0:Q.screen_open)&&Object(o.a)()&&p({type:"globalSetting/headerFooterToggle",payload:!1}),((ee=w.exerciseUserInfo)===null||ee===void 0?void 0:ee.screen_open)&&!Object(o.a)()?d.a.info({icon:null,content:i.a.createElement("div",{className:"tc font16"},"\u672C\u573A\u8003\u8BD5\u5DF2\u5F00\u542F\u9632\u5207\u5C4F\u9650\u5236\uFF0C",i.a.createElement("br",null),"\u5207\u6362\u9875\u9762 ",w.exerciseUserInfo.screen_num-w.exerciseUserInfo.used_screen_num," \u6B21\u540E\u5C06\u8FDB\u884C\u5F3A\u5236\u4EA4\u5377\uFF0C",i.a.createElement("br",null),"\u8BF7\u52FF\u5207\u5C4F\u53CA\u5237\u65B0\u9875\u9762"),onOk:function(){Object(o.d)(document.body),ie(!1),document.getElementById("root").addEventListener("click",de,!1)}}):document.getElementById("root").addEventListener("click",de,!1),function(){document.getElementById("root").removeEventListener("click",de,!1),document.removeEventListener(Object(o.c)(),q,!1),clearTimeout(te.current)}},[]),Object(s.useEffect)(function(){setTimeout(function(){w.actionTabs.removeEventListenerExitScreen&&(clearTimeout(te.current),document.getElementById("root").removeEventListener("click",de,!1),document.removeEventListener(Object(o.c)(),q,!1))},500)},[w.actionTabs]),Object(s.useEffect)(function(){setTimeout(function(){w.exerciseUserInfo.used_screen_num>w.exerciseUserInfo.screen_num?oe():Z||K()},500),console.log("exercise.exerciseUserInfo:",JSON.stringify(w.exerciseUserInfo))},[w.exerciseUserInfo]);var de=function(ee){!Object(o.a)()&&ee.target.nodeName!=="A"&&ee.target.nodeName!=="BUTTON"&&ee.target.innerHTML!=="\u786E \u5B9A"&&(Object(o.d)(document.body),console.log("documentClick.full"))},K=function(){var Q=Object(f.a)(y.a.mark(function ee(){var ce;return y.a.wrap(function(B){for(;;)switch(B.prev=B.next){case 0:d.a.destroyAll(),d.a.info({content:i.a.createElement("div",null,"\u60A8\u5DF2\u5207\u5C4F",i.a.createElement("span",{className:"c-red"},w.exerciseUserInfo.used_screen_num),"\u6B21\uFF0C\u5207\u5C4F\u8D85\u8FC7",i.a.createElement("span",{className:"c-red"},(ce=w.exerciseUserInfo)===null||ce===void 0?void 0:ce.screen_num),"\u6B21\u5C06\u5F3A\u5236\u4EA4\u5377"),onOk:function(){Object(o.d)(document.body)}});case 2:case"end":return B.stop()}},ee)}));return function(){return Q.apply(this,arguments)}}(),Se=function(){location.href="/classrooms/".concat(le.coursesId,"/exercise/").concat(le.categoryId,"/detail")},oe=function(){var Q=Object(f.a)(y.a.mark(function ee(){var ce;return y.a.wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return d.a.destroyAll(),B.next=3,Object(b.K)({categoryId:le.categoryId,commit_method:1});case 3:ce=B.sent,ce&&(document.removeEventListener(Object(o.c)(),q,!1),Object(o.b)(),ae.info({content:i.a.createElement("div",{className:"tc font16"},"\u7B54\u9898\u7ED3\u675F\u4E86\uFF0C\u7CFB\u7EDF\u5DF2\u81EA\u52A8\u63D0\u4EA4\u8BD5\u5377",i.a.createElement("br",null),"\u4E0D\u80FD\u518D\u4FEE\u6539\u7B54\u9898"),onOk:function(){Se()}}));case 5:case"end":return B.stop()}},ee)}));return function(){return Q.apply(this,arguments)}}(),q=function(){var ee=!1;if(console.log("fullscreen change"),Object(o.a)())clearTimeout(te.current);else{ee=!0;var ce=setTimeout(Object(f.a)(y.a.mark(function X(){return y.a.wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return Y.next=2,Object(b.F)({id:le.categoryId});case 2:return Y.next=4,p({type:"exercise/getExerciseUserInfo",payload:Object(u.a)({},le)});case 4:console.log("timeout.exercise.get"),w.exerciseUserInfo.used_screen_num<w.exerciseUserInfo.screen_num||oe();case 6:case"end":return Y.stop()}},X)})),w.exerciseUserInfo.screen_sec*1e3);te.current=ce}p({type:"globalSetting/headerFooterToggle",payload:ee}),p({type:"globalSetting/onlyShowBackTopToggle",payload:ee})};return i.a.createElement("div",null,V)};_.a=Object(g.a)(function(x){var E=x.loading,j=x.user,O=x.exercise,S=x.globalSetting;return{globalSetting:S,user:j,exercise:O,loading:E.effects}})(T)},bntm:function(e,_,c){"use strict";c.d(_,"d",function(){return u}),c.d(_,"b",function(){return t}),c.d(_,"c",function(){return y}),c.d(_,"a",function(){return f});function u(h){try{h.mozRequestFullScreen?h.mozRequestFullScreen():h.webkitRequestFullScreen&&h.webkitRequestFullScreen()}catch(d){console.log(d,":e")}}function t(){document.webkitExitFullscreen?document.webkitExitFullscreen():document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen&&document.mozCancelFullScreen()}var y=function(){if(document.webkitExitFullscreen)return"webkitfullscreenchange";if(document.exitFullscreen)return"fullscreenchange";if(document.msExitFullscreen)return"msfullscreenchange";if(document.mozCancelFullScreen)return"mozfullscreenchange"};function f(){var h=document.fullscreenElement||document.mozFullscreenElement||document.webkitFullscreenElement,d=document.fullscreenEnabled||document.mozFullscreenEnabled||document.webkitFullscreenEnabled;return!(h==null)}},dejd:function(e,_,c){},kSUc:function(e,_,c){},mxV5:function(module,exports,__webpack_require__){(function(global){var require,require;(function(e){if(!0)module.exports=e();else var _})(function(){var define,module,exports;return function(){function e(_,c,u){function t(h,d){if(!c[h]){if(!_[h]){var n=typeof require=="function"&&require;if(!d&&n)return require(h,!0);if(y)return y(h,!0);var l=new Error("Cannot find module '"+h+"'");throw l.code="MODULE_NOT_FOUND",l}var s=c[h]={exports:{}};_[h][0].call(s.exports,function(i){var o=_[h][1][i];return t(o||i)},s,s.exports,e,_,c,u)}return c[h].exports}for(var y=typeof require=="function"&&require,f=0;f<u.length;f++)t(u[f]);return t}return e}()({1:[function(e,_,c){"use strict";var u=e("./browser/client");u.Buffer=e("buffer").Buffer,u.urllib=e("../shims/xhr"),u.version=e("./browser/version").version,_.exports=u},{"../shims/xhr":291,"./browser/client":2,"./browser/version":5,buffer:73}],2:[function(e,_,c){(function(u,t){"use strict";var y=e("babel-runtime/core-js/promise"),f=s(y),h=e("babel-runtime/regenerator"),d=s(h),n=e("babel-runtime/core-js/object/assign"),l=s(n);function s(te){return te&&te.__esModule?te:{default:te}}var i=e("debug")("ali-oss"),o=e("copy-to"),b=e("xml2js"),m=e("agentkeepalive"),g=e("merge-descriptors"),A=e("url"),T=e("is-type-of"),x=e("platform"),E=e("utility"),j=e("urllib"),O=e("./version"),S=e("bowser"),w=e("../common/signUtils"),p=e("../common/utils/isIP"),M=p.isIP,C=e("../common/client/initOptions"),R=e("../common/utils/createRequest"),I=R.createRequest,H=new m;function W(){var te=x.name,$=x.version;te&&te.toLowerCase&&te.toLowerCase()==="ie"&&$.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function D(){return location&&location.protocol==="https:"}function ae(te,$){if(W(),!(this instanceof ae))return new ae(te,$);te&&te.inited?this.options=te:this.options=ae.initOptions(te),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=j,this.agent=this.options.agent||H),this.ctx=$,this.userAgent=this._getUserAgent(),this.options.amendTimeSkewed=0}_.exports=ae,ae.initOptions=function($){$.stsToken||console.warn("Please use STS Token for safety, see more details at https://help.aliyun.com/document_detail/32077.html");var P=(0,l.default)({secure:D(),useFetch:!1},$);return C(P)};var V=ae.prototype;V.debug=i,g(V,e("./object")),g(V,e("../common/bucket/getBucketWebsite")),g(V,e("../common/bucket/putBucketWebsite")),g(V,e("../common/bucket/deleteBucketWebsite")),g(V,e("../common/bucket/getBucketLifecycle")),g(V,e("../common/bucket/putBucketLifecycle")),g(V,e("../common/bucket/deleteBucketLifecycle")),g(V,e("../common/bucket/putBucketVersioning")),g(V,e("../common/bucket/getBucketVersioning")),g(V,e("./managed-upload")),g(V,e("../common/multipart")),g(V,e("../common/parallel")),V.signature=function($){return this.debug("authorization stringToSign: %s",$,"info"),w.computeSignature(this.options.accessKeySecret,$)},V.authorization=function($,P,F,G){var J=w.buildCanonicalString($.toUpperCase(),P,{headers:G,parameters:F});return w.authorization(this.options.accessKeyId,this.options.accessKeySecret,J)},V.request=function($){var P,F,G,J,U,Z;return d.default.async(function(re){for(;;)switch(re.prev=re.next){case 0:return P=I.call(this,$),this.options.useFetch||(P.params.mode="disable-fetch"),F=void 0,G=void 0,J=!!$.stream,re.prev=5,re.next=8,d.default.awrap(this.urllib.request(P.url,P.params));case 8:F=re.sent,this.debug("response %s %s, got %s, headers: %j",$.method,P.url,F.status,F.headers,"info"),re.next=15;break;case 12:re.prev=12,re.t0=re.catch(5),G=re.t0;case 15:if(U=void 0,!(F&&$.successStatuses&&$.successStatuses.indexOf(F.status)===-1)){re.next=28;break}return re.next=19,d.default.awrap(this.requestError(F));case 19:if(U=re.sent,!(U.code==="RequestTimeTooSkewed"&&!J)){re.next=25;break}return this.options.amendTimeSkewed=+new Date(U.serverTime)-new Date,re.next=24,d.default.awrap(this.request($));case 24:return re.abrupt("return",re.sent);case 25:U.params=$,re.next=32;break;case 28:if(!G){re.next=32;break}return re.next=31,d.default.awrap(this.requestError(G));case 31:U=re.sent;case 32:if(!U){re.next=34;break}throw U;case 34:if(!$.xmlResponse){re.next=39;break}return re.next=37,d.default.awrap(this.parseXML(F.data));case 37:Z=re.sent,F.data=Z;case 39:return re.abrupt("return",F);case 40:case"end":return re.stop()}},null,this,[[5,12]])},V._getResource=function($){var P="/";return $.bucket&&(P+=$.bucket+"/"),$.object&&(P+=$.object),P},V._isIP=M,V._escape=function($){return E.encodeURIComponent($).replace(/%2F/g,"/")},V._getReqUrl=function($){var P={};o(this.options.endpoint).to(P);var F=this._isIP(P.hostname),G=this.options.cname;$.bucket&&!G&&!F&&(P.host=$.bucket+"."+P.host);var J="/";$.bucket&&F&&(J+=$.bucket+"/"),$.object&&(J+=this._escape($.object).replace(/\+/g,"%2B")),P.pathname=J;var U={};if($.query&&g(U,$.query),$.subres){var Z={};T.string($.subres)?Z[$.subres]="":T.array($.subres)?$.subres.forEach(function(ie){Z[ie]=""}):Z=$.subres,g(U,Z)}return P.query=U,A.format(P)},V._getUserAgent=function(){var $=t&&t.browser?"js":"nodejs",P="aliyun-sdk-"+$+"/"+O.version,F=x.description;return!F&&t&&(F="Node.js "+t.version.slice(1)+" on "+t.platform+" "+t.arch),this._checkUserAgent(P+" "+F)},V._checkUserAgent=function($){var P=$.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return P},V.checkBrowserAndVersion=function($,P){return S.name===$&&S.version.split(".")[0]===P},V.parseXML=function($){return new f.default(function(P,F){u.isBuffer($)&&($=$.toString()),b.parseString($,{explicitRoot:!1,explicitArray:!1},function(G,J){G?F(G):P(J)})})},V.requestError=function($){var P,F,G,J;return d.default.async(function(Z){for(;;)switch(Z.prev=Z.next){case 0:if(P=null,!(!$.data||!$.data.length)){Z.next=5;break}$.status===-1||$.status===-2?(P=new Error($.message),P.name=$.name,P.status=$.status,P.code=$.name):($.status===404?(P=new Error("Object not exists"),P.name="NoSuchKeyError",P.status=404,P.code="NoSuchKey"):$.status===412?(P=new Error("Pre condition failed"),P.name="PreconditionFailedError",P.status=412,P.code="PreconditionFailed"):(P=new Error("Unknow error, status: "+$.status),P.name="UnknowError",P.status=$.status),P.requestId=$.headers["x-oss-request-id"],P.host=""),Z.next=33;break;case 5:return F=String($.data),this.debug("request response error data: %s",F,"error"),G=void 0,Z.prev=8,Z.next=11,d.default.awrap(this.parseXML(F));case 11:if(Z.t0=Z.sent,Z.t0){Z.next=14;break}Z.t0={};case 14:G=Z.t0,Z.next=24;break;case 17:return Z.prev=17,Z.t1=Z.catch(8),this.debug(F,"error"),Z.t1.message+=`
|
||
raw xml: `+F,Z.t1.status=$.status,Z.t1.requestId=$.headers["x-oss-request-id"],Z.abrupt("return",Z.t1);case 24:J=G.Message||"unknow request error, status: "+$.status,G.Condition&&(J+=" (condition: "+G.Condition+")"),P=new Error(J),P.name=G.Code?G.Code+"Error":"UnknowError",P.status=$.status,P.code=G.Code,P.requestId=G.RequestId,P.hostId=G.HostId,P.serverTime=G.ServerTime;case 33:return this.debug("generate error %j",P,"error"),Z.abrupt("return",P);case 35:case"end":return Z.stop()}},null,this,[[8,17]])}}).call(this,{isBuffer:e("../../node_modules/is-buffer/index.js")},e("_process"))},{"../../node_modules/is-buffer/index.js":197,"../common/bucket/deleteBucketLifecycle":6,"../common/bucket/deleteBucketWebsite":7,"../common/bucket/getBucketLifecycle":8,"../common/bucket/getBucketVersioning":9,"../common/bucket/getBucketWebsite":10,"../common/bucket/putBucketLifecycle":11,"../common/bucket/putBucketVersioning":12,"../common/bucket/putBucketWebsite":13,"../common/client/initOptions":15,"../common/multipart":18,"../common/parallel":33,"../common/signUtils":34,"../common/utils/createRequest":38,"../common/utils/isIP":45,"./managed-upload":3,"./object":4,"./version":5,_process:208,agentkeepalive:48,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68,bowser:70,"copy-to":76,debug:288,"is-type-of":289,"merge-descriptors":200,platform:206,url:238,urllib:291,utility:290,xml2js:249}],3:[function(e,_,c){(function(u){"use strict";var t=e("babel-runtime/core-js/array/from"),y=l(t),f=e("babel-runtime/core-js/promise"),h=l(f),d=e("babel-runtime/regenerator"),n=l(d);function l(w){return w&&w.__esModule?w:{default:w}}var s=e("is-type-of"),i=e("util"),o=e("path"),b=e("mime"),m=e("copy-to"),g=e("../common/utils/isBlob"),A=g.isBlob,T=e("../common/utils/isFile"),x=T.isFile,E=c;E.multipartUpload=function(p,M,C){var R,I,H,W,D,ae,V,te,$;return n.default.async(function(F){for(;;)switch(F.prev=F.next){case 0:if(this.resetCancelFlag(),C=C||{},!(C.checkpoint&&C.checkpoint.uploadId)){F.next=6;break}return F.next=5,n.default.awrap(this._resumeMultipart(C.checkpoint,C));case 5:return F.abrupt("return",F.sent);case 6:return R=100*1024,C.mime||(x(M)?C.mime=b.getType(o.extname(M.name)):A(M)?C.mime=M.type:C.mime=b.getType(o.extname(M))),C.headers=C.headers||{},this._convertMetaToHeaders(C.meta,C.headers),F.next=12,n.default.awrap(this._getFileSize(M));case 12:if(I=F.sent,!(I<R)){F.next=25;break}return H=this._createStream(M,0,I),C.contentLength=I,F.next=18,n.default.awrap(this.putStream(p,H,C));case 18:if(W=F.sent,!(C&&C.progress)){F.next=22;break}return F.next=22,n.default.awrap(C.progress(1));case 22:return D={res:W.res,bucket:this.options.bucket,name:p,etag:W.res.headers.etag},(C.headers&&C.headers["x-oss-callback"]||C.callback)&&(D.data=W.data),F.abrupt("return",D);case 25:if(!(C.partSize&&!(parseInt(C.partSize,10)===C.partSize))){F.next=27;break}throw new Error("partSize must be int number");case 27:if(!(C.partSize&&C.partSize<R)){F.next=29;break}throw new Error("partSize must not be smaller than "+R);case 29:return F.next=31,n.default.awrap(this.initMultipartUpload(p,C));case 31:if(ae=F.sent,V=ae.uploadId,te=this._getPartSize(I,C.partSize),$={file:M,name:p,fileSize:I,partSize:te,uploadId:V,doneParts:[]},!(C&&C.progress)){F.next=38;break}return F.next=38,n.default.awrap(C.progress(0,$,ae.res));case 38:return F.next=40,n.default.awrap(this._resumeMultipart($,C));case 40:return F.abrupt("return",F.sent);case 41:case"end":return F.stop()}},null,this)},E._resumeMultipart=function(p,M){var C,R,I,H,W,D,ae,V,te,$,P,F,G,J,U,Z,ie,re;return n.default.async(function(de){for(;;)switch(de.prev=de.next){case 0:if(C=this,!this.isCancel()){de.next=3;break}throw this._makeCancelEvent();case 3:return R=p.file,I=p.fileSize,H=p.partSize,W=p.uploadId,D=p.doneParts,ae=p.name,V=[],D.length>0&&m(D).to(V),te=this._divideParts(I,H),$=te.length,P=!1,F=function(Se,oe){var q=this;return new h.default(function(ee,ce){var X,B,Y,N;return n.default.async(function(a){for(;;)switch(a.prev=a.next){case 0:if(a.prev=0,Se.isCancel()){a.next=18;break}return X=te[oe-1],B={stream:Se._createStream(R,X.start,X.end),size:X.end-X.start},a.next=6,n.default.awrap(Se._uploadPart(ae,W,oe,B));case 6:if(Y=a.sent,!(!Se.isCancel()&&!P)){a.next=15;break}if(p.doneParts.push({number:oe,etag:Y.res.headers.etag}),!M.progress){a.next=12;break}return a.next=12,n.default.awrap(M.progress(D.length/$,p,Y.res));case 12:ee({number:oe,etag:Y.res.headers.etag}),a.next=16;break;case 15:ee();case 16:a.next=19;break;case 18:ee();case 19:a.next=30;break;case 21:a.prev=21,a.t0=a.catch(0),N=new Error,N.name=a.t0.name,N.message=a.t0.message,N.stack=a.t0.stack,N.partNum=oe,m(a.t0).to(N),ce(N);case 30:case"end":return a.stop()}},null,q,[[0,21]])})},G=(0,y.default)(new Array($),function(K,Se){return Se+1}),J=V.map(function(K){return K.number}),U=G.filter(function(K){return J.indexOf(K)<0}),Z=5,ie=M.parallel||Z,de.next=17,n.default.awrap(this._parallel(U,ie,function(K){return new h.default(function(Se,oe){F(C,K).then(function(q){q&&V.push(q),Se()}).catch(function(q){oe(q)})})}));case 17:if(re=de.sent,P=!0,!this.isCancel()){de.next=22;break}throw F=null,this._makeCancelEvent();case 22:if(!(re&&re.length>0)){de.next=25;break}throw re[0].message="Failed to upload some parts with error: "+re[0].toString()+" part_num: "+re[0].partNum,re[0];case 25:return de.next=27,n.default.awrap(this.completeMultipartUpload(ae,W,V,M));case 27:return de.abrupt("return",de.sent);case 28:case"end":return de.stop()}},null,this)},E._getFileSize=function(p){return n.default.async(function(C){for(;;)switch(C.prev=C.next){case 0:if(!s.buffer(p)){C.next=4;break}return C.abrupt("return",p.length);case 4:if(!(A(p)||x(p))){C.next=6;break}return C.abrupt("return",p.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return C.stop()}},null,this)};var j=e("stream"),O=j.Readable;function S(w,p){if(!(this instanceof S))return new S(w,p);O.call(this,p),this.file=w,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}i.inherits(S,O),S.prototype.readFileAndPush=function(p){if(this.fileBuffer)for(var M=!0;M&&this.fileBuffer&&this.start<this.fileBuffer.length;){var C=this.start,R=C+p;R=R>this.fileBuffer.length?this.fileBuffer.length:R,this.start=R,M=this.push(this.fileBuffer.slice(C,R))}},S.prototype._read=function(p){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||this.start===0&&!this.file){this.finish||(this.fileBuffer=null,this.finish=!0),this.push(null);return}var M=16*1024;p=p||M;var C=this;this.reader.onload=function(I){C.fileBuffer=u.from(new Uint8Array(I.target.result)),C.file=null,C.readFileAndPush(p)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(p)},E._createStream=function(p,M,C){if(A(p)||x(p))return new S(p.slice(M,C));throw new Error("_createStream requires File/Blob.")},E._getPartSize=function(p,M){var C=10*1e3,R=1024*1024;return M?Math.max(Math.ceil(p/C),M):R},E._divideParts=function(p,M){for(var C=Math.ceil(p/M),R=[],I=0;I<C;I++){var H=M*I,W=Math.min(H+M,p);R.push({start:H,end:W})}return R}}).call(this,e("buffer").Buffer)},{"../common/utils/isBlob":43,"../common/utils/isFile":44,"babel-runtime/core-js/array/from":52,"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68,buffer:73,"copy-to":76,"is-type-of":289,mime:202,path:205,stream:230,util:243}],4:[function(e,_,c){"use strict";var u=e("babel-runtime/core-js/promise"),t=s(u),y=e("babel-runtime/core-js/object/keys"),f=s(y),h=e("babel-runtime/core-js/object/assign"),d=s(h),n=e("babel-runtime/regenerator"),l=s(n);function s(C){return C&&C.__esModule?C:{default:C}}var i=e("utility"),o=e("fs"),b=e("is-type-of"),m=e("url"),g=e("copy-to"),A=e("path"),T=e("mime"),x=e("../common/callback"),E=e("../common/signUtils"),j=e("merge-descriptors"),O=e("../common/utils/isBlob"),S=O.isBlob,w=e("../common/utils/isFile"),p=w.isFile,M=c;M.append=function(R,I,H){var W;return l.default.async(function(ae){for(;;)switch(ae.prev=ae.next){case 0:return H=H||{},H.position===void 0&&(H.position="0"),H.subres={append:"",position:H.position},H.method="POST",ae.next=6,l.default.awrap(this.put(R,I,H));case 6:return W=ae.sent,W.nextAppendPosition=W.res.headers["x-oss-next-append-position"],ae.abrupt("return",W);case 9:case"end":return ae.stop()}},null,this)},M.put=function(R,I,H){var W,D,ae,V,te,$,P;return l.default.async(function(G){for(;;)switch(G.prev=G.next){case 0:if(W=void 0,H=H||{},R=this._objectName(R),!b.buffer(I)){G.next=7;break}W=I,G.next=33;break;case 7:if(!(S(I)||p(I))){G.next=32;break}return H.mime||(p(I)?H.mime=T.getType(A.extname(I.name)):H.mime=I.type),D=this._createStream(I,0,I.size),G.next=12,l.default.awrap(this._getFileSize(I));case 12:return H.contentLength=G.sent,G.prev=13,G.next=16,l.default.awrap(this.putStream(R,D,H));case 16:return ae=G.sent,G.abrupt("return",ae);case 20:if(G.prev=20,G.t0=G.catch(13),!(G.t0.code==="RequestTimeTooSkewed")){G.next=29;break}return this.options.amendTimeSkewed=+new Date(G.t0.serverTime)-new Date,G.next=26,l.default.awrap(this.put(R,I,H));case 26:return G.abrupt("return",G.sent);case 29:throw G.t0;case 30:G.next=33;break;case 32:throw new TypeError("Must provide Buffer/Blob/File for put.");case 33:return H.headers=H.headers||{},this._convertMetaToHeaders(H.meta,H.headers),V=H.method||"PUT",te=this._objectRequestParams(V,R,H),x.encodeCallback(te,H),te.mime=H.mime,te.content=W,te.successStatuses=[200],G.next=43,l.default.awrap(this.request(te));case 43:return $=G.sent,P={name:R,url:this._objectUrl(R),res:$.res},te.headers&&te.headers["x-oss-callback"]&&(P.data=JSON.parse($.data.toString())),G.abrupt("return",P);case 47:case"end":return G.stop()}},null,this,[[13,20]])},M.putStream=function(R,I,H){var W,D,ae,V;return l.default.async(function($){for(;;)switch($.prev=$.next){case 0:return H=H||{},H.headers=H.headers||{},R=this._objectName(R),H.contentLength?H.headers["Content-Length"]=H.contentLength:H.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(H.meta,H.headers),W=H.method||"PUT",D=this._objectRequestParams(W,R,H),x.encodeCallback(D,H),D.mime=H.mime,D.stream=I,D.successStatuses=[200],$.next=13,l.default.awrap(this.request(D));case 13:return ae=$.sent,V={name:R,url:this._objectUrl(R),res:ae.res},D.headers&&D.headers["x-oss-callback"]&&(V.data=JSON.parse(ae.data.toString())),$.abrupt("return",V);case 17:case"end":return $.stop()}},null,this)},j(M,e("../common/object/copyObject")),j(M,e("../common/object/getObjectTagging")),j(M,e("../common/object/putObjectTagging")),j(M,e("../common/object/deleteObjectTagging")),j(M,e("../common/image")),j(M,e("../common/object/getBucketVersions")),j(M,e("../common/object/getACL")),j(M,e("../common/object/putACL")),j(M,e("../common/object/head")),j(M,e("../common/object/delete")),j(M,e("../common/object/get")),j(M,e("../common/object/putSymlink")),j(M,e("../common/object/getSymlink")),j(M,e("../common/object/deleteMulti")),j(M,e("../common/object/getObjectMeta")),M.putMeta=function(R,I,H){var W;return l.default.async(function(ae){for(;;)switch(ae.prev=ae.next){case 0:return ae.next=2,l.default.awrap(this.copy(R,R,{meta:I||{},timeout:H&&H.timeout,ctx:H&&H.ctx}));case 2:return W=ae.sent,ae.abrupt("return",W);case 4:case"end":return ae.stop()}},null,this)},M.list=function(R,I){var H,W,D,ae,V;return l.default.async(function($){for(;;)switch($.prev=$.next){case 0:return H=this._objectRequestParams("GET","",I),H.query=R,H.xmlResponse=!0,H.successStatuses=[200],$.next=6,l.default.awrap(this.request(H));case 6:return W=$.sent,D=W.data.Contents,ae=this,D&&(Array.isArray(D)||(D=[D]),D=D.map(function(P){return{name:P.Key,url:ae._objectUrl(P.Key),lastModified:P.LastModified,etag:P.ETag,type:P.Type,size:Number(P.Size),storageClass:P.StorageClass,owner:{id:P.Owner.ID,displayName:P.Owner.DisplayName}}})),V=W.data.CommonPrefixes||null,V&&(Array.isArray(V)||(V=[V]),V=V.map(function(P){return P.Prefix})),$.abrupt("return",{res:W.res,objects:D,prefixes:V,nextMarker:W.data.NextMarker||null,isTruncated:W.data.IsTruncated==="true"});case 13:case"end":return $.stop()}},null,this)},M.restore=function(R,I){var H,W;return l.default.async(function(ae){for(;;)switch(ae.prev=ae.next){case 0:return I=I||{},I.subres=(0,d.default)({restore:""},I.subres),I.versionId&&(I.subres.versionId=I.versionId),H=this._objectRequestParams("POST",R,I),H.successStatuses=[202],ae.next=7,l.default.awrap(this.request(H));case 7:return W=ae.sent,ae.abrupt("return",{res:W.res});case 9:case"end":return ae.stop()}},null,this)},M.signatureUrl=function(R,I){I=I||{},R=this._objectName(R),I.method=I.method||"GET";var H=i.timestamp()+(I.expires||1800),W={bucket:this.options.bucket,object:R},D=this._getResource(W);this.options.stsToken&&(I["security-token"]=this.options.stsToken);var ae=E._signatureForURL(this.options.accessKeySecret,I,D,H),V=m.parse(this._getReqUrl(W));return V.query={OSSAccessKeyId:this.options.accessKeyId,Expires:H,Signature:ae.Signature},g(ae.subResource).to(V.query),V.format()},M.getObjectUrl=function(R,I){return I?I[I.length-1]!=="/"&&(I+="/"):I=this.options.endpoint.format(),I+this._escape(this._objectName(R))},M._objectUrl=function(R){return this._getReqUrl({bucket:this.options.bucket,object:R})},M.generateObjectUrl=function(C,R){if(R)R[R.length-1]!=="/"&&(R+="/");else{R=this.options.endpoint.format();var I=m.parse(R),H=this.options.bucket;I.hostname=H+"."+I.hostname,I.host=H+"."+I.host,R=I.format()}return R+this._escape(this._objectName(C))},M._objectRequestParams=function(R,I,H){if(!this.options.bucket)throw new Error("Please create a bucket first");H=H||{},I=this._objectName(I);var W={object:I,bucket:this.options.bucket,method:R,subres:H&&H.subres,timeout:H&&H.timeout,ctx:H&&H.ctx};return H.headers&&(W.headers={},g(H.headers).to(W.headers)),W},M._objectName=function(R){return R.replace(/^\/+/,"")},M._convertMetaToHeaders=function(R,I){if(!R)return;(0,f.default)(R).forEach(function(H){I["x-oss-meta-"+H]=R[H]})},M._deleteFileSafe=function(R){var I=this;return new t.default(function(H){o.exists(R,function(W){W?o.unlink(R,function(D){D&&I.debug("unlink %j error: %s",R,D,"error"),H()}):H()})})}},{"../common/callback":14,"../common/image":16,"../common/object/copyObject":19,"../common/object/delete":20,"../common/object/deleteMulti":21,"../common/object/deleteObjectTagging":22,"../common/object/get":23,"../common/object/getACL":24,"../common/object/getBucketVersions":25,"../common/object/getObjectMeta":26,"../common/object/getObjectTagging":27,"../common/object/getSymlink":28,"../common/object/head":29,"../common/object/putACL":30,"../common/object/putObjectTagging":31,"../common/object/putSymlink":32,"../common/signUtils":34,"../common/utils/isBlob":43,"../common/utils/isFile":44,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68,"copy-to":76,fs:71,"is-type-of":289,"merge-descriptors":200,mime:202,path:205,url:238,utility:290}],5:[function(e,_,c){"use strict";c.version="6.10.0"},{}],6:[function(e,_,c){"use strict";var u=e("babel-runtime/regenerator"),t=y(u);function y(n){return n&&n.__esModule?n:{default:n}}var f=e("../utils/checkBucketName"),h=f.checkBucketName,d=c;d.deleteBucketLifecycle=function(l,s){var i,o;return t.default.async(function(m){for(;;)switch(m.prev=m.next){case 0:return h(l),i=this._bucketRequestParams("DELETE",l,"lifecycle",s),i.successStatuses=[204],m.next=5,t.default.awrap(this.request(i));case 5:return o=m.sent,m.abrupt("return",{res:o.res});case 7:case"end":return m.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],7:[function(e,_,c){"use strict";var u=e("babel-runtime/regenerator"),t=y(u);function y(n){return n&&n.__esModule?n:{default:n}}var f=e("../utils/checkBucketName"),h=f.checkBucketName,d=c;d.deleteBucketWebsite=function(l,s){var i,o;return t.default.async(function(m){for(;;)switch(m.prev=m.next){case 0:return h(l),i=this._bucketRequestParams("DELETE",l,"website",s),i.successStatuses=[204],m.next=5,t.default.awrap(this.request(i));case 5:return o=m.sent,m.abrupt("return",{res:o.res});case 7:case"end":return m.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],8:[function(e,_,c){"use strict";var u=e("babel-runtime/regenerator"),t=y(u);function y(o){return o&&o.__esModule?o:{default:o}}var f=e("../utils/checkBucketName"),h=f.checkBucketName,d=e("../utils/isArray"),n=d.isArray,l=e("../utils/formatObjKey"),s=l.formatObjKey,i=c;i.getBucketLifecycle=function(b,m){var g,A,T;return t.default.async(function(E){for(;;)switch(E.prev=E.next){case 0:return h(b),g=this._bucketRequestParams("GET",b,"lifecycle",m),g.successStatuses=[200],g.xmlResponse=!0,E.next=6,t.default.awrap(this.request(g));case 6:return A=E.sent,T=A.data.Rule||null,T&&(n(T)||(T=[T]),T=T.map(function(j){return j.ID&&(j.id=j.ID,delete j.ID),j.Tag&&!n(j.Tag)&&(j.Tag=[j.Tag]),s(j,"firstLowerCase")})),E.abrupt("return",{rules:T,res:A.res});case 10:case"end":return E.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/formatObjKey":40,"../utils/isArray":42,"babel-runtime/regenerator":68}],9:[function(e,_,c){"use strict";var u=e("babel-runtime/regenerator"),t=y(u);function y(n){return n&&n.__esModule?n:{default:n}}var f=e("../utils/checkBucketName"),h=f.checkBucketName,d=c;d.getBucketVersioning=function(l,s){var i,o,b;return t.default.async(function(g){for(;;)switch(g.prev=g.next){case 0:return h(l),i=this._bucketRequestParams("GET",l,"versioning",s),i.xmlResponse=!0,i.successStatuses=[200],g.next=6,t.default.awrap(this.request(i));case 6:return o=g.sent,b=o.data.Status,g.abrupt("return",{status:o.status,versionStatus:b,res:o.res});case 9:case"end":return g.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],10:[function(e,_,c){"use strict";var u=e("babel-runtime/regenerator"),t=y(u);function y(s){return s&&s.__esModule?s:{default:s}}var f=e("../utils/checkBucketName"),h=f.checkBucketName,d=e("../utils/isObject"),n=d.isObject,l=c;l.getBucketWebsite=function(i,o){var b,m,g;return t.default.async(function(T){for(;;)switch(T.prev=T.next){case 0:return h(i),b=this._bucketRequestParams("GET",i,"website",o),b.successStatuses=[200],b.xmlResponse=!0,T.next=6,t.default.awrap(this.request(b));case 6:return m=T.sent,g=[],m.data.RoutingRules&&m.data.RoutingRules.RoutingRule&&(n(m.data.RoutingRules.RoutingRule)?g=[m.data.RoutingRules.RoutingRule]:g=m.data.RoutingRules.RoutingRule),T.abrupt("return",{index:m.data.IndexDocument&&m.data.IndexDocument.Suffix||"",supportSubDir:m.data.IndexDocument&&m.data.IndexDocument.SupportSubDir||"false",type:m.data.IndexDocument&&m.data.IndexDocument.Type,routingRules:g,error:m.data.ErrorDocument&&m.data.ErrorDocument.Key||null,res:m.res});case 10:case"end":return T.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/isObject":46,"babel-runtime/regenerator":68}],11:[function(e,_,c){"use strict";var u=e("babel-runtime/regenerator"),t=y(u);function y(p){return p&&p.__esModule?p:{default:p}}var f=e("../utils/checkBucketName"),h=f.checkBucketName,d=e("../utils/isArray"),n=d.isArray,l=e("../utils/deepCopy"),s=l.deepCopy,i=e("../utils/isObject"),o=i.isObject,b=e("../utils/obj2xml"),m=b.obj2xml,g=e("../utils/checkObjectTag"),A=g.checkObjectTag,T=e("../utils/getStrBytesCount"),x=T.getStrBytesCount,E=c;E.putBucketLifecycle=function(M,C,R){var I,H,W,D,ae;return t.default.async(function(te){for(;;)switch(te.prev=te.next){case 0:if(h(M),n(C)){te.next=3;break}throw new Error("rules must be Array");case 3:return I=this._bucketRequestParams("PUT",M,"lifecycle",R),H=[],W={LifecycleConfiguration:{Rule:H}},C.forEach(function($){j($),w($),$.id&&($.ID=$.id,delete $.id),H.push($)}),D=m(W,{headers:!0,firstUpperCase:!0}),I.content=D,I.mime="xml",I.successStatuses=[200],te.next=13,t.default.awrap(this.request(I));case 13:return ae=te.sent,te.abrupt("return",{res:ae.res});case 15:case"end":return te.stop()}},null,this)};function j(p){p.days&&(p.expiration={days:p.days}),p.date&&(p.expiration={createdBeforeDate:p.date})}function O(p,M){var C=p.days,R=p.createdBeforeDate;if(!C&&!R)throw new Error(M+" must includes days or createdBeforeDate");if(C&&!/^[1-9][0-9]*$/.test(C))throw new Error("days must be a positive integer");if(R&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(R))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function S(p){if(!n(p)&&!o(p))throw new Error("tag must be Object or Array");p=o(p)?[p]:p;var M={},C=s(p);C.forEach(function(R){M[R.key]=R.value}),A(M)}function w(p){if(p.id&&x(p.id)>255)throw new Error("ID is composed of 255 bytes at most");if(p.prefix===""||p.prefix===void 0)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(p.status))throw new Error("Status must be Enabled or Disabled");if(p.transition){if(!["IA","Archive"].includes(p.transition.storageClass))throw new Error("StorageClass must be IA or Archive");O(p.transition,"Transition")}if(p.expiration){if(!p.expiration.expiredObjectDeleteMarker)O(p.expiration,"Expiration");else if(p.expiration.days||p.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}if(p.abortMultipartUpload&&O(p.abortMultipartUpload,"AbortMultipartUpload"),!p.expiration&&!p.abortMultipartUpload&&!p.transition&&!p.noncurrentVersionTransition)throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(p.tag){if(p.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");S(p.tag)}}},{"../utils/checkBucketName":35,"../utils/checkObjectTag":36,"../utils/deepCopy":39,"../utils/getStrBytesCount":41,"../utils/isArray":42,"../utils/isObject":46,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],12:[function(e,_,c){"use strict";var u=e("babel-runtime/regenerator"),t=y(u);function y(s){return s&&s.__esModule?s:{default:s}}var f=e("../utils/checkBucketName"),h=f.checkBucketName,d=e("../utils/obj2xml"),n=d.obj2xml,l=c;l.putBucketVersioning=function(i,o){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},m,g,A;return t.default.async(function(x){for(;;)switch(x.prev=x.next){case 0:if(h(i),["Enabled","Suspended"].includes(o)){x.next=3;break}throw new Error("status must be Enabled or Suspended");case 3:return m=this._bucketRequestParams("PUT",i,"versioning",b),g={VersioningConfiguration:{Status:o}},m.mime="xml",m.content=n(g,{headers:!0}),x.next=9,t.default.awrap(this.request(m));case 9:return A=x.sent,x.abrupt("return",{res:A.res,status:A.status});case 11:case"end":return x.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],13:[function(e,_,c){"use strict";var u=e("babel-runtime/regenerator"),t=y(u);function y(o){return o&&o.__esModule?o:{default:o}}var f=e("../utils/checkBucketName"),h=f.checkBucketName,d=e("../utils/obj2xml"),n=d.obj2xml,l=e("../utils/isArray"),s=l.isArray,i=c;i.putBucketWebsite=function(b){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},g=arguments[2],A,T,x,E,j;return t.default.async(function(S){for(;;)switch(S.prev=S.next){case 0:if(h(b),A=this._bucketRequestParams("PUT",b,"website",g),T={Suffix:m.index||"index.html"},x={IndexDocument:T},E={WebsiteConfiguration:x},m.supportSubDir&&(T.SupportSubDir=m.supportSubDir),m.type&&(T.Type=m.type),m.error&&(x.ErrorDocument={Key:m.error}),!(m.routingRules!==void 0)){S.next=12;break}if(s(m.routingRules)){S.next=11;break}throw new Error("RoutingRules must be Array");case 11:x.RoutingRules={RoutingRule:m.routingRules};case 12:return E=n(E),A.content=E,A.mime="xml",A.successStatuses=[200],S.next=18,t.default.awrap(this.request(A));case 18:return j=S.sent,S.abrupt("return",{res:j.res});case 20:case"end":return S.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/isArray":42,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],14:[function(e,_,c){(function(u){"use strict";var t=e("babel-runtime/core-js/object/keys"),y=d(t),f=e("babel-runtime/core-js/json/stringify"),h=d(f);function d(n){return n&&n.__esModule?n:{default:n}}c.encodeCallback=function(l,s){if(l.headers=l.headers||{},!Object.prototype.hasOwnProperty.call(l.headers,"x-oss-callback")&&s.callback){var i={callbackUrl:encodeURI(s.callback.url),callbackBody:s.callback.body};s.callback.host&&(i.callbackHost=s.callback.host),s.callback.contentType&&(i.callbackBodyType=s.callback.contentType);var o=u.from((0,h.default)(i)).toString("base64");if(l.headers["x-oss-callback"]=o,s.callback.customValue){var b={};(0,y.default)(s.callback.customValue).forEach(function(m){b["x:"+m]=s.callback.customValue[m]}),l.headers["x-oss-callback-var"]=u.from((0,h.default)(b)).toString("base64")}}}}).call(this,e("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/keys":60,buffer:73}],15:[function(e,_,c){"use strict";var u=e("babel-runtime/core-js/object/assign"),t=y(u);function y(i){return i&&i.__esModule?i:{default:i}}var f=e("humanize-ms"),h=e("url"),d=e("../utils/checkBucketName"),n=d.checkBucketName;function l(i,o){var b=h.parse(i);if(b.protocol||(b=h.parse("http"+(o?"s":"")+"://"+i)),b.protocol!=="http:"&&b.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return b}function s(i,o,b){var m=b?"https://":"http://",g=o?"-internal.aliyuncs.com":".aliyuncs.com",A="vpc100-oss-cn-";return i.substr(0,A.length)===A&&(g=".aliyuncs.com"),h.parse(m+i+g)}_.exports=function(i){if(!i||!i.accessKeyId||!i.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");i.bucket&&n(i.bucket);var o=(0,t.default)({region:"oss-cn-hangzhou",internal:!1,secure:!1,timeout:6e4,bucket:null,endpoint:null,cname:!1,isRequestPay:!1,sldEnable:!1},i);if(o.accessKeyId=o.accessKeyId.trim(),o.accessKeySecret=o.accessKeySecret.trim(),o.timeout&&(o.timeout=f(o.timeout)),o.endpoint)o.endpoint=l(o.endpoint,o.secure);else if(o.region)o.endpoint=s(o.region,o.internal,o.secure);else throw new Error("require options.endpoint or options.region");return o.inited=!0,o}},{"../utils/checkBucketName":35,"babel-runtime/core-js/object/assign":54,"humanize-ms":194,url:238}],16:[function(e,_,c){"use strict";var u=e("merge-descriptors"),t=c;u(t,e("./processObjectSave"))},{"./processObjectSave":17,"merge-descriptors":200}],17:[function(e,_,c){"use strict";var u=e("babel-runtime/regenerator"),t=y(u);function y(o){return o&&o.__esModule?o:{default:o}}var f=e("../utils/checkBucketName"),h=f.checkBucketName,d=e("querystring"),n=e("js-base64"),l=n.Base64.encode,s=c;s.processObjectSave=function(b,m,g,A){var T,x,E,j;return t.default.async(function(S){for(;;)switch(S.prev=S.next){case 0:return i(b,"sourceObject"),i(m,"targetObject"),i(g,"process"),m=this._objectName(m),A&&h(A),T=this._objectRequestParams("POST",b,{subres:"x-oss-process"}),x=A?",b_"+l(A):"",m=l(m),E={"x-oss-process":g+"|sys/saveas,o_"+m+x},T.content=d.stringify(E),S.next=12,t.default.awrap(this.request(T));case 12:return j=S.sent,S.abrupt("return",{res:j.res,status:j.res.status});case 14:case"end":return S.stop()}},null,this)};function i(o,b){if(!o)throw new Error(b+" is required");if(typeof o!="string")throw new Error(b+" must be String")}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68,"js-base64":199,querystring:212}],18:[function(e,_,c){"use strict";var u=e("babel-runtime/regenerator"),t=y(u);function y(s){return s&&s.__esModule?s:{default:s}}var f=e("copy-to"),h=e("./callback"),d=e("./utils/deepCopy"),n=d.deepCopy,l=c;l.listUploads=function(i,o){var b,m,g,A;return t.default.async(function(x){for(;;)switch(x.prev=x.next){case 0:return o=o||{},b={},f(o).to(b),b.subres="uploads",m=this._objectRequestParams("GET","",b),m.query=i,m.xmlResponse=!0,m.successStatuses=[200],x.next=10,t.default.awrap(this.request(m));case 10:return g=x.sent,A=g.data.Upload||[],Array.isArray(A)||(A=[A]),A=A.map(function(E){return{name:E.Key,uploadId:E.UploadId,initiated:E.Initiated}}),x.abrupt("return",{res:g.res,uploads:A,bucket:g.data.Bucket,nextKeyMarker:g.data.NextKeyMarker,nextUploadIdMarker:g.data.NextUploadIdMarker,isTruncated:g.data.IsTruncated==="true"});case 15:case"end":return x.stop()}},null,this)},l.listParts=function(i,o,b,m){var g,A,T;return t.default.async(function(E){for(;;)switch(E.prev=E.next){case 0:return m=m||{},g={},f(m).to(g),g.subres={uploadId:o},A=this._objectRequestParams("GET",i,g),A.query=b,A.xmlResponse=!0,A.successStatuses=[200],E.next=10,t.default.awrap(this.request(A));case 10:return T=E.sent,E.abrupt("return",{res:T.res,uploadId:T.data.UploadId,bucket:T.data.Bucket,name:T.data.Key,partNumberMarker:T.data.PartNumberMarker,nextPartNumberMarker:T.data.NextPartNumberMarker,maxParts:T.data.MaxParts,isTruncated:T.data.IsTruncated,parts:T.data.Part||[]});case 12:case"end":return E.stop()}},null,this)},l.abortMultipartUpload=function(i,o,b){var m,g,A;return t.default.async(function(x){for(;;)switch(x.prev=x.next){case 0:return this._stop(),b=b||{},m={},f(b).to(m),m.subres={uploadId:o},g=this._objectRequestParams("DELETE",i,m),g.successStatuses=[204],x.next=9,t.default.awrap(this.request(g));case 9:return A=x.sent,x.abrupt("return",{res:A.res});case 11:case"end":return x.stop()}},null,this)},l.initMultipartUpload=function(i,o){var b,m,g;return t.default.async(function(T){for(;;)switch(T.prev=T.next){case 0:return o=o||{},b={},f(o).to(b),b.headers=b.headers||{},this._convertMetaToHeaders(o.meta,b.headers),b.subres="uploads",m=this._objectRequestParams("POST",i,b),m.mime=o.mime,m.xmlResponse=!0,m.successStatuses=[200],T.next=12,t.default.awrap(this.request(m));case 12:return g=T.sent,T.abrupt("return",{res:g.res,bucket:g.data.Bucket,name:g.data.Key,uploadId:g.data.UploadId});case 14:case"end":return T.stop()}},null,this)},l.uploadPart=function(i,o,b,m,g,A,T){var x;return t.default.async(function(j){for(;;)switch(j.prev=j.next){case 0:return x={stream:this._createStream(m,g,A),size:A-g},j.next=3,t.default.awrap(this._uploadPart(i,o,b,x,T));case 3:return j.abrupt("return",j.sent);case 4:case"end":return j.stop()}},null,this)},l.completeMultipartUpload=function(i,o,b,m){var g,A,T,x,E,j,O,S;return t.default.async(function(p){for(;;)switch(p.prev=p.next){case 0:for(g=b.concat().sort(function(M,C){return M.number-C.number}).filter(function(M,C,R){return!C||M.number!==R[C-1].number}),A=`<?xml version="1.0" encoding="UTF-8"?>
|
||
<CompleteMultipartUpload>
|
||
`,T=0;T<g.length;T++)x=g[T],A+=`<Part>
|
||
`,A+="<PartNumber>"+x.number+`</PartNumber>
|
||
`,A+="<ETag>"+x.etag+`</ETag>
|
||
`,A+=`</Part>
|
||
`;return A+="</CompleteMultipartUpload>",m=m||{},E={},E=n(m),E.headers&&delete E.headers["x-oss-server-side-encryption"],E.subres={uploadId:o},j=this._objectRequestParams("POST",i,E),h.encodeCallback(j,E),j.mime="xml",j.content=A,j.headers&&j.headers["x-oss-callback"]||(j.xmlResponse=!0),j.successStatuses=[200],p.next=17,t.default.awrap(this.request(j));case 17:return O=p.sent,S={res:O.res,bucket:j.bucket,name:i,etag:O.res.headers.etag},j.headers&&j.headers["x-oss-callback"]&&(S.data=JSON.parse(O.data.toString())),p.abrupt("return",S);case 21:case"end":return p.stop()}},null,this)},l._uploadPart=function(i,o,b,m,g){var A,T,x;return t.default.async(function(j){for(;;)switch(j.prev=j.next){case 0:return g=g||{},A={},f(g).to(A),A.headers={"Content-Length":m.size},A.subres={partNumber:b,uploadId:o},T=this._objectRequestParams("PUT",i,A),T.mime=A.mime,T.stream=m.stream,T.successStatuses=[200],j.next=11,t.default.awrap(this.request(T));case 11:if(x=j.sent,x.res.headers.etag){j.next=14;break}throw new Error(`Please set the etag of expose-headers in OSS
|
||
https://help.aliyun.com/document_detail/32069.html`);case 14:return m.stream=null,T.stream=null,j.abrupt("return",{name:i,etag:x.res.headers.etag,res:x.res});case 17:case"end":return j.stop()}},null,this)}},{"./callback":14,"./utils/deepCopy":39,"babel-runtime/regenerator":68,"copy-to":76}],19:[function(e,_,c){"use strict";var u=e("babel-runtime/regenerator"),t=n(u),y=e("babel-runtime/core-js/object/keys"),f=n(y),h=e("babel-runtime/helpers/typeof"),d=n(h);function n(o){return o&&o.__esModule?o:{default:o}}var l=e("../utils/checkBucketName"),s=l.checkBucketName,i=c;i.copy=function(b,m,g,A){var T,x,E;return t.default.async(function(O){for(;;)switch(O.prev=O.next){case 0:return(typeof g=="undefined"?"undefined":(0,d.default)(g))==="object"&&(A=g),A=A||{},A.headers=A.headers||{},(0,f.default)(A.headers).forEach(function(S){A.headers["x-oss-copy-source-"+S.toLowerCase()]=A.headers[S]}),A.meta&&(A.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(A.meta,A.headers),m=this._getSourceName(m,g),A.versionId&&(m=m+"?versionId="+A.versionId),A.headers["x-oss-copy-source"]=m,T=this._objectRequestParams("PUT",b,A),T.xmlResponse=!0,T.successStatuses=[200,304],O.next=14,t.default.awrap(this.request(T));case 14:return x=O.sent,E=x.data,E&&(E={etag:E.ETag,lastModified:E.LastModified}),O.abrupt("return",{data:E,res:x.res});case 18:case"end":return O.stop()}},null,this)},i._getSourceName=function(b,m){return typeof m=="string"?b=this._objectName(b):b[0]!=="/"?m=this.options.bucket:(m=b.replace(/\/(.+?)(\/.*)/,"$1"),b=b.replace(/(\/.+?\/)(.*)/,"$2")),s(m),b=encodeURI(b),b="/"+m+"/"+b,b}},{"../utils/checkBucketName":35,"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67,"babel-runtime/regenerator":68}],20:[function(e,_,c){"use strict";var u=e("babel-runtime/regenerator"),t=h(u),y=e("babel-runtime/core-js/object/assign"),f=h(y);function h(n){return n&&n.__esModule?n:{default:n}}var d=c;d.delete=function(l){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,o;return t.default.async(function(m){for(;;)switch(m.prev=m.next){case 0:return s.subres=(0,f.default)({},s.subres),s.versionId&&(s.subres.versionId=s.versionId),i=this._objectRequestParams("DELETE",l,s),i.successStatuses=[204],m.next=6,t.default.awrap(this.request(i));case 6:return o=m.sent,m.abrupt("return",{res:o.res});case 8:case"end":return m.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],21:[function(e,_,c){"use strict";var u=e("babel-runtime/regenerator"),t=h(u),y=e("babel-runtime/core-js/object/assign"),f=h(y);function h(i){return i&&i.__esModule?i:{default:i}}var d=e("utility"),n=e("../utils/obj2xml"),l=n.obj2xml,s=c;s.deleteMulti=function(o){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},m,g,A,T,x,E,j,O,S,w,p,M;return t.default.async(function(R){for(;;)switch(R.prev=R.next){case 0:if(m=[],!(!o||!o.length)){R.next=3;break}throw new Error("names is required");case 3:for(g=0;g<o.length;g++)A={},typeof o[g]=="string"?A.Key=d.escape(this._objectName(o[g])):(T=o[g],x=T.key,E=T.versionId,A.Key=d.escape(this._objectName(x)),A.VersionId=E),m.push(A);return j={Delete:{Quiet:!!b.quiet,Object:m}},O=l(j,{headers:!0}),b.subres=(0,f.default)({delete:""},b.subres),b.versionId&&(b.subres.versionId=b.versionId),S=this._objectRequestParams("POST","",b),S.mime="xml",S.content=O,S.xmlResponse=!0,S.successStatuses=[200],R.next=15,t.default.awrap(this.request(S));case 15:return w=R.sent,p=w.data,M=p&&p.Deleted||null,M&&(Array.isArray(M)||(M=[M])),R.abrupt("return",{res:w.res,deleted:M||[]});case 20:case"end":return R.stop()}},null,this)}},{"../utils/obj2xml":47,"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68,utility:290}],22:[function(e,_,c){"use strict";var u=e("babel-runtime/regenerator"),t=h(u),y=e("babel-runtime/core-js/object/assign"),f=h(y);function h(n){return n&&n.__esModule?n:{default:n}}var d=c;d.deleteObjectTagging=function(l){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,o;return t.default.async(function(m){for(;;)switch(m.prev=m.next){case 0:return s.subres=(0,f.default)({tagging:""},s.subres),s.versionId&&(s.subres.versionId=s.versionId),l=this._objectName(l),i=this._objectRequestParams("DELETE",l,s),i.successStatuses=[204],m.next=7,t.default.awrap(this.request(i));case 7:return o=m.sent,m.abrupt("return",{status:o.status,res:o.res});case 9:case"end":return m.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],23:[function(e,_,c){"use strict";var u=e("babel-runtime/regenerator"),t=h(u),y=e("babel-runtime/core-js/object/assign"),f=h(y);function h(s){return s&&s.__esModule?s:{default:s}}var d=e("fs"),n=e("is-type-of"),l=c;l.get=function(i,o){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},m,g,A,T;return t.default.async(function(E){for(;;)switch(E.prev=E.next){case 0:return m=null,g=!1,n.writableStream(o)?m=o:n.string(o)?(m=d.createWriteStream(o),g=!0):b=o,b=b||{},b.subres=(0,f.default)({},b.subres),b.versionId&&(b.subres.versionId=b.versionId),b.process&&(b.subres["x-oss-process"]=b.process),A=void 0,E.prev=8,T=this._objectRequestParams("GET",i,b),T.writeStream=m,T.successStatuses=[200,206,304],E.next=14,t.default.awrap(this.request(T));case 14:A=E.sent,g&&m.destroy(),E.next=25;break;case 18:if(E.prev=18,E.t0=E.catch(8),!g){E.next=24;break}return m.destroy(),E.next=24,t.default.awrap(this._deleteFileSafe(o));case 24:throw E.t0;case 25:return E.abrupt("return",{res:A.res,content:A.data});case 26:case"end":return E.stop()}},null,this,[[8,18]])}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68,fs:71,"is-type-of":289}],24:[function(e,_,c){"use strict";var u=e("babel-runtime/regenerator"),t=h(u),y=e("babel-runtime/core-js/object/assign"),f=h(y);function h(n){return n&&n.__esModule?n:{default:n}}var d=c;d.getACL=function(l){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,o;return t.default.async(function(m){for(;;)switch(m.prev=m.next){case 0:return s.subres=(0,f.default)({acl:""},s.subres),s.versionId&&(s.subres.versionId=s.versionId),l=this._objectName(l),i=this._objectRequestParams("GET",l,s),i.successStatuses=[200],i.xmlResponse=!0,m.next=8,t.default.awrap(this.request(i));case 8:return o=m.sent,m.abrupt("return",{acl:o.data.AccessControlList.Grant,owner:{id:o.data.Owner.ID,displayName:o.data.Owner.DisplayName},res:o.res});case 10:case"end":return m.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],25:[function(e,_,c){"use strict";var u=e("babel-runtime/core-js/object/keys"),t=n(u),y=e("babel-runtime/regenerator"),f=n(y),h=e("babel-runtime/core-js/object/assign"),d=n(h);function n(T){return T&&T.__esModule?T:{default:T}}var l=c,s=e("../utils/isObject"),i=s.isObject,o=e("../utils/isArray"),b=o.isArray;l.getBucketVersions=m,l.listObjectVersions=m;function m(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},E,j,O,S,w,p;return f.default.async(function(C){for(;;)switch(C.prev=C.next){case 0:if(!(T.versionIdMarker&&T.keyMarker===void 0)){C.next=2;break}throw new Error("A version-id marker cannot be specified without a key marker");case 2:return x.subres=(0,d.default)({versions:""},x.subres),x.versionId&&(x.subres.versionId=x.versionId),E=this._objectRequestParams("GET","",x),E.xmlResponse=!0,E.successStatuses=[200],E.query=A(T),C.next=10,f.default.awrap(this.request(E));case 10:return j=C.sent,O=j.data.Version||[],S=j.data.DeleteMarker||[],w=this,O&&(Array.isArray(O)||(O=[O]),O=O.map(function(R){return{name:R.Key,url:w._objectUrl(R.Key),lastModified:R.LastModified,isLatest:R.IsLatest==="true",versionId:R.VersionId,etag:R.ETag,type:R.Type,size:Number(R.Size),storageClass:R.StorageClass,owner:{id:R.Owner.ID,displayName:R.Owner.DisplayName}}})),S&&(b(S)||(S=[S]),S=S.map(function(R){return{name:R.Key,lastModified:R.LastModified,versionId:R.VersionId,owner:{id:R.Owner.ID,displayName:R.Owner.DisplayName}}})),p=j.data.CommonPrefixes||null,p&&(b(p)||(p=[p]),p=p.map(function(R){return R.Prefix})),C.abrupt("return",{res:j.res,objects:O,deleteMarker:S,prefixes:p,nextMarker:j.data.NextMarker||null,NextVersionIdMarker:j.data.NextVersionIdMarker||null,isTruncated:j.data.IsTruncated==="true"});case 19:case"end":return C.stop()}},null,this)}function g(T){return T.replace(/([A-Z])/g,"-$1").toLowerCase()}function A(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},x={};return i(T)&&(0,t.default)(T).forEach(function(E){x[g(E)]=T[E]}),x}},{"../utils/isArray":42,"../utils/isObject":46,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],26:[function(e,_,c){"use strict";var u=e("babel-runtime/regenerator"),t=h(u),y=e("babel-runtime/core-js/object/assign"),f=h(y);function h(n){return n&&n.__esModule?n:{default:n}}var d=c;d.getObjectMeta=function(l,s){var i,o;return t.default.async(function(m){for(;;)switch(m.prev=m.next){case 0:return s=s||{},l=this._objectName(l),s.subres=(0,f.default)({objectMeta:""},s.subres),s.versionId&&(s.subres.versionId=s.versionId),i=this._objectRequestParams("HEAD",l,s),i.successStatuses=[200],m.next=8,t.default.awrap(this.request(i));case 8:return o=m.sent,m.abrupt("return",{status:o.status,res:o.res});case 10:case"end":return m.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],27:[function(e,_,c){"use strict";var u=e("babel-runtime/regenerator"),t=h(u),y=e("babel-runtime/core-js/object/assign"),f=h(y);function h(s){return s&&s.__esModule?s:{default:s}}var d=c,n=e("../utils/isObject"),l=n.isObject;d.getObjectTagging=function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},b,m,g,A,T;return t.default.async(function(E){for(;;)switch(E.prev=E.next){case 0:return o.subres=(0,f.default)({tagging:""},o.subres),o.versionId&&(o.subres.versionId=o.versionId),i=this._objectName(i),b=this._objectRequestParams("GET",i,o),b.successStatuses=[200],E.next=7,t.default.awrap(this.request(b));case 7:return m=E.sent,E.next=10,t.default.awrap(this.parseXML(m.data));case 10:return g=E.sent,A=g.TagSet.Tag,A=A&&l(A)?[A]:A||[],T={},A.forEach(function(j){T[j.Key]=j.Value}),E.abrupt("return",{status:m.status,res:m.res,tag:T});case 16:case"end":return E.stop()}},null,this)}},{"../utils/isObject":46,"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],28:[function(e,_,c){"use strict";var u=e("babel-runtime/regenerator"),t=h(u),y=e("babel-runtime/core-js/object/assign"),f=h(y);function h(n){return n&&n.__esModule?n:{default:n}}var d=c;d.getSymlink=function(l){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,o,b;return t.default.async(function(g){for(;;)switch(g.prev=g.next){case 0:return s.subres=(0,f.default)({symlink:""},s.subres),s.versionId&&(s.subres.versionId=s.versionId),l=this._objectName(l),i=this._objectRequestParams("GET",l,s),i.successStatuses=[200],g.next=7,t.default.awrap(this.request(i));case 7:return o=g.sent,b=o.res.headers["x-oss-symlink-target"],g.abrupt("return",{targetName:decodeURIComponent(b),res:o.res});case 10:case"end":return g.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],29:[function(e,_,c){"use strict";var u=e("babel-runtime/regenerator"),t=n(u),y=e("babel-runtime/core-js/object/keys"),f=n(y),h=e("babel-runtime/core-js/object/assign"),d=n(h);function n(s){return s&&s.__esModule?s:{default:s}}var l=c;l.head=function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},b,m,g;return t.default.async(function(T){for(;;)switch(T.prev=T.next){case 0:return o.subres=(0,d.default)({},o.subres),o.versionId&&(o.subres.versionId=o.versionId),b=this._objectRequestParams("HEAD",i,o),b.successStatuses=[200,304],T.next=6,t.default.awrap(this.request(b));case 6:return m=T.sent,g={meta:null,res:m.res,status:m.status},m.status===200&&(0,f.default)(m.headers).forEach(function(x){x.indexOf("x-oss-meta-")===0&&(g.meta||(g.meta={}),g.meta[x.substring(11)]=m.headers[x])}),T.abrupt("return",g);case 10:case"end":return T.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],30:[function(e,_,c){"use strict";var u=e("babel-runtime/regenerator"),t=h(u),y=e("babel-runtime/core-js/object/assign"),f=h(y);function h(n){return n&&n.__esModule?n:{default:n}}var d=c;d.putACL=function(l,s,i){var o,b;return t.default.async(function(g){for(;;)switch(g.prev=g.next){case 0:return i=i||{},i.subres=(0,f.default)({acl:""},i.subres),i.versionId&&(i.subres.versionId=i.versionId),i.headers=i.headers||{},i.headers["x-oss-object-acl"]=s,l=this._objectName(l),o=this._objectRequestParams("PUT",l,i),o.successStatuses=[200],g.next=10,t.default.awrap(this.request(o));case 10:return b=g.sent,g.abrupt("return",{res:b.res});case 12:case"end":return g.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],31:[function(e,_,c){"use strict";var u=e("babel-runtime/regenerator"),t=n(u),y=e("babel-runtime/core-js/object/keys"),f=n(y),h=e("babel-runtime/core-js/object/assign"),d=n(h);function n(m){return m&&m.__esModule?m:{default:m}}var l=e("../utils/obj2xml"),s=l.obj2xml,i=e("../utils/checkObjectTag"),o=i.checkObjectTag,b=c;b.putObjectTagging=function(g,A){var T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},x,E,j;return t.default.async(function(S){for(;;)switch(S.prev=S.next){case 0:return o(A),T.subres=(0,d.default)({tagging:""},T.subres),T.versionId&&(T.subres.versionId=T.versionId),g=this._objectName(g),x=this._objectRequestParams("PUT",g,T),x.successStatuses=[200],A=(0,f.default)(A).map(function(w){return{Key:w,Value:A[w]}}),E={Tagging:{TagSet:{Tag:A}}},x.mime="xml",x.content=s(E),S.next=12,t.default.awrap(this.request(x));case 12:return j=S.sent,S.abrupt("return",{res:j.res,status:j.status});case 14:case"end":return S.stop()}},null,this)}},{"../utils/checkObjectTag":36,"../utils/obj2xml":47,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],32:[function(e,_,c){"use strict";var u=e("babel-runtime/regenerator"),t=h(u),y=e("babel-runtime/core-js/object/assign"),f=h(y);function h(n){return n&&n.__esModule?n:{default:n}}var d=c;d.putSymlink=function(l,s,i){var o,b;return t.default.async(function(g){for(;;)switch(g.prev=g.next){case 0:return i=i||{},i.headers=i.headers||{},s=this._escape(this._objectName(s)),this._convertMetaToHeaders(i.meta,i.headers),i.headers["x-oss-symlink-target"]=s,i.subres=(0,f.default)({symlink:""},i.subres),i.versionId&&(i.subres.versionId=i.versionId),i.storageClass&&(i.headers["x-oss-storage-class"]=i.storageClass),l=this._objectName(l),o=this._objectRequestParams("PUT",l,i),o.successStatuses=[200],g.next=13,t.default.awrap(this.request(o));case 13:return b=g.sent,g.abrupt("return",{res:b.res});case 15:case"end":return g.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],33:[function(e,_,c){"use strict";var u=e("babel-runtime/regenerator"),t=h(u),y=e("babel-runtime/core-js/promise"),f=h(y);function h(n){return n&&n.__esModule?n:{default:n}}var d=c;d._parallelNode=function(l,s,i,o){var b,m,g,A,T,x,E,j;return t.default.async(function(S){for(;;)switch(S.prev=S.next){case 0:b=this,m=[],g=[],A=l.length/s,T=l.length%s,x=T===0?A:(l.length-T)/s+1,E=1,j=0;case 8:if(!(j<l.length)){S.next=26;break}if(!b.isCancel()){S.next=11;break}return S.abrupt("break",26);case 11:if(o?g.push(i(b,l[j],o)):g.push(i(b,l[j])),!(g.length===s||E===x&&j===l.length-1)){S.next=23;break}return S.prev=13,E+=1,S.next=17,t.default.awrap(f.default.all(g));case 17:S.next=22;break;case 19:S.prev=19,S.t0=S.catch(13),m.push(S.t0);case 22:g=[];case 23:j++,S.next=8;break;case 26:return S.abrupt("return",m);case 27:case"end":return S.stop()}},null,this,[[13,19]])},d._parallel=function(l,s,i){var o=this;return new f.default(function(b){var m=[];if(s<=0||!l){b(m);return}function g(p){return function(){if(p===null)throw new Error("Callback was already called.");var M=p;p=null;for(var C=arguments.length,R=Array(C),I=0;I<C;I++)R[I]=arguments[I];M.apply(this,R)}}function A(p){var M=-1,C=p.length;return function(){return++M<C&&!o.isCancel()?{value:p[M],key:M}:null}}var T=A(l),x=!1,E=0,j=!1;function O(p,M){E-=1,p?(x=!0,m.push(p),b(m)):M==={}||x&&E<=0?(x=!0,b(m)):j||(o.isCancel()?b(m):w())}function S(p,M){i(p).then(function(C){M(null,C)}).catch(function(C){M(C)})}function w(){for(j=!0;E<s&&!x&&!o.isCancel();){var p=T();if(p===null||m.length>0){x=!0,E<=0&&b(m);return}E+=1,S(p.value,g(O))}j=!1}w()})},d.cancel=function(l){this.options.cancelFlag=!0,l&&this.abortMultipartUpload(l.name,l.uploadId,l.options)},d.isCancel=function(){return this.options.cancelFlag},d.resetCancelFlag=function(){this.options.cancelFlag=!1},d._stop=function(){this.options.cancelFlag=!0},d._makeCancelEvent=function(){var l={status:0,name:"cancel"};return l}},{"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68}],34:[function(e,_,c){(function(u){"use strict";var t=e("babel-runtime/core-js/json/stringify"),y=d(t),f=e("babel-runtime/core-js/object/keys"),h=d(f);function d(s){return s&&s.__esModule?s:{default:s}}var n=e("./../../shims/crypto/crypto.js"),l=e("is-type-of");c.buildCanonicalizedResource=function(i,o){var b=""+i,m="?";if(l.string(o)&&o.trim()!=="")b+=m+o;else if(l.array(o))o.sort(),b+=m+o.join("&");else if(o){var g=function(x,E){return x[0]>E[0]?1:x[0]<E[0]?-1:0},A=function(x){b+=m+x,o[x]&&(b+="="+o[x]),m="&"};(0,h.default)(o).sort(g).forEach(A)}return b},c.buildCanonicalString=function(i,o,b,m){b=b||{};var g=b.headers||{},A="x-oss-",T=[],x={},E=[i.toUpperCase(),g["Content-Md5"]||"",g["Content-Type"]||g["Content-Type".toLowerCase()],m||g["x-oss-date"]];return(0,h.default)(g).forEach(function(j){var O=j.toLowerCase();O.indexOf(A)===0&&(x[O]=String(g[j]).trim())}),(0,h.default)(x).sort().forEach(function(j){T.push(j+":"+x[j])}),E=E.concat(T),E.push(this.buildCanonicalizedResource(o,b.parameters)),E.join(`
|
||
`)},c.computeSignature=function(i,o){var b=n.createHmac("sha1",i);return b.update(u.from(o,"utf8")).digest("base64")},c.authorization=function(i,o,b){return"OSS "+i+":"+this.computeSignature(o,b)},c._signatureForURL=function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},b=arguments[2],m=arguments[3],g={},A=o.subResource,T=A===void 0?{}:A;if(o.process){var x="x-oss-process";T[x]=o.process}if(o.trafficLimit){var E="x-oss-traffic-limit";T[E]=o.trafficLimit}if(o.response&&(0,h.default)(o.response).forEach(function(w){var p="response-"+w.toLowerCase();T[p]=o.response[w]}),(0,h.default)(o).forEach(function(w){var p=w.toLowerCase(),M=o[w];p.indexOf("x-oss-")===0?g[p]=M:(p.indexOf("content-md5")===0||p.indexOf("content-type")===0)&&(g[w]=M)}),Object.prototype.hasOwnProperty.call(o,"security-token")&&(T["security-token"]=o["security-token"]),Object.prototype.hasOwnProperty.call(o,"callback")){var j={callbackUrl:encodeURI(o.callback.url),callbackBody:o.callback.body};if(o.callback.host&&(j.callbackHost=o.callback.host),o.callback.contentType&&(j.callbackBodyType=o.callback.contentType),T.callback=u.from((0,y.default)(j)).toString("base64"),o.callback.customValue){var O={};(0,h.default)(o.callback.customValue).forEach(function(w){O["x:"+w]=o.callback.customValue[w]}),T["callback-var"]=u.from((0,y.default)(O)).toString("base64")}}var S=this.buildCanonicalString(o.method,b,{headers:g,parameters:T},m.toString());return{Signature:this.computeSignature(i,S),subResource:T}}}).call(this,e("buffer").Buffer)},{"./../../shims/crypto/crypto.js":284,"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/keys":60,buffer:73,"is-type-of":289}],35:[function(e,_,c){"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.checkBucketName=void 0,c.checkBucketName=function(u,t){var y=t?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/;if(!y.test(u))throw new Error("The bucket must be conform to the specifications")}},{}],36:[function(e,_,c){"use strict";var u=e("babel-runtime/core-js/object/entries"),t=y(u);function y(o){return o&&o.__esModule?o:{default:o}}Object.defineProperty(c,"__esModule",{value:!0}),c.checkObjectTag=void 0;var f=e("./checkValid"),h=f.checkValid,d=e("./isObject"),n=d.isObject,l=[{validator:function(b){if(typeof b!="string")throw new Error("the key and value of the tag must be String")}},{pattern:/^[a-zA-Z0-9 +-=._:/]+$/,msg:"tag can contain letters, numbers, spaces, and the following symbols: plus sign (+), hyphen (-), equal sign (=), period (.), underscore (_), colon (:), and forward slash (/)"}],s={key:[].concat(l,[{pattern:/^.{1,128}$/,msg:"tag key can be a maximum of 128 bytes in length"}]),value:[].concat(l,[{pattern:/^.{0,256}$/,msg:"tag value can be a maximum of 256 bytes in length"}])};function i(o){if(!n(o))throw new Error("tag must be Object");var b=(0,t.default)(o);if(b.length>10)throw new Error("maximum of 10 tags for a object");var m=["key","value"];b.forEach(function(g){g.forEach(function(A,T){h(A,s[m[T]])})})}c.checkObjectTag=i},{"./checkValid":37,"./isObject":46,"babel-runtime/core-js/object/entries":57}],37:[function(e,_,c){"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.checkValid=void 0;function u(t,y){y.forEach(function(f){if(f.validator)f.validator(t);else if(f.pattern&&!f.pattern.test(t))throw new Error(f.msg)})}c.checkValid=u},{}],38:[function(e,_,c){(function(u){"use strict";var t=e("babel-runtime/core-js/object/assign"),y=f(t);function f(g){return g&&g.__esModule?g:{default:g}}Object.defineProperty(c,"__esModule",{value:!0}),c.createRequest=void 0;var h=e("./../../../shims/crypto/crypto.js"),d=e("debug")("ali-oss"),n=e("mime"),l=e("dateformat"),s=e("copy-to"),i=e("path");function o(g,A){return g[A]||g[A.toLowerCase()]}function b(g,A){delete g[A],delete g[A.toLowerCase()]}function m(g){var A=new Date;this.options.amendTimeSkewed&&(A=+new Date+this.options.amendTimeSkewed);var T={"x-oss-date":l(A,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'"),"x-oss-user-agent":this.userAgent};this.userAgent.includes("nodejs")&&(T["User-Agent"]=this.userAgent),this.options.isRequestPay&&(0,y.default)(T,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(T["x-oss-security-token"]=this.options.stsToken),s(g.headers).to(T),o(T,"Content-Type")||(g.mime&&g.mime.indexOf("/")>0?T["Content-Type"]=g.mime:T["Content-Type"]=n.getType(g.mime||i.extname(g.object||""))),o(T,"Content-Type")||b(T,"Content-Type"),g.content&&(T["Content-Md5"]=h.createHash("md5").update(u.from(g.content,"utf8")).digest("base64"),T["Content-Length"]||(T["Content-Length"]=g.content.length));var x=this._getResource(g);T.authorization=this.authorization(g.method,x,g.subres,T);var E=this._getReqUrl(g);d("request %s %s, with headers %j, !!stream: %s",g.method,E,T,!!g.stream);var j=g.timeout||this.options.timeout,O={method:g.method,content:g.content,stream:g.stream,headers:T,timeout:j,writeStream:g.writeStream,customResponse:g.customResponse,ctx:g.ctx||this.ctx};return this.agent&&(O.agent=this.agent),this.httpsAgent&&(O.httpsAgent=this.httpsAgent),{url:E,params:O}}c.createRequest=m}).call(this,e("buffer").Buffer)},{"./../../../shims/crypto/crypto.js":284,"babel-runtime/core-js/object/assign":54,buffer:73,"copy-to":76,dateformat:190,debug:288,mime:202,path:205}],39:[function(e,_,c){"use strict";var u=e("babel-runtime/core-js/object/keys"),t=h(u),y=e("babel-runtime/helpers/typeof"),f=h(y);function h(d){return d&&d.__esModule?d:{default:d}}Object.defineProperty(c,"__esModule",{value:!0}),c.deepCopy=void 0,c.deepCopy=function(d){if(d===null||(typeof d=="undefined"?"undefined":(0,f.default)(d))!=="object")return d;var n=Array.isArray(d)?[]:{};return(0,t.default)(d).forEach(function(l){n[l]=c.deepCopy(d[l])}),n}},{"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67}],40:[function(e,_,c){"use strict";var u=e("babel-runtime/core-js/object/keys"),t=h(u),y=e("babel-runtime/helpers/typeof"),f=h(y);function h(l){return l&&l.__esModule?l:{default:l}}Object.defineProperty(c,"__esModule",{value:!0}),c.formatObjKey=void 0;function d(l,s){if(l===null||(typeof l=="undefined"?"undefined":(0,f.default)(l))!=="object")return l;var i=void 0;if(Array.isArray(l)){i=[];for(var o=0;o<l.length;o++)i.push(d(l[o],s))}else i={},(0,t.default)(l).forEach(function(b){i[n(b,s)]=d(l[b],s)});return i}c.formatObjKey=d;function n(l,s){return s==="firstUpperCase"?l=l.replace(/^./,function(i){return i.toUpperCase()}):s==="firstLowerCase"&&(l=l.replace(/^./,function(i){return i.toLowerCase()})),l}},{"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67}],41:[function(e,_,c){"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.getStrBytesCount=void 0;function u(t){for(var y=0,f=0;f<t.length;f++){var h=t.charAt(f);/^[\u00-\uff]$/.test(h)?y+=1:y+=2}return y}c.getStrBytesCount=u},{}],42:[function(e,_,c){"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.isArray=void 0,c.isArray=function(u){return Object.prototype.toString.call(u)==="[object Array]"}},{}],43:[function(e,_,c){"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.isBlob=void 0;function u(t){return typeof Blob!="undefined"&&t instanceof Blob}c.isBlob=u},{}],44:[function(e,_,c){"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.isFile=void 0,c.isFile=function(u){return typeof File!="undefined"&&u instanceof File}},{}],45:[function(e,_,c){"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.isIP=void 0,c.isIP=function(u){var t=/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/,y=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/;return t.test(u)||y.test(u)}},{}],46:[function(e,_,c){"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.isObject=void 0,c.isObject=function(u){return Object.prototype.toString.call(u)==="[object Object]"}},{}],47:[function(e,_,c){"use strict";var u=e("babel-runtime/core-js/object/keys"),t=y(u);function y(n){return n&&n.__esModule?n:{default:n}}Object.defineProperty(c,"__esModule",{value:!0}),c.obj2xml=void 0;var f=e("./formatObjKey");function h(n){return Object.prototype.toString.call(n).replace(/(.*? |])/g,"").toLowerCase()}function d(n,l){var s="";return l&&l.headers&&(s=`<?xml version="1.0" encoding="UTF-8"?>
|
||
`),l&&l.firstUpperCase&&(n=f.formatObjKey(n,"firstUpperCase")),h(n)==="object"?(0,t.default)(n).forEach(function(i){h(n[i])==="string"||h(n[i])==="number"?s+="<"+i+">"+n[i]+"</"+i+">":h(n[i])==="object"?s+="<"+i+">"+d(n[i])+"</"+i+">":h(n[i])==="array"?s+=n[i].map(function(o){return"<"+i+">"+d(o)+"</"+i+">"}).join(""):s+="<"+i+">"+n[i].toString()+"</"+i+">"}):s+=n.toString(),s}c.obj2xml=d},{"./formatObjKey":40,"babel-runtime/core-js/object/keys":60}],48:[function(e,_,c){_.exports=u,_.exports.HttpsAgent=u;function u(){}},{}],49:[function(e,_,c){_.exports=e("./register")().Promise},{"./register":51}],50:[function(e,_,c){"use strict";var u="@@any-promise/REGISTRATION",t=null;_.exports=function(y,f){return function(d,n){d=d||null,n=n||{};var l=n.global!==!1;if(t===null&&l&&(t=y[u]||null),t!==null&&d!==null&&t.implementation!==d)throw new Error('any-promise already defined as "'+t.implementation+'". You can only register an implementation before the first call to require("any-promise") and an implementation cannot be changed');return t===null&&(d!==null&&typeof n.Promise!="undefined"?t={Promise:n.Promise,implementation:d}:t=f(d),l&&(y[u]=t)),t}}},{}],51:[function(e,_,c){"use strict";_.exports=e("./loader")(window,u);function u(){if(typeof window.Promise=="undefined")throw new Error("any-promise browser requires a polyfill or explicit registration e.g: require('any-promise/register/bluebird')");return{Promise:window.Promise,implementation:"window.Promise"}}},{"./loader":50}],52:[function(e,_,c){_.exports={default:e("core-js/library/fn/array/from"),__esModule:!0}},{"core-js/library/fn/array/from":77}],53:[function(e,_,c){_.exports={default:e("core-js/library/fn/json/stringify"),__esModule:!0}},{"core-js/library/fn/json/stringify":78}],54:[function(e,_,c){_.exports={default:e("core-js/library/fn/object/assign"),__esModule:!0}},{"core-js/library/fn/object/assign":79}],55:[function(e,_,c){_.exports={default:e("core-js/library/fn/object/create"),__esModule:!0}},{"core-js/library/fn/object/create":80}],56:[function(e,_,c){_.exports={default:e("core-js/library/fn/object/define-property"),__esModule:!0}},{"core-js/library/fn/object/define-property":81}],57:[function(e,_,c){_.exports={default:e("core-js/library/fn/object/entries"),__esModule:!0}},{"core-js/library/fn/object/entries":82}],58:[function(e,_,c){_.exports={default:e("core-js/library/fn/object/get-own-property-names"),__esModule:!0}},{"core-js/library/fn/object/get-own-property-names":83}],59:[function(e,_,c){_.exports={default:e("core-js/library/fn/object/get-prototype-of"),__esModule:!0}},{"core-js/library/fn/object/get-prototype-of":84}],60:[function(e,_,c){_.exports={default:e("core-js/library/fn/object/keys"),__esModule:!0}},{"core-js/library/fn/object/keys":85}],61:[function(e,_,c){_.exports={default:e("core-js/library/fn/promise"),__esModule:!0}},{"core-js/library/fn/promise":86}],62:[function(e,_,c){_.exports={default:e("core-js/library/fn/set-immediate"),__esModule:!0}},{"core-js/library/fn/set-immediate":87}],63:[function(e,_,c){_.exports={default:e("core-js/library/fn/string/from-code-point"),__esModule:!0}},{"core-js/library/fn/string/from-code-point":88}],64:[function(e,_,c){_.exports={default:e("core-js/library/fn/symbol"),__esModule:!0}},{"core-js/library/fn/symbol":90}],65:[function(e,_,c){_.exports={default:e("core-js/library/fn/symbol/has-instance"),__esModule:!0}},{"core-js/library/fn/symbol/has-instance":89}],66:[function(e,_,c){_.exports={default:e("core-js/library/fn/symbol/iterator"),__esModule:!0}},{"core-js/library/fn/symbol/iterator":91}],67:[function(e,_,c){"use strict";c.__esModule=!0;var u=e("../core-js/symbol/iterator"),t=d(u),y=e("../core-js/symbol"),f=d(y),h=typeof f.default=="function"&&typeof t.default=="symbol"?function(n){return typeof n}:function(n){return n&&typeof f.default=="function"&&n.constructor===f.default&&n!==f.default.prototype?"symbol":typeof n};function d(n){return n&&n.__esModule?n:{default:n}}c.default=typeof f.default=="function"&&h(t.default)==="symbol"?function(n){return typeof n=="undefined"?"undefined":h(n)}:function(n){return n&&typeof f.default=="function"&&n.constructor===f.default&&n!==f.default.prototype?"symbol":typeof n=="undefined"?"undefined":h(n)}},{"../core-js/symbol":64,"../core-js/symbol/iterator":66}],68:[function(e,_,c){_.exports=e("regenerator-runtime")},{"regenerator-runtime":226}],69:[function(e,_,c){"use strict";c.byteLength=l,c.toByteArray=i,c.fromByteArray=m;for(var u=[],t=[],y=typeof Uint8Array!="undefined"?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h=0,d=f.length;h<d;++h)u[h]=f[h],t[f.charCodeAt(h)]=h;t["-".charCodeAt(0)]=62,t["_".charCodeAt(0)]=63;function n(g){var A=g.length;if(A%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var T=g.indexOf("=");T===-1&&(T=A);var x=T===A?0:4-T%4;return[T,x]}function l(g){var A=n(g),T=A[0],x=A[1];return(T+x)*3/4-x}function s(g,A,T){return(A+T)*3/4-T}function i(g){var A,T=n(g),x=T[0],E=T[1],j=new y(s(g,x,E)),O=0,S=E>0?x-4:x,w;for(w=0;w<S;w+=4)A=t[g.charCodeAt(w)]<<18|t[g.charCodeAt(w+1)]<<12|t[g.charCodeAt(w+2)]<<6|t[g.charCodeAt(w+3)],j[O++]=A>>16&255,j[O++]=A>>8&255,j[O++]=A&255;return E===2&&(A=t[g.charCodeAt(w)]<<2|t[g.charCodeAt(w+1)]>>4,j[O++]=A&255),E===1&&(A=t[g.charCodeAt(w)]<<10|t[g.charCodeAt(w+1)]<<4|t[g.charCodeAt(w+2)]>>2,j[O++]=A>>8&255,j[O++]=A&255),j}function o(g){return u[g>>18&63]+u[g>>12&63]+u[g>>6&63]+u[g&63]}function b(g,A,T){for(var x,E=[],j=A;j<T;j+=3)x=(g[j]<<16&16711680)+(g[j+1]<<8&65280)+(g[j+2]&255),E.push(o(x));return E.join("")}function m(g){for(var A,T=g.length,x=T%3,E=[],j=16383,O=0,S=T-x;O<S;O+=j)E.push(b(g,O,O+j>S?S:O+j));return x===1?(A=g[T-1],E.push(u[A>>2]+u[A<<4&63]+"==")):x===2&&(A=(g[T-2]<<8)+g[T-1],E.push(u[A>>10]+u[A>>4&63]+u[A<<2&63]+"=")),E.join("")}},{}],70:[function(e,_,c){/*!
|
||
* Bowser - a browser detector
|
||
* https://github.com/ded/bowser
|
||
* MIT License | (c) Dustin Diaz 2015
|
||
*/!function(u,t,y){typeof _!="undefined"&&_.exports?_.exports=y():typeof define=="function"&&define.amd?define(t,y):u[t]=y()}(this,"bowser",function(){var u=!0;function t(s){function i(F){var G=s.match(F);return G&&G.length>1&&G[1]||""}function o(F){var G=s.match(F);return G&&G.length>1&&G[2]||""}var b=i(/(ipod|iphone|ipad)/i).toLowerCase(),m=/like android/i.test(s),g=!m&&/android/i.test(s),A=/nexus\s*[0-6]\s*/i.test(s),T=!A&&/nexus\s*[0-9]+/i.test(s),x=/CrOS/.test(s),E=/silk/i.test(s),j=/sailfish/i.test(s),O=/tizen/i.test(s),S=/(web|hpw)(o|0)s/i.test(s),w=/windows phone/i.test(s),p=/SamsungBrowser/i.test(s),M=!w&&/windows/i.test(s),C=!b&&!E&&/macintosh/i.test(s),R=!g&&!j&&!O&&!S&&/linux/i.test(s),I=o(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),H=i(/version\/(\d+(\.\d+)?)/i),W=/tablet/i.test(s)&&!/tablet pc/i.test(s),D=!W&&/[^-]mobi/i.test(s),ae=/xbox/i.test(s),V;/opera/i.test(s)?V={name:"Opera",opera:u,version:H||i(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(s)?V={name:"Opera",opera:u,version:i(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||H}:/SamsungBrowser/i.test(s)?V={name:"Samsung Internet for Android",samsungBrowser:u,version:H||i(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(s)?V={name:"NAVER Whale browser",whale:u,version:i(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(s)?V={name:"MZ Browser",mzbrowser:u,version:i(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(s)?V={name:"Opera Coast",coast:u,version:H||i(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(s)?V={name:"Focus",focus:u,version:i(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(s)?V={name:"Yandex Browser",yandexbrowser:u,version:H||i(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(s)?V={name:"UC Browser",ucbrowser:u,version:i(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(s)?V={name:"Maxthon",maxthon:u,version:i(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(s)?V={name:"Epiphany",epiphany:u,version:i(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(s)?V={name:"Puffin",puffin:u,version:i(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(s)?V={name:"Sleipnir",sleipnir:u,version:i(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(s)?V={name:"K-Meleon",kMeleon:u,version:i(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:w?(V={name:"Windows Phone",osname:"Windows Phone",windowsphone:u},I?(V.msedge=u,V.version=I):(V.msie=u,V.version=i(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(s)?V={name:"Internet Explorer",msie:u,version:i(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:x?V={name:"Chrome",osname:"Chrome OS",chromeos:u,chromeBook:u,chrome:u,version:i(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(s)?V={name:"Microsoft Edge",msedge:u,version:I}:/vivaldi/i.test(s)?V={name:"Vivaldi",vivaldi:u,version:i(/vivaldi\/(\d+(\.\d+)?)/i)||H}:j?V={name:"Sailfish",osname:"Sailfish OS",sailfish:u,version:i(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(s)?V={name:"SeaMonkey",seamonkey:u,version:i(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(s)?(V={name:"Firefox",firefox:u,version:i(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(s)&&(V.firefoxos=u,V.osname="Firefox OS")):E?V={name:"Amazon Silk",silk:u,version:i(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(s)?V={name:"PhantomJS",phantom:u,version:i(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(s)?V={name:"SlimerJS",slimer:u,version:i(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(s)||/rim\stablet/i.test(s)?V={name:"BlackBerry",osname:"BlackBerry OS",blackberry:u,version:H||i(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:S?(V={name:"WebOS",osname:"WebOS",webos:u,version:H||i(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(s)&&(V.touchpad=u)):/bada/i.test(s)?V={name:"Bada",osname:"Bada",bada:u,version:i(/dolfin\/(\d+(\.\d+)?)/i)}:O?V={name:"Tizen",osname:"Tizen",tizen:u,version:i(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||H}:/qupzilla/i.test(s)?V={name:"QupZilla",qupzilla:u,version:i(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||H}:/chromium/i.test(s)?V={name:"Chromium",chromium:u,version:i(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||H}:/chrome|crios|crmo/i.test(s)?V={name:"Chrome",chrome:u,version:i(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:g?V={name:"Android",version:H}:/safari|applewebkit/i.test(s)?(V={name:"Safari",safari:u},H&&(V.version=H)):b?(V={name:b=="iphone"?"iPhone":b=="ipad"?"iPad":"iPod"},H&&(V.version=H)):/googlebot/i.test(s)?V={name:"Googlebot",googlebot:u,version:i(/googlebot\/(\d+(\.\d+))/i)||H}:V={name:i(/^(.*)\/(.*) /),version:o(/^(.*)\/(.*) /)},!V.msedge&&/(apple)?webkit/i.test(s)?(/(apple)?webkit\/537\.36/i.test(s)?(V.name=V.name||"Blink",V.blink=u):(V.name=V.name||"Webkit",V.webkit=u),!V.version&&H&&(V.version=H)):!V.opera&&/gecko\//i.test(s)&&(V.name=V.name||"Gecko",V.gecko=u,V.version=V.version||i(/gecko\/(\d+(\.\d+)?)/i)),!V.windowsphone&&(g||V.silk)?(V.android=u,V.osname="Android"):!V.windowsphone&&b?(V[b]=u,V.ios=u,V.osname="iOS"):C?(V.mac=u,V.osname="macOS"):ae?(V.xbox=u,V.osname="Xbox"):M?(V.windows=u,V.osname="Windows"):R&&(V.linux=u,V.osname="Linux");function te(F){switch(F){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}var $="";V.windows?$=te(i(/Windows ((NT|XP)( \d\d?.\d)?)/i)):V.windowsphone?$=i(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):V.mac?($=i(/Mac OS X (\d+([_\.\s]\d+)*)/i),$=$.replace(/[_\s]/g,".")):b?($=i(/os (\d+([_\s]\d+)*) like mac os x/i),$=$.replace(/[_\s]/g,".")):g?$=i(/android[ \/-](\d+(\.\d+)*)/i):V.webos?$=i(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):V.blackberry?$=i(/rim\stablet\sos\s(\d+(\.\d+)*)/i):V.bada?$=i(/bada\/(\d+(\.\d+)*)/i):V.tizen&&($=i(/tizen[\/\s](\d+(\.\d+)*)/i)),$&&(V.osversion=$);var P=!V.windows&&$.split(".")[0];return W||T||b=="ipad"||g&&(P==3||P>=4&&!D)||V.silk?V.tablet=u:(D||b=="iphone"||b=="ipod"||g||A||V.blackberry||V.webos||V.bada)&&(V.mobile=u),V.msedge||V.msie&&V.version>=10||V.yandexbrowser&&V.version>=15||V.vivaldi&&V.version>=1||V.chrome&&V.version>=20||V.samsungBrowser&&V.version>=4||V.whale&&d([V.version,"1.0"])===1||V.mzbrowser&&d([V.version,"6.0"])===1||V.focus&&d([V.version,"1.0"])===1||V.firefox&&V.version>=20||V.safari&&V.version>=6||V.opera&&V.version>=10||V.ios&&V.osversion&&V.osversion.split(".")[0]>=6||V.blackberry&&V.version>=10.1||V.chromium&&V.version>=20?V.a=u:V.msie&&V.version<10||V.chrome&&V.version<20||V.firefox&&V.version<20||V.safari&&V.version<6||V.opera&&V.version<10||V.ios&&V.osversion&&V.osversion.split(".")[0]<6||V.chromium&&V.version<20?V.c=u:V.x=u,V}var y=t(typeof navigator!="undefined"&&navigator.userAgent||"");y.test=function(s){for(var i=0;i<s.length;++i){var o=s[i];if(typeof o=="string"&&o in y)return!0}return!1};function f(s){return s.split(".").length}function h(s,i){var o=[],b;if(Array.prototype.map)return Array.prototype.map.call(s,i);for(b=0;b<s.length;b++)o.push(i(s[b]));return o}function d(s){for(var i=Math.max(f(s[0]),f(s[1])),o=h(s,function(b){var m=i-f(b);return b=b+new Array(m+1).join(".0"),h(b.split("."),function(g){return new Array(20-g.length).join("0")+g}).reverse()});--i>=0;){if(o[0][i]>o[1][i])return 1;if(o[0][i]===o[1][i]){if(i===0)return 0}else return-1}}function n(s,i,o){var b=y;typeof i=="string"&&(o=i,i=void 0),i===void 0&&(i=!1),o&&(b=t(o));var m=""+b.version;for(var g in s)if(s.hasOwnProperty(g)&&b[g]){if(typeof s[g]!="string")throw new Error("Browser version in the minVersion map should be a string: "+g+": "+String(s));return d([m,s[g]])<0}return i}function l(s,i,o){return!n(s,i,o)}return y.isUnsupportedBrowser=n,y.compareVersions=d,y.check=l,y._detect=t,y.detect=t,y})},{}],71:[function(e,_,c){},{}],72:[function(e,_,c){var u=e("buffer").Buffer,t=u.isEncoding||function(l){switch(l&&l.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function y(l){if(l&&!t(l))throw new Error("Unknown encoding: "+l)}var f=c.StringDecoder=function(l){this.encoding=(l||"utf8").toLowerCase().replace(/[-_]/,""),y(l);switch(this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=d;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=n;break;default:this.write=h;return}this.charBuffer=new u(6),this.charReceived=0,this.charLength=0};f.prototype.write=function(l){for(var s="";this.charLength;){var i=l.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:l.length;if(l.copy(this.charBuffer,this.charReceived,0,i),this.charReceived+=i,this.charReceived<this.charLength)return"";l=l.slice(i,l.length),s=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var b=s.charCodeAt(s.length-1);if(b>=55296&&b<=56319){this.charLength+=this.surrogateSize,s="";continue}if(this.charReceived=this.charLength=0,l.length===0)return s;break}this.detectIncompleteChar(l);var o=l.length;this.charLength&&(l.copy(this.charBuffer,0,l.length-this.charReceived,o),o-=this.charReceived),s+=l.toString(this.encoding,0,o);var o=s.length-1,b=s.charCodeAt(o);if(b>=55296&&b<=56319){var m=this.surrogateSize;return this.charLength+=m,this.charReceived+=m,this.charBuffer.copy(this.charBuffer,m,0,m),l.copy(this.charBuffer,0,0,m),s.substring(0,o)}return s},f.prototype.detectIncompleteChar=function(l){for(var s=l.length>=3?3:l.length;s>0;s--){var i=l[l.length-s];if(s==1&&i>>5==6){this.charLength=2;break}if(s<=2&&i>>4==14){this.charLength=3;break}if(s<=3&&i>>3==30){this.charLength=4;break}}this.charReceived=s},f.prototype.end=function(l){var s="";if(l&&l.length&&(s=this.write(l)),this.charReceived){var i=this.charReceived,o=this.charBuffer,b=this.encoding;s+=o.slice(0,i).toString(b)}return s};function h(l){return l.toString(this.encoding)}function d(l){this.charReceived=l.length%2,this.charLength=this.charReceived?2:0}function n(l){this.charReceived=l.length%3,this.charLength=this.charReceived?3:0}},{buffer:73}],73:[function(e,_,c){(function(u,t){/*!
|
||
* The buffer module from node.js, for the browser.
|
||
*
|
||
* @author Feross Aboukhadijeh <http://feross.org>
|
||
* @license MIT
|
||
*/"use strict";var y=e("base64-js"),f=e("ieee754"),h=e("isarray");c.Buffer=t,c.SlowBuffer=E,c.INSPECT_MAX_BYTES=50,t.TYPED_ARRAY_SUPPORT=u.TYPED_ARRAY_SUPPORT!==void 0?u.TYPED_ARRAY_SUPPORT:d(),c.kMaxLength=n();function d(){try{var N=new Uint8Array(1);return N.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},N.foo()===42&&typeof N.subarray=="function"&&N.subarray(1,1).byteLength===0}catch(v){return!1}}function n(){return t.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(N,v){if(n()<v)throw new RangeError("Invalid typed array length");return t.TYPED_ARRAY_SUPPORT?(N=new Uint8Array(v),N.__proto__=t.prototype):(N===null&&(N=new t(v)),N.length=v),N}function t(N,v,a){if(!t.TYPED_ARRAY_SUPPORT&&!(this instanceof t))return new t(N,v,a);if(typeof N=="number"){if(typeof v=="string")throw new Error("If encoding is specified then the first argument must be a string");return b(this,N)}return s(this,N,v,a)}t.poolSize=8192,t._augment=function(N){return N.__proto__=t.prototype,N};function s(N,v,a,r){if(typeof v=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&v instanceof ArrayBuffer?A(N,v,a,r):typeof v=="string"?m(N,v,a):T(N,v)}t.from=function(N,v,a){return s(null,N,v,a)},t.TYPED_ARRAY_SUPPORT&&(t.prototype.__proto__=Uint8Array.prototype,t.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&t[Symbol.species]===t&&Object.defineProperty(t,Symbol.species,{value:null,configurable:!0}));function i(N){if(typeof N!="number")throw new TypeError('"size" argument must be a number');if(N<0)throw new RangeError('"size" argument must not be negative')}function o(N,v,a,r){return i(v),v<=0?l(N,v):a!==void 0?typeof r=="string"?l(N,v).fill(a,r):l(N,v).fill(a):l(N,v)}t.alloc=function(N,v,a){return o(null,N,v,a)};function b(N,v){if(i(v),N=l(N,v<0?0:x(v)|0),!t.TYPED_ARRAY_SUPPORT)for(var a=0;a<v;++a)N[a]=0;return N}t.allocUnsafe=function(N){return b(null,N)},t.allocUnsafeSlow=function(N){return b(null,N)};function m(N,v,a){if((typeof a!="string"||a==="")&&(a="utf8"),!t.isEncoding(a))throw new TypeError('"encoding" must be a valid string encoding');var r=j(v,a)|0;N=l(N,r);var L=N.write(v,a);return L!==r&&(N=N.slice(0,L)),N}function g(N,v){var a=v.length<0?0:x(v.length)|0;N=l(N,a);for(var r=0;r<a;r+=1)N[r]=v[r]&255;return N}function A(N,v,a,r){if(v.byteLength,a<0||v.byteLength<a)throw new RangeError("'offset' is out of bounds");if(v.byteLength<a+(r||0))throw new RangeError("'length' is out of bounds");return a===void 0&&r===void 0?v=new Uint8Array(v):r===void 0?v=new Uint8Array(v,a):v=new Uint8Array(v,a,r),t.TYPED_ARRAY_SUPPORT?(N=v,N.__proto__=t.prototype):N=g(N,v),N}function T(N,v){if(t.isBuffer(v)){var a=x(v.length)|0;return N=l(N,a),N.length===0||v.copy(N,0,0,a),N}if(v){if(typeof ArrayBuffer!="undefined"&&v.buffer instanceof ArrayBuffer||"length"in v)return typeof v.length!="number"||Y(v.length)?l(N,0):g(N,v);if(v.type==="Buffer"&&h(v.data))return g(N,v.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function x(N){if(N>=n())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n().toString(16)+" bytes");return N|0}function E(N){return+N!=N&&(N=0),t.alloc(+N)}t.isBuffer=function(v){return!!(v!=null&&v._isBuffer)},t.compare=function(v,a){if(!t.isBuffer(v)||!t.isBuffer(a))throw new TypeError("Arguments must be Buffers");if(v===a)return 0;for(var r=v.length,L=a.length,k=0,z=Math.min(r,L);k<z;++k)if(v[k]!==a[k]){r=v[k],L=a[k];break}return r<L?-1:L<r?1:0},t.isEncoding=function(v){switch(String(v).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},t.concat=function(v,a){if(!h(v))throw new TypeError('"list" argument must be an Array of Buffers');if(v.length===0)return t.alloc(0);var r;if(a===void 0)for(a=0,r=0;r<v.length;++r)a+=v[r].length;var L=t.allocUnsafe(a),k=0;for(r=0;r<v.length;++r){var z=v[r];if(!t.isBuffer(z))throw new TypeError('"list" argument must be an Array of Buffers');z.copy(L,k),k+=z.length}return L};function j(N,v){if(t.isBuffer(N))return N.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(N)||N instanceof ArrayBuffer))return N.byteLength;typeof N!="string"&&(N=""+N);var a=N.length;if(a===0)return 0;for(var r=!1;;)switch(v){case"ascii":case"latin1":case"binary":return a;case"utf8":case"utf-8":case void 0:return Q(N).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return a*2;case"hex":return a>>>1;case"base64":return X(N).length;default:if(r)return Q(N).length;v=(""+v).toLowerCase(),r=!0}}t.byteLength=j;function O(N,v,a){var r=!1;if((v===void 0||v<0)&&(v=0),v>this.length)return"";if((a===void 0||a>this.length)&&(a=this.length),a<=0)return"";if(a>>>=0,v>>>=0,a<=v)return"";for(N||(N="utf8");;)switch(N){case"hex":return F(this,v,a);case"utf8":case"utf-8":return ae(this,v,a);case"ascii":return $(this,v,a);case"latin1":case"binary":return P(this,v,a);case"base64":return D(this,v,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G(this,v,a);default:if(r)throw new TypeError("Unknown encoding: "+N);N=(N+"").toLowerCase(),r=!0}}t.prototype._isBuffer=!0;function S(N,v,a){var r=N[v];N[v]=N[a],N[a]=r}t.prototype.swap16=function(){var v=this.length;if(v%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var a=0;a<v;a+=2)S(this,a,a+1);return this},t.prototype.swap32=function(){var v=this.length;if(v%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var a=0;a<v;a+=4)S(this,a,a+3),S(this,a+1,a+2);return this},t.prototype.swap64=function(){var v=this.length;if(v%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var a=0;a<v;a+=8)S(this,a,a+7),S(this,a+1,a+6),S(this,a+2,a+5),S(this,a+3,a+4);return this},t.prototype.toString=function(){var v=this.length|0;return v===0?"":arguments.length===0?ae(this,0,v):O.apply(this,arguments)},t.prototype.equals=function(v){if(!t.isBuffer(v))throw new TypeError("Argument must be a Buffer");return this===v?!0:t.compare(this,v)===0},t.prototype.inspect=function(){var v="",a=c.INSPECT_MAX_BYTES;return this.length>0&&(v=this.toString("hex",0,a).match(/.{2}/g).join(" "),this.length>a&&(v+=" ... ")),"<Buffer "+v+">"},t.prototype.compare=function(v,a,r,L,k){if(!t.isBuffer(v))throw new TypeError("Argument must be a Buffer");if(a===void 0&&(a=0),r===void 0&&(r=v?v.length:0),L===void 0&&(L=0),k===void 0&&(k=this.length),a<0||r>v.length||L<0||k>this.length)throw new RangeError("out of range index");if(L>=k&&a>=r)return 0;if(L>=k)return-1;if(a>=r)return 1;if(a>>>=0,r>>>=0,L>>>=0,k>>>=0,this===v)return 0;for(var z=k-L,se=r-a,pe=Math.min(z,se),ge=this.slice(L,k),me=v.slice(a,r),ve=0;ve<pe;++ve)if(ge[ve]!==me[ve]){z=ge[ve],se=me[ve];break}return z<se?-1:se<z?1:0};function w(N,v,a,r,L){if(N.length===0)return-1;if(typeof a=="string"?(r=a,a=0):a>2147483647?a=2147483647:a<-2147483648&&(a=-2147483648),a=+a,isNaN(a)&&(a=L?0:N.length-1),a<0&&(a=N.length+a),a>=N.length){if(L)return-1;a=N.length-1}else if(a<0)if(L)a=0;else return-1;if(typeof v=="string"&&(v=t.from(v,r)),t.isBuffer(v))return v.length===0?-1:p(N,v,a,r,L);if(typeof v=="number")return v=v&255,t.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?L?Uint8Array.prototype.indexOf.call(N,v,a):Uint8Array.prototype.lastIndexOf.call(N,v,a):p(N,[v],a,r,L);throw new TypeError("val must be string, number or Buffer")}function p(N,v,a,r,L){var k=1,z=N.length,se=v.length;if(r!==void 0&&(r=String(r).toLowerCase(),r==="ucs2"||r==="ucs-2"||r==="utf16le"||r==="utf-16le")){if(N.length<2||v.length<2)return-1;k=2,z/=2,se/=2,a/=2}function pe(Oe,ue){return k===1?Oe[ue]:Oe.readUInt16BE(ue*k)}var ge;if(L){var me=-1;for(ge=a;ge<z;ge++)if(pe(N,ge)===pe(v,me===-1?0:ge-me)){if(me===-1&&(me=ge),ge-me+1===se)return me*k}else me!==-1&&(ge-=ge-me),me=-1}else for(a+se>z&&(a=z-se),ge=a;ge>=0;ge--){for(var ve=!0,be=0;be<se;be++)if(pe(N,ge+be)!==pe(v,be)){ve=!1;break}if(ve)return ge}return-1}t.prototype.includes=function(v,a,r){return this.indexOf(v,a,r)!==-1},t.prototype.indexOf=function(v,a,r){return w(this,v,a,r,!0)},t.prototype.lastIndexOf=function(v,a,r){return w(this,v,a,r,!1)};function M(N,v,a,r){a=Number(a)||0;var L=N.length-a;r?(r=Number(r),r>L&&(r=L)):r=L;var k=v.length;if(k%2!==0)throw new TypeError("Invalid hex string");r>k/2&&(r=k/2);for(var z=0;z<r;++z){var se=parseInt(v.substr(z*2,2),16);if(isNaN(se))return z;N[a+z]=se}return z}function C(N,v,a,r){return B(Q(v,N.length-a),N,a,r)}function R(N,v,a,r){return B(ee(v),N,a,r)}function I(N,v,a,r){return R(N,v,a,r)}function H(N,v,a,r){return B(X(v),N,a,r)}function W(N,v,a,r){return B(ce(v,N.length-a),N,a,r)}t.prototype.write=function(v,a,r,L){if(a===void 0)L="utf8",r=this.length,a=0;else if(r===void 0&&typeof a=="string")L=a,r=this.length,a=0;else if(isFinite(a))a=a|0,isFinite(r)?(r=r|0,L===void 0&&(L="utf8")):(L=r,r=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var k=this.length-a;if((r===void 0||r>k)&&(r=k),v.length>0&&(r<0||a<0)||a>this.length)throw new RangeError("Attempt to write outside buffer bounds");L||(L="utf8");for(var z=!1;;)switch(L){case"hex":return M(this,v,a,r);case"utf8":case"utf-8":return C(this,v,a,r);case"ascii":return R(this,v,a,r);case"latin1":case"binary":return I(this,v,a,r);case"base64":return H(this,v,a,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return W(this,v,a,r);default:if(z)throw new TypeError("Unknown encoding: "+L);L=(""+L).toLowerCase(),z=!0}},t.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function D(N,v,a){return v===0&&a===N.length?y.fromByteArray(N):y.fromByteArray(N.slice(v,a))}function ae(N,v,a){a=Math.min(N.length,a);for(var r=[],L=v;L<a;){var k=N[L],z=null,se=k>239?4:k>223?3:k>191?2:1;if(L+se<=a){var pe,ge,me,ve;switch(se){case 1:k<128&&(z=k);break;case 2:pe=N[L+1],(pe&192)===128&&(ve=(k&31)<<6|pe&63,ve>127&&(z=ve));break;case 3:pe=N[L+1],ge=N[L+2],(pe&192)===128&&(ge&192)===128&&(ve=(k&15)<<12|(pe&63)<<6|ge&63,ve>2047&&(ve<55296||ve>57343)&&(z=ve));break;case 4:pe=N[L+1],ge=N[L+2],me=N[L+3],(pe&192)===128&&(ge&192)===128&&(me&192)===128&&(ve=(k&15)<<18|(pe&63)<<12|(ge&63)<<6|me&63,ve>65535&&ve<1114112&&(z=ve))}}z===null?(z=65533,se=1):z>65535&&(z-=65536,r.push(z>>>10&1023|55296),z=56320|z&1023),r.push(z),L+=se}return te(r)}var V=4096;function te(N){var v=N.length;if(v<=V)return String.fromCharCode.apply(String,N);for(var a="",r=0;r<v;)a+=String.fromCharCode.apply(String,N.slice(r,r+=V));return a}function $(N,v,a){var r="";a=Math.min(N.length,a);for(var L=v;L<a;++L)r+=String.fromCharCode(N[L]&127);return r}function P(N,v,a){var r="";a=Math.min(N.length,a);for(var L=v;L<a;++L)r+=String.fromCharCode(N[L]);return r}function F(N,v,a){var r=N.length;(!v||v<0)&&(v=0),(!a||a<0||a>r)&&(a=r);for(var L="",k=v;k<a;++k)L+=q(N[k]);return L}function G(N,v,a){for(var r=N.slice(v,a),L="",k=0;k<r.length;k+=2)L+=String.fromCharCode(r[k]+r[k+1]*256);return L}t.prototype.slice=function(v,a){var r=this.length;v=~~v,a=a===void 0?r:~~a,v<0?(v+=r,v<0&&(v=0)):v>r&&(v=r),a<0?(a+=r,a<0&&(a=0)):a>r&&(a=r),a<v&&(a=v);var L;if(t.TYPED_ARRAY_SUPPORT)L=this.subarray(v,a),L.__proto__=t.prototype;else{var k=a-v;L=new t(k,void 0);for(var z=0;z<k;++z)L[z]=this[z+v]}return L};function J(N,v,a){if(N%1!==0||N<0)throw new RangeError("offset is not uint");if(N+v>a)throw new RangeError("Trying to access beyond buffer length")}t.prototype.readUIntLE=function(v,a,r){v=v|0,a=a|0,r||J(v,a,this.length);for(var L=this[v],k=1,z=0;++z<a&&(k*=256);)L+=this[v+z]*k;return L},t.prototype.readUIntBE=function(v,a,r){v=v|0,a=a|0,r||J(v,a,this.length);for(var L=this[v+--a],k=1;a>0&&(k*=256);)L+=this[v+--a]*k;return L},t.prototype.readUInt8=function(v,a){return a||J(v,1,this.length),this[v]},t.prototype.readUInt16LE=function(v,a){return a||J(v,2,this.length),this[v]|this[v+1]<<8},t.prototype.readUInt16BE=function(v,a){return a||J(v,2,this.length),this[v]<<8|this[v+1]},t.prototype.readUInt32LE=function(v,a){return a||J(v,4,this.length),(this[v]|this[v+1]<<8|this[v+2]<<16)+this[v+3]*16777216},t.prototype.readUInt32BE=function(v,a){return a||J(v,4,this.length),this[v]*16777216+(this[v+1]<<16|this[v+2]<<8|this[v+3])},t.prototype.readIntLE=function(v,a,r){v=v|0,a=a|0,r||J(v,a,this.length);for(var L=this[v],k=1,z=0;++z<a&&(k*=256);)L+=this[v+z]*k;return k*=128,L>=k&&(L-=Math.pow(2,8*a)),L},t.prototype.readIntBE=function(v,a,r){v=v|0,a=a|0,r||J(v,a,this.length);for(var L=a,k=1,z=this[v+--L];L>0&&(k*=256);)z+=this[v+--L]*k;return k*=128,z>=k&&(z-=Math.pow(2,8*a)),z},t.prototype.readInt8=function(v,a){return a||J(v,1,this.length),this[v]&128?(255-this[v]+1)*-1:this[v]},t.prototype.readInt16LE=function(v,a){a||J(v,2,this.length);var r=this[v]|this[v+1]<<8;return r&32768?r|4294901760:r},t.prototype.readInt16BE=function(v,a){a||J(v,2,this.length);var r=this[v+1]|this[v]<<8;return r&32768?r|4294901760:r},t.prototype.readInt32LE=function(v,a){return a||J(v,4,this.length),this[v]|this[v+1]<<8|this[v+2]<<16|this[v+3]<<24},t.prototype.readInt32BE=function(v,a){return a||J(v,4,this.length),this[v]<<24|this[v+1]<<16|this[v+2]<<8|this[v+3]},t.prototype.readFloatLE=function(v,a){return a||J(v,4,this.length),f.read(this,v,!0,23,4)},t.prototype.readFloatBE=function(v,a){return a||J(v,4,this.length),f.read(this,v,!1,23,4)},t.prototype.readDoubleLE=function(v,a){return a||J(v,8,this.length),f.read(this,v,!0,52,8)},t.prototype.readDoubleBE=function(v,a){return a||J(v,8,this.length),f.read(this,v,!1,52,8)};function U(N,v,a,r,L,k){if(!t.isBuffer(N))throw new TypeError('"buffer" argument must be a Buffer instance');if(v>L||v<k)throw new RangeError('"value" argument is out of bounds');if(a+r>N.length)throw new RangeError("Index out of range")}t.prototype.writeUIntLE=function(v,a,r,L){if(v=+v,a=a|0,r=r|0,!L){var k=Math.pow(2,8*r)-1;U(this,v,a,r,k,0)}var z=1,se=0;for(this[a]=v&255;++se<r&&(z*=256);)this[a+se]=v/z&255;return a+r},t.prototype.writeUIntBE=function(v,a,r,L){if(v=+v,a=a|0,r=r|0,!L){var k=Math.pow(2,8*r)-1;U(this,v,a,r,k,0)}var z=r-1,se=1;for(this[a+z]=v&255;--z>=0&&(se*=256);)this[a+z]=v/se&255;return a+r},t.prototype.writeUInt8=function(v,a,r){return v=+v,a=a|0,r||U(this,v,a,1,255,0),t.TYPED_ARRAY_SUPPORT||(v=Math.floor(v)),this[a]=v&255,a+1};function Z(N,v,a,r){v<0&&(v=65535+v+1);for(var L=0,k=Math.min(N.length-a,2);L<k;++L)N[a+L]=(v&255<<8*(r?L:1-L))>>>(r?L:1-L)*8}t.prototype.writeUInt16LE=function(v,a,r){return v=+v,a=a|0,r||U(this,v,a,2,65535,0),t.TYPED_ARRAY_SUPPORT?(this[a]=v&255,this[a+1]=v>>>8):Z(this,v,a,!0),a+2},t.prototype.writeUInt16BE=function(v,a,r){return v=+v,a=a|0,r||U(this,v,a,2,65535,0),t.TYPED_ARRAY_SUPPORT?(this[a]=v>>>8,this[a+1]=v&255):Z(this,v,a,!1),a+2};function ie(N,v,a,r){v<0&&(v=4294967295+v+1);for(var L=0,k=Math.min(N.length-a,4);L<k;++L)N[a+L]=v>>>(r?L:3-L)*8&255}t.prototype.writeUInt32LE=function(v,a,r){return v=+v,a=a|0,r||U(this,v,a,4,4294967295,0),t.TYPED_ARRAY_SUPPORT?(this[a+3]=v>>>24,this[a+2]=v>>>16,this[a+1]=v>>>8,this[a]=v&255):ie(this,v,a,!0),a+4},t.prototype.writeUInt32BE=function(v,a,r){return v=+v,a=a|0,r||U(this,v,a,4,4294967295,0),t.TYPED_ARRAY_SUPPORT?(this[a]=v>>>24,this[a+1]=v>>>16,this[a+2]=v>>>8,this[a+3]=v&255):ie(this,v,a,!1),a+4},t.prototype.writeIntLE=function(v,a,r,L){if(v=+v,a=a|0,!L){var k=Math.pow(2,8*r-1);U(this,v,a,r,k-1,-k)}var z=0,se=1,pe=0;for(this[a]=v&255;++z<r&&(se*=256);)v<0&&pe===0&&this[a+z-1]!==0&&(pe=1),this[a+z]=(v/se>>0)-pe&255;return a+r},t.prototype.writeIntBE=function(v,a,r,L){if(v=+v,a=a|0,!L){var k=Math.pow(2,8*r-1);U(this,v,a,r,k-1,-k)}var z=r-1,se=1,pe=0;for(this[a+z]=v&255;--z>=0&&(se*=256);)v<0&&pe===0&&this[a+z+1]!==0&&(pe=1),this[a+z]=(v/se>>0)-pe&255;return a+r},t.prototype.writeInt8=function(v,a,r){return v=+v,a=a|0,r||U(this,v,a,1,127,-128),t.TYPED_ARRAY_SUPPORT||(v=Math.floor(v)),v<0&&(v=255+v+1),this[a]=v&255,a+1},t.prototype.writeInt16LE=function(v,a,r){return v=+v,a=a|0,r||U(this,v,a,2,32767,-32768),t.TYPED_ARRAY_SUPPORT?(this[a]=v&255,this[a+1]=v>>>8):Z(this,v,a,!0),a+2},t.prototype.writeInt16BE=function(v,a,r){return v=+v,a=a|0,r||U(this,v,a,2,32767,-32768),t.TYPED_ARRAY_SUPPORT?(this[a]=v>>>8,this[a+1]=v&255):Z(this,v,a,!1),a+2},t.prototype.writeInt32LE=function(v,a,r){return v=+v,a=a|0,r||U(this,v,a,4,2147483647,-2147483648),t.TYPED_ARRAY_SUPPORT?(this[a]=v&255,this[a+1]=v>>>8,this[a+2]=v>>>16,this[a+3]=v>>>24):ie(this,v,a,!0),a+4},t.prototype.writeInt32BE=function(v,a,r){return v=+v,a=a|0,r||U(this,v,a,4,2147483647,-2147483648),v<0&&(v=4294967295+v+1),t.TYPED_ARRAY_SUPPORT?(this[a]=v>>>24,this[a+1]=v>>>16,this[a+2]=v>>>8,this[a+3]=v&255):ie(this,v,a,!1),a+4};function re(N,v,a,r,L,k){if(a+r>N.length)throw new RangeError("Index out of range");if(a<0)throw new RangeError("Index out of range")}function le(N,v,a,r,L){return L||re(N,v,a,4,34028234663852886e22,-34028234663852886e22),f.write(N,v,a,r,23,4),a+4}t.prototype.writeFloatLE=function(v,a,r){return le(this,v,a,!0,r)},t.prototype.writeFloatBE=function(v,a,r){return le(this,v,a,!1,r)};function de(N,v,a,r,L){return L||re(N,v,a,8,17976931348623157e292,-17976931348623157e292),f.write(N,v,a,r,52,8),a+8}t.prototype.writeDoubleLE=function(v,a,r){return de(this,v,a,!0,r)},t.prototype.writeDoubleBE=function(v,a,r){return de(this,v,a,!1,r)},t.prototype.copy=function(v,a,r,L){if(r||(r=0),!L&&L!==0&&(L=this.length),a>=v.length&&(a=v.length),a||(a=0),L>0&&L<r&&(L=r),L===r)return 0;if(v.length===0||this.length===0)return 0;if(a<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(L<0)throw new RangeError("sourceEnd out of bounds");L>this.length&&(L=this.length),v.length-a<L-r&&(L=v.length-a+r);var k=L-r,z;if(this===v&&r<a&&a<L)for(z=k-1;z>=0;--z)v[z+a]=this[z+r];else if(k<1e3||!t.TYPED_ARRAY_SUPPORT)for(z=0;z<k;++z)v[z+a]=this[z+r];else Uint8Array.prototype.set.call(v,this.subarray(r,r+k),a);return k},t.prototype.fill=function(v,a,r,L){if(typeof v=="string"){if(typeof a=="string"?(L=a,a=0,r=this.length):typeof r=="string"&&(L=r,r=this.length),v.length===1){var k=v.charCodeAt(0);k<256&&(v=k)}if(L!==void 0&&typeof L!="string")throw new TypeError("encoding must be a string");if(typeof L=="string"&&!t.isEncoding(L))throw new TypeError("Unknown encoding: "+L)}else typeof v=="number"&&(v=v&255);if(a<0||this.length<a||this.length<r)throw new RangeError("Out of range index");if(r<=a)return this;a=a>>>0,r=r===void 0?this.length:r>>>0,v||(v=0);var z;if(typeof v=="number")for(z=a;z<r;++z)this[z]=v;else{var se=t.isBuffer(v)?v:Q(new t(v,L).toString()),pe=se.length;for(z=0;z<r-a;++z)this[z+a]=se[z%pe]}return this};var K=/[^+\/0-9A-Za-z-_]/g;function Se(N){if(N=oe(N).replace(K,""),N.length<2)return"";for(;N.length%4!==0;)N=N+"=";return N}function oe(N){return N.trim?N.trim():N.replace(/^\s+|\s+$/g,"")}function q(N){return N<16?"0"+N.toString(16):N.toString(16)}function Q(N,v){v=v||Infinity;for(var a,r=N.length,L=null,k=[],z=0;z<r;++z){if(a=N.charCodeAt(z),a>55295&&a<57344){if(!L){if(a>56319){(v-=3)>-1&&k.push(239,191,189);continue}else if(z+1===r){(v-=3)>-1&&k.push(239,191,189);continue}L=a;continue}if(a<56320){(v-=3)>-1&&k.push(239,191,189),L=a;continue}a=(L-55296<<10|a-56320)+65536}else L&&((v-=3)>-1&&k.push(239,191,189));if(L=null,a<128){if((v-=1)<0)break;k.push(a)}else if(a<2048){if((v-=2)<0)break;k.push(a>>6|192,a&63|128)}else if(a<65536){if((v-=3)<0)break;k.push(a>>12|224,a>>6&63|128,a&63|128)}else if(a<1114112){if((v-=4)<0)break;k.push(a>>18|240,a>>12&63|128,a>>6&63|128,a&63|128)}else throw new Error("Invalid code point")}return k}function ee(N){for(var v=[],a=0;a<N.length;++a)v.push(N.charCodeAt(a)&255);return v}function ce(N,v){for(var a,r,L,k=[],z=0;z<N.length&&!((v-=2)<0);++z)a=N.charCodeAt(z),r=a>>8,L=a%256,k.push(L),k.push(r);return k}function X(N){return y.toByteArray(Se(N))}function B(N,v,a,r){for(var L=0;L<r&&!(L+a>=v.length||L>=N.length);++L)v[L+a]=N[L];return L}function Y(N){return N!==N}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},e("buffer").Buffer)},{"base64-js":69,buffer:73,ieee754:195,isarray:198}],74:[function(e,_,c){_.exports={"100":"Continue","101":"Switching Protocols","102":"Processing","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Unordered Collection","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"}},{}],75:[function(e,_,c){_.exports={O_RDONLY:0,O_WRONLY:1,O_RDWR:2,S_IFMT:61440,S_IFREG:32768,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960,S_IFSOCK:49152,O_CREAT:512,O_EXCL:2048,O_NOCTTY:131072,O_TRUNC:1024,O_APPEND:8,O_DIRECTORY:1048576,O_NOFOLLOW:256,O_SYNC:128,O_SYMLINK:2097152,O_NONBLOCK:4,S_IRWXU:448,S_IRUSR:256,S_IWUSR:128,S_IXUSR:64,S_IRWXG:56,S_IRGRP:32,S_IWGRP:16,S_IXGRP:8,S_IRWXO:7,S_IROTH:4,S_IWOTH:2,S_IXOTH:1,E2BIG:7,EACCES:13,EADDRINUSE:48,EADDRNOTAVAIL:49,EAFNOSUPPORT:47,EAGAIN:35,EALREADY:37,EBADF:9,EBADMSG:94,EBUSY:16,ECANCELED:89,ECHILD:10,ECONNABORTED:53,ECONNREFUSED:61,ECONNRESET:54,EDEADLK:11,EDESTADDRREQ:39,EDOM:33,EDQUOT:69,EEXIST:17,EFAULT:14,EFBIG:27,EHOSTUNREACH:65,EIDRM:90,EILSEQ:92,EINPROGRESS:36,EINTR:4,EINVAL:22,EIO:5,EISCONN:56,EISDIR:21,ELOOP:62,EMFILE:24,EMLINK:31,EMSGSIZE:40,EMULTIHOP:95,ENAMETOOLONG:63,ENETDOWN:50,ENETRESET:52,ENETUNREACH:51,ENFILE:23,ENOBUFS:55,ENODATA:96,ENODEV:19,ENOENT:2,ENOEXEC:8,ENOLCK:77,ENOLINK:97,ENOMEM:12,ENOMSG:91,ENOPROTOOPT:42,ENOSPC:28,ENOSR:98,ENOSTR:99,ENOSYS:78,ENOTCONN:57,ENOTDIR:20,ENOTEMPTY:66,ENOTSOCK:38,ENOTSUP:45,ENOTTY:25,ENXIO:6,EOPNOTSUPP:102,EOVERFLOW:84,EPERM:1,EPIPE:32,EPROTO:100,EPROTONOSUPPORT:43,EPROTOTYPE:41,ERANGE:34,EROFS:30,ESPIPE:29,ESRCH:3,ESTALE:70,ETIME:101,ETIMEDOUT:60,ETXTBSY:26,EWOULDBLOCK:35,EXDEV:18,SIGHUP:1,SIGINT:2,SIGQUIT:3,SIGILL:4,SIGTRAP:5,SIGABRT:6,SIGIOT:6,SIGBUS:10,SIGFPE:8,SIGKILL:9,SIGUSR1:30,SIGSEGV:11,SIGUSR2:31,SIGPIPE:13,SIGALRM:14,SIGTERM:15,SIGCHLD:20,SIGCONT:19,SIGSTOP:17,SIGTSTP:18,SIGTTIN:21,SIGTTOU:22,SIGURG:16,SIGXCPU:24,SIGXFSZ:25,SIGVTALRM:26,SIGPROF:27,SIGWINCH:28,SIGIO:23,SIGSYS:12,SSL_OP_ALL:2147486719,SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION:262144,SSL_OP_CIPHER_SERVER_PREFERENCE:4194304,SSL_OP_CISCO_ANYCONNECT:32768,SSL_OP_COOKIE_EXCHANGE:8192,SSL_OP_CRYPTOPRO_TLSEXT_BUG:2147483648,SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS:2048,SSL_OP_EPHEMERAL_RSA:0,SSL_OP_LEGACY_SERVER_CONNECT:4,SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER:32,SSL_OP_MICROSOFT_SESS_ID_BUG:1,SSL_OP_MSIE_SSLV2_RSA_PADDING:0,SSL_OP_NETSCAPE_CA_DN_BUG:536870912,SSL_OP_NETSCAPE_CHALLENGE_BUG:2,SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG:1073741824,SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG:8,SSL_OP_NO_COMPRESSION:131072,SSL_OP_NO_QUERY_MTU:4096,SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION:65536,SSL_OP_NO_SSLv2:16777216,SSL_OP_NO_SSLv3:33554432,SSL_OP_NO_TICKET:16384,SSL_OP_NO_TLSv1:67108864,SSL_OP_NO_TLSv1_1:268435456,SSL_OP_NO_TLSv1_2:134217728,SSL_OP_PKCS1_CHECK_1:0,SSL_OP_PKCS1_CHECK_2:0,SSL_OP_SINGLE_DH_USE:1048576,SSL_OP_SINGLE_ECDH_USE:524288,SSL_OP_SSLEAY_080_CLIENT_DH_BUG:128,SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG:0,SSL_OP_TLS_BLOCK_PADDING_BUG:512,SSL_OP_TLS_D5_BUG:256,SSL_OP_TLS_ROLLBACK_BUG:8388608,ENGINE_METHOD_DSA:2,ENGINE_METHOD_DH:4,ENGINE_METHOD_RAND:8,ENGINE_METHOD_ECDH:16,ENGINE_METHOD_ECDSA:32,ENGINE_METHOD_CIPHERS:64,ENGINE_METHOD_DIGESTS:128,ENGINE_METHOD_STORE:256,ENGINE_METHOD_PKEY_METHS:512,ENGINE_METHOD_PKEY_ASN1_METHS:1024,ENGINE_METHOD_ALL:65535,ENGINE_METHOD_NONE:0,DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6,F_OK:0,R_OK:4,W_OK:2,X_OK:1,UV_UDP_REUSEADDR:4}},{}],76:[function(e,_,c){/*!
|
||
* copy-to - index.js
|
||
* Copyright(c) 2014 dead_horse <dead_horse@qq.com>
|
||
* MIT Licensed
|
||
*/"use strict";var u=Array.prototype.slice;_.exports=t;function t(f,h){if(!(this instanceof t))return new t(f,h);this.src=f,this._withAccess=h}t.prototype.withAccess=function(f){return this._withAccess=f!==!1,this},t.prototype.pick=function(f){return Array.isArray(f)||(f=u.call(arguments)),f.length&&(this.keys=f),this},t.prototype.to=function(f){if(f=f||{},!this.src)return f;var h=this.keys||Object.keys(this.src);if(!this._withAccess){for(var d=0;d<h.length;d++){if(n=h[d],f[n]!==void 0)continue;f[n]=this.src[n]}return f}for(var d=0;d<h.length;d++){var n=h[d];if(!y(f,n))continue;var l=this.src.__lookupGetter__(n),s=this.src.__lookupSetter__(n);l&&f.__defineGetter__(n,l),s&&f.__defineSetter__(n,s),!l&&!s&&(f[n]=this.src[n])}return f},t.prototype.toCover=function(f){for(var h=this.keys||Object.keys(this.src),d=0;d<h.length;d++){var n=h[d];delete f[n];var l=this.src.__lookupGetter__(n),s=this.src.__lookupSetter__(n);l&&f.__defineGetter__(n,l),s&&f.__defineSetter__(n,s),!l&&!s&&(f[n]=this.src[n])}},t.prototype.override=t.prototype.toCover,t.prototype.and=function(f){var h={};return this.to(h),this.src=f,this.to(h),this.src=h,this};function y(f,h){return f[h]===void 0&&f.__lookupGetter__(h)===void 0&&f.__lookupSetter__(h)===void 0}},{}],77:[function(e,_,c){e("../../modules/es6.string.iterator"),e("../../modules/es6.array.from"),_.exports=e("../../modules/_core").Array.from},{"../../modules/_core":99,"../../modules/es6.array.from":168,"../../modules/es6.string.iterator":180}],78:[function(e,_,c){var u=e("../../modules/_core"),t=u.JSON||(u.JSON={stringify:JSON.stringify});_.exports=function(f){return t.stringify.apply(t,arguments)}},{"../../modules/_core":99}],79:[function(e,_,c){e("../../modules/es6.object.assign"),_.exports=e("../../modules/_core").Object.assign},{"../../modules/_core":99,"../../modules/es6.object.assign":171}],80:[function(e,_,c){e("../../modules/es6.object.create");var u=e("../../modules/_core").Object;_.exports=function(y,f){return u.create(y,f)}},{"../../modules/_core":99,"../../modules/es6.object.create":172}],81:[function(e,_,c){e("../../modules/es6.object.define-property");var u=e("../../modules/_core").Object;_.exports=function(y,f,h){return u.defineProperty(y,f,h)}},{"../../modules/_core":99,"../../modules/es6.object.define-property":173}],82:[function(e,_,c){e("../../modules/es7.object.entries"),_.exports=e("../../modules/_core").Object.entries},{"../../modules/_core":99,"../../modules/es7.object.entries":182}],83:[function(e,_,c){e("../../modules/es6.object.get-own-property-names");var u=e("../../modules/_core").Object;_.exports=function(y){return u.getOwnPropertyNames(y)}},{"../../modules/_core":99,"../../modules/es6.object.get-own-property-names":174}],84:[function(e,_,c){e("../../modules/es6.object.get-prototype-of"),_.exports=e("../../modules/_core").Object.getPrototypeOf},{"../../modules/_core":99,"../../modules/es6.object.get-prototype-of":175}],85:[function(e,_,c){e("../../modules/es6.object.keys"),_.exports=e("../../modules/_core").Object.keys},{"../../modules/_core":99,"../../modules/es6.object.keys":176}],86:[function(e,_,c){e("../modules/es6.object.to-string"),e("../modules/es6.string.iterator"),e("../modules/web.dom.iterable"),e("../modules/es6.promise"),e("../modules/es7.promise.finally"),e("../modules/es7.promise.try"),_.exports=e("../modules/_core").Promise},{"../modules/_core":99,"../modules/es6.object.to-string":177,"../modules/es6.promise":178,"../modules/es6.string.iterator":180,"../modules/es7.promise.finally":183,"../modules/es7.promise.try":184,"../modules/web.dom.iterable":187}],87:[function(e,_,c){e("../modules/web.immediate"),_.exports=e("../modules/_core").setImmediate},{"../modules/_core":99,"../modules/web.immediate":188}],88:[function(e,_,c){e("../../modules/es6.string.from-code-point"),_.exports=e("../../modules/_core").String.fromCodePoint},{"../../modules/_core":99,"../../modules/es6.string.from-code-point":179}],89:[function(e,_,c){e("../../modules/es6.function.has-instance"),_.exports=e("../../modules/_wks-ext").f("hasInstance")},{"../../modules/_wks-ext":165,"../../modules/es6.function.has-instance":170}],90:[function(e,_,c){e("../../modules/es6.symbol"),e("../../modules/es6.object.to-string"),e("../../modules/es7.symbol.async-iterator"),e("../../modules/es7.symbol.observable"),_.exports=e("../../modules/_core").Symbol},{"../../modules/_core":99,"../../modules/es6.object.to-string":177,"../../modules/es6.symbol":181,"../../modules/es7.symbol.async-iterator":185,"../../modules/es7.symbol.observable":186}],91:[function(e,_,c){e("../../modules/es6.string.iterator"),e("../../modules/web.dom.iterable"),_.exports=e("../../modules/_wks-ext").f("iterator")},{"../../modules/_wks-ext":165,"../../modules/es6.string.iterator":180,"../../modules/web.dom.iterable":187}],92:[function(e,_,c){_.exports=function(u){if(typeof u!="function")throw TypeError(u+" is not a function!");return u}},{}],93:[function(e,_,c){_.exports=function(){}},{}],94:[function(e,_,c){_.exports=function(u,t,y,f){if(!(u instanceof t)||f!==void 0&&f in u)throw TypeError(y+": incorrect invocation!");return u}},{}],95:[function(e,_,c){var u=e("./_is-object");_.exports=function(t){if(!u(t))throw TypeError(t+" is not an object!");return t}},{"./_is-object":119}],96:[function(e,_,c){var u=e("./_to-iobject"),t=e("./_to-length"),y=e("./_to-absolute-index");_.exports=function(f){return function(h,d,n){var l=u(h),s=t(l.length),i=y(n,s),o;if(f&&d!=d){for(;s>i;)if(o=l[i++],o!=o)return!0}else for(;s>i;i++)if((f||i in l)&&l[i]===d)return f||i||0;return!f&&-1}}},{"./_to-absolute-index":156,"./_to-iobject":158,"./_to-length":159}],97:[function(e,_,c){var u=e("./_cof"),t=e("./_wks")("toStringTag"),y=u(function(){return arguments}())=="Arguments",f=function(d,n){try{return d[n]}catch(l){}};_.exports=function(h){var d,n,l;return h===void 0?"Undefined":h===null?"Null":typeof(n=f(d=Object(h),t))=="string"?n:y?u(d):(l=u(d))=="Object"&&typeof d.callee=="function"?"Arguments":l}},{"./_cof":98,"./_wks":166}],98:[function(e,_,c){var u={}.toString;_.exports=function(t){return u.call(t).slice(8,-1)}},{}],99:[function(e,_,c){var u=_.exports={version:"2.6.11"};typeof __e=="number"&&(__e=u)},{}],100:[function(e,_,c){"use strict";var u=e("./_object-dp"),t=e("./_property-desc");_.exports=function(y,f,h){f in y?u.f(y,f,t(0,h)):y[f]=h}},{"./_object-dp":132,"./_property-desc":146}],101:[function(e,_,c){var u=e("./_a-function");_.exports=function(t,y,f){if(u(t),y===void 0)return t;switch(f){case 1:return function(h){return t.call(y,h)};case 2:return function(h,d){return t.call(y,h,d)};case 3:return function(h,d,n){return t.call(y,h,d,n)}}return function(){return t.apply(y,arguments)}}},{"./_a-function":92}],102:[function(e,_,c){_.exports=function(u){if(u==null)throw TypeError("Can't call method on "+u);return u}},{}],103:[function(e,_,c){_.exports=!e("./_fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./_fails":108}],104:[function(e,_,c){var u=e("./_is-object"),t=e("./_global").document,y=u(t)&&u(t.createElement);_.exports=function(f){return y?t.createElement(f):{}}},{"./_global":110,"./_is-object":119}],105:[function(e,_,c){_.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],106:[function(e,_,c){var u=e("./_object-keys"),t=e("./_object-gops"),y=e("./_object-pie");_.exports=function(f){var h=u(f),d=t.f;if(d)for(var n=d(f),l=y.f,s=0,i;n.length>s;)l.call(f,i=n[s++])&&h.push(i);return h}},{"./_object-gops":137,"./_object-keys":140,"./_object-pie":141}],107:[function(e,_,c){var u=e("./_global"),t=e("./_core"),y=e("./_ctx"),f=e("./_hide"),h=e("./_has"),d="prototype",n=function l(s,i,o){var b=s&l.F,m=s&l.G,g=s&l.S,A=s&l.P,T=s&l.B,x=s&l.W,E=m?t:t[i]||(t[i]={}),j=E[d],O=m?u:g?u[i]:(u[i]||{})[d],S,w,p;m&&(o=i);for(S in o){if(w=!b&&O&&O[S]!==void 0,w&&h(E,S))continue;p=w?O[S]:o[S],E[S]=m&&typeof O[S]!="function"?o[S]:T&&w?y(p,u):x&&O[S]==p?function(M){var C=function(I,H,W){if(this instanceof M){switch(arguments.length){case 0:return new M;case 1:return new M(I);case 2:return new M(I,H)}return new M(I,H,W)}return M.apply(this,arguments)};return C[d]=M[d],C}(p):A&&typeof p=="function"?y(Function.call,p):p,A&&((E.virtual||(E.virtual={}))[S]=p,s&l.R&&j&&!j[S]&&f(j,S,p))}};n.F=1,n.G=2,n.S=4,n.P=8,n.B=16,n.W=32,n.U=64,n.R=128,_.exports=n},{"./_core":99,"./_ctx":101,"./_global":110,"./_has":111,"./_hide":112}],108:[function(e,_,c){_.exports=function(u){try{return!!u()}catch(t){return!0}}},{}],109:[function(e,_,c){var u=e("./_ctx"),t=e("./_iter-call"),y=e("./_is-array-iter"),f=e("./_an-object"),h=e("./_to-length"),d=e("./core.get-iterator-method"),n={},l={},c=_.exports=function(s,i,o,b,m){var g=m?function(){return s}:d(s),A=u(o,b,i?2:1),T=0,x,E,j,O;if(typeof g!="function")throw TypeError(s+" is not iterable!");if(y(g)){for(x=h(s.length);x>T;T++)if(O=i?A(f(E=s[T])[0],E[1]):A(s[T]),O===n||O===l)return O}else for(j=g.call(s);!(E=j.next()).done;)if(O=t(j,A,E.value,i),O===n||O===l)return O};c.BREAK=n,c.RETURN=l},{"./_an-object":95,"./_ctx":101,"./_is-array-iter":117,"./_iter-call":120,"./_to-length":159,"./core.get-iterator-method":167}],110:[function(e,_,c){var u=_.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=u)},{}],111:[function(e,_,c){var u={}.hasOwnProperty;_.exports=function(t,y){return u.call(t,y)}},{}],112:[function(e,_,c){var u=e("./_object-dp"),t=e("./_property-desc");_.exports=e("./_descriptors")?function(y,f,h){return u.f(y,f,t(1,h))}:function(y,f,h){return y[f]=h,y}},{"./_descriptors":103,"./_object-dp":132,"./_property-desc":146}],113:[function(e,_,c){var u=e("./_global").document;_.exports=u&&u.documentElement},{"./_global":110}],114:[function(e,_,c){_.exports=!e("./_descriptors")&&!e("./_fails")(function(){return Object.defineProperty(e("./_dom-create")("div"),"a",{get:function(){return 7}}).a!=7})},{"./_descriptors":103,"./_dom-create":104,"./_fails":108}],115:[function(e,_,c){_.exports=function(u,t,y){var f=y===void 0;switch(t.length){case 0:return f?u():u.call(y);case 1:return f?u(t[0]):u.call(y,t[0]);case 2:return f?u(t[0],t[1]):u.call(y,t[0],t[1]);case 3:return f?u(t[0],t[1],t[2]):u.call(y,t[0],t[1],t[2]);case 4:return f?u(t[0],t[1],t[2],t[3]):u.call(y,t[0],t[1],t[2],t[3])}return u.apply(y,t)}},{}],116:[function(e,_,c){var u=e("./_cof");_.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return u(t)=="String"?t.split(""):Object(t)}},{"./_cof":98}],117:[function(e,_,c){var u=e("./_iterators"),t=e("./_wks")("iterator"),y=Array.prototype;_.exports=function(f){return f!==void 0&&(u.Array===f||y[t]===f)}},{"./_iterators":125,"./_wks":166}],118:[function(e,_,c){var u=e("./_cof");_.exports=Array.isArray||function(y){return u(y)=="Array"}},{"./_cof":98}],119:[function(e,_,c){_.exports=function(u){return typeof u=="object"?u!==null:typeof u=="function"}},{}],120:[function(e,_,c){var u=e("./_an-object");_.exports=function(t,y,f,h){try{return h?y(u(f)[0],f[1]):y(f)}catch(n){var d=t.return;throw d!==void 0&&u(d.call(t)),n}}},{"./_an-object":95}],121:[function(e,_,c){"use strict";var u=e("./_object-create"),t=e("./_property-desc"),y=e("./_set-to-string-tag"),f={};e("./_hide")(f,e("./_wks")("iterator"),function(){return this}),_.exports=function(h,d,n){h.prototype=u(f,{next:t(1,n)}),y(h,d+" Iterator")}},{"./_hide":112,"./_object-create":131,"./_property-desc":146,"./_set-to-string-tag":150,"./_wks":166}],122:[function(e,_,c){"use strict";var u=e("./_library"),t=e("./_export"),y=e("./_redefine"),f=e("./_hide"),h=e("./_iterators"),d=e("./_iter-create"),n=e("./_set-to-string-tag"),l=e("./_object-gpo"),s=e("./_wks")("iterator"),i=!([].keys&&"next"in[].keys()),o="@@iterator",b="keys",m="values",g=function(){return this};_.exports=function(A,T,x,E,j,O,S){d(x,T,E);var w=function(P){if(!i&&P in R)return R[P];switch(P){case b:return function(){return new x(this,P)};case m:return function(){return new x(this,P)}}return function(){return new x(this,P)}},p=T+" Iterator",M=j==m,C=!1,R=A.prototype,I=R[s]||R[o]||j&&R[j],H=I||w(j),W=j?M?w("entries"):H:void 0,D=T=="Array"&&R.entries||I,ae,V,te;if(D&&(te=l(D.call(new A)),te!==Object.prototype&&te.next&&(n(te,p,!0),!u&&typeof te[s]!="function"&&f(te,s,g))),M&&I&&I.name!==m&&(C=!0,H=function(){return I.call(this)}),(!u||S)&&(i||C||!R[s])&&f(R,s,H),h[T]=H,h[p]=g,j)if(ae={values:M?H:w(m),keys:O?H:w(b),entries:W},S)for(V in ae)V in R||y(R,V,ae[V]);else t(t.P+t.F*(i||C),T,ae);return ae}},{"./_export":107,"./_hide":112,"./_iter-create":121,"./_iterators":125,"./_library":126,"./_object-gpo":138,"./_redefine":148,"./_set-to-string-tag":150,"./_wks":166}],123:[function(e,_,c){var u=e("./_wks")("iterator"),t=!1;try{var y=[7][u]();y.return=function(){t=!0},Array.from(y,function(){throw 2})}catch(f){}_.exports=function(f,h){if(!h&&!t)return!1;var d=!1;try{var n=[7],l=n[u]();l.next=function(){return{done:d=!0}},n[u]=function(){return l},f(n)}catch(s){}return d}},{"./_wks":166}],124:[function(e,_,c){_.exports=function(u,t){return{value:t,done:!!u}}},{}],125:[function(e,_,c){_.exports={}},{}],126:[function(e,_,c){_.exports=!0},{}],127:[function(e,_,c){var u=e("./_uid")("meta"),t=e("./_is-object"),y=e("./_has"),f=e("./_object-dp").f,h=0,d=Object.isExtensible||function(){return!0},n=!e("./_fails")(function(){return d(Object.preventExtensions({}))}),l=function(g){f(g,u,{value:{i:"O"+ ++h,w:{}}})},s=function(g,A){if(!t(g))return typeof g=="symbol"?g:(typeof g=="string"?"S":"P")+g;if(!y(g,u)){if(!d(g))return"F";if(!A)return"E";l(g)}return g[u].i},i=function(g,A){if(!y(g,u)){if(!d(g))return!0;if(!A)return!1;l(g)}return g[u].w},o=function(g){return n&&b.NEED&&d(g)&&!y(g,u)&&l(g),g},b=_.exports={KEY:u,NEED:!1,fastKey:s,getWeak:i,onFreeze:o}},{"./_fails":108,"./_has":111,"./_is-object":119,"./_object-dp":132,"./_uid":162}],128:[function(e,_,c){var u=e("./_global"),t=e("./_task").set,y=u.MutationObserver||u.WebKitMutationObserver,f=u.process,h=u.Promise,d=e("./_cof")(f)=="process";_.exports=function(){var n,l,s,i=function(){var A,T;for(d&&(A=f.domain)&&A.exit();n;){T=n.fn,n=n.next;try{T()}catch(x){throw n?s():l=void 0,x}}l=void 0,A&&A.enter()};if(d)s=function(){f.nextTick(i)};else if(y&&!(u.navigator&&u.navigator.standalone)){var o=!0,b=document.createTextNode("");new y(i).observe(b,{characterData:!0}),s=function(){b.data=o=!o}}else if(h&&h.resolve){var m=h.resolve(void 0);s=function(){m.then(i)}}else s=function(){t.call(u,i)};return function(g){var A={fn:g,next:void 0};l&&(l.next=A),n||(n=A,s()),l=A}}},{"./_cof":98,"./_global":110,"./_task":155}],129:[function(e,_,c){"use strict";var u=e("./_a-function");function t(y){var f,h;this.promise=new y(function(d,n){if(f!==void 0||h!==void 0)throw TypeError("Bad Promise constructor");f=d,h=n}),this.resolve=u(f),this.reject=u(h)}_.exports.f=function(y){return new t(y)}},{"./_a-function":92}],130:[function(e,_,c){"use strict";var u=e("./_descriptors"),t=e("./_object-keys"),y=e("./_object-gops"),f=e("./_object-pie"),h=e("./_to-object"),d=e("./_iobject"),n=Object.assign;_.exports=!n||e("./_fails")(function(){var l={},s={},i=Symbol(),o="abcdefghijklmnopqrst";return l[i]=7,o.split("").forEach(function(b){s[b]=b}),n({},l)[i]!=7||Object.keys(n({},s)).join("")!=o})?function(s,i){for(var o=h(s),b=arguments.length,m=1,g=y.f,A=f.f;b>m;)for(var T=d(arguments[m++]),x=g?t(T).concat(g(T)):t(T),E=x.length,j=0,O;E>j;)O=x[j++],(!u||A.call(T,O))&&(o[O]=T[O]);return o}:n},{"./_descriptors":103,"./_fails":108,"./_iobject":116,"./_object-gops":137,"./_object-keys":140,"./_object-pie":141,"./_to-object":160}],131:[function(e,_,c){var u=e("./_an-object"),t=e("./_object-dps"),y=e("./_enum-bug-keys"),f=e("./_shared-key")("IE_PROTO"),h=function(){},d="prototype",n=function(){var s=e("./_dom-create")("iframe"),i=y.length,o="<",b=">",m;for(s.style.display="none",e("./_html").appendChild(s),s.src="javascript:",m=s.contentWindow.document,m.open(),m.write(o+"script"+b+"document.F=Object"+o+"/script"+b),m.close(),n=m.F;i--;)delete n[d][y[i]];return n()};_.exports=Object.create||function(s,i){var o;return s!==null?(h[d]=u(s),o=new h,h[d]=null,o[f]=s):o=n(),i===void 0?o:t(o,i)}},{"./_an-object":95,"./_dom-create":104,"./_enum-bug-keys":105,"./_html":113,"./_object-dps":133,"./_shared-key":151}],132:[function(e,_,c){var u=e("./_an-object"),t=e("./_ie8-dom-define"),y=e("./_to-primitive"),f=Object.defineProperty;c.f=e("./_descriptors")?Object.defineProperty:function(d,n,l){if(u(d),n=y(n,!0),u(l),t)try{return f(d,n,l)}catch(s){}if("get"in l||"set"in l)throw TypeError("Accessors not supported!");return"value"in l&&(d[n]=l.value),d}},{"./_an-object":95,"./_descriptors":103,"./_ie8-dom-define":114,"./_to-primitive":161}],133:[function(e,_,c){var u=e("./_object-dp"),t=e("./_an-object"),y=e("./_object-keys");_.exports=e("./_descriptors")?Object.defineProperties:function(h,d){t(h);for(var n=y(d),l=n.length,s=0,i;l>s;)u.f(h,i=n[s++],d[i]);return h}},{"./_an-object":95,"./_descriptors":103,"./_object-dp":132,"./_object-keys":140}],134:[function(e,_,c){var u=e("./_object-pie"),t=e("./_property-desc"),y=e("./_to-iobject"),f=e("./_to-primitive"),h=e("./_has"),d=e("./_ie8-dom-define"),n=Object.getOwnPropertyDescriptor;c.f=e("./_descriptors")?n:function(s,i){if(s=y(s),i=f(i,!0),d)try{return n(s,i)}catch(o){}if(h(s,i))return t(!u.f.call(s,i),s[i])}},{"./_descriptors":103,"./_has":111,"./_ie8-dom-define":114,"./_object-pie":141,"./_property-desc":146,"./_to-iobject":158,"./_to-primitive":161}],135:[function(e,_,c){var u=e("./_to-iobject"),t=e("./_object-gopn").f,y={}.toString,f=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],h=function(n){try{return t(n)}catch(l){return f.slice()}};_.exports.f=function(n){return f&&y.call(n)=="[object Window]"?h(n):t(u(n))}},{"./_object-gopn":136,"./_to-iobject":158}],136:[function(e,_,c){var u=e("./_object-keys-internal"),t=e("./_enum-bug-keys").concat("length","prototype");c.f=Object.getOwnPropertyNames||function(f){return u(f,t)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],137:[function(e,_,c){c.f=Object.getOwnPropertySymbols},{}],138:[function(e,_,c){var u=e("./_has"),t=e("./_to-object"),y=e("./_shared-key")("IE_PROTO"),f=Object.prototype;_.exports=Object.getPrototypeOf||function(h){return h=t(h),u(h,y)?h[y]:typeof h.constructor=="function"&&h instanceof h.constructor?h.constructor.prototype:h instanceof Object?f:null}},{"./_has":111,"./_shared-key":151,"./_to-object":160}],139:[function(e,_,c){var u=e("./_has"),t=e("./_to-iobject"),y=e("./_array-includes")(!1),f=e("./_shared-key")("IE_PROTO");_.exports=function(h,d){var n=t(h),l=0,s=[],i;for(i in n)i!=f&&(u(n,i)&&s.push(i));for(;d.length>l;)u(n,i=d[l++])&&(~y(s,i)||s.push(i));return s}},{"./_array-includes":96,"./_has":111,"./_shared-key":151,"./_to-iobject":158}],140:[function(e,_,c){var u=e("./_object-keys-internal"),t=e("./_enum-bug-keys");_.exports=Object.keys||function(f){return u(f,t)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],141:[function(e,_,c){c.f={}.propertyIsEnumerable},{}],142:[function(e,_,c){var u=e("./_export"),t=e("./_core"),y=e("./_fails");_.exports=function(f,h){var d=(t.Object||{})[f]||Object[f],n={};n[f]=h(d),u(u.S+u.F*y(function(){d(1)}),"Object",n)}},{"./_core":99,"./_export":107,"./_fails":108}],143:[function(e,_,c){var u=e("./_descriptors"),t=e("./_object-keys"),y=e("./_to-iobject"),f=e("./_object-pie").f;_.exports=function(h){return function(d){for(var n=y(d),l=t(n),s=l.length,i=0,o=[],b;s>i;)b=l[i++],(!u||f.call(n,b))&&o.push(h?[b,n[b]]:n[b]);return o}}},{"./_descriptors":103,"./_object-keys":140,"./_object-pie":141,"./_to-iobject":158}],144:[function(e,_,c){_.exports=function(u){try{return{e:!1,v:u()}}catch(t){return{e:!0,v:t}}}},{}],145:[function(e,_,c){var u=e("./_an-object"),t=e("./_is-object"),y=e("./_new-promise-capability");_.exports=function(f,h){if(u(f),t(h)&&h.constructor===f)return h;var d=y.f(f),n=d.resolve;return n(h),d.promise}},{"./_an-object":95,"./_is-object":119,"./_new-promise-capability":129}],146:[function(e,_,c){_.exports=function(u,t){return{enumerable:!(u&1),configurable:!(u&2),writable:!(u&4),value:t}}},{}],147:[function(e,_,c){var u=e("./_hide");_.exports=function(t,y,f){for(var h in y)f&&t[h]?t[h]=y[h]:u(t,h,y[h]);return t}},{"./_hide":112}],148:[function(e,_,c){_.exports=e("./_hide")},{"./_hide":112}],149:[function(e,_,c){"use strict";var u=e("./_global"),t=e("./_core"),y=e("./_object-dp"),f=e("./_descriptors"),h=e("./_wks")("species");_.exports=function(d){var n=typeof t[d]=="function"?t[d]:u[d];f&&n&&!n[h]&&y.f(n,h,{configurable:!0,get:function(){return this}})}},{"./_core":99,"./_descriptors":103,"./_global":110,"./_object-dp":132,"./_wks":166}],150:[function(e,_,c){var u=e("./_object-dp").f,t=e("./_has"),y=e("./_wks")("toStringTag");_.exports=function(f,h,d){f&&!t(f=d?f:f.prototype,y)&&u(f,y,{configurable:!0,value:h})}},{"./_has":111,"./_object-dp":132,"./_wks":166}],151:[function(e,_,c){var u=e("./_shared")("keys"),t=e("./_uid");_.exports=function(y){return u[y]||(u[y]=t(y))}},{"./_shared":152,"./_uid":162}],152:[function(e,_,c){var u=e("./_core"),t=e("./_global"),y="__core-js_shared__",f=t[y]||(t[y]={});(_.exports=function(h,d){return f[h]||(f[h]=d!==void 0?d:{})})("versions",[]).push({version:u.version,mode:e("./_library")?"pure":"global",copyright:"\xA9 2019 Denis Pushkarev (zloirock.ru)"})},{"./_core":99,"./_global":110,"./_library":126}],153:[function(e,_,c){var u=e("./_an-object"),t=e("./_a-function"),y=e("./_wks")("species");_.exports=function(f,h){var d=u(f).constructor,n;return d===void 0||(n=u(d)[y])==null?h:t(n)}},{"./_a-function":92,"./_an-object":95,"./_wks":166}],154:[function(e,_,c){var u=e("./_to-integer"),t=e("./_defined");_.exports=function(y){return function(f,h){var d=String(t(f)),n=u(h),l=d.length,s,i;return n<0||n>=l?y?"":void 0:(s=d.charCodeAt(n),s<55296||s>56319||n+1===l||(i=d.charCodeAt(n+1))<56320||i>57343?y?d.charAt(n):s:y?d.slice(n,n+2):(s-55296<<10)+(i-56320)+65536)}}},{"./_defined":102,"./_to-integer":157}],155:[function(e,_,c){var u=e("./_ctx"),t=e("./_invoke"),y=e("./_html"),f=e("./_dom-create"),h=e("./_global"),d=h.process,n=h.setImmediate,l=h.clearImmediate,s=h.MessageChannel,i=h.Dispatch,o=0,b={},m="onreadystatechange",g,A,T,x=function(){var O=+this;if(b.hasOwnProperty(O)){var S=b[O];delete b[O],S()}},E=function(O){x.call(O.data)};(!n||!l)&&(n=function(O){for(var S=[],w=1;arguments.length>w;)S.push(arguments[w++]);return b[++o]=function(){t(typeof O=="function"?O:Function(O),S)},g(o),o},l=function(O){delete b[O]},e("./_cof")(d)=="process"?g=function(O){d.nextTick(u(x,O,1))}:i&&i.now?g=function(O){i.now(u(x,O,1))}:s?(A=new s,T=A.port2,A.port1.onmessage=E,g=u(T.postMessage,T,1)):h.addEventListener&&typeof postMessage=="function"&&!h.importScripts?(g=function(O){h.postMessage(O+"","*")},h.addEventListener("message",E,!1)):m in f("script")?g=function(O){y.appendChild(f("script"))[m]=function(){y.removeChild(this),x.call(O)}}:g=function(O){setTimeout(u(x,O,1),0)}),_.exports={set:n,clear:l}},{"./_cof":98,"./_ctx":101,"./_dom-create":104,"./_global":110,"./_html":113,"./_invoke":115}],156:[function(e,_,c){var u=e("./_to-integer"),t=Math.max,y=Math.min;_.exports=function(f,h){return f=u(f),f<0?t(f+h,0):y(f,h)}},{"./_to-integer":157}],157:[function(e,_,c){var u=Math.ceil,t=Math.floor;_.exports=function(y){return isNaN(y=+y)?0:(y>0?t:u)(y)}},{}],158:[function(e,_,c){var u=e("./_iobject"),t=e("./_defined");_.exports=function(y){return u(t(y))}},{"./_defined":102,"./_iobject":116}],159:[function(e,_,c){var u=e("./_to-integer"),t=Math.min;_.exports=function(y){return y>0?t(u(y),9007199254740991):0}},{"./_to-integer":157}],160:[function(e,_,c){var u=e("./_defined");_.exports=function(t){return Object(u(t))}},{"./_defined":102}],161:[function(e,_,c){var u=e("./_is-object");_.exports=function(t,y){if(!u(t))return t;var f,h;if(y&&typeof(f=t.toString)=="function"&&!u(h=f.call(t)))return h;if(typeof(f=t.valueOf)=="function"&&!u(h=f.call(t)))return h;if(!y&&typeof(f=t.toString)=="function"&&!u(h=f.call(t)))return h;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":119}],162:[function(e,_,c){var u=0,t=Math.random();_.exports=function(y){return"Symbol(".concat(y===void 0?"":y,")_",(++u+t).toString(36))}},{}],163:[function(e,_,c){var u=e("./_global"),t=u.navigator;_.exports=t&&t.userAgent||""},{"./_global":110}],164:[function(e,_,c){var u=e("./_global"),t=e("./_core"),y=e("./_library"),f=e("./_wks-ext"),h=e("./_object-dp").f;_.exports=function(d){var n=t.Symbol||(t.Symbol=y?{}:u.Symbol||{});d.charAt(0)!="_"&&!(d in n)&&h(n,d,{value:f.f(d)})}},{"./_core":99,"./_global":110,"./_library":126,"./_object-dp":132,"./_wks-ext":165}],165:[function(e,_,c){c.f=e("./_wks")},{"./_wks":166}],166:[function(e,_,c){var u=e("./_shared")("wks"),t=e("./_uid"),y=e("./_global").Symbol,f=typeof y=="function",h=_.exports=function(d){return u[d]||(u[d]=f&&y[d]||(f?y:t)("Symbol."+d))};h.store=u},{"./_global":110,"./_shared":152,"./_uid":162}],167:[function(e,_,c){var u=e("./_classof"),t=e("./_wks")("iterator"),y=e("./_iterators");_.exports=e("./_core").getIteratorMethod=function(f){if(f!=null)return f[t]||f["@@iterator"]||y[u(f)]}},{"./_classof":97,"./_core":99,"./_iterators":125,"./_wks":166}],168:[function(e,_,c){"use strict";var u=e("./_ctx"),t=e("./_export"),y=e("./_to-object"),f=e("./_iter-call"),h=e("./_is-array-iter"),d=e("./_to-length"),n=e("./_create-property"),l=e("./core.get-iterator-method");t(t.S+t.F*!e("./_iter-detect")(function(s){Array.from(s)}),"Array",{from:function(i){var o=y(i),b=typeof this=="function"?this:Array,m=arguments.length,g=m>1?arguments[1]:void 0,A=g!==void 0,T=0,x=l(o),E,j,O,S;if(A&&(g=u(g,m>2?arguments[2]:void 0,2)),x!=null&&!(b==Array&&h(x)))for(S=x.call(o),j=new b;!(O=S.next()).done;T++)n(j,T,A?f(S,g,[O.value,T],!0):O.value);else for(E=d(o.length),j=new b(E);E>T;T++)n(j,T,A?g(o[T],T):o[T]);return j.length=T,j}})},{"./_create-property":100,"./_ctx":101,"./_export":107,"./_is-array-iter":117,"./_iter-call":120,"./_iter-detect":123,"./_to-length":159,"./_to-object":160,"./core.get-iterator-method":167}],169:[function(e,_,c){"use strict";var u=e("./_add-to-unscopables"),t=e("./_iter-step"),y=e("./_iterators"),f=e("./_to-iobject");_.exports=e("./_iter-define")(Array,"Array",function(h,d){this._t=f(h),this._i=0,this._k=d},function(){var h=this._t,d=this._k,n=this._i++;return!h||n>=h.length?(this._t=void 0,t(1)):d=="keys"?t(0,n):d=="values"?t(0,h[n]):t(0,[n,h[n]])},"values"),y.Arguments=y.Array,u("keys"),u("values"),u("entries")},{"./_add-to-unscopables":93,"./_iter-define":122,"./_iter-step":124,"./_iterators":125,"./_to-iobject":158}],170:[function(e,_,c){"use strict";var u=e("./_is-object"),t=e("./_object-gpo"),y=e("./_wks")("hasInstance"),f=Function.prototype;y in f||e("./_object-dp").f(f,y,{value:function(d){if(typeof this!="function"||!u(d))return!1;if(!u(this.prototype))return d instanceof this;for(;d=t(d);)if(this.prototype===d)return!0;return!1}})},{"./_is-object":119,"./_object-dp":132,"./_object-gpo":138,"./_wks":166}],171:[function(e,_,c){var u=e("./_export");u(u.S+u.F,"Object",{assign:e("./_object-assign")})},{"./_export":107,"./_object-assign":130}],172:[function(e,_,c){var u=e("./_export");u(u.S,"Object",{create:e("./_object-create")})},{"./_export":107,"./_object-create":131}],173:[function(e,_,c){var u=e("./_export");u(u.S+u.F*!e("./_descriptors"),"Object",{defineProperty:e("./_object-dp").f})},{"./_descriptors":103,"./_export":107,"./_object-dp":132}],174:[function(e,_,c){e("./_object-sap")("getOwnPropertyNames",function(){return e("./_object-gopn-ext").f})},{"./_object-gopn-ext":135,"./_object-sap":142}],175:[function(e,_,c){var u=e("./_to-object"),t=e("./_object-gpo");e("./_object-sap")("getPrototypeOf",function(){return function(f){return t(u(f))}})},{"./_object-gpo":138,"./_object-sap":142,"./_to-object":160}],176:[function(e,_,c){var u=e("./_to-object"),t=e("./_object-keys");e("./_object-sap")("keys",function(){return function(f){return t(u(f))}})},{"./_object-keys":140,"./_object-sap":142,"./_to-object":160}],177:[function(e,_,c){arguments[4][71][0].apply(c,arguments)},{dup:71}],178:[function(e,_,c){"use strict";var u=e("./_library"),t=e("./_global"),y=e("./_ctx"),f=e("./_classof"),h=e("./_export"),d=e("./_is-object"),n=e("./_a-function"),l=e("./_an-instance"),s=e("./_for-of"),i=e("./_species-constructor"),o=e("./_task").set,b=e("./_microtask")(),m=e("./_new-promise-capability"),g=e("./_perform"),A=e("./_user-agent"),T=e("./_promise-resolve"),x="Promise",E=t.TypeError,j=t.process,O=j&&j.versions,S=O&&O.v8||"",w=t[x],p=f(j)=="process",M=function(){},C,R,I,H,W=R=m.f,D=!!function(){try{var J=w.resolve(1),U=(J.constructor={})[e("./_wks")("species")]=function(Z){Z(M,M)};return(p||typeof PromiseRejectionEvent=="function")&&J.then(M)instanceof U&&S.indexOf("6.6")!==0&&A.indexOf("Chrome/66")===-1}catch(Z){}}(),ae=function(U){var Z;return d(U)&&typeof(Z=U.then)=="function"?Z:!1},V=function(U,Z){if(U._n)return;U._n=!0;var ie=U._c;b(function(){for(var re=U._v,le=U._s==1,de=0,K=function(oe){var q=le?oe.ok:oe.fail,Q=oe.resolve,ee=oe.reject,ce=oe.domain,X,B,Y;try{q?(le||(U._h==2&&P(U),U._h=1),q===!0?X=re:(ce&&ce.enter(),X=q(re),ce&&(ce.exit(),Y=!0)),X===oe.promise?ee(E("Promise-chain cycle")):(B=ae(X))?B.call(X,Q,ee):Q(X)):ee(re)}catch(N){ce&&!Y&&ce.exit(),ee(N)}};ie.length>de;)K(ie[de++]);U._c=[],U._n=!1,Z&&!U._h&&te(U)})},te=function(U){o.call(t,function(){var Z=U._v,ie=$(U),re,le,de;if(ie&&(re=g(function(){p?j.emit("unhandledRejection",Z,U):(le=t.onunhandledrejection)?le({promise:U,reason:Z}):(de=t.console)&&de.error&&de.error("Unhandled promise rejection",Z)}),U._h=p||$(U)?2:1),U._a=void 0,ie&&re.e)throw re.v})},$=function(U){return U._h!==1&&(U._a||U._c).length===0},P=function(U){o.call(t,function(){var Z;p?j.emit("rejectionHandled",U):(Z=t.onrejectionhandled)&&Z({promise:U,reason:U._v})})},F=function(U){var Z=this;if(Z._d)return;Z._d=!0,Z=Z._w||Z,Z._v=U,Z._s=2,Z._a||(Z._a=Z._c.slice()),V(Z,!0)},G=function J(U){var Z=this,ie;if(Z._d)return;Z._d=!0,Z=Z._w||Z;try{if(Z===U)throw E("Promise can't be resolved itself");(ie=ae(U))?b(function(){var re={_w:Z,_d:!1};try{ie.call(U,y(J,re,1),y(F,re,1))}catch(le){F.call(re,le)}}):(Z._v=U,Z._s=1,V(Z,!1))}catch(re){F.call({_w:Z,_d:!1},re)}};D||(w=function(U){l(this,w,x,"_h"),n(U),C.call(this);try{U(y(G,this,1),y(F,this,1))}catch(Z){F.call(this,Z)}},C=function(U){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},C.prototype=e("./_redefine-all")(w.prototype,{then:function(U,Z){var ie=W(i(this,w));return ie.ok=typeof U=="function"?U:!0,ie.fail=typeof Z=="function"&&Z,ie.domain=p?j.domain:void 0,this._c.push(ie),this._a&&this._a.push(ie),this._s&&V(this,!1),ie.promise},catch:function(U){return this.then(void 0,U)}}),I=function(){var U=new C;this.promise=U,this.resolve=y(G,U,1),this.reject=y(F,U,1)},m.f=W=function(U){return U===w||U===H?new I(U):R(U)}),h(h.G+h.W+h.F*!D,{Promise:w}),e("./_set-to-string-tag")(w,x),e("./_set-species")(x),H=e("./_core")[x],h(h.S+h.F*!D,x,{reject:function(U){var Z=W(this),ie=Z.reject;return ie(U),Z.promise}}),h(h.S+h.F*(u||!D),x,{resolve:function(U){return T(u&&this===H?w:this,U)}}),h(h.S+h.F*!(D&&e("./_iter-detect")(function(J){w.all(J).catch(M)})),x,{all:function(U){var Z=this,ie=W(Z),re=ie.resolve,le=ie.reject,de=g(function(){var K=[],Se=0,oe=1;s(U,!1,function(q){var Q=Se++,ee=!1;K.push(void 0),oe++,Z.resolve(q).then(function(ce){if(ee)return;ee=!0,K[Q]=ce,--oe||re(K)},le)}),--oe||re(K)});return de.e&&le(de.v),ie.promise},race:function(U){var Z=this,ie=W(Z),re=ie.reject,le=g(function(){s(U,!1,function(de){Z.resolve(de).then(ie.resolve,re)})});return le.e&&re(le.v),ie.promise}})},{"./_a-function":92,"./_an-instance":94,"./_classof":97,"./_core":99,"./_ctx":101,"./_export":107,"./_for-of":109,"./_global":110,"./_is-object":119,"./_iter-detect":123,"./_library":126,"./_microtask":128,"./_new-promise-capability":129,"./_perform":144,"./_promise-resolve":145,"./_redefine-all":147,"./_set-species":149,"./_set-to-string-tag":150,"./_species-constructor":153,"./_task":155,"./_user-agent":163,"./_wks":166}],179:[function(e,_,c){var u=e("./_export"),t=e("./_to-absolute-index"),y=String.fromCharCode,f=String.fromCodePoint;u(u.S+u.F*(!!f&&f.length!=1),"String",{fromCodePoint:function(d){for(var n=[],l=arguments.length,s=0,i;l>s;){if(i=+arguments[s++],t(i,1114111)!==i)throw RangeError(i+" is not a valid code point");n.push(i<65536?y(i):y(((i-=65536)>>10)+55296,i%1024+56320))}return n.join("")}})},{"./_export":107,"./_to-absolute-index":156}],180:[function(e,_,c){"use strict";var u=e("./_string-at")(!0);e("./_iter-define")(String,"String",function(t){this._t=String(t),this._i=0},function(){var t=this._t,y=this._i,f;return y>=t.length?{value:void 0,done:!0}:(f=u(t,y),this._i+=f.length,{value:f,done:!1})})},{"./_iter-define":122,"./_string-at":154}],181:[function(e,_,c){"use strict";var u=e("./_global"),t=e("./_has"),y=e("./_descriptors"),f=e("./_export"),h=e("./_redefine"),d=e("./_meta").KEY,n=e("./_fails"),l=e("./_shared"),s=e("./_set-to-string-tag"),i=e("./_uid"),o=e("./_wks"),b=e("./_wks-ext"),m=e("./_wks-define"),g=e("./_enum-keys"),A=e("./_is-array"),T=e("./_an-object"),x=e("./_is-object"),E=e("./_to-object"),j=e("./_to-iobject"),O=e("./_to-primitive"),S=e("./_property-desc"),w=e("./_object-create"),p=e("./_object-gopn-ext"),M=e("./_object-gopd"),C=e("./_object-gops"),R=e("./_object-dp"),I=e("./_object-keys"),H=M.f,W=R.f,D=p.f,ae=u.Symbol,V=u.JSON,te=V&&V.stringify,$="prototype",P=o("_hidden"),F=o("toPrimitive"),G={}.propertyIsEnumerable,J=l("symbol-registry"),U=l("symbols"),Z=l("op-symbols"),ie=Object[$],re=typeof ae=="function"&&!!C.f,le=u.QObject,de=!le||!le[$]||!le[$].findChild,K=y&&n(function(){return w(W({},"a",{get:function(){return W(this,"a",{value:7}).a}})).a!=7})?function(k,z,se){var pe=H(ie,z);pe&&delete ie[z],W(k,z,se),pe&&k!==ie&&W(ie,z,pe)}:W,Se=function(z){var se=U[z]=w(ae[$]);return se._k=z,se},oe=re&&typeof ae.iterator=="symbol"?function(k){return typeof k=="symbol"}:function(k){return k instanceof ae},q=function(z,se,pe){return z===ie&&q(Z,se,pe),T(z),se=O(se,!0),T(pe),t(U,se)?(pe.enumerable?(t(z,P)&&z[P][se]&&(z[P][se]=!1),pe=w(pe,{enumerable:S(0,!1)})):(t(z,P)||W(z,P,S(1,{})),z[P][se]=!0),K(z,se,pe)):W(z,se,pe)},Q=function(z,se){T(z);for(var pe=g(se=j(se)),ge=0,me=pe.length,ve;me>ge;)q(z,ve=pe[ge++],se[ve]);return z},ee=function(z,se){return se===void 0?w(z):Q(w(z),se)},ce=function(z){var se=G.call(this,z=O(z,!0));return this===ie&&t(U,z)&&!t(Z,z)?!1:se||!t(this,z)||!t(U,z)||t(this,P)&&this[P][z]?se:!0},X=function(z,se){if(z=j(z),se=O(se,!0),z===ie&&t(U,se)&&!t(Z,se))return;var pe=H(z,se);return pe&&t(U,se)&&!(t(z,P)&&z[P][se])&&(pe.enumerable=!0),pe},B=function(z){for(var se=D(j(z)),pe=[],ge=0,me;se.length>ge;)!t(U,me=se[ge++])&&me!=P&&me!=d&&pe.push(me);return pe},Y=function(z){for(var se=z===ie,pe=D(se?Z:j(z)),ge=[],me=0,ve;pe.length>me;)t(U,ve=pe[me++])&&(se?t(ie,ve):!0)&&ge.push(U[ve]);return ge};re||(ae=function(){if(this instanceof ae)throw TypeError("Symbol is not a constructor!");var z=i(arguments.length>0?arguments[0]:void 0),se=function pe(ge){this===ie&&pe.call(Z,ge),t(this,P)&&t(this[P],z)&&(this[P][z]=!1),K(this,z,S(1,ge))};return y&&de&&K(ie,z,{configurable:!0,set:se}),Se(z)},h(ae[$],"toString",function(){return this._k}),M.f=X,R.f=q,e("./_object-gopn").f=p.f=B,e("./_object-pie").f=ce,C.f=Y,y&&!e("./_library")&&h(ie,"propertyIsEnumerable",ce,!0),b.f=function(k){return Se(o(k))}),f(f.G+f.W+f.F*!re,{Symbol:ae});for(var N="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),v=0;N.length>v;)o(N[v++]);for(var a=I(o.store),r=0;a.length>r;)m(a[r++]);f(f.S+f.F*!re,"Symbol",{for:function(z){return t(J,z+="")?J[z]:J[z]=ae(z)},keyFor:function(z){if(!oe(z))throw TypeError(z+" is not a symbol!");for(var se in J)if(J[se]===z)return se},useSetter:function(){de=!0},useSimple:function(){de=!1}}),f(f.S+f.F*!re,"Object",{create:ee,defineProperty:q,defineProperties:Q,getOwnPropertyDescriptor:X,getOwnPropertyNames:B,getOwnPropertySymbols:Y});var L=n(function(){C.f(1)});f(f.S+f.F*L,"Object",{getOwnPropertySymbols:function(z){return C.f(E(z))}}),V&&f(f.S+f.F*(!re||n(function(){var k=ae();return te([k])!="[null]"||te({a:k})!="{}"||te(Object(k))!="{}"})),"JSON",{stringify:function(z){for(var se=[z],pe=1,ge,me;arguments.length>pe;)se.push(arguments[pe++]);return me=ge=se[1],!x(ge)&&z===void 0||oe(z)?void 0:(A(ge)||(ge=function(be,Oe){if(typeof me=="function"&&(Oe=me.call(this,be,Oe)),!oe(Oe))return Oe}),se[1]=ge,te.apply(V,se))}}),ae[$][F]||e("./_hide")(ae[$],F,ae[$].valueOf),s(ae,"Symbol"),s(Math,"Math",!0),s(u.JSON,"JSON",!0)},{"./_an-object":95,"./_descriptors":103,"./_enum-keys":106,"./_export":107,"./_fails":108,"./_global":110,"./_has":111,"./_hide":112,"./_is-array":118,"./_is-object":119,"./_library":126,"./_meta":127,"./_object-create":131,"./_object-dp":132,"./_object-gopd":134,"./_object-gopn":136,"./_object-gopn-ext":135,"./_object-gops":137,"./_object-keys":140,"./_object-pie":141,"./_property-desc":146,"./_redefine":148,"./_set-to-string-tag":150,"./_shared":152,"./_to-iobject":158,"./_to-object":160,"./_to-primitive":161,"./_uid":162,"./_wks":166,"./_wks-define":164,"./_wks-ext":165}],182:[function(e,_,c){var u=e("./_export"),t=e("./_object-to-array")(!0);u(u.S,"Object",{entries:function(f){return t(f)}})},{"./_export":107,"./_object-to-array":143}],183:[function(e,_,c){"use strict";var u=e("./_export"),t=e("./_core"),y=e("./_global"),f=e("./_species-constructor"),h=e("./_promise-resolve");u(u.P+u.R,"Promise",{finally:function(n){var l=f(this,t.Promise||y.Promise),s=typeof n=="function";return this.then(s?function(i){return h(l,n()).then(function(){return i})}:n,s?function(i){return h(l,n()).then(function(){throw i})}:n)}})},{"./_core":99,"./_export":107,"./_global":110,"./_promise-resolve":145,"./_species-constructor":153}],184:[function(e,_,c){"use strict";var u=e("./_export"),t=e("./_new-promise-capability"),y=e("./_perform");u(u.S,"Promise",{try:function(h){var d=t.f(this),n=y(h);return(n.e?d.reject:d.resolve)(n.v),d.promise}})},{"./_export":107,"./_new-promise-capability":129,"./_perform":144}],185:[function(e,_,c){e("./_wks-define")("asyncIterator")},{"./_wks-define":164}],186:[function(e,_,c){e("./_wks-define")("observable")},{"./_wks-define":164}],187:[function(e,_,c){e("./es6.array.iterator");for(var u=e("./_global"),t=e("./_hide"),y=e("./_iterators"),f=e("./_wks")("toStringTag"),h="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),d=0;d<h.length;d++){var n=h[d],l=u[n],s=l&&l.prototype;s&&!s[f]&&t(s,f,n),y[n]=y.Array}},{"./_global":110,"./_hide":112,"./_iterators":125,"./_wks":166,"./es6.array.iterator":169}],188:[function(e,_,c){var u=e("./_export"),t=e("./_task");u(u.G+u.B,{setImmediate:t.set,clearImmediate:t.clear})},{"./_export":107,"./_task":155}],189:[function(e,_,c){(function(u){"use strict";var t=e("babel-runtime/helpers/typeof"),y=f(t);function f(O){return O&&O.__esModule?O:{default:O}}function h(O){return Array.isArray?Array.isArray(O):j(O)==="[object Array]"}c.isArray=h;function d(O){return typeof O=="boolean"}c.isBoolean=d;function n(O){return O===null}c.isNull=n;function l(O){return O==null}c.isNullOrUndefined=l;function s(O){return typeof O=="number"}c.isNumber=s;function i(O){return typeof O=="string"}c.isString=i;function o(O){return(typeof O=="undefined"?"undefined":(0,y.default)(O))==="symbol"}c.isSymbol=o;function b(O){return O===void 0}c.isUndefined=b;function m(O){return j(O)==="[object RegExp]"}c.isRegExp=m;function g(O){return(typeof O=="undefined"?"undefined":(0,y.default)(O))==="object"&&O!==null}c.isObject=g;function A(O){return j(O)==="[object Date]"}c.isDate=A;function T(O){return j(O)==="[object Error]"||O instanceof Error}c.isError=T;function x(O){return typeof O=="function"}c.isFunction=x;function E(O){return O===null||typeof O=="boolean"||typeof O=="number"||typeof O=="string"||(typeof O=="undefined"?"undefined":(0,y.default)(O))==="symbol"||typeof O=="undefined"}c.isPrimitive=E,c.isBuffer=u.isBuffer;function j(O){return Object.prototype.toString.call(O)}}).call(this,{isBuffer:e("../../is-buffer/index.js")})},{"../../is-buffer/index.js":197,"babel-runtime/helpers/typeof":67}],190:[function(e,_,c){"use strict";var u=e("babel-runtime/helpers/typeof"),t=y(u);function y(f){return f&&f.__esModule?f:{default:f}}(function(f){"use strict";var h=function(){var i=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,o=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,b=/[^-+\dA-Z]/g;return function(m,g,A,T){if(arguments.length===1&&s(m)==="string"&&!/\d/.test(m)&&(g=m,m=void 0),m=m||new Date,m instanceof Date||(m=new Date(m)),isNaN(m))throw TypeError("Invalid date");g=String(h.masks[g]||g||h.masks.default);var x=g.slice(0,4);(x==="UTC:"||x==="GMT:")&&(g=g.slice(4),A=!0,x==="GMT:"&&(T=!0));var E=A?"getUTC":"get",j=m[E+"Date"](),O=m[E+"Day"](),S=m[E+"Month"](),w=m[E+"FullYear"](),p=m[E+"Hours"](),M=m[E+"Minutes"](),C=m[E+"Seconds"](),R=m[E+"Milliseconds"](),I=A?0:m.getTimezoneOffset(),H=n(m),W=l(m),D={d:j,dd:d(j),ddd:h.i18n.dayNames[O],dddd:h.i18n.dayNames[O+7],m:S+1,mm:d(S+1),mmm:h.i18n.monthNames[S],mmmm:h.i18n.monthNames[S+12],yy:String(w).slice(2),yyyy:w,h:p%12||12,hh:d(p%12||12),H:p,HH:d(p),M,MM:d(M),s:C,ss:d(C),l:d(R,3),L:d(Math.round(R/10)),t:p<12?"a":"p",tt:p<12?"am":"pm",T:p<12?"A":"P",TT:p<12?"AM":"PM",Z:T?"GMT":A?"UTC":(String(m).match(o)||[""]).pop().replace(b,""),o:(I>0?"-":"+")+d(Math.floor(Math.abs(I)/60)*100+Math.abs(I)%60,4),S:["th","st","nd","rd"][j%10>3?0:(j%100-j%10!=10)*j%10],W:H,N:W};return g.replace(i,function(ae){return ae in D?D[ae]:ae.slice(1,ae.length-1)})}}();h.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},h.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};function d(i,o){for(i=String(i),o=o||2;i.length<o;)i="0"+i;return i}function n(i){var o=new Date(i.getFullYear(),i.getMonth(),i.getDate());o.setDate(o.getDate()-(o.getDay()+6)%7+3);var b=new Date(o.getFullYear(),0,4);b.setDate(b.getDate()-(b.getDay()+6)%7+3);var m=o.getTimezoneOffset()-b.getTimezoneOffset();o.setHours(o.getHours()-m);var g=(o-b)/(864e5*7);return 1+Math.floor(g)}function l(i){var o=i.getDay();return o===0&&(o=7),o}function s(i){return i===null?"null":i===void 0?"undefined":(typeof i=="undefined"?"undefined":(0,t.default)(i))!=="object"?typeof i=="undefined"?"undefined":(0,t.default)(i):Array.isArray(i)?"array":{}.toString.call(i).slice(8,-1).toLowerCase()}typeof define=="function"&&define.amd?define(function(){return h}):(typeof c=="undefined"?"undefined":(0,t.default)(c))==="object"?_.exports=h:f.dateFormat=h})(void 0)},{"babel-runtime/helpers/typeof":67}],191:[function(e,_,c){/*!
|
||
* escape-html
|
||
* Copyright(c) 2012-2013 TJ Holowaychuk
|
||
* Copyright(c) 2015 Andreas Lubbe
|
||
* Copyright(c) 2015 Tiancheng "Timothy" Gu
|
||
* MIT Licensed
|
||
*/"use strict";var u=/["'&<>]/;_.exports=t;function t(y){var f=""+y,h=u.exec(f);if(!h)return f;var d,n="",l=0,s=0;for(l=h.index;l<f.length;l++){switch(f.charCodeAt(l)){case 34:d=""";break;case 38:d="&";break;case 39:d="'";break;case 60:d="<";break;case 62:d=">";break;default:continue}s!==l&&(n+=f.substring(s,l)),s=l+1,n+=d}return s!==l?n+f.substring(s,l):n}},{}],192:[function(e,_,c){function u(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}_.exports=u,u.EventEmitter=u,u.prototype._events=void 0,u.prototype._maxListeners=void 0,u.defaultMaxListeners=10,u.prototype.setMaxListeners=function(d){if(!y(d)||d<0||isNaN(d))throw TypeError("n must be a positive number");return this._maxListeners=d,this},u.prototype.emit=function(d){var n,l,s,i,o,b;if(this._events||(this._events={}),d==="error"&&(!this._events.error||f(this._events.error)&&!this._events.error.length)){if(n=arguments[1],n instanceof Error)throw n;var m=new Error('Uncaught, unspecified "error" event. ('+n+")");throw m.context=n,m}if(l=this._events[d],h(l))return!1;if(t(l))switch(arguments.length){case 1:l.call(this);break;case 2:l.call(this,arguments[1]);break;case 3:l.call(this,arguments[1],arguments[2]);break;default:i=Array.prototype.slice.call(arguments,1),l.apply(this,i)}else if(f(l))for(i=Array.prototype.slice.call(arguments,1),b=l.slice(),s=b.length,o=0;o<s;o++)b[o].apply(this,i);return!0},u.prototype.addListener=function(d,n){var l;if(!t(n))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",d,t(n.listener)?n.listener:n),this._events[d]?f(this._events[d])?this._events[d].push(n):this._events[d]=[this._events[d],n]:this._events[d]=n,f(this._events[d])&&!this._events[d].warned&&(h(this._maxListeners)?l=u.defaultMaxListeners:l=this._maxListeners,l&&l>0&&this._events[d].length>l&&(this._events[d].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[d].length),typeof console.trace=="function"&&console.trace())),this},u.prototype.on=u.prototype.addListener,u.prototype.once=function(d,n){if(!t(n))throw TypeError("listener must be a function");var l=!1;function s(){this.removeListener(d,s),l||(l=!0,n.apply(this,arguments))}return s.listener=n,this.on(d,s),this},u.prototype.removeListener=function(d,n){var l,s,i,o;if(!t(n))throw TypeError("listener must be a function");if(!this._events||!this._events[d])return this;if(l=this._events[d],i=l.length,s=-1,l===n||t(l.listener)&&l.listener===n)delete this._events[d],this._events.removeListener&&this.emit("removeListener",d,n);else if(f(l)){for(o=i;o-- >0;)if(l[o]===n||l[o].listener&&l[o].listener===n){s=o;break}if(s<0)return this;l.length===1?(l.length=0,delete this._events[d]):l.splice(s,1),this._events.removeListener&&this.emit("removeListener",d,n)}return this},u.prototype.removeAllListeners=function(d){var n,l;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[d]&&delete this._events[d],this;if(arguments.length===0){for(n in this._events){if(n==="removeListener")continue;this.removeAllListeners(n)}return this.removeAllListeners("removeListener"),this._events={},this}if(l=this._events[d],t(l))this.removeListener(d,l);else if(l)for(;l.length;)this.removeListener(d,l[l.length-1]);return delete this._events[d],this},u.prototype.listeners=function(d){var n;return!this._events||!this._events[d]?n=[]:t(this._events[d])?n=[this._events[d]]:n=this._events[d].slice(),n},u.prototype.listenerCount=function(d){if(this._events){var n=this._events[d];if(t(n))return 1;if(n)return n.length}return 0},u.listenerCount=function(d,n){return d.listenerCount(n)};function t(d){return typeof d=="function"}function y(d){return typeof d=="number"}function f(d){return typeof d=="object"&&d!==null}function h(d){return d===void 0}},{}],193:[function(e,_,c){var u=e("http"),t=_.exports;for(var y in u)u.hasOwnProperty(y)&&(t[y]=u[y]);t.request=function(f,h){return f||(f={}),f.scheme="https",f.protocol="https:",u.request.call(this,f,h)}},{http:231}],194:[function(e,_,c){/*!
|
||
* humanize-ms - index.js
|
||
* Copyright(c) 2014 dead_horse <dead_horse@qq.com>
|
||
* MIT Licensed
|
||
*/"use strict";var u=e("util"),t=e("ms");_.exports=function(y){if(typeof y=="number")return y;var f=t(y);if(f===void 0){var h=new Error(u.format("humanize-ms(%j) result undefined",y));console.warn(h.stack)}return f}},{ms:204,util:243}],195:[function(e,_,c){c.read=function(u,t,y,f,h){var d,n,l=h*8-f-1,s=(1<<l)-1,i=s>>1,o=-7,b=y?h-1:0,m=y?-1:1,g=u[t+b];for(b+=m,d=g&(1<<-o)-1,g>>=-o,o+=l;o>0;d=d*256+u[t+b],b+=m,o-=8);for(n=d&(1<<-o)-1,d>>=-o,o+=f;o>0;n=n*256+u[t+b],b+=m,o-=8);if(d===0)d=1-i;else{if(d===s)return n?NaN:(g?-1:1)*Infinity;n=n+Math.pow(2,f),d=d-i}return(g?-1:1)*n*Math.pow(2,d-f)},c.write=function(u,t,y,f,h,d){var n,l,s,i=d*8-h-1,o=(1<<i)-1,b=o>>1,m=h===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=f?0:d-1,A=f?1:-1,T=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===Infinity?(l=isNaN(t)?1:0,n=o):(n=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-n))<1&&(n--,s*=2),n+b>=1?t+=m/s:t+=m*Math.pow(2,1-b),t*s>=2&&(n++,s/=2),n+b>=o?(l=0,n=o):n+b>=1?(l=(t*s-1)*Math.pow(2,h),n=n+b):(l=t*Math.pow(2,b-1)*Math.pow(2,h),n=0));h>=8;u[y+g]=l&255,g+=A,l/=256,h-=8);for(n=n<<h|l,i+=h;i>0;u[y+g]=n&255,g+=A,n/=256,i-=8);u[y+g-A]|=T*128}},{}],196:[function(e,_,c){typeof Object.create=="function"?_.exports=function(t,y){y&&(t.super_=y,t.prototype=Object.create(y.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:_.exports=function(t,y){if(y){t.super_=y;var f=function(){};f.prototype=y.prototype,t.prototype=new f,t.prototype.constructor=t}}},{}],197:[function(e,_,c){/*!
|
||
* Determine if an object is a Buffer
|
||
*
|
||
* @author Feross Aboukhadijeh <https://feross.org>
|
||
* @license MIT
|
||
*/_.exports=function(y){return y!=null&&(u(y)||t(y)||!!y._isBuffer)};function u(y){return!!y.constructor&&typeof y.constructor.isBuffer=="function"&&y.constructor.isBuffer(y)}function t(y){return typeof y.readFloatLE=="function"&&typeof y.slice=="function"&&u(y.slice(0,0))}},{}],198:[function(e,_,c){var u={}.toString;_.exports=Array.isArray||function(t){return u.call(t)=="[object Array]"}},{}],199:[function(require,module,exports){(function(global){(function(e,_){typeof exports=="object"&&typeof module!="undefined"?module.exports=_(e):typeof define=="function"&&define.amd?define(_):_(e)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:this,function(global){"use strict";global=global||{};var _Base64=global.Base64,version="2.5.2",buffer;if(typeof module!="undefined"&&module.exports)try{buffer=eval("require('buffer').Buffer")}catch(e){buffer=void 0}var b64chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b64tab=function(e){for(var _={},c=0,u=e.length;c<u;c++)_[e.charAt(c)]=c;return _}(b64chars),fromCharCode=String.fromCharCode,cb_utob=function(_){if(_.length<2){var c=_.charCodeAt(0);return c<128?_:c<2048?fromCharCode(192|c>>>6)+fromCharCode(128|c&63):fromCharCode(224|c>>>12&15)+fromCharCode(128|c>>>6&63)+fromCharCode(128|c&63)}else{var c=65536+(_.charCodeAt(0)-55296)*1024+(_.charCodeAt(1)-56320);return fromCharCode(240|c>>>18&7)+fromCharCode(128|c>>>12&63)+fromCharCode(128|c>>>6&63)+fromCharCode(128|c&63)}},re_utob=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,utob=function(_){return _.replace(re_utob,cb_utob)},cb_encode=function(_){var c=[0,2,1][_.length%3],u=_.charCodeAt(0)<<16|(_.length>1?_.charCodeAt(1):0)<<8|(_.length>2?_.charCodeAt(2):0),t=[b64chars.charAt(u>>>18),b64chars.charAt(u>>>12&63),c>=2?"=":b64chars.charAt(u>>>6&63),c>=1?"=":b64chars.charAt(u&63)];return t.join("")},btoa=global.btoa?function(e){return global.btoa(e)}:function(e){return e.replace(/[\s\S]{1,3}/g,cb_encode)},_encode=function(_){var c=Object.prototype.toString.call(_)==="[object Uint8Array]";return c?_.toString("base64"):btoa(utob(String(_)))},encode=function(_,c){return c?_encode(String(_)).replace(/[+\/]/g,function(u){return u=="+"?"-":"_"}).replace(/=/g,""):_encode(_)},encodeURI=function(_){return encode(_,!0)},re_btou=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,cb_btou=function(_){switch(_.length){case 4:var c=(7&_.charCodeAt(0))<<18|(63&_.charCodeAt(1))<<12|(63&_.charCodeAt(2))<<6|63&_.charCodeAt(3),u=c-65536;return fromCharCode((u>>>10)+55296)+fromCharCode((u&1023)+56320);case 3:return fromCharCode((15&_.charCodeAt(0))<<12|(63&_.charCodeAt(1))<<6|63&_.charCodeAt(2));default:return fromCharCode((31&_.charCodeAt(0))<<6|63&_.charCodeAt(1))}},btou=function(_){return _.replace(re_btou,cb_btou)},cb_decode=function(_){var c=_.length,u=c%4,t=(c>0?b64tab[_.charAt(0)]<<18:0)|(c>1?b64tab[_.charAt(1)]<<12:0)|(c>2?b64tab[_.charAt(2)]<<6:0)|(c>3?b64tab[_.charAt(3)]:0),y=[fromCharCode(t>>>16),fromCharCode(t>>>8&255),fromCharCode(t&255)];return y.length-=[0,0,2,1][u],y.join("")},_atob=global.atob?function(e){return global.atob(e)}:function(e){return e.replace(/\S{1,4}/g,cb_decode)},atob=function(_){return _atob(String(_).replace(/[^A-Za-z0-9\+\/]/g,""))},_decode=buffer?buffer.from&&Uint8Array&&buffer.from!==Uint8Array.from?function(e){return(e.constructor===buffer.constructor?e:buffer.from(e,"base64")).toString()}:function(e){return(e.constructor===buffer.constructor?e:new buffer(e,"base64")).toString()}:function(e){return btou(_atob(e))},decode=function(_){return _decode(String(_).replace(/[-_]/g,function(c){return c=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))},noConflict=function(){var _=global.Base64;return global.Base64=_Base64,_};if(global.Base64={VERSION:version,atob,btoa,fromBase64:decode,toBase64:encode,utob,encode,encodeURI,btou,decode,noConflict,__buffer__:buffer},typeof Object.defineProperty=="function"){var noEnum=function(_){return{value:_,enumerable:!1,writable:!0,configurable:!0}};global.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",noEnum(function(){return decode(this)})),Object.defineProperty(String.prototype,"toBase64",noEnum(function(e){return encode(this,e)})),Object.defineProperty(String.prototype,"toBase64URI",noEnum(function(){return encode(this,!0)}))}}return global.Meteor&&(Base64=global.Base64),typeof module!="undefined"&&module.exports?module.exports.Base64=global.Base64:typeof define=="function"&&define.amd&&define([],function(){return global.Base64}),{Base64:global.Base64}})}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],200:[function(e,_,c){/*!
|
||
* merge-descriptors
|
||
* Copyright(c) 2014 Jonathan Ong
|
||
* Copyright(c) 2015 Douglas Christopher Wilson
|
||
* MIT Licensed
|
||
*/"use strict";_.exports=t;var u=Object.prototype.hasOwnProperty;function t(y,f,h){if(!y)throw new TypeError("argument dest is required");if(!f)throw new TypeError("argument src is required");return h===void 0&&(h=!0),Object.getOwnPropertyNames(f).forEach(function(n){if(!h&&u.call(y,n))return;var l=Object.getOwnPropertyDescriptor(f,n);Object.defineProperty(y,n,l)}),y}},{}],201:[function(e,_,c){"use strict";function u(){this._types=Object.create(null),this._extensions=Object.create(null);for(var t=0;t<arguments.length;t++)this.define(arguments[t]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}u.prototype.define=function(t,y){for(var f in t){var h=t[f].map(function(l){return l.toLowerCase()});f=f.toLowerCase();for(var d=0;d<h.length;d++){var n=h[d];if(n[0]=="*")continue;if(!y&&n in this._types)throw new Error('Attempt to change mapping for "'+n+'" extension from "'+this._types[n]+'" to "'+f+'". Pass `force=true` to allow this, otherwise remove "'+n+'" from the list of extensions for "'+f+'".');this._types[n]=f}if(y||!this._extensions[f]){var n=h[0];this._extensions[f]=n[0]!="*"?n:n.substr(1)}}},u.prototype.getType=function(t){t=String(t);var y=t.replace(/^.*[/\\]/,"").toLowerCase(),f=y.replace(/^.*\./,"").toLowerCase(),h=y.length<t.length,d=f.length<y.length-1;return(d||!h)&&this._types[f]||null},u.prototype.getExtension=function(t){return t=/^\s*([^;\s]*)/.test(t)&&RegExp.$1,t&&this._extensions[t.toLowerCase()]||null},_.exports=u},{}],202:[function(e,_,c){"use strict";var u=e("./Mime");_.exports=new u(e("./types/standard"))},{"./Mime":201,"./types/standard":203}],203:[function(e,_,c){_.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma","es"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/mrb-consumer+xml":["*xdf"],"application/mrb-publish+xml":["*xdf"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["*xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/ttml+xml":["ttml"],"application/urc-ressheet+xml":["rsheet"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-error+xml":["xer"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}},{}],204:[function(e,_,c){var u=1e3,t=u*60,y=t*60,f=y*24,h=f*7,d=f*365.25;_.exports=function(o,b){b=b||{};var m=typeof o;if(m==="string"&&o.length>0)return n(o);if(m==="number"&&isFinite(o))return b.long?s(o):l(o);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(o))};function n(o){if(o=String(o),o.length>100)return;var b=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(o);if(!b)return;var m=parseFloat(b[1]),g=(b[2]||"ms").toLowerCase();switch(g){case"years":case"year":case"yrs":case"yr":case"y":return m*d;case"weeks":case"week":case"w":return m*h;case"days":case"day":case"d":return m*f;case"hours":case"hour":case"hrs":case"hr":case"h":return m*y;case"minutes":case"minute":case"mins":case"min":case"m":return m*t;case"seconds":case"second":case"secs":case"sec":case"s":return m*u;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return m;default:return}}function l(o){var b=Math.abs(o);return b>=f?Math.round(o/f)+"d":b>=y?Math.round(o/y)+"h":b>=t?Math.round(o/t)+"m":b>=u?Math.round(o/u)+"s":o+"ms"}function s(o){var b=Math.abs(o);return b>=f?i(o,b,f,"day"):b>=y?i(o,b,y,"hour"):b>=t?i(o,b,t,"minute"):b>=u?i(o,b,u,"second"):o+" ms"}function i(o,b,m,g){var A=b>=m*1.5;return Math.round(o/m)+" "+g+(A?"s":"")}},{}],205:[function(e,_,c){(function(u){function t(d,n){for(var l=0,s=d.length-1;s>=0;s--){var i=d[s];i==="."?d.splice(s,1):i===".."?(d.splice(s,1),l++):l&&(d.splice(s,1),l--)}if(n)for(;l--;l)d.unshift("..");return d}c.resolve=function(){for(var d="",n=!1,l=arguments.length-1;l>=-1&&!n;l--){var s=l>=0?arguments[l]:u.cwd();if(typeof s!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!s)continue;d=s+"/"+d,n=s.charAt(0)==="/"}return d=t(f(d.split("/"),function(i){return!!i}),!n).join("/"),(n?"/":"")+d||"."},c.normalize=function(d){var n=c.isAbsolute(d),l=h(d,-1)==="/";return d=t(f(d.split("/"),function(s){return!!s}),!n).join("/"),!d&&!n&&(d="."),d&&l&&(d+="/"),(n?"/":"")+d},c.isAbsolute=function(d){return d.charAt(0)==="/"},c.join=function(){var d=Array.prototype.slice.call(arguments,0);return c.normalize(f(d,function(n,l){if(typeof n!="string")throw new TypeError("Arguments to path.join must be strings");return n}).join("/"))},c.relative=function(d,n){d=c.resolve(d).substr(1),n=c.resolve(n).substr(1);function l(A){for(var T=0;T<A.length&&!(A[T]!=="");T++);for(var x=A.length-1;x>=0&&!(A[x]!=="");x--);return T>x?[]:A.slice(T,x-T+1)}for(var s=l(d.split("/")),i=l(n.split("/")),o=Math.min(s.length,i.length),b=o,m=0;m<o;m++)if(s[m]!==i[m]){b=m;break}for(var g=[],m=b;m<s.length;m++)g.push("..");return g=g.concat(i.slice(b)),g.join("/")},c.sep="/",c.delimiter=":",c.dirname=function(d){if(typeof d!="string"&&(d=d+""),d.length===0)return".";for(var n=d.charCodeAt(0),l=n===47,s=-1,i=!0,o=d.length-1;o>=1;--o)if(n=d.charCodeAt(o),n===47){if(!i){s=o;break}}else i=!1;return s===-1?l?"/":".":l&&s===1?"/":d.slice(0,s)};function y(d){typeof d!="string"&&(d=d+"");var n=0,l=-1,s=!0,i;for(i=d.length-1;i>=0;--i)if(d.charCodeAt(i)===47){if(!s){n=i+1;break}}else l===-1&&(s=!1,l=i+1);return l===-1?"":d.slice(n,l)}c.basename=function(d,n){var l=y(d);return n&&l.substr(-1*n.length)===n&&(l=l.substr(0,l.length-n.length)),l},c.extname=function(d){typeof d!="string"&&(d=d+"");for(var n=-1,l=0,s=-1,i=!0,o=0,b=d.length-1;b>=0;--b){var m=d.charCodeAt(b);if(m===47){if(!i){l=b+1;break}continue}s===-1&&(i=!1,s=b+1),m===46?n===-1?n=b:o!==1&&(o=1):n!==-1&&(o=-1)}return n===-1||s===-1||o===0||o===1&&n===s-1&&n===l+1?"":d.slice(n,s)};function f(d,n){if(d.filter)return d.filter(n);for(var l=[],s=0;s<d.length;s++)n(d[s],s,d)&&l.push(d[s]);return l}var h="ab".substr(-1)==="b"?function(d,n,l){return d.substr(n,l)}:function(d,n,l){return n<0&&(n=d.length+n),d.substr(n,l)}}).call(this,e("_process"))},{_process:208}],206:[function(e,_,c){(function(u){/*!
|
||
* Platform.js <https://mths.be/platform>
|
||
* Copyright 2014-2018 Benjamin Tan <https://bnjmnt4n.now.sh/>
|
||
* Copyright 2011-2013 John-David Dalton <http://allyoucanleet.com/>
|
||
* Available under MIT license <https://mths.be/mit>
|
||
*/(function(){"use strict";var t={function:!0,object:!0},y=t[typeof window]&&window||this,f=y,h=t[typeof c]&&c,d=t[typeof _]&&_&&!_.nodeType&&_,n=h&&d&&typeof u=="object"&&u;n&&(n.global===n||n.window===n||n.self===n)&&(y=n);var l=Math.pow(2,53)-1,s=/\bOpera/,i=this,o=Object.prototype,b=o.hasOwnProperty,m=o.toString;function g(R){return R=String(R),R.charAt(0).toUpperCase()+R.slice(1)}function A(R,I,H){var W={"10.0":"10","6.4":"10 Technical Preview","6.3":"8.1","6.2":"8","6.1":"Server 2008 R2 / 7","6.0":"Server 2008 / Vista","5.2":"Server 2003 / XP 64-bit","5.1":"XP","5.01":"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return I&&H&&/^Win/i.test(R)&&!/^Windows Phone /i.test(R)&&(W=W[/[\d.]+$/.exec(R)])&&(R="Windows "+W),R=String(R),I&&H&&(R=R.replace(RegExp(I,"i"),H)),R=x(R.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0]),R}function T(R,I){var H=-1,W=R?R.length:0;if(typeof W=="number"&&W>-1&&W<=l)for(;++H<W;)I(R[H],H,R);else E(R,I)}function x(R){return R=p(R),/^(?:webOS|i(?:OS|P))/.test(R)?R:g(R)}function E(R,I){for(var H in R)b.call(R,H)&&I(R[H],H,R)}function j(R){return R==null?g(R):m.call(R).slice(8,-1)}function O(R,I){var H=R!=null?typeof R[I]:"number";return!/^(?:boolean|number|string|undefined)$/.test(H)&&(H=="object"?!!R[I]:!0)}function S(R){return String(R).replace(/([ -])(?!$)/g,"$1?")}function w(R,I){var H=null;return T(R,function(W,D){H=I(H,W,D,R)}),H}function p(R){return String(R).replace(/^ +| +$/g,"")}function M(R){var I=y,H=R&&typeof R=="object"&&j(R)!="String";H&&(I=R,R=null);var W=I.navigator||{},D=W.userAgent||"";R||(R=D);var ae=H||i==f,V=H?!!W.likeChrome:/\bChrome\b/.test(R)&&!/internal|\n/i.test(m.toString()),te="Object",$=H?te:"ScriptBridgingProxyObject",P=H?te:"Environment",F=H&&I.java?"JavaPackage":j(I.java),G=H?te:"RuntimeObject",J=/\bJava/.test(F)&&I.java,U=J&&j(I.environment)==P,Z=J?"a":"\u03B1",ie=J?"b":"\u03B2",re=I.document||{},le=I.operamini||I.opera,de=s.test(de=H&&le?le["[[Class]]"]:j(le))?de:le=null,K,Se=R,oe=[],q=null,Q=R==D,ee=Q&&le&&typeof le.version=="function"&&le.version(),ce,X=a([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),B=L(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"Edge"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Waterfox","WebPositive","Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chrome",{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]),Y=z([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),N=r({Apple:{iPad:1,iPhone:1,iPod:1},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1}}),v=k(["Windows Phone","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian","Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "]);function a(me){return w(me,function(ve,be){return ve||RegExp("\\b"+(be.pattern||S(be))+"\\b","i").exec(R)&&(be.label||be)})}function r(me){return w(me,function(ve,be,Oe){return ve||(be[Y]||be[/^[a-z]+(?: +[a-z]+\b)*/i.exec(Y)]||RegExp("\\b"+S(Oe)+"(?:\\b|\\w*\\d)","i").exec(R))&&Oe})}function L(me){return w(me,function(ve,be){return ve||RegExp("\\b"+(be.pattern||S(be))+"\\b","i").exec(R)&&(be.label||be)})}function k(me){return w(me,function(ve,be){var Oe=be.pattern||S(be);return!ve&&(ve=RegExp("\\b"+Oe+"(?:/[\\d.]+|[ \\w.]*)","i").exec(R))&&(ve=A(ve,Oe,be.label||be)),ve})}function z(me){return w(me,function(ve,be){var Oe=be.pattern||S(be);return!ve&&(ve=RegExp("\\b"+Oe+" *\\d+[.\\w_]*","i").exec(R)||RegExp("\\b"+Oe+" *\\w+-[\\w]*","i").exec(R)||RegExp("\\b"+Oe+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(R))&&((ve=String(be.label&&!RegExp(Oe,"i").test(be.label)?be.label:ve).split("/"))[1]&&!/[\d.]+/.test(ve[0])&&(ve[0]+=" "+ve[1]),be=be.label||be,ve=x(ve[0].replace(RegExp(Oe,"i"),be).replace(RegExp("; *(?:"+be+"[_-])?","i")," ").replace(RegExp("("+be+")[-_.]?(\\w)","i"),"$1 $2"))),ve})}function se(me){return w(me,function(ve,be){return ve||(RegExp(be+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(R)||0)[1]||null})}function pe(){return this.description||""}if(X&&(X=[X]),N&&!Y&&(Y=z([N])),(K=/\bGoogle TV\b/.exec(Y))&&(Y=K[0]),/\bSimulator\b/i.test(R)&&(Y=(Y?Y+" ":"")+"Simulator"),B=="Opera Mini"&&/\bOPiOS\b/.test(R)&&oe.push("running in Turbo/Uncompressed mode"),B=="IE"&&/\blike iPhone OS\b/.test(R)?(K=M(R.replace(/like iPhone OS/,"")),N=K.manufacturer,Y=K.product):/^iP/.test(Y)?(B||(B="Safari"),v="iOS"+((K=/ OS ([\d_]+)/i.exec(R))?" "+K[1].replace(/_/g,"."):"")):B=="Konqueror"&&!/buntu/i.test(v)?v="Kubuntu":N&&N!="Google"&&(/Chrome/.test(B)&&!/\bMobile Safari\b/i.test(R)||/\bVita\b/.test(Y))||/\bAndroid\b/.test(v)&&/^Chrome/.test(B)&&/\bVersion\//i.test(R)?(B="Android Browser",v=/\bAndroid\b/.test(v)?v:"Android"):B=="Silk"?(/\bMobi/i.test(R)||(v="Android",oe.unshift("desktop mode")),/Accelerated *= *true/i.test(R)&&oe.unshift("accelerated")):B=="PaleMoon"&&(K=/\bFirefox\/([\d.]+)\b/.exec(R))?oe.push("identifying as Firefox "+K[1]):B=="Firefox"&&(K=/\b(Mobile|Tablet|TV)\b/i.exec(R))?(v||(v="Firefox OS"),Y||(Y=K[1])):!B||(K=!/\bMinefield\b/i.test(R)&&/\b(?:Firefox|Safari)\b/.exec(B))?(B&&!Y&&/[\/,]|^[^(]+?\)/.test(R.slice(R.indexOf(K+"/")+8))&&(B=null),(K=Y||N||v)&&(Y||N||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(v))&&(B=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(v)?v:K)+" Browser")):B=="Electron"&&(K=(/\bChrome\/([\d.]+)\b/.exec(R)||0)[1])&&oe.push("Chromium "+K),ee||(ee=se(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",S(B),"(?:Firefox|Minefield|NetFront)"])),(K=X=="iCab"&&parseFloat(ee)>3&&"WebKit"||/\bOpera\b/.test(B)&&(/\bOPR\b/.test(R)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(R)&&!/^(?:Trident|EdgeHTML)$/.test(X)&&"WebKit"||!X&&/\bMSIE\b/i.test(R)&&(v=="Mac OS"?"Tasman":"Trident")||X=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(B)&&"NetFront")&&(X=[K]),B=="IE"&&(K=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(R)||0)[1])?(B+=" Mobile",v="Windows Phone "+(/\+$/.test(K)?K:K+".x"),oe.unshift("desktop mode")):/\bWPDesktop\b/i.test(R)?(B="IE Mobile",v="Windows Phone 8.x",oe.unshift("desktop mode"),ee||(ee=(/\brv:([\d.]+)/.exec(R)||0)[1])):B!="IE"&&X=="Trident"&&(K=/\brv:([\d.]+)/.exec(R))&&(B&&oe.push("identifying as "+B+(ee?" "+ee:"")),B="IE",ee=K[1]),Q){if(O(I,"global"))if(J&&(K=J.lang.System,Se=K.getProperty("os.arch"),v=v||K.getProperty("os.name")+" "+K.getProperty("os.version")),U){try{ee=I.require("ringo/engine").version.join("."),B="RingoJS"}catch(me){(K=I.system)&&K.global.system==I.system&&(B="Narwhal",v||(v=K[0].os||null))}B||(B="Rhino")}else typeof I.process=="object"&&!I.process.browser&&(K=I.process)&&(typeof K.versions=="object"&&(typeof K.versions.electron=="string"?(oe.push("Node "+K.versions.node),B="Electron",ee=K.versions.electron):typeof K.versions.nw=="string"&&(oe.push("Chromium "+ee,"Node "+K.versions.node),B="NW.js",ee=K.versions.nw)),B||(B="Node.js",Se=K.arch,v=K.platform,ee=/[\d.]+/.exec(K.version),ee=ee?ee[0]:null));else j(K=I.runtime)==$?(B="Adobe AIR",v=K.flash.system.Capabilities.os):j(K=I.phantom)==G?(B="PhantomJS",ee=(K=K.version||null)&&K.major+"."+K.minor+"."+K.patch):typeof re.documentMode=="number"&&(K=/\bTrident\/(\d+)/i.exec(R))?(ee=[ee,re.documentMode],(K=+K[1]+4)!=ee[1]&&(oe.push("IE "+ee[1]+" mode"),X&&(X[1]=""),ee[1]=K),ee=B=="IE"?String(ee[1].toFixed(1)):ee[0]):typeof re.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(B)&&(oe.push("masking as "+B+" "+ee),B="IE",ee="11.0",X=["Trident"],v="Windows");v=v&&x(v)}if(ee&&(K=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(ee)||/(?:alpha|beta)(?: ?\d)?/i.exec(R+";"+(Q&&W.appMinorVersion))||/\bMinefield\b/i.test(R)&&"a")&&(q=/b/i.test(K)?"beta":"alpha",ee=ee.replace(RegExp(K+"\\+?$"),"")+(q=="beta"?ie:Z)+(/\d+\+?/.exec(K)||"")),B=="Fennec"||B=="Firefox"&&/\b(?:Android|Firefox OS)\b/.test(v))B="Firefox Mobile";else if(B=="Maxthon"&&ee)ee=ee.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(Y))Y=="Xbox 360"&&(v=null),Y=="Xbox 360"&&/\bIEMobile\b/.test(R)&&oe.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(B)||B&&!Y&&!/Browser|Mobi/.test(B))&&(v=="Windows CE"||/Mobi/i.test(R)))B+=" Mobile";else if(B=="IE"&&Q)try{I.external===null&&oe.unshift("platform preview")}catch(me){oe.unshift("embedded")}else(/\bBlackBerry\b/.test(Y)||/\bBB10\b/.test(R))&&(K=(RegExp(Y.replace(/ +/g," *")+"/([.\\d]+)","i").exec(R)||0)[1]||ee)?(K=[K,/BB10/.test(R)],v=(K[1]?(Y=null,N="BlackBerry"):"Device Software")+" "+K[0],ee=null):this!=E&&Y!="Wii"&&(Q&&le||/Opera/.test(B)&&/\b(?:MSIE|Firefox)\b/i.test(R)||B=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(v)||B=="IE"&&(v&&!/^Win/.test(v)&&ee>5.5||/\bWindows XP\b/.test(v)&&ee>8||ee==8&&!/\bTrident\b/.test(R)))&&!s.test(K=M.call(E,R.replace(s,"")+";"))&&K.name&&(K="ing as "+K.name+((K=K.version)?" "+K:""),s.test(B)?(/\bIE\b/.test(K)&&v=="Mac OS"&&(v=null),K="identify"+K):(K="mask"+K,de?B=x(de.replace(/([a-z])([A-Z])/g,"$1 $2")):B="Opera",/\bIE\b/.test(K)&&(v=null),Q||(ee=null)),X=["Presto"],oe.push(K));(K=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(R)||0)[1])&&(K=[parseFloat(K.replace(/\.(\d)$/,".0$1")),K],B=="Safari"&&K[1].slice(-1)=="+"?(B="WebKit Nightly",q="alpha",ee=K[1].slice(0,-1)):(ee==K[1]||ee==(K[2]=(/\bSafari\/([\d.]+\+?)/i.exec(R)||0)[1]))&&(ee=null),K[1]=(/\bChrome\/([\d.]+)/i.exec(R)||0)[1],K[0]==537.36&&K[2]==537.36&&parseFloat(K[1])>=28&&X=="WebKit"&&(X=["Blink"]),!Q||!V&&!K[1]?(X&&(X[1]="like Safari"),K=(K=K[0],K<400?1:K<500?2:K<526?3:K<533?4:K<534?"4+":K<535?5:K<537?6:K<538?7:K<601?8:"8")):(X&&(X[1]="like Chrome"),K=K[1]||(K=K[0],K<530?1:K<532?2:K<532.05?3:K<533?4:K<534.03?5:K<534.07?6:K<534.1?7:K<534.13?8:K<534.16?9:K<534.24?10:K<534.3?11:K<535.01?12:K<535.02?"13+":K<535.07?15:K<535.11?16:K<535.19?17:K<536.05?18:K<536.1?19:K<537.01?20:K<537.11?"21+":K<537.13?23:K<537.18?24:K<537.24?25:K<537.36?26:X!="Blink"?"27":"28")),X&&(X[1]+=" "+(K+=typeof K=="number"?".x":/[.+]/.test(K)?"":"+")),B=="Safari"&&(!ee||parseInt(ee)>45)&&(ee=K)),B=="Opera"&&(K=/\bzbov|zvav$/.exec(v))?(B+=" ",oe.unshift("desktop mode"),K=="zvav"?(B+="Mini",ee=null):B+="Mobile",v=v.replace(RegExp(" *"+K+"$"),"")):B=="Safari"&&/\bChrome\b/.exec(X&&X[1])&&(oe.unshift("desktop mode"),B="Chrome Mobile",ee=null,/\bOS X\b/.test(v)?(N="Apple",v="iOS 4.3+"):v=null),ee&&ee.indexOf(K=/[\d.]+$/.exec(v))==0&&R.indexOf("/"+K+"-")>-1&&(v=p(v.replace(K,""))),X&&!/\b(?:Avant|Nook)\b/.test(B)&&(/Browser|Lunascape|Maxthon/.test(B)||B!="Safari"&&/^iOS/.test(v)&&/\bSafari\b/.test(X[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(B)&&X[1])&&((K=X[X.length-1])&&oe.push(K)),oe.length&&(oe=["("+oe.join("; ")+")"]),N&&Y&&Y.indexOf(N)<0&&oe.push("on "+N),Y&&oe.push((/^on /.test(oe[oe.length-1])?"":"on ")+Y),v&&(K=/ ([\d.+]+)$/.exec(v),ce=K&&v.charAt(v.length-K[0].length-1)=="/",v={architecture:32,family:K&&!ce?v.replace(K[0],""):v,version:K?K[1]:null,toString:function(){var ve=this.version;return this.family+(ve&&!ce?" "+ve:"")+(this.architecture==64?" 64-bit":"")}}),(K=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(Se))&&!/\bi686\b/i.test(Se)?(v&&(v.architecture=64,v.family=v.family.replace(RegExp(" *"+K),"")),B&&(/\bWOW64\b/i.test(R)||Q&&/\w(?:86|32)$/.test(W.cpuClass||W.platform)&&!/\bWin64; x64\b/i.test(R))&&oe.unshift("32-bit")):v&&/^OS X/.test(v.family)&&B=="Chrome"&&parseFloat(ee)>=39&&(v.architecture=64),R||(R=null);var ge={};return ge.description=R,ge.layout=X&&X[0],ge.manufacturer=N,ge.name=B,ge.prerelease=q,ge.product=Y,ge.ua=R,ge.version=B&&ee,ge.os=v||{architecture:null,family:null,version:null,toString:function(){return"null"}},ge.parse=M,ge.toString=pe,ge.version&&oe.unshift(ee),ge.name&&oe.unshift(B),v&&B&&!(v==String(v).split(" ")[0]&&(v==B.split(" ")[0]||Y))&&oe.push(Y?"("+v+")":"on "+v),oe.length&&(ge.description=oe.join(" ")),ge}var C=M();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(y.platform=C,define(function(){return C})):h&&d?E(C,function(R,I){h[I]=R}):y.platform=C}).call(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],207:[function(e,_,c){(function(u){"use strict";typeof u=="undefined"||!u.version||u.version.indexOf("v0.")===0||u.version.indexOf("v1.")===0&&u.version.indexOf("v1.8.")!==0?_.exports={nextTick:t}:_.exports=u;function t(y,f,h,d){if(typeof y!="function")throw new TypeError('"callback" argument must be a function');var n=arguments.length,l,s;switch(n){case 0:case 1:return u.nextTick(y);case 2:return u.nextTick(function(){y.call(null,f)});case 3:return u.nextTick(function(){y.call(null,f,h)});case 4:return u.nextTick(function(){y.call(null,f,h,d)});default:for(l=new Array(n-1),s=0;s<l.length;)l[s++]=arguments[s];return u.nextTick(function(){y.apply(null,l)})}}}).call(this,e("_process"))},{_process:208}],208:[function(e,_,c){var u=_.exports={},t,y;function f(){throw new Error("setTimeout has not been defined")}function h(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?t=setTimeout:t=f}catch(T){t=f}try{typeof clearTimeout=="function"?y=clearTimeout:y=h}catch(T){y=h}})();function d(T){if(t===setTimeout)return setTimeout(T,0);if((t===f||!t)&&setTimeout)return t=setTimeout,setTimeout(T,0);try{return t(T,0)}catch(x){try{return t.call(null,T,0)}catch(E){return t.call(this,T,0)}}}function n(T){if(y===clearTimeout)return clearTimeout(T);if((y===h||!y)&&clearTimeout)return y=clearTimeout,clearTimeout(T);try{return y(T)}catch(x){try{return y.call(null,T)}catch(E){return y.call(this,T)}}}var l=[],s=!1,i,o=-1;function b(){if(!s||!i)return;s=!1,i.length?l=i.concat(l):o=-1,l.length&&m()}function m(){if(s)return;var T=d(b);s=!0;for(var x=l.length;x;){for(i=l,l=[];++o<x;)i&&i[o].run();o=-1,x=l.length}i=null,s=!1,n(T)}u.nextTick=function(T){var x=new Array(arguments.length-1);if(arguments.length>1)for(var E=1;E<arguments.length;E++)x[E-1]=arguments[E];l.push(new g(T,x)),l.length===1&&!s&&d(m)};function g(T,x){this.fun=T,this.array=x}g.prototype.run=function(){this.fun.apply(null,this.array)},u.title="browser",u.browser=!0,u.env={},u.argv=[],u.version="",u.versions={};function A(){}u.on=A,u.addListener=A,u.once=A,u.off=A,u.removeListener=A,u.removeAllListeners=A,u.emit=A,u.prependListener=A,u.prependOnceListener=A,u.listeners=function(T){return[]},u.binding=function(T){throw new Error("process.binding is not supported")},u.cwd=function(){return"/"},u.chdir=function(T){throw new Error("process.chdir is not supported")},u.umask=function(){return 0}},{}],209:[function(e,_,c){(function(u){/*! https://mths.be/punycode v1.4.1 by @mathias */(function(t){var y=typeof c=="object"&&c&&!c.nodeType&&c,f=typeof _=="object"&&_&&!_.nodeType&&_,h=typeof u=="object"&&u;(h.global===h||h.window===h||h.self===h)&&(t=h);var d,n=2147483647,l=36,s=1,i=26,o=38,b=700,m=72,g=128,A="-",T=/^xn--/,x=/[^\x20-\x7E]/,E=/[\x2E\u3002\uFF0E\uFF61]/g,j={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},O=l-s,S=Math.floor,w=String.fromCharCode,p;function M(F){throw new RangeError(j[F])}function C(F,G){for(var J=F.length,U=[];J--;)U[J]=G(F[J]);return U}function R(F,G){var J=F.split("@"),U="";J.length>1&&(U=J[0]+"@",F=J[1]),F=F.replace(E,".");var Z=F.split("."),ie=C(Z,G).join(".");return U+ie}function I(F){for(var G=[],J=0,U=F.length,Z,ie;J<U;)Z=F.charCodeAt(J++),Z>=55296&&Z<=56319&&J<U?(ie=F.charCodeAt(J++),(ie&64512)==56320?G.push(((Z&1023)<<10)+(ie&1023)+65536):(G.push(Z),J--)):G.push(Z);return G}function H(F){return C(F,function(G){var J="";return G>65535&&(G-=65536,J+=w(G>>>10&1023|55296),G=56320|G&1023),J+=w(G),J}).join("")}function W(F){return F-48<10?F-22:F-65<26?F-65:F-97<26?F-97:l}function D(F,G){return F+22+75*(F<26)-((G!=0)<<5)}function ae(F,G,J){var U=0;for(F=J?S(F/b):F>>1,F+=S(F/G);F>O*i>>1;U+=l)F=S(F/O);return S(U+(O+1)*F/(F+o))}function V(F){var G=[],J=F.length,U,Z=0,ie=g,re=m,le,de,K,Se,oe,q,Q,ee,ce;for(le=F.lastIndexOf(A),le<0&&(le=0),de=0;de<le;++de)F.charCodeAt(de)>=128&&M("not-basic"),G.push(F.charCodeAt(de));for(K=le>0?le+1:0;K<J;){for(Se=Z,oe=1,q=l;!(K>=J&&M("invalid-input"),Q=W(F.charCodeAt(K++)),(Q>=l||Q>S((n-Z)/oe))&&M("overflow"),Z+=Q*oe,ee=q<=re?s:q>=re+i?i:q-re,Q<ee);q+=l)ce=l-ee,oe>S(n/ce)&&M("overflow"),oe*=ce;U=G.length+1,re=ae(Z-Se,U,Se==0),S(Z/U)>n-ie&&M("overflow"),ie+=S(Z/U),Z%=U,G.splice(Z++,0,ie)}return H(G)}function te(F){var G,J,U,Z,ie,re,le,de,K,Se,oe,q=[],Q,ee,ce,X;for(F=I(F),Q=F.length,G=g,J=0,ie=m,re=0;re<Q;++re)oe=F[re],oe<128&&q.push(w(oe));for(U=Z=q.length,Z&&q.push(A);U<Q;){for(le=n,re=0;re<Q;++re)oe=F[re],oe>=G&&oe<le&&(le=oe);for(ee=U+1,le-G>S((n-J)/ee)&&M("overflow"),J+=(le-G)*ee,G=le,re=0;re<Q;++re)if(oe=F[re],oe<G&&++J>n&&M("overflow"),oe==G){for(de=J,K=l;!(Se=K<=ie?s:K>=ie+i?i:K-ie,de<Se);K+=l)X=de-Se,ce=l-Se,q.push(w(D(Se+X%ce,0))),de=S(X/ce);q.push(w(D(de,0))),ie=ae(J,ee,U==Z),J=0,++U}++J,++G}return q.join("")}function $(F){return R(F,function(G){return T.test(G)?V(G.slice(4).toLowerCase()):G})}function P(F){return R(F,function(G){return x.test(G)?"xn--"+te(G):G})}if(d={version:"1.4.1",ucs2:{decode:I,encode:H},decode:V,encode:te,toASCII:P,toUnicode:$},typeof define=="function"&&typeof define.amd=="object"&&define.amd)define("punycode",function(){return d});else if(y&&f)if(_.exports==y)f.exports=d;else for(p in d)d.hasOwnProperty(p)&&(y[p]=d[p]);else t.punycode=d})(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],210:[function(e,_,c){"use strict";function u(y,f){return Object.prototype.hasOwnProperty.call(y,f)}_.exports=function(y,f,h,d){f=f||"&",h=h||"=";var n={};if(typeof y!="string"||y.length===0)return n;var l=/\+/g;y=y.split(f);var s=1e3;d&&typeof d.maxKeys=="number"&&(s=d.maxKeys);var i=y.length;s>0&&i>s&&(i=s);for(var o=0;o<i;++o){var b=y[o].replace(l,"%20"),m=b.indexOf(h),g,A,T,x;m>=0?(g=b.substr(0,m),A=b.substr(m+1)):(g=b,A=""),T=decodeURIComponent(g),x=decodeURIComponent(A),u(n,T)?t(n[T])?n[T].push(x):n[T]=[n[T],x]:n[T]=x}return n};var t=Array.isArray||function(y){return Object.prototype.toString.call(y)==="[object Array]"}},{}],211:[function(e,_,c){"use strict";var u=function(d){switch(typeof d){case"string":return d;case"boolean":return d?"true":"false";case"number":return isFinite(d)?d:"";default:return""}};_.exports=function(h,d,n,l){return d=d||"&",n=n||"=",h===null&&(h=void 0),typeof h=="object"?y(f(h),function(s){var i=encodeURIComponent(u(s))+n;return t(h[s])?y(h[s],function(o){return i+encodeURIComponent(u(o))}).join(d):i+encodeURIComponent(u(h[s]))}).join(d):l?encodeURIComponent(u(l))+n+encodeURIComponent(u(h)):""};var t=Array.isArray||function(h){return Object.prototype.toString.call(h)==="[object Array]"};function y(h,d){if(h.map)return h.map(d);for(var n=[],l=0;l<h.length;l++)n.push(d(h[l],l));return n}var f=Object.keys||function(h){var d=[];for(var n in h)Object.prototype.hasOwnProperty.call(h,n)&&d.push(n);return d}},{}],212:[function(e,_,c){"use strict";c.decode=c.parse=e("./decode"),c.encode=c.stringify=e("./encode")},{"./decode":210,"./encode":211}],213:[function(e,_,c){_.exports=e("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":214}],214:[function(e,_,c){"use strict";var u=e("babel-runtime/core-js/object/create"),t=h(u),y=e("babel-runtime/core-js/object/keys"),f=h(y);function h(x){return x&&x.__esModule?x:{default:x}}var d=e("process-nextick-args"),n=f.default||function(x){var E=[];for(var j in x)E.push(j);return E};_.exports=g;var l=(0,t.default)(e("core-util-is"));l.inherits=e("inherits");var s=e("./_stream_readable"),i=e("./_stream_writable");l.inherits(g,s);for(var o=n(i.prototype),b=0;b<o.length;b++){var m=o[b];g.prototype[m]||(g.prototype[m]=i.prototype[m])}function g(x){if(!(this instanceof g))return new g(x);s.call(this,x),i.call(this,x),x&&x.readable===!1&&(this.readable=!1),x&&x.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,x&&x.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",A)}Object.defineProperty(g.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function A(){if(this.allowHalfOpen||this._writableState.ended)return;d.nextTick(T,this)}function T(x){x.end()}Object.defineProperty(g.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(E){if(this._readableState===void 0||this._writableState===void 0)return;this._readableState.destroyed=E,this._writableState.destroyed=E}}),g.prototype._destroy=function(x,E){this.push(null),this.end(),d.nextTick(E,x)}},{"./_stream_readable":216,"./_stream_writable":218,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/keys":60,"core-util-is":189,inherits:196,"process-nextick-args":207}],215:[function(e,_,c){"use strict";var u=e("babel-runtime/core-js/object/create"),t=y(u);function y(n){return n&&n.__esModule?n:{default:n}}_.exports=d;var f=e("./_stream_transform"),h=(0,t.default)(e("core-util-is"));h.inherits=e("inherits"),h.inherits(d,f);function d(n){if(!(this instanceof d))return new d(n);f.call(this,n)}d.prototype._transform=function(n,l,s){s(null,n)}},{"./_stream_transform":217,"babel-runtime/core-js/object/create":55,"core-util-is":189,inherits:196}],216:[function(e,_,c){(function(u,t){"use strict";var y=e("babel-runtime/core-js/object/get-prototype-of"),f=n(y),h=e("babel-runtime/core-js/object/create"),d=n(h);function n(X){return X&&X.__esModule?X:{default:X}}var l=e("process-nextick-args");_.exports=I;var s=e("isarray"),i;I.ReadableState=R;var o=e("events").EventEmitter,b=function(B,Y){return B.listeners(Y).length},m=e("./internal/streams/stream"),g=e("safe-buffer").Buffer,A=t.Uint8Array||function(){};function T(X){return g.from(X)}function x(X){return g.isBuffer(X)||X instanceof A}var E=(0,d.default)(e("core-util-is"));E.inherits=e("inherits");var j=e("util"),O=void 0;j&&j.debuglog?O=j.debuglog("stream"):O=function(){};var S=e("./internal/streams/BufferList"),w=e("./internal/streams/destroy"),p;E.inherits(I,m);var M=["error","close","destroy","pause","resume"];function C(X,B,Y){if(typeof X.prependListener=="function")return X.prependListener(B,Y);!X._events||!X._events[B]?X.on(B,Y):s(X._events[B])?X._events[B].unshift(Y):X._events[B]=[Y,X._events[B]]}function R(X,B){i=i||e("./_stream_duplex"),X=X||{};var Y=B instanceof i;this.objectMode=!!X.objectMode,Y&&(this.objectMode=this.objectMode||!!X.readableObjectMode);var N=X.highWaterMark,v=X.readableHighWaterMark,a=this.objectMode?16:16*1024;N||N===0?this.highWaterMark=N:Y&&(v||v===0)?this.highWaterMark=v:this.highWaterMark=a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new S,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=X.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,X.encoding&&(p||(p=e("string_decoder/").StringDecoder),this.decoder=new p(X.encoding),this.encoding=X.encoding)}function I(X){if(i=i||e("./_stream_duplex"),!(this instanceof I))return new I(X);this._readableState=new R(X,this),this.readable=!0,X&&(typeof X.read=="function"&&(this._read=X.read),typeof X.destroy=="function"&&(this._destroy=X.destroy)),m.call(this)}Object.defineProperty(I.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(B){if(!this._readableState)return;this._readableState.destroyed=B}}),I.prototype.destroy=w.destroy,I.prototype._undestroy=w.undestroy,I.prototype._destroy=function(X,B){this.push(null),B(X)},I.prototype.push=function(X,B){var Y=this._readableState,N;return Y.objectMode?N=!0:typeof X=="string"&&(B=B||Y.defaultEncoding,B!==Y.encoding&&(X=g.from(X,B),B=""),N=!0),H(this,X,B,!1,N)},I.prototype.unshift=function(X){return H(this,X,null,!0,!1)};function H(X,B,Y,N,v){var a=X._readableState;if(B===null)a.reading=!1,P(X,a);else{var r;v||(r=D(a,B)),r?X.emit("error",r):a.objectMode||B&&B.length>0?(typeof B!="string"&&!a.objectMode&&(0,f.default)(B)!==g.prototype&&(B=T(B)),N?a.endEmitted?X.emit("error",new Error("stream.unshift() after end event")):W(X,a,B,!0):a.ended?X.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!Y?(B=a.decoder.write(B),a.objectMode||B.length!==0?W(X,a,B,!1):J(X,a)):W(X,a,B,!1))):N||(a.reading=!1)}return ae(a)}function W(X,B,Y,N){B.flowing&&B.length===0&&!B.sync?(X.emit("data",Y),X.read(0)):(B.length+=B.objectMode?1:Y.length,N?B.buffer.unshift(Y):B.buffer.push(Y),B.needReadable&&F(X)),J(X,B)}function D(X,B){var Y;return!x(B)&&typeof B!="string"&&B!==void 0&&!X.objectMode&&(Y=new TypeError("Invalid non-string/buffer chunk")),Y}function ae(X){return!X.ended&&(X.needReadable||X.length<X.highWaterMark||X.length===0)}I.prototype.isPaused=function(){return this._readableState.flowing===!1},I.prototype.setEncoding=function(X){return p||(p=e("string_decoder/").StringDecoder),this._readableState.decoder=new p(X),this._readableState.encoding=X,this};var V=8388608;function te(X){return X>=V?X=V:(X--,X|=X>>>1,X|=X>>>2,X|=X>>>4,X|=X>>>8,X|=X>>>16,X++),X}function $(X,B){return X<=0||B.length===0&&B.ended?0:B.objectMode?1:X!==X?B.flowing&&B.length?B.buffer.head.data.length:B.length:(X>B.highWaterMark&&(B.highWaterMark=te(X)),X<=B.length?X:B.ended?B.length:(B.needReadable=!0,0))}I.prototype.read=function(X){O("read",X),X=parseInt(X,10);var B=this._readableState,Y=X;if(X!==0&&(B.emittedReadable=!1),X===0&&B.needReadable&&(B.length>=B.highWaterMark||B.ended))return O("read: emitReadable",B.length,B.ended),B.length===0&&B.ended?Q(this):F(this),null;if(X=$(X,B),X===0&&B.ended)return B.length===0&&Q(this),null;var N=B.needReadable;O("need readable",N),(B.length===0||B.length-X<B.highWaterMark)&&(N=!0,O("length less than watermark",N)),B.ended||B.reading?(N=!1,O("reading or ended",N)):N&&(O("do read"),B.reading=!0,B.sync=!0,B.length===0&&(B.needReadable=!0),this._read(B.highWaterMark),B.sync=!1,B.reading||(X=$(Y,B)));var v;return X>0?v=K(X,B):v=null,v===null?(B.needReadable=!0,X=0):B.length-=X,B.length===0&&(B.ended||(B.needReadable=!0),Y!==X&&B.ended&&Q(this)),v!==null&&this.emit("data",v),v};function P(X,B){if(B.ended)return;if(B.decoder){var Y=B.decoder.end();Y&&Y.length&&(B.buffer.push(Y),B.length+=B.objectMode?1:Y.length)}B.ended=!0,F(X)}function F(X){var B=X._readableState;B.needReadable=!1,B.emittedReadable||(O("emitReadable",B.flowing),B.emittedReadable=!0,B.sync?l.nextTick(G,X):G(X))}function G(X){O("emit readable"),X.emit("readable"),de(X)}function J(X,B){B.readingMore||(B.readingMore=!0,l.nextTick(U,X,B))}function U(X,B){for(var Y=B.length;!B.reading&&!B.flowing&&!B.ended&&B.length<B.highWaterMark&&!(O("maybeReadMore read 0"),X.read(0),Y===B.length);)Y=B.length;B.readingMore=!1}I.prototype._read=function(X){this.emit("error",new Error("_read() is not implemented"))},I.prototype.pipe=function(X,B){var Y=this,N=this._readableState;switch(N.pipesCount){case 0:N.pipes=X;break;case 1:N.pipes=[N.pipes,X];break;default:N.pipes.push(X);break}N.pipesCount+=1,O("pipe count=%d opts=%j",N.pipesCount,B);var v=(!B||B.end!==!1)&&X!==u.stdout&&X!==u.stderr,a=v?L:Oe;N.endEmitted?l.nextTick(a):Y.once("end",a),X.on("unpipe",r);function r(ue,xe){O("onunpipe"),ue===Y&&(xe&&xe.hasUnpiped===!1&&(xe.hasUnpiped=!0,se()))}function L(){O("onend"),X.end()}var k=Z(Y);X.on("drain",k);var z=!1;function se(){O("cleanup"),X.removeListener("close",ve),X.removeListener("finish",be),X.removeListener("drain",k),X.removeListener("error",me),X.removeListener("unpipe",r),Y.removeListener("end",L),Y.removeListener("end",Oe),Y.removeListener("data",ge),z=!0,N.awaitDrain&&(!X._writableState||X._writableState.needDrain)&&k()}var pe=!1;Y.on("data",ge);function ge(ue){O("ondata"),pe=!1;var xe=X.write(ue);xe===!1&&!pe&&((N.pipesCount===1&&N.pipes===X||N.pipesCount>1&&ce(N.pipes,X)!==-1)&&!z&&(O("false write response, pause",Y._readableState.awaitDrain),Y._readableState.awaitDrain++,pe=!0),Y.pause())}function me(ue){O("onerror",ue),Oe(),X.removeListener("error",me),b(X,"error")===0&&X.emit("error",ue)}C(X,"error",me);function ve(){X.removeListener("finish",be),Oe()}X.once("close",ve);function be(){O("onfinish"),X.removeListener("close",ve),Oe()}X.once("finish",be);function Oe(){O("unpipe"),Y.unpipe(X)}return X.emit("pipe",Y),N.flowing||(O("pipe resume"),Y.resume()),X};function Z(X){return function(){var B=X._readableState;O("pipeOnDrain",B.awaitDrain),B.awaitDrain&&B.awaitDrain--,B.awaitDrain===0&&b(X,"data")&&(B.flowing=!0,de(X))}}I.prototype.unpipe=function(X){var B=this._readableState,Y={hasUnpiped:!1};if(B.pipesCount===0)return this;if(B.pipesCount===1)return X&&X!==B.pipes?this:(X||(X=B.pipes),B.pipes=null,B.pipesCount=0,B.flowing=!1,X&&X.emit("unpipe",this,Y),this);if(!X){var N=B.pipes,v=B.pipesCount;B.pipes=null,B.pipesCount=0,B.flowing=!1;for(var a=0;a<v;a++)N[a].emit("unpipe",this,Y);return this}var r=ce(B.pipes,X);return r===-1?this:(B.pipes.splice(r,1),B.pipesCount-=1,B.pipesCount===1&&(B.pipes=B.pipes[0]),X.emit("unpipe",this,Y),this)},I.prototype.on=function(X,B){var Y=m.prototype.on.call(this,X,B);if(X==="data")this._readableState.flowing!==!1&&this.resume();else if(X==="readable"){var N=this._readableState;!N.endEmitted&&!N.readableListening&&(N.readableListening=N.needReadable=!0,N.emittedReadable=!1,N.reading?N.length&&F(this):l.nextTick(ie,this))}return Y},I.prototype.addListener=I.prototype.on;function ie(X){O("readable nexttick read 0"),X.read(0)}I.prototype.resume=function(){var X=this._readableState;return X.flowing||(O("resume"),X.flowing=!0,re(this,X)),this};function re(X,B){B.resumeScheduled||(B.resumeScheduled=!0,l.nextTick(le,X,B))}function le(X,B){B.reading||(O("resume read 0"),X.read(0)),B.resumeScheduled=!1,B.awaitDrain=0,X.emit("resume"),de(X),B.flowing&&!B.reading&&X.read(0)}I.prototype.pause=function(){return O("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(O("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function de(X){var B=X._readableState;for(O("flow",B.flowing);B.flowing&&X.read()!==null;);}I.prototype.wrap=function(X){var B=this,Y=this._readableState,N=!1;X.on("end",function(){if(O("wrapped end"),Y.decoder&&!Y.ended){var r=Y.decoder.end();r&&r.length&&B.push(r)}B.push(null)}),X.on("data",function(r){if(O("wrapped data"),Y.decoder&&(r=Y.decoder.write(r)),Y.objectMode&&r==null)return;if(!Y.objectMode&&(!r||!r.length))return;var L=B.push(r);L||(N=!0,X.pause())});for(var v in X)this[v]===void 0&&typeof X[v]=="function"&&(this[v]=function(r){return function(){return X[r].apply(X,arguments)}}(v));for(var a=0;a<M.length;a++)X.on(M[a],this.emit.bind(this,M[a]));return this._read=function(r){O("wrapped _read",r),N&&(N=!1,X.resume())},this},Object.defineProperty(I.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),I._fromList=K;function K(X,B){if(B.length===0)return null;var Y;return B.objectMode?Y=B.buffer.shift():!X||X>=B.length?(B.decoder?Y=B.buffer.join(""):B.buffer.length===1?Y=B.buffer.head.data:Y=B.buffer.concat(B.length),B.buffer.clear()):Y=Se(X,B.buffer,B.decoder),Y}function Se(X,B,Y){var N;return X<B.head.data.length?(N=B.head.data.slice(0,X),B.head.data=B.head.data.slice(X)):X===B.head.data.length?N=B.shift():N=Y?oe(X,B):q(X,B),N}function oe(X,B){var Y=B.head,N=1,v=Y.data;for(X-=v.length;Y=Y.next;){var a=Y.data,r=X>a.length?a.length:X;if(r===a.length?v+=a:v+=a.slice(0,X),X-=r,X===0){r===a.length?(++N,Y.next?B.head=Y.next:B.head=B.tail=null):(B.head=Y,Y.data=a.slice(r));break}++N}return B.length-=N,v}function q(X,B){var Y=g.allocUnsafe(X),N=B.head,v=1;for(N.data.copy(Y),X-=N.data.length;N=N.next;){var a=N.data,r=X>a.length?a.length:X;if(a.copy(Y,Y.length-X,0,r),X-=r,X===0){r===a.length?(++v,N.next?B.head=N.next:B.head=B.tail=null):(B.head=N,N.data=a.slice(r));break}++v}return B.length-=v,Y}function Q(X){var B=X._readableState;if(B.length>0)throw new Error('"endReadable()" called on non-empty stream');B.endEmitted||(B.ended=!0,l.nextTick(ee,B,X))}function ee(X,B){!X.endEmitted&&X.length===0&&(X.endEmitted=!0,B.readable=!1,B.emit("end"))}function ce(X,B){for(var Y=0,N=X.length;Y<N;Y++)if(X[Y]===B)return Y;return-1}}).call(this,e("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":214,"./internal/streams/BufferList":219,"./internal/streams/destroy":220,"./internal/streams/stream":221,_process:208,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/get-prototype-of":59,"core-util-is":189,events:192,inherits:196,isarray:198,"process-nextick-args":207,"safe-buffer":228,"string_decoder/":235,util:71}],217:[function(e,_,c){"use strict";var u=e("babel-runtime/core-js/object/create"),t=y(u);function y(i){return i&&i.__esModule?i:{default:i}}_.exports=n;var f=e("./_stream_duplex"),h=(0,t.default)(e("core-util-is"));h.inherits=e("inherits"),h.inherits(n,f);function d(i,o){var b=this._transformState;b.transforming=!1;var m=b.writecb;if(!m)return this.emit("error",new Error("write callback called multiple times"));b.writechunk=null,b.writecb=null,o!=null&&this.push(o),m(i);var g=this._readableState;g.reading=!1,(g.needReadable||g.length<g.highWaterMark)&&this._read(g.highWaterMark)}function n(i){if(!(this instanceof n))return new n(i);f.call(this,i),this._transformState={afterTransform:d.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,i&&(typeof i.transform=="function"&&(this._transform=i.transform),typeof i.flush=="function"&&(this._flush=i.flush)),this.on("prefinish",l)}function l(){var i=this;typeof this._flush=="function"?this._flush(function(o,b){s(i,o,b)}):s(this,null,null)}n.prototype.push=function(i,o){return this._transformState.needTransform=!1,f.prototype.push.call(this,i,o)},n.prototype._transform=function(i,o,b){throw new Error("_transform() is not implemented")},n.prototype._write=function(i,o,b){var m=this._transformState;if(m.writecb=b,m.writechunk=i,m.writeencoding=o,!m.transforming){var g=this._readableState;(m.needTransform||g.needReadable||g.length<g.highWaterMark)&&this._read(g.highWaterMark)}},n.prototype._read=function(i){var o=this._transformState;o.writechunk!==null&&o.writecb&&!o.transforming?(o.transforming=!0,this._transform(o.writechunk,o.writeencoding,o.afterTransform)):o.needTransform=!0},n.prototype._destroy=function(i,o){var b=this;f.prototype._destroy.call(this,i,function(m){o(m),b.emit("close")})};function s(i,o,b){if(o)return i.emit("error",o);if(b!=null&&i.push(b),i._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(i._transformState.transforming)throw new Error("Calling transform done when still transforming");return i.push(null)}},{"./_stream_duplex":214,"babel-runtime/core-js/object/create":55,"core-util-is":189,inherits:196}],218:[function(e,_,c){(function(u,t){"use strict";var y=e("babel-runtime/core-js/object/define-property"),f=m(y),h=e("babel-runtime/core-js/symbol/has-instance"),d=m(h),n=e("babel-runtime/core-js/symbol"),l=m(n),s=e("babel-runtime/core-js/object/create"),i=m(s),o=e("babel-runtime/core-js/set-immediate"),b=m(o);function m(q){return q&&q.__esModule?q:{default:q}}var g=e("process-nextick-args");_.exports=D;function A(q,Q,ee){this.chunk=q,this.encoding=Q,this.callback=ee,this.next=null}function T(q){var Q=this;this.next=null,this.entry=null,this.finish=function(){oe(Q,q)}}var x=!u.browser&&["v0.10","v0.9."].indexOf(u.version.slice(0,5))>-1?b.default:g.nextTick,E;D.WritableState=H;var j=(0,i.default)(e("core-util-is"));j.inherits=e("inherits");var O={deprecate:e("util-deprecate")},S=e("./internal/streams/stream"),w=e("safe-buffer").Buffer,p=t.Uint8Array||function(){};function M(q){return w.from(q)}function C(q){return w.isBuffer(q)||q instanceof p}var R=e("./internal/streams/destroy");j.inherits(D,S);function I(){}function H(q,Q){E=E||e("./_stream_duplex"),q=q||{};var ee=Q instanceof E;this.objectMode=!!q.objectMode,ee&&(this.objectMode=this.objectMode||!!q.writableObjectMode);var ce=q.highWaterMark,X=q.writableHighWaterMark,B=this.objectMode?16:16*1024;ce||ce===0?this.highWaterMark=ce:ee&&(X||X===0)?this.highWaterMark=X:this.highWaterMark=B,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Y=q.decodeStrings===!1;this.decodeStrings=!Y,this.defaultEncoding=q.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(N){J(Q,N)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new T(this)}H.prototype.getBuffer=function(){for(var Q=this.bufferedRequest,ee=[];Q;)ee.push(Q),Q=Q.next;return ee},function(){try{Object.defineProperty(H.prototype,"buffer",{get:O.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(q){}}();var W;typeof l.default=="function"&&d.default&&typeof Function.prototype[d.default]=="function"?(W=Function.prototype[d.default],(0,f.default)(D,d.default,{value:function(Q){return W.call(this,Q)?!0:this!==D?!1:Q&&Q._writableState instanceof H}})):W=function(Q){return Q instanceof this};function D(q){if(E=E||e("./_stream_duplex"),!W.call(D,this)&&!(this instanceof E))return new D(q);this._writableState=new H(q,this),this.writable=!0,q&&(typeof q.write=="function"&&(this._write=q.write),typeof q.writev=="function"&&(this._writev=q.writev),typeof q.destroy=="function"&&(this._destroy=q.destroy),typeof q.final=="function"&&(this._final=q.final)),S.call(this)}D.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function ae(q,Q){var ee=new Error("write after end");q.emit("error",ee),g.nextTick(Q,ee)}function V(q,Q,ee,ce){var X=!0,B=!1;return ee===null?B=new TypeError("May not write null values to stream"):typeof ee!="string"&&ee!==void 0&&!Q.objectMode&&(B=new TypeError("Invalid non-string/buffer chunk")),B&&(q.emit("error",B),g.nextTick(ce,B),X=!1),X}D.prototype.write=function(q,Q,ee){var ce=this._writableState,X=!1,B=!ce.objectMode&&C(q);return B&&!w.isBuffer(q)&&(q=M(q)),typeof Q=="function"&&(ee=Q,Q=null),B?Q="buffer":Q||(Q=ce.defaultEncoding),typeof ee!="function"&&(ee=I),ce.ended?ae(this,ee):(B||V(this,ce,q,ee))&&(ce.pendingcb++,X=$(this,ce,B,q,Q,ee)),X},D.prototype.cork=function(){var q=this._writableState;q.corked++},D.prototype.uncork=function(){var q=this._writableState;q.corked&&(q.corked--,!q.writing&&!q.corked&&!q.finished&&!q.bufferProcessing&&q.bufferedRequest&&ie(this,q))},D.prototype.setDefaultEncoding=function(Q){if(typeof Q=="string"&&(Q=Q.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Q+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+Q);return this._writableState.defaultEncoding=Q,this};function te(q,Q,ee){return!q.objectMode&&q.decodeStrings!==!1&&typeof Q=="string"&&(Q=w.from(Q,ee)),Q}Object.defineProperty(D.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function $(q,Q,ee,ce,X,B){if(!ee){var Y=te(Q,ce,X);ce!==Y&&(ee=!0,X="buffer",ce=Y)}var N=Q.objectMode?1:ce.length;Q.length+=N;var v=Q.length<Q.highWaterMark;if(v||(Q.needDrain=!0),Q.writing||Q.corked){var a=Q.lastBufferedRequest;Q.lastBufferedRequest={chunk:ce,encoding:X,isBuf:ee,callback:B,next:null},a?a.next=Q.lastBufferedRequest:Q.bufferedRequest=Q.lastBufferedRequest,Q.bufferedRequestCount+=1}else P(q,Q,!1,N,ce,X,B);return v}function P(q,Q,ee,ce,X,B,Y){Q.writelen=ce,Q.writecb=Y,Q.writing=!0,Q.sync=!0,ee?q._writev(X,Q.onwrite):q._write(X,B,Q.onwrite),Q.sync=!1}function F(q,Q,ee,ce,X){--Q.pendingcb,ee?(g.nextTick(X,ce),g.nextTick(K,q,Q),q._writableState.errorEmitted=!0,q.emit("error",ce)):(X(ce),q._writableState.errorEmitted=!0,q.emit("error",ce),K(q,Q))}function G(q){q.writing=!1,q.writecb=null,q.length-=q.writelen,q.writelen=0}function J(q,Q){var ee=q._writableState,ce=ee.sync,X=ee.writecb;if(G(ee),Q)F(q,ee,ce,Q,X);else{var B=re(ee);!B&&!ee.corked&&!ee.bufferProcessing&&ee.bufferedRequest&&ie(q,ee),ce?x(U,q,ee,B,X):U(q,ee,B,X)}}function U(q,Q,ee,ce){ee||Z(q,Q),Q.pendingcb--,ce(),K(q,Q)}function Z(q,Q){Q.length===0&&Q.needDrain&&(Q.needDrain=!1,q.emit("drain"))}function ie(q,Q){Q.bufferProcessing=!0;var ee=Q.bufferedRequest;if(q._writev&&ee&&ee.next){var ce=Q.bufferedRequestCount,X=new Array(ce),B=Q.corkedRequestsFree;B.entry=ee;for(var Y=0,N=!0;ee;)X[Y]=ee,ee.isBuf||(N=!1),ee=ee.next,Y+=1;X.allBuffers=N,P(q,Q,!0,Q.length,X,"",B.finish),Q.pendingcb++,Q.lastBufferedRequest=null,B.next?(Q.corkedRequestsFree=B.next,B.next=null):Q.corkedRequestsFree=new T(Q),Q.bufferedRequestCount=0}else{for(;ee;){var v=ee.chunk,a=ee.encoding,r=ee.callback,L=Q.objectMode?1:v.length;if(P(q,Q,!1,L,v,a,r),ee=ee.next,Q.bufferedRequestCount--,Q.writing)break}ee===null&&(Q.lastBufferedRequest=null)}Q.bufferedRequest=ee,Q.bufferProcessing=!1}D.prototype._write=function(q,Q,ee){ee(new Error("_write() is not implemented"))},D.prototype._writev=null,D.prototype.end=function(q,Q,ee){var ce=this._writableState;typeof q=="function"?(ee=q,q=null,Q=null):typeof Q=="function"&&(ee=Q,Q=null),q!=null&&this.write(q,Q),ce.corked&&(ce.corked=1,this.uncork()),!ce.ending&&!ce.finished&&Se(this,ce,ee)};function re(q){return q.ending&&q.length===0&&q.bufferedRequest===null&&!q.finished&&!q.writing}function le(q,Q){q._final(function(ee){Q.pendingcb--,ee&&q.emit("error",ee),Q.prefinished=!0,q.emit("prefinish"),K(q,Q)})}function de(q,Q){!Q.prefinished&&!Q.finalCalled&&(typeof q._final=="function"?(Q.pendingcb++,Q.finalCalled=!0,g.nextTick(le,q,Q)):(Q.prefinished=!0,q.emit("prefinish")))}function K(q,Q){var ee=re(Q);return ee&&(de(q,Q),Q.pendingcb===0&&(Q.finished=!0,q.emit("finish"))),ee}function Se(q,Q,ee){Q.ending=!0,K(q,Q),ee&&(Q.finished?g.nextTick(ee):q.once("finish",ee)),Q.ended=!0,q.writable=!1}function oe(q,Q,ee){var ce=q.entry;for(q.entry=null;ce;){var X=ce.callback;Q.pendingcb--,X(ee),ce=ce.next}Q.corkedRequestsFree?Q.corkedRequestsFree.next=q:Q.corkedRequestsFree=q}Object.defineProperty(D.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(Q){if(!this._writableState)return;this._writableState.destroyed=Q}}),D.prototype.destroy=R.destroy,D.prototype._undestroy=R.undestroy,D.prototype._destroy=function(q,Q){this.end(),Q(q)}}).call(this,e("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":214,"./internal/streams/destroy":220,"./internal/streams/stream":221,_process:208,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/define-property":56,"babel-runtime/core-js/set-immediate":62,"babel-runtime/core-js/symbol":64,"babel-runtime/core-js/symbol/has-instance":65,"core-util-is":189,inherits:196,"process-nextick-args":207,"safe-buffer":228,"util-deprecate":240}],219:[function(e,_,c){"use strict";function u(h,d){if(!(h instanceof d))throw new TypeError("Cannot call a class as a function")}var t=e("safe-buffer").Buffer,y=e("util");function f(h,d,n){h.copy(d,n)}_.exports=function(){function h(){u(this,h),this.head=null,this.tail=null,this.length=0}return h.prototype.push=function(n){var l={data:n,next:null};this.length>0?this.tail.next=l:this.head=l,this.tail=l,++this.length},h.prototype.unshift=function(n){var l={data:n,next:this.head};this.length===0&&(this.tail=l),this.head=l,++this.length},h.prototype.shift=function(){if(this.length===0)return;var n=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,n},h.prototype.clear=function(){this.head=this.tail=null,this.length=0},h.prototype.join=function(n){if(this.length===0)return"";for(var l=this.head,s=""+l.data;l=l.next;)s+=n+l.data;return s},h.prototype.concat=function(n){if(this.length===0)return t.alloc(0);if(this.length===1)return this.head.data;for(var l=t.allocUnsafe(n>>>0),s=this.head,i=0;s;)f(s.data,l,i),i+=s.data.length,s=s.next;return l},h}(),y&&y.inspect&&y.inspect.custom&&(_.exports.prototype[y.inspect.custom]=function(){var h=y.inspect({length:this.length});return this.constructor.name+" "+h})},{"safe-buffer":228,util:71}],220:[function(e,_,c){"use strict";var u=e("process-nextick-args");function t(h,d){var n=this,l=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return l||s?(d?d(h):h&&(!this._writableState||!this._writableState.errorEmitted)&&u.nextTick(f,this,h),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(h||null,function(i){!d&&i?(u.nextTick(f,n,i),n._writableState&&(n._writableState.errorEmitted=!0)):d&&d(i)}),this)}function y(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function f(h,d){h.emit("error",d)}_.exports={destroy:t,undestroy:y}},{"process-nextick-args":207}],221:[function(e,_,c){"use strict";_.exports=e("events").EventEmitter},{events:192}],222:[function(e,_,c){_.exports=e("./readable").PassThrough},{"./readable":223}],223:[function(e,_,c){c=_.exports=e("./lib/_stream_readable.js"),c.Stream=c,c.Readable=c,c.Writable=e("./lib/_stream_writable.js"),c.Duplex=e("./lib/_stream_duplex.js"),c.Transform=e("./lib/_stream_transform.js"),c.PassThrough=e("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":214,"./lib/_stream_passthrough.js":215,"./lib/_stream_readable.js":216,"./lib/_stream_transform.js":217,"./lib/_stream_writable.js":218}],224:[function(e,_,c){_.exports=e("./readable").Transform},{"./readable":223}],225:[function(e,_,c){_.exports=e("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":218}],226:[function(e,_,c){var u=function(){return this}()||Function("return this")(),t=u.regeneratorRuntime&&Object.getOwnPropertyNames(u).indexOf("regeneratorRuntime")>=0,y=t&&u.regeneratorRuntime;if(u.regeneratorRuntime=void 0,_.exports=e("./runtime"),t)u.regeneratorRuntime=y;else try{delete u.regeneratorRuntime}catch(f){u.regeneratorRuntime=void 0}},{"./runtime":227}],227:[function(e,_,c){!function(u){"use strict";var t=Object.prototype,y=t.hasOwnProperty,f,h=typeof Symbol=="function"?Symbol:{},d=h.iterator||"@@iterator",n=h.asyncIterator||"@@asyncIterator",l=h.toStringTag||"@@toStringTag",s=typeof _=="object",i=u.regeneratorRuntime;if(i){s&&(_.exports=i);return}i=u.regeneratorRuntime=s?_.exports:{};function o($,P,F,G){var J=P&&P.prototype instanceof E?P:E,U=Object.create(J.prototype),Z=new ae(G||[]);return U._invoke=I($,F,Z),U}i.wrap=o;function b($,P,F){try{return{type:"normal",arg:$.call(P,F)}}catch(G){return{type:"throw",arg:G}}}var m="suspendedStart",g="suspendedYield",A="executing",T="completed",x={};function E(){}function j(){}function O(){}var S={};S[d]=function(){return this};var w=Object.getPrototypeOf,p=w&&w(w(V([])));p&&p!==t&&y.call(p,d)&&(S=p);var M=O.prototype=E.prototype=Object.create(S);j.prototype=M.constructor=O,O.constructor=j,O[l]=j.displayName="GeneratorFunction";function C($){["next","throw","return"].forEach(function(P){$[P]=function(F){return this._invoke(P,F)}})}i.isGeneratorFunction=function($){var P=typeof $=="function"&&$.constructor;return P?P===j||(P.displayName||P.name)==="GeneratorFunction":!1},i.mark=function($){return Object.setPrototypeOf?Object.setPrototypeOf($,O):($.__proto__=O,l in $||($[l]="GeneratorFunction")),$.prototype=Object.create(M),$},i.awrap=function($){return{__await:$}};function R($){function P(J,U,Z,ie){var re=b($[J],$,U);if(re.type==="throw")ie(re.arg);else{var le=re.arg,de=le.value;return de&&typeof de=="object"&&y.call(de,"__await")?Promise.resolve(de.__await).then(function(K){P("next",K,Z,ie)},function(K){P("throw",K,Z,ie)}):Promise.resolve(de).then(function(K){le.value=K,Z(le)},ie)}}var F;function G(J,U){function Z(){return new Promise(function(ie,re){P(J,U,ie,re)})}return F=F?F.then(Z,Z):Z()}this._invoke=G}C(R.prototype),R.prototype[n]=function(){return this},i.AsyncIterator=R,i.async=function($,P,F,G){var J=new R(o($,P,F,G));return i.isGeneratorFunction(P)?J:J.next().then(function(U){return U.done?U.value:J.next()})};function I($,P,F){var G=m;return function(U,Z){if(G===A)throw new Error("Generator is already running");if(G===T){if(U==="throw")throw Z;return te()}for(F.method=U,F.arg=Z;;){var ie=F.delegate;if(ie){var re=H(ie,F);if(re){if(re===x)continue;return re}}if(F.method==="next")F.sent=F._sent=F.arg;else if(F.method==="throw"){if(G===m)throw G=T,F.arg;F.dispatchException(F.arg)}else F.method==="return"&&F.abrupt("return",F.arg);G=A;var le=b($,P,F);if(le.type==="normal"){if(G=F.done?T:g,le.arg===x)continue;return{value:le.arg,done:F.done}}else le.type==="throw"&&(G=T,F.method="throw",F.arg=le.arg)}}}function H($,P){var F=$.iterator[P.method];if(F===f){if(P.delegate=null,P.method==="throw"){if($.iterator.return&&(P.method="return",P.arg=f,H($,P),P.method==="throw"))return x;P.method="throw",P.arg=new TypeError("The iterator does not provide a 'throw' method")}return x}var G=b(F,$.iterator,P.arg);if(G.type==="throw")return P.method="throw",P.arg=G.arg,P.delegate=null,x;var J=G.arg;if(!J)return P.method="throw",P.arg=new TypeError("iterator result is not an object"),P.delegate=null,x;if(J.done)P[$.resultName]=J.value,P.next=$.nextLoc,P.method!=="return"&&(P.method="next",P.arg=f);else return J;return P.delegate=null,x}C(M),M[l]="Generator",M[d]=function(){return this},M.toString=function(){return"[object Generator]"};function W($){var P={tryLoc:$[0]};1 in $&&(P.catchLoc=$[1]),2 in $&&(P.finallyLoc=$[2],P.afterLoc=$[3]),this.tryEntries.push(P)}function D($){var P=$.completion||{};P.type="normal",delete P.arg,$.completion=P}function ae($){this.tryEntries=[{tryLoc:"root"}],$.forEach(W,this),this.reset(!0)}i.keys=function($){var P=[];for(var F in $)P.push(F);return P.reverse(),function G(){for(;P.length;){var J=P.pop();if(J in $)return G.value=J,G.done=!1,G}return G.done=!0,G}};function V($){if($){var P=$[d];if(P)return P.call($);if(typeof $.next=="function")return $;if(!isNaN($.length)){var F=-1,G=function J(){for(;++F<$.length;)if(y.call($,F))return J.value=$[F],J.done=!1,J;return J.value=f,J.done=!0,J};return G.next=G}}return{next:te}}i.values=V;function te(){return{value:f,done:!0}}ae.prototype={constructor:ae,reset:function(P){if(this.prev=0,this.next=0,this.sent=this._sent=f,this.done=!1,this.delegate=null,this.method="next",this.arg=f,this.tryEntries.forEach(D),!P)for(var F in this)F.charAt(0)==="t"&&y.call(this,F)&&!isNaN(+F.slice(1))&&(this[F]=f)},stop:function(){this.done=!0;var P=this.tryEntries[0],F=P.completion;if(F.type==="throw")throw F.arg;return this.rval},dispatchException:function(P){if(this.done)throw P;var F=this;function G(le,de){return Z.type="throw",Z.arg=P,F.next=le,de&&(F.method="next",F.arg=f),!!de}for(var J=this.tryEntries.length-1;J>=0;--J){var U=this.tryEntries[J],Z=U.completion;if(U.tryLoc==="root")return G("end");if(U.tryLoc<=this.prev){var ie=y.call(U,"catchLoc"),re=y.call(U,"finallyLoc");if(ie&&re){if(this.prev<U.catchLoc)return G(U.catchLoc,!0);if(this.prev<U.finallyLoc)return G(U.finallyLoc)}else if(ie){if(this.prev<U.catchLoc)return G(U.catchLoc,!0)}else if(re){if(this.prev<U.finallyLoc)return G(U.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(P,F){for(var G=this.tryEntries.length-1;G>=0;--G){var J=this.tryEntries[G];if(J.tryLoc<=this.prev&&y.call(J,"finallyLoc")&&this.prev<J.finallyLoc){var U=J;break}}U&&(P==="break"||P==="continue")&&U.tryLoc<=F&&F<=U.finallyLoc&&(U=null);var Z=U?U.completion:{};return Z.type=P,Z.arg=F,U?(this.method="next",this.next=U.finallyLoc,x):this.complete(Z)},complete:function(P,F){if(P.type==="throw")throw P.arg;return P.type==="break"||P.type==="continue"?this.next=P.arg:P.type==="return"?(this.rval=this.arg=P.arg,this.method="return",this.next="end"):P.type==="normal"&&F&&(this.next=F),x},finish:function(P){for(var F=this.tryEntries.length-1;F>=0;--F){var G=this.tryEntries[F];if(G.finallyLoc===P)return this.complete(G.completion,G.afterLoc),D(G),x}},catch:function(P){for(var F=this.tryEntries.length-1;F>=0;--F){var G=this.tryEntries[F];if(G.tryLoc===P){var J=G.completion;if(J.type==="throw"){var U=J.arg;D(G)}return U}}throw new Error("illegal catch attempt")},delegateYield:function(P,F,G){return this.delegate={iterator:V(P),resultName:F,nextLoc:G},this.method==="next"&&(this.arg=f),x}}}(function(){return this}()||Function("return this")())},{}],228:[function(e,_,c){var u=e("buffer"),t=u.Buffer;function y(h,d){for(var n in h)d[n]=h[n]}t.from&&t.alloc&&t.allocUnsafe&&t.allocUnsafeSlow?_.exports=u:(y(u,c),c.Buffer=f);function f(h,d,n){return t(h,d,n)}y(t,f),f.from=function(h,d,n){if(typeof h=="number")throw new TypeError("Argument must not be a number");return t(h,d,n)},f.alloc=function(h,d,n){if(typeof h!="number")throw new TypeError("Argument must be a number");var l=t(h);return d!==void 0?typeof n=="string"?l.fill(d,n):l.fill(d):l.fill(0),l},f.allocUnsafe=function(h){if(typeof h!="number")throw new TypeError("Argument must be a number");return t(h)},f.allocUnsafeSlow=function(h){if(typeof h!="number")throw new TypeError("Argument must be a number");return u.SlowBuffer(h)}},{buffer:73}],229:[function(e,_,c){(function(u){"use strict";var t=e("babel-runtime/core-js/string/from-code-point"),y=g(t),f=e("babel-runtime/core-js/json/stringify"),h=g(f),d=e("babel-runtime/helpers/typeof"),n=g(d),l=e("babel-runtime/core-js/object/define-property"),s=g(l),i=e("babel-runtime/core-js/object/keys"),o=g(i),b=e("babel-runtime/core-js/object/create"),m=g(b);function g(A){return A&&A.__esModule?A:{default:A}}(function(A){A.parser=function(a,r){return new x(a,r)},A.SAXParser=x,A.SAXStream=M,A.createStream=p,A.MAX_BUFFER_LENGTH=64*1024;var T=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];A.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function x(a,r){if(!(this instanceof x))return new x(a,r);var L=this;j(L),L.q=L.c="",L.bufferCheckPosition=A.MAX_BUFFER_LENGTH,L.opt=r||{},L.opt.lowercase=L.opt.lowercase||L.opt.lowercasetags,L.looseCase=L.opt.lowercase?"toLowerCase":"toUpperCase",L.tags=[],L.closed=L.closedRoot=L.sawRoot=!1,L.tag=L.error=null,L.strict=!!a,L.noscript=!!(a||L.opt.noscript),L.state=U.BEGIN,L.strictEntities=L.opt.strictEntities,L.ENTITIES=L.strictEntities?(0,m.default)(A.XML_ENTITIES):(0,m.default)(A.ENTITIES),L.attribList=[],L.opt.xmlns&&(L.ns=(0,m.default)(W)),L.trackPosition=L.opt.position!==!1,L.trackPosition&&(L.position=L.line=L.column=0),ie(L,"onready")}m.default||(Object.create=function(a){function r(){}r.prototype=a;var L=new r;return L}),o.default||(Object.keys=function(a){var r=[];for(var L in a)a.hasOwnProperty(L)&&r.push(L);return r});function E(a){for(var r=Math.max(A.MAX_BUFFER_LENGTH,10),L=0,k=0,z=T.length;k<z;k++){var se=a[T[k]].length;if(se>r)switch(T[k]){case"textNode":le(a);break;case"cdata":re(a,"oncdata",a.cdata),a.cdata="";break;case"script":re(a,"onscript",a.script),a.script="";break;default:K(a,"Max buffer length exceeded: "+T[k])}L=Math.max(L,se)}var pe=A.MAX_BUFFER_LENGTH-L;a.bufferCheckPosition=pe+a.position}function j(a){for(var r=0,L=T.length;r<L;r++)a[T[r]]=""}function O(a){le(a),a.cdata!==""&&(re(a,"oncdata",a.cdata),a.cdata=""),a.script!==""&&(re(a,"onscript",a.script),a.script="")}x.prototype={end:function(){Se(this)},write:v,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){O(this)}};var S;try{S=e("stream").Stream}catch(a){S=function(){}}var w=A.EVENTS.filter(function(a){return a!=="error"&&a!=="end"});function p(a,r){return new M(a,r)}function M(a,r){if(!(this instanceof M))return new M(a,r);S.apply(this),this._parser=new x(a,r),this.writable=!0,this.readable=!0;var L=this;this._parser.onend=function(){L.emit("end")},this._parser.onerror=function(k){L.emit("error",k),L._parser.error=null},this._decoder=null,w.forEach(function(k){(0,s.default)(L,"on"+k,{get:function(){return L._parser["on"+k]},set:function(se){if(!se)return L.removeAllListeners(k),L._parser["on"+k]=se,se;L.on(k,se)},enumerable:!0,configurable:!1})})}M.prototype=(0,m.default)(S.prototype,{constructor:{value:M}}),M.prototype.write=function(a){if(typeof u=="function"&&typeof u.isBuffer=="function"&&u.isBuffer(a)){if(!this._decoder){var r=e("string_decoder").StringDecoder;this._decoder=new r("utf8")}a=this._decoder.write(a)}return this._parser.write(a.toString()),this.emit("data",a),!0},M.prototype.end=function(a){return a&&a.length&&this.write(a),this._parser.end(),!0},M.prototype.on=function(a,r){var L=this;return!L._parser["on"+a]&&w.indexOf(a)!==-1&&(L._parser["on"+a]=function(){var k=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);k.splice(0,0,a),L.emit.apply(L,k)}),S.prototype.on.call(L,a,r)};var C="[CDATA[",R="DOCTYPE",I="http://www.w3.org/XML/1998/namespace",H="http://www.w3.org/2000/xmlns/",W={xml:I,xmlns:H},D=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,ae=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,V=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,te=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function $(a){return a===" "||a===`
|
||
`||a==="\r"||a===" "}function P(a){return a==='"'||a==="'"}function F(a){return a===">"||$(a)}function G(a,r){return a.test(r)}function J(a,r){return!G(a,r)}var U=0;A.STATE={BEGIN:U++,BEGIN_WHITESPACE:U++,TEXT:U++,TEXT_ENTITY:U++,OPEN_WAKA:U++,SGML_DECL:U++,SGML_DECL_QUOTED:U++,DOCTYPE:U++,DOCTYPE_QUOTED:U++,DOCTYPE_DTD:U++,DOCTYPE_DTD_QUOTED:U++,COMMENT_STARTING:U++,COMMENT:U++,COMMENT_ENDING:U++,COMMENT_ENDED:U++,CDATA:U++,CDATA_ENDING:U++,CDATA_ENDING_2:U++,PROC_INST:U++,PROC_INST_BODY:U++,PROC_INST_ENDING:U++,OPEN_TAG:U++,OPEN_TAG_SLASH:U++,ATTRIB:U++,ATTRIB_NAME:U++,ATTRIB_NAME_SAW_WHITE:U++,ATTRIB_VALUE:U++,ATTRIB_VALUE_QUOTED:U++,ATTRIB_VALUE_CLOSED:U++,ATTRIB_VALUE_UNQUOTED:U++,ATTRIB_VALUE_ENTITY_Q:U++,ATTRIB_VALUE_ENTITY_U:U++,CLOSE_TAG:U++,CLOSE_TAG_SAW_WHITE:U++,SCRIPT:U++,SCRIPT_ENDING:U++},A.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},A.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},(0,o.default)(A.ENTITIES).forEach(function(a){var r=A.ENTITIES[a],L=typeof r=="number"?String.fromCharCode(r):r;A.ENTITIES[a]=L});for(var Z in A.STATE)A.STATE[A.STATE[Z]]=Z;U=A.STATE;function ie(a,r,L){a[r]&&a[r](L)}function re(a,r,L){a.textNode&&le(a),ie(a,r,L)}function le(a){a.textNode=de(a.opt,a.textNode),a.textNode&&ie(a,"ontext",a.textNode),a.textNode=""}function de(a,r){return a.trim&&(r=r.trim()),a.normalize&&(r=r.replace(/\s+/g," ")),r}function K(a,r){return le(a),a.trackPosition&&(r+=`
|
||
Line: `+a.line+`
|
||
Column: `+a.column+`
|
||
Char: `+a.c),r=new Error(r),a.error=r,ie(a,"onerror",r),a}function Se(a){return a.sawRoot&&!a.closedRoot&&oe(a,"Unclosed root tag"),a.state!==U.BEGIN&&a.state!==U.BEGIN_WHITESPACE&&a.state!==U.TEXT&&K(a,"Unexpected end"),le(a),a.c="",a.closed=!0,ie(a,"onend"),x.call(a,a.strict,a.opt),a}function oe(a,r){if((typeof a=="undefined"?"undefined":(0,n.default)(a))!=="object"||!(a instanceof x))throw new Error("bad call to strictFail");a.strict&&K(a,r)}function q(a){a.strict||(a.tagName=a.tagName[a.looseCase]());var r=a.tags[a.tags.length-1]||a,L=a.tag={name:a.tagName,attributes:{}};a.opt.xmlns&&(L.ns=r.ns),a.attribList.length=0,re(a,"onopentagstart",L)}function Q(a,r){var L=a.indexOf(":"),k=L<0?["",a]:a.split(":"),z=k[0],se=k[1];return r&&a==="xmlns"&&(z="xmlns",se=""),{prefix:z,local:se}}function ee(a){if(a.strict||(a.attribName=a.attribName[a.looseCase]()),a.attribList.indexOf(a.attribName)!==-1||a.tag.attributes.hasOwnProperty(a.attribName)){a.attribName=a.attribValue="";return}if(a.opt.xmlns){var r=Q(a.attribName,!0),L=r.prefix,k=r.local;if(L==="xmlns")if(k==="xml"&&a.attribValue!==I)oe(a,"xml: prefix must be bound to "+I+`
|
||
Actual: `+a.attribValue);else if(k==="xmlns"&&a.attribValue!==H)oe(a,"xmlns: prefix must be bound to "+H+`
|
||
Actual: `+a.attribValue);else{var z=a.tag,se=a.tags[a.tags.length-1]||a;z.ns===se.ns&&(z.ns=(0,m.default)(se.ns)),z.ns[k]=a.attribValue}a.attribList.push([a.attribName,a.attribValue])}else a.tag.attributes[a.attribName]=a.attribValue,re(a,"onattribute",{name:a.attribName,value:a.attribValue});a.attribName=a.attribValue=""}function ce(a,r){if(a.opt.xmlns){var L=a.tag,k=Q(a.tagName);L.prefix=k.prefix,L.local=k.local,L.uri=L.ns[k.prefix]||"",L.prefix&&!L.uri&&(oe(a,"Unbound namespace prefix: "+(0,h.default)(a.tagName)),L.uri=k.prefix);var z=a.tags[a.tags.length-1]||a;L.ns&&z.ns!==L.ns&&(0,o.default)(L.ns).forEach(function(Le){re(a,"onopennamespace",{prefix:Le,uri:L.ns[Le]})});for(var se=0,pe=a.attribList.length;se<pe;se++){var ge=a.attribList[se],me=ge[0],ve=ge[1],be=Q(me,!0),Oe=be.prefix,ue=be.local,xe=Oe===""?"":L.ns[Oe]||"",Ie={name:me,value:ve,prefix:Oe,local:ue,uri:xe};Oe&&Oe!=="xmlns"&&!xe&&(oe(a,"Unbound namespace prefix: "+(0,h.default)(Oe)),Ie.uri=Oe),a.tag.attributes[me]=Ie,re(a,"onattribute",Ie)}a.attribList.length=0}a.tag.isSelfClosing=!!r,a.sawRoot=!0,a.tags.push(a.tag),re(a,"onopentag",a.tag),r||(!a.noscript&&a.tagName.toLowerCase()==="script"?a.state=U.SCRIPT:a.state=U.TEXT,a.tag=null,a.tagName=""),a.attribName=a.attribValue="",a.attribList.length=0}function X(a){if(!a.tagName){oe(a,"Weird empty close tag."),a.textNode+="</>",a.state=U.TEXT;return}if(a.script){if(a.tagName!=="script"){a.script+="</"+a.tagName+">",a.tagName="",a.state=U.SCRIPT;return}re(a,"onscript",a.script),a.script=""}var r=a.tags.length,L=a.tagName;a.strict||(L=L[a.looseCase]());for(var k=L;r--;){var z=a.tags[r];if(z.name!==k)oe(a,"Unexpected close tag");else break}if(r<0){oe(a,"Unmatched closing tag: "+a.tagName),a.textNode+="</"+a.tagName+">",a.state=U.TEXT;return}a.tagName=L;for(var se=a.tags.length;se-- >r;){var pe=a.tag=a.tags.pop();a.tagName=a.tag.name,re(a,"onclosetag",a.tagName);var ge={};for(var me in pe.ns)ge[me]=pe.ns[me];var ve=a.tags[a.tags.length-1]||a;a.opt.xmlns&&pe.ns!==ve.ns&&(0,o.default)(pe.ns).forEach(function(be){var Oe=pe.ns[be];re(a,"onclosenamespace",{prefix:be,uri:Oe})})}r===0&&(a.closedRoot=!0),a.tagName=a.attribValue=a.attribName="",a.attribList.length=0,a.state=U.TEXT}function B(a){var r=a.entity,L=r.toLowerCase(),k,z="";return a.ENTITIES[r]?a.ENTITIES[r]:a.ENTITIES[L]?a.ENTITIES[L]:(r=L,r.charAt(0)==="#"&&(r.charAt(1)==="x"?(r=r.slice(2),k=parseInt(r,16),z=k.toString(16)):(r=r.slice(1),k=parseInt(r,10),z=k.toString(10))),r=r.replace(/^0+/,""),isNaN(k)||z.toLowerCase()!==r?(oe(a,"Invalid character entity"),"&"+a.entity+";"):(0,y.default)(k))}function Y(a,r){r==="<"?(a.state=U.OPEN_WAKA,a.startTagPosition=a.position):$(r)||(oe(a,"Non-whitespace before first tag."),a.textNode=r,a.state=U.TEXT)}function N(a,r){var L="";return r<a.length&&(L=a.charAt(r)),L}function v(a){var r=this;if(this.error)throw this.error;if(r.closed)return K(r,"Cannot write after close. Assign an onready handler.");if(a===null)return Se(r);(typeof a=="undefined"?"undefined":(0,n.default)(a))==="object"&&(a=a.toString());for(var L=0,k="";!(k=N(a,L++),r.c=k,!k);){r.trackPosition&&(r.position++,k===`
|
||
`?(r.line++,r.column=0):r.column++);switch(r.state){case U.BEGIN:if(r.state=U.BEGIN_WHITESPACE,k==="\uFEFF")continue;Y(r,k);continue;case U.BEGIN_WHITESPACE:Y(r,k);continue;case U.TEXT:if(r.sawRoot&&!r.closedRoot){for(var z=L-1;k&&k!=="<"&&k!=="&";)k=N(a,L++),k&&r.trackPosition&&(r.position++,k===`
|
||
`?(r.line++,r.column=0):r.column++);r.textNode+=a.substring(z,L-1)}k==="<"&&!(r.sawRoot&&r.closedRoot&&!r.strict)?(r.state=U.OPEN_WAKA,r.startTagPosition=r.position):(!$(k)&&(!r.sawRoot||r.closedRoot)&&oe(r,"Text data outside of root node."),k==="&"?r.state=U.TEXT_ENTITY:r.textNode+=k);continue;case U.SCRIPT:k==="<"?r.state=U.SCRIPT_ENDING:r.script+=k;continue;case U.SCRIPT_ENDING:k==="/"?r.state=U.CLOSE_TAG:(r.script+="<"+k,r.state=U.SCRIPT);continue;case U.OPEN_WAKA:if(k==="!")r.state=U.SGML_DECL,r.sgmlDecl="";else if(!$(k))if(G(D,k))r.state=U.OPEN_TAG,r.tagName=k;else if(k==="/")r.state=U.CLOSE_TAG,r.tagName="";else if(k==="?")r.state=U.PROC_INST,r.procInstName=r.procInstBody="";else{if(oe(r,"Unencoded <"),r.startTagPosition+1<r.position){var se=r.position-r.startTagPosition;k=new Array(se).join(" ")+k}r.textNode+="<"+k,r.state=U.TEXT}continue;case U.SGML_DECL:(r.sgmlDecl+k).toUpperCase()===C?(re(r,"onopencdata"),r.state=U.CDATA,r.sgmlDecl="",r.cdata=""):r.sgmlDecl+k==="--"?(r.state=U.COMMENT,r.comment="",r.sgmlDecl=""):(r.sgmlDecl+k).toUpperCase()===R?(r.state=U.DOCTYPE,(r.doctype||r.sawRoot)&&oe(r,"Inappropriately located doctype declaration"),r.doctype="",r.sgmlDecl=""):k===">"?(re(r,"onsgmldeclaration",r.sgmlDecl),r.sgmlDecl="",r.state=U.TEXT):(P(k)&&(r.state=U.SGML_DECL_QUOTED),r.sgmlDecl+=k);continue;case U.SGML_DECL_QUOTED:k===r.q&&(r.state=U.SGML_DECL,r.q=""),r.sgmlDecl+=k;continue;case U.DOCTYPE:k===">"?(r.state=U.TEXT,re(r,"ondoctype",r.doctype),r.doctype=!0):(r.doctype+=k,k==="["?r.state=U.DOCTYPE_DTD:P(k)&&(r.state=U.DOCTYPE_QUOTED,r.q=k));continue;case U.DOCTYPE_QUOTED:r.doctype+=k,k===r.q&&(r.q="",r.state=U.DOCTYPE);continue;case U.DOCTYPE_DTD:r.doctype+=k,k==="]"?r.state=U.DOCTYPE:P(k)&&(r.state=U.DOCTYPE_DTD_QUOTED,r.q=k);continue;case U.DOCTYPE_DTD_QUOTED:r.doctype+=k,k===r.q&&(r.state=U.DOCTYPE_DTD,r.q="");continue;case U.COMMENT:k==="-"?r.state=U.COMMENT_ENDING:r.comment+=k;continue;case U.COMMENT_ENDING:k==="-"?(r.state=U.COMMENT_ENDED,r.comment=de(r.opt,r.comment),r.comment&&re(r,"oncomment",r.comment),r.comment=""):(r.comment+="-"+k,r.state=U.COMMENT);continue;case U.COMMENT_ENDED:k!==">"?(oe(r,"Malformed comment"),r.comment+="--"+k,r.state=U.COMMENT):r.state=U.TEXT;continue;case U.CDATA:k==="]"?r.state=U.CDATA_ENDING:r.cdata+=k;continue;case U.CDATA_ENDING:k==="]"?r.state=U.CDATA_ENDING_2:(r.cdata+="]"+k,r.state=U.CDATA);continue;case U.CDATA_ENDING_2:k===">"?(r.cdata&&re(r,"oncdata",r.cdata),re(r,"onclosecdata"),r.cdata="",r.state=U.TEXT):k==="]"?r.cdata+="]":(r.cdata+="]]"+k,r.state=U.CDATA);continue;case U.PROC_INST:k==="?"?r.state=U.PROC_INST_ENDING:$(k)?r.state=U.PROC_INST_BODY:r.procInstName+=k;continue;case U.PROC_INST_BODY:if(!r.procInstBody&&$(k))continue;k==="?"?r.state=U.PROC_INST_ENDING:r.procInstBody+=k;continue;case U.PROC_INST_ENDING:k===">"?(re(r,"onprocessinginstruction",{name:r.procInstName,body:r.procInstBody}),r.procInstName=r.procInstBody="",r.state=U.TEXT):(r.procInstBody+="?"+k,r.state=U.PROC_INST_BODY);continue;case U.OPEN_TAG:G(ae,k)?r.tagName+=k:(q(r),k===">"?ce(r):k==="/"?r.state=U.OPEN_TAG_SLASH:($(k)||oe(r,"Invalid character in tag name"),r.state=U.ATTRIB));continue;case U.OPEN_TAG_SLASH:k===">"?(ce(r,!0),X(r)):(oe(r,"Forward-slash in opening tag not followed by >"),r.state=U.ATTRIB);continue;case U.ATTRIB:if($(k))continue;k===">"?ce(r):k==="/"?r.state=U.OPEN_TAG_SLASH:G(D,k)?(r.attribName=k,r.attribValue="",r.state=U.ATTRIB_NAME):oe(r,"Invalid attribute name");continue;case U.ATTRIB_NAME:k==="="?r.state=U.ATTRIB_VALUE:k===">"?(oe(r,"Attribute without value"),r.attribValue=r.attribName,ee(r),ce(r)):$(k)?r.state=U.ATTRIB_NAME_SAW_WHITE:G(ae,k)?r.attribName+=k:oe(r,"Invalid attribute name");continue;case U.ATTRIB_NAME_SAW_WHITE:if(k==="=")r.state=U.ATTRIB_VALUE;else{if($(k))continue;oe(r,"Attribute without value"),r.tag.attributes[r.attribName]="",r.attribValue="",re(r,"onattribute",{name:r.attribName,value:""}),r.attribName="",k===">"?ce(r):G(D,k)?(r.attribName=k,r.state=U.ATTRIB_NAME):(oe(r,"Invalid attribute name"),r.state=U.ATTRIB)}continue;case U.ATTRIB_VALUE:if($(k))continue;P(k)?(r.q=k,r.state=U.ATTRIB_VALUE_QUOTED):(oe(r,"Unquoted attribute value"),r.state=U.ATTRIB_VALUE_UNQUOTED,r.attribValue=k);continue;case U.ATTRIB_VALUE_QUOTED:if(k!==r.q){k==="&"?r.state=U.ATTRIB_VALUE_ENTITY_Q:r.attribValue+=k;continue}ee(r),r.q="",r.state=U.ATTRIB_VALUE_CLOSED;continue;case U.ATTRIB_VALUE_CLOSED:$(k)?r.state=U.ATTRIB:k===">"?ce(r):k==="/"?r.state=U.OPEN_TAG_SLASH:G(D,k)?(oe(r,"No whitespace between attributes"),r.attribName=k,r.attribValue="",r.state=U.ATTRIB_NAME):oe(r,"Invalid attribute name");continue;case U.ATTRIB_VALUE_UNQUOTED:if(!F(k)){k==="&"?r.state=U.ATTRIB_VALUE_ENTITY_U:r.attribValue+=k;continue}ee(r),k===">"?ce(r):r.state=U.ATTRIB;continue;case U.CLOSE_TAG:if(r.tagName)k===">"?X(r):G(ae,k)?r.tagName+=k:r.script?(r.script+="</"+r.tagName,r.tagName="",r.state=U.SCRIPT):($(k)||oe(r,"Invalid tagname in closing tag"),r.state=U.CLOSE_TAG_SAW_WHITE);else{if($(k))continue;J(D,k)?r.script?(r.script+="</"+k,r.state=U.SCRIPT):oe(r,"Invalid tagname in closing tag."):r.tagName=k}continue;case U.CLOSE_TAG_SAW_WHITE:if($(k))continue;k===">"?X(r):oe(r,"Invalid characters in closing tag");continue;case U.TEXT_ENTITY:case U.ATTRIB_VALUE_ENTITY_Q:case U.ATTRIB_VALUE_ENTITY_U:var pe,ge;switch(r.state){case U.TEXT_ENTITY:pe=U.TEXT,ge="textNode";break;case U.ATTRIB_VALUE_ENTITY_Q:pe=U.ATTRIB_VALUE_QUOTED,ge="attribValue";break;case U.ATTRIB_VALUE_ENTITY_U:pe=U.ATTRIB_VALUE_UNQUOTED,ge="attribValue";break}k===";"?(r[ge]+=B(r),r.entity="",r.state=pe):G(r.entity.length?te:V,k)?r.entity+=k:(oe(r,"Invalid character in entity name"),r[ge]+="&"+r.entity+k,r.entity="",r.state=pe);continue;default:throw new Error(r,"Unknown state: "+r.state)}}return r.position>=r.bufferCheckPosition&&E(r),r}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */y.default||function(){var a=String.fromCharCode,r=Math.floor,L=function(){var z=16384,se=[],pe,ge,me=-1,ve=arguments.length;if(!ve)return"";for(var be="";++me<ve;){var Oe=Number(arguments[me]);if(!isFinite(Oe)||Oe<0||Oe>1114111||r(Oe)!==Oe)throw RangeError("Invalid code point: "+Oe);Oe<=65535?se.push(Oe):(Oe-=65536,pe=(Oe>>10)+55296,ge=Oe%1024+56320,se.push(pe,ge)),(me+1===ve||se.length>z)&&(be+=a.apply(null,se),se.length=0)}return be};s.default?Object.defineProperty(String,"fromCodePoint",{value:L,configurable:!0,writable:!0}):String.fromCodePoint=L}()})(typeof c=="undefined"?(void 0).sax={}:c)}).call(this,e("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/define-property":56,"babel-runtime/core-js/object/keys":60,"babel-runtime/core-js/string/from-code-point":63,"babel-runtime/helpers/typeof":67,buffer:73,stream:230,string_decoder:72}],230:[function(e,_,c){_.exports=y;var u=e("events").EventEmitter,t=e("inherits");t(y,u),y.Readable=e("readable-stream/readable.js"),y.Writable=e("readable-stream/writable.js"),y.Duplex=e("readable-stream/duplex.js"),y.Transform=e("readable-stream/transform.js"),y.PassThrough=e("readable-stream/passthrough.js"),y.Stream=y;function y(){u.call(this)}y.prototype.pipe=function(f,h){var d=this;function n(g){f.writable&&(f.write(g)===!1&&d.pause&&d.pause())}d.on("data",n);function l(){d.readable&&d.resume&&d.resume()}f.on("drain",l),!f._isStdio&&(!h||h.end!==!1)&&(d.on("end",i),d.on("close",o));var s=!1;function i(){if(s)return;s=!0,f.end()}function o(){if(s)return;s=!0,typeof f.destroy=="function"&&f.destroy()}function b(g){if(m(),u.listenerCount(this,"error")===0)throw g}d.on("error",b),f.on("error",b);function m(){d.removeListener("data",n),f.removeListener("drain",l),d.removeListener("end",i),d.removeListener("close",o),d.removeListener("error",b),f.removeListener("error",b),d.removeListener("end",m),d.removeListener("close",m),f.removeListener("close",m)}return d.on("end",m),d.on("close",m),f.on("close",m),f.emit("pipe",d),f}},{events:192,inherits:196,"readable-stream/duplex.js":213,"readable-stream/passthrough.js":222,"readable-stream/readable.js":223,"readable-stream/transform.js":224,"readable-stream/writable.js":225}],231:[function(e,_,c){(function(u){var t=e("./lib/request"),y=e("./lib/response"),f=e("xtend"),h=e("builtin-status-codes"),d=e("url"),n=c;n.request=function(l,s){typeof l=="string"?l=d.parse(l):l=f(l);var i=u.location.protocol.search(/^https?:$/)===-1?"http:":"",o=l.protocol||i,b=l.hostname||l.host,m=l.port,g=l.path||"/";b&&b.indexOf(":")!==-1&&(b="["+b+"]"),l.url=(b?o+"//"+b:"")+(m?":"+m:"")+g,l.method=(l.method||"GET").toUpperCase(),l.headers=l.headers||{};var A=new t(l);return s&&A.on("response",s),A},n.get=function(s,i){var o=n.request(s,i);return o.end(),o},n.ClientRequest=t,n.IncomingMessage=y.IncomingMessage,n.Agent=function(){},n.Agent.defaultMaxSockets=4,n.globalAgent=new n.Agent,n.STATUS_CODES=h,n.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./lib/request":233,"./lib/response":234,"builtin-status-codes":74,url:238,xtend:283}],232:[function(e,_,c){(function(u){"use strict";c.fetch=n(u.fetch)&&n(u.ReadableStream),c.writableStream=n(u.WritableStream),c.abortController=n(u.AbortController),c.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),c.blobConstructor=!0}catch(l){}var t;function y(){if(t!==void 0)return t;if(u.XMLHttpRequest){t=new u.XMLHttpRequest;try{t.open("GET",u.XDomainRequest?"/":"https://example.com")}catch(l){t=null}}else t=null;return t}function f(l){var s=y();if(!s)return!1;try{return s.responseType=l,s.responseType===l}catch(i){}return!1}var h=typeof u.ArrayBuffer!="undefined",d=h&&n(u.ArrayBuffer.prototype.slice);c.arraybuffer=c.fetch||h&&f("arraybuffer"),c.msstream=!c.fetch&&d&&f("ms-stream"),c.mozchunkedarraybuffer=!c.fetch&&h&&f("moz-chunked-arraybuffer"),c.overrideMimeType=c.fetch||(y()?n(y().overrideMimeType):!1),c.vbArray=n(u.VBArray);function n(l){return typeof l=="function"}t=null}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],233:[function(e,_,c){(function(u,t,y){"use strict";var f=e("babel-runtime/core-js/object/keys"),h=d(f);function d(E){return E&&E.__esModule?E:{default:E}}var n=e("./capability"),l=e("inherits"),s=e("./response"),i=e("readable-stream"),o=e("to-arraybuffer"),b=s.IncomingMessage,m=s.readyStates;function g(E,j){return n.fetch&&j?"fetch":n.mozchunkedarraybuffer?"moz-chunked-arraybuffer":n.msstream?"ms-stream":n.arraybuffer&&E?"arraybuffer":n.vbArray&&E?"text:vbarray":"text"}var A=_.exports=function(E){var j=this;i.Writable.call(j),j._opts=E,j._body=[],j._headers={},E.auth&&j.setHeader("Authorization","Basic "+new y(E.auth).toString("base64")),(0,h.default)(E.headers).forEach(function(w){j.setHeader(w,E.headers[w])});var O,S=!0;if(E.mode==="disable-fetch"||"requestTimeout"in E&&!n.abortController)S=!1,O=!0;else if(E.mode==="prefer-streaming")O=!1;else if(E.mode==="allow-wrong-content-type")O=!n.overrideMimeType;else if(!E.mode||E.mode==="default"||E.mode==="prefer-fast")O=!0;else throw new Error("Invalid value for opts.mode");j._mode=g(O,S),j._fetchTimer=null,j.on("finish",function(){j._onFinish()})};l(A,i.Writable),A.prototype.setHeader=function(E,j){var O=this,S=E.toLowerCase();if(x.indexOf(S)!==-1)return;O._headers[S]={name:E,value:j}},A.prototype.getHeader=function(E){var j=this._headers[E.toLowerCase()];return j?j.value:null},A.prototype.removeHeader=function(E){var j=this;delete j._headers[E.toLowerCase()]},A.prototype._onFinish=function(){var E=this;if(E._destroyed)return;var j=E._opts,O=E._headers,S=null;j.method!=="GET"&&j.method!=="HEAD"&&(n.arraybuffer?S=o(y.concat(E._body)):n.blobConstructor?S=new t.Blob(E._body.map(function(I){return o(I)}),{type:(O["content-type"]||{}).value||""}):S=y.concat(E._body).toString());var w=[];if((0,h.default)(O).forEach(function(I){var H=O[I].name,W=O[I].value;Array.isArray(W)?W.forEach(function(D){w.push([H,D])}):w.push([H,W])}),E._mode==="fetch"){var p=null,M=null;if(n.abortController){var C=new AbortController;p=C.signal,E._fetchAbortController=C,"requestTimeout"in j&&j.requestTimeout!==0&&(E._fetchTimer=t.setTimeout(function(){E.emit("requestTimeout"),E._fetchAbortController&&E._fetchAbortController.abort()},j.requestTimeout))}t.fetch(E._opts.url,{method:E._opts.method,headers:w,body:S||void 0,mode:"cors",credentials:j.withCredentials?"include":"same-origin",signal:p}).then(function(I){E._fetchResponse=I,E._connect()},function(I){t.clearTimeout(E._fetchTimer),E._destroyed||E.emit("error",I)})}else{var R=E._xhr=new t.XMLHttpRequest;try{R.open(E._opts.method,E._opts.url,!0)}catch(I){u.nextTick(function(){E.emit("error",I)});return}"responseType"in R&&(R.responseType=E._mode.split(":")[0]),"withCredentials"in R&&(R.withCredentials=!!j.withCredentials),E._mode==="text"&&"overrideMimeType"in R&&R.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in j&&(R.timeout=j.requestTimeout,R.ontimeout=function(){E.emit("requestTimeout")}),w.forEach(function(I){R.setRequestHeader(I[0],I[1])}),E._response=null,R.onreadystatechange=function(){switch(R.readyState){case m.LOADING:case m.DONE:E._onXHRProgress();break}},E._mode==="moz-chunked-arraybuffer"&&(R.onprogress=function(){E._onXHRProgress()}),R.onerror=function(){if(E._destroyed)return;E.emit("error",new Error("XHR error"))};try{R.send(S)}catch(I){u.nextTick(function(){E.emit("error",I)});return}}};function T(E){try{var j=E.status;return j!==null&&j!==0}catch(O){return!1}}A.prototype._onXHRProgress=function(){var E=this;if(!T(E._xhr)||E._destroyed)return;E._response||E._connect(),E._response._onXHRProgress()},A.prototype._connect=function(){var E=this;if(E._destroyed)return;E._response=new b(E._xhr,E._fetchResponse,E._mode,E._fetchTimer),E._response.on("error",function(j){E.emit("error",j)}),E.emit("response",E._response)},A.prototype._write=function(E,j,O){var S=this;S._body.push(E),O()},A.prototype.abort=A.prototype.destroy=function(){var E=this;E._destroyed=!0,t.clearTimeout(E._fetchTimer),E._response&&(E._response._destroyed=!0),E._xhr?E._xhr.abort():E._fetchAbortController&&E._fetchAbortController.abort()},A.prototype.end=function(E,j,O){var S=this;typeof E=="function"&&(O=E,E=void 0),i.Writable.prototype.end.call(S,E,j,O)},A.prototype.flushHeaders=function(){},A.prototype.setTimeout=function(){},A.prototype.setNoDelay=function(){},A.prototype.setSocketKeepAlive=function(){};var x=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this,e("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},e("buffer").Buffer)},{"./capability":232,"./response":234,_process:208,"babel-runtime/core-js/object/keys":60,buffer:73,inherits:196,"readable-stream":223,"to-arraybuffer":237}],234:[function(e,_,c){(function(u,t,y){"use strict";var f=e("babel-runtime/core-js/promise"),h=d(f);function d(b){return b&&b.__esModule?b:{default:b}}var n=e("./capability"),l=e("inherits"),s=e("readable-stream"),i=c.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},o=c.IncomingMessage=function(b,m,g,A){var T=this;if(s.Readable.call(T),T._mode=g,T.headers={},T.rawHeaders=[],T.trailers={},T.rawTrailers=[],T.on("end",function(){u.nextTick(function(){T.emit("close")})}),g==="fetch"){var x=function p(){j.read().then(function(M){if(T._destroyed)return;if(M.done){t.clearTimeout(A),T.push(null);return}T.push(new y(M.value)),p()}).catch(function(M){t.clearTimeout(A),T._destroyed||T.emit("error",M)})};if(T._fetchResponse=m,T.url=m.url,T.statusCode=m.status,T.statusMessage=m.statusText,m.headers.forEach(function(p,M){T.headers[M.toLowerCase()]=p,T.rawHeaders.push(M,p)}),n.writableStream){var E=new WritableStream({write:function(M){return new h.default(function(C,R){T._destroyed?R():T.push(new y(M))?C():T._resumeFetch=C})},close:function(){t.clearTimeout(A),T._destroyed||T.push(null)},abort:function(M){T._destroyed||T.emit("error",M)}});try{m.body.pipeTo(E).catch(function(p){t.clearTimeout(A),T._destroyed||T.emit("error",p)});return}catch(p){}}var j=m.body.getReader();x()}else{T._xhr=b,T._pos=0,T.url=b.responseURL,T.statusCode=b.status,T.statusMessage=b.statusText;var O=b.getAllResponseHeaders().split(/\r?\n/);if(O.forEach(function(p){var M=p.match(/^([^:]+):\s*(.*)/);if(M){var C=M[1].toLowerCase();C==="set-cookie"?(T.headers[C]===void 0&&(T.headers[C]=[]),T.headers[C].push(M[2])):T.headers[C]!==void 0?T.headers[C]+=", "+M[2]:T.headers[C]=M[2],T.rawHeaders.push(M[1],M[2])}}),T._charset="x-user-defined",!n.overrideMimeType){var S=T.rawHeaders["mime-type"];if(S){var w=S.match(/;\s*charset=([^;])(;|$)/);w&&(T._charset=w[1].toLowerCase())}T._charset||(T._charset="utf-8")}}};l(o,s.Readable),o.prototype._read=function(){var b=this,m=b._resumeFetch;m&&(b._resumeFetch=null,m())},o.prototype._onXHRProgress=function(){var b=this,m=b._xhr,g=null;switch(b._mode){case"text:vbarray":if(m.readyState!==i.DONE)break;try{g=new t.VBArray(m.responseBody).toArray()}catch(j){}if(g!==null){b.push(new y(g));break}case"text":try{g=m.responseText}catch(j){b._mode="text:vbarray";break}if(g.length>b._pos){var A=g.substr(b._pos);if(b._charset==="x-user-defined"){for(var T=new y(A.length),x=0;x<A.length;x++)T[x]=A.charCodeAt(x)&255;b.push(T)}else b.push(A,b._charset);b._pos=g.length}break;case"arraybuffer":if(m.readyState!==i.DONE||!m.response)break;g=m.response,b.push(new y(new Uint8Array(g)));break;case"moz-chunked-arraybuffer":if(g=m.response,m.readyState!==i.LOADING||!g)break;b.push(new y(new Uint8Array(g)));break;case"ms-stream":if(g=m.response,m.readyState!==i.LOADING)break;var E=new t.MSStreamReader;E.onprogress=function(){E.result.byteLength>b._pos&&(b.push(new y(new Uint8Array(E.result.slice(b._pos)))),b._pos=E.result.byteLength)},E.onload=function(){b.push(null)},E.readAsArrayBuffer(g);break}b._xhr.readyState===i.DONE&&b._mode!=="ms-stream"&&b.push(null)}}).call(this,e("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},e("buffer").Buffer)},{"./capability":232,_process:208,"babel-runtime/core-js/promise":61,buffer:73,inherits:196,"readable-stream":223}],235:[function(e,_,c){"use strict";var u=e("safe-buffer").Buffer,t=u.isEncoding||function(E){E=""+E;switch(E&&E.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function y(E){if(!E)return"utf8";for(var j;;)switch(E){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return E;default:if(j)return;E=(""+E).toLowerCase(),j=!0}}function f(E){var j=y(E);if(typeof j!="string"&&(u.isEncoding===t||!t(E)))throw new Error("Unknown encoding: "+E);return j||E}c.StringDecoder=h;function h(E){this.encoding=f(E);var j;switch(this.encoding){case"utf16le":this.text=b,this.end=m,j=4;break;case"utf8":this.fillLast=s,j=4;break;case"base64":this.text=g,this.end=A,j=3;break;default:this.write=T,this.end=x;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=u.allocUnsafe(j)}h.prototype.write=function(E){if(E.length===0)return"";var j,O;if(this.lastNeed){if(j=this.fillLast(E),j===void 0)return"";O=this.lastNeed,this.lastNeed=0}else O=0;return O<E.length?j?j+this.text(E,O):this.text(E,O):j||""},h.prototype.end=o,h.prototype.text=i,h.prototype.fillLast=function(E){if(this.lastNeed<=E.length)return E.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);E.copy(this.lastChar,this.lastTotal-this.lastNeed,0,E.length),this.lastNeed-=E.length};function d(E){return E<=127?0:E>>5===6?2:E>>4===14?3:E>>3===30?4:E>>6===2?-1:-2}function n(E,j,O){var S=j.length-1;if(S<O)return 0;var w=d(j[S]);return w>=0?(w>0&&(E.lastNeed=w-1),w):--S<O||w===-2?0:(w=d(j[S]),w>=0?(w>0&&(E.lastNeed=w-2),w):--S<O||w===-2?0:(w=d(j[S]),w>=0?(w>0&&(w===2?w=0:E.lastNeed=w-3),w):0))}function l(E,j,O){if((j[0]&192)!==128)return E.lastNeed=0,"\uFFFD";if(E.lastNeed>1&&j.length>1){if((j[1]&192)!==128)return E.lastNeed=1,"\uFFFD";if(E.lastNeed>2&&j.length>2&&(j[2]&192)!==128)return E.lastNeed=2,"\uFFFD"}}function s(E){var j=this.lastTotal-this.lastNeed,O=l(this,E,j);if(O!==void 0)return O;if(this.lastNeed<=E.length)return E.copy(this.lastChar,j,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);E.copy(this.lastChar,j,0,E.length),this.lastNeed-=E.length}function i(E,j){var O=n(this,E,j);if(!this.lastNeed)return E.toString("utf8",j);this.lastTotal=O;var S=E.length-(O-this.lastNeed);return E.copy(this.lastChar,0,S),E.toString("utf8",j,S)}function o(E){var j=E&&E.length?this.write(E):"";return this.lastNeed?j+"\uFFFD":j}function b(E,j){if((E.length-j)%2===0){var O=E.toString("utf16le",j);if(O){var S=O.charCodeAt(O.length-1);if(S>=55296&&S<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=E[E.length-2],this.lastChar[1]=E[E.length-1],O.slice(0,-1)}return O}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=E[E.length-1],E.toString("utf16le",j,E.length-1)}function m(E){var j=E&&E.length?this.write(E):"";if(this.lastNeed){var O=this.lastTotal-this.lastNeed;return j+this.lastChar.toString("utf16le",0,O)}return j}function g(E,j){var O=(E.length-j)%3;return O===0?E.toString("base64",j):(this.lastNeed=3-O,this.lastTotal=3,O===1?this.lastChar[0]=E[E.length-1]:(this.lastChar[0]=E[E.length-2],this.lastChar[1]=E[E.length-1]),E.toString("base64",j,E.length-O))}function A(E){var j=E&&E.length?this.write(E):"";return this.lastNeed?j+this.lastChar.toString("base64",0,3-this.lastNeed):j}function T(E){return E.toString(this.encoding)}function x(E){return E&&E.length?this.write(E):""}},{"safe-buffer":228}],236:[function(e,_,c){(function(u,t){var y=e("process/browser.js").nextTick,f=Function.prototype.apply,h=Array.prototype.slice,d={},n=0;c.setTimeout=function(){return new l(f.call(setTimeout,window,arguments),clearTimeout)},c.setInterval=function(){return new l(f.call(setInterval,window,arguments),clearInterval)},c.clearTimeout=c.clearInterval=function(s){s.close()};function l(s,i){this._id=s,this._clearFn=i}l.prototype.unref=l.prototype.ref=function(){},l.prototype.close=function(){this._clearFn.call(window,this._id)},c.enroll=function(s,i){clearTimeout(s._idleTimeoutId),s._idleTimeout=i},c.unenroll=function(s){clearTimeout(s._idleTimeoutId),s._idleTimeout=-1},c._unrefActive=c.active=function(s){clearTimeout(s._idleTimeoutId);var i=s._idleTimeout;i>=0&&(s._idleTimeoutId=setTimeout(function(){s._onTimeout&&s._onTimeout()},i))},c.setImmediate=typeof u=="function"?u:function(s){var i=n++,o=arguments.length<2?!1:h.call(arguments,1);return d[i]=!0,y(function(){d[i]&&(o?s.apply(null,o):s.call(null),c.clearImmediate(i))}),i},c.clearImmediate=typeof t=="function"?t:function(s){delete d[s]}}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":208,timers:236}],237:[function(e,_,c){var u=e("buffer").Buffer;_.exports=function(t){if(t instanceof Uint8Array){if(t.byteOffset===0&&t.byteLength===t.buffer.byteLength)return t.buffer;if(typeof t.buffer.slice=="function")return t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}if(u.isBuffer(t)){for(var y=new Uint8Array(t.length),f=t.length,h=0;h<f;h++)y[h]=t[h];return y.buffer}else throw new Error("Argument must be a Buffer")}},{buffer:73}],238:[function(e,_,c){"use strict";var u=e("punycode"),t=e("./util");c.parse=j,c.resolve=S,c.resolveObject=w,c.format=O,c.Url=y;function y(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var f=/^([a-z0-9.+-]+:)/i,h=/:[0-9]*$/,d=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,n=["<",">",'"',"`"," ","\r",`
|
||
`," "],l=["{","}","|","\\","^","`"].concat(n),s=["'"].concat(l),i=["%","/","?",";","#"].concat(s),o=["/","?","#"],b=255,m=/^[+a-z0-9A-Z_-]{0,63}$/,g=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,A={javascript:!0,"javascript:":!0},T={javascript:!0,"javascript:":!0},x={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},E=e("querystring");function j(p,M,C){if(p&&t.isObject(p)&&p instanceof y)return p;var R=new y;return R.parse(p,M,C),R}y.prototype.parse=function(p,M,C){if(!t.isString(p))throw new TypeError("Parameter 'url' must be a string, not "+typeof p);var R=p.indexOf("?"),I=R!==-1&&R<p.indexOf("#")?"?":"#",H=p.split(I),W=/\\/g;H[0]=H[0].replace(W,"/"),p=H.join(I);var D=p;if(D=D.trim(),!C&&p.split("#").length===1){var ae=d.exec(D);if(ae)return this.path=D,this.href=D,this.pathname=ae[1],ae[2]?(this.search=ae[2],M?this.query=E.parse(this.search.substr(1)):this.query=this.search.substr(1)):M&&(this.search="",this.query={}),this}var V=f.exec(D);if(V){V=V[0];var te=V.toLowerCase();this.protocol=te,D=D.substr(V.length)}if(C||V||D.match(/^\/\/[^@\/]+@[^@\/]+/)){var $=D.substr(0,2)==="//";$&&!(V&&T[V])&&(D=D.substr(2),this.slashes=!0)}if(!T[V]&&($||V&&!x[V])){for(var P=-1,F=0;F<o.length;F++){var G=D.indexOf(o[F]);G!==-1&&(P===-1||G<P)&&(P=G)}var J,U;P===-1?U=D.lastIndexOf("@"):U=D.lastIndexOf("@",P),U!==-1&&(J=D.slice(0,U),D=D.slice(U+1),this.auth=decodeURIComponent(J)),P=-1;for(var F=0;F<i.length;F++){var G=D.indexOf(i[F]);G!==-1&&(P===-1||G<P)&&(P=G)}P===-1&&(P=D.length),this.host=D.slice(0,P),D=D.slice(P),this.parseHost(),this.hostname=this.hostname||"";var Z=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!Z)for(var ie=this.hostname.split(/\./),F=0,re=ie.length;F<re;F++){var le=ie[F];if(!le)continue;if(!le.match(m)){for(var de="",K=0,Se=le.length;K<Se;K++)le.charCodeAt(K)>127?de+="x":de+=le[K];if(!de.match(m)){var oe=ie.slice(0,F),q=ie.slice(F+1),Q=le.match(g);Q&&(oe.push(Q[1]),q.unshift(Q[2])),q.length&&(D="/"+q.join(".")+D),this.hostname=oe.join(".");break}}}this.hostname.length>b?this.hostname="":this.hostname=this.hostname.toLowerCase(),Z||(this.hostname=u.toASCII(this.hostname));var ee=this.port?":"+this.port:"",ce=this.hostname||"";this.host=ce+ee,this.href+=this.host,Z&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),D[0]!=="/"&&(D="/"+D))}if(!A[te])for(var F=0,re=s.length;F<re;F++){var X=s[F];if(D.indexOf(X)===-1)continue;var B=encodeURIComponent(X);B===X&&(B=escape(X)),D=D.split(X).join(B)}var Y=D.indexOf("#");Y!==-1&&(this.hash=D.substr(Y),D=D.slice(0,Y));var N=D.indexOf("?");if(N!==-1?(this.search=D.substr(N),this.query=D.substr(N+1),M&&(this.query=E.parse(this.query)),D=D.slice(0,N)):M&&(this.search="",this.query={}),D&&(this.pathname=D),x[te]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var ee=this.pathname||"",v=this.search||"";this.path=ee+v}return this.href=this.format(),this};function O(p){return t.isString(p)&&(p=j(p)),p instanceof y?p.format():y.prototype.format.call(p)}y.prototype.format=function(){var p=this.auth||"";p&&(p=encodeURIComponent(p),p=p.replace(/%3A/i,":"),p+="@");var M=this.protocol||"",C=this.pathname||"",R=this.hash||"",I=!1,H="";this.host?I=p+this.host:this.hostname&&(I=p+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(I+=":"+this.port)),this.query&&t.isObject(this.query)&&Object.keys(this.query).length&&(H=E.stringify(this.query));var W=this.search||H&&"?"+H||"";return M&&M.substr(-1)!==":"&&(M+=":"),this.slashes||(!M||x[M])&&I!==!1?(I="//"+(I||""),C&&C.charAt(0)!=="/"&&(C="/"+C)):I||(I=""),R&&R.charAt(0)!=="#"&&(R="#"+R),W&&W.charAt(0)!=="?"&&(W="?"+W),C=C.replace(/[?#]/g,function(D){return encodeURIComponent(D)}),W=W.replace("#","%23"),M+I+C+W+R};function S(p,M){return j(p,!1,!0).resolve(M)}y.prototype.resolve=function(p){return this.resolveObject(j(p,!1,!0)).format()};function w(p,M){return p?j(p,!1,!0).resolveObject(M):M}y.prototype.resolveObject=function(p){if(t.isString(p)){var M=new y;M.parse(p,!1,!0),p=M}for(var C=new y,R=Object.keys(this),I=0;I<R.length;I++){var H=R[I];C[H]=this[H]}if(C.hash=p.hash,p.href==="")return C.href=C.format(),C;if(p.slashes&&!p.protocol){for(var W=Object.keys(p),D=0;D<W.length;D++){var ae=W[D];ae!=="protocol"&&(C[ae]=p[ae])}return x[C.protocol]&&C.hostname&&!C.pathname&&(C.path=C.pathname="/"),C.href=C.format(),C}if(p.protocol&&p.protocol!==C.protocol){if(!x[p.protocol]){for(var V=Object.keys(p),te=0;te<V.length;te++){var $=V[te];C[$]=p[$]}return C.href=C.format(),C}if(C.protocol=p.protocol,!p.host&&!T[p.protocol]){for(var re=(p.pathname||"").split("/");re.length&&!(p.host=re.shift()););p.host||(p.host=""),p.hostname||(p.hostname=""),re[0]!==""&&re.unshift(""),re.length<2&&re.unshift(""),C.pathname=re.join("/")}else C.pathname=p.pathname;if(C.search=p.search,C.query=p.query,C.host=p.host||"",C.auth=p.auth,C.hostname=p.hostname||p.host,C.port=p.port,C.pathname||C.search){var P=C.pathname||"",F=C.search||"";C.path=P+F}return C.slashes=C.slashes||p.slashes,C.href=C.format(),C}var G=C.pathname&&C.pathname.charAt(0)==="/",J=p.host||p.pathname&&p.pathname.charAt(0)==="/",U=J||G||C.host&&p.pathname,Z=U,ie=C.pathname&&C.pathname.split("/")||[],re=p.pathname&&p.pathname.split("/")||[],le=C.protocol&&!x[C.protocol];if(le&&(C.hostname="",C.port=null,C.host&&(ie[0]===""?ie[0]=C.host:ie.unshift(C.host)),C.host="",p.protocol&&(p.hostname=null,p.port=null,p.host&&(re[0]===""?re[0]=p.host:re.unshift(p.host)),p.host=null),U=U&&(re[0]===""||ie[0]==="")),J)C.host=p.host||p.host===""?p.host:C.host,C.hostname=p.hostname||p.hostname===""?p.hostname:C.hostname,C.search=p.search,C.query=p.query,ie=re;else if(re.length)ie||(ie=[]),ie.pop(),ie=ie.concat(re),C.search=p.search,C.query=p.query;else if(!t.isNullOrUndefined(p.search)){if(le){C.hostname=C.host=ie.shift();var de=C.host&&C.host.indexOf("@")>0?C.host.split("@"):!1;de&&(C.auth=de.shift(),C.host=C.hostname=de.shift())}return C.search=p.search,C.query=p.query,(!t.isNull(C.pathname)||!t.isNull(C.search))&&(C.path=(C.pathname?C.pathname:"")+(C.search?C.search:"")),C.href=C.format(),C}if(!ie.length)return C.pathname=null,C.search?C.path="/"+C.search:C.path=null,C.href=C.format(),C;for(var K=ie.slice(-1)[0],Se=(C.host||p.host||ie.length>1)&&(K==="."||K==="..")||K==="",oe=0,q=ie.length;q>=0;q--)K=ie[q],K==="."?ie.splice(q,1):K===".."?(ie.splice(q,1),oe++):oe&&(ie.splice(q,1),oe--);if(!U&&!Z)for(;oe--;oe)ie.unshift("..");U&&ie[0]!==""&&(!ie[0]||ie[0].charAt(0)!=="/")&&ie.unshift(""),Se&&ie.join("/").substr(-1)!=="/"&&ie.push("");var Q=ie[0]===""||ie[0]&&ie[0].charAt(0)==="/";if(le){C.hostname=C.host=Q?"":ie.length?ie.shift():"";var de=C.host&&C.host.indexOf("@")>0?C.host.split("@"):!1;de&&(C.auth=de.shift(),C.host=C.hostname=de.shift())}return U=U||C.host&&ie.length,U&&!Q&&ie.unshift(""),ie.length?C.pathname=ie.join("/"):(C.pathname=null,C.path=null),(!t.isNull(C.pathname)||!t.isNull(C.search))&&(C.path=(C.pathname?C.pathname:"")+(C.search?C.search:"")),C.auth=p.auth||C.auth,C.slashes=C.slashes||p.slashes,C.href=C.format(),C},y.prototype.parseHost=function(){var p=this.host,M=h.exec(p);M&&(M=M[0],M!==":"&&(this.port=M.substr(1)),p=p.substr(0,p.length-M.length)),p&&(this.hostname=p)}},{"./util":239,punycode:209,querystring:212}],239:[function(e,_,c){"use strict";_.exports={isString:function(t){return typeof t=="string"},isObject:function(t){return typeof t=="object"&&t!==null},isNull:function(t){return t===null},isNullOrUndefined:function(t){return t==null}}},{}],240:[function(e,_,c){(function(u){_.exports=t;function t(f,h){if(y("noDeprecation"))return f;var d=!1;function n(){if(!d){if(y("throwDeprecation"))throw new Error(h);y("traceDeprecation")?console.trace(h):console.warn(h),d=!0}return f.apply(this,arguments)}return n}function y(f){try{if(!u.localStorage)return!1}catch(d){return!1}var h=u.localStorage[f];return h==null?!1:String(h).toLowerCase()==="true"}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],241:[function(e,_,c){typeof Object.create=="function"?_.exports=function(t,y){t.super_=y,t.prototype=Object.create(y.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:_.exports=function(t,y){t.super_=y;var f=function(){};f.prototype=y.prototype,t.prototype=new f,t.prototype.constructor=t}},{}],242:[function(e,_,c){_.exports=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}},{}],243:[function(e,_,c){(function(u,t){var y=/%[sdj%]/g;c.format=function(P){if(!S(P)){for(var F=[],G=0;G<arguments.length;G++)F.push(d(arguments[G]));return F.join(" ")}for(var G=1,J=arguments,U=J.length,Z=String(P).replace(y,function(re){if(re==="%%")return"%";if(G>=U)return re;switch(re){case"%s":return String(J[G++]);case"%d":return Number(J[G++]);case"%j":try{return JSON.stringify(J[G++])}catch(le){return"[Circular]"}default:return re}}),ie=J[G];G<U;ie=J[++G])E(ie)||!C(ie)?Z+=" "+ie:Z+=" "+d(ie);return Z},c.deprecate=function(P,F){if(p(t.process))return function(){return c.deprecate(P,F).apply(this,arguments)};if(u.noDeprecation===!0)return P;var G=!1;function J(){if(!G){if(u.throwDeprecation)throw new Error(F);u.traceDeprecation?console.trace(F):console.error(F),G=!0}return P.apply(this,arguments)}return J};var f={},h;c.debuglog=function(P){if(p(h)&&(h=u.env.NODE_DEBUG||""),P=P.toUpperCase(),!f[P])if(new RegExp("\\b"+P+"\\b","i").test(h)){var F=u.pid;f[P]=function(){var G=c.format.apply(c,arguments);console.error("%s %d: %s",P,F,G)}}else f[P]=function(){};return f[P]};function d(P,F){var G={seen:[],stylize:l};return arguments.length>=3&&(G.depth=arguments[2]),arguments.length>=4&&(G.colors=arguments[3]),x(F)?G.showHidden=F:F&&c._extend(G,F),p(G.showHidden)&&(G.showHidden=!1),p(G.depth)&&(G.depth=2),p(G.colors)&&(G.colors=!1),p(G.customInspect)&&(G.customInspect=!0),G.colors&&(G.stylize=n),i(G,P,G.depth)}c.inspect=d,d.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},d.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function n(P,F){var G=d.styles[F];return G?"["+d.colors[G][0]+"m"+P+"["+d.colors[G][1]+"m":P}function l(P,F){return P}function s(P){var F={};return P.forEach(function(G,J){F[G]=!0}),F}function i(P,F,G){if(P.customInspect&&F&&H(F.inspect)&&F.inspect!==c.inspect&&!(F.constructor&&F.constructor.prototype===F)){var J=F.inspect(G,P);return S(J)||(J=i(P,J,G)),J}var U=o(P,F);if(U)return U;var Z=Object.keys(F),ie=s(Z);if(P.showHidden&&(Z=Object.getOwnPropertyNames(F)),I(F)&&(Z.indexOf("message")>=0||Z.indexOf("description")>=0))return b(F);if(Z.length===0){if(H(F)){var re=F.name?": "+F.name:"";return P.stylize("[Function"+re+"]","special")}if(M(F))return P.stylize(RegExp.prototype.toString.call(F),"regexp");if(R(F))return P.stylize(Date.prototype.toString.call(F),"date");if(I(F))return b(F)}var le="",de=!1,K=["{","}"];if(T(F)&&(de=!0,K=["[","]"]),H(F)){var Se=F.name?": "+F.name:"";le=" [Function"+Se+"]"}if(M(F)&&(le=" "+RegExp.prototype.toString.call(F)),R(F)&&(le=" "+Date.prototype.toUTCString.call(F)),I(F)&&(le=" "+b(F)),Z.length===0&&(!de||F.length==0))return K[0]+le+K[1];if(G<0)return M(F)?P.stylize(RegExp.prototype.toString.call(F),"regexp"):P.stylize("[Object]","special");P.seen.push(F);var oe;return de?oe=m(P,F,G,ie,Z):oe=Z.map(function(q){return g(P,F,G,ie,q,de)}),P.seen.pop(),A(oe,le,K)}function o(P,F){if(p(F))return P.stylize("undefined","undefined");if(S(F)){var G="'"+JSON.stringify(F).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return P.stylize(G,"string")}if(O(F))return P.stylize(""+F,"number");if(x(F))return P.stylize(""+F,"boolean");if(E(F))return P.stylize("null","null")}function b(P){return"["+Error.prototype.toString.call(P)+"]"}function m(P,F,G,J,U){for(var Z=[],ie=0,re=F.length;ie<re;++ie)$(F,String(ie))?Z.push(g(P,F,G,J,String(ie),!0)):Z.push("");return U.forEach(function(le){le.match(/^\d+$/)||Z.push(g(P,F,G,J,le,!0))}),Z}function g(P,F,G,J,U,Z){var ie,re,le;if(le=Object.getOwnPropertyDescriptor(F,U)||{value:F[U]},le.get?le.set?re=P.stylize("[Getter/Setter]","special"):re=P.stylize("[Getter]","special"):le.set&&(re=P.stylize("[Setter]","special")),$(J,U)||(ie="["+U+"]"),re||(P.seen.indexOf(le.value)<0?(E(G)?re=i(P,le.value,null):re=i(P,le.value,G-1),re.indexOf(`
|
||
`)>-1&&(Z?re=re.split(`
|
||
`).map(function(de){return" "+de}).join(`
|
||
`).substr(2):re=`
|
||
`+re.split(`
|
||
`).map(function(de){return" "+de}).join(`
|
||
`))):re=P.stylize("[Circular]","special")),p(ie)){if(Z&&U.match(/^\d+$/))return re;ie=JSON.stringify(""+U),ie.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(ie=ie.substr(1,ie.length-2),ie=P.stylize(ie,"name")):(ie=ie.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),ie=P.stylize(ie,"string"))}return ie+": "+re}function A(P,F,G){var J=0,U=P.reduce(function(Z,ie){return J++,ie.indexOf(`
|
||
`)>=0&&J++,Z+ie.replace(/\u001b\[\d\d?m/g,"").length+1},0);return U>60?G[0]+(F===""?"":F+`
|
||
`)+" "+P.join(`,
|
||
`)+" "+G[1]:G[0]+F+" "+P.join(", ")+" "+G[1]}function T(P){return Array.isArray(P)}c.isArray=T;function x(P){return typeof P=="boolean"}c.isBoolean=x;function E(P){return P===null}c.isNull=E;function j(P){return P==null}c.isNullOrUndefined=j;function O(P){return typeof P=="number"}c.isNumber=O;function S(P){return typeof P=="string"}c.isString=S;function w(P){return typeof P=="symbol"}c.isSymbol=w;function p(P){return P===void 0}c.isUndefined=p;function M(P){return C(P)&&D(P)==="[object RegExp]"}c.isRegExp=M;function C(P){return typeof P=="object"&&P!==null}c.isObject=C;function R(P){return C(P)&&D(P)==="[object Date]"}c.isDate=R;function I(P){return C(P)&&(D(P)==="[object Error]"||P instanceof Error)}c.isError=I;function H(P){return typeof P=="function"}c.isFunction=H;function W(P){return P===null||typeof P=="boolean"||typeof P=="number"||typeof P=="string"||typeof P=="symbol"||typeof P=="undefined"}c.isPrimitive=W,c.isBuffer=e("./support/isBuffer");function D(P){return Object.prototype.toString.call(P)}function ae(P){return P<10?"0"+P.toString(10):P.toString(10)}var V=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function te(){var P=new Date,F=[ae(P.getHours()),ae(P.getMinutes()),ae(P.getSeconds())].join(":");return[P.getDate(),V[P.getMonth()],F].join(" ")}c.log=function(){console.log("%s - %s",te(),c.format.apply(c,arguments))},c.inherits=e("inherits"),c._extend=function(P,F){if(!F||!C(F))return P;for(var G=Object.keys(F),J=G.length;J--;)P[G[J]]=F[G[J]];return P};function $(P,F){return Object.prototype.hasOwnProperty.call(P,F)}}).call(this,e("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":242,_process:208,inherits:241}],244:[function(e,_,c){"use strict";(function(){"use strict";c.stripBOM=function(u){return u[0]==="\uFEFF"?u.substring(1):u}}).call(void 0)},{}],245:[function(e,_,c){"use strict";var u=e("babel-runtime/helpers/typeof"),t=h(u),y=e("babel-runtime/core-js/object/keys"),f=h(y);function h(d){return d&&d.__esModule?d:{default:d}}(function(){"use strict";var d,n,l,s,i,o={}.hasOwnProperty;d=e("xmlbuilder"),n=e("./defaults").defaults,s=function(m){return typeof m=="string"&&(m.indexOf("&")>=0||m.indexOf(">")>=0||m.indexOf("<")>=0)},i=function(m){return"<![CDATA["+l(m)+"]]>"},l=function(m){return m.replace("]]>","]]]]><![CDATA[>")},c.Builder=function(){function b(m){var g,A,T;this.options={},A=n["0.2"];for(g in A){if(!o.call(A,g))continue;T=A[g],this.options[g]=T}for(g in m){if(!o.call(m,g))continue;T=m[g],this.options[g]=T}}return b.prototype.buildObject=function(m){var g,A,T,x,E;return g=this.options.attrkey,A=this.options.charkey,(0,f.default)(m).length===1&&this.options.rootName===n["0.2"].rootName?(E=(0,f.default)(m)[0],m=m[E]):E=this.options.rootName,T=function(j){return function(O,S){var w,p,M,C,R,I;if((typeof S=="undefined"?"undefined":(0,t.default)(S))!=="object")j.options.cdata&&s(S)?O.raw(i(S)):O.txt(S);else if(Array.isArray(S))for(C in S){if(!o.call(S,C))continue;p=S[C];for(R in p)M=p[R],O=T(O.ele(R),M).up()}else for(R in S){if(!o.call(S,R))continue;if(p=S[R],R===g){if((typeof p=="undefined"?"undefined":(0,t.default)(p))==="object")for(w in p)I=p[w],O=O.att(w,I)}else if(R===A)j.options.cdata&&s(p)?O=O.raw(i(p)):O=O.txt(p);else if(Array.isArray(p))for(C in p){if(!o.call(p,C))continue;M=p[C],typeof M=="string"?j.options.cdata&&s(M)?O=O.ele(R).raw(i(M)).up():O=O.ele(R,M).up():O=T(O.ele(R),M).up()}else(typeof p=="undefined"?"undefined":(0,t.default)(p))==="object"?O=T(O.ele(R),p).up():typeof p=="string"&&j.options.cdata&&s(p)?O=O.ele(R).raw(i(p)).up():(p==null&&(p=""),O=O.ele(R,p.toString()).up())}return O}}(this),x=d.create(E,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),T(x,m).end(this.options.renderOpts)},b}()}).call(void 0)},{"./defaults":246,"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67,xmlbuilder:282}],246:[function(e,_,c){"use strict";(function(){c.defaults={"0.1":{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},"0.2":{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:`
|
||
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(void 0)},{}],247:[function(e,_,c){"use strict";var u=e("babel-runtime/core-js/promise"),t=s(u),y=e("babel-runtime/core-js/object/get-own-property-names"),f=s(y),h=e("babel-runtime/core-js/object/keys"),d=s(h),n=e("babel-runtime/helpers/typeof"),l=s(n);function s(i){return i&&i.__esModule?i:{default:i}}(function(){"use strict";var i,o,b,m,g,A,T,x,E=function(w,p){return function(){return w.apply(p,arguments)}},j=function(w,p){for(var M in p)O.call(p,M)&&(w[M]=p[M]);function C(){this.constructor=w}return C.prototype=p.prototype,w.prototype=new C,w.__super__=p.prototype,w},O={}.hasOwnProperty;T=e("sax"),b=e("events"),i=e("./bom"),A=e("./processors"),x=e("timers").setImmediate,o=e("./defaults").defaults,m=function(w){return(typeof w=="undefined"?"undefined":(0,l.default)(w))==="object"&&w!=null&&(0,d.default)(w).length===0},g=function(w,p,M){var C,R,I;for(C=0,R=w.length;C<R;C++)I=w[C],p=I(p,M);return p},c.Parser=function(S){j(w,S);function w(p){this.parseStringPromise=E(this.parseStringPromise,this),this.parseString=E(this.parseString,this),this.reset=E(this.reset,this),this.assignOrPush=E(this.assignOrPush,this),this.processAsync=E(this.processAsync,this);var M,C,R;if(!(this instanceof c.Parser))return new c.Parser(p);this.options={},C=o["0.2"];for(M in C){if(!O.call(C,M))continue;R=C[M],this.options[M]=R}for(M in p){if(!O.call(p,M))continue;R=p[M],this.options[M]=R}this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(A.normalize)),this.reset()}return w.prototype.processAsync=function(){var p,M;try{return this.remaining.length<=this.options.chunkSize?(p=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(p),this.saxParser.close()):(p=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(p),x(this.processAsync))}catch(C){if(M=C,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(M)}},w.prototype.assignOrPush=function(p,M,C){return M in p?(p[M]instanceof Array||(p[M]=[p[M]]),p[M].push(C)):this.options.explicitArray?p[M]=[C]:p[M]=C},w.prototype.reset=function(){var p,M,C,R;return this.removeAllListeners(),this.saxParser=T.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(I){return function(H){if(I.saxParser.resume(),!I.saxParser.errThrown)return I.saxParser.errThrown=!0,I.emit("error",H)}}(this),this.saxParser.onend=function(I){return function(){if(!I.saxParser.ended)return I.saxParser.ended=!0,I.emit("end",I.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,R=[],p=this.options.attrkey,M=this.options.charkey,this.saxParser.onopentag=function(I){return function(H){var W,D,ae,V,te;if(ae={},ae[M]="",!I.options.ignoreAttrs){te=H.attributes;for(W in te){if(!O.call(te,W))continue;!(p in ae)&&!I.options.mergeAttrs&&(ae[p]={}),D=I.options.attrValueProcessors?g(I.options.attrValueProcessors,H.attributes[W],W):H.attributes[W],V=I.options.attrNameProcessors?g(I.options.attrNameProcessors,W):W,I.options.mergeAttrs?I.assignOrPush(ae,V,D):ae[p][V]=D}}return ae["#name"]=I.options.tagNameProcessors?g(I.options.tagNameProcessors,H.name):H.name,I.options.xmlns&&(ae[I.options.xmlnskey]={uri:H.uri,local:H.local}),R.push(ae)}}(this),this.saxParser.onclosetag=function(I){return function(){var H,W,D,ae,V,te,$,P,F,G;if(te=R.pop(),V=te["#name"],(!I.options.explicitChildren||!I.options.preserveChildrenOrder)&&delete te["#name"],te.cdata===!0&&(H=te.cdata,delete te.cdata),F=R[R.length-1],te[M].match(/^\s*$/)&&!H?(W=te[M],delete te[M]):(I.options.trim&&(te[M]=te[M].trim()),I.options.normalize&&(te[M]=te[M].replace(/\s{2,}/g," ").trim()),te[M]=I.options.valueProcessors?g(I.options.valueProcessors,te[M],V):te[M],(0,d.default)(te).length===1&&M in te&&!I.EXPLICIT_CHARKEY&&(te=te[M])),m(te)&&(te=I.options.emptyTag!==""?I.options.emptyTag:W),I.options.validator!=null&&(G="/"+function(){var J,U,Z;for(Z=[],J=0,U=R.length;J<U;J++)ae=R[J],Z.push(ae["#name"]);return Z}().concat(V).join("/"),function(){var J;try{return te=I.options.validator(G,F&&F[V],te)}catch(U){return J=U,I.emit("error",J)}}()),I.options.explicitChildren&&!I.options.mergeAttrs&&(typeof te=="undefined"?"undefined":(0,l.default)(te))==="object"){if(!I.options.preserveChildrenOrder)ae={},I.options.attrkey in te&&(ae[I.options.attrkey]=te[I.options.attrkey],delete te[I.options.attrkey]),!I.options.charsAsChildren&&I.options.charkey in te&&(ae[I.options.charkey]=te[I.options.charkey],delete te[I.options.charkey]),(0,f.default)(te).length>0&&(ae[I.options.childkey]=te),te=ae;else if(F){F[I.options.childkey]=F[I.options.childkey]||[],$={};for(D in te){if(!O.call(te,D))continue;$[D]=te[D]}F[I.options.childkey].push($),delete te["#name"],(0,d.default)(te).length===1&&M in te&&!I.EXPLICIT_CHARKEY&&(te=te[M])}}return R.length>0?I.assignOrPush(F,V,te):(I.options.explicitRoot&&(P=te,te={},te[V]=P),I.resultObject=te,I.saxParser.ended=!0,I.emit("end",I.resultObject))}}(this),C=function(I){return function(H){var W,D;if(D=R[R.length-1],D)return D[M]+=H,I.options.explicitChildren&&I.options.preserveChildrenOrder&&I.options.charsAsChildren&&(I.options.includeWhiteChars||H.replace(/\\n/g,"").trim()!=="")&&(D[I.options.childkey]=D[I.options.childkey]||[],W={"#name":"__text__"},W[M]=H,I.options.normalize&&(W[M]=W[M].replace(/\s{2,}/g," ").trim()),D[I.options.childkey].push(W)),D}}(this),this.saxParser.ontext=C,this.saxParser.oncdata=function(I){return function(H){var W;if(W=C(H),W)return W.cdata=!0}}(this)},w.prototype.parseString=function(p,M){var C;M!=null&&typeof M=="function"&&(this.on("end",function(R){return this.reset(),M(null,R)}),this.on("error",function(R){return this.reset(),M(R)}));try{return p=p.toString(),p.trim()===""?(this.emit("end",null),!0):(p=i.stripBOM(p),this.options.async?(this.remaining=p,x(this.processAsync),this.saxParser):this.saxParser.write(p).close())}catch(R){if(C=R,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw C}else return this.emit("error",C),this.saxParser.errThrown=!0}},w.prototype.parseStringPromise=function(p){return new t.default(function(M){return function(C,R){return M.parseString(p,function(I,H){return I?R(I):C(H)})}}(this))},w}(b),c.parseString=function(S,w,p){var M,C,R;return p!=null?(typeof p=="function"&&(M=p),(typeof w=="undefined"?"undefined":(0,l.default)(w))==="object"&&(C=w)):(typeof w=="function"&&(M=w),C={}),R=new c.Parser(C),R.parseString(S,M)},c.parseStringPromise=function(S,w){var p,M;return(typeof w=="undefined"?"undefined":(0,l.default)(w))==="object"&&(p=w),M=new c.Parser(p),M.parseStringPromise(S)}}).call(void 0)},{"./bom":244,"./defaults":246,"./processors":248,"babel-runtime/core-js/object/get-own-property-names":58,"babel-runtime/core-js/object/keys":60,"babel-runtime/core-js/promise":61,"babel-runtime/helpers/typeof":67,events:192,sax:229,timers:236}],248:[function(e,_,c){"use strict";(function(){"use strict";var u;u=new RegExp(/(?!xmlns)^.*:/),c.normalize=function(t){return t.toLowerCase()},c.firstCharLowerCase=function(t){return t.charAt(0).toLowerCase()+t.slice(1)},c.stripPrefix=function(t){return t.replace(u,"")},c.parseNumbers=function(t){return isNaN(t)||(t=t%1===0?parseInt(t,10):parseFloat(t)),t},c.parseBooleans=function(t){return/^(?:true|false)$/i.test(t)&&(t=t.toLowerCase()==="true"),t}}).call(void 0)},{}],249:[function(e,_,c){"use strict";(function(){"use strict";var u,t,y,f,h=function(l,s){for(var i in s)d.call(s,i)&&(l[i]=s[i]);function o(){this.constructor=l}return o.prototype=s.prototype,l.prototype=new o,l.__super__=s.prototype,l},d={}.hasOwnProperty;t=e("./defaults"),u=e("./builder"),y=e("./parser"),f=e("./processors"),c.defaults=t.defaults,c.processors=f,c.ValidationError=function(n){h(l,n);function l(s){this.message=s}return l}(Error),c.Builder=u.Builder,c.Parser=y.Parser,c.parseString=y.parseString,c.parseStringPromise=y.parseStringPromise}).call(void 0)},{"./builder":245,"./defaults":246,"./parser":247,"./processors":248}],250:[function(e,_,c){"use strict";(function(){_.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(void 0)},{}],251:[function(e,_,c){"use strict";(function(){_.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(void 0)},{}],252:[function(e,_,c){"use strict";var u=e("babel-runtime/core-js/object/get-prototype-of"),t=n(u),y=e("babel-runtime/helpers/typeof"),f=n(y),h=e("babel-runtime/core-js/object/assign"),d=n(h);function n(l){return l&&l.__esModule?l:{default:l}}(function(){var l,s,i,o,b,m,g,A=[].slice,T={}.hasOwnProperty;l=function(){var E,j,O,S,w,p;if(p=arguments[0],w=2<=arguments.length?A.call(arguments,1):[],b(d.default))d.default.apply(null,arguments);else for(E=0,O=w.length;E<O;E++)if(S=w[E],S!=null)for(j in S){if(!T.call(S,j))continue;p[j]=S[j]}return p},b=function(E){return!!E&&Object.prototype.toString.call(E)==="[object Function]"},m=function(E){var j;return!!E&&((j=typeof E=="undefined"?"undefined":(0,f.default)(E))==="function"||j==="object")},i=function(E){return b(Array.isArray)?Array.isArray(E):Object.prototype.toString.call(E)==="[object Array]"},o=function(E){var j;if(i(E))return!E.length;for(j in E){if(!T.call(E,j))continue;return!1}return!0},g=function(E){var j,O;return m(E)&&(O=(0,t.default)(E))&&(j=O.constructor)&&typeof j=="function"&&j instanceof j&&Function.prototype.toString.call(j)===Function.prototype.toString.call(Object)},s=function(E){return b(E.valueOf)?E.valueOf():E},_.exports.assign=l,_.exports.isFunction=b,_.exports.isObject=m,_.exports.isArray=i,_.exports.isEmpty=o,_.exports.isPlainObject=g,_.exports.getValue=s}).call(void 0)},{"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/get-prototype-of":59,"babel-runtime/helpers/typeof":67}],253:[function(e,_,c){"use strict";(function(){_.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(void 0)},{}],254:[function(e,_,c){"use strict";var u=e("babel-runtime/core-js/object/create"),t=y(u);function y(f){return f&&f.__esModule?f:{default:f}}(function(){var f,h,d;f=e("./NodeType"),d=e("./XMLNode"),_.exports=h=function(){function n(l,s,i){if(this.parent=l,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),s==null)throw new Error("Missing attribute name. "+this.debugInfo(s));this.name=this.stringify.name(s),this.value=this.stringify.attValue(i),this.type=f.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(n.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(n.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(n.prototype,"textContent",{get:function(){return this.value},set:function(s){return this.value=s||""}}),Object.defineProperty(n.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(n.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(n.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(n.prototype,"specified",{get:function(){return!0}}),n.prototype.clone=function(){return(0,t.default)(this)},n.prototype.toString=function(l){return this.options.writer.attribute(this,this.options.writer.filterOptions(l))},n.prototype.debugInfo=function(l){return l=l||this.name,l==null?"parent: <"+this.parent.name+">":"attribute: {"+l+"}, parent: <"+this.parent.name+">"},n.prototype.isEqualNode=function(l){return l.namespaceURI!==this.namespaceURI||(l.prefix!==this.prefix||l.localName!==this.localName)?!1:!(l.value!==this.value)},n}()}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],255:[function(e,_,c){"use strict";var u=e("babel-runtime/core-js/object/create"),t=y(u);function y(f){return f&&f.__esModule?f:{default:f}}(function(){var f,h,d,n=function(i,o){for(var b in o)l.call(o,b)&&(i[b]=o[b]);function m(){this.constructor=i}return m.prototype=o.prototype,i.prototype=new m,i.__super__=o.prototype,i},l={}.hasOwnProperty;f=e("./NodeType"),d=e("./XMLCharacterData"),_.exports=h=function(s){n(i,s);function i(o,b){if(i.__super__.constructor.call(this,o),b==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=f.CData,this.value=this.stringify.cdata(b)}return i.prototype.clone=function(){return(0,t.default)(this)},i.prototype.toString=function(o){return this.options.writer.cdata(this,this.options.writer.filterOptions(o))},i}(d)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],256:[function(e,_,c){"use strict";var u=e("babel-runtime/core-js/object/create"),t=y(u);function y(f){return f&&f.__esModule?f:{default:f}}(function(){var f,h,d=function(s,i){for(var o in i)n.call(i,o)&&(s[o]=i[o]);function b(){this.constructor=s}return b.prototype=i.prototype,s.prototype=new b,s.__super__=i.prototype,s},n={}.hasOwnProperty;h=e("./XMLNode"),_.exports=f=function(l){d(s,l);function s(i){s.__super__.constructor.call(this,i),this.value=""}return Object.defineProperty(s.prototype,"data",{get:function(){return this.value},set:function(o){return this.value=o||""}}),Object.defineProperty(s.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(s.prototype,"textContent",{get:function(){return this.value},set:function(o){return this.value=o||""}}),s.prototype.clone=function(){return(0,t.default)(this)},s.prototype.substringData=function(i,o){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.appendData=function(i){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.insertData=function(i,o){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.deleteData=function(i,o){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.replaceData=function(i,o,b){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.isEqualNode=function(i){return s.__super__.isEqualNode.apply(this,arguments).isEqualNode(i)?!(i.data!==this.data):!1},s}(h)}).call(void 0)},{"./XMLNode":273,"babel-runtime/core-js/object/create":55}],257:[function(e,_,c){"use strict";var u=e("babel-runtime/core-js/object/create"),t=y(u);function y(f){return f&&f.__esModule?f:{default:f}}(function(){var f,h,d,n=function(i,o){for(var b in o)l.call(o,b)&&(i[b]=o[b]);function m(){this.constructor=i}return m.prototype=o.prototype,i.prototype=new m,i.__super__=o.prototype,i},l={}.hasOwnProperty;f=e("./NodeType"),h=e("./XMLCharacterData"),_.exports=d=function(s){n(i,s);function i(o,b){if(i.__super__.constructor.call(this,o),b==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=f.Comment,this.value=this.stringify.comment(b)}return i.prototype.clone=function(){return(0,t.default)(this)},i.prototype.toString=function(o){return this.options.writer.comment(this,this.options.writer.filterOptions(o))},i}(h)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],258:[function(e,_,c){"use strict";var u=e("babel-runtime/core-js/object/keys"),t=h(u),y=e("babel-runtime/core-js/object/create"),f=h(y);function h(d){return d&&d.__esModule?d:{default:d}}(function(){var d,n,l;n=e("./XMLDOMErrorHandler"),l=e("./XMLDOMStringList"),_.exports=d=function(){function s(){var i;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new n,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=i=(0,f.default)(this.defaultParams)}return Object.defineProperty(s.prototype,"parameterNames",{get:function(){return new l((0,t.default)(this.defaultParams))}}),s.prototype.getParameter=function(i){return this.params.hasOwnProperty(i)?this.params[i]:null},s.prototype.canSetParameter=function(i,o){return!0},s.prototype.setParameter=function(i,o){return o!=null?this.params[i]=o:delete this.params[i]},s}()}).call(void 0)},{"./XMLDOMErrorHandler":259,"./XMLDOMStringList":261,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/keys":60}],259:[function(e,_,c){"use strict";(function(){var u;_.exports=u=function(){function t(){}return t.prototype.handleError=function(y){throw new Error(y)},t}()}).call(void 0)},{}],260:[function(e,_,c){"use strict";(function(){var u;_.exports=u=function(){function t(){}return t.prototype.hasFeature=function(y,f){return!0},t.prototype.createDocumentType=function(y,f,h){throw new Error("This DOM method is not implemented.")},t.prototype.createDocument=function(y,f,h){throw new Error("This DOM method is not implemented.")},t.prototype.createHTMLDocument=function(y){throw new Error("This DOM method is not implemented.")},t.prototype.getFeature=function(y,f){throw new Error("This DOM method is not implemented.")},t}()}).call(void 0)},{}],261:[function(e,_,c){"use strict";(function(){var u;_.exports=u=function(){function t(y){this.arr=y||[]}return Object.defineProperty(t.prototype,"length",{get:function(){return this.arr.length}}),t.prototype.item=function(y){return this.arr[y]||null},t.prototype.contains=function(y){return this.arr.indexOf(y)!==-1},t}()}).call(void 0)},{}],262:[function(e,_,c){"use strict";(function(){var u,t,y,f=function(n,l){for(var s in l)h.call(l,s)&&(n[s]=l[s]);function i(){this.constructor=n}return i.prototype=l.prototype,n.prototype=new i,n.__super__=l.prototype,n},h={}.hasOwnProperty;y=e("./XMLNode"),u=e("./NodeType"),_.exports=t=function(d){f(n,d);function n(l,s,i,o,b,m){if(n.__super__.constructor.call(this,l),s==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(i==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(s));if(!o)throw new Error("Missing DTD attribute type. "+this.debugInfo(s));if(!b)throw new Error("Missing DTD attribute default. "+this.debugInfo(s));if(b.indexOf("#")!==0&&(b="#"+b),!b.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(s));if(m&&!b.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(s));this.elementName=this.stringify.name(s),this.type=u.AttributeDeclaration,this.attributeName=this.stringify.name(i),this.attributeType=this.stringify.dtdAttType(o),m&&(this.defaultValue=this.stringify.dtdAttDefault(m)),this.defaultValueType=b}return n.prototype.toString=function(l){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(l))},n}(y)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],263:[function(e,_,c){"use strict";(function(){var u,t,y,f=function(n,l){for(var s in l)h.call(l,s)&&(n[s]=l[s]);function i(){this.constructor=n}return i.prototype=l.prototype,n.prototype=new i,n.__super__=l.prototype,n},h={}.hasOwnProperty;y=e("./XMLNode"),u=e("./NodeType"),_.exports=t=function(d){f(n,d);function n(l,s,i){if(n.__super__.constructor.call(this,l),s==null)throw new Error("Missing DTD element name. "+this.debugInfo());i||(i="(#PCDATA)"),Array.isArray(i)&&(i="("+i.join(",")+")"),this.name=this.stringify.name(s),this.type=u.ElementDeclaration,this.value=this.stringify.dtdElementValue(i)}return n.prototype.toString=function(l){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(l))},n}(y)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],264:[function(e,_,c){"use strict";(function(){var u,t,y,f,h=function(l,s){for(var i in s)d.call(s,i)&&(l[i]=s[i]);function o(){this.constructor=l}return o.prototype=s.prototype,l.prototype=new o,l.__super__=s.prototype,l},d={}.hasOwnProperty;f=e("./Utility").isObject,y=e("./XMLNode"),u=e("./NodeType"),_.exports=t=function(n){h(l,n);function l(s,i,o,b){if(l.__super__.constructor.call(this,s),o==null)throw new Error("Missing DTD entity name. "+this.debugInfo(o));if(b==null)throw new Error("Missing DTD entity value. "+this.debugInfo(o));if(this.pe=!!i,this.name=this.stringify.name(o),this.type=u.EntityDeclaration,!f(b))this.value=this.stringify.dtdEntityValue(b),this.internal=!0;else{if(!b.pubID&&!b.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(o));if(b.pubID&&!b.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(o));if(this.internal=!1,b.pubID!=null&&(this.pubID=this.stringify.dtdPubID(b.pubID)),b.sysID!=null&&(this.sysID=this.stringify.dtdSysID(b.sysID)),b.nData!=null&&(this.nData=this.stringify.dtdNData(b.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(o))}}return Object.defineProperty(l.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(l.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(l.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(l.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(l.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(l.prototype,"xmlVersion",{get:function(){return null}}),l.prototype.toString=function(s){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(s))},l}(y)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],265:[function(e,_,c){"use strict";(function(){var u,t,y,f=function(n,l){for(var s in l)h.call(l,s)&&(n[s]=l[s]);function i(){this.constructor=n}return i.prototype=l.prototype,n.prototype=new i,n.__super__=l.prototype,n},h={}.hasOwnProperty;y=e("./XMLNode"),u=e("./NodeType"),_.exports=t=function(d){f(n,d);function n(l,s,i){if(n.__super__.constructor.call(this,l),s==null)throw new Error("Missing DTD notation name. "+this.debugInfo(s));if(!i.pubID&&!i.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(s));this.name=this.stringify.name(s),this.type=u.NotationDeclaration,i.pubID!=null&&(this.pubID=this.stringify.dtdPubID(i.pubID)),i.sysID!=null&&(this.sysID=this.stringify.dtdSysID(i.sysID))}return Object.defineProperty(n.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(n.prototype,"systemId",{get:function(){return this.sysID}}),n.prototype.toString=function(l){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(l))},n}(y)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],266:[function(e,_,c){"use strict";(function(){var u,t,y,f,h=function(l,s){for(var i in s)d.call(s,i)&&(l[i]=s[i]);function o(){this.constructor=l}return o.prototype=s.prototype,l.prototype=new o,l.__super__=s.prototype,l},d={}.hasOwnProperty;f=e("./Utility").isObject,y=e("./XMLNode"),u=e("./NodeType"),_.exports=t=function(n){h(l,n);function l(s,i,o,b){var m;l.__super__.constructor.call(this,s),f(i)&&(m=i,i=m.version,o=m.encoding,b=m.standalone),i||(i="1.0"),this.type=u.Declaration,this.version=this.stringify.xmlVersion(i),o!=null&&(this.encoding=this.stringify.xmlEncoding(o)),b!=null&&(this.standalone=this.stringify.xmlStandalone(b))}return l.prototype.toString=function(s){return this.options.writer.declaration(this,this.options.writer.filterOptions(s))},l}(y)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],267:[function(e,_,c){"use strict";(function(){var u,t,y,f,h,d,n,l,s,i=function(m,g){for(var A in g)o.call(g,A)&&(m[A]=g[A]);function T(){this.constructor=m}return T.prototype=g.prototype,m.prototype=new T,m.__super__=g.prototype,m},o={}.hasOwnProperty;s=e("./Utility").isObject,l=e("./XMLNode"),u=e("./NodeType"),t=e("./XMLDTDAttList"),f=e("./XMLDTDEntity"),y=e("./XMLDTDElement"),h=e("./XMLDTDNotation"),n=e("./XMLNamedNodeMap"),_.exports=d=function(b){i(m,b);function m(g,A,T){var x,E,j,O,S,w;if(m.__super__.constructor.call(this,g),this.type=u.DocType,g.children){for(O=g.children,E=0,j=O.length;E<j;E++)if(x=O[E],x.type===u.Element){this.name=x.name;break}}this.documentObject=g,s(A)&&(S=A,A=S.pubID,T=S.sysID),T==null&&(w=[A,T],T=w[0],A=w[1]),A!=null&&(this.pubID=this.stringify.dtdPubID(A)),T!=null&&(this.sysID=this.stringify.dtdSysID(T))}return Object.defineProperty(m.prototype,"entities",{get:function(){var A,T,x,E,j;for(E={},j=this.children,T=0,x=j.length;T<x;T++)A=j[T],A.type===u.EntityDeclaration&&!A.pe&&(E[A.name]=A);return new n(E)}}),Object.defineProperty(m.prototype,"notations",{get:function(){var A,T,x,E,j;for(E={},j=this.children,T=0,x=j.length;T<x;T++)A=j[T],A.type===u.NotationDeclaration&&(E[A.name]=A);return new n(E)}}),Object.defineProperty(m.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(m.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(m.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),m.prototype.element=function(g,A){var T;return T=new y(this,g,A),this.children.push(T),this},m.prototype.attList=function(g,A,T,x,E){var j;return j=new t(this,g,A,T,x,E),this.children.push(j),this},m.prototype.entity=function(g,A){var T;return T=new f(this,!1,g,A),this.children.push(T),this},m.prototype.pEntity=function(g,A){var T;return T=new f(this,!0,g,A),this.children.push(T),this},m.prototype.notation=function(g,A){var T;return T=new h(this,g,A),this.children.push(T),this},m.prototype.toString=function(g){return this.options.writer.docType(this,this.options.writer.filterOptions(g))},m.prototype.ele=function(g,A){return this.element(g,A)},m.prototype.att=function(g,A,T,x,E){return this.attList(g,A,T,x,E)},m.prototype.ent=function(g,A){return this.entity(g,A)},m.prototype.pent=function(g,A){return this.pEntity(g,A)},m.prototype.not=function(g,A){return this.notation(g,A)},m.prototype.up=function(){return this.root()||this.documentObject},m.prototype.isEqualNode=function(g){return m.__super__.isEqualNode.apply(this,arguments).isEqualNode(g)?g.name!==this.name||g.publicId!==this.publicId?!1:!(g.systemId!==this.systemId):!1},m}(l)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLNamedNodeMap":272,"./XMLNode":273}],268:[function(e,_,c){"use strict";(function(){var u,t,y,f,h,d,n,l,s=function(b,m){for(var g in m)i.call(m,g)&&(b[g]=m[g]);function A(){this.constructor=b}return A.prototype=m.prototype,b.prototype=new A,b.__super__=m.prototype,b},i={}.hasOwnProperty;l=e("./Utility").isPlainObject,y=e("./XMLDOMImplementation"),t=e("./XMLDOMConfiguration"),h=e("./XMLNode"),u=e("./NodeType"),n=e("./XMLStringifier"),d=e("./XMLStringWriter"),_.exports=f=function(o){s(b,o);function b(m){b.__super__.constructor.call(this,null),this.name="#document",this.type=u.Document,this.documentURI=null,this.domConfig=new t,m||(m={}),m.writer||(m.writer=new d),this.options=m,this.stringify=new n(m)}return Object.defineProperty(b.prototype,"implementation",{value:new y}),Object.defineProperty(b.prototype,"doctype",{get:function(){var g,A,T,x;for(x=this.children,A=0,T=x.length;A<T;A++)if(g=x[A],g.type===u.DocType)return g;return null}}),Object.defineProperty(b.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(b.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(b.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(b.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===u.Declaration?this.children[0].encoding:null}}),Object.defineProperty(b.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===u.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(b.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===u.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(b.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(b.prototype,"origin",{get:function(){return null}}),Object.defineProperty(b.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(b.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(b.prototype,"contentType",{get:function(){return null}}),b.prototype.end=function(m){var g;return g={},m?l(m)&&(g=m,m=this.options.writer):m=this.options.writer,m.document(this,m.filterOptions(g))},b.prototype.toString=function(m){return this.options.writer.document(this,this.options.writer.filterOptions(m))},b.prototype.createElement=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.createTextNode=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.createComment=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.createCDATASection=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.createProcessingInstruction=function(m,g){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.createAttribute=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.createEntityReference=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.getElementsByTagName=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.importNode=function(m,g){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.createElementNS=function(m,g){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.createAttributeNS=function(m,g){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.getElementsByTagNameNS=function(m,g){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.getElementById=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.adoptNode=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.renameNode=function(m,g,A){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.getElementsByClassName=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.createEvent=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.createNodeIterator=function(m,g,A){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.createTreeWalker=function(m,g,A){throw new Error("This DOM method is not implemented."+this.debugInfo())},b}(h)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLDOMConfiguration":258,"./XMLDOMImplementation":260,"./XMLNode":273,"./XMLStringWriter":278,"./XMLStringifier":279}],269:[function(e,_,c){"use strict";(function(){var u,t,y,f,h,d,n,l,s,i,o,b,m,g,A,T,x,E,j,O,S,w,p,M,C={}.hasOwnProperty;M=e("./Utility"),w=M.isObject,S=M.isFunction,p=M.isPlainObject,O=M.getValue,u=e("./NodeType"),b=e("./XMLDocument"),g=e("./XMLElement"),f=e("./XMLCData"),h=e("./XMLComment"),T=e("./XMLRaw"),j=e("./XMLText"),A=e("./XMLProcessingInstruction"),i=e("./XMLDeclaration"),o=e("./XMLDocType"),d=e("./XMLDTDAttList"),l=e("./XMLDTDEntity"),n=e("./XMLDTDElement"),s=e("./XMLDTDNotation"),y=e("./XMLAttribute"),E=e("./XMLStringifier"),x=e("./XMLStringWriter"),t=e("./WriterState"),_.exports=m=function(){function R(I,H,W){var D;this.name="?xml",this.type=u.Document,I||(I={}),D={},I.writer?p(I.writer)&&(D=I.writer,I.writer=new x):I.writer=new x,this.options=I,this.writer=I.writer,this.writerOptions=this.writer.filterOptions(D),this.stringify=new E(I),this.onDataCallback=H||function(){},this.onEndCallback=W||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return R.prototype.createChildNode=function(I){var H,W,D,ae,V,te,$,P;switch(I.type){case u.CData:this.cdata(I.value);break;case u.Comment:this.comment(I.value);break;case u.Element:D={},$=I.attribs;for(W in $){if(!C.call($,W))continue;H=$[W],D[W]=H.value}this.node(I.name,D);break;case u.Dummy:this.dummy();break;case u.Raw:this.raw(I.value);break;case u.Text:this.text(I.value);break;case u.ProcessingInstruction:this.instruction(I.target,I.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+I.constructor.name)}for(P=I.children,V=0,te=P.length;V<te;V++)ae=P[V],this.createChildNode(ae),ae.type===u.Element&&this.up();return this},R.prototype.dummy=function(){return this},R.prototype.node=function(I,H,W){var D;if(I==null)throw new Error("Missing node name.");if(this.root&&this.currentLevel===-1)throw new Error("Document can only have one root node. "+this.debugInfo(I));return this.openCurrent(),I=O(I),H==null&&(H={}),H=O(H),w(H)||(D=[H,W],W=D[0],H=D[1]),this.currentNode=new g(this,I,H),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,W!=null&&this.text(W),this},R.prototype.element=function(I,H,W){var D,ae,V,te,$,P;if(this.currentNode&&this.currentNode.type===u.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(I)||w(I)||S(I))for(te=this.options.noValidation,this.options.noValidation=!0,P=new b(this.options).element("TEMP_ROOT"),P.element(I),this.options.noValidation=te,$=P.children,ae=0,V=$.length;ae<V;ae++)D=$[ae],this.createChildNode(D),D.type===u.Element&&this.up();else this.node(I,H,W);return this},R.prototype.attribute=function(I,H){var W,D;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(I));if(I!=null&&(I=O(I)),w(I))for(W in I){if(!C.call(I,W))continue;D=I[W],this.attribute(W,D)}else S(H)&&(H=H.apply()),this.options.keepNullAttributes&&H==null?this.currentNode.attribs[I]=new y(this,I,""):H!=null&&(this.currentNode.attribs[I]=new y(this,I,H));return this},R.prototype.text=function(I){var H;return this.openCurrent(),H=new j(this,I),this.onData(this.writer.text(H,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},R.prototype.cdata=function(I){var H;return this.openCurrent(),H=new f(this,I),this.onData(this.writer.cdata(H,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},R.prototype.comment=function(I){var H;return this.openCurrent(),H=new h(this,I),this.onData(this.writer.comment(H,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},R.prototype.raw=function(I){var H;return this.openCurrent(),H=new T(this,I),this.onData(this.writer.raw(H,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},R.prototype.instruction=function(I,H){var W,D,ae,V,te;if(this.openCurrent(),I!=null&&(I=O(I)),H!=null&&(H=O(H)),Array.isArray(I))for(W=0,V=I.length;W<V;W++)D=I[W],this.instruction(D);else if(w(I))for(D in I){if(!C.call(I,D))continue;ae=I[D],this.instruction(D,ae)}else S(H)&&(H=H.apply()),te=new A(this,I,H),this.onData(this.writer.processingInstruction(te,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},R.prototype.declaration=function(I,H,W){var D;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return D=new i(this,I,H,W),this.onData(this.writer.declaration(D,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},R.prototype.doctype=function(I,H,W){if(this.openCurrent(),I==null)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new o(this,H,W),this.currentNode.rootNodeName=I,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},R.prototype.dtdElement=function(I,H){var W;return this.openCurrent(),W=new n(this,I,H),this.onData(this.writer.dtdElement(W,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},R.prototype.attList=function(I,H,W,D,ae){var V;return this.openCurrent(),V=new d(this,I,H,W,D,ae),this.onData(this.writer.dtdAttList(V,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},R.prototype.entity=function(I,H){var W;return this.openCurrent(),W=new l(this,!1,I,H),this.onData(this.writer.dtdEntity(W,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},R.prototype.pEntity=function(I,H){var W;return this.openCurrent(),W=new l(this,!0,I,H),this.onData(this.writer.dtdEntity(W,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},R.prototype.notation=function(I,H){var W;return this.openCurrent(),W=new s(this,I,H),this.onData(this.writer.dtdNotation(W,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},R.prototype.up=function(){if(this.currentLevel<0)throw new Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},R.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},R.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},R.prototype.openNode=function(I){var H,W,D,ae;if(!I.isOpen){if(!this.root&&this.currentLevel===0&&I.type===u.Element&&(this.root=I),W="",I.type===u.Element){this.writerOptions.state=t.OpenTag,W=this.writer.indent(I,this.writerOptions,this.currentLevel)+"<"+I.name,ae=I.attribs;for(D in ae){if(!C.call(ae,D))continue;H=ae[D],W+=this.writer.attribute(H,this.writerOptions,this.currentLevel)}W+=(I.children?">":"/>")+this.writer.endline(I,this.writerOptions,this.currentLevel),this.writerOptions.state=t.InsideTag}else this.writerOptions.state=t.OpenTag,W=this.writer.indent(I,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+I.rootNodeName,I.pubID&&I.sysID?W+=' PUBLIC "'+I.pubID+'" "'+I.sysID+'"':I.sysID&&(W+=' SYSTEM "'+I.sysID+'"'),I.children?(W+=" [",this.writerOptions.state=t.InsideTag):(this.writerOptions.state=t.CloseTag,W+=">"),W+=this.writer.endline(I,this.writerOptions,this.currentLevel);return this.onData(W,this.currentLevel),I.isOpen=!0}},R.prototype.closeNode=function(I){var H;if(!I.isClosed)return H="",this.writerOptions.state=t.CloseTag,I.type===u.Element?H=this.writer.indent(I,this.writerOptions,this.currentLevel)+"</"+I.name+">"+this.writer.endline(I,this.writerOptions,this.currentLevel):H=this.writer.indent(I,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(I,this.writerOptions,this.currentLevel),this.writerOptions.state=t.None,this.onData(H,this.currentLevel),I.isClosed=!0},R.prototype.onData=function(I,H){return this.documentStarted=!0,this.onDataCallback(I,H+1)},R.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},R.prototype.debugInfo=function(I){return I==null?"":"node: <"+I+">"},R.prototype.ele=function(){return this.element.apply(this,arguments)},R.prototype.nod=function(I,H,W){return this.node(I,H,W)},R.prototype.txt=function(I){return this.text(I)},R.prototype.dat=function(I){return this.cdata(I)},R.prototype.com=function(I){return this.comment(I)},R.prototype.ins=function(I,H){return this.instruction(I,H)},R.prototype.dec=function(I,H,W){return this.declaration(I,H,W)},R.prototype.dtd=function(I,H,W){return this.doctype(I,H,W)},R.prototype.e=function(I,H,W){return this.element(I,H,W)},R.prototype.n=function(I,H,W){return this.node(I,H,W)},R.prototype.t=function(I){return this.text(I)},R.prototype.d=function(I){return this.cdata(I)},R.prototype.c=function(I){return this.comment(I)},R.prototype.r=function(I){return this.raw(I)},R.prototype.i=function(I,H){return this.instruction(I,H)},R.prototype.att=function(){return this.currentNode&&this.currentNode.type===u.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},R.prototype.a=function(){return this.currentNode&&this.currentNode.type===u.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},R.prototype.ent=function(I,H){return this.entity(I,H)},R.prototype.pent=function(I,H){return this.pEntity(I,H)},R.prototype.not=function(I,H){return this.notation(I,H)},R}()}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLAttribute":254,"./XMLCData":255,"./XMLComment":257,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLDeclaration":266,"./XMLDocType":267,"./XMLDocument":268,"./XMLElement":271,"./XMLProcessingInstruction":275,"./XMLRaw":276,"./XMLStringWriter":278,"./XMLStringifier":279,"./XMLText":280}],270:[function(e,_,c){"use strict";var u=e("babel-runtime/core-js/object/create"),t=y(u);function y(f){return f&&f.__esModule?f:{default:f}}(function(){var f,h,d,n=function(i,o){for(var b in o)l.call(o,b)&&(i[b]=o[b]);function m(){this.constructor=i}return m.prototype=o.prototype,i.prototype=new m,i.__super__=o.prototype,i},l={}.hasOwnProperty;d=e("./XMLNode"),f=e("./NodeType"),_.exports=h=function(s){n(i,s);function i(o){i.__super__.constructor.call(this,o),this.type=f.Dummy}return i.prototype.clone=function(){return(0,t.default)(this)},i.prototype.toString=function(o){return""},i}(d)}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],271:[function(e,_,c){"use strict";var u=e("babel-runtime/core-js/object/create"),t=y(u);function y(f){return f&&f.__esModule?f:{default:f}}(function(){var f,h,d,n,l,s,i,o,b,m=function(T,x){for(var E in x)g.call(x,E)&&(T[E]=x[E]);function j(){this.constructor=T}return j.prototype=x.prototype,T.prototype=new j,T.__super__=x.prototype,T},g={}.hasOwnProperty;b=e("./Utility"),o=b.isObject,i=b.isFunction,s=b.getValue,l=e("./XMLNode"),f=e("./NodeType"),h=e("./XMLAttribute"),n=e("./XMLNamedNodeMap"),_.exports=d=function(A){m(T,A);function T(x,E,j){var O,S,w,p;if(T.__super__.constructor.call(this,x),E==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(E),this.type=f.Element,this.attribs={},this.schemaTypeInfo=null,j!=null&&this.attribute(j),x.type===f.Document&&(this.isRoot=!0,this.documentObject=x,x.rootObject=this,x.children)){for(p=x.children,S=0,w=p.length;S<w;S++)if(O=p[S],O.type===f.DocType){O.name=this.name;break}}}return Object.defineProperty(T.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(T.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(T.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(T.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(T.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(T.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(T.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(T.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new n(this.attribs)),this.attributeMap}}),T.prototype.clone=function(){var x,E,j,O;j=(0,t.default)(this),j.isRoot&&(j.documentObject=null),j.attribs={},O=this.attribs;for(E in O){if(!g.call(O,E))continue;x=O[E],j.attribs[E]=x.clone()}return j.children=[],this.children.forEach(function(S){var w;return w=S.clone(),w.parent=j,j.children.push(w)}),j},T.prototype.attribute=function(x,E){var j,O;if(x!=null&&(x=s(x)),o(x))for(j in x){if(!g.call(x,j))continue;O=x[j],this.attribute(j,O)}else i(E)&&(E=E.apply()),this.options.keepNullAttributes&&E==null?this.attribs[x]=new h(this,x,""):E!=null&&(this.attribs[x]=new h(this,x,E));return this},T.prototype.removeAttribute=function(x){var E,j,O;if(x==null)throw new Error("Missing attribute name. "+this.debugInfo());if(x=s(x),Array.isArray(x))for(j=0,O=x.length;j<O;j++)E=x[j],delete this.attribs[E];else delete this.attribs[x];return this},T.prototype.toString=function(x){return this.options.writer.element(this,this.options.writer.filterOptions(x))},T.prototype.att=function(x,E){return this.attribute(x,E)},T.prototype.a=function(x,E){return this.attribute(x,E)},T.prototype.getAttribute=function(x){return this.attribs.hasOwnProperty(x)?this.attribs[x].value:null},T.prototype.setAttribute=function(x,E){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.getAttributeNode=function(x){return this.attribs.hasOwnProperty(x)?this.attribs[x]:null},T.prototype.setAttributeNode=function(x){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.removeAttributeNode=function(x){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.getElementsByTagName=function(x){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.getAttributeNS=function(x,E){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.setAttributeNS=function(x,E,j){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.removeAttributeNS=function(x,E){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.getAttributeNodeNS=function(x,E){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.setAttributeNodeNS=function(x){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.getElementsByTagNameNS=function(x,E){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.hasAttribute=function(x){return this.attribs.hasOwnProperty(x)},T.prototype.hasAttributeNS=function(x,E){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.setIdAttribute=function(x,E){return this.attribs.hasOwnProperty(x)?this.attribs[x].isId:E},T.prototype.setIdAttributeNS=function(x,E,j){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.setIdAttributeNode=function(x,E){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.getElementsByTagName=function(x){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.getElementsByTagNameNS=function(x,E){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.getElementsByClassName=function(x){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.isEqualNode=function(x){var E,j,O;if(!T.__super__.isEqualNode.apply(this,arguments).isEqualNode(x))return!1;if(x.namespaceURI!==this.namespaceURI)return!1;if(x.prefix!==this.prefix)return!1;if(x.localName!==this.localName)return!1;if(x.attribs.length!==this.attribs.length)return!1;for(E=j=0,O=this.attribs.length-1;0<=O?j<=O:j>=O;E=0<=O?++j:--j)if(!this.attribs[E].isEqualNode(x.attribs[E]))return!1;return!0},T}(l)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLAttribute":254,"./XMLNamedNodeMap":272,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],272:[function(e,_,c){"use strict";var u=e("babel-runtime/core-js/object/keys"),t=y(u);function y(f){return f&&f.__esModule?f:{default:f}}(function(){var f;_.exports=f=function(){function h(d){this.nodes=d}return Object.defineProperty(h.prototype,"length",{get:function(){return(0,t.default)(this.nodes).length||0}}),h.prototype.clone=function(){return this.nodes=null},h.prototype.getNamedItem=function(d){return this.nodes[d]},h.prototype.setNamedItem=function(d){var n;return n=this.nodes[d.nodeName],this.nodes[d.nodeName]=d,n||null},h.prototype.removeNamedItem=function(d){var n;return n=this.nodes[d],delete this.nodes[d],n||null},h.prototype.item=function(d){return this.nodes[(0,t.default)(this.nodes)[d]]||null},h.prototype.getNamedItemNS=function(d,n){throw new Error("This DOM method is not implemented.")},h.prototype.setNamedItemNS=function(d){throw new Error("This DOM method is not implemented.")},h.prototype.removeNamedItemNS=function(d,n){throw new Error("This DOM method is not implemented.")},h}()}).call(void 0)},{"babel-runtime/core-js/object/keys":60}],273:[function(e,_,c){"use strict";(function(){var u,t,y,f,h,d,n,l,s,i,o,b,m,g,A,T,x,E,j,O={}.hasOwnProperty;j=e("./Utility"),E=j.isObject,x=j.isFunction,T=j.isEmpty,A=j.getValue,l=null,y=null,f=null,h=null,d=null,m=null,g=null,b=null,n=null,t=null,o=null,s=null,u=null,_.exports=i=function(){function S(w){this.parent=w,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,l||(l=e("./XMLElement"),y=e("./XMLCData"),f=e("./XMLComment"),h=e("./XMLDeclaration"),d=e("./XMLDocType"),m=e("./XMLRaw"),g=e("./XMLText"),b=e("./XMLProcessingInstruction"),n=e("./XMLDummy"),t=e("./NodeType"),o=e("./XMLNodeList"),s=e("./XMLNamedNodeMap"),u=e("./DocumentPosition"))}return Object.defineProperty(S.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(S.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(S.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(S.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(S.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new o(this.children)),this.childNodeList}}),Object.defineProperty(S.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(S.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(S.prototype,"previousSibling",{get:function(){var p;return p=this.parent.children.indexOf(this),this.parent.children[p-1]||null}}),Object.defineProperty(S.prototype,"nextSibling",{get:function(){var p;return p=this.parent.children.indexOf(this),this.parent.children[p+1]||null}}),Object.defineProperty(S.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(S.prototype,"textContent",{get:function(){var p,M,C,R,I;if(this.nodeType===t.Element||this.nodeType===t.DocumentFragment){for(I="",R=this.children,M=0,C=R.length;M<C;M++)p=R[M],p.textContent&&(I+=p.textContent);return I}else return null},set:function(p){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),S.prototype.setParent=function(w){var p,M,C,R,I;for(this.parent=w,w&&(this.options=w.options,this.stringify=w.stringify),R=this.children,I=[],M=0,C=R.length;M<C;M++)p=R[M],I.push(p.setParent(this));return I},S.prototype.element=function(w,p,M){var C,R,I,H,W,D,ae,V,te,$,P;if(D=null,p===null&&M==null&&(te=[{},null],p=te[0],M=te[1]),p==null&&(p={}),p=A(p),E(p)||($=[p,M],M=$[0],p=$[1]),w!=null&&(w=A(w)),Array.isArray(w))for(I=0,ae=w.length;I<ae;I++)R=w[I],D=this.element(R);else if(x(w))D=this.element(w.apply());else if(E(w))for(W in w){if(!O.call(w,W))continue;if(P=w[W],x(P)&&(P=P.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&W.indexOf(this.stringify.convertAttKey)===0)D=this.attribute(W.substr(this.stringify.convertAttKey.length),P);else if(!this.options.separateArrayItems&&Array.isArray(P)&&T(P))D=this.dummy();else if(E(P)&&T(P))D=this.element(W);else if(!this.options.keepNullNodes&&P==null)D=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(P))for(H=0,V=P.length;H<V;H++)R=P[H],C={},C[W]=R,D=this.element(C);else E(P)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&W.indexOf(this.stringify.convertTextKey)===0?D=this.element(P):(D=this.element(W),D.element(P)):D=this.element(W,P)}else!this.options.keepNullNodes&&M===null?D=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&w.indexOf(this.stringify.convertTextKey)===0?D=this.text(M):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&w.indexOf(this.stringify.convertCDataKey)===0?D=this.cdata(M):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&w.indexOf(this.stringify.convertCommentKey)===0?D=this.comment(M):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&w.indexOf(this.stringify.convertRawKey)===0?D=this.raw(M):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&w.indexOf(this.stringify.convertPIKey)===0?D=this.instruction(w.substr(this.stringify.convertPIKey.length),M):D=this.node(w,p,M);if(D==null)throw new Error("Could not create any elements with: "+w+". "+this.debugInfo());return D},S.prototype.insertBefore=function(w,p,M){var C,R,I,H,W;if(w!=null?w.type:void 0)return I=w,H=p,I.setParent(this),H?(R=children.indexOf(H),W=children.splice(R),children.push(I),Array.prototype.push.apply(children,W)):children.push(I),I;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(w));return R=this.parent.children.indexOf(this),W=this.parent.children.splice(R),C=this.parent.element(w,p,M),Array.prototype.push.apply(this.parent.children,W),C},S.prototype.insertAfter=function(w,p,M){var C,R,I;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(w));return R=this.parent.children.indexOf(this),I=this.parent.children.splice(R+1),C=this.parent.element(w,p,M),Array.prototype.push.apply(this.parent.children,I),C},S.prototype.remove=function(){var w,p;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return w=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[w,w-w+1].concat(p=[])),this.parent},S.prototype.node=function(w,p,M){var C,R;return w!=null&&(w=A(w)),p||(p={}),p=A(p),E(p)||(R=[p,M],M=R[0],p=R[1]),C=new l(this,w,p),M!=null&&C.text(M),this.children.push(C),C},S.prototype.text=function(w){var p;return E(w)&&this.element(w),p=new g(this,w),this.children.push(p),this},S.prototype.cdata=function(w){var p;return p=new y(this,w),this.children.push(p),this},S.prototype.comment=function(w){var p;return p=new f(this,w),this.children.push(p),this},S.prototype.commentBefore=function(w){var p,M,C;return M=this.parent.children.indexOf(this),C=this.parent.children.splice(M),p=this.parent.comment(w),Array.prototype.push.apply(this.parent.children,C),this},S.prototype.commentAfter=function(w){var p,M,C;return M=this.parent.children.indexOf(this),C=this.parent.children.splice(M+1),p=this.parent.comment(w),Array.prototype.push.apply(this.parent.children,C),this},S.prototype.raw=function(w){var p;return p=new m(this,w),this.children.push(p),this},S.prototype.dummy=function(){var w;return w=new n(this),w},S.prototype.instruction=function(w,p){var M,C,R,I,H;if(w!=null&&(w=A(w)),p!=null&&(p=A(p)),Array.isArray(w))for(I=0,H=w.length;I<H;I++)M=w[I],this.instruction(M);else if(E(w))for(M in w){if(!O.call(w,M))continue;C=w[M],this.instruction(M,C)}else x(p)&&(p=p.apply()),R=new b(this,w,p),this.children.push(R);return this},S.prototype.instructionBefore=function(w,p){var M,C,R;return C=this.parent.children.indexOf(this),R=this.parent.children.splice(C),M=this.parent.instruction(w,p),Array.prototype.push.apply(this.parent.children,R),this},S.prototype.instructionAfter=function(w,p){var M,C,R;return C=this.parent.children.indexOf(this),R=this.parent.children.splice(C+1),M=this.parent.instruction(w,p),Array.prototype.push.apply(this.parent.children,R),this},S.prototype.declaration=function(w,p,M){var C,R;return C=this.document(),R=new h(C,w,p,M),C.children.length===0?C.children.unshift(R):C.children[0].type===t.Declaration?C.children[0]=R:C.children.unshift(R),C.root()||C},S.prototype.dtd=function(w,p){var M,C,R,I,H,W,D,ae,V,te;for(C=this.document(),R=new d(C,w,p),V=C.children,I=H=0,D=V.length;H<D;I=++H)if(M=V[I],M.type===t.DocType)return C.children[I]=R,R;for(te=C.children,I=W=0,ae=te.length;W<ae;I=++W)if(M=te[I],M.isRoot)return C.children.splice(I,0,R),R;return C.children.push(R),R},S.prototype.up=function(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},S.prototype.root=function(){var w;for(w=this;w;){if(w.type===t.Document)return w.rootObject;if(w.isRoot)return w;w=w.parent}},S.prototype.document=function(){var w;for(w=this;w;){if(w.type===t.Document)return w;w=w.parent}},S.prototype.end=function(w){return this.document().end(w)},S.prototype.prev=function(){var w;if(w=this.parent.children.indexOf(this),w<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[w-1]},S.prototype.next=function(){var w;if(w=this.parent.children.indexOf(this),w===-1||w===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[w+1]},S.prototype.importDocument=function(w){var p;return p=w.root().clone(),p.parent=this,p.isRoot=!1,this.children.push(p),this},S.prototype.debugInfo=function(w){var p,M;return w=w||this.name,w==null&&!((p=this.parent)!=null?p.name:void 0)?"":w==null?"parent: <"+this.parent.name+">":((M=this.parent)!=null?M.name:void 0)?"node: <"+w+">, parent: <"+this.parent.name+">":"node: <"+w+">"},S.prototype.ele=function(w,p,M){return this.element(w,p,M)},S.prototype.nod=function(w,p,M){return this.node(w,p,M)},S.prototype.txt=function(w){return this.text(w)},S.prototype.dat=function(w){return this.cdata(w)},S.prototype.com=function(w){return this.comment(w)},S.prototype.ins=function(w,p){return this.instruction(w,p)},S.prototype.doc=function(){return this.document()},S.prototype.dec=function(w,p,M){return this.declaration(w,p,M)},S.prototype.e=function(w,p,M){return this.element(w,p,M)},S.prototype.n=function(w,p,M){return this.node(w,p,M)},S.prototype.t=function(w){return this.text(w)},S.prototype.d=function(w){return this.cdata(w)},S.prototype.c=function(w){return this.comment(w)},S.prototype.r=function(w){return this.raw(w)},S.prototype.i=function(w,p){return this.instruction(w,p)},S.prototype.u=function(){return this.up()},S.prototype.importXMLBuilder=function(w){return this.importDocument(w)},S.prototype.replaceChild=function(w,p){throw new Error("This DOM method is not implemented."+this.debugInfo())},S.prototype.removeChild=function(w){throw new Error("This DOM method is not implemented."+this.debugInfo())},S.prototype.appendChild=function(w){throw new Error("This DOM method is not implemented."+this.debugInfo())},S.prototype.hasChildNodes=function(){return this.children.length!==0},S.prototype.cloneNode=function(w){throw new Error("This DOM method is not implemented."+this.debugInfo())},S.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},S.prototype.isSupported=function(w,p){return!0},S.prototype.hasAttributes=function(){return this.attribs.length!==0},S.prototype.compareDocumentPosition=function(w){var p,M;return p=this,p===w?0:this.document()!==w.document()?(M=u.Disconnected|u.ImplementationSpecific,Math.random()<.5?M|=u.Preceding:M|=u.Following,M):p.isAncestor(w)?u.Contains|u.Preceding:p.isDescendant(w)?u.Contains|u.Following:p.isPreceding(w)?u.Preceding:u.Following},S.prototype.isSameNode=function(w){throw new Error("This DOM method is not implemented."+this.debugInfo())},S.prototype.lookupPrefix=function(w){throw new Error("This DOM method is not implemented."+this.debugInfo())},S.prototype.isDefaultNamespace=function(w){throw new Error("This DOM method is not implemented."+this.debugInfo())},S.prototype.lookupNamespaceURI=function(w){throw new Error("This DOM method is not implemented."+this.debugInfo())},S.prototype.isEqualNode=function(w){var p,M,C;if(w.nodeType!==this.nodeType)return!1;if(w.children.length!==this.children.length)return!1;for(p=M=0,C=this.children.length-1;0<=C?M<=C:M>=C;p=0<=C?++M:--M)if(!this.children[p].isEqualNode(w.children[p]))return!1;return!0},S.prototype.getFeature=function(w,p){throw new Error("This DOM method is not implemented."+this.debugInfo())},S.prototype.setUserData=function(w,p,M){throw new Error("This DOM method is not implemented."+this.debugInfo())},S.prototype.getUserData=function(w){throw new Error("This DOM method is not implemented."+this.debugInfo())},S.prototype.contains=function(w){return w?w===this||this.isDescendant(w):!1},S.prototype.isDescendant=function(w){var p,M,C,R,I;for(I=this.children,C=0,R=I.length;C<R;C++){if(p=I[C],w===p)return!0;if(M=p.isDescendant(w),M)return!0}return!1},S.prototype.isAncestor=function(w){return w.isDescendant(this)},S.prototype.isPreceding=function(w){var p,M;return p=this.treePosition(w),M=this.treePosition(this),p===-1||M===-1?!1:p<M},S.prototype.isFollowing=function(w){var p,M;return p=this.treePosition(w),M=this.treePosition(this),p===-1||M===-1?!1:p>M},S.prototype.treePosition=function(w){var p,M;return M=0,p=!1,this.foreachTreeNode(this.document(),function(C){if(M++,!p&&C===w)return p=!0}),p?M:-1},S.prototype.foreachTreeNode=function(w,p){var M,C,R,I,H;for(w||(w=this.document()),I=w.children,C=0,R=I.length;C<R;C++){if(M=I[C],H=p(M))return H;if(H=this.foreachTreeNode(M,p),H)return H}},S}()}).call(void 0)},{"./DocumentPosition":250,"./NodeType":251,"./Utility":252,"./XMLCData":255,"./XMLComment":257,"./XMLDeclaration":266,"./XMLDocType":267,"./XMLDummy":270,"./XMLElement":271,"./XMLNamedNodeMap":272,"./XMLNodeList":274,"./XMLProcessingInstruction":275,"./XMLRaw":276,"./XMLText":280}],274:[function(e,_,c){"use strict";(function(){var u;_.exports=u=function(){function t(y){this.nodes=y}return Object.defineProperty(t.prototype,"length",{get:function(){return this.nodes.length||0}}),t.prototype.clone=function(){return this.nodes=null},t.prototype.item=function(y){return this.nodes[y]||null},t}()}).call(void 0)},{}],275:[function(e,_,c){"use strict";var u=e("babel-runtime/core-js/object/create"),t=y(u);function y(f){return f&&f.__esModule?f:{default:f}}(function(){var f,h,d,n=function(i,o){for(var b in o)l.call(o,b)&&(i[b]=o[b]);function m(){this.constructor=i}return m.prototype=o.prototype,i.prototype=new m,i.__super__=o.prototype,i},l={}.hasOwnProperty;f=e("./NodeType"),h=e("./XMLCharacterData"),_.exports=d=function(s){n(i,s);function i(o,b,m){if(i.__super__.constructor.call(this,o),b==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=f.ProcessingInstruction,this.target=this.stringify.insTarget(b),this.name=this.target,m&&(this.value=this.stringify.insValue(m))}return i.prototype.clone=function(){return(0,t.default)(this)},i.prototype.toString=function(o){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(o))},i.prototype.isEqualNode=function(o){return i.__super__.isEqualNode.apply(this,arguments).isEqualNode(o)?!(o.target!==this.target):!1},i}(h)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],276:[function(e,_,c){"use strict";var u=e("babel-runtime/core-js/object/create"),t=y(u);function y(f){return f&&f.__esModule?f:{default:f}}(function(){var f,h,d,n=function(i,o){for(var b in o)l.call(o,b)&&(i[b]=o[b]);function m(){this.constructor=i}return m.prototype=o.prototype,i.prototype=new m,i.__super__=o.prototype,i},l={}.hasOwnProperty;f=e("./NodeType"),h=e("./XMLNode"),_.exports=d=function(s){n(i,s);function i(o,b){if(i.__super__.constructor.call(this,o),b==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=f.Raw,this.value=this.stringify.raw(b)}return i.prototype.clone=function(){return(0,t.default)(this)},i.prototype.toString=function(o){return this.options.writer.raw(this,this.options.writer.filterOptions(o))},i}(h)}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],277:[function(e,_,c){"use strict";(function(){var u,t,y,f,h=function(l,s){for(var i in s)d.call(s,i)&&(l[i]=s[i]);function o(){this.constructor=l}return o.prototype=s.prototype,l.prototype=new o,l.__super__=s.prototype,l},d={}.hasOwnProperty;u=e("./NodeType"),f=e("./XMLWriterBase"),t=e("./WriterState"),_.exports=y=function(n){h(l,n);function l(s,i){this.stream=s,l.__super__.constructor.call(this,i)}return l.prototype.endline=function(s,i,o){return s.isLastRootNode&&i.state===t.CloseTag?"":l.__super__.endline.call(this,s,i,o)},l.prototype.document=function(s,i){var o,b,m,g,A,T,x,E,j;for(x=s.children,b=m=0,A=x.length;m<A;b=++m)o=x[b],o.isLastRootNode=b===s.children.length-1;for(i=this.filterOptions(i),E=s.children,j=[],g=0,T=E.length;g<T;g++)o=E[g],j.push(this.writeChildNode(o,i,0));return j},l.prototype.attribute=function(s,i,o){return this.stream.write(l.__super__.attribute.call(this,s,i,o))},l.prototype.cdata=function(s,i,o){return this.stream.write(l.__super__.cdata.call(this,s,i,o))},l.prototype.comment=function(s,i,o){return this.stream.write(l.__super__.comment.call(this,s,i,o))},l.prototype.declaration=function(s,i,o){return this.stream.write(l.__super__.declaration.call(this,s,i,o))},l.prototype.docType=function(s,i,o){var b,m,g,A;if(o||(o=0),this.openNode(s,i,o),i.state=t.OpenTag,this.stream.write(this.indent(s,i,o)),this.stream.write("<!DOCTYPE "+s.root().name),s.pubID&&s.sysID?this.stream.write(' PUBLIC "'+s.pubID+'" "'+s.sysID+'"'):s.sysID&&this.stream.write(' SYSTEM "'+s.sysID+'"'),s.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(s,i,o)),i.state=t.InsideTag,A=s.children,m=0,g=A.length;m<g;m++)b=A[m],this.writeChildNode(b,i,o+1);i.state=t.CloseTag,this.stream.write("]")}return i.state=t.CloseTag,this.stream.write(i.spaceBeforeSlash+">"),this.stream.write(this.endline(s,i,o)),i.state=t.None,this.closeNode(s,i,o)},l.prototype.element=function(s,i,o){var b,m,g,A,T,x,E,j,O,S;o||(o=0),this.openNode(s,i,o),i.state=t.OpenTag,this.stream.write(this.indent(s,i,o)+"<"+s.name),O=s.attribs;for(E in O){if(!d.call(O,E))continue;b=O[E],this.attribute(b,i,o)}if(g=s.children.length,A=g===0?null:s.children[0],g===0||s.children.every(function(w){return(w.type===u.Text||w.type===u.Raw)&&w.value===""}))i.allowEmpty?(this.stream.write(">"),i.state=t.CloseTag,this.stream.write("</"+s.name+">")):(i.state=t.CloseTag,this.stream.write(i.spaceBeforeSlash+"/>"));else if(i.pretty&&g===1&&(A.type===u.Text||A.type===u.Raw)&&A.value!=null)this.stream.write(">"),i.state=t.InsideTag,i.suppressPrettyCount++,j=!0,this.writeChildNode(A,i,o+1),i.suppressPrettyCount--,j=!1,i.state=t.CloseTag,this.stream.write("</"+s.name+">");else{for(this.stream.write(">"+this.endline(s,i,o)),i.state=t.InsideTag,S=s.children,T=0,x=S.length;T<x;T++)m=S[T],this.writeChildNode(m,i,o+1);i.state=t.CloseTag,this.stream.write(this.indent(s,i,o)+"</"+s.name+">")}return this.stream.write(this.endline(s,i,o)),i.state=t.None,this.closeNode(s,i,o)},l.prototype.processingInstruction=function(s,i,o){return this.stream.write(l.__super__.processingInstruction.call(this,s,i,o))},l.prototype.raw=function(s,i,o){return this.stream.write(l.__super__.raw.call(this,s,i,o))},l.prototype.text=function(s,i,o){return this.stream.write(l.__super__.text.call(this,s,i,o))},l.prototype.dtdAttList=function(s,i,o){return this.stream.write(l.__super__.dtdAttList.call(this,s,i,o))},l.prototype.dtdElement=function(s,i,o){return this.stream.write(l.__super__.dtdElement.call(this,s,i,o))},l.prototype.dtdEntity=function(s,i,o){return this.stream.write(l.__super__.dtdEntity.call(this,s,i,o))},l.prototype.dtdNotation=function(s,i,o){return this.stream.write(l.__super__.dtdNotation.call(this,s,i,o))},l}(f)}).call(void 0)},{"./NodeType":251,"./WriterState":253,"./XMLWriterBase":281}],278:[function(e,_,c){"use strict";(function(){var u,t,y=function(d,n){for(var l in n)f.call(n,l)&&(d[l]=n[l]);function s(){this.constructor=d}return s.prototype=n.prototype,d.prototype=new s,d.__super__=n.prototype,d},f={}.hasOwnProperty;t=e("./XMLWriterBase"),_.exports=u=function(h){y(d,h);function d(n){d.__super__.constructor.call(this,n)}return d.prototype.document=function(n,l){var s,i,o,b,m;for(l=this.filterOptions(l),b="",m=n.children,i=0,o=m.length;i<o;i++)s=m[i],b+=this.writeChildNode(s,l,0);return l.pretty&&b.slice(-l.newline.length)===l.newline&&(b=b.slice(0,-l.newline.length)),b},d}(t)}).call(void 0)},{"./XMLWriterBase":281}],279:[function(e,_,c){"use strict";(function(){var u,t=function(h,d){return function(){return h.apply(d,arguments)}},y={}.hasOwnProperty;_.exports=u=function(){function f(h){this.assertLegalName=t(this.assertLegalName,this),this.assertLegalChar=t(this.assertLegalChar,this);var d,n,l;h||(h={}),this.options=h,this.options.version||(this.options.version="1.0"),n=h.stringify||{};for(d in n){if(!y.call(n,d))continue;l=n[d],this[d]=l}}return f.prototype.name=function(h){return this.options.noValidation?h:this.assertLegalName(""+h||"")},f.prototype.text=function(h){return this.options.noValidation?h:this.assertLegalChar(this.textEscape(""+h||""))},f.prototype.cdata=function(h){return this.options.noValidation?h:(h=""+h||"",h=h.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(h))},f.prototype.comment=function(h){if(this.options.noValidation)return h;if(h=""+h||"",h.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+h);return this.assertLegalChar(h)},f.prototype.raw=function(h){return this.options.noValidation?h:""+h||""},f.prototype.attValue=function(h){return this.options.noValidation?h:this.assertLegalChar(this.attEscape(h=""+h||""))},f.prototype.insTarget=function(h){return this.options.noValidation?h:this.assertLegalChar(""+h||"")},f.prototype.insValue=function(h){if(this.options.noValidation)return h;if(h=""+h||"",h.match(/\?>/))throw new Error("Invalid processing instruction value: "+h);return this.assertLegalChar(h)},f.prototype.xmlVersion=function(h){if(this.options.noValidation)return h;if(h=""+h||"",!h.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+h);return h},f.prototype.xmlEncoding=function(h){if(this.options.noValidation)return h;if(h=""+h||"",!h.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+h);return this.assertLegalChar(h)},f.prototype.xmlStandalone=function(h){return this.options.noValidation?h:h?"yes":"no"},f.prototype.dtdPubID=function(h){return this.options.noValidation?h:this.assertLegalChar(""+h||"")},f.prototype.dtdSysID=function(h){return this.options.noValidation?h:this.assertLegalChar(""+h||"")},f.prototype.dtdElementValue=function(h){return this.options.noValidation?h:this.assertLegalChar(""+h||"")},f.prototype.dtdAttType=function(h){return this.options.noValidation?h:this.assertLegalChar(""+h||"")},f.prototype.dtdAttDefault=function(h){return this.options.noValidation?h:this.assertLegalChar(""+h||"")},f.prototype.dtdEntityValue=function(h){return this.options.noValidation?h:this.assertLegalChar(""+h||"")},f.prototype.dtdNData=function(h){return this.options.noValidation?h:this.assertLegalChar(""+h||"")},f.prototype.convertAttKey="@",f.prototype.convertPIKey="?",f.prototype.convertTextKey="#text",f.prototype.convertCDataKey="#cdata",f.prototype.convertCommentKey="#comment",f.prototype.convertRawKey="#raw",f.prototype.assertLegalChar=function(h){var d,n;if(this.options.noValidation)return h;if(d="",this.options.version==="1.0"){if(d=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,n=h.match(d))throw new Error("Invalid character in string: "+h+" at index "+n.index)}else if(this.options.version==="1.1"&&(d=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,n=h.match(d)))throw new Error("Invalid character in string: "+h+" at index "+n.index);return h},f.prototype.assertLegalName=function(h){var d;if(this.options.noValidation)return h;if(this.assertLegalChar(h),d=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!h.match(d))throw new Error("Invalid character in name");return h},f.prototype.textEscape=function(h){var d;return this.options.noValidation?h:(d=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,h.replace(d,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
"))},f.prototype.attEscape=function(h){var d;return this.options.noValidation?h:(d=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,h.replace(d,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
"))},f}()}).call(void 0)},{}],280:[function(e,_,c){"use strict";var u=e("babel-runtime/core-js/object/create"),t=y(u);function y(f){return f&&f.__esModule?f:{default:f}}(function(){var f,h,d,n=function(i,o){for(var b in o)l.call(o,b)&&(i[b]=o[b]);function m(){this.constructor=i}return m.prototype=o.prototype,i.prototype=new m,i.__super__=o.prototype,i},l={}.hasOwnProperty;f=e("./NodeType"),h=e("./XMLCharacterData"),_.exports=d=function(s){n(i,s);function i(o,b){if(i.__super__.constructor.call(this,o),b==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=f.Text,this.value=this.stringify.text(b)}return Object.defineProperty(i.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(i.prototype,"wholeText",{get:function(){var b,m,g;for(g="",m=this.previousSibling;m;)g=m.data+g,m=m.previousSibling;for(g+=this.data,b=this.nextSibling;b;)g=g+b.data,b=b.nextSibling;return g}}),i.prototype.clone=function(){return(0,t.default)(this)},i.prototype.toString=function(o){return this.options.writer.text(this,this.options.writer.filterOptions(o))},i.prototype.splitText=function(o){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.replaceWholeText=function(o){throw new Error("This DOM method is not implemented."+this.debugInfo())},i}(h)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],281:[function(e,_,c){"use strict";(function(){var u,t,y,f,h,d,n,l,s,i,o,b,m,g,A,T,x,E={}.hasOwnProperty;x=e("./Utility").assign,u=e("./NodeType"),s=e("./XMLDeclaration"),i=e("./XMLDocType"),y=e("./XMLCData"),f=e("./XMLComment"),b=e("./XMLElement"),g=e("./XMLRaw"),A=e("./XMLText"),m=e("./XMLProcessingInstruction"),o=e("./XMLDummy"),h=e("./XMLDTDAttList"),d=e("./XMLDTDElement"),n=e("./XMLDTDEntity"),l=e("./XMLDTDNotation"),t=e("./WriterState"),_.exports=T=function(){function j(O){var S,w,p;O||(O={}),this.options=O,w=O.writer||{};for(S in w){if(!E.call(w,S))continue;p=w[S],this["_"+S]=this[S],this[S]=p}}return j.prototype.filterOptions=function(O){var S,w,p,M,C,R,I,H;return O||(O={}),O=x({},this.options,O),S={writer:this},S.pretty=O.pretty||!1,S.allowEmpty=O.allowEmpty||!1,S.indent=(w=O.indent)!=null?w:" ",S.newline=(p=O.newline)!=null?p:`
|
||
`,S.offset=(M=O.offset)!=null?M:0,S.dontPrettyTextNodes=(C=(R=O.dontPrettyTextNodes)!=null?R:O.dontprettytextnodes)!=null?C:0,S.spaceBeforeSlash=(I=(H=O.spaceBeforeSlash)!=null?H:O.spacebeforeslash)!=null?I:"",S.spaceBeforeSlash===!0&&(S.spaceBeforeSlash=" "),S.suppressPrettyCount=0,S.user={},S.state=t.None,S},j.prototype.indent=function(O,S,w){var p;return!S.pretty||S.suppressPrettyCount?"":S.pretty&&(p=(w||0)+S.offset+1,p>0)?new Array(p).join(S.indent):""},j.prototype.endline=function(O,S,w){return!S.pretty||S.suppressPrettyCount?"":S.newline},j.prototype.attribute=function(O,S,w){var p;return this.openAttribute(O,S,w),p=" "+O.name+'="'+O.value+'"',this.closeAttribute(O,S,w),p},j.prototype.cdata=function(O,S,w){var p;return this.openNode(O,S,w),S.state=t.OpenTag,p=this.indent(O,S,w)+"<![CDATA[",S.state=t.InsideTag,p+=O.value,S.state=t.CloseTag,p+="]]>"+this.endline(O,S,w),S.state=t.None,this.closeNode(O,S,w),p},j.prototype.comment=function(O,S,w){var p;return this.openNode(O,S,w),S.state=t.OpenTag,p=this.indent(O,S,w)+"<!-- ",S.state=t.InsideTag,p+=O.value,S.state=t.CloseTag,p+=" -->"+this.endline(O,S,w),S.state=t.None,this.closeNode(O,S,w),p},j.prototype.declaration=function(O,S,w){var p;return this.openNode(O,S,w),S.state=t.OpenTag,p=this.indent(O,S,w)+"<?xml",S.state=t.InsideTag,p+=' version="'+O.version+'"',O.encoding!=null&&(p+=' encoding="'+O.encoding+'"'),O.standalone!=null&&(p+=' standalone="'+O.standalone+'"'),S.state=t.CloseTag,p+=S.spaceBeforeSlash+"?>",p+=this.endline(O,S,w),S.state=t.None,this.closeNode(O,S,w),p},j.prototype.docType=function(O,S,w){var p,M,C,R,I;if(w||(w=0),this.openNode(O,S,w),S.state=t.OpenTag,R=this.indent(O,S,w),R+="<!DOCTYPE "+O.root().name,O.pubID&&O.sysID?R+=' PUBLIC "'+O.pubID+'" "'+O.sysID+'"':O.sysID&&(R+=' SYSTEM "'+O.sysID+'"'),O.children.length>0){for(R+=" [",R+=this.endline(O,S,w),S.state=t.InsideTag,I=O.children,M=0,C=I.length;M<C;M++)p=I[M],R+=this.writeChildNode(p,S,w+1);S.state=t.CloseTag,R+="]"}return S.state=t.CloseTag,R+=S.spaceBeforeSlash+">",R+=this.endline(O,S,w),S.state=t.None,this.closeNode(O,S,w),R},j.prototype.element=function(O,S,w){var p,M,C,R,I,H,W,D,ae,V,te,$,P,F;w||(w=0),V=!1,te="",this.openNode(O,S,w),S.state=t.OpenTag,te+=this.indent(O,S,w)+"<"+O.name,$=O.attribs;for(ae in $){if(!E.call($,ae))continue;p=$[ae],te+=this.attribute(p,S,w)}if(C=O.children.length,R=C===0?null:O.children[0],C===0||O.children.every(function(G){return(G.type===u.Text||G.type===u.Raw)&&G.value===""}))S.allowEmpty?(te+=">",S.state=t.CloseTag,te+="</"+O.name+">"+this.endline(O,S,w)):(S.state=t.CloseTag,te+=S.spaceBeforeSlash+"/>"+this.endline(O,S,w));else if(S.pretty&&C===1&&(R.type===u.Text||R.type===u.Raw)&&R.value!=null)te+=">",S.state=t.InsideTag,S.suppressPrettyCount++,V=!0,te+=this.writeChildNode(R,S,w+1),S.suppressPrettyCount--,V=!1,S.state=t.CloseTag,te+="</"+O.name+">"+this.endline(O,S,w);else{if(S.dontPrettyTextNodes){for(P=O.children,I=0,W=P.length;I<W;I++)if(M=P[I],(M.type===u.Text||M.type===u.Raw)&&M.value!=null){S.suppressPrettyCount++,V=!0;break}}for(te+=">"+this.endline(O,S,w),S.state=t.InsideTag,F=O.children,H=0,D=F.length;H<D;H++)M=F[H],te+=this.writeChildNode(M,S,w+1);S.state=t.CloseTag,te+=this.indent(O,S,w)+"</"+O.name+">",V&&S.suppressPrettyCount--,te+=this.endline(O,S,w),S.state=t.None}return this.closeNode(O,S,w),te},j.prototype.writeChildNode=function(O,S,w){switch(O.type){case u.CData:return this.cdata(O,S,w);case u.Comment:return this.comment(O,S,w);case u.Element:return this.element(O,S,w);case u.Raw:return this.raw(O,S,w);case u.Text:return this.text(O,S,w);case u.ProcessingInstruction:return this.processingInstruction(O,S,w);case u.Dummy:return"";case u.Declaration:return this.declaration(O,S,w);case u.DocType:return this.docType(O,S,w);case u.AttributeDeclaration:return this.dtdAttList(O,S,w);case u.ElementDeclaration:return this.dtdElement(O,S,w);case u.EntityDeclaration:return this.dtdEntity(O,S,w);case u.NotationDeclaration:return this.dtdNotation(O,S,w);default:throw new Error("Unknown XML node type: "+O.constructor.name)}},j.prototype.processingInstruction=function(O,S,w){var p;return this.openNode(O,S,w),S.state=t.OpenTag,p=this.indent(O,S,w)+"<?",S.state=t.InsideTag,p+=O.target,O.value&&(p+=" "+O.value),S.state=t.CloseTag,p+=S.spaceBeforeSlash+"?>",p+=this.endline(O,S,w),S.state=t.None,this.closeNode(O,S,w),p},j.prototype.raw=function(O,S,w){var p;return this.openNode(O,S,w),S.state=t.OpenTag,p=this.indent(O,S,w),S.state=t.InsideTag,p+=O.value,S.state=t.CloseTag,p+=this.endline(O,S,w),S.state=t.None,this.closeNode(O,S,w),p},j.prototype.text=function(O,S,w){var p;return this.openNode(O,S,w),S.state=t.OpenTag,p=this.indent(O,S,w),S.state=t.InsideTag,p+=O.value,S.state=t.CloseTag,p+=this.endline(O,S,w),S.state=t.None,this.closeNode(O,S,w),p},j.prototype.dtdAttList=function(O,S,w){var p;return this.openNode(O,S,w),S.state=t.OpenTag,p=this.indent(O,S,w)+"<!ATTLIST",S.state=t.InsideTag,p+=" "+O.elementName+" "+O.attributeName+" "+O.attributeType,O.defaultValueType!=="#DEFAULT"&&(p+=" "+O.defaultValueType),O.defaultValue&&(p+=' "'+O.defaultValue+'"'),S.state=t.CloseTag,p+=S.spaceBeforeSlash+">"+this.endline(O,S,w),S.state=t.None,this.closeNode(O,S,w),p},j.prototype.dtdElement=function(O,S,w){var p;return this.openNode(O,S,w),S.state=t.OpenTag,p=this.indent(O,S,w)+"<!ELEMENT",S.state=t.InsideTag,p+=" "+O.name+" "+O.value,S.state=t.CloseTag,p+=S.spaceBeforeSlash+">"+this.endline(O,S,w),S.state=t.None,this.closeNode(O,S,w),p},j.prototype.dtdEntity=function(O,S,w){var p;return this.openNode(O,S,w),S.state=t.OpenTag,p=this.indent(O,S,w)+"<!ENTITY",S.state=t.InsideTag,O.pe&&(p+=" %"),p+=" "+O.name,O.value?p+=' "'+O.value+'"':(O.pubID&&O.sysID?p+=' PUBLIC "'+O.pubID+'" "'+O.sysID+'"':O.sysID&&(p+=' SYSTEM "'+O.sysID+'"'),O.nData&&(p+=" NDATA "+O.nData)),S.state=t.CloseTag,p+=S.spaceBeforeSlash+">"+this.endline(O,S,w),S.state=t.None,this.closeNode(O,S,w),p},j.prototype.dtdNotation=function(O,S,w){var p;return this.openNode(O,S,w),S.state=t.OpenTag,p=this.indent(O,S,w)+"<!NOTATION",S.state=t.InsideTag,p+=" "+O.name,O.pubID&&O.sysID?p+=' PUBLIC "'+O.pubID+'" "'+O.sysID+'"':O.pubID?p+=' PUBLIC "'+O.pubID+'"':O.sysID&&(p+=' SYSTEM "'+O.sysID+'"'),S.state=t.CloseTag,p+=S.spaceBeforeSlash+">"+this.endline(O,S,w),S.state=t.None,this.closeNode(O,S,w),p},j.prototype.openNode=function(O,S,w){},j.prototype.closeNode=function(O,S,w){},j.prototype.openAttribute=function(O,S,w){},j.prototype.closeAttribute=function(O,S,w){},j}()}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLCData":255,"./XMLComment":257,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLDeclaration":266,"./XMLDocType":267,"./XMLDummy":270,"./XMLElement":271,"./XMLProcessingInstruction":275,"./XMLRaw":276,"./XMLText":280}],282:[function(e,_,c){"use strict";(function(){var u,t,y,f,h,d,n,l,s,i;i=e("./Utility"),l=i.assign,s=i.isFunction,y=e("./XMLDOMImplementation"),f=e("./XMLDocument"),h=e("./XMLDocumentCB"),n=e("./XMLStringWriter"),d=e("./XMLStreamWriter"),u=e("./NodeType"),t=e("./WriterState"),_.exports.create=function(o,b,m,g){var A,T;if(o==null)throw new Error("Root element needs a name.");return g=l({},b,m,g),A=new f(g),T=A.element(o),g.headless||(A.declaration(g),(g.pubID!=null||g.sysID!=null)&&A.dtd(g)),T},_.exports.begin=function(o,b,m){var g;return s(o)&&(g=[o,b],b=g[0],m=g[1],o={}),b?new h(o,b,m):new f(o)},_.exports.stringWriter=function(o){return new n(o)},_.exports.streamWriter=function(o,b){return new d(o,b)},_.exports.implementation=new y,_.exports.nodeType=u,_.exports.writerState=t}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLDOMImplementation":260,"./XMLDocument":268,"./XMLDocumentCB":269,"./XMLStreamWriter":277,"./XMLStringWriter":278}],283:[function(e,_,c){_.exports=t;var u=Object.prototype.hasOwnProperty;function t(){for(var y={},f=0;f<arguments.length;f++){var h=arguments[f];for(var d in h)u.call(h,d)&&(y[d]=h[d])}return y}},{}],284:[function(e,_,c){"use strict";var u=e("buffer").Buffer,t=e("./sha"),y=e("./md5"),f={sha1:t,md5:y},h=64,d=u.alloc(h);d.fill(0);function n(i,o,b){u.isBuffer(o)||(o=u.from(o)),u.isBuffer(b)||(b=u.from(b)),o.length>h?o=i(o):o.length<h&&(o=u.concat([o,d],h));for(var m=u.alloc(h),g=u.alloc(h),A=0;A<h;A++)m[A]=o[A]^54,g[A]=o[A]^92;var T=i(u.concat([m,b]));return i(u.concat([g,T]))}function l(i,o){i=i||"sha1";var b=f[i],m=[],g=0;return b||s("algorithm:",i,"is not yet supported"),{update:function(T){return u.isBuffer(T)||(T=u.from(T)),m.push(T),g+=T.length,this},digest:function(T){var x=u.concat(m),E=o?n(b,o,x):b(x);return m=null,T?E.toString(T):E}}}function s(){var i=[].slice.call(arguments).join(" ");throw new Error([i,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
|
||
`))}c.createHash=function(i){return l(i)},c.createHmac=function(i,o){return l(i,o)},c.createCredentials=function(){s("sorry,createCredentials is not implemented yet")},c.createCipher=function(){s("sorry,createCipher is not implemented yet")},c.createCipheriv=function(){s("sorry,createCipheriv is not implemented yet")},c.createDecipher=function(){s("sorry,createDecipher is not implemented yet")},c.createDecipheriv=function(){s("sorry,createDecipheriv is not implemented yet")},c.createSign=function(){s("sorry,createSign is not implemented yet")},c.createVerify=function(){s("sorry,createVerify is not implemented yet")},c.createDiffieHellman=function(){s("sorry,createDiffieHellman is not implemented yet")},c.pbkdf2=function(){s("sorry,pbkdf2 is not implemented yet")}},{"./md5":286,"./sha":287,buffer:73}],285:[function(e,_,c){"use strict";var u=e("buffer").Buffer,t=4,y=u.alloc(t);y.fill(0);var f=8;function h(l,s){if(l.length%t!==0){var i=l.length+(t-l.length%t);l=u.concat([l,y],i)}for(var o=[],b=s?l.readInt32BE:l.readInt32LE,m=0;m<l.length;m+=t)o.push(b.call(l,m));return o}function d(l,s,i){for(var o=u.alloc(s),b=i?o.writeInt32BE:o.writeInt32LE,m=0;m<l.length;m++)b.call(o,l[m],m*4,!0);return o}function n(l,s,i,o){u.isBuffer(l)||(l=u.from(l));var b=s(h(l,o),l.length*f);return d(b,i,o)}_.exports={hash:n}},{buffer:73}],286:[function(e,_,c){"use strict";var u=e("./helpers");function t(){return hex_md5("abc")=="900150983cd24fb0d6963f7d28e17f72"}function y(o,b){o[b>>5]|=128<<b%32,o[(b+64>>>9<<4)+14]=b;for(var m=1732584193,g=-271733879,A=-1732584194,T=271733878,x=0;x<o.length;x+=16){var E=m,j=g,O=A,S=T;m=h(m,g,A,T,o[x+0],7,-680876936),T=h(T,m,g,A,o[x+1],12,-389564586),A=h(A,T,m,g,o[x+2],17,606105819),g=h(g,A,T,m,o[x+3],22,-1044525330),m=h(m,g,A,T,o[x+4],7,-176418897),T=h(T,m,g,A,o[x+5],12,1200080426),A=h(A,T,m,g,o[x+6],17,-1473231341),g=h(g,A,T,m,o[x+7],22,-45705983),m=h(m,g,A,T,o[x+8],7,1770035416),T=h(T,m,g,A,o[x+9],12,-1958414417),A=h(A,T,m,g,o[x+10],17,-42063),g=h(g,A,T,m,o[x+11],22,-1990404162),m=h(m,g,A,T,o[x+12],7,1804603682),T=h(T,m,g,A,o[x+13],12,-40341101),A=h(A,T,m,g,o[x+14],17,-1502002290),g=h(g,A,T,m,o[x+15],22,1236535329),m=d(m,g,A,T,o[x+1],5,-165796510),T=d(T,m,g,A,o[x+6],9,-1069501632),A=d(A,T,m,g,o[x+11],14,643717713),g=d(g,A,T,m,o[x+0],20,-373897302),m=d(m,g,A,T,o[x+5],5,-701558691),T=d(T,m,g,A,o[x+10],9,38016083),A=d(A,T,m,g,o[x+15],14,-660478335),g=d(g,A,T,m,o[x+4],20,-405537848),m=d(m,g,A,T,o[x+9],5,568446438),T=d(T,m,g,A,o[x+14],9,-1019803690),A=d(A,T,m,g,o[x+3],14,-187363961),g=d(g,A,T,m,o[x+8],20,1163531501),m=d(m,g,A,T,o[x+13],5,-1444681467),T=d(T,m,g,A,o[x+2],9,-51403784),A=d(A,T,m,g,o[x+7],14,1735328473),g=d(g,A,T,m,o[x+12],20,-1926607734),m=n(m,g,A,T,o[x+5],4,-378558),T=n(T,m,g,A,o[x+8],11,-2022574463),A=n(A,T,m,g,o[x+11],16,1839030562),g=n(g,A,T,m,o[x+14],23,-35309556),m=n(m,g,A,T,o[x+1],4,-1530992060),T=n(T,m,g,A,o[x+4],11,1272893353),A=n(A,T,m,g,o[x+7],16,-155497632),g=n(g,A,T,m,o[x+10],23,-1094730640),m=n(m,g,A,T,o[x+13],4,681279174),T=n(T,m,g,A,o[x+0],11,-358537222),A=n(A,T,m,g,o[x+3],16,-722521979),g=n(g,A,T,m,o[x+6],23,76029189),m=n(m,g,A,T,o[x+9],4,-640364487),T=n(T,m,g,A,o[x+12],11,-421815835),A=n(A,T,m,g,o[x+15],16,530742520),g=n(g,A,T,m,o[x+2],23,-995338651),m=l(m,g,A,T,o[x+0],6,-198630844),T=l(T,m,g,A,o[x+7],10,1126891415),A=l(A,T,m,g,o[x+14],15,-1416354905),g=l(g,A,T,m,o[x+5],21,-57434055),m=l(m,g,A,T,o[x+12],6,1700485571),T=l(T,m,g,A,o[x+3],10,-1894986606),A=l(A,T,m,g,o[x+10],15,-1051523),g=l(g,A,T,m,o[x+1],21,-2054922799),m=l(m,g,A,T,o[x+8],6,1873313359),T=l(T,m,g,A,o[x+15],10,-30611744),A=l(A,T,m,g,o[x+6],15,-1560198380),g=l(g,A,T,m,o[x+13],21,1309151649),m=l(m,g,A,T,o[x+4],6,-145523070),T=l(T,m,g,A,o[x+11],10,-1120210379),A=l(A,T,m,g,o[x+2],15,718787259),g=l(g,A,T,m,o[x+9],21,-343485551),m=s(m,E),g=s(g,j),A=s(A,O),T=s(T,S)}return Array(m,g,A,T)}function f(o,b,m,g,A,T){return s(i(s(s(b,o),s(g,T)),A),m)}function h(o,b,m,g,A,T,x){return f(b&m|~b&g,o,b,A,T,x)}function d(o,b,m,g,A,T,x){return f(b&g|m&~g,o,b,A,T,x)}function n(o,b,m,g,A,T,x){return f(b^m^g,o,b,A,T,x)}function l(o,b,m,g,A,T,x){return f(m^(b|~g),o,b,A,T,x)}function s(o,b){var m=(o&65535)+(b&65535),g=(o>>16)+(b>>16)+(m>>16);return g<<16|m&65535}function i(o,b){return o<<b|o>>>32-b}_.exports=function(b){return u.hash(b,y,16)}},{"./helpers":285}],287:[function(e,_,c){"use strict";var u=e("./helpers");function t(n,l){n[l>>5]|=128<<24-l%32,n[(l+64>>9<<4)+15]=l;for(var s=Array(80),i=1732584193,o=-271733879,b=-1732584194,m=271733878,g=-1009589776,A=0;A<n.length;A+=16){for(var T=i,x=o,E=b,j=m,O=g,S=0;S<80;S++){S<16?s[S]=n[A+S]:s[S]=d(s[S-3]^s[S-8]^s[S-14]^s[S-16],1);var w=h(h(d(i,5),y(S,o,b,m)),h(h(g,s[S]),f(S)));g=m,m=b,b=d(o,30),o=i,i=w}i=h(i,T),o=h(o,x),b=h(b,E),m=h(m,j),g=h(g,O)}return Array(i,o,b,m,g)}function y(n,l,s,i){return n<20?l&s|~l&i:n<40?l^s^i:n<60?l&s|l&i|s&i:l^s^i}function f(n){return n<20?1518500249:n<40?1859775393:n<60?-1894007588:-899497514}function h(n,l){var s=(n&65535)+(l&65535),i=(n>>16)+(l>>16)+(s>>16);return i<<16|s&65535}function d(n,l){return n<<l|n>>>32-l}_.exports=function(l){return u.hash(l,t,20,!0)}},{"./helpers":285}],288:[function(e,_,c){"use strict";_.exports=function(){return function(){}}},{}],289:[function(e,_,c){(function(u){"use strict";var t=e("babel-runtime/helpers/typeof"),y=f(t);function f(i){return i&&i.__esModule?i:{default:i}}var h=e("stream"),d=h.Stream,n=e("../lib/common/utils/isArray"),l=n.isArray;_.exports.string=function(o){return typeof o=="string"},_.exports.array=l,_.exports.buffer=u.isBuffer;function s(i){return i instanceof d}_.exports.writableStream=function(o){return s(o)&&typeof o._write=="function"&&(0,y.default)(o._writableState)==="object"}}).call(this,{isBuffer:e("../node_modules/is-buffer/index.js")})},{"../lib/common/utils/isArray":42,"../node_modules/is-buffer/index.js":197,"babel-runtime/helpers/typeof":67,stream:230}],290:[function(e,_,c){"use strict";c.encodeURIComponent=function(u){try{return encodeURIComponent(u)}catch(t){return u}},c.escape=e("escape-html"),c.timestamp=function(t){if(t){var y=t;return typeof y=="string"&&(y=Number(y)),String(t).length===10&&(y*=1e3),new Date(y)}return Math.round(Date.now()/1e3)}},{"escape-html":191}],291:[function(e,_,c){(function(u,t){"use strict";var y=e("babel-runtime/core-js/json/stringify"),f=n(y),h=e("babel-runtime/helpers/typeof"),d=n(h);function n(S){return S&&S.__esModule?S:{default:S}}var l=e("util"),s=e("url"),i=e("http"),o=e("https"),b=e("debug")("urllib"),m=e("humanize-ms"),g,A=0,T=Math.pow(2,31)-10,x=/^https?:\/\//i;function E(S,w){return S===void 0?w:S}function j(S,w){return function(p,M,C){if(p)return w(p);S({data:M,status:C.statusCode,headers:C.headers,res:C})}}c.TIMEOUTS=[m("300s"),m("300s")];var O=["json","text"];c.request=function(w,p,M){return arguments.length===2&&typeof p=="function"&&(M=p,p=null),typeof M=="function"?c.requestWithCallback(w,p,M):(g||(g=e("any-promise")),new g(function(C,R){c.requestWithCallback(w,p,j(C,R))}))},c.requestWithCallback=function(w,p,M){if(!w||typeof w!="string"&&(typeof w=="undefined"?"undefined":(0,d.default)(w))!=="object"){var C=l.format("expect request url to be a string or a http request options, but got %j",w);throw new Error(C)}arguments.length===2&&typeof p=="function"&&(M=p,p=null),p=p||{},A>=T&&(A=0);var R=++A;p.requestUrls=p.requestUrls||[];var I={requestId:R,url:w,args:p,ctx:p.ctx};p.emitter&&p.emitter.emit("request",I),p.timeout=p.timeout||c.TIMEOUTS,p.maxRedirects=p.maxRedirects||10,p.streaming=p.streaming||p.customResponse;var H=Date.now(),W;typeof w=="string"?(x.test(w)||(w="http://"+w),W=s.parse(w)):W=w;var D=(p.type||p.method||W.method||"GET").toUpperCase(),ae=W.port||80,V=i,te=E(p.agent,c.agent),$=p.fixJSONCtlChars;W.protocol==="https:"&&(V=o,te=E(p.httpsAgent,c.httpsAgent),W.port||(ae=443));var P={host:W.hostname||W.host||"localhost",path:W.path||"/",method:D,port:ae,agent:te,headers:p.headers||{},lookup:p.lookup};Array.isArray(p.timeout)?P.requestTimeout=p.timeout[p.timeout.length-1]:typeof p.timeout!="undefined"&&(P.requestTimeout=p.timeout);for(var F=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","secureOptions"],G=0;G<F.length;G++){var J=F[G];p.hasOwnProperty(J)&&(P[J]=p[J])}P.rejectUnauthorized===!1&&!P.hasOwnProperty("secureOptions")&&(P.secureOptions=e("constants").SSL_OP_NO_TLSv1_2);var U=p.auth||W.auth;U&&(P.auth=U);var Z=p.content||p.data,ie=D==="GET"||D==="HEAD"||p.dataAsQueryString;if(!p.content&&(Z&&!(typeof Z=="string"||t.isBuffer(Z))))if(ie)Z=p.nestedQuerystring?qs.stringify(Z):querystring.stringify(Z);else{var re=P.headers["Content-Type"]||P.headers["content-type"];re||(p.contentType==="json"?re="application/json":re="application/x-www-form-urlencoded",P.headers["Content-Type"]=re),parseContentType(re).type==="application/json"?Z=(0,f.default)(Z):Z=p.nestedQuerystring?qs.stringify(Z):querystring.stringify(Z)}ie&&Z&&(P.path+=(W.query?"&":"?")+Z,Z=null);var le=0;if(Z){var de=Z.length;t.isBuffer(Z)||(de=t.byteLength(Z)),le=P.headers["Content-Length"]=de}p.dataType==="json"&&(P.headers.Accept="application/json"),typeof p.beforeRequest=="function"&&p.beforeRequest(P);var K=null,Se=null,oe=null,q=!1,Q=!1,ee=0,ce=-1,X=!1,B="",Y="",N=null;p.timing&&(N={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function v(){K&&(clearTimeout(K),K=null)}function a(){Se&&(clearTimeout(Se),Se=null)}function r(ue,xe,Ie){if(a(),!M){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),R,u.pid,P.method,w),ue&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
|
||
stack: %s`,Date(),R,u.pid,ue.name,ue.message,ue.stack);return}var Le=M;M=null;var We={};if(Ie&&(ce=Ie.statusCode,We=Ie.headers),ce===401&&We["www-authenticate"]&&(!p.headers||!p.headers.Authorization)&&p.digestAuth){var lt=We["www-authenticate"];if(lt.indexOf("Digest ")>=0)return b("Request#%d %s: got digest auth header WWW-Authenticate: %s",R,w,lt),p.headers=p.headers||{},p.headers.Authorization=digestAuthHeader(P.method,P.path,lt,p.digestAuth),b("Request#%d %s: auth with digest header: %s",R,w,p.headers.Authorization),Ie.headers["set-cookie"]&&(p.headers.Cookie=Ie.headers["set-cookie"].join(";")),c.requestWithCallback(w,p,Le)}var nt=Date.now()-H;N&&(N.contentDownload=nt),b("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",nt,ee,ce,P.method,P.host,P.path,Q,N);var pt={status:ce,statusCode:ce,headers:We,size:ee,aborted:X,rt:nt,keepAliveSocket:Q,data:xe,requestUrls:p.requestUrls,timing:N,remoteAddress:B,remotePort:Y};if(ue){var Tt="";te&&typeof te.getCurrentStatus=="function"&&(Tt=", agent status: "+(0,f.default)(te.getCurrentStatus())),ue.message+=", "+P.method+" "+w+" "+ce+" (connected: "+q+", keepalive socket: "+Q+Tt+`)
|
||
headers: `+(0,f.default)(We),ue.data=xe,ue.path=P.path,ue.status=ce,ue.headers=We,ue.res=pt}Le(ue,xe,p.streaming?Ie:pt),p.emitter&&(I.url=w,I.socket=be&&be.connection,I.options=P,I.size=le,p.emitter.emit("response",{requestId:R,error:ue,ctx:p.ctx,req:I,res:pt}))}function L(ue){var xe=null;if(p.followRedirect&&statuses.redirect[ue.statusCode]){p._followRedirectCount=(p._followRedirectCount||0)+1;var Ie=ue.headers.location;if(!Ie)xe=new Error("Got statusCode "+ue.statusCode+" but cannot resolve next location from headers"),xe.name="FollowRedirectError";else if(p._followRedirectCount>p.maxRedirects)xe=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+w),xe.name="MaxRedirectError";else{var Le=p.formatRedirectUrl?p.formatRedirectUrl(w,Ie):s.resolve(w,Ie);b("Request#%d %s: `redirected` from %s to %s",R,P.path,w,Le),a(),p.headers&&p.headers.Host&&x.test(Ie)&&(p.headers.Host=null);var We=M;return M=null,c.requestWithCallback(Le,p,We),{redirect:!0,error:null}}}return{redirect:!1,error:xe}}!P.headers["User-Agent"]&&!P.headers["user-agent"]&&(P.headers["User-Agent"]=navigator.userAgent),p.gzip&&(!P.headers["Accept-Encoding"]&&!P.headers["accept-encoding"]&&(P.headers["Accept-Encoding"]="gzip"));function k(ue,xe,Ie){var Le=ue.headers["content-encoding"];return Ie(null,xe,Le)}var z=p.writeStream;b("Request#%d %s %s with headers %j, options.path: %s",R,D,w,P.headers,P.path),p.requestUrls.push(w);function se(ue){if(N&&(N.waiting=Date.now()-H),b("Request#%d %s `req response` event emit: status %d, headers: %j",R,w,ue.statusCode,ue.headers),p.streaming){var xe=L(ue);if(xe.redirect){ue.resume();return}return xe.error?(ue.resume(),r(xe.error,null,ue)):r(null,null,ue)}if(ue.on("close",function(){b("Request#%d %s: `res close` event emit, total size %d",R,w,ee)}),ue.on("error",function(){b("Request#%d %s: `res error` event emit, total size %d",R,w,ee)}),ue.on("aborted",function(){X=!0,b("Request#%d %s: `res aborted` event emit, total size %d",R,w,ee)}),z){var xe=L(ue);if(xe.redirect){ue.resume();return}return xe.error?(ue.resume(),z.end(),r(xe.error,null,ue)):(p.consumeWriteStream===!1?ue.on("end",r.bind(null,null,null,ue)):isNode010||isNode012?first([[z,"close"],[ue,"aborted"]],function(We,lt,nt){b("Request#%d %s: writeStream or res %s event emitted",R,w,nt),r(oe||null,null,ue)}):z.on("close",function(){b("Request#%d %s: writeStream close event emitted",R,w),r(oe||null,null,ue)}),ue.pipe(z))}var Ie=[];ue.on("data",function(Le){b("Request#%d %s: `res data` event emit, size %d",R,w,Le.length),ee+=Le.length,Ie.push(Le)}),ue.on("end",function(){var Le=t.concat(Ie,ee);if(b("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",R,w,ee,ue._dumped),oe)return r(oe,Le,ue);var We=L(ue);if(We.error)return r(We.error,Le,ue);if(We.redirect)return;k(ue,Le,function(lt,nt,pt){if(lt)return r(lt,Le,ue);if(!pt&&O.indexOf(p.dataType)>=0){try{nt=decodeBodyByCharset(nt,ue)}catch(Rt){return b("decodeBodyByCharset error: %s",Rt),r(null,nt,ue)}if(p.dataType==="json")if(ee===0)nt=null;else{var Tt=parseJSON(nt,$);Tt.error?lt=Tt.error:nt=Tt.data}}X&&b("Request#%d %s: Remote socket was terminated before `response.end()` was called",R,w),r(lt,nt,ue)})})}var pe,ge;Array.isArray(p.timeout)?(pe=m(p.timeout[0]),ge=m(p.timeout[1])):pe=ge=m(p.timeout),b("ConnectTimeout: %d, ResponseTimeout: %d",pe,ge);function me(){b("Connect timer ticking, timeout: %d",pe),K=setTimeout(function(){K=null,ce===-1&&(ce=-2);var ue="Connect timeout for "+pe+"ms",xe="ConnectionTimeoutError";be.socket||(xe="SocketAssignTimeoutError",ue+=", working sockets is full"),oe=new Error(ue),oe.name=xe,oe.requestId=R,b("ConnectTimeout: Request#%d %s %s: %s, connected: %s",R,w,oe.name,ue,q),Oe()},pe)}function ve(){b("Response timer ticking, timeout: %d",ge),Se=setTimeout(function(){Se=null;var ue="Response timeout for "+ge+"ms",xe="ResponseTimeoutError";oe=new Error(ue),oe.name=xe,oe.requestId=R,b("ResponseTimeout: Request#%d %s %s: %s, connected: %s",R,w,oe.name,ue,q),Oe()},ge)}var be;P.mode=p.mode?p.mode:"";try{be=V.request(P,se)}catch(ue){return r(ue)}typeof window=="undefined"?me():be.on("requestTimeout",function(){ce===-1&&(ce=-2);var ue="Connect timeout for "+pe+"ms",xe="ConnectionTimeoutError";oe=new Error(ue),oe.name=xe,oe.requestId=R,Oe()});function Oe(){b("Request#%d %s abort, connected: %s",R,w,q),be.socket||(oe.noSocket=!0,r(oe)),be.abort()}return N&&be.on("finish",function(){N.requestSent=Date.now()-H}),be.once("socket",function(ue){N&&(N.queuing=Date.now()-H),isNode010&&ue.socket&&(ue=ue.socket);var xe=ue.readyState;if(xe==="opening"){ue.once("lookup",function(Ie,Le,We){b("Request#%d %s lookup: %s, %s, %s",R,w,Ie,Le,We),N&&(N.dnslookup=Date.now()-H),Le&&(B=Le)}),ue.once("connect",function(){N&&(N.connected=Date.now()-H),v(),ve(),b("Request#%d %s new socket connected",R,w),q=!0,B||(B=ue.remoteAddress),Y=ue.remotePort});return}b("Request#%d %s reuse socket connected, readyState: %s",R,w,xe),q=!0,Q=!0,B||(B=ue.remoteAddress),Y=ue.remotePort,v(),ve()}),be.on("error",function(ue){(ue.name==="Error"||ue.name==="TypeError")&&(ue.name=q?"ResponseError":"RequestError"),ue.message+=' (req "error")',b("Request#%d %s `req error` event emit, %s: %s",R,w,ue.name,ue.message),r(oe||ue)}),z&&z.once("error",function(ue){ue.message+=' (writeStream "error")',oe=ue,b("Request#%d %s `writeStream error` event emit, %s: %s",R,w,ue.name,ue.message),Oe()}),p.stream?(p.stream.pipe(be),p.stream.once("error",function(ue){ue.message+=' (stream "error")',oe=ue,b("Request#%d %s `readStream error` event emit, %s: %s",R,w,ue.name,ue.message),Oe()})):be.end(Z),be.requestId=R,be}}).call(this,e("_process"),e("buffer").Buffer)},{_process:208,"any-promise":49,"babel-runtime/core-js/json/stringify":53,"babel-runtime/helpers/typeof":67,buffer:73,constants:75,debug:288,http:231,https:193,"humanize-ms":194,url:238,util:243}]},{},[1])(1)})}).call(this,__webpack_require__("yLpj"))},o5mm:function(e,_,c){e.exports={flex_box_center:"flex_box_center___yMfGk",flex_space_between:"flex_space_between___3T4Rr",flex_box_vertical_center:"flex_box_vertical_center___2K9ch",flex_box_center_end:"flex_box_center_end___1GgKp",flex_box_column:"flex_box_column___2DSuN",shixunWrp:"shixunWrp___2_2ep"}},xKgJ:function(e,_,c){"use strict";c.d(_,"o",function(){return d}),c.d(_,"b",function(){return n}),c.d(_,"c",function(){return l}),c.d(_,"e",function(){return s}),c.d(_,"f",function(){return i}),c.d(_,"r",function(){return o}),c.d(_,"g",function(){return b}),c.d(_,"s",function(){return m}),c.d(_,"d",function(){return g}),c.d(_,"i",function(){return A}),c.d(_,"j",function(){return T}),c.d(_,"q",function(){return x}),c.d(_,"h",function(){return E}),c.d(_,"p",function(){return j}),c.d(_,"a",function(){return C}),c.d(_,"l",function(){return q}),c.d(_,"m",function(){return Q}),c.d(_,"k",function(){return ee}),c.d(_,"n",function(){return X}),c.d(_,"t",function(){return B});var u=c("9kvl"),t;(function(Y){Y[Y.SuperAdmin=1]="SuperAdmin",Y[Y.Operation=2]="Operation",Y[Y.CertifiedTeacher=5]="CertifiedTeacher",Y[Y.TrainingProduction=8]="TrainingProduction",Y[Y.UncertifiedTeacher=12]="UncertifiedTeacher",Y[Y.Student=15]="Student"})(t||(t={}));var y;(function(Y){Y[Y.SuperAdmin=1]="SuperAdmin",Y[Y.Operation=2]="Operation",Y[Y.Admin=5]="Admin",Y[Y.Teacher=8]="Teacher",Y[Y.Assistant=12]="Assistant",Y[Y.Student=15]="Student"})(y||(y={}));var f=function(N){var v=Object(u.b)()._store.getState(),a=v.user,r=a.userInfo;return N.some(function(L){return L==(r==null?void 0:r.role)})},h=function(N){var v=Object(u.b)()._store.getState(),a=v.user,r=a.userInfo;return(r==null?void 0:r.own)?!0:N.some(function(L){var k;return L==(r==null||((k=r.course)===null||k===void 0)?void 0:k.course_role)})},d=function(){var N=Object(u.b)()._store.getState(),v=N.user,a=v.userInfo;return a.main_site},n=function(){var N,v=Object(u.b)()._store.getState(),a=v.user,r=a.userInfo;return r==null||((N=r.course)===null||N===void 0)?void 0:N.course_is_end},l=function(){return h([y.SuperAdmin,y.Operation,y.Admin,y.Teacher,y.Assistant])},s=function(){return h([y.SuperAdmin,y.Teacher,y.Admin,y.Assistant,y.Operation])},i=function(){return h([y.SuperAdmin,y.Teacher,y.Admin])},o=function(){return h([y.SuperAdmin])},b=function(){return h([y.SuperAdmin,y.Operation,y.Admin])},m=function(){return h([y.SuperAdmin,y.Operation])},g=function(){return h([y.SuperAdmin,y.Admin])},A=function(){return h([y.SuperAdmin,y.Operation,y.Admin,y.Teacher])},T=function(){return h([y.Assistant])},x=function(){return h([y.Student])},E=function(){return h([y.SuperAdmin,y.Operation,y.Admin,y.Teacher,y.Assistant,y.Student])},j=function(){var N,v=Object(u.b)()._store.getState(),a=v.user,r=a.userInfo;return(r==null||((N=r.course)===null||N===void 0)?void 0:N.course_role)===null},O=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return f([t.SuperAdmin,t.Operation,t.CertifiedTeacher,t.TrainingProduction,t.UncertifiedTeacher,t.Student])},S=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return v||!v&&f([t.SuperAdmin])},w=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return v||!v&&f([t.SuperAdmin,t.Operation])},p=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return N?f([t.SuperAdmin,t.Operation,t.CertifiedTeacher,t.TrainingProduction,t.UncertifiedTeacher,t.Student]):v||!v&&f([t.SuperAdmin,t.Operation])},M=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return N?f([t.SuperAdmin,t.Operation,t.CertifiedTeacher,t.TrainingProduction,t.UncertifiedTeacher,t.Student]):v||!v&&f([t.SuperAdmin,t.Operation])},C=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return f([t.SuperAdmin,t.Operation,t.CertifiedTeacher,t.TrainingProduction])},R=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return N?f([t.SuperAdmin]):v||!v&&f([t.SuperAdmin])},I=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return N?f([t.SuperAdmin,t.Operation]):v||!v&&f([t.SuperAdmin,t.Operation])},H=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return N?f([t.SuperAdmin,t.Operation,t.CertifiedTeacher,t.TrainingProduction,t.UncertifiedTeacher,t.Student]):v||!v&&f([t.SuperAdmin,t.Operation])},W=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return N?f([t.SuperAdmin,t.Operation,t.CertifiedTeacher,t.TrainingProduction,t.UncertifiedTeacher]):v||!v&&f([t.SuperAdmin,t.Operation])},D=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return N?f([t.SuperAdmin,t.Operation,t.CertifiedTeacher]):v||!v&&f([t.SuperAdmin,t.Operation])},ae=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return N?f([t.SuperAdmin]):!1},V=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return f([t.SuperAdmin,t.Operation,t.CertifiedTeacher,t.TrainingProduction,t.UncertifiedTeacher,t.Student])},te=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return N?f([t.SuperAdmin]):v||!v&&f([t.SuperAdmin])},$=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return N?f([t.SuperAdmin,t.Operation]):v||!v&&f([t.SuperAdmin,t.Operation])},P=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return N?f([t.SuperAdmin,t.Operation,t.CertifiedTeacher,t.TrainingProduction,t.UncertifiedTeacher,t.Student]):v||!v&&f([t.SuperAdmin,t.Operation])},F=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return N?!1:v||!v&&f([t.SuperAdmin,t.Operation])},G=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return N?v||!v&&f([t.SuperAdmin,t.Operation]):!1},J=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return N?f([t.SuperAdmin,t.Operation,t.CertifiedTeacher,t.TrainingProduction,t.UncertifiedTeacher]):!1},U=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return N?!v&&f([t.SuperAdmin,t.Operation,t.CertifiedTeacher,t.TrainingProduction,t.UncertifiedTeacher]):!1},Z=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return N?f([t.SuperAdmin,t.Operation,t.CertifiedTeacher]):v||!v&&f([t.SuperAdmin,t.Operation])},ie=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return f([t.SuperAdmin,t.Operation,t.CertifiedTeacher,t.TrainingProduction,t.UncertifiedTeacher])},re=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return N?f([t.SuperAdmin]):v||!v&&f([t.SuperAdmin])},le=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return N?f([t.SuperAdmin,t.Operation]):v||!v&&f([t.SuperAdmin,t.Operation])},de=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return N?f([t.SuperAdmin,t.Operation,t.CertifiedTeacher,t.TrainingProduction,t.UncertifiedTeacher]):v||!v&&f([t.SuperAdmin,t.Operation])},K=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return N?v||!v&&f([t.SuperAdmin,t.Operation]):!1},Se=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return N?f([t.SuperAdmin,t.Operation,t.CertifiedTeacher,t.TrainingProduction,t.UncertifiedTeacher]):v||!v&&f([t.SuperAdmin,t.Operation])},oe=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return h([y.Teacher])},q=function(){return f([t.SuperAdmin])},Q=function(){return f([t.SuperAdmin,t.Operation])},ee=function(){return f([t.Student])},ce=function(){return f([t.SuperAdmin,t.Operation,t.CertifiedTeacher])},X=function(){var N,v=Object(u.b)()._store.getState(),a=v.user;return!!((N=a.userInfo)===null||N===void 0?void 0:N.login)},B=function(){var N=Object(u.b)()._store.getState(),v=N.user;return v.userInfo}}}]);
|