47 lines
461 KiB
JavaScript
47 lines
461 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[192,10,14],{"96GE":function(Ge,ze,se){"use strict";se.r(ze),se.d(ze,"formatQuery",function(){return le});var Ae=se("Mumi"),He=se("/zo+"),pe=se("55MS"),n=se("buSX"),A=se("ZZRV"),v=se.n(A),h=se("9kvl"),y=se("JqQi"),i=se.n(y),s=se("CeOx"),d=se("NiCL"),u=se("MPZO"),e=se("bnk9"),o=se("xNk9"),r=se("eq6X"),l=se("VBJJ"),p=se.n(l),c=se("z3+T"),x=se("GZha"),E=se("nUhQ"),f=se.n(E),T=se("rjoL"),S=se("TMtJ"),m=se("9cas"),b=se("twZV"),k=se("X/R0"),C=se("M6G9"),_=se("DHCt"),j=se("CRgH"),D=se("q5+0"),M=se("sWEp"),L=se.n(M),z=se("qdXH"),W=j.a.Search,G=function(he){var oe,ye=he.videoDetail,xe=he.globalSetting,Ee=he.loading,we=he.dispatch,Oe=Object(n.a)(he,["videoDetail","globalSetting","loading","dispatch"]),Te=Object(D.m)(),ke=Object(D.l)(),Ie=Object(A.useState)([]),Le=Object(x.a)(Ie,2),Xe=Le[0],$e=Le[1],nt=Object(A.useState)(""),rt=Object(x.a)(nt,2),Qe=rt[0],Ne=rt[1],be=Object(A.useState)(),Fe=Object(x.a)(be,2),Re=Fe[0],_e=Fe[1],Ke=Object(A.useState)(!1),Ce=Object(x.a)(Ke,2),Ze=Ce[0],qe=Ce[1],Ve=Object(A.useState)(!1),et=Object(x.a)(Ve,2),Je=et[0],tt=et[1];Object(A.useEffect)(function(){ye.actionTabs.key==="Banner-SendToClass"&&Pe()},[ye.actionTabs.key]);var Pe=function(){var je=Object(c.a)(p.a.mark(function Be(){var Se,De;return p.a.wrap(function(it){for(;;)switch(it.prev=it.next){case 0:return it.next=2,Object(z.h)({});case 2:if(De=it.sent,!(De==null||((Se=De.courses)===null||Se===void 0)?void 0:Se.length)){it.next=8;break}$e((De==null?void 0:De.courses)||[]),tt(!0),it.next=11;break;case 8:return We(),C.b.info("\u60A8\u5F53\u524D\u6CA1\u6709\u7BA1\u7406\u4EFB\u4F55\u8BFE\u5802\uFF0C\u4E0D\u53EF\u53D1\u9001"),it.abrupt("return");case 11:case"end":return it.stop()}},Be)}));return function(){return je.apply(this,arguments)}}(),Me=function(Be){$e(Xe==null?void 0:Xe.map(function(Se){return Object(pe.a)(Object(pe.a)({},Se),{},{hide:!Se.course_name.includes(Be)})}))},Ue=function(){var je=Object(c.a)(p.a.mark(function Be(){var Se;return p.a.wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:if(Re){Ye.next=3;break}return qe(!0),Ye.abrupt("return");case 3:return Ye.next=5,Object(z.n)({id:Te.videoId,course_id:Re});case 5:Se=Ye.sent,(Se==null?void 0:Se.status)===0&&(C.b.success(Se.message),We(),h.c===null||h.c===void 0||h.c.replace("/classrooms/".concat(Re,"/shixun_homework")));case 7:case"end":return Ye.stop()}},Be)}));return function(){return je.apply(this,arguments)}}(),We=function(){Ne(""),_e(null),qe(!1),we({type:"videoDetail/setActionTabs",payload:{}}),tt(!1)};return v.a.createElement(S.a,{centered:!0,keyboard:!1,closable:!1,title:"\u53D1\u9001\u81F3\u8BFE\u5802",visible:Je,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:Ue,onCancel:We},v.a.createElement("div",{className:L.a.wrap},v.a.createElement("div",{className:"mb10"},v.a.createElement(W,{placeholder:"\u8F93\u5165\u8BFE\u5802\u540D\u79F0\u7684\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22",value:Qe,onChange:function(Be){return Ne(Be.target.value)},onSearch:function(Be){Ne(Be),Me(Be)}})),v.a.createElement("div",{className:L.a.radioWrap},v.a.createElement(b.a.Group,{value:Re,onChange:function(Be){_e(Be.target.value),qe(!1)}},Xe==null||((oe=Xe.filter(function(je){return!(je==null?void 0:je.hide)}))===null||oe===void 0)?void 0:oe.map(function(je,Be){return v.a.createElement(b.a,{className:L.a.radio,value:je.course_id,key:Be},je.course_name)}))),Ze&&v.a.createElement("div",{className:L.a.colorFF0000},"\u8BF7\u9009\u62E9\u4F60\u8981\u53D1\u9001\u7684\u8BFE\u5802"),v.a.createElement("div",{className:L.a.title},"\u6E29\u99A8\u63D0\u793A\uFF1A\u5F53\u524D\u89C6\u9891\u9879\u76EE\u5C06\u4F1A\u53D1\u9001\u5230\u6307\u5B9A\u8BFE\u5802")))},Z=Object(h.a)(function(ve){var he=ve.videoDetail,oe=ve.loading,ye=ve.globalSetting;return{videoDetail:he,globalSetting:ye,loading:oe.models.index}})(G),U=se("sBCT"),ee=se("1vsH"),$=se("NLgs"),q=se("9QSx"),R=se("GdiS"),I=se("I9We"),F=se("nM8u"),N=se("V0hb"),H=se("eoI0"),Y=se.n(H),ae=se("HBuW"),te=function(he){var oe,ye,xe=he.videoDetail,Ee=he.dispatch,we=Ee===void 0?function(){}:Ee,Oe=he.visible,Te=he.onClose,ke=Te===void 0?function(){}:Te,Ie=xe.queryParams,Le=xe.queryParams,Xe=Le.subject_id,$e=Le.videoId,nt={videoId:$e},rt={query:Ie},Qe=Object(A.useState)(0),Ne=Object(x.a)(Qe,2),be=Ne[0],Fe=Ne[1],Re=Object(A.useState)(""),_e=Object(x.a)(Re,2),Ke=_e[0],Ce=_e[1],Ze=Object(A.useState)([]),qe=Object(x.a)(Ze,2),Ve=qe[0],et=qe[1],Je=Object(A.useState)([]),tt=Object(x.a)(Je,2),Pe=tt[0],Me=tt[1];Object(A.useEffect)(function(){var Se,De,Ye=((Se=xe.detail)===null||Se===void 0||((De=Se.video_item)===null||De===void 0)?void 0:De.schools)||[];Fe((Ye==null?void 0:Ye.length)?1:0),Me(Ye)},[(oe=xe.detail)===null||oe===void 0||((ye=oe.video_item)===null||ye===void 0)?void 0:ye.schools]);var Ue=function(){var Se=Object(c.a)(p.a.mark(function De(Ye){var it;return p.a.wrap(function(at){for(;;)switch(at.prev=at.next){case 0:return at.next=2,Object(ae.G)({q:Ye});case 2:it=at.sent,it&&et(it.shools_name||[]);case 4:case"end":return at.stop()}},De)}));return function(Ye){return Se.apply(this,arguments)}}(),We=function(De){if(Pe.includes(De)){C.b.info("\u8BF7\u52FF\u6307\u5B9A\u76F8\u540C\u7684\u5355\u4F4D");return}Ce(""),Me([].concat(Object(N.a)(Pe),[De]))},je=function(){var Se=Object(c.a)(p.a.mark(function De(){var Ye;return p.a.wrap(function(ot){for(;;)switch(ot.prev=ot.next){case 0:if(!(be===1&&!(Pe==null?void 0:Pe.length))){ot.next=2;break}return ot.abrupt("return",C.b.info("\u8BF7\u9009\u62E9\u6307\u5B9A\u5355\u4F4D\u516C\u5F00"));case 2:return ot.next=4,Object(z.a)(Object(pe.a)(Object(pe.a)({},le(rt.query)),{},{id:nt.videoId,schools:be===0?[]:Pe}));case 4:Ye=ot.sent,(Ye==null?void 0:Ye.status)===0&&(C.b.success("\u8BBE\u7F6E\u6210\u529F"),Be());case 6:case"end":return ot.stop()}},De)}));return function(){return Se.apply(this,arguments)}}(),Be=function(){ke(),we({type:"videoDetail/getVideoDetail",payload:Object(pe.a)(Object(pe.a)({},le(rt.query)),{},{id:nt.videoId})})};return v.a.createElement(S.a,{centered:!0,maskClosable:!1,title:"\u6743\u9650\u8BBE\u7F6E",width:530,className:Y.a.modal,visible:Oe,onOk:je,onCancel:Be},v.a.createElement(v.a.Fragment,null,v.a.createElement(b.a.Group,{value:be,onChange:function(De){return Fe(De.target.value)}},v.a.createElement(b.a,{value:0},"\u5BF9\u6240\u6709\u5355\u4F4D\u516C\u5F00",v.a.createElement("span",null,"\uFF08\u9009\u4E2D\u540E\uFF0C\u5BF9\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),v.a.createElement(b.a,{value:1},"\u5BF9\u6307\u5B9A\u5355\u4F4D\u516C\u5F00",v.a.createElement("span",null,"\uFF08\u9009\u4E2D\u540E\uFF0C\u4EC5\u5BF9\u4E0B\u65B9\u6307\u5B9A\u5355\u4F4D\u7528\u6237\u53EF\u89C1\uFF09"))),be===1&&v.a.createElement(v.a.Fragment,null,v.a.createElement("div",{className:"mt10"},v.a.createElement(F.a,{showSearch:!0,className:Y.a.selectSchool,placeholder:"\u8BF7\u8F93\u5165\u5E76\u9009\u62E9\u5355\u4F4D\u540D\u79F0",value:Ke,onChange:function(De){Ce(De),Ue(De)},onSelect:We,options:Ve==null?void 0:Ve.map(function(Se){return{value:Se}})})),v.a.createElement("div",{className:"mt10"},Pe==null?void 0:Pe.map(function(Se,De){return v.a.createElement(R.a,{count:v.a.createElement("span",{className:Y.a.delete,onClick:function(){return Me(Pe.filter(function(it){return it!==Se}))}},"x"),className:"mt10 mr20 current",key:De},v.a.createElement(e.a,{type:"primary",ghost:!0},Se))})))))},ue=te,de=function(he){var oe=he.user,ye=he.videoDetail,xe=he.globalSetting,Ee=he.loading,we=he.dispatch,Oe=Object(n.a)(he,["user","videoDetail","globalSetting","loading","dispatch"]),Te=ye.queryParams,ke=ye.queryParams,Ie=ke.subject_id,Le=ke.videoId,Xe={videoId:Le},$e={query:Te},nt=Object(A.useState)(),rt=Object(x.a)(nt,2),Qe=rt[0],Ne=rt[1],be=Object(A.useState)(),Fe=Object(x.a)(be,2),Re=Fe[0],_e=Fe[1],Ke=Object(A.useState)(!1),Ce=Object(x.a)(Ke,2),Ze=Ce[0],qe=Ce[1],Ve=function(){we({type:"videoDetail/setActionTabs",payload:{key:"Banner-SendToClass"}})},et=function(){var Me=Object(c.a)(p.a.mark(function Ue(){var We,je,Be;return p.a.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:if(!(((We=oe.userInfo)===null||We===void 0?void 0:We.admin)||((je=oe.userInfo)===null||je===void 0?void 0:je.is_teacher)&&Object($.b)())){De.next=6;break}return De.next=3,Object(z.g)(Object(pe.a)({id:Xe.videoId},le($e.query)));case 3:Be=De.sent,_e(Be==null?void 0:Be.video_item),Ne(!0);case 6:case"end":return De.stop()}},Ue)}));return function(){return Me.apply(this,arguments)}}(),Je=function(){var Me=Object(c.a)(p.a.mark(function Ue(We){var je;return p.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.next=2,Object(z.m)(Object(pe.a)(Object(pe.a)({},We),{},{id:Xe.videoId},le($e.query)));case 2:return je=Se.sent,(je==null?void 0:je.status)===0&&(Ne(!1),we({type:"videoDetail/getVideoDetail",payload:Object(pe.a)({id:Xe.videoId},le($e.query))})),Se.abrupt("return",je);case 5:case"end":return Se.stop()}},Ue)}));return function(We){return Me.apply(this,arguments)}}(),tt=ye.detail||{},Pe=tt.video_item;return v.a.createElement("aside",{className:f.a.banner},v.a.createElement("aside",{className:f.a.wrap},v.a.createElement("p",{className:f.a.title},Pe==null?void 0:Pe.name),v.a.createElement("div",{className:f.a.contentWrap},v.a.createElement("span",{className:"font14 c-white"},v.a.createElement("span",{className:"mr10"},"\u5B66\u4E60\u4EBA\u6570\uFF1A"),v.a.createElement("span",null,(Pe==null?void 0:Pe.study_video_items_count)||0),v.a.createElement("span",{className:"ml100 mr10"},"\u5B66\u5458\u8BC4\u5206\uFF1A"),v.a.createElement(r.a,{allowHalf:!0,value:Object(ee.p)(Pe==null?void 0:Pe.star),disabled:!0,className:f.a.rating})),v.a.createElement("div",null,(Pe==null?void 0:Pe.can_edit)&&v.a.createElement(e.a,{className:"".concat(f.a.button," ").concat(f.a.buttonTransparent," mr15"),onClick:function(){return qe(!0)}},"\u6743\u9650\u8BBE\u7F6E"),(Pe==null?void 0:Pe.can_edit)&&v.a.createElement(e.a,{className:"".concat(f.a.button," ").concat(f.a.buttonTransparent," mr15"),onClick:et},"\u7F16\u8F91"),v.a.createElement(d.a,{title:"\u53EF\u5C06\u672C\u89C6\u9891\u53D1\u9001\u81F3\u6211\u7684\u8BFE\u5802\u4E2D\u7684\u89C6\u9891\u680F\u76EE",placement:"bottom"},v.a.createElement(e.a,{className:"".concat(f.a.button," ").concat(f.a.buttonTransparent," mr15"),onClick:Ve},"\u53D1\u9001\u81F3"))))),v.a.createElement(Z,null),v.a.createElement(U.a,{editData:Re,visible:Qe,onCancel:function(){return Ne(!1)},onOk:Je}),v.a.createElement(ue,{dispatch:we,videoDetail:ye,visible:Ze,onClose:function(){return qe(!1)}}))},Q=Object(h.a)(function(ve){var he=ve.user,oe=ve.videoDetail,ye=ve.loading,xe=ve.globalSetting;return{user:he,videoDetail:oe,globalSetting:xe,loading:ye}})(de),J=se("GrpF"),ie=se("Xc/e"),X=se("LalF"),B=se("hgre"),re=se("9Bee"),ne=se("vZDz"),ce=se.n(ne),O=se("9VGf"),t=function(he){var oe=he.videoDetail,ye=he.globalSetting,xe=he.loading,Ee=he.dispatch,we=Object(n.a)(he,["videoDetail","globalSetting","loading","dispatch"]),Oe=oe.queryParams,Te=oe.selectParams,ke=oe.videoList,Ie=Oe.subject_id,Le=Oe.videoId,Xe=Te.checkBoxValue,$e=Te.radioValue,nt={videoId:Le},rt={query:Oe},Qe=Object(A.useRef)(),Ne=Object(A.useRef)(),be=Object(A.useRef)(),Fe=Object(A.useRef)(5),Re=oe.detail||{},_e=Re.video_item;Object(O.a)(Object(c.a)(p.a.mark(function Pe(){return p.a.wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:if(!Ne.current){Ue.next=5;break}return console.log("videoRef lastUpdatedTime: ",Qe.current.getLastUpdatedTime()),console.log(Qe.current),Ue.next=5,Ke();case 5:case"end":return Ue.stop()}},Pe)})),Fe.current*1e3);var Ke=function(){var Me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Ue=Me?{is_f:1}:{};return Object(z.o)(Object(pe.a)(Object(pe.a)({},Ue),{id:nt.videoId,point:Qe.current.getLastUpdatedTime(),total:Qe.current.getDuration()}))},Ce=function(Me){return console.log("handlLogWatchHistory: ",Me),Me.ed==="1"&&(Ne.current=!1,Ke(!0)),!Ne.current&&!Me.ed&&(Ne.current=!0,Fe.current=Qe.current.getDuration()<=5?1:5,Ke()),Ee({type:"userDetail/logWatchHistory",payload:Me})},Ze=function(){Ne.current=!1},qe=function(){Ne.current=!0},Ve=function(){be.current=5,S.a.confirm({width:600,centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u8BF7\u7ED9\u672C\u89C6\u9891\u8BC4\u5206",content:v.a.createElement("div",{className:"tc font14"},v.a.createElement(r.a,{defaultValue:be.current,onChange:function(Ue){return be.current=Ue},className:ce.a.modalRating})),onOk:function(){var Me=Object(c.a)(p.a.mark(function We(){var je;return p.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.next=2,Object(z.l)({id:nt.videoId,star:be.current});case 2:je=Se.sent,je.status===0&&Ee({type:"videoDetail/getVideoDetail",payload:Object(pe.a)({id:nt.videoId},le(rt.query))});case 4:case"end":return Se.stop()}},We)}));function Ue(){return Me.apply(this,arguments)}return Ue}()})},et=function(Me){var Ue=window.filterVideoSign,We=Ue.findIndex(function(Ye){return Ye.id===Le}),je=We===Ue.length-1;if(je)return;var Be=Ue[We+1].id,Se=Ue[We+1].can_view,De=Ue[We+1].link;if(window.checkBoxValue){if(De){window.open(De);return}if(!Se){S.a.info({centered:!0,width:400,okText:"\u77E5\u9053\u5566",icon:null,content:v.a.createElement("div",{className:"tc font14"},"\u4E0B\u4E00\u6761\u89C6\u9891\u4E3A\u521B\u5EFA\u8005\u6240\u5C5E\u5355\u4F4D\u5185\u90E8\u6559\u5B66\u8D44\u6599\uFF0C\u5916\u5355\u4F4D\u7528\u6237\u65E0\u89C2\u770B\u6743\u9650")});return}Ee({type:"videoDetail/handleList",payload:{videoId:Be}}),window.videoTimer=setTimeout(function(){Me.current.play()},2e3)}},Je=function(Me,Ue){if(Me==="checkBox"){var We=Ue.target.checked;window.checkBoxValue=We,Ee({type:"videoDetail/setSelectValue",payload:{radioValue:$e,checkBoxValue:We}});return}Ee({type:"videoDetail/setSelectValue",payload:{checkBoxValue:Xe,radioValue:Ue.target.value}})},tt=function(){var Me=ke.findIndex(function(We){return We.id===Le}),Ue=Me===ke.length-1;return Ue?v.a.createElement("div",null,"\u5F53\u524D\u5DF2\u662F\u6700\u540E\u4E00\u4E2A\u89C6\u9891"):v.a.createElement(ie.a,{onChange:function(je){Je("checkBox",je)},checked:Xe},"\u81EA\u52A8\u64AD\u653E\u4E0B\u4E00\u4E2A\u89C6\u9891")};return v.a.createElement("aside",{className:ce.a.contentWrap},v.a.createElement("aside",{className:ce.a.wrap},v.a.createElement("header",null,v.a.createElement("span",{className:ce.a.introName},"\u7B80\u4ECB"),Object(ee.y)(_e==null?void 0:_e.my_star)?v.a.createElement(e.a,{type:"primary",ghost:!0,onClick:Ve},"\u8BC4\u5206"):v.a.createElement("span",null,v.a.createElement("span",{className:"ml100 mr10 font14"},"\u6211\u7684\u8BC4\u5206\uFF1A"),v.a.createElement(r.a,{value:_e==null?void 0:_e.my_star,disabled:!0,className:ce.a.rating}))),v.a.createElement("div",{className:"mt20"},v.a.createElement(re.a,{value:(_e==null?void 0:_e.description)||""})),v.a.createElement(B.a,{ref:Qe,startTime:_e==null?void 0:_e.last_point,src:(_e==null?void 0:_e.is_link)?_e==null?void 0:_e.link:(_e==null?void 0:_e.play_url)&&X.Base64.decode(_e==null?void 0:_e.play_url),videoId:_e==null?void 0:_e.video_id,logWatchHistory:Ce,handlePause:Ze,handlePlay:qe,videoSpeed:$e,handlePlayEnded:et}),v.a.createElement("div",{className:ce.a.footer},v.a.createElement("div",{className:ce.a.checkBox},tt()),v.a.createElement("div",{className:ce.a.radioGroup},v.a.createElement(b.a.Group,{onChange:function(Me){Je("radio",Me)},value:$e},v.a.createElement(b.a,{value:1},"1.0X"),v.a.createElement(b.a,{value:1.5},"1.5X"),v.a.createElement(b.a,{value:2},"2.0X"))))))},a=Object(h.a)(function(ve){var he=ve.videoDetail,oe=ve.loading,ye=ve.globalSetting;return{videoDetail:he,globalSetting:ye,loading:oe}})(t),P=se("MRWH"),g=se.n(P),w=se("m3rI"),V=[{name:"\u5B9E\u8BAD\u9879\u76EE",type:"Shixun",icon:v.a.createElement("i",{className:"iconfont icon-shixun2 font20"})},{name:"\u89C6\u9891\u9879\u76EE",type:"VideoItem",icon:v.a.createElement("i",{className:"iconfont icon-shipin font20"})},{name:"\u6559\u5B66\u8BFE\u4EF6",type:"Attachment",icon:v.a.createElement("i",{className:"iconfont icon-jiaoxueanli font20"})}],K=function(he){var oe=he.dispatch,ye=he.videoDetail,xe=he.user,Ee=Object(n.a)(he,["dispatch","videoDetail","user"]),we=ye.queryParams,Oe=ye.stages,Te=ye.videoList,ke=ye.cust_seq,Ie=we.subject_id,Le=we.videoId;Object(A.useEffect)(function(){oe({type:"videoDetail/getStageData",payload:{subject_id:Ie}})},[]);var Xe=function(){var Ne=Object(c.a)(p.a.mark(function be(Fe,Re){var _e;return p.a.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:if(oe({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF0C\u8BF7\u7A0D\u540E..."}}),!Re){Ce.next=7;break}return Ce.next=4,Object(ae.v)({id:Fe});case 4:Ce.t0=Ce.sent,Ce.next=10;break;case 7:return Ce.next=9,Object(ae.w)({id:Fe});case 9:Ce.t0=Ce.sent;case 10:if(_e=Ce.t0,oe({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),!((_e==null?void 0:_e.game_identifier)||(_e==null?void 0:_e.identifier))){Ce.next=15;break}return Object(ee.z)(Re?"/tasks/".concat(_e==null?void 0:_e.identifier,"/jupyter"):"/tasks/".concat(_e.game_identifier)),Ce.abrupt("return");case 15:case"end":return Ce.stop()}},be)}));return function(Fe,Re){return Ne.apply(this,arguments)}}(),$e=function(be){clearTimeout(window.videoTimer);var Fe=be.id,Re=be.item_type,_e=be.identifier,Ke=be.is_jupyter,Ce=be.url,Ze=be.link;if(console.log(Te),Re==="VideoItem"&&!Ze){var qe,Ve;if(!((qe=xe.userInfo)===null||qe===void 0?void 0:qe.admin)&&!((Ve=xe.userInfo)===null||Ve===void 0?void 0:Ve.business)&&!be.can_view){S.a.info({centered:!0,width:400,okText:"\u77E5\u9053\u5566",icon:null,content:v.a.createElement("div",{className:"tc font14"},"\u5F53\u524D\u89C6\u9891\u4E3A\u521B\u5EFA\u8005\u6240\u5C5E\u5355\u4F4D\u5185\u90E8\u6559\u5B66\u8D44\u6599\uFF0C\u5916\u5355\u4F4D\u7528\u6237\u65E0\u89C2\u770B\u6743\u9650")});return}oe({type:"videoDetail/handleList",payload:{videoId:Fe}});return}if(Re==="VideoItem"&&!!Ze){be.link&&Object(z.o)({is_f:1,id:be.id,point:0,total:0}),window.open(Ze);return}if(Re==="Shixun"){Xe(_e,Ke);return}window.open(w.a.IMG_SERVER+Ce)},nt=function(be){var Fe=["\u96F6","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D"],Re=["","\u5341","\u767E","\u5343","\u4E07"];be=parseInt(be);var _e=function(qe){for(var Ve=qe.toString().split("").reverse(),et="",Je=0;Je<Ve.length;Je++)et=(Je==0&&Ve[Je]==0||Je>0&&Ve[Je]==0&&Ve[Je-1]==0?"":Fe[Ve[Je]]+(Ve[Je]==0?Re[0]:Re[Je]))+et;return et},Ke=Math.floor(be/1e4),Ce=be%1e4;return Ce.toString().length<4&&(Ce="0"+Ce),Ke?_e(Ke)+"\u4E07"+_e(Ce):_e(be)},rt=function(be,Fe,Re,_e){var Ke=be.name,Ce=be.item_type,Ze=be.id;if(Ce==="StageCatalog")return;var qe="".concat(Fe+1,"-").concat(Re+1,"-").concat(_e+1),Ve=V.find(function(tt){return tt.type===Ce}).icon,et=Ce==="VideoItem"?g.a.brght:g.a.gray,Je=Le===Ze?"".concat(et," ").concat(g.a.active):et;return v.a.createElement("div",{key:qe,onClick:function(){return $e(be)},className:Je,style:{paddingLeft:52}},v.a.createElement("span",{className:g.a.s1},Ve),!!ke&&v.a.createElement("span",{className:g.a.s2},qe),v.a.createElement("span",{className:g.a.s3},"\u203B ",Ke))},Qe=function(be,Fe,Re){var _e=be.name,Ke=be.item_type,Ce=be.id,Ze=be.children;if(Ke==="StageCatalog")return;var qe="".concat(Fe+1,"-").concat(Re+1),Ve=V.find(function(tt){return tt.type===Ke}).icon,et=Ke==="VideoItem"?g.a.brght:g.a.gray,Je=Le===Ce?"".concat(et," ").concat(g.a.active):et;return v.a.createElement(A.Fragment,null,v.a.createElement("div",{key:qe,onClick:function(){return $e(be)},className:Je},v.a.createElement("span",{className:g.a.s1},Ve),!!ke&&v.a.createElement("span",{className:g.a.s2},qe),v.a.createElement("span",{className:g.a.s3},"\u203B ",_e)),!!Ze.length&&Ze.map(function(tt,Pe){return rt(tt,Fe,Re,Pe)}))};return v.a.createElement("aside",{className:g.a.list},Oe.map(function(Ne,be){var Fe=Ne.stage_name,Re=Ne.shixuns_list,_e=Re===void 0?[]:Re,Ke=Ne.items,Ce=Ke===void 0?[]:Ke,Ze=Object(N.a)(Ce);return v.a.createElement("aside",{key:be,className:g.a.box},v.a.createElement("div",{className:g.a.title},nt(be+1),"\u3001",Fe),Ze.map(function(qe,Ve){return Qe(qe,be,Ve)}),be!==Oe.length-1&&v.a.createElement("div",{className:g.a.line}))}))},fe=Object(h.a)(function(ve){var he=ve.user,oe=ve.videoDetail,ye=ve.loading,xe=ve.globalSetting;return{user:he,videoDetail:oe,globalSetting:xe,loading:ye}})(K),le=function(he){var oe=he.subject_id;return{subject_id:oe,course_id:oe}},me=function(he){var oe=he.videoDetail,ye=he.globalSetting,xe=he.loading,Ee=he.dispatch,we=Object(n.a)(he,["videoDetail","globalSetting","loading","dispatch"]),Oe=oe.queryParams,Te=Oe.subject_id,ke=Oe.videoId,Ie={videoId:ke},Le={query:Oe};return Object(A.useEffect)(function(){if(console.log("\u9A8C\u8BC1\u6D4B\u8BD5\u73AF\u5883"),!Ie.videoId)return;Ee({type:"videoDetail/getVideoDetail",payload:Object(pe.a)(Object(pe.a)({},le(Le.query)),{},{id:Ie.videoId})})},[Ie.videoId]),Object(A.useEffect)(function(){var Xe,$e;document.title=((Xe=oe.detail)===null||Xe===void 0||(($e=Xe.video_item)===null||$e===void 0)?void 0:$e.name)||"EduCoder"},[oe]),v.a.createElement(He.a,{spinning:!1},v.a.createElement("section",{className:i.a.bg},v.a.createElement(Q,null),v.a.createElement("div",{className:i.a.container},v.a.createElement(fe,null),v.a.createElement(a,null))))},ge=ze.default=Object(h.a)(function(ve){var he=ve.videoDetail,oe=ve.loading,ye=ve.globalSetting;return{videoDetail:he,globalSetting:ye,loading:oe}})(me)},"9Bee":function(Ge,ze,se){"use strict";var Ae=se("ZZRV"),He=se.n(Ae),pe=se("Sawj"),n=se("GZha"),A=se("tVQ9"),v=se.n(A),h=se("PRXW");function y(G,Z){var U=G.match(/^(\s+)(?:```)/);if(U===null)return Z;var ee=U[1];return Z.split(`
|
||
`).map(function($){var q=$.match(/^\s+/);if(q===null)return $;var R=Object(n.a)(q,1),I=R[0];return I.length>=ee.length?$.slice(ee.length):$}).join(`
|
||
`)}var i=[],s=["<ul>"],d=new v.a.Renderer,u=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function e(){i.length=0,s=["<ul>"]}function o(G,Z,U,ee){if(Z>=G.length||G[Z].level<=U)return Z;var $=G[Z];ee.push("<li><a href='#"+$.anchor+"'>"+$.text+"</a>"),Z++;var q=[];return Z=o(G,Z,$.level,q),q.length>0&&(ee.push("<ul>"),q.forEach(function(R){ee.push(R)}),ee.push("</ul>")),ee.push("</li>"),Z=o(G,Z,U,ee),Z}function r(){return o(i,0,0,s),s.push("</ul>"),s.join("")}var l={heading:function(Z){var U=u.exec(Z);if(U)return{type:"heading",raw:U[0],depth:U[1].length,text:U[2]}},fences:function(Z){var U=this.rules.block.fences.exec(Z);if(U){var ee=U[0],$=y(ee,U[3]||""),q=U[2]?U[2].trim():U[2];if(["latex","katex","math"].indexOf(q)>=0){var R=x(),I=$;$=R,E[R]={type:"block",expression:I}}return{type:"code",raw:ee,lang:q,text:$}}}},p=/(?:\${2})([^\n`]+?)(?:\${2})/gi,c=0,x=function(){return"__special_katext_id_".concat(c++,"__")},E={};function f(){return E}function T(){c=0,E={}}function S(G){return G=G.replace(p,function(Z,U){var ee=x();return E[ee]={type:"inline",expression:U},ee}),G}var m=d.listitem;d.listitem=function(G){return m(S(G))};var b=d.paragraph;d.paragraph=function(G){return b(S(G))};var k=d.tablecell;d.tablecell=function(G,Z){return k(S(G),Z)},d.code=function(G,Z,U){var ee=(Z||"").match(/\S*/)[0];return ee?["latex","katex","math"].indexOf(ee)>=0?"<p class='editormd-tex'>".concat(G,"</p>"):'<pre class="prettyprint linenums"><code class="language-'.concat(Z,'">').concat(U?G:Object(h.escape)(G,!0),`</code></pre>
|
||
`):'<pre class="prettyprint linenums"><code>'+(U?G:Object(h.escape)(G,!0))+"</code></pre>"},d.heading=function(G,Z,U){var ee=this.options.headerPrefix+U.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return i.push({anchor:ee,level:Z,text:G}),"<h"+Z+' id="'+ee+'">'+G+"</h"+Z+">"},v.a.setOptions({silent:!0,smartypants:!0,gfm:!0,pedantic:!1}),v.a.use({tokenizer:l,renderer:d});var C=v.a,_=se("8+LE"),j=se("ZRDM"),D=se.n(j),M=se("saPB"),L=/<pre[^>]*>/g;function z(G){var Z=document.createElement("div");return Z.innerHTML=G,Z.childNodes.length===0?"":Z.childNodes[0].nodeValue}var W=ze.a=function(G){var Z=G.value,U=Z===void 0?"":Z,ee=G.className,$=G.style,q=$===void 0?{}:$,R=String(U),I=Object(Ae.useMemo)(function(){var H=C(R),Y=f();return R.match(/\[TOC\]/)&&(H=H.replace("<p>[TOC]</p>",r()),e()),H=H.replace(/(__special_katext_id_\d+__)/g,function(ae,te){var ue=Y[te],de=ue.type,Q=ue.expression;return Object(M.renderToString)(z(Q)||"",{displayMode:de==="block",throwOnError:!1,output:"html"})}),H=H.replace(/▁/g,"\u2581\u2581\u2581"),T(),D.a.sanitize(H)},[R]),F=Object(Ae.useRef)();function N(H){var Y=H.target;if(Y.tagName.toUpperCase()==="A"){var ae=Y.getAttribute("href");if(ae.startsWith("#")){H.preventDefault();var te=document.getElementById(ae.replace("#",""));te&&te.scrollIntoView(!0)}}}return Object(Ae.useEffect)(function(){if(F.current&&I&&(I.match(L)&&window.PR.prettyPrint()),F.current)return F.current.addEventListener("click",N),function(){F.current.removeEventListener("click",N),T(),e()}},[I,F.current,N]),He.a.createElement("div",{ref:F,style:q,className:"".concat(ee||""," markdown-body"),dangerouslySetInnerHTML:{__html:I}})}},"9VGf":function(Ge,ze,se){"use strict";se.d(ze,"a",function(){return pe});var Ae=se("ZZRV"),He=se.n(Ae);function pe(n,A){var v=Object(Ae.useRef)();Object(Ae.useEffect)(function(){v.current=n}),Object(Ae.useEffect)(function(){function h(){v.current()}if(A!==null){var y=setInterval(h,A);return function(){return clearInterval(y)}}},[A])}},Aky1:function(Ge,ze,se){"use strict";se.d(ze,"a",function(){return y});var Ae=se("ErOA"),He=se("qGJc"),pe=se.n(He),n="",A;function v(i){h(i)}function h(i){debugger;A=new pe.a.Vod({timeout:6e4,partSize:1048576,parallel:5,retryCount:3,retryDuration:2,region:"ap-southeast-1",userId:1829848226361863,enableUploadProgress:!1,addFileSuccess:function(d){console.log("addFileSuccess: "+d.file.name),i.addFileSuccess&&i.addFileSuccess(d),A.startUpload()},onUploadstarted:function(d){var u=d.file.name;if(d.videoId){var r="/api/users/".concat(n,"/video_auths.json");Object(Ae.a)(r,{method:"put",body:{video_id:d.videoId,title:u,file_name:u}}).then(function(l){if(l.status==-1){i.onUploadError&&i.onUploadError(d);return}var p=l.data,c=p.UploadAuth,x=p.UploadAddress,E=p.VideoId;A.setUploadAuthAndAddress(d,c,x)}).catch(function(l){A.deleteFile(A._curIndex),A.nextUpload(),console.log(l)})}else{var e="/api/users/".concat(n,"/video_auths.json"),o="";Object(Ae.a)(e,{method:"Post",body:{title:o+u,file_name:o+u}}).then(function(l){if(l){var p=l.data,c=p.UploadAuth,x=p.UploadAddress,E=p.VideoId;A.setUploadAuthAndAddress(d,c,x,E)}}).catch(function(l){A.deleteFile(A._curIndex),A.nextUpload(),console.log(l)}),console.log("\u6587\u4EF6\u5F00\u59CB\u4E0A\u4F20...")}},onUploadSucceed:function(d){i.onUploadSucceed&&i.onUploadSucceed(d),console.log("\u6587\u4EF6\u4E0A\u4F20\u6210\u529F!")},onUploadFailed:function(d,u,e){i.onUploadFailed&&i.onUploadFailed(d),console.log("\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25!")},onUploadCanceled:function(d,u,e){console.log("\u6587\u4EF6\u4E0A\u4F20\u5DF2\u6682\u505C!")},onUploadProgress:function(d,u,e){i.onUploadProgress&&i.onUploadProgress(d,u,e);var o=Math.ceil(e*100);console.log("\u6587\u4EF6\u4E0A\u4F20\u4E2D...")},onUploadTokenExpired:function(d){console.log("\u6587\u4EF6\u4E0A\u4F20\u8D85\u65F6!");var u="/api/users/".concat(n,"/video_auths.json");Object(Ae.a)(u,{method:"put",body:{video_id:d.videoId}}).then(function(e){var o=e.data,r=o.UploadAuth;A.resumeUploadWithAuth(r)}).catch(function(e){console.log(e)})},onUploadEnd:function(d){i.onUploadEnd&&i.onUploadEnd(d),console.log("onUploadEnd: uploaded all the files")}}),i.gotUploader&&i.gotUploader(A)}function y(i,s){i&&(n=i),v(s);debugger}},JqQi:function(Ge,ze,se){Ge.exports={bg:"bg___31owl",container:"container___2NGOo"}},MRWH:function(Ge,ze,se){Ge.exports={flex_box_center:"flex_box_center___30XbU",flex_space_between:"flex_space_between___3jfWA",flex_box_vertical_center:"flex_box_vertical_center___27kWs",flex_box_center_end:"flex_box_center_end___1RoAS",flex_box_column:"flex_box_column____3Jvr",list:"list___2NJ_T",box:"box___36KCF",title:"title___Kd2ce",gray:"gray___14ob6",brght:"brght___GgzyD",s1:"s1___IhDpz",s2:"s2___3hR0s",s3:"s3___23SCF",active:"active___2_5D5",line:"line___3Croa"}},NLgs:function(Ge,ze,se){"use strict";se.d(ze,"c",function(){return i}),se.d(ze,"d",function(){return s}),se.d(ze,"b",function(){return u}),se.d(ze,"a",function(){return e});var Ae=se("rjoL"),He=se("TMtJ"),pe=se("ZZRV"),n=se.n(pe),A=se("9kvl"),v=se("xKgJ"),h=se("1vsH"),y=se("m3rI"),i=function(r){return!!(s(r)&&d())},s=function(r){return Object(v.n)()?!0:(r({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},d=function(){var r,l=Object(A.b)()._store.getState(),p=l.user;return((r=p.userInfo)===null||r===void 0?void 0:r.profile_completed)?!0:(He.a.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:n.a.createElement("div",{className:"tc font16"},"\u60A8\u9700\u8981\u53BB\u5B8C\u5584\u60A8\u7684\u4E2A\u4EBA\u8D44\u6599\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){A.c.push("/account/profile/edit")}}),!1)},u=function(){var r,l=Object(A.b)()._store.getState(),p=l.user;return((r=p.userInfo)===null||r===void 0?void 0:r.professional_certification)?!0:(He.a.confirm({title:"\u63D0\u793A",centered:!0,content:n.a.createElement("div",{className:"tc"},"\u60A8\u9700\u8981\u53BB\u5B8C\u6210\u60A8\u7684\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){Object(h.z)("/account/certification")}}),!1)},e=function(){return Object(v.a)()?!0:(He.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",content:n.a.createElement("div",{className:"tc"},n.a.createElement("p",null,"\u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650"),n.a.createElement("img",{src:Object(v.r)()?se("WdTA"):"".concat(y.a.IMG_SERVER,"/images/educoder/qqqun20191230.png"),width:200}),n.a.createElement("div",{className:"tc"},"\u7FA4\u53F7\uFF1A",Object(v.r)()?"693542422":"612934990")),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(h.z)("//shang.qq.com/wpa/qunwpa?idkey=2f2043d88c1bd61d182b98bf1e061c6185e23055bec832c07d8148fe11c5a6cd")}}),!1)}},WdTA:function(Ge,ze,se){Ge.exports=se.p+"static/studnetqun.a5754d96.png"},eoI0:function(Ge,ze,se){Ge.exports={selectSchool:"selectSchool___2Vrh7",delete:"delete___qM8Jm"}},hgre:function(Ge,ze,se){"use strict";var Ae=se("VBJJ"),He=se.n(Ae),pe=se("z3+T"),n=se("ZZRV"),A=se.n(n),v=se("Bs+z");Object.defineProperty(HTMLMediaElement.prototype,"playing",{get:function(){return this.currentTime>0&&!this.paused&&!this.ended&&this.readyState>2}});function h(s,d){return s-d}function y(s){s.sort(h);for(var d=0,u=0;u<s.length-1;u++){var e=Math.abs(s[u+1]-s[u]);e<21&&(d+=e)}return d}var i=/(android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini)/i;ze.a=Object(n.forwardRef)(function(s,d){var u,e=s.src,o=s.videoId,r=s.logWatchHistory,l=s.courseId,p=l===void 0?null:l,c=s.startTime,x=s.handlePause,E=x===void 0?function(){}:x,f=s.handlePlay,T=f===void 0?function(){}:f,S=s.handlePlayEnded,m=S===void 0?function(){}:S,b=s.videoSpeed,k=b===void 0?1:b,C=e==null||((u=e.split("."))===null||u===void 0)?void 0:u.pop(),_=C==="flv",j=Object(n.useRef)(),D=navigator.userAgent.toLowerCase().match(i),M=D?D[0]:"pc",L=Object(n.useRef)(!1),z=0,W=0,G=0,Z=null,U=!1,ee=20,$=1,q=!1,R=!1,I=[];Object(n.useImperativeHandle)(d,function(){return{getLastUpdatedTime:function(){return j.current.currentTime},getDuration:function(){return j.current.duration}}});var F=Object(n.useCallback)(function(N){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Y={point:j.current.currentTime};Z?(Y.log_id=Z,Y.watch_duration=y(I),Y.total_duration=W):(p?(Y.video_id=parseInt(o,10),Y.course_id=parseInt(p,10)):Y.video_id=o,Y.duration=z,Y.device=M),H&&(Y.ed="1");function ae(){return te.apply(this,arguments)}function te(){return te=Object(pe.a)(He.a.mark(function ue(){var de;return He.a.wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return q=!0,J.next=3,r(Y);case 3:de=J.sent,Z=de,q=!1,N&&N();case 7:case"end":return J.stop()}},ue)})),te.apply(this,arguments)}ae()},[o,p]);return Object(n.useEffect)(function(){var N=null;return v.a.isSupported&&_?(N=v.a.createPlayer({type:"flv",volume:.8,cors:!0,url:e,muted:!1}),j.current&&(N.attachMediaElement(j.current),N.load())):j.current.setAttribute("src",e),function(){N&&(N.unload(),N.pause(),N.destroy(),N=null)}},[j,_,e]),Object(n.useEffect)(function(){function N(){T(),c&&!L.current&&(j.current.currentTime=c),L.current=!0,I.push(j.current.currentTime),U||(U=!0,F())}function H(){return Y.apply(this,arguments)}function Y(){return Y=Object(pe.a)(He.a.mark(function J(){return He.a.wrap(function(X){for(;;)switch(X.prev=X.next){case 0:I.push(j.current.currentTime),F(function(){Z=null,G=0,U=!1,q=!1,R=!1,I=[],W=0,$=1},!0);case 2:case"end":return X.stop()}},J)})),Y.apply(this,arguments)}function ae(){if(!R){var J=j.current.currentTime,ie=J-G;Math.abs(ie)<10?(W+=Math.abs(ie),G=J,q||W-$*ee>=0&&($++,I.push(G),F())):(G=J,F())}}function te(){R=!0}function ue(){j.current.playing&&I.push(j.current.currentTime,G),G=j.current.currentTime,R=!1}function de(){z=j.current.duration,z<=20&&(ee=z/3),j.current.addEventListener("play",N)}function Q(){E()}return j.current.addEventListener("canplay",de),j.current.addEventListener("ended",H),j.current.addEventListener("seeking",te),j.current.addEventListener("seeked",ue),j.current.addEventListener("timeupdate",ae),j.current.addEventListener("pause",Q),function(){j.current.removeEventListener("canplay",de),j.current.removeEventListener("play",N),j.current.removeEventListener("ended",H),j.current.removeEventListener("seeking",te),j.current.removeEventListener("seeked",ue),j.current.removeEventListener("timeupdate",ae),j.current.removeEventListener("pause",Q),j.current.playing&&(I.push(G,j.current.currentTime),F())}},[j,e]),Object(n.useEffect)(function(){j.current.onended=function(){m(j)},j.current.playbackRate=k},[e,k]),A.a.createElement("video",{ref:j,controls:!0,autoPlay:!1,controlsList:"nodownload",muted:!1})})},kwm0:function(Ge,ze,se){Ge.exports={modal:"modal___1jX7c",uploadWrap:"uploadWrap___3-sVK",upload:"upload___2LemY",uploadLink:"uploadLink___j9Fsx",fileProgress:"fileProgress___11p3K",fileCancel:"fileCancel___3Mx9l",videoName:"videoName___2a-ZN",contentItem:"contentItem___1gUuj"}},nUhQ:function(Ge,ze,se){Ge.exports={flex_box_center:"flex_box_center___1OQ1z",flex_space_between:"flex_space_between___22uwF",flex_box_vertical_center:"flex_box_vertical_center___1xWAr",flex_box_center_end:"flex_box_center_end___1QTe3",flex_box_column:"flex_box_column___lWxZG",banner:"banner___1Hzq6",wrap:"wrap___1D5RS",title:"title___1LzGm",contentWrap:"contentWrap___19oxo",button:"button___3chJs",rating:"rating___3ODxx"}},qGJc:function(Ge,ze,se){(function(Ae){var He,He;!function(pe){if(!0)window.OSS=pe(),Ge.exports=pe();else var n}(function(){var pe;return function(){function n(A,v,h){function y(d,u){if(!v[d]){if(!A[d]){var e=typeof He=="function"&&He;if(!u&&e)return He(d,!0);if(i)return i(d,!0);var o=new Error("Cannot find module '"+d+"'");throw o.code="MODULE_NOT_FOUND",o}var r=v[d]={exports:{}};A[d][0].call(r.exports,function(l){return y(A[d][1][l]||l)},r,r.exports,n,A,v,h)}return v[d].exports}for(var i=typeof He=="function"&&He,s=0;s<h.length;s++)y(h[s]);return y}return n}()({1:[function(n,A,v){"use strict";var h=n("./browser/client");h.Buffer=n("buffer").Buffer,h.co=n("co"),h.urllib=n("../shims/xhr"),h.version=n("./browser/version").version,A.exports=h},{"../shims/xhr":244,"./browser/client":2,"./browser/version":5,buffer:38,co:41}],2:[function(n,A,v){(function(h,y){"use strict";function i(q){return q&&q.__esModule?q:{default:q}}function s(q,R){return q[R]||q[R.toLowerCase()]}function d(q,R){var I=_.parse(q);if(!I.protocol){var F=R?"https://":"http://";I=_.parse(F+q)}if(I.protocol!=="http:"&&I.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return I}function u(q,R,I){var F=I?"https://":"http://",N=R?"-internal.aliyuncs.com":".aliyuncs.com";return q.substr(0,"vpc100-oss-cn-".length)==="vpc100-oss-cn-"&&(N=".aliyuncs.com"),_.parse(F+q+N)}function e(){return document&&document.location&&document.location.protocol==="https:"}function o(q,R){if(!(this instanceof o))return new o(q,R);q&&q.inited?this.options=q:this.options=o.initOptions(q),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=L,this.agent=this.options.agent||ee),this.ctx=R,this.userAgent=this._getUserAgent(),this.options.amendTimeSkewed=0}var r=n("babel-runtime/regenerator"),l=i(r),p=n("babel-runtime/core-js/object/keys"),c=i(p),x=n("debug")("ali-oss"),E=n("./../../shims/crypto/crypto.js"),f=n("path"),T=n("copy-to"),S=n("mime"),m=n("xml2js"),b=n("humanize-ms"),k=n("agentkeepalive"),C=n("merge-descriptors"),_=n("url"),j=n("is-type-of"),D=n("platform"),M=n("utility"),L=n("urllib"),z=n("./version"),W=n("dateformat"),G=n("bowser"),Z=n("../common/signUtils"),U=n("../common/utils"),ee=new k;A.exports=o,o.initOptions=function(q){if(!q||!q.accessKeyId||!q.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");var R=e(),I={region:"oss-cn-hangzhou",internal:!1,secure:R,bucket:null,endpoint:null,cname:!1};if((0,c.default)(q).forEach(function(F){q[F]!==void 0&&(I[F]=q[F])}),I.accessKeyId=I.accessKeyId.trim(),I.accessKeySecret=I.accessKeySecret.trim(),I.timeout&&(I.timeout=b(I.timeout)),I.endpoint)I.endpoint=d(I.endpoint,I.secure);else{if(!I.region)throw new Error("require options.endpoint or options.region");I.endpoint=u(I.region,I.internal,I.secure)}return I.inited=!0,I};var $=o.prototype;C($,n("./object")),C($,n("./managed_upload")),C($,n("../common/multipart")),C($,n("../common/thunkpool.js")),o.Wrapper=n("./wrapper"),$.signature=function(q){return x("authorization stringToSign: %s",q),Z.computeSignature(this.options.accessKeySecret,q)},$.authorization=function(q,R,I,F){var N=Z.buildCanonicalString(q.toUpperCase(),R,{headers:F,parameters:I});return Z.authorization(this.options.accessKeyId,this.options.accessKeySecret,N)},$.createRequest=function(q){var R={"x-oss-date":W(+new Date+this.options.amendTimeSkewed,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'"),"x-oss-user-agent":this.userAgent};this.options.stsToken&&(R["x-oss-security-token"]=this.options.stsToken),T(q.headers).to(R),s(R,"Content-Type")||(q.mime===S.default_type&&(q.mime=""),q.mime&&q.mime.indexOf("/")>0?R["Content-Type"]=q.mime:R["Content-Type"]=S.getType(q.mime||f.extname(q.object||""))||"application/octet-stream"),q.content&&(R["Content-Md5"]=E.createHash("md5").update(new y(q.content,"utf8")).digest("base64"),R["Content-Length"]||(R["Content-Length"]=q.content.length));var I=this._getResource(q);R.authorization=this.authorization(q.method,I,q.subres,R);var F=this._getReqUrl(q);x("request %s %s, with headers %j, !!stream: %s",q.method,F,R,!!q.stream);var N=q.timeout||this.options.timeout;return{url:F,params:{agent:this.agent,method:q.method,content:q.content,stream:q.stream,headers:R,timeout:N,writeStream:q.writeStream,customResponse:q.customResponse,ctx:q.ctx||this.ctx}}},$.request=l.default.mark(function q(R){var I,F,N,H;return l.default.wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return I=this.createRequest(R),F=void 0,N=void 0,Y.prev=3,Y.next=6,this.urllib.request(I.url,I.params);case 6:F=Y.sent,x("response %s %s, got %s, headers: %j",R.method,I.url,F.status,F.headers),Y.next=13;break;case 10:Y.prev=10,Y.t0=Y.catch(3),N=Y.t0;case 13:if(H=void 0,!F||!R.successStatuses||R.successStatuses.indexOf(F.status)!==-1){Y.next=26;break}return Y.next=17,this.requestError(F);case 17:if(H=Y.sent,H.code!=="RequestTimeTooSkewed"){Y.next=23;break}return this.options.amendTimeSkewed=+new Date(H.serverTime)-new Date,Y.next=22,this.request(R);case 22:return Y.abrupt("return",Y.sent);case 23:H.params=R,Y.next=30;break;case 26:if(!N){Y.next=30;break}return Y.next=29,this.requestError(N);case 29:H=Y.sent;case 30:if(!H){Y.next=32;break}throw H;case 32:if(!R.xmlResponse){Y.next=36;break}return Y.next=35,this.parseXML(F.data);case 35:F.data=Y.sent;case 36:return Y.abrupt("return",F);case 37:case"end":return Y.stop()}},q,this,[[3,10]])}),$._getResource=function(q){var R="/";return q.bucket&&(R+=q.bucket+"/"),q.object&&(R+=q.object),R},$._isIP=function(q){return U._isIP(q)},$._escape=function(q){return M.encodeURIComponent(q).replace(/%2F/g,"/")},$._getReqUrl=function(q){var R={};T(this.options.endpoint).to(R);var I=this._isIP(R.hostname),F=this.options.cname;!q.bucket||F||I||(R.host=q.bucket+"."+R.host);var N="/";q.bucket&&I&&(N+=q.bucket+"/"),q.object&&(N+=this._escape(q.object).replace(/\+/g,"%2B")),R.pathname=N;var H={};if(q.query&&C(H,q.query),q.subres){var Y={};j.string(q.subres)?Y[q.subres]="":j.array(q.subres)?q.subres.forEach(function(ae){Y[ae]=""}):Y=q.subres,C(H,Y)}return R.query=H,_.format(R)},$._getUserAgent=function(){var q=h&&h.browser?"js":"nodejs",R="aliyun-sdk-"+q+"/"+z.version,I=D.description;return!I&&h&&(I="Node.js "+h.version.slice(1)+" on "+h.platform+" "+h.arch),this._checkUserAgent(R+" "+I)},$._checkUserAgent=function(q){return q.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta")},$.checkBrowserAndVersion=function(q,R){return G.name===q&&G.version.split(".")[0]===R},$.parseXML=function(q){return function(R){y.isBuffer(q)&&(q=q.toString()),m.parseString(q,{explicitRoot:!1,explicitArray:!1},R)}},$.requestError=l.default.mark(function q(R){var I,F,N,H;return l.default.wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:if(I=null,R.data&&R.data.length){Y.next=5;break}R.status===-1||R.status===-2?(I=new Error(R.message),I.name=R.name,I.status=R.status,I.code=R.name):(R.status===404?(I=new Error("Object not exists"),I.name="NoSuchKeyError",I.status=404,I.code="NoSuchKey"):R.status===412?(I=new Error("Pre condition failed"),I.name="PreconditionFailedError",I.status=412,I.code="PreconditionFailed"):(I=new Error("Unknow error, status: "+R.status),I.name="UnknowError",I.status=R.status),I.requestId=R.headers["x-oss-request-id"],I.host=""),Y.next=30;break;case 5:return F=String(R.data),x("request response error data: %s",F),N=void 0,Y.prev=8,Y.next=11,this.parseXML(F)||{};case 11:N=Y.sent,Y.next=21;break;case 14:return Y.prev=14,Y.t0=Y.catch(8),x(F),Y.t0.message+=`
|
||
raw xml: `+F,Y.t0.status=R.status,Y.t0.requestId=R.headers["x-oss-request-id"],Y.abrupt("return",Y.t0);case 21:H=N.Message||"unknow request error, status: "+R.status,N.Condition&&(H+=" (condition: "+N.Condition+")"),I=new Error(H),I.name=N.Code?N.Code+"Error":"UnknowError",I.status=R.status,I.code=N.Code,I.requestId=N.RequestId,I.hostId=N.HostId,I.serverTime=N.ServerTime;case 30:return x("generate error %j",I),Y.abrupt("return",I);case 32:case"end":return Y.stop()}},q,this,[[8,14]])})}).call(this,n("_process"),n("buffer").Buffer)},{"../common/multipart":8,"../common/signUtils":9,"../common/thunkpool.js":10,"../common/utils":11,"./../../shims/crypto/crypto.js":237,"./managed_upload":3,"./object":4,"./version":5,"./wrapper":6,_process:173,agentkeepalive:12,"babel-runtime/core-js/object/keys":23,"babel-runtime/regenerator":33,bowser:35,buffer:38,"copy-to":43,dateformat:154,debug:155,"humanize-ms":160,"is-type-of":165,"merge-descriptors":168,mime:242,path:170,platform:171,url:203,urllib:244,utility:243,xml2js:213}],3:[function(n,A,v){(function(h){"use strict";function y(T){return T&&T.__esModule?T:{default:T}}function i(T,S){if(!(this instanceof i))return new i(T,S);f.call(this,S),this.file=T,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}var s=n("babel-runtime/core-js/array/from"),d=y(s),u=n("babel-runtime/regenerator"),e=y(u),o=n("is-type-of"),r=n("util"),l=n("path"),p=n("mime"),c=n("copy-to"),x=v;x.multipartUpload=e.default.mark(function T(S,m,b){var k,C,_,j,D,M,L,z,W;return e.default.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:if(this.resetCancelFlag(),b=b||{},!b.checkpoint||!b.checkpoint.uploadId){G.next=6;break}return G.next=5,this._resumeMultipart(b.checkpoint,b);case 5:return G.abrupt("return",G.sent);case 6:return k=102400,b.mime||(o.file(m)?b.mime=p.getType(l.extname(m.name)):o.blob(m)?b.mime=m.type:b.mime=p.getType(l.extname(m))),b.headers=b.headers||{},this._convertMetaToHeaders(b.meta,b.headers),G.next=12,this._getFileSize(m);case 12:if(!((C=G.sent)<k)){G.next=25;break}return _=this._createStream(m,0,C),b.contentLength=C,G.next=18,this.putStream(S,_,b);case 18:if(j=G.sent,!b||!b.progress){G.next=22;break}return G.next=22,b.progress(1);case 22:return D={res:j.res,bucket:this.options.bucket,name:S,etag:j.res.headers.etag},(b.headers&&b.headers["x-oss-callback"]||b.callback)&&(D.data=j.data),G.abrupt("return",D);case 25:if(!(b.partSize&&b.partSize<k)){G.next=27;break}throw new Error("partSize must not be smaller than "+k);case 27:return G.next=29,this.initMultipartUpload(S,b);case 29:if(M=G.sent,L=M.uploadId,z=this._getPartSize(C,b.partSize),W={file:m,name:S,fileSize:C,partSize:z,uploadId:L,doneParts:[]},!b||!b.progress){G.next=36;break}return G.next=36,b.progress(0,W,M.res);case 36:return G.next=38,this._resumeMultipart(W,b);case 38:return G.abrupt("return",G.sent);case 39:case"end":return G.stop()}},T,this)}),x._resumeMultipart=e.default.mark(function T(S,m){var b,k,C,_,j,D,M,L,z,W,G,Z,U,ee,$,q,R,I,F,N,H;return e.default.wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:if(!this.isCancel()){Y.next=2;break}throw this._makeCancelEvent();case 2:if(b=S.file,k=S.fileSize,C=S.partSize,_=S.uploadId,j=S.doneParts,D=S.name,M=[],j.length>0&&c(j).to(M),L=this._divideParts(k,C),z=L.length,W=!1,G=e.default.mark(function ae(te,ue){var de,Q,J;return e.default.wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:if(te.isCancel()){ie.next=21;break}return ie.prev=1,de=L[ue-1],Q={stream:te._createStream(b,de.start,de.end),size:de.end-de.start},ie.next=6,te._uploadPart(D,_,ue,Q);case 6:if(J=ie.sent,te.isCancel()||W){ie.next=13;break}if(S.doneParts.push({number:ue,etag:J.res.headers.etag}),M.push({number:ue,etag:J.res.headers.etag}),!m||!m.progress){ie.next=13;break}return ie.next=13,m.progress(j.length/z,S,J.res);case 13:ie.next=21;break;case 15:if(ie.prev=15,ie.t0=ie.catch(1),te.isCancel()){ie.next=21;break}throw te.cancel(),ie.t0.partNum=ue,ie.t0;case 21:case"end":return ie.stop()}},ae,this,[[1,15]])}),Z=(0,d.default)(new Array(z),function(ae,te){return te+1}),U=M.map(function(ae){return ae.number}),ee=Z.filter(function(ae){return U.indexOf(ae)<0}),$=5,q=m.parallel||$,!this.checkBrowserAndVersion("Internet Explorer","10")&&q!==1){Y.next=26;break}R=0;case 16:if(!(R<ee.length)){Y.next=24;break}if(!this.isCancel()){Y.next=19;break}throw this._makeCancelEvent();case 19:return Y.next=21,G(this,ee[R]);case 21:R++,Y.next=16;break;case 24:Y.next=40;break;case 26:for(I=[],F=0;F<ee.length;F++)I.push(G(this,ee[F]));return Y.next=30,this._thunkPool(I,q);case 30:if(N=Y.sent,W=!0,!(N&&N.length>0)){Y.next=37;break}throw this.resetCancelFlag(),H=N[0],H.message="Failed to upload some parts with error: "+H.toString()+" part_num: "+H.partNum,H;case 37:if(!this.isCancel()){Y.next=40;break}throw I=null,this._makeCancelEvent();case 40:return Y.next=42,this.completeMultipartUpload(D,_,M,m);case 42:return Y.abrupt("return",Y.sent);case 43:case"end":return Y.stop()}},T,this)}),o.file=function(T){return typeof File!="undefined"&&T instanceof File},o.blob=function(T){return typeof Blob!="undefined"&&T instanceof Blob},x._getFileSize=e.default.mark(function T(S){var m;return e.default.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:if(!o.buffer(S)){b.next=4;break}return b.abrupt("return",S.length);case 4:if(!o.blob(S)&&!o.file(S)){b.next=6;break}return b.abrupt("return",S.size);case 6:if(!o.string(S)){b.next=11;break}return b.next=9,this._statFile(S);case 9:return m=b.sent,b.abrupt("return",m.size);case 11:throw new Error("_getFileSize requires Buffer/File/String.");case 12:case"end":return b.stop()}},T,this)});var E=n("stream"),f=E.Readable;r.inherits(i,f),i.prototype.readFileAndPush=function(T){if(this.fileBuffer)for(var S=!0;S&&this.fileBuffer&&this.start<this.fileBuffer.length;){var m=this.start,b=m+T;b=b>this.fileBuffer.length?this.fileBuffer.length:b,this.start=b,S=this.push(this.fileBuffer.slice(m,b))}},i.prototype._read=function(T){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||this.start===0&&!this.file)return this.finish||(this.fileBuffer=null,this.finish=!0),void this.push(null);T=T||16384;var S=this;this.reader.onload=function(m){S.fileBuffer=new h(new Uint8Array(m.target.result)),S.file=null,S.readFileAndPush(T)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(T)},x._createStream=function(T,S,m){if(o.blob(T)||o.file(T))return new i(T.slice(S,m));throw new Error("_createStream requires File/String.")},x._getPartSize=function(T,S){return S?Math.max(Math.ceil(T/1e4),S):1048576},x._divideParts=function(T,S){for(var m=Math.ceil(T/S),b=[],k=0;k<m;k++){var C=S*k,_=Math.min(C+S,T);b.push({start:C,end:_})}return b},x._makeCancelEvent=function(){return{status:0,name:"cancel"}}}).call(this,n("buffer").Buffer)},{"babel-runtime/core-js/array/from":16,"babel-runtime/regenerator":33,buffer:38,"copy-to":43,"is-type-of":165,mime:242,path:170,stream:195,util:207}],4:[function(n,A,v){"use strict";function h(S){return S&&S.__esModule?S:{default:S}}var y=n("babel-runtime/core-js/object/keys"),i=h(y),s=n("babel-runtime/regenerator"),d=h(s),u=n("debug")("ali-oss:object"),e=n("utility"),o=n("fs"),r=n("is-type-of"),l=n("url"),p=n("copy-to"),c=n("path"),x=n("mime"),E=n("../common/callback"),f=n("../common/signUtils"),T=v;T.append=d.default.mark(function S(m,b,k){var C;return d.default.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return k=k||{},k.position===void 0&&(k.position="0"),k.subres={append:"",position:k.position},k.method="POST",_.next=6,this.put(m,b,k);case 6:return C=_.sent,C.nextAppendPosition=C.res.headers["x-oss-next-append-position"],_.abrupt("return",C);case 9:case"end":return _.stop()}},S,this)}),T.put=d.default.mark(function S(m,b,k){var C,_,j,D,M,L;return d.default.wrap(function(z){for(;;)switch(z.prev=z.next){case 0:if(C=void 0,k=k||{},!r.buffer(b)){z.next=6;break}C=b,z.next=18;break;case 6:if(!r.blob(b)&&!r.file(b)){z.next=17;break}return k.mime||(r.file(b)?k.mime=x.getType(c.extname(b.name)):k.mime=b.type),_=this._createStream(b,0,b.size),z.next=11,this._getFileSize(b);case 11:return k.contentLength=z.sent,z.next=14,this.putStream(m,_,k);case 14:return z.abrupt("return",z.sent);case 17:throw new TypeError("Must provide Buffer/Blob for put.");case 18:return k.headers=k.headers||{},this._convertMetaToHeaders(k.meta,k.headers),j=k.method||"PUT",D=this._objectRequestParams(j,m,k),E.encodeCallback(D,k),D.mime=k.mime,D.content=C,D.successStatuses=[200],z.next=28,this.request(D);case 28:return M=z.sent,L={name:m,url:this._objectUrl(m),res:M.res},D.headers&&D.headers["x-oss-callback"]&&(L.data=JSON.parse(M.data.toString())),z.abrupt("return",L);case 32:case"end":return z.stop()}},S,this)}),T.putStream=d.default.mark(function S(m,b,k){var C,_,j,D;return d.default.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return k=k||{},k.headers=k.headers||{},k.contentLength?k.headers["Content-Length"]=k.contentLength:k.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(k.meta,k.headers),C=k.method||"PUT",_=this._objectRequestParams(C,m,k),E.encodeCallback(_,k),_.mime=k.mime,_.stream=b,_.successStatuses=[200],M.next=12,this.request(_);case 12:return j=M.sent,D={name:m,url:this._objectUrl(m),res:j.res},_.headers&&_.headers["x-oss-callback"]&&(D.data=JSON.parse(j.data.toString())),M.abrupt("return",D);case 16:case"end":return M.stop()}},S,this)}),T.head=d.default.mark(function S(m,b){var k,C,_;return d.default.wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return k=this._objectRequestParams("HEAD",m,b),k.successStatuses=[200,304],j.next=4,this.request(k);case 4:return C=j.sent,_={meta:null,res:C.res,status:C.status},C.status===200&&(0,i.default)(C.headers).forEach(function(D){D.indexOf("x-oss-meta-")===0&&(_.meta||(_.meta={}),_.meta[D.substring(11)]=C.headers[D])}),j.abrupt("return",_);case 8:case"end":return j.stop()}},S,this)}),T.get=d.default.mark(function S(m,b,k){var C,_,j,D;return d.default.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return C=null,_=!1,r.writableStream(b)?C=b:r.string(b)?(C=o.createWriteStream(b),_=!0):k=b,k=k||{},k.process&&(k.subres=k.subres||{},k.subres["x-oss-process"]=k.process),j=void 0,M.prev=6,D=this._objectRequestParams("GET",m,k),D.writeStream=C,D.successStatuses=[200,206,304],M.next=12,this.request(D);case 12:j=M.sent,_&&C.destroy(),M.next=24;break;case 16:if(M.prev=16,M.t0=M.catch(6),!_){M.next=23;break}return C.destroy(),u("get error: %s, delete the exists file %s",M.t0,b),M.next=23,this._deleteFileSafe(b);case 23:throw M.t0;case 24:return M.abrupt("return",{res:j.res,content:j.data});case 25:case"end":return M.stop()}},S,this,[[6,16]])}),T.getStream=d.default.mark(function S(m,b){var k,C;return d.default.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return b=b||{},k=this._objectRequestParams("GET",m,b),k.customResponse=!0,k.successStatuses=[200,206,304],_.next=6,this.request(k);case 6:return C=_.sent,_.abrupt("return",{stream:C.res,res:{status:C.status,headers:C.headers}});case 8:case"end":return _.stop()}},S,this)}),T.delete=d.default.mark(function S(m,b){var k,C;return d.default.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return k=this._objectRequestParams("DELETE",m,b),k.successStatuses=[204],_.next=4,this.request(k);case 4:return C=_.sent,_.abrupt("return",{res:C.res});case 6:case"end":return _.stop()}},S,this)}),T.deleteMulti=d.default.mark(function S(m,b){var k,C,_,j,D,M;return d.default.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:for(b=b||{},k=`<?xml version="1.0" encoding="UTF-8"?>
|
||
<Delete>
|
||
`,b.quiet?k+=` <Quiet>true</Quiet>
|
||
`:k+=` <Quiet>false</Quiet>
|
||
`,C=0;C<m.length;C++)k+=" <Object><Key>"+e.escape(this._objectName(m[C]))+`</Key></Object>
|
||
`;return k+="</Delete>",u("delete multi objects: %s",k),b.subres="delete",_=this._objectRequestParams("POST","",b),_.mime="xml",_.content=k,_.xmlResponse=!0,_.successStatuses=[200],L.next=14,this.request(_);case 14:return j=L.sent,D=j.data,M=D&&D.Deleted||null,M&&(Array.isArray(M)||(M=[M]),M=M.map(function(z){return z.Key})),L.abrupt("return",{res:j.res,deleted:M});case 19:case"end":return L.stop()}},S,this)}),T.copy=d.default.mark(function S(m,b,k){var C,_,j;return d.default.wrap(function(D){for(;;)switch(D.prev=D.next){case 0:return k=k||{},k.headers=k.headers||{},(0,i.default)(k.headers).forEach(function(M){k.headers["x-oss-copy-source-"+M.toLowerCase()]=k.headers[M]}),k.meta&&(k.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(k.meta,k.headers),b=b[0]!=="/"?"/"+this.options.bucket+"/"+encodeURIComponent(b):"/"+encodeURIComponent(b.slice(1)),k.headers["x-oss-copy-source"]=b,C=this._objectRequestParams("PUT",m,k),C.xmlResponse=!0,C.successStatuses=[200,304],D.next=12,this.request(C);case 12:return _=D.sent,j=_.data,j&&(j={etag:j.ETag,lastModified:j.LastModified}),D.abrupt("return",{data:j,res:_.res});case 16:case"end":return D.stop()}},S,this)}),T.putMeta=d.default.mark(function S(m,b,k){return d.default.wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return C.next=2,this.copy(m,m,{meta:b||{},timeout:k&&k.timeout,ctx:k&&k.ctx});case 2:return C.abrupt("return",C.sent);case 3:case"end":return C.stop()}},S,this)}),T.list=d.default.mark(function S(m,b){var k,C,_,j,D;return d.default.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return k=this._objectRequestParams("GET","",b),k.query=m,k.xmlResponse=!0,k.successStatuses=[200],M.next=6,this.request(k);case 6:return C=M.sent,_=C.data.Contents,j=this,_&&(Array.isArray(_)||(_=[_]),_=_.map(function(L){return{name:L.Key,url:j._objectUrl(L.Key),lastModified:L.LastModified,etag:L.ETag,type:L.Type,size:Number(L.Size),storageClass:L.StorageClass,owner:{id:L.Owner.ID,displayName:L.Owner.DisplayName}}})),D=C.data.CommonPrefixes||null,D&&(Array.isArray(D)||(D=[D]),D=D.map(function(L){return L.Prefix})),M.abrupt("return",{res:C.res,objects:_,prefixes:D,nextMarker:C.data.NextMarker||null,isTruncated:C.data.IsTruncated==="true"});case 13:case"end":return M.stop()}},S,this)}),T.putACL=d.default.mark(function S(m,b,k){var C,_;return d.default.wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return k=k||{},k.subres="acl",k.headers=k.headers||{},k.headers["x-oss-object-acl"]=b,m=this._objectName(m),C=this._objectRequestParams("PUT",m,k),C.successStatuses=[200],j.next=9,this.request(C);case 9:return _=j.sent,j.abrupt("return",{res:_.res});case 11:case"end":return j.stop()}},S,this)}),T.getACL=d.default.mark(function S(m,b){var k,C;return d.default.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return b=b||{},b.subres="acl",m=this._objectName(m),k=this._objectRequestParams("GET",m,b),k.successStatuses=[200],k.xmlResponse=!0,_.next=8,this.request(k);case 8:return C=_.sent,_.abrupt("return",{acl:C.data.AccessControlList.Grant,owner:{id:C.data.Owner.ID,displayName:C.data.Owner.DisplayName},res:C.res});case 10:case"end":return _.stop()}},S,this)}),T.restore=d.default.mark(function S(m,b){var k,C;return d.default.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return b=b||{},b.subres="restore",k=this._objectRequestParams("POST",m,b),k.successStatuses=[202],_.next=6,this.request(k);case 6:return C=_.sent,_.abrupt("return",{res:C.res});case 8:case"end":return _.stop()}},S,this)}),T.signatureUrl=function(S,m){m=m||{},S=this._objectName(S),m.method=m.method||"GET";var b=e.timestamp()+(m.expires||1800),k={bucket:this.options.bucket,object:S},C=this._getResource(k);this.options.stsToken&&(m["security-token"]=this.options.stsToken);var _=f._signatureForURL(this.options.accessKeySecret,m,C,b),j=l.parse(this._getReqUrl(k));return j.query={OSSAccessKeyId:this.options.accessKeyId,Expires:b,Signature:_.Signature},p(_.subResource).to(j.query),j.format()},T.getObjectUrl=function(S,m){return m?m[m.length-1]!=="/"&&(m+="/"):m=this.options.endpoint.format(),m+this._escape(this._objectName(S))},T._objectUrl=function(S){return this._getReqUrl({bucket:this.options.bucket,object:S})},T.generateObjectUrl=function(S,m){if(m)m[m.length-1]!=="/"&&(m+="/");else{m=this.options.endpoint.format();var b=l.parse(m),k=this.options.bucket;b.hostname=k+"."+b.hostname,b.host=k+"."+b.host,m=b.format()}return m+this._escape(this._objectName(S))},T._objectRequestParams=function(S,m,b){if(!this.options.bucket)throw new Error("Please create a bucket first");b=b||{},m=this._objectName(m);var k={object:m,bucket:this.options.bucket,method:S,subres:b&&b.subres,timeout:b&&b.timeout,ctx:b&&b.ctx};return b.headers&&(k.headers={},p(b.headers).to(k.headers)),k},T._objectName=function(S){return S.replace(/^\/+/,"")},T._statFile=function(S){return function(m){o.stat(S,m)}},T._convertMetaToHeaders=function(S,m){S&&(0,i.default)(S).forEach(function(b){m["x-oss-meta-"+b]=S[b]})},T._deleteFileSafe=function(S){return function(m){o.exists(S,function(b){b?o.unlink(S,function(k){k&&u("unlink %j error: %s",S,k),m()}):m()})}}},{"../common/callback":7,"../common/signUtils":9,"babel-runtime/core-js/object/keys":23,"babel-runtime/regenerator":33,"copy-to":43,debug:155,fs:36,"is-type-of":165,mime:242,path:170,url:203,utility:243}],5:[function(n,A,v){"use strict";v.version="5.3.1"},{}],6:[function(n,A,v){"use strict";function h(c){return c&&c.__esModule?c:{default:c}}function y(c){return c&&typeof c.next=="function"&&typeof c.throw=="function"}function i(c){if(!c)return!1;var x=c.constructor;return!!x&&(x.name==="GeneratorFunction"||x.displayName==="GeneratorFunction"||y(x.prototype)||y(c.prototype))}function s(c,x){var E=new c(x),f=(0,r.default)(E),T=(0,r.default)((0,e.default)(E));f.concat(T).forEach(function(S){i(E[S])?this[S]=l.wrap(E[S]).bind(E):this[S]=E[S]},this)}function d(c){if(!(this instanceof d))return new d(c);s.call(this,p,c)}var u=n("babel-runtime/core-js/object/get-prototype-of"),e=h(u),o=n("babel-runtime/core-js/object/keys"),r=h(o),l=n("co"),p=n("./client");A.exports=d,d.STS=function c(x){if(!(this instanceof c))return new c(x);s.call(this,p.STS,x)}},{"./client":2,"babel-runtime/core-js/object/get-prototype-of":22,"babel-runtime/core-js/object/keys":23,co:41}],7:[function(n,A,v){(function(h){"use strict";function y(e){return e&&e.__esModule?e:{default:e}}var i=n("babel-runtime/core-js/object/keys"),s=y(i),d=n("babel-runtime/core-js/json/stringify"),u=y(d);v.encodeCallback=function(e,o){if(e.headers=e.headers||{},!Object.prototype.hasOwnProperty.call(e.headers,"x-oss-callback")&&o.callback){var r={callbackUrl:encodeURI(o.callback.url),callbackBody:o.callback.body};o.callback.host&&(r.callbackHost=o.callback.host),o.callback.contentType&&(r.callbackBodyType=o.callback.contentType);var l=new h((0,u.default)(r)).toString("base64");if(e.headers["x-oss-callback"]=l,o.callback.customValue){var p={};(0,s.default)(o.callback.customValue).forEach(function(c){p["x:"+c]=o.callback.customValue[c]}),e.headers["x-oss-callback-var"]=new h((0,u.default)(p)).toString("base64")}}}}).call(this,n("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":17,"babel-runtime/core-js/object/keys":23,buffer:38}],8:[function(n,A,v){"use strict";var h=n("babel-runtime/regenerator"),y=function(u){return u&&u.__esModule?u:{default:u}}(h),i=n("copy-to"),s=n("./callback"),d=v;d.listUploads=y.default.mark(function u(e,o){var r,l,p,c;return y.default.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return o=o||{},r={},i(o).to(r),r.subres="uploads",l=this._objectRequestParams("GET","",r),l.query=e,l.xmlResponse=!0,l.successStatuses=[200],x.next=10,this.request(l);case 10:return p=x.sent,c=p.data.Upload||[],Array.isArray(c)||(c=[c]),c=c.map(function(E){return{name:E.Key,uploadId:E.UploadId,initiated:E.Initiated}}),x.abrupt("return",{res:p.res,uploads:c,bucket:p.data.Bucket,nextKeyMarker:p.data.NextKeyMarker,nextUploadIdMarker:p.data.NextUploadIdMarker,isTruncated:p.data.IsTruncated==="true"});case 15:case"end":return x.stop()}},u,this)}),d.listParts=y.default.mark(function u(e,o,r,l){var p,c,x;return y.default.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return l=l||{},p={},i(l).to(p),p.subres={uploadId:o},c=this._objectRequestParams("GET",e,p),c.query=r,c.xmlResponse=!0,c.successStatuses=[200],E.next=10,this.request(c);case 10:return x=E.sent,E.abrupt("return",{res:x.res,uploadId:x.data.UploadId,bucket:x.data.Bucket,name:x.data.Key,partNumberMarker:x.data.PartNumberMarker,nextPartNumberMarker:x.data.NextPartNumberMarker,maxParts:x.data.MaxParts,isTruncated:x.data.IsTruncated,parts:x.data.Part||[]});case 12:case"end":return E.stop()}},u,this)}),d.abortMultipartUpload=y.default.mark(function u(e,o,r){var l,p,c;return y.default.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return this.cancel(),r=r||{},l={},i(r).to(l),l.subres={uploadId:o},p=this._objectRequestParams("DELETE",e,l),p.successStatuses=[204],x.next=9,this.request(p);case 9:return c=x.sent,x.abrupt("return",{res:c.res});case 11:case"end":return x.stop()}},u,this)}),d.initMultipartUpload=y.default.mark(function u(e,o){var r,l,p;return y.default.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return o=o||{},r={},i(o).to(r),r.headers=r.headers||{},this._convertMetaToHeaders(o.meta,r.headers),r.subres="uploads",l=this._objectRequestParams("POST",e,r),l.mime=o.mime,l.xmlResponse=!0,l.successStatuses=[200],c.next=12,this.request(l);case 12:return p=c.sent,c.abrupt("return",{res:p.res,bucket:p.data.Bucket,name:p.data.Key,uploadId:p.data.UploadId});case 14:case"end":return c.stop()}},u,this)}),d.uploadPart=y.default.mark(function u(e,o,r,l,p,c,x){var E;return y.default.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return E={stream:this._createStream(l,p,c),size:c-p},f.next=3,this._uploadPart(e,o,r,E,x);case 3:return f.abrupt("return",f.sent);case 4:case"end":return f.stop()}},u,this)}),d.completeMultipartUpload=y.default.mark(function u(e,o,r,l){var p,c,x,E,f,T,S,m;return y.default.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:for(p=r.concat().sort(function(k,C){return k.number-C.number}).filter(function(k,C,_){return!C||k.number!==_[C-1].number}),c=`<?xml version="1.0" encoding="UTF-8"?>
|
||
<CompleteMultipartUpload>
|
||
`,x=0;x<p.length;x++)E=p[x],c+=`<Part>
|
||
`,c+="<PartNumber>"+E.number+`</PartNumber>
|
||
`,c+="<ETag>"+E.etag+`</ETag>
|
||
`,c+=`</Part>
|
||
`;return c+="</CompleteMultipartUpload>",l=l||{},f={},i(l).to(f),f.subres={uploadId:o},T=this._objectRequestParams("POST",e,f),s.encodeCallback(T,f),T.mime="xml",T.content=c,T.headers&&T.headers["x-oss-callback"]||(T.xmlResponse=!0),T.successStatuses=[200],b.next=16,this.request(T);case 16:return S=b.sent,m={res:S.res,bucket:T.bucket,name:e,etag:S.res.headers.etag},T.headers&&T.headers["x-oss-callback"]&&(m.data=JSON.parse(S.data.toString())),b.abrupt("return",m);case 20:case"end":return b.stop()}},u,this)}),d._uploadPart=y.default.mark(function u(e,o,r,l,p){var c,x,E;return y.default.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return p=p||{},c={},i(p).to(c),c.headers={"Content-Length":l.size},c.subres={partNumber:r,uploadId:o},x=this._objectRequestParams("PUT",e,c),x.mime=c.mime,x.stream=l.stream,x.successStatuses=[200],f.next=11,this.request(x);case 11:return E=f.sent,l.stream=null,x.stream=null,f.abrupt("return",{name:e,etag:E.res.headers.etag,res:E.res});case 15:case"end":return f.stop()}},u,this)})},{"./callback":7,"babel-runtime/regenerator":33,"copy-to":43}],9:[function(n,A,v){(function(h){"use strict";function y(r){return r&&r.__esModule?r:{default:r}}var i=n("babel-runtime/core-js/json/stringify"),s=y(i),d=n("babel-runtime/core-js/object/keys"),u=y(d),e=n("./../../shims/crypto/crypto.js"),o=n("is-type-of");v.buildCanonicalizedResource=function(r,l){var p=""+r,c="?";if(o.string(l)&&l.trim()!=="")p+=c+l;else if(o.array(l))l.sort(),p+=c+l.join("&");else if(l){var x=function(T,S){return T[0]>S[0]?1:T[0]<S[0]?-1:0},E=function(T){p+=c+T,l[T]&&(p+="="+l[T]),c="&"};(0,u.default)(l).sort(x).forEach(E)}return p},v.buildCanonicalString=function(r,l,p,c){p=p||{};var x=p.headers||{},E=[],f={},T=[r.toUpperCase(),x["Content-Md5"]||"",x["Content-Type"]||x["Content-Type".toLowerCase()],c||x["x-oss-date"]];return(0,u.default)(x).forEach(function(S){var m=S.toLowerCase();m.indexOf("x-oss-")===0&&(f[m]=String(x[S]).trim())}),(0,u.default)(f).sort().forEach(function(S){E.push(S+":"+f[S])}),T=T.concat(E),T.push(this.buildCanonicalizedResource(l,p.parameters)),T.join(`
|
||
`)},v.computeSignature=function(r,l){return e.createHmac("sha1",r).update(new h(l,"utf8")).digest("base64")},v.authorization=function(r,l,p){return"OSS "+r+":"+this.computeSignature(l,p)},v._signatureForURL=function(r,l,p,c){var x={},E={};if(l.process&&(E["x-oss-process"]=l.process),l.response&&(0,u.default)(l.response).forEach(function(m){var b="response-"+m.toLowerCase();E[b]=l.response[m]}),(0,u.default)(l).forEach(function(m){var b=m.toLowerCase(),k=l[m];b.indexOf("x-oss-")===0?x[b]=k:b.indexOf("content-md5")===0||b.indexOf("content-type")===0?x[m]=k:b!=="expires"&&b!=="response"&&b!=="process"&&b!=="method"&&(E[b]=k)}),Object.prototype.hasOwnProperty.call(l,"security-token")&&(E["security-token"]=l["security-token"]),Object.prototype.hasOwnProperty.call(l,"callback")){var f={callbackUrl:encodeURI(l.callback.url),callbackBody:l.callback.body};if(l.callback.host&&(f.callbackHost=l.callback.host),l.callback.contentType&&(f.callbackBodyType=l.callback.contentType),E.callback=new h((0,s.default)(f)).toString("base64"),l.callback.customValue){var T={};(0,u.default)(l.callback.customValue).forEach(function(m){T["x:"+m]=l.callback.customValue[m]}),E["callback-var"]=new h((0,s.default)(T)).toString("base64")}}var S=this.buildCanonicalString(l.method,p,{headers:x,parameters:E},c.toString());return{Signature:this.computeSignature(r,S),subResource:E}}}).call(this,n("buffer").Buffer)},{"./../../shims/crypto/crypto.js":237,"babel-runtime/core-js/json/stringify":17,"babel-runtime/core-js/object/keys":23,buffer:38,"is-type-of":165}],10:[function(n,A,v){"use strict";var h=n("babel-runtime/regenerator"),y=function(e){return e&&e.__esModule?e:{default:e}}(h),i=n("co"),s=n("co-priority-queue"),d=n("any-promise"),u=v;u._thunkPool=function(e,o){function r(E,f){++c===E.length&&f(x)}function l(E,f){function T(){var _;return y.default.wrap(function(j){for(;;)switch(j.prev=j.next){case 0:_=void 0;case 1:if(p.isCancel()){j.next=9;break}return j.next=4,b.next();case 4:return _=j.sent,j.next=7,_();case 7:j.next=1;break;case 9:k+=1,k===E&&(b.fns=[],b.buffer=[],f(x));case 11:case"end":return j.stop()}},m,this)}function S(_){console.error(_.stack)}for(var m=y.default.mark(T),b=new s,k=0,C=0;C<E;C++)i(T).catch(S);return function(_,j){return function(D){b.push(y.default.mark(function M(){return y.default.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return L.prev=0,L.t0=D,L.next=4,_;case 4:L.t1=L.sent,(0,L.t0)(null,L.t1),L.next=11;break;case 8:L.prev=8,L.t2=L.catch(0),D(L.t2);case 11:case"end":return L.stop()}},M,this,[[0,8]])}),j)}}}var p=this,c=0,x=[];return new d(function(E){function f(k){return y.default.wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return C.next=2,m(e[k]);case 2:r(e,E);case 3:case"end":return C.stop()}},S,this)}function T(k){x.push(k),r(e,E)}for(var S=y.default.mark(f),m=new l(o,E),b=0;b<e.length;b++)i(f(b)).catch(T)})},u.cancel=function(){this.options.cancelFlag=!0},u.isCancel=function(){return this.options.cancelFlag},u.resetCancelFlag=function(){this.options.cancelFlag=!1}},{"any-promise":13,"babel-runtime/regenerator":33,co:41,"co-priority-queue":40}],11:[function(n,A,v){"use strict";v._isIP=function(h){var y=/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/,i=/^\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 y.test(h)||i.test(h)}},{}],12:[function(n,A,v){function h(){}A.exports=h,A.exports.HttpsAgent=h},{}],13:[function(n,A,v){A.exports=n("./register")().Promise},{"./register":15}],14:[function(n,A,v){"use strict";var h=null;A.exports=function(y,i){return function(s,d){s=s||null,d=d||{};var u=d.global!==!1;if(h===null&&u&&(h=y["@@any-promise/REGISTRATION"]||null),h!==null&&s!==null&&h.implementation!==s)throw new Error('any-promise already defined as "'+h.implementation+'". You can only register an implementation before the first call to require("any-promise") and an implementation cannot be changed');return h===null&&(h=s!==null&&d.Promise!==void 0?{Promise:d.Promise,implementation:s}:i(s),u&&(y["@@any-promise/REGISTRATION"]=h)),h}}},{}],15:[function(n,A,v){"use strict";function h(){if(window.Promise===void 0)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"}}A.exports=n("./loader")(window,h)},{"./loader":14}],16:[function(n,A,v){A.exports={default:n("core-js/library/fn/array/from"),__esModule:!0}},{"core-js/library/fn/array/from":44}],17:[function(n,A,v){A.exports={default:n("core-js/library/fn/json/stringify"),__esModule:!0}},{"core-js/library/fn/json/stringify":45}],18:[function(n,A,v){A.exports={default:n("core-js/library/fn/object/assign"),__esModule:!0}},{"core-js/library/fn/object/assign":46}],19:[function(n,A,v){A.exports={default:n("core-js/library/fn/object/create"),__esModule:!0}},{"core-js/library/fn/object/create":47}],20:[function(n,A,v){A.exports={default:n("core-js/library/fn/object/define-property"),__esModule:!0}},{"core-js/library/fn/object/define-property":48}],21:[function(n,A,v){A.exports={default:n("core-js/library/fn/object/get-own-property-names"),__esModule:!0}},{"core-js/library/fn/object/get-own-property-names":49}],22:[function(n,A,v){A.exports={default:n("core-js/library/fn/object/get-prototype-of"),__esModule:!0}},{"core-js/library/fn/object/get-prototype-of":50}],23:[function(n,A,v){A.exports={default:n("core-js/library/fn/object/keys"),__esModule:!0}},{"core-js/library/fn/object/keys":51}],24:[function(n,A,v){A.exports={default:n("core-js/library/fn/promise"),__esModule:!0}},{"core-js/library/fn/promise":52}],25:[function(n,A,v){A.exports={default:n("core-js/library/fn/set-immediate"),__esModule:!0}},{"core-js/library/fn/set-immediate":53}],26:[function(n,A,v){A.exports={default:n("core-js/library/fn/string/from-code-point"),__esModule:!0}},{"core-js/library/fn/string/from-code-point":54}],27:[function(n,A,v){A.exports={default:n("core-js/library/fn/symbol"),__esModule:!0}},{"core-js/library/fn/symbol":56}],28:[function(n,A,v){A.exports={default:n("core-js/library/fn/symbol/has-instance"),__esModule:!0}},{"core-js/library/fn/symbol/has-instance":55}],29:[function(n,A,v){A.exports={default:n("core-js/library/fn/symbol/iterator"),__esModule:!0}},{"core-js/library/fn/symbol/iterator":57}],30:[function(n,A,v){"use strict";v.__esModule=!0,v.default=function(h,y){if(!(h instanceof y))throw new TypeError("Cannot call a class as a function")}},{}],31:[function(n,A,v){"use strict";v.__esModule=!0;var h=n("../core-js/object/define-property"),y=function(i){return i&&i.__esModule?i:{default:i}}(h);v.default=function(){function i(s,d){for(var u=0;u<d.length;u++){var e=d[u];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),(0,y.default)(s,e.key,e)}}return function(s,d,u){return d&&i(s.prototype,d),u&&i(s,u),s}}()},{"../core-js/object/define-property":20}],32:[function(n,A,v){"use strict";function h(e){return e&&e.__esModule?e:{default:e}}v.__esModule=!0;var y=n("../core-js/symbol/iterator"),i=h(y),s=n("../core-js/symbol"),d=h(s),u=typeof d.default=="function"&&typeof i.default=="symbol"?function(e){return typeof e}:function(e){return e&&typeof d.default=="function"&&e.constructor===d.default&&e!==d.default.prototype?"symbol":typeof e};v.default=typeof d.default=="function"&&u(i.default)==="symbol"?function(e){return e===void 0?"undefined":u(e)}:function(e){return e&&typeof d.default=="function"&&e.constructor===d.default&&e!==d.default.prototype?"symbol":e===void 0?"undefined":u(e)}},{"../core-js/symbol":27,"../core-js/symbol/iterator":29}],33:[function(n,A,v){A.exports=n("regenerator-runtime")},{"regenerator-runtime":191}],34:[function(n,A,v){"use strict";function h(E){var f=E.length;if(f%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var T=E.indexOf("=");return T===-1&&(T=f),[T,T===f?0:4-T%4]}function y(E){var f=h(E),T=f[0],S=f[1];return 3*(T+S)/4-S}function i(E,f,T){return 3*(f+T)/4-T}function s(E){for(var f,T=h(E),S=T[0],m=T[1],b=new l(i(E,S,m)),k=0,C=m>0?S-4:S,_=0;_<C;_+=4)f=r[E.charCodeAt(_)]<<18|r[E.charCodeAt(_+1)]<<12|r[E.charCodeAt(_+2)]<<6|r[E.charCodeAt(_+3)],b[k++]=f>>16&255,b[k++]=f>>8&255,b[k++]=255&f;return m===2&&(f=r[E.charCodeAt(_)]<<2|r[E.charCodeAt(_+1)]>>4,b[k++]=255&f),m===1&&(f=r[E.charCodeAt(_)]<<10|r[E.charCodeAt(_+1)]<<4|r[E.charCodeAt(_+2)]>>2,b[k++]=f>>8&255,b[k++]=255&f),b}function d(E){return o[E>>18&63]+o[E>>12&63]+o[E>>6&63]+o[63&E]}function u(E,f,T){for(var S,m=[],b=f;b<T;b+=3)S=(E[b]<<16&16711680)+(E[b+1]<<8&65280)+(255&E[b+2]),m.push(d(S));return m.join("")}function e(E){for(var f,T=E.length,S=T%3,m=[],b=0,k=T-S;b<k;b+=16383)m.push(u(E,b,b+16383>k?k:b+16383));return S===1?(f=E[T-1],m.push(o[f>>2]+o[f<<4&63]+"==")):S===2&&(f=(E[T-2]<<8)+E[T-1],m.push(o[f>>10]+o[f>>4&63]+o[f<<2&63]+"=")),m.join("")}v.byteLength=y,v.toByteArray=s,v.fromByteArray=e;for(var o=[],r=[],l=typeof Uint8Array!="undefined"?Uint8Array:Array,p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,x=p.length;c<x;++c)o[c]=p[c],r[p.charCodeAt(c)]=c;r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},{}],35:[function(n,A,v){!function(h,y,i){A!==void 0&&A.exports?A.exports=i():typeof pe=="function"&&pe.amd?pe("bowser",i):h.bowser=i()}(this,0,function(){function h(r){function l(q){var R=r.match(q);return R&&R.length>1&&R[1]||""}function p(q){var R=r.match(q);return R&&R.length>1&&R[2]||""}var c,x=l(/(ipod|iphone|ipad)/i).toLowerCase(),E=/like android/i.test(r),f=!E&&/android/i.test(r),T=/nexus\s*[0-6]\s*/i.test(r),S=!T&&/nexus\s*[0-9]+/i.test(r),m=/CrOS/.test(r),b=/silk/i.test(r),k=/sailfish/i.test(r),C=/tizen/i.test(r),_=/(web|hpw)os/i.test(r),j=/windows phone/i.test(r),D=(/SamsungBrowser/i.test(r),!j&&/windows/i.test(r)),M=!x&&!b&&/macintosh/i.test(r),L=!f&&!k&&!C&&!_&&/linux/i.test(r),z=p(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),W=l(/version\/(\d+(\.\d+)?)/i),G=/tablet/i.test(r)&&!/tablet pc/i.test(r),Z=!G&&/[^-]mobi/i.test(r),U=/xbox/i.test(r);/opera/i.test(r)?c={name:"Opera",opera:e,version:W||l(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(r)?c={name:"Opera",opera:e,version:l(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||W}:/SamsungBrowser/i.test(r)?c={name:"Samsung Internet for Android",samsungBrowser:e,version:W||l(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/coast/i.test(r)?c={name:"Opera Coast",coast:e,version:W||l(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/yabrowser/i.test(r)?c={name:"Yandex Browser",yandexbrowser:e,version:W||l(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(r)?c={name:"UC Browser",ucbrowser:e,version:l(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(r)?c={name:"Maxthon",maxthon:e,version:l(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(r)?c={name:"Epiphany",epiphany:e,version:l(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(r)?c={name:"Puffin",puffin:e,version:l(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(r)?c={name:"Sleipnir",sleipnir:e,version:l(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(r)?c={name:"K-Meleon",kMeleon:e,version:l(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:j?(c={name:"Windows Phone",osname:"Windows Phone",windowsphone:e},z?(c.msedge=e,c.version=z):(c.msie=e,c.version=l(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(r)?c={name:"Internet Explorer",msie:e,version:l(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:m?c={name:"Chrome",osname:"Chrome OS",chromeos:e,chromeBook:e,chrome:e,version:l(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(r)?c={name:"Microsoft Edge",msedge:e,version:z}:/vivaldi/i.test(r)?c={name:"Vivaldi",vivaldi:e,version:l(/vivaldi\/(\d+(\.\d+)?)/i)||W}:k?c={name:"Sailfish",osname:"Sailfish OS",sailfish:e,version:l(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(r)?c={name:"SeaMonkey",seamonkey:e,version:l(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(r)?(c={name:"Firefox",firefox:e,version:l(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(r)&&(c.firefoxos=e,c.osname="Firefox OS")):b?c={name:"Amazon Silk",silk:e,version:l(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(r)?c={name:"PhantomJS",phantom:e,version:l(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(r)?c={name:"SlimerJS",slimer:e,version:l(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(r)||/rim\stablet/i.test(r)?c={name:"BlackBerry",osname:"BlackBerry OS",blackberry:e,version:W||l(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:_?(c={name:"WebOS",osname:"WebOS",webos:e,version:W||l(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(r)&&(c.touchpad=e)):/bada/i.test(r)?c={name:"Bada",osname:"Bada",bada:e,version:l(/dolfin\/(\d+(\.\d+)?)/i)}:C?c={name:"Tizen",osname:"Tizen",tizen:e,version:l(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||W}:/qupzilla/i.test(r)?c={name:"QupZilla",qupzilla:e,version:l(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||W}:/chromium/i.test(r)?c={name:"Chromium",chromium:e,version:l(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||W}:/chrome|crios|crmo/i.test(r)?c={name:"Chrome",chrome:e,version:l(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:f?c={name:"Android",version:W}:/safari|applewebkit/i.test(r)?(c={name:"Safari",safari:e},W&&(c.version=W)):x?(c={name:x=="iphone"?"iPhone":x=="ipad"?"iPad":"iPod"},W&&(c.version=W)):c=/googlebot/i.test(r)?{name:"Googlebot",googlebot:e,version:l(/googlebot\/(\d+(\.\d+))/i)||W}:{name:l(/^(.*)\/(.*) /),version:p(/^(.*)\/(.*) /)},!c.msedge&&/(apple)?webkit/i.test(r)?(/(apple)?webkit\/537\.36/i.test(r)?(c.name=c.name||"Blink",c.blink=e):(c.name=c.name||"Webkit",c.webkit=e),!c.version&&W&&(c.version=W)):!c.opera&&/gecko\//i.test(r)&&(c.name=c.name||"Gecko",c.gecko=e,c.version=c.version||l(/gecko\/(\d+(\.\d+)?)/i)),c.windowsphone||!f&&!c.silk?!c.windowsphone&&x?(c[x]=e,c.ios=e,c.osname="iOS"):M?(c.mac=e,c.osname="macOS"):U?(c.xbox=e,c.osname="Xbox"):D?(c.windows=e,c.osname="Windows"):L&&(c.linux=e,c.osname="Linux"):(c.android=e,c.osname="Android");var ee="";c.windows?ee=function(q){switch(q){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}}(l(/Windows ((NT|XP)( \d\d?.\d)?)/i)):c.windowsphone?ee=l(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):c.mac?(ee=l(/Mac OS X (\d+([_\.\s]\d+)*)/i),ee=ee.replace(/[_\s]/g,".")):x?(ee=l(/os (\d+([_\s]\d+)*) like mac os x/i),ee=ee.replace(/[_\s]/g,".")):f?ee=l(/android[ \/-](\d+(\.\d+)*)/i):c.webos?ee=l(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):c.blackberry?ee=l(/rim\stablet\sos\s(\d+(\.\d+)*)/i):c.bada?ee=l(/bada\/(\d+(\.\d+)*)/i):c.tizen&&(ee=l(/tizen[\/\s](\d+(\.\d+)*)/i)),ee&&(c.osversion=ee);var $=!c.windows&&ee.split(".")[0];return G||S||x=="ipad"||f&&($==3||$>=4&&!Z)||c.silk?c.tablet=e:(Z||x=="iphone"||x=="ipod"||f||T||c.blackberry||c.webos||c.bada)&&(c.mobile=e),c.msedge||c.msie&&c.version>=10||c.yandexbrowser&&c.version>=15||c.vivaldi&&c.version>=1||c.chrome&&c.version>=20||c.samsungBrowser&&c.version>=4||c.firefox&&c.version>=20||c.safari&&c.version>=6||c.opera&&c.version>=10||c.ios&&c.osversion&&c.osversion.split(".")[0]>=6||c.blackberry&&c.version>=10.1||c.chromium&&c.version>=20?c.a=e:c.msie&&c.version<10||c.chrome&&c.version<20||c.firefox&&c.version<20||c.safari&&c.version<6||c.opera&&c.version<10||c.ios&&c.osversion&&c.osversion.split(".")[0]<6||c.chromium&&c.version<20?c.c=e:c.x=e,c}function y(r){return r.split(".").length}function i(r,l){var p,c=[];if(Array.prototype.map)return Array.prototype.map.call(r,l);for(p=0;p<r.length;p++)c.push(l(r[p]));return c}function s(r){for(var l=Math.max(y(r[0]),y(r[1])),p=i(r,function(c){var x=l-y(c);return c+=new Array(x+1).join(".0"),i(c.split("."),function(E){return new Array(20-E.length).join("0")+E}).reverse()});--l>=0;){if(p[0][l]>p[1][l])return 1;if(p[0][l]!==p[1][l])return-1;if(l===0)return 0}}function d(r,l,p){var c=o;typeof l=="string"&&(p=l,l=void 0),l===void 0&&(l=!1),p&&(c=h(p));var x=""+c.version;for(var E in r)if(r.hasOwnProperty(E)&&c[E]){if(typeof r[E]!="string")throw new Error("Browser version in the minVersion map should be a string: "+E+": "+String(r));return s([x,r[E]])<0}return l}function u(r,l,p){return!d(r,l,p)}var e=!0,o=h(typeof navigator!="undefined"&&navigator.userAgent||"");return o.test=function(r){for(var l=0;l<r.length;++l){var p=r[l];if(typeof p=="string"&&p in o)return!0}return!1},o.isUnsupportedBrowser=d,o.compareVersions=s,o.check=u,o._detect=h,o.detect=h,o})},{}],36:[function(n,A,v){},{}],37:[function(n,A,v){function h(o){if(o&&!u(o))throw new Error("Unknown encoding: "+o)}function y(o){return o.toString(this.encoding)}function i(o){this.charReceived=o.length%2,this.charLength=this.charReceived?2:0}function s(o){this.charReceived=o.length%3,this.charLength=this.charReceived?3:0}var d=n("buffer").Buffer,u=d.isEncoding||function(o){switch(o&&o.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}},e=v.StringDecoder=function(o){switch(this.encoding=(o||"utf8").toLowerCase().replace(/[-_]/,""),h(o),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=i;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=s;break;default:return void(this.write=y)}this.charBuffer=new d(6),this.charReceived=0,this.charLength=0};e.prototype.write=function(o){for(var r="";this.charLength;){var l=o.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:o.length;if(o.copy(this.charBuffer,this.charReceived,0,l),this.charReceived+=l,this.charReceived<this.charLength)return"";o=o.slice(l,o.length),r=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var c=r.charCodeAt(r.length-1);if(!(c>=55296&&c<=56319)){if(this.charReceived=this.charLength=0,o.length===0)return r;break}this.charLength+=this.surrogateSize,r=""}this.detectIncompleteChar(o);var p=o.length;this.charLength&&(o.copy(this.charBuffer,0,o.length-this.charReceived,p),p-=this.charReceived),r+=o.toString(this.encoding,0,p);var p=r.length-1,c=r.charCodeAt(p);if(c>=55296&&c<=56319){var x=this.surrogateSize;return this.charLength+=x,this.charReceived+=x,this.charBuffer.copy(this.charBuffer,x,0,x),o.copy(this.charBuffer,0,0,x),r.substring(0,p)}return r},e.prototype.detectIncompleteChar=function(o){for(var r=o.length>=3?3:o.length;r>0;r--){var l=o[o.length-r];if(r==1&&l>>5==6){this.charLength=2;break}if(r<=2&&l>>4==14){this.charLength=3;break}if(r<=3&&l>>3==30){this.charLength=4;break}}this.charReceived=r},e.prototype.end=function(o){var r="";if(o&&o.length&&(r=this.write(o)),this.charReceived){var l=this.charReceived,p=this.charBuffer,c=this.encoding;r+=p.slice(0,l).toString(c)}return r}},{buffer:38}],38:[function(n,A,v){(function(h){"use strict";function y(){return s.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function i(t,a){if(y()<a)throw new RangeError("Invalid typed array length");return s.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(a),t.__proto__=s.prototype):(t===null&&(t=new s(a)),t.length=a),t}function s(t,a,P){if(!(s.TYPED_ARRAY_SUPPORT||this instanceof s))return new s(t,a,P);if(typeof t=="number"){if(typeof a=="string")throw new Error("If encoding is specified then the first argument must be a string");return o(this,t)}return d(this,t,a,P)}function d(t,a,P,g){if(typeof a=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&a instanceof ArrayBuffer?p(t,a,P,g):typeof a=="string"?r(t,a,P):c(t,a)}function u(t){if(typeof t!="number")throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function e(t,a,P,g){return u(a),a<=0?i(t,a):P!==void 0?typeof g=="string"?i(t,a).fill(P,g):i(t,a).fill(P):i(t,a)}function o(t,a){if(u(a),t=i(t,a<0?0:0|x(a)),!s.TYPED_ARRAY_SUPPORT)for(var P=0;P<a;++P)t[P]=0;return t}function r(t,a,P){if(typeof P=="string"&&P!==""||(P="utf8"),!s.isEncoding(P))throw new TypeError('"encoding" must be a valid string encoding');var g=0|f(a,P);t=i(t,g);var w=t.write(a,P);return w!==g&&(t=t.slice(0,w)),t}function l(t,a){var P=a.length<0?0:0|x(a.length);t=i(t,P);for(var g=0;g<P;g+=1)t[g]=255&a[g];return t}function p(t,a,P,g){if(a.byteLength,P<0||a.byteLength<P)throw new RangeError("'offset' is out of bounds");if(a.byteLength<P+(g||0))throw new RangeError("'length' is out of bounds");return a=P===void 0&&g===void 0?new Uint8Array(a):g===void 0?new Uint8Array(a,P):new Uint8Array(a,P,g),s.TYPED_ARRAY_SUPPORT?(t=a,t.__proto__=s.prototype):t=l(t,a),t}function c(t,a){if(s.isBuffer(a)){var P=0|x(a.length);return t=i(t,P),t.length===0||a.copy(t,0,0,P),t}if(a){if(typeof ArrayBuffer!="undefined"&&a.buffer instanceof ArrayBuffer||"length"in a)return typeof a.length!="number"||X(a.length)?i(t,0):l(t,a);if(a.type==="Buffer"&&ne(a.data))return l(t,a.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function x(t){if(t>=y())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+y().toString(16)+" bytes");return 0|t}function E(t){return+t!=t&&(t=0),s.alloc(+t)}function f(t,a){if(s.isBuffer(t))return t.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;typeof t!="string"&&(t=""+t);var P=t.length;if(P===0)return 0;for(var g=!1;;)switch(a){case"ascii":case"latin1":case"binary":return P;case"utf8":case"utf-8":case void 0:return ue(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*P;case"hex":return P>>>1;case"base64":return J(t).length;default:if(g)return ue(t).length;a=(""+a).toLowerCase(),g=!0}}function T(t,a,P){var g=!1;if((a===void 0||a<0)&&(a=0),a>this.length)return"";if((P===void 0||P>this.length)&&(P=this.length),P<=0)return"";if(P>>>=0,a>>>=0,P<=a)return"";for(t||(t="utf8");;)switch(t){case"hex":return U(this,a,P);case"utf8":case"utf-8":return z(this,a,P);case"ascii":return G(this,a,P);case"latin1":case"binary":return Z(this,a,P);case"base64":return L(this,a,P);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ee(this,a,P);default:if(g)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),g=!0}}function S(t,a,P){var g=t[a];t[a]=t[P],t[P]=g}function m(t,a,P,g,w){if(t.length===0)return-1;if(typeof P=="string"?(g=P,P=0):P>2147483647?P=2147483647:P<-2147483648&&(P=-2147483648),P=+P,isNaN(P)&&(P=w?0:t.length-1),P<0&&(P=t.length+P),P>=t.length){if(w)return-1;P=t.length-1}else if(P<0){if(!w)return-1;P=0}if(typeof a=="string"&&(a=s.from(a,g)),s.isBuffer(a))return a.length===0?-1:b(t,a,P,g,w);if(typeof a=="number")return a&=255,s.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?w?Uint8Array.prototype.indexOf.call(t,a,P):Uint8Array.prototype.lastIndexOf.call(t,a,P):b(t,[a],P,g,w);throw new TypeError("val must be string, number or Buffer")}function b(t,a,P,g,w){function V(oe,ye){return K===1?oe[ye]:oe.readUInt16BE(ye*K)}var K=1,fe=t.length,le=a.length;if(g!==void 0&&((g=String(g).toLowerCase())==="ucs2"||g==="ucs-2"||g==="utf16le"||g==="utf-16le")){if(t.length<2||a.length<2)return-1;K=2,fe/=2,le/=2,P/=2}var me;if(w){var ge=-1;for(me=P;me<fe;me++)if(V(t,me)===V(a,ge===-1?0:me-ge)){if(ge===-1&&(ge=me),me-ge+1===le)return ge*K}else ge!==-1&&(me-=me-ge),ge=-1}else for(P+le>fe&&(P=fe-le),me=P;me>=0;me--){for(var ve=!0,he=0;he<le;he++)if(V(t,me+he)!==V(a,he)){ve=!1;break}if(ve)return me}return-1}function k(t,a,P,g){P=Number(P)||0;var w=t.length-P;g?(g=Number(g))>w&&(g=w):g=w;var V=a.length;if(V%2!=0)throw new TypeError("Invalid hex string");g>V/2&&(g=V/2);for(var K=0;K<g;++K){var fe=parseInt(a.substr(2*K,2),16);if(isNaN(fe))return K;t[P+K]=fe}return K}function C(t,a,P,g){return ie(ue(a,t.length-P),t,P,g)}function _(t,a,P,g){return ie(de(a),t,P,g)}function j(t,a,P,g){return _(t,a,P,g)}function D(t,a,P,g){return ie(J(a),t,P,g)}function M(t,a,P,g){return ie(Q(a,t.length-P),t,P,g)}function L(t,a,P){return a===0&&P===t.length?B.fromByteArray(t):B.fromByteArray(t.slice(a,P))}function z(t,a,P){P=Math.min(t.length,P);for(var g=[],w=a;w<P;){var V=t[w],K=null,fe=V>239?4:V>223?3:V>191?2:1;if(w+fe<=P){var le,me,ge,ve;switch(fe){case 1:V<128&&(K=V);break;case 2:le=t[w+1],(192&le)==128&&(ve=(31&V)<<6|63&le)>127&&(K=ve);break;case 3:le=t[w+1],me=t[w+2],(192&le)==128&&(192&me)==128&&(ve=(15&V)<<12|(63&le)<<6|63&me)>2047&&(ve<55296||ve>57343)&&(K=ve);break;case 4:le=t[w+1],me=t[w+2],ge=t[w+3],(192&le)==128&&(192&me)==128&&(192&ge)==128&&(ve=(15&V)<<18|(63&le)<<12|(63&me)<<6|63&ge)>65535&&ve<1114112&&(K=ve)}}K===null?(K=65533,fe=1):K>65535&&(K-=65536,g.push(K>>>10&1023|55296),K=56320|1023&K),g.push(K),w+=fe}return W(g)}function W(t){var a=t.length;if(a<=ce)return String.fromCharCode.apply(String,t);for(var P="",g=0;g<a;)P+=String.fromCharCode.apply(String,t.slice(g,g+=ce));return P}function G(t,a,P){var g="";P=Math.min(t.length,P);for(var w=a;w<P;++w)g+=String.fromCharCode(127&t[w]);return g}function Z(t,a,P){var g="";P=Math.min(t.length,P);for(var w=a;w<P;++w)g+=String.fromCharCode(t[w]);return g}function U(t,a,P){var g=t.length;(!a||a<0)&&(a=0),(!P||P<0||P>g)&&(P=g);for(var w="",V=a;V<P;++V)w+=te(t[V]);return w}function ee(t,a,P){for(var g=t.slice(a,P),w="",V=0;V<g.length;V+=2)w+=String.fromCharCode(g[V]+256*g[V+1]);return w}function $(t,a,P){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+a>P)throw new RangeError("Trying to access beyond buffer length")}function q(t,a,P,g,w,V){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(a>w||a<V)throw new RangeError('"value" argument is out of bounds');if(P+g>t.length)throw new RangeError("Index out of range")}function R(t,a,P,g){a<0&&(a=65535+a+1);for(var w=0,V=Math.min(t.length-P,2);w<V;++w)t[P+w]=(a&255<<8*(g?w:1-w))>>>8*(g?w:1-w)}function I(t,a,P,g){a<0&&(a=4294967295+a+1);for(var w=0,V=Math.min(t.length-P,4);w<V;++w)t[P+w]=a>>>8*(g?w:3-w)&255}function F(t,a,P,g,w,V){if(P+g>t.length)throw new RangeError("Index out of range");if(P<0)throw new RangeError("Index out of range")}function N(t,a,P,g,w){return w||F(t,a,P,4,34028234663852886e22,-34028234663852886e22),re.write(t,a,P,g,23,4),P+4}function H(t,a,P,g,w){return w||F(t,a,P,8,17976931348623157e292,-17976931348623157e292),re.write(t,a,P,g,52,8),P+8}function Y(t){if(t=ae(t).replace(O,""),t.length<2)return"";for(;t.length%4!=0;)t+="=";return t}function ae(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function te(t){return t<16?"0"+t.toString(16):t.toString(16)}function ue(t,a){a=a||1/0;for(var P,g=t.length,w=null,V=[],K=0;K<g;++K){if((P=t.charCodeAt(K))>55295&&P<57344){if(!w){if(P>56319){(a-=3)>-1&&V.push(239,191,189);continue}if(K+1===g){(a-=3)>-1&&V.push(239,191,189);continue}w=P;continue}if(P<56320){(a-=3)>-1&&V.push(239,191,189),w=P;continue}P=65536+(w-55296<<10|P-56320)}else w&&(a-=3)>-1&&V.push(239,191,189);if(w=null,P<128){if((a-=1)<0)break;V.push(P)}else if(P<2048){if((a-=2)<0)break;V.push(P>>6|192,63&P|128)}else if(P<65536){if((a-=3)<0)break;V.push(P>>12|224,P>>6&63|128,63&P|128)}else{if(!(P<1114112))throw new Error("Invalid code point");if((a-=4)<0)break;V.push(P>>18|240,P>>12&63|128,P>>6&63|128,63&P|128)}}return V}function de(t){for(var a=[],P=0;P<t.length;++P)a.push(255&t.charCodeAt(P));return a}function Q(t,a){for(var P,g,w,V=[],K=0;K<t.length&&!((a-=2)<0);++K)P=t.charCodeAt(K),g=P>>8,w=P%256,V.push(w),V.push(g);return V}function J(t){return B.toByteArray(Y(t))}function ie(t,a,P,g){for(var w=0;w<g&&!(w+P>=a.length||w>=t.length);++w)a[w+P]=t[w];return w}function X(t){return t!==t}var B=n("base64-js"),re=n("ieee754"),ne=n("isarray");v.Buffer=s,v.SlowBuffer=E,v.INSPECT_MAX_BYTES=50,s.TYPED_ARRAY_SUPPORT=h.TYPED_ARRAY_SUPPORT!==void 0?h.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},t.foo()===42&&typeof t.subarray=="function"&&t.subarray(1,1).byteLength===0}catch(a){return!1}}(),v.kMaxLength=y(),s.poolSize=8192,s._augment=function(t){return t.__proto__=s.prototype,t},s.from=function(t,a,P){return d(null,t,a,P)},s.TYPED_ARRAY_SUPPORT&&(s.prototype.__proto__=Uint8Array.prototype,s.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&s[Symbol.species]===s&&Object.defineProperty(s,Symbol.species,{value:null,configurable:!0})),s.alloc=function(t,a,P){return e(null,t,a,P)},s.allocUnsafe=function(t){return o(null,t)},s.allocUnsafeSlow=function(t){return o(null,t)},s.isBuffer=function(t){return!(t==null||!t._isBuffer)},s.compare=function(t,a){if(!s.isBuffer(t)||!s.isBuffer(a))throw new TypeError("Arguments must be Buffers");if(t===a)return 0;for(var P=t.length,g=a.length,w=0,V=Math.min(P,g);w<V;++w)if(t[w]!==a[w]){P=t[w],g=a[w];break}return P<g?-1:g<P?1:0},s.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(t,a){if(!ne(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return s.alloc(0);var P;if(a===void 0)for(a=0,P=0;P<t.length;++P)a+=t[P].length;var g=s.allocUnsafe(a),w=0;for(P=0;P<t.length;++P){var V=t[P];if(!s.isBuffer(V))throw new TypeError('"list" argument must be an Array of Buffers');V.copy(g,w),w+=V.length}return g},s.byteLength=f,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var a=0;a<t;a+=2)S(this,a,a+1);return this},s.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var a=0;a<t;a+=4)S(this,a,a+3),S(this,a+1,a+2);return this},s.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var a=0;a<t;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},s.prototype.toString=function(){var t=0|this.length;return t===0?"":arguments.length===0?z(this,0,t):T.apply(this,arguments)},s.prototype.equals=function(t){if(!s.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||s.compare(this,t)===0},s.prototype.inspect=function(){var t="",a=v.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,a).match(/.{2}/g).join(" "),this.length>a&&(t+=" ... ")),"<Buffer "+t+">"},s.prototype.compare=function(t,a,P,g,w){if(!s.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(a===void 0&&(a=0),P===void 0&&(P=t?t.length:0),g===void 0&&(g=0),w===void 0&&(w=this.length),a<0||P>t.length||g<0||w>this.length)throw new RangeError("out of range index");if(g>=w&&a>=P)return 0;if(g>=w)return-1;if(a>=P)return 1;if(a>>>=0,P>>>=0,g>>>=0,w>>>=0,this===t)return 0;for(var V=w-g,K=P-a,fe=Math.min(V,K),le=this.slice(g,w),me=t.slice(a,P),ge=0;ge<fe;++ge)if(le[ge]!==me[ge]){V=le[ge],K=me[ge];break}return V<K?-1:K<V?1:0},s.prototype.includes=function(t,a,P){return this.indexOf(t,a,P)!==-1},s.prototype.indexOf=function(t,a,P){return m(this,t,a,P,!0)},s.prototype.lastIndexOf=function(t,a,P){return m(this,t,a,P,!1)},s.prototype.write=function(t,a,P,g){if(a===void 0)g="utf8",P=this.length,a=0;else if(P===void 0&&typeof a=="string")g=a,P=this.length,a=0;else{if(!isFinite(a))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");a|=0,isFinite(P)?(P|=0,g===void 0&&(g="utf8")):(g=P,P=void 0)}var w=this.length-a;if((P===void 0||P>w)&&(P=w),t.length>0&&(P<0||a<0)||a>this.length)throw new RangeError("Attempt to write outside buffer bounds");g||(g="utf8");for(var V=!1;;)switch(g){case"hex":return k(this,t,a,P);case"utf8":case"utf-8":return C(this,t,a,P);case"ascii":return _(this,t,a,P);case"latin1":case"binary":return j(this,t,a,P);case"base64":return D(this,t,a,P);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,a,P);default:if(V)throw new TypeError("Unknown encoding: "+g);g=(""+g).toLowerCase(),V=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ce=4096;s.prototype.slice=function(t,a){var P=this.length;t=~~t,a=a===void 0?P:~~a,t<0?(t+=P)<0&&(t=0):t>P&&(t=P),a<0?(a+=P)<0&&(a=0):a>P&&(a=P),a<t&&(a=t);var g;if(s.TYPED_ARRAY_SUPPORT)g=this.subarray(t,a),g.__proto__=s.prototype;else{var w=a-t;g=new s(w,void 0);for(var V=0;V<w;++V)g[V]=this[V+t]}return g},s.prototype.readUIntLE=function(t,a,P){t|=0,a|=0,P||$(t,a,this.length);for(var g=this[t],w=1,V=0;++V<a&&(w*=256);)g+=this[t+V]*w;return g},s.prototype.readUIntBE=function(t,a,P){t|=0,a|=0,P||$(t,a,this.length);for(var g=this[t+--a],w=1;a>0&&(w*=256);)g+=this[t+--a]*w;return g},s.prototype.readUInt8=function(t,a){return a||$(t,1,this.length),this[t]},s.prototype.readUInt16LE=function(t,a){return a||$(t,2,this.length),this[t]|this[t+1]<<8},s.prototype.readUInt16BE=function(t,a){return a||$(t,2,this.length),this[t]<<8|this[t+1]},s.prototype.readUInt32LE=function(t,a){return a||$(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},s.prototype.readUInt32BE=function(t,a){return a||$(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},s.prototype.readIntLE=function(t,a,P){t|=0,a|=0,P||$(t,a,this.length);for(var g=this[t],w=1,V=0;++V<a&&(w*=256);)g+=this[t+V]*w;return w*=128,g>=w&&(g-=Math.pow(2,8*a)),g},s.prototype.readIntBE=function(t,a,P){t|=0,a|=0,P||$(t,a,this.length);for(var g=a,w=1,V=this[t+--g];g>0&&(w*=256);)V+=this[t+--g]*w;return w*=128,V>=w&&(V-=Math.pow(2,8*a)),V},s.prototype.readInt8=function(t,a){return a||$(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},s.prototype.readInt16LE=function(t,a){a||$(t,2,this.length);var P=this[t]|this[t+1]<<8;return 32768&P?4294901760|P:P},s.prototype.readInt16BE=function(t,a){a||$(t,2,this.length);var P=this[t+1]|this[t]<<8;return 32768&P?4294901760|P:P},s.prototype.readInt32LE=function(t,a){return a||$(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},s.prototype.readInt32BE=function(t,a){return a||$(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},s.prototype.readFloatLE=function(t,a){return a||$(t,4,this.length),re.read(this,t,!0,23,4)},s.prototype.readFloatBE=function(t,a){return a||$(t,4,this.length),re.read(this,t,!1,23,4)},s.prototype.readDoubleLE=function(t,a){return a||$(t,8,this.length),re.read(this,t,!0,52,8)},s.prototype.readDoubleBE=function(t,a){return a||$(t,8,this.length),re.read(this,t,!1,52,8)},s.prototype.writeUIntLE=function(t,a,P,g){(t=+t,a|=0,P|=0,!g)&&q(this,t,a,P,Math.pow(2,8*P)-1,0);var w=1,V=0;for(this[a]=255&t;++V<P&&(w*=256);)this[a+V]=t/w&255;return a+P},s.prototype.writeUIntBE=function(t,a,P,g){(t=+t,a|=0,P|=0,!g)&&q(this,t,a,P,Math.pow(2,8*P)-1,0);var w=P-1,V=1;for(this[a+w]=255&t;--w>=0&&(V*=256);)this[a+w]=t/V&255;return a+P},s.prototype.writeUInt8=function(t,a,P){return t=+t,a|=0,P||q(this,t,a,1,255,0),s.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[a]=255&t,a+1},s.prototype.writeUInt16LE=function(t,a,P){return t=+t,a|=0,P||q(this,t,a,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[a]=255&t,this[a+1]=t>>>8):R(this,t,a,!0),a+2},s.prototype.writeUInt16BE=function(t,a,P){return t=+t,a|=0,P||q(this,t,a,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[a]=t>>>8,this[a+1]=255&t):R(this,t,a,!1),a+2},s.prototype.writeUInt32LE=function(t,a,P){return t=+t,a|=0,P||q(this,t,a,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[a+3]=t>>>24,this[a+2]=t>>>16,this[a+1]=t>>>8,this[a]=255&t):I(this,t,a,!0),a+4},s.prototype.writeUInt32BE=function(t,a,P){return t=+t,a|=0,P||q(this,t,a,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[a]=t>>>24,this[a+1]=t>>>16,this[a+2]=t>>>8,this[a+3]=255&t):I(this,t,a,!1),a+4},s.prototype.writeIntLE=function(t,a,P,g){if(t=+t,a|=0,!g){var w=Math.pow(2,8*P-1);q(this,t,a,P,w-1,-w)}var V=0,K=1,fe=0;for(this[a]=255&t;++V<P&&(K*=256);)t<0&&fe===0&&this[a+V-1]!==0&&(fe=1),this[a+V]=(t/K>>0)-fe&255;return a+P},s.prototype.writeIntBE=function(t,a,P,g){if(t=+t,a|=0,!g){var w=Math.pow(2,8*P-1);q(this,t,a,P,w-1,-w)}var V=P-1,K=1,fe=0;for(this[a+V]=255&t;--V>=0&&(K*=256);)t<0&&fe===0&&this[a+V+1]!==0&&(fe=1),this[a+V]=(t/K>>0)-fe&255;return a+P},s.prototype.writeInt8=function(t,a,P){return t=+t,a|=0,P||q(this,t,a,1,127,-128),s.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[a]=255&t,a+1},s.prototype.writeInt16LE=function(t,a,P){return t=+t,a|=0,P||q(this,t,a,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[a]=255&t,this[a+1]=t>>>8):R(this,t,a,!0),a+2},s.prototype.writeInt16BE=function(t,a,P){return t=+t,a|=0,P||q(this,t,a,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[a]=t>>>8,this[a+1]=255&t):R(this,t,a,!1),a+2},s.prototype.writeInt32LE=function(t,a,P){return t=+t,a|=0,P||q(this,t,a,4,2147483647,-2147483648),s.TYPED_ARRAY_SUPPORT?(this[a]=255&t,this[a+1]=t>>>8,this[a+2]=t>>>16,this[a+3]=t>>>24):I(this,t,a,!0),a+4},s.prototype.writeInt32BE=function(t,a,P){return t=+t,a|=0,P||q(this,t,a,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),s.TYPED_ARRAY_SUPPORT?(this[a]=t>>>24,this[a+1]=t>>>16,this[a+2]=t>>>8,this[a+3]=255&t):I(this,t,a,!1),a+4},s.prototype.writeFloatLE=function(t,a,P){return N(this,t,a,!0,P)},s.prototype.writeFloatBE=function(t,a,P){return N(this,t,a,!1,P)},s.prototype.writeDoubleLE=function(t,a,P){return H(this,t,a,!0,P)},s.prototype.writeDoubleBE=function(t,a,P){return H(this,t,a,!1,P)},s.prototype.copy=function(t,a,P,g){if(P||(P=0),g||g===0||(g=this.length),a>=t.length&&(a=t.length),a||(a=0),g>0&&g<P&&(g=P),g===P)return 0;if(t.length===0||this.length===0)return 0;if(a<0)throw new RangeError("targetStart out of bounds");if(P<0||P>=this.length)throw new RangeError("sourceStart out of bounds");if(g<0)throw new RangeError("sourceEnd out of bounds");g>this.length&&(g=this.length),t.length-a<g-P&&(g=t.length-a+P);var w,V=g-P;if(this===t&&P<a&&a<g)for(w=V-1;w>=0;--w)t[w+a]=this[w+P];else if(V<1e3||!s.TYPED_ARRAY_SUPPORT)for(w=0;w<V;++w)t[w+a]=this[w+P];else Uint8Array.prototype.set.call(t,this.subarray(P,P+V),a);return V},s.prototype.fill=function(t,a,P,g){if(typeof t=="string"){if(typeof a=="string"?(g=a,a=0,P=this.length):typeof P=="string"&&(g=P,P=this.length),t.length===1){var w=t.charCodeAt(0);w<256&&(t=w)}if(g!==void 0&&typeof g!="string")throw new TypeError("encoding must be a string");if(typeof g=="string"&&!s.isEncoding(g))throw new TypeError("Unknown encoding: "+g)}else typeof t=="number"&&(t&=255);if(a<0||this.length<a||this.length<P)throw new RangeError("Out of range index");if(P<=a)return this;a>>>=0,P=P===void 0?this.length:P>>>0,t||(t=0);var V;if(typeof t=="number")for(V=a;V<P;++V)this[V]=t;else{var K=s.isBuffer(t)?t:ue(new s(t,g).toString()),fe=K.length;for(V=0;V<P-a;++V)this[V+a]=K[V%fe]}return this};var O=/[^+\/0-9A-Za-z-_]/g}).call(this,typeof Ae!="undefined"?Ae:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"base64-js":34,ieee754:161,isarray:166}],39:[function(n,A,v){A.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"}},{}],40:[function(n,A,v){"use strict";var h=function(){this.buffer=[],this.fns=[]};h.prototype.push=function(i,s){if(this.fns.length)return this.fns.shift()(null,i);var d={data:i,priority:s},u=y(this.buffer,d,function(e){return e.priority});this.buffer.splice(u,0,d)},h.prototype.next=function(){var i=this;return function(s){if(i.buffer.length)return s(null,i.buffer.pop().data);i.fns.push(s)}};var y=function(s,d,u){d=u(d);for(var e=0,o=s?s.length:e;e<o;){var r=e+o>>>1;u(s[r])<d?e=r+1:o=r}return e};A.exports=h},{}],41:[function(n,A,v){function h(p){var c=this,x=l.call(arguments,1);return new Promise(function(E,f){function T(b){var k;try{k=p.next(b)}catch(C){return f(C)}m(k)}function S(b){var k;try{k=p.throw(b)}catch(C){return f(C)}m(k)}function m(b){if(b.done)return E(b.value);var k=y.call(c,b.value);return k&&u(k)?k.then(T,S):S(new TypeError('You may only yield a function, promise, generator, array, or object, but the following object was passed: "'+String(b.value)+'"'))}if(typeof p=="function"&&(p=p.apply(c,x)),!p||typeof p.next!="function")return E(p);T()})}function y(p){return p&&(u(p)?p:o(p)||e(p)?h.call(this,p):typeof p=="function"?i.call(this,p):Array.isArray(p)?s.call(this,p):r(p)?d.call(this,p):p)}function i(p){var c=this;return new Promise(function(x,E){p.call(c,function(f,T){if(f)return E(f);arguments.length>2&&(T=l.call(arguments,1)),x(T)})})}function s(p){return Promise.all(p.map(y,this))}function d(p){for(var c=new p.constructor,x=Object.keys(p),E=[],f=0;f<x.length;f++){var T=x[f],S=y.call(this,p[T]);S&&u(S)?function(m,b){c[b]=void 0,E.push(m.then(function(k){c[b]=k}))}(S,T):c[T]=p[T]}return Promise.all(E).then(function(){return c})}function u(p){return typeof p.then=="function"}function e(p){return typeof p.next=="function"&&typeof p.throw=="function"}function o(p){var c=p.constructor;return!!c&&(c.name==="GeneratorFunction"||c.displayName==="GeneratorFunction"||e(c.prototype))}function r(p){return Object==p.constructor}var l=Array.prototype.slice;A.exports=h.default=h.co=h,h.wrap=function(p){function c(){return h.call(this,p.apply(this,arguments))}return c.__generatorFunction__=p,c}},{}],42:[function(n,A,v){A.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}},{}],43:[function(n,A,v){"use strict";function h(s,d){if(!(this instanceof h))return new h(s,d);this.src=s,this._withAccess=d}function y(s,d){return s[d]===void 0&&s.__lookupGetter__(d)===void 0&&s.__lookupSetter__(d)===void 0}var i=Array.prototype.slice;A.exports=h,h.prototype.withAccess=function(s){return this._withAccess=s!==!1,this},h.prototype.pick=function(s){return Array.isArray(s)||(s=i.call(arguments)),s.length&&(this.keys=s),this},h.prototype.to=function(s){if(s=s||{},!this.src)return s;var d=this.keys||Object.keys(this.src);if(!this._withAccess){for(var u=0;u<d.length;u++)e=d[u],s[e]===void 0&&(s[e]=this.src[e]);return s}for(var u=0;u<d.length;u++){var e=d[u];if(y(s,e)){var o=this.src.__lookupGetter__(e),r=this.src.__lookupSetter__(e);o&&s.__defineGetter__(e,o),r&&s.__defineSetter__(e,r),o||r||(s[e]=this.src[e])}}return s},h.prototype.toCover=function(s){for(var d=this.keys||Object.keys(this.src),u=0;u<d.length;u++){var e=d[u];delete s[e];var o=this.src.__lookupGetter__(e),r=this.src.__lookupSetter__(e);o&&s.__defineGetter__(e,o),r&&s.__defineSetter__(e,r),o||r||(s[e]=this.src[e])}},h.prototype.override=h.prototype.toCover,h.prototype.and=function(s){var d={};return this.to(d),this.src=s,this.to(d),this.src=d,this}},{}],44:[function(n,A,v){n("../../modules/es6.string.iterator"),n("../../modules/es6.array.from"),A.exports=n("../../modules/_core").Array.from},{"../../modules/_core":65,"../../modules/es6.array.from":133,"../../modules/es6.string.iterator":145}],45:[function(n,A,v){var h=n("../../modules/_core"),y=h.JSON||(h.JSON={stringify:JSON.stringify});A.exports=function(i){return y.stringify.apply(y,arguments)}},{"../../modules/_core":65}],46:[function(n,A,v){n("../../modules/es6.object.assign"),A.exports=n("../../modules/_core").Object.assign},{"../../modules/_core":65,"../../modules/es6.object.assign":136}],47:[function(n,A,v){n("../../modules/es6.object.create");var h=n("../../modules/_core").Object;A.exports=function(y,i){return h.create(y,i)}},{"../../modules/_core":65,"../../modules/es6.object.create":137}],48:[function(n,A,v){n("../../modules/es6.object.define-property");var h=n("../../modules/_core").Object;A.exports=function(y,i,s){return h.defineProperty(y,i,s)}},{"../../modules/_core":65,"../../modules/es6.object.define-property":138}],49:[function(n,A,v){n("../../modules/es6.object.get-own-property-names");var h=n("../../modules/_core").Object;A.exports=function(y){return h.getOwnPropertyNames(y)}},{"../../modules/_core":65,"../../modules/es6.object.get-own-property-names":139}],50:[function(n,A,v){n("../../modules/es6.object.get-prototype-of"),A.exports=n("../../modules/_core").Object.getPrototypeOf},{"../../modules/_core":65,"../../modules/es6.object.get-prototype-of":140}],51:[function(n,A,v){n("../../modules/es6.object.keys"),A.exports=n("../../modules/_core").Object.keys},{"../../modules/_core":65,"../../modules/es6.object.keys":141}],52:[function(n,A,v){n("../modules/es6.object.to-string"),n("../modules/es6.string.iterator"),n("../modules/web.dom.iterable"),n("../modules/es6.promise"),n("../modules/es7.promise.finally"),n("../modules/es7.promise.try"),A.exports=n("../modules/_core").Promise},{"../modules/_core":65,"../modules/es6.object.to-string":142,"../modules/es6.promise":143,"../modules/es6.string.iterator":145,"../modules/es7.promise.finally":147,"../modules/es7.promise.try":148,"../modules/web.dom.iterable":151}],53:[function(n,A,v){n("../modules/web.immediate"),A.exports=n("../modules/_core").setImmediate},{"../modules/_core":65,"../modules/web.immediate":152}],54:[function(n,A,v){n("../../modules/es6.string.from-code-point"),A.exports=n("../../modules/_core").String.fromCodePoint},{"../../modules/_core":65,"../../modules/es6.string.from-code-point":144}],55:[function(n,A,v){n("../../modules/es6.function.has-instance"),A.exports=n("../../modules/_wks-ext").f("hasInstance")},{"../../modules/_wks-ext":130,"../../modules/es6.function.has-instance":135}],56:[function(n,A,v){n("../../modules/es6.symbol"),n("../../modules/es6.object.to-string"),n("../../modules/es7.symbol.async-iterator"),n("../../modules/es7.symbol.observable"),A.exports=n("../../modules/_core").Symbol},{"../../modules/_core":65,"../../modules/es6.object.to-string":142,"../../modules/es6.symbol":146,"../../modules/es7.symbol.async-iterator":149,"../../modules/es7.symbol.observable":150}],57:[function(n,A,v){n("../../modules/es6.string.iterator"),n("../../modules/web.dom.iterable"),A.exports=n("../../modules/_wks-ext").f("iterator")},{"../../modules/_wks-ext":130,"../../modules/es6.string.iterator":145,"../../modules/web.dom.iterable":151}],58:[function(n,A,v){A.exports=function(h){if(typeof h!="function")throw TypeError(h+" is not a function!");return h}},{}],59:[function(n,A,v){A.exports=function(){}},{}],60:[function(n,A,v){A.exports=function(h,y,i,s){if(!(h instanceof y)||s!==void 0&&s in h)throw TypeError(i+": incorrect invocation!");return h}},{}],61:[function(n,A,v){var h=n("./_is-object");A.exports=function(y){if(!h(y))throw TypeError(y+" is not an object!");return y}},{"./_is-object":85}],62:[function(n,A,v){var h=n("./_to-iobject"),y=n("./_to-length"),i=n("./_to-absolute-index");A.exports=function(s){return function(d,u,e){var o,r=h(d),l=y(r.length),p=i(e,l);if(s&&u!=u){for(;l>p;)if((o=r[p++])!=o)return!0}else for(;l>p;p++)if((s||p in r)&&r[p]===u)return s||p||0;return!s&&-1}}},{"./_to-absolute-index":121,"./_to-iobject":123,"./_to-length":124}],63:[function(n,A,v){var h=n("./_cof"),y=n("./_wks")("toStringTag"),i=h(function(){return arguments}())=="Arguments",s=function(u,e){try{return u[e]}catch(o){}};A.exports=function(d){var u,e,o;return d===void 0?"Undefined":d===null?"Null":typeof(e=s(u=Object(d),y))=="string"?e:i?h(u):(o=h(u))=="Object"&&typeof u.callee=="function"?"Arguments":o}},{"./_cof":64,"./_wks":131}],64:[function(n,A,v){var h={}.toString;A.exports=function(y){return h.call(y).slice(8,-1)}},{}],65:[function(n,A,v){var h=A.exports={version:"2.5.7"};typeof __e=="number"&&(__e=h)},{}],66:[function(n,A,v){"use strict";var h=n("./_object-dp"),y=n("./_property-desc");A.exports=function(i,s,d){s in i?h.f(i,s,y(0,d)):i[s]=d}},{"./_object-dp":98,"./_property-desc":111}],67:[function(n,A,v){var h=n("./_a-function");A.exports=function(y,i,s){if(h(y),i===void 0)return y;switch(s){case 1:return function(d){return y.call(i,d)};case 2:return function(d,u){return y.call(i,d,u)};case 3:return function(d,u,e){return y.call(i,d,u,e)}}return function(){return y.apply(i,arguments)}}},{"./_a-function":58}],68:[function(n,A,v){A.exports=function(h){if(h==null)throw TypeError("Can't call method on "+h);return h}},{}],69:[function(n,A,v){A.exports=!n("./_fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./_fails":74}],70:[function(n,A,v){var h=n("./_is-object"),y=n("./_global").document,i=h(y)&&h(y.createElement);A.exports=function(s){return i?y.createElement(s):{}}},{"./_global":76,"./_is-object":85}],71:[function(n,A,v){A.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],72:[function(n,A,v){var h=n("./_object-keys"),y=n("./_object-gops"),i=n("./_object-pie");A.exports=function(s){var d=h(s),u=y.f;if(u)for(var e,o=u(s),r=i.f,l=0;o.length>l;)r.call(s,e=o[l++])&&d.push(e);return d}},{"./_object-gops":103,"./_object-keys":106,"./_object-pie":107}],73:[function(n,A,v){var h=n("./_global"),y=n("./_core"),i=n("./_ctx"),s=n("./_hide"),d=n("./_has"),u=function e(o,r,l){var p,c,x,E=o&e.F,f=o&e.G,T=o&e.S,S=o&e.P,m=o&e.B,b=o&e.W,k=f?y:y[r]||(y[r]={}),C=k.prototype,_=f?h:T?h[r]:(h[r]||{}).prototype;f&&(l=r);for(p in l)(c=!E&&_&&_[p]!==void 0)&&d(k,p)||(x=c?_[p]:l[p],k[p]=f&&typeof _[p]!="function"?l[p]:m&&c?i(x,h):b&&_[p]==x?function(j){var D=function(L,z,W){if(this instanceof j){switch(arguments.length){case 0:return new j;case 1:return new j(L);case 2:return new j(L,z)}return new j(L,z,W)}return j.apply(this,arguments)};return D.prototype=j.prototype,D}(x):S&&typeof x=="function"?i(Function.call,x):x,S&&((k.virtual||(k.virtual={}))[p]=x,o&e.R&&C&&!C[p]&&s(C,p,x)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,A.exports=u},{"./_core":65,"./_ctx":67,"./_global":76,"./_has":77,"./_hide":78}],74:[function(n,A,v){A.exports=function(h){try{return!!h()}catch(y){return!0}}},{}],75:[function(n,A,v){var h=n("./_ctx"),y=n("./_iter-call"),i=n("./_is-array-iter"),s=n("./_an-object"),d=n("./_to-length"),u=n("./core.get-iterator-method"),e={},o={},v=A.exports=function(r,l,p,c,x){var E,f,T,S,m=x?function(){return r}:u(r),b=h(p,c,l?2:1),k=0;if(typeof m!="function")throw TypeError(r+" is not iterable!");if(i(m)){for(E=d(r.length);E>k;k++)if((S=l?b(s(f=r[k])[0],f[1]):b(r[k]))===e||S===o)return S}else for(T=m.call(r);!(f=T.next()).done;)if((S=y(T,b,f.value,l))===e||S===o)return S};v.BREAK=e,v.RETURN=o},{"./_an-object":61,"./_ctx":67,"./_is-array-iter":83,"./_iter-call":86,"./_to-length":124,"./core.get-iterator-method":132}],76:[function(n,A,v){var h=A.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=h)},{}],77:[function(n,A,v){var h={}.hasOwnProperty;A.exports=function(y,i){return h.call(y,i)}},{}],78:[function(n,A,v){var h=n("./_object-dp"),y=n("./_property-desc");A.exports=n("./_descriptors")?function(i,s,d){return h.f(i,s,y(1,d))}:function(i,s,d){return i[s]=d,i}},{"./_descriptors":69,"./_object-dp":98,"./_property-desc":111}],79:[function(n,A,v){var h=n("./_global").document;A.exports=h&&h.documentElement},{"./_global":76}],80:[function(n,A,v){A.exports=!n("./_descriptors")&&!n("./_fails")(function(){return Object.defineProperty(n("./_dom-create")("div"),"a",{get:function(){return 7}}).a!=7})},{"./_descriptors":69,"./_dom-create":70,"./_fails":74}],81:[function(n,A,v){A.exports=function(h,y,i){var s=i===void 0;switch(y.length){case 0:return s?h():h.call(i);case 1:return s?h(y[0]):h.call(i,y[0]);case 2:return s?h(y[0],y[1]):h.call(i,y[0],y[1]);case 3:return s?h(y[0],y[1],y[2]):h.call(i,y[0],y[1],y[2]);case 4:return s?h(y[0],y[1],y[2],y[3]):h.call(i,y[0],y[1],y[2],y[3])}return h.apply(i,y)}},{}],82:[function(n,A,v){var h=n("./_cof");A.exports=Object("z").propertyIsEnumerable(0)?Object:function(y){return h(y)=="String"?y.split(""):Object(y)}},{"./_cof":64}],83:[function(n,A,v){var h=n("./_iterators"),y=n("./_wks")("iterator"),i=Array.prototype;A.exports=function(s){return s!==void 0&&(h.Array===s||i[y]===s)}},{"./_iterators":91,"./_wks":131}],84:[function(n,A,v){var h=n("./_cof");A.exports=Array.isArray||function(y){return h(y)=="Array"}},{"./_cof":64}],85:[function(n,A,v){A.exports=function(h){return typeof h=="object"?h!==null:typeof h=="function"}},{}],86:[function(n,A,v){var h=n("./_an-object");A.exports=function(y,i,s,d){try{return d?i(h(s)[0],s[1]):i(s)}catch(e){var u=y.return;throw u!==void 0&&h(u.call(y)),e}}},{"./_an-object":61}],87:[function(n,A,v){"use strict";var h=n("./_object-create"),y=n("./_property-desc"),i=n("./_set-to-string-tag"),s={};n("./_hide")(s,n("./_wks")("iterator"),function(){return this}),A.exports=function(d,u,e){d.prototype=h(s,{next:y(1,e)}),i(d,u+" Iterator")}},{"./_hide":78,"./_object-create":97,"./_property-desc":111,"./_set-to-string-tag":115,"./_wks":131}],88:[function(n,A,v){"use strict";var h=n("./_library"),y=n("./_export"),i=n("./_redefine"),s=n("./_hide"),d=n("./_iterators"),u=n("./_iter-create"),e=n("./_set-to-string-tag"),o=n("./_object-gpo"),r=n("./_wks")("iterator"),l=!([].keys&&"next"in[].keys()),p=function(){return this};A.exports=function(c,x,E,f,T,S,m){u(E,x,f);var b,k,C,_=function(ee){if(!l&&ee in L)return L[ee];switch(ee){case"keys":case"values":return function(){return new E(this,ee)}}return function(){return new E(this,ee)}},j=x+" Iterator",D=T=="values",M=!1,L=c.prototype,z=L[r]||L["@@iterator"]||T&&L[T],W=z||_(T),G=T?D?_("entries"):W:void 0,Z=x=="Array"&&L.entries||z;if(Z&&(C=o(Z.call(new c)))!==Object.prototype&&C.next&&(e(C,j,!0),h||typeof C[r]=="function"||s(C,r,p)),D&&z&&z.name!=="values"&&(M=!0,W=function(){return z.call(this)}),h&&!m||!l&&!M&&L[r]||s(L,r,W),d[x]=W,d[j]=p,T)if(b={values:D?W:_("values"),keys:S?W:_("keys"),entries:G},m)for(k in b)k in L||i(L,k,b[k]);else y(y.P+y.F*(l||M),x,b);return b}},{"./_export":73,"./_hide":78,"./_iter-create":87,"./_iterators":91,"./_library":92,"./_object-gpo":104,"./_redefine":113,"./_set-to-string-tag":115,"./_wks":131}],89:[function(n,A,v){var h=n("./_wks")("iterator"),y=!1;try{var i=[7][h]();i.return=function(){y=!0},Array.from(i,function(){throw 2})}catch(s){}A.exports=function(s,d){if(!d&&!y)return!1;var u=!1;try{var e=[7],o=e[h]();o.next=function(){return{done:u=!0}},e[h]=function(){return o},s(e)}catch(r){}return u}},{"./_wks":131}],90:[function(n,A,v){A.exports=function(h,y){return{value:y,done:!!h}}},{}],91:[function(n,A,v){A.exports={}},{}],92:[function(n,A,v){A.exports=!0},{}],93:[function(n,A,v){var h=n("./_uid")("meta"),y=n("./_is-object"),i=n("./_has"),s=n("./_object-dp").f,d=0,u=Object.isExtensible||function(){return!0},e=!n("./_fails")(function(){return u(Object.preventExtensions({}))}),o=function(E){s(E,h,{value:{i:"O"+ ++d,w:{}}})},r=function(E,f){if(!y(E))return typeof E=="symbol"?E:(typeof E=="string"?"S":"P")+E;if(!i(E,h)){if(!u(E))return"F";if(!f)return"E";o(E)}return E[h].i},l=function(E,f){if(!i(E,h)){if(!u(E))return!0;if(!f)return!1;o(E)}return E[h].w},p=function(E){return e&&c.NEED&&u(E)&&!i(E,h)&&o(E),E},c=A.exports={KEY:h,NEED:!1,fastKey:r,getWeak:l,onFreeze:p}},{"./_fails":74,"./_has":77,"./_is-object":85,"./_object-dp":98,"./_uid":127}],94:[function(n,A,v){var h=n("./_global"),y=n("./_task").set,i=h.MutationObserver||h.WebKitMutationObserver,s=h.process,d=h.Promise,u=n("./_cof")(s)=="process";A.exports=function(){var e,o,r,l=function(){var f,T;for(u&&(f=s.domain)&&f.exit();e;){T=e.fn,e=e.next;try{T()}catch(S){throw e?r():o=void 0,S}}o=void 0,f&&f.enter()};if(u)r=function(){s.nextTick(l)};else if(!i||h.navigator&&h.navigator.standalone)if(d&&d.resolve){var p=d.resolve(void 0);r=function(){p.then(l)}}else r=function(){y.call(h,l)};else{var c=!0,x=document.createTextNode("");new i(l).observe(x,{characterData:!0}),r=function(){x.data=c=!c}}return function(E){var f={fn:E,next:void 0};o&&(o.next=f),e||(e=f,r()),o=f}}},{"./_cof":64,"./_global":76,"./_task":120}],95:[function(n,A,v){"use strict";function h(i){var s,d;this.promise=new i(function(u,e){if(s!==void 0||d!==void 0)throw TypeError("Bad Promise constructor");s=u,d=e}),this.resolve=y(s),this.reject=y(d)}var y=n("./_a-function");A.exports.f=function(i){return new h(i)}},{"./_a-function":58}],96:[function(n,A,v){"use strict";var h=n("./_object-keys"),y=n("./_object-gops"),i=n("./_object-pie"),s=n("./_to-object"),d=n("./_iobject"),u=Object.assign;A.exports=!u||n("./_fails")(function(){var e={},o={},r=Symbol(),l="abcdefghijklmnopqrst";return e[r]=7,l.split("").forEach(function(p){o[p]=p}),u({},e)[r]!=7||Object.keys(u({},o)).join("")!=l})?function(e,o){for(var r=s(e),l=arguments.length,p=1,c=y.f,x=i.f;l>p;)for(var E,f=d(arguments[p++]),T=c?h(f).concat(c(f)):h(f),S=T.length,m=0;S>m;)x.call(f,E=T[m++])&&(r[E]=f[E]);return r}:u},{"./_fails":74,"./_iobject":82,"./_object-gops":103,"./_object-keys":106,"./_object-pie":107,"./_to-object":125}],97:[function(n,A,v){var h=n("./_an-object"),y=n("./_object-dps"),i=n("./_enum-bug-keys"),s=n("./_shared-key")("IE_PROTO"),d=function(){},u=function(){var o,r=n("./_dom-create")("iframe"),l=i.length;for(r.style.display="none",n("./_html").appendChild(r),r.src="javascript:",o=r.contentWindow.document,o.open(),o.write("<script>document.F=Object</script>"),o.close(),u=o.F;l--;)delete u.prototype[i[l]];return u()};A.exports=Object.create||function(e,o){var r;return e!==null?(d.prototype=h(e),r=new d,d.prototype=null,r[s]=e):r=u(),o===void 0?r:y(r,o)}},{"./_an-object":61,"./_dom-create":70,"./_enum-bug-keys":71,"./_html":79,"./_object-dps":99,"./_shared-key":116}],98:[function(n,A,v){var h=n("./_an-object"),y=n("./_ie8-dom-define"),i=n("./_to-primitive"),s=Object.defineProperty;v.f=n("./_descriptors")?Object.defineProperty:function(d,u,e){if(h(d),u=i(u,!0),h(e),y)try{return s(d,u,e)}catch(o){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(d[u]=e.value),d}},{"./_an-object":61,"./_descriptors":69,"./_ie8-dom-define":80,"./_to-primitive":126}],99:[function(n,A,v){var h=n("./_object-dp"),y=n("./_an-object"),i=n("./_object-keys");A.exports=n("./_descriptors")?Object.defineProperties:function(s,d){y(s);for(var u,e=i(d),o=e.length,r=0;o>r;)h.f(s,u=e[r++],d[u]);return s}},{"./_an-object":61,"./_descriptors":69,"./_object-dp":98,"./_object-keys":106}],100:[function(n,A,v){var h=n("./_object-pie"),y=n("./_property-desc"),i=n("./_to-iobject"),s=n("./_to-primitive"),d=n("./_has"),u=n("./_ie8-dom-define"),e=Object.getOwnPropertyDescriptor;v.f=n("./_descriptors")?e:function(o,r){if(o=i(o),r=s(r,!0),u)try{return e(o,r)}catch(l){}if(d(o,r))return y(!h.f.call(o,r),o[r])}},{"./_descriptors":69,"./_has":77,"./_ie8-dom-define":80,"./_object-pie":107,"./_property-desc":111,"./_to-iobject":123,"./_to-primitive":126}],101:[function(n,A,v){var h=n("./_to-iobject"),y=n("./_object-gopn").f,i={}.toString,s=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],d=function(e){try{return y(e)}catch(o){return s.slice()}};A.exports.f=function(u){return s&&i.call(u)=="[object Window]"?d(u):y(h(u))}},{"./_object-gopn":102,"./_to-iobject":123}],102:[function(n,A,v){var h=n("./_object-keys-internal"),y=n("./_enum-bug-keys").concat("length","prototype");v.f=Object.getOwnPropertyNames||function(i){return h(i,y)}},{"./_enum-bug-keys":71,"./_object-keys-internal":105}],103:[function(n,A,v){v.f=Object.getOwnPropertySymbols},{}],104:[function(n,A,v){var h=n("./_has"),y=n("./_to-object"),i=n("./_shared-key")("IE_PROTO"),s=Object.prototype;A.exports=Object.getPrototypeOf||function(d){return d=y(d),h(d,i)?d[i]:typeof d.constructor=="function"&&d instanceof d.constructor?d.constructor.prototype:d instanceof Object?s:null}},{"./_has":77,"./_shared-key":116,"./_to-object":125}],105:[function(n,A,v){var h=n("./_has"),y=n("./_to-iobject"),i=n("./_array-includes")(!1),s=n("./_shared-key")("IE_PROTO");A.exports=function(d,u){var e,o=y(d),r=0,l=[];for(e in o)e!=s&&h(o,e)&&l.push(e);for(;u.length>r;)h(o,e=u[r++])&&(~i(l,e)||l.push(e));return l}},{"./_array-includes":62,"./_has":77,"./_shared-key":116,"./_to-iobject":123}],106:[function(n,A,v){var h=n("./_object-keys-internal"),y=n("./_enum-bug-keys");A.exports=Object.keys||function(i){return h(i,y)}},{"./_enum-bug-keys":71,"./_object-keys-internal":105}],107:[function(n,A,v){v.f={}.propertyIsEnumerable},{}],108:[function(n,A,v){var h=n("./_export"),y=n("./_core"),i=n("./_fails");A.exports=function(s,d){var u=(y.Object||{})[s]||Object[s],e={};e[s]=d(u),h(h.S+h.F*i(function(){u(1)}),"Object",e)}},{"./_core":65,"./_export":73,"./_fails":74}],109:[function(n,A,v){A.exports=function(h){try{return{e:!1,v:h()}}catch(y){return{e:!0,v:y}}}},{}],110:[function(n,A,v){var h=n("./_an-object"),y=n("./_is-object"),i=n("./_new-promise-capability");A.exports=function(s,d){if(h(s),y(d)&&d.constructor===s)return d;var u=i.f(s);return(0,u.resolve)(d),u.promise}},{"./_an-object":61,"./_is-object":85,"./_new-promise-capability":95}],111:[function(n,A,v){A.exports=function(h,y){return{enumerable:!(1&h),configurable:!(2&h),writable:!(4&h),value:y}}},{}],112:[function(n,A,v){var h=n("./_hide");A.exports=function(y,i,s){for(var d in i)s&&y[d]?y[d]=i[d]:h(y,d,i[d]);return y}},{"./_hide":78}],113:[function(n,A,v){A.exports=n("./_hide")},{"./_hide":78}],114:[function(n,A,v){"use strict";var h=n("./_global"),y=n("./_core"),i=n("./_object-dp"),s=n("./_descriptors"),d=n("./_wks")("species");A.exports=function(u){var e=typeof y[u]=="function"?y[u]:h[u];s&&e&&!e[d]&&i.f(e,d,{configurable:!0,get:function(){return this}})}},{"./_core":65,"./_descriptors":69,"./_global":76,"./_object-dp":98,"./_wks":131}],115:[function(n,A,v){var h=n("./_object-dp").f,y=n("./_has"),i=n("./_wks")("toStringTag");A.exports=function(s,d,u){s&&!y(s=u?s:s.prototype,i)&&h(s,i,{configurable:!0,value:d})}},{"./_has":77,"./_object-dp":98,"./_wks":131}],116:[function(n,A,v){var h=n("./_shared")("keys"),y=n("./_uid");A.exports=function(i){return h[i]||(h[i]=y(i))}},{"./_shared":117,"./_uid":127}],117:[function(n,A,v){var h=n("./_core"),y=n("./_global"),i=y["__core-js_shared__"]||(y["__core-js_shared__"]={});(A.exports=function(s,d){return i[s]||(i[s]=d!==void 0?d:{})})("versions",[]).push({version:h.version,mode:n("./_library")?"pure":"global",copyright:"\u6F0F 2018 Denis Pushkarev (zloirock.ru)"})},{"./_core":65,"./_global":76,"./_library":92}],118:[function(n,A,v){var h=n("./_an-object"),y=n("./_a-function"),i=n("./_wks")("species");A.exports=function(s,d){var u,e=h(s).constructor;return e===void 0||(u=h(e)[i])==null?d:y(u)}},{"./_a-function":58,"./_an-object":61,"./_wks":131}],119:[function(n,A,v){var h=n("./_to-integer"),y=n("./_defined");A.exports=function(i){return function(s,d){var u,e,o=String(y(s)),r=h(d),l=o.length;return r<0||r>=l?i?"":void 0:(u=o.charCodeAt(r),u<55296||u>56319||r+1===l||(e=o.charCodeAt(r+1))<56320||e>57343?i?o.charAt(r):u:i?o.slice(r,r+2):e-56320+(u-55296<<10)+65536)}}},{"./_defined":68,"./_to-integer":122}],120:[function(n,A,v){var h,y,i,s=n("./_ctx"),d=n("./_invoke"),u=n("./_html"),e=n("./_dom-create"),o=n("./_global"),r=o.process,l=o.setImmediate,p=o.clearImmediate,c=o.MessageChannel,x=o.Dispatch,E=0,f={},T=function(){var b=+this;if(f.hasOwnProperty(b)){var k=f[b];delete f[b],k()}},S=function(b){T.call(b.data)};l&&p||(l=function(b){for(var k=[],C=1;arguments.length>C;)k.push(arguments[C++]);return f[++E]=function(){d(typeof b=="function"?b:Function(b),k)},h(E),E},p=function(b){delete f[b]},n("./_cof")(r)=="process"?h=function(b){r.nextTick(s(T,b,1))}:x&&x.now?h=function(b){x.now(s(T,b,1))}:c?(y=new c,i=y.port2,y.port1.onmessage=S,h=s(i.postMessage,i,1)):o.addEventListener&&typeof postMessage=="function"&&!o.importScripts?(h=function(b){o.postMessage(b+"","*")},o.addEventListener("message",S,!1)):h="onreadystatechange"in e("script")?function(m){u.appendChild(e("script")).onreadystatechange=function(){u.removeChild(this),T.call(m)}}:function(m){setTimeout(s(T,m,1),0)}),A.exports={set:l,clear:p}},{"./_cof":64,"./_ctx":67,"./_dom-create":70,"./_global":76,"./_html":79,"./_invoke":81}],121:[function(n,A,v){var h=n("./_to-integer"),y=Math.max,i=Math.min;A.exports=function(s,d){return s=h(s),s<0?y(s+d,0):i(s,d)}},{"./_to-integer":122}],122:[function(n,A,v){var h=Math.ceil,y=Math.floor;A.exports=function(i){return isNaN(i=+i)?0:(i>0?y:h)(i)}},{}],123:[function(n,A,v){var h=n("./_iobject"),y=n("./_defined");A.exports=function(i){return h(y(i))}},{"./_defined":68,"./_iobject":82}],124:[function(n,A,v){var h=n("./_to-integer"),y=Math.min;A.exports=function(i){return i>0?y(h(i),9007199254740991):0}},{"./_to-integer":122}],125:[function(n,A,v){var h=n("./_defined");A.exports=function(y){return Object(h(y))}},{"./_defined":68}],126:[function(n,A,v){var h=n("./_is-object");A.exports=function(y,i){if(!h(y))return y;var s,d;if(i&&typeof(s=y.toString)=="function"&&!h(d=s.call(y)))return d;if(typeof(s=y.valueOf)=="function"&&!h(d=s.call(y)))return d;if(!i&&typeof(s=y.toString)=="function"&&!h(d=s.call(y)))return d;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":85}],127:[function(n,A,v){var h=0,y=Math.random();A.exports=function(i){return"Symbol(".concat(i===void 0?"":i,")_",(++h+y).toString(36))}},{}],128:[function(n,A,v){var h=n("./_global"),y=h.navigator;A.exports=y&&y.userAgent||""},{"./_global":76}],129:[function(n,A,v){var h=n("./_global"),y=n("./_core"),i=n("./_library"),s=n("./_wks-ext"),d=n("./_object-dp").f;A.exports=function(u){var e=y.Symbol||(y.Symbol=i?{}:h.Symbol||{});u.charAt(0)=="_"||u in e||d(e,u,{value:s.f(u)})}},{"./_core":65,"./_global":76,"./_library":92,"./_object-dp":98,"./_wks-ext":130}],130:[function(n,A,v){v.f=n("./_wks")},{"./_wks":131}],131:[function(n,A,v){var h=n("./_shared")("wks"),y=n("./_uid"),i=n("./_global").Symbol,s=typeof i=="function";(A.exports=function(d){return h[d]||(h[d]=s&&i[d]||(s?i:y)("Symbol."+d))}).store=h},{"./_global":76,"./_shared":117,"./_uid":127}],132:[function(n,A,v){var h=n("./_classof"),y=n("./_wks")("iterator"),i=n("./_iterators");A.exports=n("./_core").getIteratorMethod=function(s){if(s!=null)return s[y]||s["@@iterator"]||i[h(s)]}},{"./_classof":63,"./_core":65,"./_iterators":91,"./_wks":131}],133:[function(n,A,v){"use strict";var h=n("./_ctx"),y=n("./_export"),i=n("./_to-object"),s=n("./_iter-call"),d=n("./_is-array-iter"),u=n("./_to-length"),e=n("./_create-property"),o=n("./core.get-iterator-method");y(y.S+y.F*!n("./_iter-detect")(function(r){Array.from(r)}),"Array",{from:function(l){var p,c,x,E,f=i(l),T=typeof this=="function"?this:Array,S=arguments.length,m=S>1?arguments[1]:void 0,b=m!==void 0,k=0,C=o(f);if(b&&(m=h(m,S>2?arguments[2]:void 0,2)),C==null||T==Array&&d(C))for(p=u(f.length),c=new T(p);p>k;k++)e(c,k,b?m(f[k],k):f[k]);else for(E=C.call(f),c=new T;!(x=E.next()).done;k++)e(c,k,b?s(E,m,[x.value,k],!0):x.value);return c.length=k,c}})},{"./_create-property":66,"./_ctx":67,"./_export":73,"./_is-array-iter":83,"./_iter-call":86,"./_iter-detect":89,"./_to-length":124,"./_to-object":125,"./core.get-iterator-method":132}],134:[function(n,A,v){"use strict";var h=n("./_add-to-unscopables"),y=n("./_iter-step"),i=n("./_iterators"),s=n("./_to-iobject");A.exports=n("./_iter-define")(Array,"Array",function(d,u){this._t=s(d),this._i=0,this._k=u},function(){var d=this._t,u=this._k,e=this._i++;return!d||e>=d.length?(this._t=void 0,y(1)):u=="keys"?y(0,e):u=="values"?y(0,d[e]):y(0,[e,d[e]])},"values"),i.Arguments=i.Array,h("keys"),h("values"),h("entries")},{"./_add-to-unscopables":59,"./_iter-define":88,"./_iter-step":90,"./_iterators":91,"./_to-iobject":123}],135:[function(n,A,v){"use strict";var h=n("./_is-object"),y=n("./_object-gpo"),i=n("./_wks")("hasInstance"),s=Function.prototype;i in s||n("./_object-dp").f(s,i,{value:function(u){if(typeof this!="function"||!h(u))return!1;if(!h(this.prototype))return u instanceof this;for(;u=y(u);)if(this.prototype===u)return!0;return!1}})},{"./_is-object":85,"./_object-dp":98,"./_object-gpo":104,"./_wks":131}],136:[function(n,A,v){var h=n("./_export");h(h.S+h.F,"Object",{assign:n("./_object-assign")})},{"./_export":73,"./_object-assign":96}],137:[function(n,A,v){var h=n("./_export");h(h.S,"Object",{create:n("./_object-create")})},{"./_export":73,"./_object-create":97}],138:[function(n,A,v){var h=n("./_export");h(h.S+h.F*!n("./_descriptors"),"Object",{defineProperty:n("./_object-dp").f})},{"./_descriptors":69,"./_export":73,"./_object-dp":98}],139:[function(n,A,v){n("./_object-sap")("getOwnPropertyNames",function(){return n("./_object-gopn-ext").f})},{"./_object-gopn-ext":101,"./_object-sap":108}],140:[function(n,A,v){var h=n("./_to-object"),y=n("./_object-gpo");n("./_object-sap")("getPrototypeOf",function(){return function(i){return y(h(i))}})},{"./_object-gpo":104,"./_object-sap":108,"./_to-object":125}],141:[function(n,A,v){var h=n("./_to-object"),y=n("./_object-keys");n("./_object-sap")("keys",function(){return function(i){return y(h(i))}})},{"./_object-keys":106,"./_object-sap":108,"./_to-object":125}],142:[function(n,A,v){arguments[4][36][0].apply(v,arguments)},{dup:36}],143:[function(n,A,v){"use strict";var h,y,i,s,d=n("./_library"),u=n("./_global"),e=n("./_ctx"),o=n("./_classof"),r=n("./_export"),l=n("./_is-object"),p=n("./_a-function"),c=n("./_an-instance"),x=n("./_for-of"),E=n("./_species-constructor"),f=n("./_task").set,T=n("./_microtask")(),S=n("./_new-promise-capability"),m=n("./_perform"),b=n("./_user-agent"),k=n("./_promise-resolve"),C=u.TypeError,_=u.process,j=_&&_.versions,D=j&&j.v8||"",M=u.Promise,L=o(_)=="process",z=function(){},W=y=S.f,G=!!function(){try{var F=M.resolve(1),N=(F.constructor={})[n("./_wks")("species")]=function(H){H(z,z)};return(L||typeof PromiseRejectionEvent=="function")&&F.then(z)instanceof N&&D.indexOf("6.6")!==0&&b.indexOf("Chrome/66")===-1}catch(H){}}(),Z=function(N){var H;return!(!l(N)||typeof(H=N.then)!="function")&&H},U=function(N,H){if(!N._n){N._n=!0;var Y=N._c;T(function(){for(var ae=N._v,te=N._s==1,ue=0;Y.length>ue;)!function(de){var Q,J,ie,X=te?de.ok:de.fail,B=de.resolve,re=de.reject,ne=de.domain;try{X?(te||(N._h==2&&q(N),N._h=1),X===!0?Q=ae:(ne&&ne.enter(),Q=X(ae),ne&&(ne.exit(),ie=!0)),Q===de.promise?re(C("Promise-chain cycle")):(J=Z(Q))?J.call(Q,B,re):B(Q)):re(ae)}catch(ce){ne&&!ie&&ne.exit(),re(ce)}}(Y[ue++]);N._c=[],N._n=!1,H&&!N._h&&ee(N)})}},ee=function(N){f.call(u,function(){var H,Y,ae,te=N._v,ue=$(N);if(ue&&(H=m(function(){L?_.emit("unhandledRejection",te,N):(Y=u.onunhandledrejection)?Y({promise:N,reason:te}):(ae=u.console)&&ae.error&&ae.error("Unhandled promise rejection",te)}),N._h=L||$(N)?2:1),N._a=void 0,ue&&H.e)throw H.v})},$=function(N){return N._h!==1&&(N._a||N._c).length===0},q=function(N){f.call(u,function(){var H;L?_.emit("rejectionHandled",N):(H=u.onrejectionhandled)&&H({promise:N,reason:N._v})})},R=function(N){var H=this;H._d||(H._d=!0,H=H._w||H,H._v=N,H._s=2,H._a||(H._a=H._c.slice()),U(H,!0))},I=function F(N){var H,Y=this;if(!Y._d){Y._d=!0,Y=Y._w||Y;try{if(Y===N)throw C("Promise can't be resolved itself");(H=Z(N))?T(function(){var ae={_w:Y,_d:!1};try{H.call(N,e(F,ae,1),e(R,ae,1))}catch(te){R.call(ae,te)}}):(Y._v=N,Y._s=1,U(Y,!1))}catch(ae){R.call({_w:Y,_d:!1},ae)}}};G||(M=function(N){c(this,M,"Promise","_h"),p(N),h.call(this);try{N(e(I,this,1),e(R,this,1))}catch(H){R.call(this,H)}},h=function(N){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},h.prototype=n("./_redefine-all")(M.prototype,{then:function(N,H){var Y=W(E(this,M));return Y.ok=typeof N!="function"||N,Y.fail=typeof H=="function"&&H,Y.domain=L?_.domain:void 0,this._c.push(Y),this._a&&this._a.push(Y),this._s&&U(this,!1),Y.promise},catch:function(N){return this.then(void 0,N)}}),i=function(){var N=new h;this.promise=N,this.resolve=e(I,N,1),this.reject=e(R,N,1)},S.f=W=function(N){return N===M||N===s?new i(N):y(N)}),r(r.G+r.W+r.F*!G,{Promise:M}),n("./_set-to-string-tag")(M,"Promise"),n("./_set-species")("Promise"),s=n("./_core").Promise,r(r.S+r.F*!G,"Promise",{reject:function(N){var H=W(this);return(0,H.reject)(N),H.promise}}),r(r.S+r.F*(d||!G),"Promise",{resolve:function(N){return k(d&&this===s?M:this,N)}}),r(r.S+r.F*!(G&&n("./_iter-detect")(function(F){M.all(F).catch(z)})),"Promise",{all:function(N){var H=this,Y=W(H),ae=Y.resolve,te=Y.reject,ue=m(function(){var de=[],Q=0,J=1;x(N,!1,function(ie){var X=Q++,B=!1;de.push(void 0),J++,H.resolve(ie).then(function(re){B||(B=!0,de[X]=re,--J||ae(de))},te)}),--J||ae(de)});return ue.e&&te(ue.v),Y.promise},race:function(N){var H=this,Y=W(H),ae=Y.reject,te=m(function(){x(N,!1,function(ue){H.resolve(ue).then(Y.resolve,ae)})});return te.e&&ae(te.v),Y.promise}})},{"./_a-function":58,"./_an-instance":60,"./_classof":63,"./_core":65,"./_ctx":67,"./_export":73,"./_for-of":75,"./_global":76,"./_is-object":85,"./_iter-detect":89,"./_library":92,"./_microtask":94,"./_new-promise-capability":95,"./_perform":109,"./_promise-resolve":110,"./_redefine-all":112,"./_set-species":114,"./_set-to-string-tag":115,"./_species-constructor":118,"./_task":120,"./_user-agent":128,"./_wks":131}],144:[function(n,A,v){var h=n("./_export"),y=n("./_to-absolute-index"),i=String.fromCharCode,s=String.fromCodePoint;h(h.S+h.F*(!!s&&s.length!=1),"String",{fromCodePoint:function(u){for(var e,o=[],r=arguments.length,l=0;r>l;){if(e=+arguments[l++],y(e,1114111)!==e)throw RangeError(e+" is not a valid code point");o.push(e<65536?i(e):i(55296+((e-=65536)>>10),e%1024+56320))}return o.join("")}})},{"./_export":73,"./_to-absolute-index":121}],145:[function(n,A,v){"use strict";var h=n("./_string-at")(!0);n("./_iter-define")(String,"String",function(y){this._t=String(y),this._i=0},function(){var y,i=this._t,s=this._i;return s>=i.length?{value:void 0,done:!0}:(y=h(i,s),this._i+=y.length,{value:y,done:!1})})},{"./_iter-define":88,"./_string-at":119}],146:[function(n,A,v){"use strict";var h=n("./_global"),y=n("./_has"),i=n("./_descriptors"),s=n("./_export"),d=n("./_redefine"),u=n("./_meta").KEY,e=n("./_fails"),o=n("./_shared"),r=n("./_set-to-string-tag"),l=n("./_uid"),p=n("./_wks"),c=n("./_wks-ext"),x=n("./_wks-define"),E=n("./_enum-keys"),f=n("./_is-array"),T=n("./_an-object"),S=n("./_is-object"),m=n("./_to-iobject"),b=n("./_to-primitive"),k=n("./_property-desc"),C=n("./_object-create"),_=n("./_object-gopn-ext"),j=n("./_object-gopd"),D=n("./_object-dp"),M=n("./_object-keys"),L=j.f,z=D.f,W=_.f,G=h.Symbol,Z=h.JSON,U=Z&&Z.stringify,ee=p("_hidden"),$=p("toPrimitive"),q={}.propertyIsEnumerable,R=o("symbol-registry"),I=o("symbols"),F=o("op-symbols"),N=Object.prototype,H=typeof G=="function",Y=h.QObject,ae=!Y||!Y.prototype||!Y.prototype.findChild,te=i&&e(function(){return C(z({},"a",{get:function(){return z(this,"a",{value:7}).a}})).a!=7})?function(P,g,w){var V=L(N,g);V&&delete N[g],z(P,g,w),V&&P!==N&&z(N,g,V)}:z,ue=function(g){var w=I[g]=C(G.prototype);return w._k=g,w},de=H&&typeof G.iterator=="symbol"?function(P){return typeof P=="symbol"}:function(P){return P instanceof G},Q=function P(g,w,V){return g===N&&P(F,w,V),T(g),w=b(w,!0),T(V),y(I,w)?(V.enumerable?(y(g,ee)&&g[ee][w]&&(g[ee][w]=!1),V=C(V,{enumerable:k(0,!1)})):(y(g,ee)||z(g,ee,k(1,{})),g[ee][w]=!0),te(g,w,V)):z(g,w,V)},J=function(g,w){T(g);for(var V,K=E(w=m(w)),fe=0,le=K.length;le>fe;)Q(g,V=K[fe++],w[V]);return g},ie=function(g,w){return w===void 0?C(g):J(C(g),w)},X=function(g){var w=q.call(this,g=b(g,!0));return!(this===N&&y(I,g)&&!y(F,g))&&(!(w||!y(this,g)||!y(I,g)||y(this,ee)&&this[ee][g])||w)},B=function(g,w){if(g=m(g),w=b(w,!0),g!==N||!y(I,w)||y(F,w)){var V=L(g,w);return!V||!y(I,w)||y(g,ee)&&g[ee][w]||(V.enumerable=!0),V}},re=function(g){for(var w,V=W(m(g)),K=[],fe=0;V.length>fe;)y(I,w=V[fe++])||w==ee||w==u||K.push(w);return K},ne=function(g){for(var w,V=g===N,K=W(V?F:m(g)),fe=[],le=0;K.length>le;)!y(I,w=K[le++])||V&&!y(N,w)||fe.push(I[w]);return fe};H||(G=function(){if(this instanceof G)throw TypeError("Symbol is not a constructor!");var g=l(arguments.length>0?arguments[0]:void 0),w=function V(K){this===N&&V.call(F,K),y(this,ee)&&y(this[ee],g)&&(this[ee][g]=!1),te(this,g,k(1,K))};return i&&ae&&te(N,g,{configurable:!0,set:w}),ue(g)},d(G.prototype,"toString",function(){return this._k}),j.f=B,D.f=Q,n("./_object-gopn").f=_.f=re,n("./_object-pie").f=X,n("./_object-gops").f=ne,i&&!n("./_library")&&d(N,"propertyIsEnumerable",X,!0),c.f=function(P){return ue(p(P))}),s(s.G+s.W+s.F*!H,{Symbol:G});for(var ce="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),O=0;ce.length>O;)p(ce[O++]);for(var t=M(p.store),a=0;t.length>a;)x(t[a++]);s(s.S+s.F*!H,"Symbol",{for:function(g){return y(R,g+="")?R[g]:R[g]=G(g)},keyFor:function(g){if(!de(g))throw TypeError(g+" is not a symbol!");for(var w in R)if(R[w]===g)return w},useSetter:function(){ae=!0},useSimple:function(){ae=!1}}),s(s.S+s.F*!H,"Object",{create:ie,defineProperty:Q,defineProperties:J,getOwnPropertyDescriptor:B,getOwnPropertyNames:re,getOwnPropertySymbols:ne}),Z&&s(s.S+s.F*(!H||e(function(){var P=G();return U([P])!="[null]"||U({a:P})!="{}"||U(Object(P))!="{}"})),"JSON",{stringify:function(g){for(var w,V,K=[g],fe=1;arguments.length>fe;)K.push(arguments[fe++]);if(V=w=K[1],(S(w)||g!==void 0)&&!de(g))return f(w)||(w=function(me,ge){if(typeof V=="function"&&(ge=V.call(this,me,ge)),!de(ge))return ge}),K[1]=w,U.apply(Z,K)}}),G.prototype[$]||n("./_hide")(G.prototype,$,G.prototype.valueOf),r(G,"Symbol"),r(Math,"Math",!0),r(h.JSON,"JSON",!0)},{"./_an-object":61,"./_descriptors":69,"./_enum-keys":72,"./_export":73,"./_fails":74,"./_global":76,"./_has":77,"./_hide":78,"./_is-array":84,"./_is-object":85,"./_library":92,"./_meta":93,"./_object-create":97,"./_object-dp":98,"./_object-gopd":100,"./_object-gopn":102,"./_object-gopn-ext":101,"./_object-gops":103,"./_object-keys":106,"./_object-pie":107,"./_property-desc":111,"./_redefine":113,"./_set-to-string-tag":115,"./_shared":117,"./_to-iobject":123,"./_to-primitive":126,"./_uid":127,"./_wks":131,"./_wks-define":129,"./_wks-ext":130}],147:[function(n,A,v){"use strict";var h=n("./_export"),y=n("./_core"),i=n("./_global"),s=n("./_species-constructor"),d=n("./_promise-resolve");h(h.P+h.R,"Promise",{finally:function(e){var o=s(this,y.Promise||i.Promise),r=typeof e=="function";return this.then(r?function(l){return d(o,e()).then(function(){return l})}:e,r?function(l){return d(o,e()).then(function(){throw l})}:e)}})},{"./_core":65,"./_export":73,"./_global":76,"./_promise-resolve":110,"./_species-constructor":118}],148:[function(n,A,v){"use strict";var h=n("./_export"),y=n("./_new-promise-capability"),i=n("./_perform");h(h.S,"Promise",{try:function(d){var u=y.f(this),e=i(d);return(e.e?u.reject:u.resolve)(e.v),u.promise}})},{"./_export":73,"./_new-promise-capability":95,"./_perform":109}],149:[function(n,A,v){n("./_wks-define")("asyncIterator")},{"./_wks-define":129}],150:[function(n,A,v){n("./_wks-define")("observable")},{"./_wks-define":129}],151:[function(n,A,v){n("./es6.array.iterator");for(var h=n("./_global"),y=n("./_hide"),i=n("./_iterators"),s=n("./_wks")("toStringTag"),d="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(","),u=0;u<d.length;u++){var e=d[u],o=h[e],r=o&&o.prototype;r&&!r[s]&&y(r,s,e),i[e]=i.Array}},{"./_global":76,"./_hide":78,"./_iterators":91,"./_wks":131,"./es6.array.iterator":134}],152:[function(n,A,v){var h=n("./_export"),y=n("./_task");h(h.G+h.B,{setImmediate:y.set,clearImmediate:y.clear})},{"./_export":73,"./_task":120}],153:[function(n,A,v){(function(h){"use strict";function y(b){return Array.isArray?Array.isArray(b):T(b)==="[object Array]"}function i(b){return typeof b=="boolean"}function s(b){return b===null}function d(b){return b==null}function u(b){return typeof b=="number"}function e(b){return typeof b=="string"}function o(b){return(b===void 0?"undefined":(0,m.default)(b))==="symbol"}function r(b){return b===void 0}function l(b){return T(b)==="[object RegExp]"}function p(b){return(b===void 0?"undefined":(0,m.default)(b))==="object"&&b!==null}function c(b){return T(b)==="[object Date]"}function x(b){return T(b)==="[object Error]"||b instanceof Error}function E(b){return typeof b=="function"}function f(b){return b===null||typeof b=="boolean"||typeof b=="number"||typeof b=="string"||(b===void 0?"undefined":(0,m.default)(b))==="symbol"||b===void 0}function T(b){return Object.prototype.toString.call(b)}var S=n("babel-runtime/helpers/typeof"),m=function(b){return b&&b.__esModule?b:{default:b}}(S);v.isArray=y,v.isBoolean=i,v.isNull=s,v.isNullOrUndefined=d,v.isNumber=u,v.isString=e,v.isSymbol=o,v.isUndefined=r,v.isRegExp=l,v.isObject=p,v.isDate=c,v.isError=x,v.isFunction=E,v.isPrimitive=f,v.isBuffer=h.isBuffer}).call(this,{isBuffer:n("../../is-buffer/index.js")})},{"../../is-buffer/index.js":163,"babel-runtime/helpers/typeof":32}],154:[function(n,A,v){"use strict";var h=n("babel-runtime/helpers/typeof"),y=function(i){return i&&i.__esModule?i:{default:i}}(h);!function(i){function s(r,l){for(r=String(r),l=l||2;r.length<l;)r="0"+r;return r}function d(r){var l=new Date(r.getFullYear(),r.getMonth(),r.getDate());l.setDate(l.getDate()-(l.getDay()+6)%7+3);var p=new Date(l.getFullYear(),0,4);p.setDate(p.getDate()-(p.getDay()+6)%7+3);var c=l.getTimezoneOffset()-p.getTimezoneOffset();l.setHours(l.getHours()-c);var x=(l-p)/6048e5;return 1+Math.floor(x)}function u(r){var l=r.getDay();return l===0&&(l=7),l}function e(r){return r===null?"null":r===void 0?"undefined":(r===void 0?"undefined":(0,y.default)(r))!=="object"?r===void 0?"undefined":(0,y.default)(r):Array.isArray(r)?"array":{}.toString.call(r).slice(8,-1).toLowerCase()}var o=function(){var r=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,l=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,p=/[^-+\dA-Z]/g;return function(c,x,E,f){if(arguments.length!==1||e(c)!=="string"||/\d/.test(c)||(x=c,c=void 0),c=c||new Date,c instanceof Date||(c=new Date(c)),isNaN(c))throw TypeError("Invalid date");x=String(o.masks[x]||x||o.masks.default);var T=x.slice(0,4);T!=="UTC:"&&T!=="GMT:"||(x=x.slice(4),E=!0,T==="GMT:"&&(f=!0));var S=E?"getUTC":"get",m=c[S+"Date"](),b=c[S+"Day"](),k=c[S+"Month"](),C=c[S+"FullYear"](),_=c[S+"Hours"](),j=c[S+"Minutes"](),D=c[S+"Seconds"](),M=c[S+"Milliseconds"](),L=E?0:c.getTimezoneOffset(),z=d(c),W=u(c),G={d:m,dd:s(m),ddd:o.i18n.dayNames[b],dddd:o.i18n.dayNames[b+7],m:k+1,mm:s(k+1),mmm:o.i18n.monthNames[k],mmmm:o.i18n.monthNames[k+12],yy:String(C).slice(2),yyyy:C,h:_%12||12,hh:s(_%12||12),H:_,HH:s(_),M:j,MM:s(j),s:D,ss:s(D),l:s(M,3),L:s(Math.round(M/10)),t:_<12?"a":"p",tt:_<12?"am":"pm",T:_<12?"A":"P",TT:_<12?"AM":"PM",Z:f?"GMT":E?"UTC":(String(c).match(l)||[""]).pop().replace(p,""),o:(L>0?"-":"+")+s(100*Math.floor(Math.abs(L)/60)+Math.abs(L)%60,4),S:["th","st","nd","rd"][m%10>3?0:(m%100-m%10!=10)*m%10],W:z,N:W};return x.replace(r,function(Z){return Z in G?G[Z]:Z.slice(1,Z.length-1)})}}();o.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"},o.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"]},typeof pe=="function"&&pe.amd?pe(function(){return o}):(v===void 0?"undefined":(0,y.default)(v))==="object"?A.exports=o:i.dateFormat=o}(void 0)},{"babel-runtime/helpers/typeof":32}],155:[function(n,A,v){(function(h){function y(){return!(typeof window=="undefined"||!window.process||window.process.type!=="renderer")||typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function i(e){var o=this.useColors;if(e[0]=(o?"%c":"")+this.namespace+(o?" %c":" ")+e[0]+(o?"%c ":" ")+"+"+v.humanize(this.diff),o){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var l=0,p=0;e[0].replace(/%[a-zA-Z%]/g,function(c){c!=="%%"&&(l++,c==="%c"&&(p=l))}),e.splice(p,0,r)}}function s(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function d(e){try{e==null?v.storage.removeItem("debug"):v.storage.debug=e}catch(o){}}function u(){var e;try{e=v.storage.debug}catch(o){}return!e&&h!==void 0&&"env"in h&&(e=h.env.DEBUG),e}v=A.exports=n("./debug"),v.log=s,v.formatArgs=i,v.save=d,v.load=u,v.useColors=y,v.storage=typeof chrome!="undefined"&&chrome.storage!==void 0?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),v.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],v.formatters.j=function(e){try{return JSON.stringify(e)}catch(o){return"[UnexpectedJSONParseError]: "+o.message}},v.enable(u())}).call(this,n("_process"))},{"./debug":156,_process:173}],156:[function(n,A,v){function h(o){var r,l=0;for(r in o)l=(l<<5)-l+o.charCodeAt(r),l|=0;return v.colors[Math.abs(l)%v.colors.length]}function y(o){function r(){if(r.enabled){var l=r,p=+new Date,c=p-(e||p);l.diff=c,l.prev=e,l.curr=p,e=p;for(var x=new Array(arguments.length),E=0;E<x.length;E++)x[E]=arguments[E];x[0]=v.coerce(x[0]),typeof x[0]!="string"&&x.unshift("%O");var f=0;x[0]=x[0].replace(/%([a-zA-Z%])/g,function(T,S){if(T==="%%")return T;f++;var m=v.formatters[S];if(typeof m=="function"){var b=x[f];T=m.call(l,b),x.splice(f,1),f--}return T}),v.formatArgs.call(l,x),(r.log||v.log||console.log.bind(console)).apply(l,x)}}return r.namespace=o,r.enabled=v.enabled(o),r.useColors=v.useColors(),r.color=h(o),typeof v.init=="function"&&v.init(r),r}function i(o){v.save(o),v.names=[],v.skips=[];for(var r=(typeof o=="string"?o:"").split(/[\s,]+/),l=r.length,p=0;p<l;p++)r[p]&&(o=r[p].replace(/\*/g,".*?"),o[0]==="-"?v.skips.push(new RegExp("^"+o.substr(1)+"$")):v.names.push(new RegExp("^"+o+"$")))}function s(){v.enable("")}function d(o){var r,l;for(r=0,l=v.skips.length;r<l;r++)if(v.skips[r].test(o))return!1;for(r=0,l=v.names.length;r<l;r++)if(v.names[r].test(o))return!0;return!1}function u(o){return o instanceof Error?o.stack||o.message:o}v=A.exports=y.debug=y.default=y,v.coerce=u,v.disable=s,v.enable=i,v.enabled=d,v.humanize=n("ms"),v.names=[],v.skips=[],v.formatters={};var e},{ms:169}],157:[function(n,A,v){"use strict";function h(i){var s=""+i,d=y.exec(s);if(!d)return s;var u,e="",o=0,r=0;for(o=d.index;o<s.length;o++){switch(s.charCodeAt(o)){case 34:u=""";break;case 38:u="&";break;case 39:u="'";break;case 60:u="<";break;case 62:u=">";break;default:continue}r!==o&&(e+=s.substring(r,o)),r=o+1,e+=u}return r!==o?e+s.substring(r,o):e}var y=/["'&<>]/;A.exports=h},{}],158:[function(n,A,v){function h(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function y(u){return typeof u=="function"}function i(u){return typeof u=="number"}function s(u){return typeof u=="object"&&u!==null}function d(u){return u===void 0}A.exports=h,h.EventEmitter=h,h.prototype._events=void 0,h.prototype._maxListeners=void 0,h.defaultMaxListeners=10,h.prototype.setMaxListeners=function(u){if(!i(u)||u<0||isNaN(u))throw TypeError("n must be a positive number");return this._maxListeners=u,this},h.prototype.emit=function(u){var e,o,r,l,p,c;if(this._events||(this._events={}),u==="error"&&(!this._events.error||s(this._events.error)&&!this._events.error.length)){if((e=arguments[1])instanceof Error)throw e;var x=new Error('Uncaught, unspecified "error" event. ('+e+")");throw x.context=e,x}if(o=this._events[u],d(o))return!1;if(y(o))switch(arguments.length){case 1:o.call(this);break;case 2:o.call(this,arguments[1]);break;case 3:o.call(this,arguments[1],arguments[2]);break;default:l=Array.prototype.slice.call(arguments,1),o.apply(this,l)}else if(s(o))for(l=Array.prototype.slice.call(arguments,1),c=o.slice(),r=c.length,p=0;p<r;p++)c[p].apply(this,l);return!0},h.prototype.addListener=function(u,e){var o;if(!y(e))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",u,y(e.listener)?e.listener:e),this._events[u]?s(this._events[u])?this._events[u].push(e):this._events[u]=[this._events[u],e]:this._events[u]=e,s(this._events[u])&&!this._events[u].warned&&(o=d(this._maxListeners)?h.defaultMaxListeners:this._maxListeners)&&o>0&&this._events[u].length>o&&(this._events[u].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[u].length),typeof console.trace=="function"&&console.trace()),this},h.prototype.on=h.prototype.addListener,h.prototype.once=function(u,e){function o(){this.removeListener(u,o),r||(r=!0,e.apply(this,arguments))}if(!y(e))throw TypeError("listener must be a function");var r=!1;return o.listener=e,this.on(u,o),this},h.prototype.removeListener=function(u,e){var o,r,l,p;if(!y(e))throw TypeError("listener must be a function");if(!this._events||!this._events[u])return this;if(o=this._events[u],l=o.length,r=-1,o===e||y(o.listener)&&o.listener===e)delete this._events[u],this._events.removeListener&&this.emit("removeListener",u,e);else if(s(o)){for(p=l;p-- >0;)if(o[p]===e||o[p].listener&&o[p].listener===e){r=p;break}if(r<0)return this;o.length===1?(o.length=0,delete this._events[u]):o.splice(r,1),this._events.removeListener&&this.emit("removeListener",u,e)}return this},h.prototype.removeAllListeners=function(u){var e,o;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[u]&&delete this._events[u],this;if(arguments.length===0){for(e in this._events)e!=="removeListener"&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(o=this._events[u],y(o))this.removeListener(u,o);else if(o)for(;o.length;)this.removeListener(u,o[o.length-1]);return delete this._events[u],this},h.prototype.listeners=function(u){return this._events&&this._events[u]?y(this._events[u])?[this._events[u]]:this._events[u].slice():[]},h.prototype.listenerCount=function(u){if(this._events){var e=this._events[u];if(y(e))return 1;if(e)return e.length}return 0},h.listenerCount=function(u,e){return u.listenerCount(e)}},{}],159:[function(n,A,v){var h=n("http"),y=A.exports;for(var i in h)h.hasOwnProperty(i)&&(y[i]=h[i]);y.request=function(s,d){return s||(s={}),s.scheme="https",s.protocol="https:",h.request.call(this,s,d)}},{http:196}],160:[function(n,A,v){"use strict";var h=n("util"),y=n("ms");A.exports=function(i){if(typeof i=="number")return i;var s=y(i);if(s===void 0){var d=new Error(h.format("humanize-ms(%j) result undefined",i));console.warn(d.stack)}return s}},{ms:169,util:207}],161:[function(n,A,v){v.read=function(h,y,i,s,d){var u,e,o=8*d-s-1,r=(1<<o)-1,l=r>>1,p=-7,c=i?d-1:0,x=i?-1:1,E=h[y+c];for(c+=x,u=E&(1<<-p)-1,E>>=-p,p+=o;p>0;u=256*u+h[y+c],c+=x,p-=8);for(e=u&(1<<-p)-1,u>>=-p,p+=s;p>0;e=256*e+h[y+c],c+=x,p-=8);if(u===0)u=1-l;else{if(u===r)return e?NaN:1/0*(E?-1:1);e+=Math.pow(2,s),u-=l}return(E?-1:1)*e*Math.pow(2,u-s)},v.write=function(h,y,i,s,d,u){var e,o,r,l=8*u-d-1,p=(1<<l)-1,c=p>>1,x=d===23?Math.pow(2,-24)-Math.pow(2,-77):0,E=s?0:u-1,f=s?1:-1,T=y<0||y===0&&1/y<0?1:0;for(y=Math.abs(y),isNaN(y)||y===1/0?(o=isNaN(y)?1:0,e=p):(e=Math.floor(Math.log(y)/Math.LN2),y*(r=Math.pow(2,-e))<1&&(e--,r*=2),y+=e+c>=1?x/r:x*Math.pow(2,1-c),y*r>=2&&(e++,r/=2),e+c>=p?(o=0,e=p):e+c>=1?(o=(y*r-1)*Math.pow(2,d),e+=c):(o=y*Math.pow(2,c-1)*Math.pow(2,d),e=0));d>=8;h[i+E]=255&o,E+=f,o/=256,d-=8);for(e=e<<d|o,l+=d;l>0;h[i+E]=255&e,E+=f,e/=256,l-=8);h[i+E-f]|=128*T}},{}],162:[function(n,A,v){typeof Object.create=="function"?A.exports=function(h,y){h.super_=y,h.prototype=Object.create(y.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}})}:A.exports=function(h,y){h.super_=y;var i=function(){};i.prototype=y.prototype,h.prototype=new i,h.prototype.constructor=h}},{}],163:[function(n,A,v){function h(i){return!!i.constructor&&typeof i.constructor.isBuffer=="function"&&i.constructor.isBuffer(i)}function y(i){return typeof i.readFloatLE=="function"&&typeof i.slice=="function"&&h(i.slice(0,0))}A.exports=function(i){return i!=null&&(h(i)||y(i)||!!i._isBuffer)}},{}],164:[function(n,A,v){!function(h){function y(d){return s.call(d).replace(/^[^{]*{\s*/,"").replace(/\s*}[^}]*$/,"")}function i(d){return typeof d=="function"&&(/^class(\s|\{\}$)/.test(s.call(d))||/^.*classCallCheck\(/.test(y(d)))}var s=Function.prototype.toString;v!==void 0?(A!==void 0&&A.exports&&(v=A.exports=i),v.isClass=i):typeof pe=="function"&&pe.amd?pe([],function(){return i}):h.isClass=i}(this)},{}],165:[function(n,A,v){"use strict";function h(u){var e=u.slice(2);return e=e[0].toLowerCase()+e.slice(1)}var y=n("core-util-is"),i=n("isstream"),s=n("is-class");Object.keys(y).map(function(u){v[h(u)]=y[u]}),v.stream=i,v.readableStream=i.isReadable,v.writableStream=i.isWritable,v.duplexStream=i.isDuplex,v.class=s,v.finite=function(u){return Number.isFinite(u)},v.NaN=function(u){return Number.isNaN(u)},v.generator=function(u){return u&&typeof u.next=="function"&&typeof u.throw=="function"},v.generatorFunction=function(u){return u&&u.constructor&&u.constructor.name==="GeneratorFunction"},v.asyncFunction=function(u){return u&&u.constructor&&u.constructor.name==="AsyncFunction"},v.promise=function(u){return u&&typeof u.then=="function"};var d=Math.pow(2,31);v.int=function(u){return y.isNumber(u)&&u%1==0},v.int32=function(u){return v.int(u)&&u<d&&u>=-d},v.long=function(u){return v.int(u)&&(u>=d||u<-d)},v.Long=function(u){return v.object(u)&&v.number(u.high)&&v.number(u.low)},v.double=function(u){return y.isNumber(u)&&!isNaN(u)&&u%1!=0},v.date=function(u){return u instanceof Date},v.regExp=function(u){return u instanceof RegExp},v.regexp=v.regExp,v.error=function(u){return u instanceof Error},v.array=function(u){return Array.isArray(u)}},{"core-util-is":153,"is-class":164,isstream:167}],166:[function(n,A,v){var h={}.toString;A.exports=Array.isArray||function(y){return h.call(y)=="[object Array]"}},{}],167:[function(n,A,v){function h(u){return u instanceof d.Stream}function y(u){return h(u)&&typeof u._read=="function"&&typeof u._readableState=="object"}function i(u){return h(u)&&typeof u._write=="function"&&typeof u._writableState=="object"}function s(u){return y(u)&&i(u)}var d=n("stream");A.exports=h,A.exports.isReadable=y,A.exports.isWritable=i,A.exports.isDuplex=s},{stream:195}],168:[function(n,A,v){"use strict";function h(i,s,d){if(!i)throw new TypeError("argument dest is required");if(!s)throw new TypeError("argument src is required");return d===void 0&&(d=!0),Object.getOwnPropertyNames(s).forEach(function(u){if(d||!y.call(i,u)){var e=Object.getOwnPropertyDescriptor(s,u);Object.defineProperty(i,u,e)}}),i}A.exports=h;var y=Object.prototype.hasOwnProperty},{}],169:[function(n,A,v){function h(l){if(l=String(l),!(l.length>100)){var p=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(l);if(p){var c=parseFloat(p[1]);switch((p[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*r;case"days":case"day":case"d":return c*o;case"hours":case"hour":case"hrs":case"hr":case"h":return c*e;case"minutes":case"minute":case"mins":case"min":case"m":return c*u;case"seconds":case"second":case"secs":case"sec":case"s":return c*d;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}}}function y(l){return l>=o?Math.round(l/o)+"d":l>=e?Math.round(l/e)+"h":l>=u?Math.round(l/u)+"m":l>=d?Math.round(l/d)+"s":l+"ms"}function i(l){return s(l,o,"day")||s(l,e,"hour")||s(l,u,"minute")||s(l,d,"second")||l+" ms"}function s(l,p,c){if(!(l<p))return l<1.5*p?Math.floor(l/p)+" "+c:Math.ceil(l/p)+" "+c+"s"}var d=1e3,u=60*d,e=60*u,o=24*e,r=365.25*o;A.exports=function(l,p){p=p||{};var c=typeof l;if(c==="string"&&l.length>0)return h(l);if(c==="number"&&isNaN(l)===!1)return p.long?i(l):y(l);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(l))}},{}],170:[function(n,A,v){(function(h){function y(u,e){for(var o=0,r=u.length-1;r>=0;r--){var l=u[r];l==="."?u.splice(r,1):l===".."?(u.splice(r,1),o++):o&&(u.splice(r,1),o--)}if(e)for(;o--;o)u.unshift("..");return u}function i(u){typeof u!="string"&&(u+="");var e,o=0,r=-1,l=!0;for(e=u.length-1;e>=0;--e)if(u.charCodeAt(e)===47){if(!l){o=e+1;break}}else r===-1&&(l=!1,r=e+1);return r===-1?"":u.slice(o,r)}function s(u,e){if(u.filter)return u.filter(e);for(var o=[],r=0;r<u.length;r++)e(u[r],r,u)&&o.push(u[r]);return o}v.resolve=function(){for(var u="",e=!1,o=arguments.length-1;o>=-1&&!e;o--){var r=o>=0?arguments[o]:h.cwd();if(typeof r!="string")throw new TypeError("Arguments to path.resolve must be strings");r&&(u=r+"/"+u,e=r.charAt(0)==="/")}return u=y(s(u.split("/"),function(l){return!!l}),!e).join("/"),(e?"/":"")+u||"."},v.normalize=function(u){var e=v.isAbsolute(u),o=d(u,-1)==="/";return u=y(s(u.split("/"),function(r){return!!r}),!e).join("/"),u||e||(u="."),u&&o&&(u+="/"),(e?"/":"")+u},v.isAbsolute=function(u){return u.charAt(0)==="/"},v.join=function(){var u=Array.prototype.slice.call(arguments,0);return v.normalize(s(u,function(e,o){if(typeof e!="string")throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},v.relative=function(u,e){function o(f){for(var T=0;T<f.length&&f[T]==="";T++);for(var S=f.length-1;S>=0&&f[S]==="";S--);return T>S?[]:f.slice(T,S-T+1)}u=v.resolve(u).substr(1),e=v.resolve(e).substr(1);for(var r=o(u.split("/")),l=o(e.split("/")),p=Math.min(r.length,l.length),c=p,x=0;x<p;x++)if(r[x]!==l[x]){c=x;break}for(var E=[],x=c;x<r.length;x++)E.push("..");return E=E.concat(l.slice(c)),E.join("/")},v.sep="/",v.delimiter=":",v.dirname=function(u){if(typeof u!="string"&&(u+=""),u.length===0)return".";for(var e=u.charCodeAt(0),o=e===47,r=-1,l=!0,p=u.length-1;p>=1;--p)if((e=u.charCodeAt(p))===47){if(!l){r=p;break}}else l=!1;return r===-1?o?"/":".":o&&r===1?"/":u.slice(0,r)},v.basename=function(u,e){var o=i(u);return e&&o.substr(-1*e.length)===e&&(o=o.substr(0,o.length-e.length)),o},v.extname=function(u){typeof u!="string"&&(u+="");for(var e=-1,o=0,r=-1,l=!0,p=0,c=u.length-1;c>=0;--c){var x=u.charCodeAt(c);if(x!==47)r===-1&&(l=!1,r=c+1),x===46?e===-1?e=c:p!==1&&(p=1):e!==-1&&(p=-1);else if(!l){o=c+1;break}}return e===-1||r===-1||p===0||p===1&&e===r-1&&e===o+1?"":u.slice(e,r)};var d="ab".substr(-1)==="b"?function(u,e,o){return u.substr(e,o)}:function(u,e,o){return e<0&&(e=u.length+e),u.substr(e,o)}}).call(this,n("_process"))},{_process:173}],171:[function(n,A,v){(function(h){(function(){"use strict";function y(D){return D=String(D),D.charAt(0).toUpperCase()+D.slice(1)}function i(D,M,L){var z={"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 M&&L&&/^Win/i.test(D)&&!/^Windows Phone /i.test(D)&&(z=z[/[\d.]+$/.exec(D)])&&(D="Windows "+z),D=String(D),M&&L&&(D=D.replace(RegExp(M,"i"),L)),D=d(D.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])}function s(D,M){var L=-1,z=D?D.length:0;if(typeof z=="number"&&z>-1&&z<=m)for(;++L<z;)M(D[L],L,D);else u(D,M)}function d(D){return D=p(D),/^(?:webOS|i(?:OS|P))/.test(D)?D:y(D)}function u(D,M){for(var L in D)C.call(D,L)&&M(D[L],L,D)}function e(D){return D==null?y(D):_.call(D).slice(8,-1)}function o(D,M){var L=D!=null?typeof D[M]:"number";return!(/^(?:boolean|number|string|undefined)$/.test(L)||L=="object"&&!D[M])}function r(D){return String(D).replace(/([ -])(?!$)/g,"$1?")}function l(D,M){var L=null;return s(D,function(z,W){L=M(L,z,W,D)}),L}function p(D){return String(D).replace(/^ +| +$/g,"")}function c(D){function M(P){return l(P,function(g,w){var V=w.pattern||r(w);return!g&&(g=RegExp("\\b"+V+" *\\d+[.\\w_]*","i").exec(D)||RegExp("\\b"+V+" *\\w+-[\\w]*","i").exec(D)||RegExp("\\b"+V+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(D))&&((g=String(w.label&&!RegExp(V,"i").test(w.label)?w.label:g).split("/"))[1]&&!/[\d.]+/.test(g[0])&&(g[0]+=" "+g[1]),w=w.label||w,g=d(g[0].replace(RegExp(V,"i"),w).replace(RegExp("; *(?:"+w+"[_-])?","i")," ").replace(RegExp("("+w+")[-_.]?(\\w)","i"),"$1 $2"))),g})}function L(){return this.description||""}var z=E,W=D&&typeof D=="object"&&e(D)!="String";W&&(z=D,D=null);var G=z.navigator||{},Z=G.userAgent||"";D||(D=Z);var U,ee,$=W?!!G.likeChrome:/\bChrome\b/.test(D)&&!/internal|\n/i.test(_.toString()),q=W?"Object":"ScriptBridgingProxyObject",R=W?"Object":"Environment",I=W&&z.java?"JavaPackage":e(z.java),F=W?"Object":"RuntimeObject",N=/\bJava/.test(I)&&z.java,H=N&&e(z.environment)==R,Y=N?"a":"\u4F2A",ae=N?"b":"\u5C3E",te=z.document||{},ue=z.operamini||z.opera,de=b.test(de=W&&ue?ue["[[Class]]"]:e(ue))?de:ue=null,Q=D,J=[],ie=null,X=D==Z,B=X&&ue&&typeof ue.version=="function"&&ue.version(),re=function(P){return l(P,function(g,w){return g||RegExp("\\b"+(w.pattern||r(w))+"\\b","i").exec(D)&&(w.label||w)})}([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),ne=function(P){return l(P,function(g,w){return g||RegExp("\\b"+(w.pattern||r(w))+"\\b","i").exec(D)&&(w.label||w)})}(["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"]),ce=M([{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"]),O=function(P){return l(P,function(g,w,V){return g||(w[ce]||w[/^[a-z]+(?: +[a-z]+\b)*/i.exec(ce)]||RegExp("\\b"+r(V)+"(?:\\b|\\w*\\d)","i").exec(D))&&V})}({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}}),t=function(P){return l(P,function(g,w){var V=w.pattern||r(w);return!g&&(g=RegExp("\\b"+V+"(?:/[\\d.]+|[ \\w.]*)","i").exec(D))&&(g=i(g,V,w.label||w)),g})}(["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 "]);if(re&&(re=[re]),O&&!ce&&(ce=M([O])),(U=/\bGoogle TV\b/.exec(ce))&&(ce=U[0]),/\bSimulator\b/i.test(D)&&(ce=(ce?ce+" ":"")+"Simulator"),ne=="Opera Mini"&&/\bOPiOS\b/.test(D)&&J.push("running in Turbo/Uncompressed mode"),ne=="IE"&&/\blike iPhone OS\b/.test(D)?(U=c(D.replace(/like iPhone OS/,"")),O=U.manufacturer,ce=U.product):/^iP/.test(ce)?(ne||(ne="Safari"),t="iOS"+((U=/ OS ([\d_]+)/i.exec(D))?" "+U[1].replace(/_/g,"."):"")):ne!="Konqueror"||/buntu/i.test(t)?O&&O!="Google"&&(/Chrome/.test(ne)&&!/\bMobile Safari\b/i.test(D)||/\bVita\b/.test(ce))||/\bAndroid\b/.test(t)&&/^Chrome/.test(ne)&&/\bVersion\//i.test(D)?(ne="Android Browser",t=/\bAndroid\b/.test(t)?t:"Android"):ne=="Silk"?(/\bMobi/i.test(D)||(t="Android",J.unshift("desktop mode")),/Accelerated *= *true/i.test(D)&&J.unshift("accelerated")):ne=="PaleMoon"&&(U=/\bFirefox\/([\d.]+)\b/.exec(D))?J.push("identifying as Firefox "+U[1]):ne=="Firefox"&&(U=/\b(Mobile|Tablet|TV)\b/i.exec(D))?(t||(t="Firefox OS"),ce||(ce=U[1])):!ne||(U=!/\bMinefield\b/i.test(D)&&/\b(?:Firefox|Safari)\b/.exec(ne))?(ne&&!ce&&/[\/,]|^[^(]+?\)/.test(D.slice(D.indexOf(U+"/")+8))&&(ne=null),(U=ce||O||t)&&(ce||O||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(t))&&(ne=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(t)?t:U)+" Browser")):ne=="Electron"&&(U=(/\bChrome\/([\d.]+)\b/.exec(D)||0)[1])&&J.push("Chromium "+U):t="Kubuntu",B||(B=function(P){return l(P,function(g,w){return g||(RegExp(w+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(D)||0)[1]||null})}(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",r(ne),"(?:Firefox|Minefield|NetFront)"])),(U=re=="iCab"&&parseFloat(B)>3&&"WebKit"||/\bOpera\b/.test(ne)&&(/\bOPR\b/.test(D)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(D)&&!/^(?:Trident|EdgeHTML)$/.test(re)&&"WebKit"||!re&&/\bMSIE\b/i.test(D)&&(t=="Mac OS"?"Tasman":"Trident")||re=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(ne)&&"NetFront")&&(re=[U]),ne=="IE"&&(U=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(D)||0)[1])?(ne+=" Mobile",t="Windows Phone "+(/\+$/.test(U)?U:U+".x"),J.unshift("desktop mode")):/\bWPDesktop\b/i.test(D)?(ne="IE Mobile",t="Windows Phone 8.x",J.unshift("desktop mode"),B||(B=(/\brv:([\d.]+)/.exec(D)||0)[1])):ne!="IE"&&re=="Trident"&&(U=/\brv:([\d.]+)/.exec(D))&&(ne&&J.push("identifying as "+ne+(B?" "+B:"")),ne="IE",B=U[1]),X){if(o(z,"global"))if(N&&(U=N.lang.System,Q=U.getProperty("os.arch"),t=t||U.getProperty("os.name")+" "+U.getProperty("os.version")),H){try{B=z.require("ringo/engine").version.join("."),ne="RingoJS"}catch(P){(U=z.system)&&U.global.system==z.system&&(ne="Narwhal",t||(t=U[0].os||null))}ne||(ne="Rhino")}else typeof z.process=="object"&&!z.process.browser&&(U=z.process)&&(typeof U.versions=="object"&&(typeof U.versions.electron=="string"?(J.push("Node "+U.versions.node),ne="Electron",B=U.versions.electron):typeof U.versions.nw=="string"&&(J.push("Chromium "+B,"Node "+U.versions.node),ne="NW.js",B=U.versions.nw)),ne||(ne="Node.js",Q=U.arch,t=U.platform,B=/[\d.]+/.exec(U.version),B=B?B[0]:null));else e(U=z.runtime)==q?(ne="Adobe AIR",t=U.flash.system.Capabilities.os):e(U=z.phantom)==F?(ne="PhantomJS",B=(U=U.version||null)&&U.major+"."+U.minor+"."+U.patch):typeof te.documentMode=="number"&&(U=/\bTrident\/(\d+)/i.exec(D))?(B=[B,te.documentMode],(U=+U[1]+4)!=B[1]&&(J.push("IE "+B[1]+" mode"),re&&(re[1]=""),B[1]=U),B=ne=="IE"?String(B[1].toFixed(1)):B[0]):typeof te.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(ne)&&(J.push("masking as "+ne+" "+B),ne="IE",B="11.0",re=["Trident"],t="Windows");t=t&&d(t)}if(B&&(U=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(B)||/(?:alpha|beta)(?: ?\d)?/i.exec(D+";"+(X&&G.appMinorVersion))||/\bMinefield\b/i.test(D)&&"a")&&(ie=/b/i.test(U)?"beta":"alpha",B=B.replace(RegExp(U+"\\+?$"),"")+(ie=="beta"?ae:Y)+(/\d+\+?/.exec(U)||"")),ne=="Fennec"||ne=="Firefox"&&/\b(?:Android|Firefox OS)\b/.test(t))ne="Firefox Mobile";else if(ne=="Maxthon"&&B)B=B.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(ce))ce=="Xbox 360"&&(t=null),ce=="Xbox 360"&&/\bIEMobile\b/.test(D)&&J.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(ne)&&(!ne||ce||/Browser|Mobi/.test(ne))||t!="Windows CE"&&!/Mobi/i.test(D))if(ne=="IE"&&X)try{z.external===null&&J.unshift("platform preview")}catch(P){J.unshift("embedded")}else(/\bBlackBerry\b/.test(ce)||/\bBB10\b/.test(D))&&(U=(RegExp(ce.replace(/ +/g," *")+"/([.\\d]+)","i").exec(D)||0)[1]||B)?(U=[U,/BB10/.test(D)],t=(U[1]?(ce=null,O="BlackBerry"):"Device Software")+" "+U[0],B=null):this!=u&&ce!="Wii"&&(X&&ue||/Opera/.test(ne)&&/\b(?:MSIE|Firefox)\b/i.test(D)||ne=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(t)||ne=="IE"&&(t&&!/^Win/.test(t)&&B>5.5||/\bWindows XP\b/.test(t)&&B>8||B==8&&!/\bTrident\b/.test(D)))&&!b.test(U=c.call(u,D.replace(b,"")+";"))&&U.name&&(U="ing as "+U.name+((U=U.version)?" "+U:""),b.test(ne)?(/\bIE\b/.test(U)&&t=="Mac OS"&&(t=null),U="identify"+U):(U="mask"+U,ne=de?d(de.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(U)&&(t=null),X||(B=null)),re=["Presto"],J.push(U));else ne+=" Mobile";(U=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(D)||0)[1])&&(U=[parseFloat(U.replace(/\.(\d)$/,".0$1")),U],ne=="Safari"&&U[1].slice(-1)=="+"?(ne="WebKit Nightly",ie="alpha",B=U[1].slice(0,-1)):B!=U[1]&&B!=(U[2]=(/\bSafari\/([\d.]+\+?)/i.exec(D)||0)[1])||(B=null),U[1]=(/\bChrome\/([\d.]+)/i.exec(D)||0)[1],U[0]==537.36&&U[2]==537.36&&parseFloat(U[1])>=28&&re=="WebKit"&&(re=["Blink"]),X&&($||U[1])?(re&&(re[1]="like Chrome"),U=U[1]||(U=U[0],U<530?1:U<532?2:U<532.05?3:U<533?4:U<534.03?5:U<534.07?6:U<534.1?7:U<534.13?8:U<534.16?9:U<534.24?10:U<534.3?11:U<535.01?12:U<535.02?"13+":U<535.07?15:U<535.11?16:U<535.19?17:U<536.05?18:U<536.1?19:U<537.01?20:U<537.11?"21+":U<537.13?23:U<537.18?24:U<537.24?25:U<537.36?26:re!="Blink"?"27":"28")):(re&&(re[1]="like Safari"),U=U[0],U=U<400?1:U<500?2:U<526?3:U<533?4:U<534?"4+":U<535?5:U<537?6:U<538?7:U<601?8:"8"),re&&(re[1]+=" "+(U+=typeof U=="number"?".x":/[.+]/.test(U)?"":"+")),ne=="Safari"&&(!B||parseInt(B)>45)&&(B=U)),ne=="Opera"&&(U=/\bzbov|zvav$/.exec(t))?(ne+=" ",J.unshift("desktop mode"),U=="zvav"?(ne+="Mini",B=null):ne+="Mobile",t=t.replace(RegExp(" *"+U+"$"),"")):ne=="Safari"&&/\bChrome\b/.exec(re&&re[1])&&(J.unshift("desktop mode"),ne="Chrome Mobile",B=null,/\bOS X\b/.test(t)?(O="Apple",t="iOS 4.3+"):t=null),B&&B.indexOf(U=/[\d.]+$/.exec(t))==0&&D.indexOf("/"+U+"-")>-1&&(t=p(t.replace(U,""))),re&&!/\b(?:Avant|Nook)\b/.test(ne)&&(/Browser|Lunascape|Maxthon/.test(ne)||ne!="Safari"&&/^iOS/.test(t)&&/\bSafari\b/.test(re[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(ne)&&re[1])&&(U=re[re.length-1])&&J.push(U),J.length&&(J=["("+J.join("; ")+")"]),O&&ce&&ce.indexOf(O)<0&&J.push("on "+O),ce&&J.push((/^on /.test(J[J.length-1])?"":"on ")+ce),t&&(U=/ ([\d.+]+)$/.exec(t),ee=U&&t.charAt(t.length-U[0].length-1)=="/",t={architecture:32,family:U&&!ee?t.replace(U[0],""):t,version:U?U[1]:null,toString:function(){var g=this.version;return this.family+(g&&!ee?" "+g:"")+(this.architecture==64?" 64-bit":"")}}),(U=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(Q))&&!/\bi686\b/i.test(Q)?(t&&(t.architecture=64,t.family=t.family.replace(RegExp(" *"+U),"")),ne&&(/\bWOW64\b/i.test(D)||X&&/\w(?:86|32)$/.test(G.cpuClass||G.platform)&&!/\bWin64; x64\b/i.test(D))&&J.unshift("32-bit")):t&&/^OS X/.test(t.family)&&ne=="Chrome"&&parseFloat(B)>=39&&(t.architecture=64),D||(D=null);var a={};return a.description=D,a.layout=re&&re[0],a.manufacturer=O,a.name=ne,a.prerelease=ie,a.product=ce,a.ua=D,a.version=ne&&B,a.os=t||{architecture:null,family:null,version:null,toString:function(){return"null"}},a.parse=c,a.toString=L,a.version&&J.unshift(B),a.name&&J.unshift(ne),t&&ne&&(t!=String(t).split(" ")[0]||t!=ne.split(" ")[0]&&!ce)&&J.push(ce?"("+t+")":"on "+t),J.length&&(a.description=J.join(" ")),a}var x={function:!0,object:!0},E=x[typeof window]&&window||this,f=x[typeof v]&&v,T=x[typeof A]&&A&&!A.nodeType&&A,S=f&&T&&typeof h=="object"&&h;!S||S.global!==S&&S.window!==S&&S.self!==S||(E=S);var m=Math.pow(2,53)-1,b=/\bOpera/,k=Object.prototype,C=k.hasOwnProperty,_=k.toString,j=c();typeof pe=="function"&&typeof pe.amd=="object"&&pe.amd?(E.platform=j,pe(function(){return j})):f&&T?u(j,function(D,M){f[M]=D}):E.platform=j}).call(this)}).call(this,typeof Ae!="undefined"?Ae:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],172:[function(n,A,v){(function(h){"use strict";function y(i,s,d,u){if(typeof i!="function")throw new TypeError('"callback" argument must be a function');var e,o,r=arguments.length;switch(r){case 0:case 1:return h.nextTick(i);case 2:return h.nextTick(function(){i.call(null,s)});case 3:return h.nextTick(function(){i.call(null,s,d)});case 4:return h.nextTick(function(){i.call(null,s,d,u)});default:for(e=new Array(r-1),o=0;o<e.length;)e[o++]=arguments[o];return h.nextTick(function(){i.apply(null,e)})}}!h.version||h.version.indexOf("v0.")===0||h.version.indexOf("v1.")===0&&h.version.indexOf("v1.8.")!==0?A.exports={nextTick:y}:A.exports=h}).call(this,n("_process"))},{_process:173}],173:[function(n,A,v){function h(){throw new Error("setTimeout has not been defined")}function y(){throw new Error("clearTimeout has not been defined")}function i(T){if(r===setTimeout)return setTimeout(T,0);if((r===h||!r)&&setTimeout)return r=setTimeout,setTimeout(T,0);try{return r(T,0)}catch(S){try{return r.call(null,T,0)}catch(m){return r.call(this,T,0)}}}function s(T){if(l===clearTimeout)return clearTimeout(T);if((l===y||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(T);try{return l(T)}catch(S){try{return l.call(null,T)}catch(m){return l.call(this,T)}}}function d(){E&&c&&(E=!1,c.length?x=c.concat(x):f=-1,x.length&&u())}function u(){if(!E){var T=i(d);E=!0;for(var S=x.length;S;){for(c=x,x=[];++f<S;)c&&c[f].run();f=-1,S=x.length}c=null,E=!1,s(T)}}function e(T,S){this.fun=T,this.array=S}function o(){}var r,l,p=A.exports={};!function(){try{r=typeof setTimeout=="function"?setTimeout:h}catch(T){r=h}try{l=typeof clearTimeout=="function"?clearTimeout:y}catch(T){l=y}}();var c,x=[],E=!1,f=-1;p.nextTick=function(T){var S=new Array(arguments.length-1);if(arguments.length>1)for(var m=1;m<arguments.length;m++)S[m-1]=arguments[m];x.push(new e(T,S)),x.length!==1||E||i(u)},e.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=o,p.addListener=o,p.once=o,p.off=o,p.removeListener=o,p.removeAllListeners=o,p.emit=o,p.prependListener=o,p.prependOnceListener=o,p.listeners=function(T){return[]},p.binding=function(T){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(T){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},{}],174:[function(n,A,v){(function(h){!function(y){function i(I){throw new RangeError(ee[I])}function s(I,F){for(var N=I.length,H=[];N--;)H[N]=F(I[N]);return H}function d(I,F){var N=I.split("@"),H="";return N.length>1&&(H=N[0]+"@",I=N[1]),I=I.replace(U,"."),H+s(I.split("."),F).join(".")}function u(I){for(var F,N,H=[],Y=0,ae=I.length;Y<ae;)F=I.charCodeAt(Y++),F>=55296&&F<=56319&&Y<ae?(N=I.charCodeAt(Y++),(64512&N)==56320?H.push(((1023&F)<<10)+(1023&N)+65536):(H.push(F),Y--)):H.push(F);return H}function e(I){return s(I,function(F){var N="";return F>65535&&(F-=65536,N+=R(F>>>10&1023|55296),F=56320|1023&F),N+=R(F)}).join("")}function o(I){return I-48<10?I-22:I-65<26?I-65:I-97<26?I-97:C}function r(I,F){return I+22+75*(I<26)-((F!=0)<<5)}function l(I,F,N){var H=0;for(I=N?q(I/M):I>>1,I+=q(I/F);I>$*j>>1;H+=C)I=q(I/$);return q(H+($+1)*I/(I+D))}function p(I){var F,N,H,Y,ae,te,ue,de,Q,J,ie=[],X=I.length,B=0,re=z,ne=L;for(N=I.lastIndexOf(W),N<0&&(N=0),H=0;H<N;++H)I.charCodeAt(H)>=128&&i("not-basic"),ie.push(I.charCodeAt(H));for(Y=N>0?N+1:0;Y<X;){for(ae=B,te=1,ue=C;Y>=X&&i("invalid-input"),de=o(I.charCodeAt(Y++)),(de>=C||de>q((k-B)/te))&&i("overflow"),B+=de*te,Q=ue<=ne?_:ue>=ne+j?j:ue-ne,!(de<Q);ue+=C)J=C-Q,te>q(k/J)&&i("overflow"),te*=J;F=ie.length+1,ne=l(B-ae,F,ae==0),q(B/F)>k-re&&i("overflow"),re+=q(B/F),B%=F,ie.splice(B++,0,re)}return e(ie)}function c(I){var F,N,H,Y,ae,te,ue,de,Q,J,ie,X,B,re,ne,ce=[];for(I=u(I),X=I.length,F=z,N=0,ae=L,te=0;te<X;++te)(ie=I[te])<128&&ce.push(R(ie));for(H=Y=ce.length,Y&&ce.push(W);H<X;){for(ue=k,te=0;te<X;++te)(ie=I[te])>=F&&ie<ue&&(ue=ie);for(B=H+1,ue-F>q((k-N)/B)&&i("overflow"),N+=(ue-F)*B,F=ue,te=0;te<X;++te)if(ie=I[te],ie<F&&++N>k&&i("overflow"),ie==F){for(de=N,Q=C;J=Q<=ae?_:Q>=ae+j?j:Q-ae,!(de<J);Q+=C)ne=de-J,re=C-J,ce.push(R(r(J+ne%re,0))),de=q(ne/re);ce.push(R(r(de,0))),ae=l(N,B,H==Y),N=0,++H}++N,++F}return ce.join("")}function x(I){return d(I,function(F){return G.test(F)?p(F.slice(4).toLowerCase()):F})}function E(I){return d(I,function(F){return Z.test(F)?"xn--"+c(F):F})}var f=typeof v=="object"&&v&&!v.nodeType&&v,T=typeof A=="object"&&A&&!A.nodeType&&A,S=typeof h=="object"&&h;S.global!==S&&S.window!==S&&S.self!==S||(y=S);var m,b,k=2147483647,C=36,_=1,j=26,D=38,M=700,L=72,z=128,W="-",G=/^xn--/,Z=/[^\x20-\x7E]/,U=/[\x2E\u3002\uFF0E\uFF61]/g,ee={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},$=C-_,q=Math.floor,R=String.fromCharCode;if(m={version:"1.4.1",ucs2:{decode:u,encode:e},decode:p,encode:c,toASCII:E,toUnicode:x},typeof pe=="function"&&typeof pe.amd=="object"&&pe.amd)pe("punycode",function(){return m});else if(f&&T)if(A.exports==f)T.exports=m;else for(b in m)m.hasOwnProperty(b)&&(f[b]=m[b]);else y.punycode=m}(this)}).call(this,typeof Ae!="undefined"?Ae:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],175:[function(n,A,v){"use strict";function h(i,s){return Object.prototype.hasOwnProperty.call(i,s)}A.exports=function(i,s,d,u){s=s||"&",d=d||"=";var e={};if(typeof i!="string"||i.length===0)return e;var o=/\+/g;i=i.split(s);var r=1e3;u&&typeof u.maxKeys=="number"&&(r=u.maxKeys);var l=i.length;r>0&&l>r&&(l=r);for(var p=0;p<l;++p){var c,x,E,f,T=i[p].replace(o,"%20"),S=T.indexOf(d);S>=0?(c=T.substr(0,S),x=T.substr(S+1)):(c=T,x=""),E=decodeURIComponent(c),f=decodeURIComponent(x),h(e,E)?y(e[E])?e[E].push(f):e[E]=[e[E],f]:e[E]=f}return e};var y=Array.isArray||function(i){return Object.prototype.toString.call(i)==="[object Array]"}},{}],176:[function(n,A,v){"use strict";function h(d,u){if(d.map)return d.map(u);for(var e=[],o=0;o<d.length;o++)e.push(u(d[o],o));return e}var y=function(u){switch(typeof u){case"string":return u;case"boolean":return u?"true":"false";case"number":return isFinite(u)?u:"";default:return""}};A.exports=function(d,u,e,o){return u=u||"&",e=e||"=",d===null&&(d=void 0),typeof d=="object"?h(s(d),function(r){var l=encodeURIComponent(y(r))+e;return i(d[r])?h(d[r],function(p){return l+encodeURIComponent(y(p))}).join(u):l+encodeURIComponent(y(d[r]))}).join(u):o?encodeURIComponent(y(o))+e+encodeURIComponent(y(d)):""};var i=Array.isArray||function(d){return Object.prototype.toString.call(d)==="[object Array]"},s=Object.keys||function(d){var u=[];for(var e in d)Object.prototype.hasOwnProperty.call(d,e)&&u.push(e);return u}},{}],177:[function(n,A,v){"use strict";v.decode=v.parse=n("./decode"),v.encode=v.stringify=n("./encode")},{"./decode":175,"./encode":176}],178:[function(n,A,v){A.exports=n("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":179}],179:[function(n,A,v){"use strict";function h(E){if(!(this instanceof h))return new h(E);r.call(this,E),l.call(this,E),E&&E.readable===!1&&(this.readable=!1),E&&E.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,E&&E.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",y)}function y(){this.allowHalfOpen||this._writableState.ended||u.nextTick(i,this)}function i(E){E.end()}var s=n("babel-runtime/core-js/object/keys"),d=function(E){return E&&E.__esModule?E:{default:E}}(s),u=n("process-nextick-args"),e=d.default||function(E){var f=[];for(var T in E)f.push(T);return f};A.exports=h;var o=n("core-util-is");o.inherits=n("inherits");var r=n("./_stream_readable"),l=n("./_stream_writable");o.inherits(h,r);for(var p=e(l.prototype),c=0;c<p.length;c++){var x=p[c];h.prototype[x]||(h.prototype[x]=l.prototype[x])}Object.defineProperty(h.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(h.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(f){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=f,this._writableState.destroyed=f)}}),h.prototype._destroy=function(E,f){this.push(null),this.end(),u.nextTick(f,E)}},{"./_stream_readable":181,"./_stream_writable":183,"babel-runtime/core-js/object/keys":23,"core-util-is":153,inherits:162,"process-nextick-args":172}],180:[function(n,A,v){"use strict";function h(s){if(!(this instanceof h))return new h(s);y.call(this,s)}A.exports=h;var y=n("./_stream_transform"),i=n("core-util-is");i.inherits=n("inherits"),i.inherits(h,y),h.prototype._transform=function(s,d,u){u(null,s)}},{"./_stream_transform":182,"core-util-is":153,inherits:162}],181:[function(n,A,v){(function(h,y){"use strict";function i(X){return N.from(X)}function s(X){return N.isBuffer(X)||X instanceof H}function d(X,B,re){if(typeof X.prependListener=="function")return X.prependListener(B,re);X._events&&X._events[B]?R(X._events[B])?X._events[B].unshift(re):X._events[B]=[re,X._events[B]]:X.on(B,re)}function u(X,B){q=q||n("./_stream_duplex"),X=X||{};var re=B instanceof q;this.objectMode=!!X.objectMode,re&&(this.objectMode=this.objectMode||!!X.readableObjectMode);var ne=X.highWaterMark,ce=X.readableHighWaterMark,O=this.objectMode?16:16384;this.highWaterMark=ne||ne===0?ne:re&&(ce||ce===0)?ce:O,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new de,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&&(ue||(ue=n("string_decoder/").StringDecoder),this.decoder=new ue(X.encoding),this.encoding=X.encoding)}function e(X){if(q=q||n("./_stream_duplex"),!(this instanceof e))return new e(X);this._readableState=new u(X,this),this.readable=!0,X&&(typeof X.read=="function"&&(this._read=X.read),typeof X.destroy=="function"&&(this._destroy=X.destroy)),F.call(this)}function o(X,B,re,ne,ce){var O=X._readableState;if(B===null)O.reading=!1,E(X,O);else{var t;ce||(t=l(O,B)),t?X.emit("error",t):O.objectMode||B&&B.length>0?(typeof B=="string"||O.objectMode||(0,ee.default)(B)===N.prototype||(B=i(B)),ne?O.endEmitted?X.emit("error",new Error("stream.unshift() after end event")):r(X,O,B,!0):O.ended?X.emit("error",new Error("stream.push() after EOF")):(O.reading=!1,O.decoder&&!re?(B=O.decoder.write(B),O.objectMode||B.length!==0?r(X,O,B,!1):S(X,O)):r(X,O,B,!1))):ne||(O.reading=!1)}return p(O)}function r(X,B,re,ne){B.flowing&&B.length===0&&!B.sync?(X.emit("data",re),X.read(0)):(B.length+=B.objectMode?1:re.length,ne?B.buffer.unshift(re):B.buffer.push(re),B.needReadable&&f(X)),S(X,B)}function l(X,B){var re;return s(B)||typeof B=="string"||B===void 0||X.objectMode||(re=new TypeError("Invalid non-string/buffer chunk")),re}function p(X){return!X.ended&&(X.needReadable||X.length<X.highWaterMark||X.length===0)}function c(X){return X>=ie?X=ie:(X--,X|=X>>>1,X|=X>>>2,X|=X>>>4,X|=X>>>8,X|=X>>>16,X++),X}function x(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=c(X)),X<=B.length?X:B.ended?B.length:(B.needReadable=!0,0))}function E(X,B){if(!B.ended){if(B.decoder){var re=B.decoder.end();re&&re.length&&(B.buffer.push(re),B.length+=B.objectMode?1:re.length)}B.ended=!0,f(X)}}function f(X){var B=X._readableState;B.needReadable=!1,B.emittedReadable||(te("emitReadable",B.flowing),B.emittedReadable=!0,B.sync?$.nextTick(T,X):T(X))}function T(X){te("emit readable"),X.emit("readable"),j(X)}function S(X,B){B.readingMore||(B.readingMore=!0,$.nextTick(m,X,B))}function m(X,B){for(var re=B.length;!B.reading&&!B.flowing&&!B.ended&&B.length<B.highWaterMark&&(te("maybeReadMore read 0"),X.read(0),re!==B.length);)re=B.length;B.readingMore=!1}function b(X){return function(){var B=X._readableState;te("pipeOnDrain",B.awaitDrain),B.awaitDrain&&B.awaitDrain--,B.awaitDrain===0&&I(X,"data")&&(B.flowing=!0,j(X))}}function k(X){te("readable nexttick read 0"),X.read(0)}function C(X,B){B.resumeScheduled||(B.resumeScheduled=!0,$.nextTick(_,X,B))}function _(X,B){B.reading||(te("resume read 0"),X.read(0)),B.resumeScheduled=!1,B.awaitDrain=0,X.emit("resume"),j(X),B.flowing&&!B.reading&&X.read(0)}function j(X){var B=X._readableState;for(te("flow",B.flowing);B.flowing&&X.read()!==null;);}function D(X,B){if(B.length===0)return null;var re;return B.objectMode?re=B.buffer.shift():!X||X>=B.length?(re=B.decoder?B.buffer.join(""):B.buffer.length===1?B.buffer.head.data:B.buffer.concat(B.length),B.buffer.clear()):re=M(X,B.buffer,B.decoder),re}function M(X,B,re){var ne;return X<B.head.data.length?(ne=B.head.data.slice(0,X),B.head.data=B.head.data.slice(X)):ne=X===B.head.data.length?B.shift():re?L(X,B):z(X,B),ne}function L(X,B){var re=B.head,ne=1,ce=re.data;for(X-=ce.length;re=re.next;){var O=re.data,t=X>O.length?O.length:X;if(t===O.length?ce+=O:ce+=O.slice(0,X),(X-=t)===0){t===O.length?(++ne,re.next?B.head=re.next:B.head=B.tail=null):(B.head=re,re.data=O.slice(t));break}++ne}return B.length-=ne,ce}function z(X,B){var re=N.allocUnsafe(X),ne=B.head,ce=1;for(ne.data.copy(re),X-=ne.data.length;ne=ne.next;){var O=ne.data,t=X>O.length?O.length:X;if(O.copy(re,re.length-X,0,t),(X-=t)===0){t===O.length?(++ce,ne.next?B.head=ne.next:B.head=B.tail=null):(B.head=ne,ne.data=O.slice(t));break}++ce}return B.length-=ce,re}function W(X){var B=X._readableState;if(B.length>0)throw new Error('"endReadable()" called on non-empty stream');B.endEmitted||(B.ended=!0,$.nextTick(G,B,X))}function G(X,B){X.endEmitted||X.length!==0||(X.endEmitted=!0,B.readable=!1,B.emit("end"))}function Z(X,B){for(var re=0,ne=X.length;re<ne;re++)if(X[re]===B)return re;return-1}var U=n("babel-runtime/core-js/object/get-prototype-of"),ee=function(X){return X&&X.__esModule?X:{default:X}}(U),$=n("process-nextick-args");A.exports=e;var q,R=n("isarray");e.ReadableState=u;var I=(n("events").EventEmitter,function(X,B){return X.listeners(B).length}),F=n("./internal/streams/stream"),N=n("safe-buffer").Buffer,H=y.Uint8Array||function(){},Y=n("core-util-is");Y.inherits=n("inherits");var ae=n("util"),te=void 0;te=ae&&ae.debuglog?ae.debuglog("stream"):function(){};var ue,de=n("./internal/streams/BufferList"),Q=n("./internal/streams/destroy");Y.inherits(e,F);var J=["error","close","destroy","pause","resume"];Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(B){this._readableState&&(this._readableState.destroyed=B)}}),e.prototype.destroy=Q.destroy,e.prototype._undestroy=Q.undestroy,e.prototype._destroy=function(X,B){this.push(null),B(X)},e.prototype.push=function(X,B){var re,ne=this._readableState;return ne.objectMode?re=!0:typeof X=="string"&&(B=B||ne.defaultEncoding,B!==ne.encoding&&(X=N.from(X,B),B=""),re=!0),o(this,X,B,!1,re)},e.prototype.unshift=function(X){return o(this,X,null,!0,!1)},e.prototype.isPaused=function(){return this._readableState.flowing===!1},e.prototype.setEncoding=function(X){return ue||(ue=n("string_decoder/").StringDecoder),this._readableState.decoder=new ue(X),this._readableState.encoding=X,this};var ie=8388608;e.prototype.read=function(X){te("read",X),X=parseInt(X,10);var B=this._readableState,re=X;if(X!==0&&(B.emittedReadable=!1),X===0&&B.needReadable&&(B.length>=B.highWaterMark||B.ended))return te("read: emitReadable",B.length,B.ended),B.length===0&&B.ended?W(this):f(this),null;if((X=x(X,B))===0&&B.ended)return B.length===0&&W(this),null;var ne=B.needReadable;te("need readable",ne),(B.length===0||B.length-X<B.highWaterMark)&&(ne=!0,te("length less than watermark",ne)),B.ended||B.reading?(ne=!1,te("reading or ended",ne)):ne&&(te("do read"),B.reading=!0,B.sync=!0,B.length===0&&(B.needReadable=!0),this._read(B.highWaterMark),B.sync=!1,B.reading||(X=x(re,B)));var ce;return ce=X>0?D(X,B):null,ce===null?(B.needReadable=!0,X=0):B.length-=X,B.length===0&&(B.ended||(B.needReadable=!0),re!==X&&B.ended&&W(this)),ce!==null&&this.emit("data",ce),ce},e.prototype._read=function(X){this.emit("error",new Error("_read() is not implemented"))},e.prototype.pipe=function(X,B){function re(ve,he){te("onunpipe"),ve===w&&he&&he.hasUnpiped===!1&&(he.hasUnpiped=!0,ce())}function ne(){te("onend"),X.end()}function ce(){te("cleanup"),X.removeListener("close",a),X.removeListener("finish",P),X.removeListener("drain",le),X.removeListener("error",t),X.removeListener("unpipe",re),w.removeListener("end",ne),w.removeListener("end",g),w.removeListener("data",O),me=!0,!V.awaitDrain||X._writableState&&!X._writableState.needDrain||le()}function O(ve){te("ondata"),ge=!1,X.write(ve)!==!1||ge||((V.pipesCount===1&&V.pipes===X||V.pipesCount>1&&Z(V.pipes,X)!==-1)&&!me&&(te("false write response, pause",w._readableState.awaitDrain),w._readableState.awaitDrain++,ge=!0),w.pause())}function t(ve){te("onerror",ve),g(),X.removeListener("error",t),I(X,"error")===0&&X.emit("error",ve)}function a(){X.removeListener("finish",P),g()}function P(){te("onfinish"),X.removeListener("close",a),g()}function g(){te("unpipe"),w.unpipe(X)}var w=this,V=this._readableState;switch(V.pipesCount){case 0:V.pipes=X;break;case 1:V.pipes=[V.pipes,X];break;default:V.pipes.push(X)}V.pipesCount+=1,te("pipe count=%d opts=%j",V.pipesCount,B);var K=(!B||B.end!==!1)&&X!==h.stdout&&X!==h.stderr,fe=K?ne:g;V.endEmitted?$.nextTick(fe):w.once("end",fe),X.on("unpipe",re);var le=b(w);X.on("drain",le);var me=!1,ge=!1;return w.on("data",O),d(X,"error",t),X.once("close",a),X.once("finish",P),X.emit("pipe",w),V.flowing||(te("pipe resume"),w.resume()),X},e.prototype.unpipe=function(X){var B=this._readableState,re={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,re),this);if(!X){var ne=B.pipes,ce=B.pipesCount;B.pipes=null,B.pipesCount=0,B.flowing=!1;for(var O=0;O<ce;O++)ne[O].emit("unpipe",this,re);return this}var t=Z(B.pipes,X);return t===-1?this:(B.pipes.splice(t,1),B.pipesCount-=1,B.pipesCount===1&&(B.pipes=B.pipes[0]),X.emit("unpipe",this,re),this)},e.prototype.on=function(X,B){var re=F.prototype.on.call(this,X,B);if(X==="data")this._readableState.flowing!==!1&&this.resume();else if(X==="readable"){var ne=this._readableState;ne.endEmitted||ne.readableListening||(ne.readableListening=ne.needReadable=!0,ne.emittedReadable=!1,ne.reading?ne.length&&f(this):$.nextTick(k,this))}return re},e.prototype.addListener=e.prototype.on,e.prototype.resume=function(){var X=this._readableState;return X.flowing||(te("resume"),X.flowing=!0,C(this,X)),this},e.prototype.pause=function(){return te("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(te("pause"),this._readableState.flowing=!1,this.emit("pause")),this},e.prototype.wrap=function(X){var B=this,re=this._readableState,ne=!1;X.on("end",function(){if(te("wrapped end"),re.decoder&&!re.ended){var t=re.decoder.end();t&&t.length&&B.push(t)}B.push(null)}),X.on("data",function(t){(te("wrapped data"),re.decoder&&(t=re.decoder.write(t)),(!re.objectMode||t!=null)&&(re.objectMode||t&&t.length))&&(B.push(t)||(ne=!0,X.pause()))});for(var ce in X)this[ce]===void 0&&typeof X[ce]=="function"&&(this[ce]=function(t){return function(){return X[t].apply(X,arguments)}}(ce));for(var O=0;O<J.length;O++)X.on(J[O],this.emit.bind(this,J[O]));return this._read=function(t){te("wrapped _read",t),ne&&(ne=!1,X.resume())},this},Object.defineProperty(e.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),e._fromList=D}).call(this,n("_process"),typeof Ae!="undefined"?Ae:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":179,"./internal/streams/BufferList":184,"./internal/streams/destroy":185,"./internal/streams/stream":186,_process:173,"babel-runtime/core-js/object/get-prototype-of":22,"core-util-is":153,events:158,inherits:162,isarray:166,"process-nextick-args":172,"safe-buffer":193,"string_decoder/":200,util:36}],182:[function(n,A,v){"use strict";function h(e,o){var r=this._transformState;r.transforming=!1;var l=r.writecb;if(!l)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,o!=null&&this.push(o),l(e);var p=this._readableState;p.reading=!1,(p.needReadable||p.length<p.highWaterMark)&&this._read(p.highWaterMark)}function y(e){if(!(this instanceof y))return new y(e);d.call(this,e),this._transformState={afterTransform:h.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",i)}function i(){var e=this;typeof this._flush=="function"?this._flush(function(o,r){s(e,o,r)}):s(this,null,null)}function s(e,o,r){if(o)return e.emit("error",o);if(r!=null&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}A.exports=y;var d=n("./_stream_duplex"),u=n("core-util-is");u.inherits=n("inherits"),u.inherits(y,d),y.prototype.push=function(e,o){return this._transformState.needTransform=!1,d.prototype.push.call(this,e,o)},y.prototype._transform=function(e,o,r){throw new Error("_transform() is not implemented")},y.prototype._write=function(e,o,r){var l=this._transformState;if(l.writecb=r,l.writechunk=e,l.writeencoding=o,!l.transforming){var p=this._readableState;(l.needTransform||p.needReadable||p.length<p.highWaterMark)&&this._read(p.highWaterMark)}},y.prototype._read=function(e){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},y.prototype._destroy=function(e,o){var r=this;d.prototype._destroy.call(this,e,function(l){o(l),r.emit("close")})}},{"./_stream_duplex":179,"core-util-is":153,inherits:162}],183:[function(n,A,v){(function(h,y){"use strict";function i(Q){return Q&&Q.__esModule?Q:{default:Q}}function s(Q){var J=this;this.next=null,this.entry=null,this.finish=function(){L(J,Q)}}function d(Q){return ae.from(Q)}function u(Q){return ae.isBuffer(Q)||Q instanceof te}function e(){}function o(Q,J){I=I||n("./_stream_duplex"),Q=Q||{};var ie=J instanceof I;this.objectMode=!!Q.objectMode,ie&&(this.objectMode=this.objectMode||!!Q.writableObjectMode);var X=Q.highWaterMark,B=Q.writableHighWaterMark,re=this.objectMode?16:16384;this.highWaterMark=X||X===0?X:ie&&(B||B===0)?B:re,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 ne=Q.decodeStrings===!1;this.decodeStrings=!ne,this.defaultEncoding=Q.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(ce){S(J,ce)},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 s(this)}function r(Q){if(I=I||n("./_stream_duplex"),!(de.call(r,this)||this instanceof I))return new r(Q);this._writableState=new o(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)),Y.call(this)}function l(Q,J){var ie=new Error("write after end");Q.emit("error",ie),R.nextTick(J,ie)}function p(Q,J,ie,X){var B=!0,re=!1;return ie===null?re=new TypeError("May not write null values to stream"):typeof ie=="string"||ie===void 0||J.objectMode||(re=new TypeError("Invalid non-string/buffer chunk")),re&&(Q.emit("error",re),R.nextTick(X,re),B=!1),B}function c(Q,J,ie){return Q.objectMode||Q.decodeStrings===!1||typeof J!="string"||(J=ae.from(J,ie)),J}function x(Q,J,ie,X,B,re){if(!ie){var ne=c(J,X,B);X!==ne&&(ie=!0,B="buffer",X=ne)}var ce=J.objectMode?1:X.length;J.length+=ce;var O=J.length<J.highWaterMark;if(O||(J.needDrain=!0),J.writing||J.corked){var t=J.lastBufferedRequest;J.lastBufferedRequest={chunk:X,encoding:B,isBuf:ie,callback:re,next:null},t?t.next=J.lastBufferedRequest:J.bufferedRequest=J.lastBufferedRequest,J.bufferedRequestCount+=1}else E(Q,J,!1,ce,X,B,re);return O}function E(Q,J,ie,X,B,re,ne){J.writelen=X,J.writecb=ne,J.writing=!0,J.sync=!0,ie?Q._writev(B,J.onwrite):Q._write(B,re,J.onwrite),J.sync=!1}function f(Q,J,ie,X,B){--J.pendingcb,ie?(R.nextTick(B,X),R.nextTick(D,Q,J),Q._writableState.errorEmitted=!0,Q.emit("error",X)):(B(X),Q._writableState.errorEmitted=!0,Q.emit("error",X),D(Q,J))}function T(Q){Q.writing=!1,Q.writecb=null,Q.length-=Q.writelen,Q.writelen=0}function S(Q,J){var ie=Q._writableState,X=ie.sync,B=ie.writecb;if(T(ie),J)f(Q,ie,X,J,B);else{var re=C(ie);re||ie.corked||ie.bufferProcessing||!ie.bufferedRequest||k(Q,ie),X?F(m,Q,ie,re,B):m(Q,ie,re,B)}}function m(Q,J,ie,X){ie||b(Q,J),J.pendingcb--,X(),D(Q,J)}function b(Q,J){J.length===0&&J.needDrain&&(J.needDrain=!1,Q.emit("drain"))}function k(Q,J){J.bufferProcessing=!0;var ie=J.bufferedRequest;if(Q._writev&&ie&&ie.next){var X=J.bufferedRequestCount,B=new Array(X),re=J.corkedRequestsFree;re.entry=ie;for(var ne=0,ce=!0;ie;)B[ne]=ie,ie.isBuf||(ce=!1),ie=ie.next,ne+=1;B.allBuffers=ce,E(Q,J,!0,J.length,B,"",re.finish),J.pendingcb++,J.lastBufferedRequest=null,re.next?(J.corkedRequestsFree=re.next,re.next=null):J.corkedRequestsFree=new s(J),J.bufferedRequestCount=0}else{for(;ie;){var O=ie.chunk,t=ie.encoding,a=ie.callback;if(E(Q,J,!1,J.objectMode?1:O.length,O,t,a),ie=ie.next,J.bufferedRequestCount--,J.writing)break}ie===null&&(J.lastBufferedRequest=null)}J.bufferedRequest=ie,J.bufferProcessing=!1}function C(Q){return Q.ending&&Q.length===0&&Q.bufferedRequest===null&&!Q.finished&&!Q.writing}function _(Q,J){Q._final(function(ie){J.pendingcb--,ie&&Q.emit("error",ie),J.prefinished=!0,Q.emit("prefinish"),D(Q,J)})}function j(Q,J){J.prefinished||J.finalCalled||(typeof Q._final=="function"?(J.pendingcb++,J.finalCalled=!0,R.nextTick(_,Q,J)):(J.prefinished=!0,Q.emit("prefinish")))}function D(Q,J){var ie=C(J);return ie&&(j(Q,J),J.pendingcb===0&&(J.finished=!0,Q.emit("finish"))),ie}function M(Q,J,ie){J.ending=!0,D(Q,J),ie&&(J.finished?R.nextTick(ie):Q.once("finish",ie)),J.ended=!0,Q.writable=!1}function L(Q,J,ie){var X=Q.entry;for(Q.entry=null;X;){var B=X.callback;J.pendingcb--,B(ie),X=X.next}J.corkedRequestsFree?J.corkedRequestsFree.next=Q:J.corkedRequestsFree=Q}var z=n("babel-runtime/core-js/object/define-property"),W=i(z),G=n("babel-runtime/core-js/symbol/has-instance"),Z=i(G),U=n("babel-runtime/core-js/symbol"),ee=i(U),$=n("babel-runtime/core-js/set-immediate"),q=i($),R=n("process-nextick-args");A.exports=r;var I,F=!h.browser&&["v0.10","v0.9."].indexOf(h.version.slice(0,5))>-1?q.default:R.nextTick;r.WritableState=o;var N=n("core-util-is");N.inherits=n("inherits");var H={deprecate:n("util-deprecate")},Y=n("./internal/streams/stream"),ae=n("safe-buffer").Buffer,te=y.Uint8Array||function(){},ue=n("./internal/streams/destroy");N.inherits(r,Y),o.prototype.getBuffer=function(){for(var Q=this.bufferedRequest,J=[];Q;)J.push(Q),Q=Q.next;return J},function(){try{Object.defineProperty(o.prototype,"buffer",{get:H.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(Q){}}();var de;typeof ee.default=="function"&&Z.default&&typeof Function.prototype[Z.default]=="function"?(de=Function.prototype[Z.default],(0,W.default)(r,Z.default,{value:function(J){return!!de.call(this,J)||this===r&&J&&J._writableState instanceof o}})):de=function(J){return J instanceof this},r.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},r.prototype.write=function(Q,J,ie){var X=this._writableState,B=!1,re=!X.objectMode&&u(Q);return re&&!ae.isBuffer(Q)&&(Q=d(Q)),typeof J=="function"&&(ie=J,J=null),re?J="buffer":J||(J=X.defaultEncoding),typeof ie!="function"&&(ie=e),X.ended?l(this,ie):(re||p(this,X,Q,ie))&&(X.pendingcb++,B=x(this,X,re,Q,J,ie)),B},r.prototype.cork=function(){this._writableState.corked++},r.prototype.uncork=function(){var Q=this._writableState;Q.corked&&(Q.corked--,Q.writing||Q.corked||Q.finished||Q.bufferProcessing||!Q.bufferedRequest||k(this,Q))},r.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},Object.defineProperty(r.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),r.prototype._write=function(Q,J,ie){ie(new Error("_write() is not implemented"))},r.prototype._writev=null,r.prototype.end=function(Q,J,ie){var X=this._writableState;typeof Q=="function"?(ie=Q,Q=null,J=null):typeof J=="function"&&(ie=J,J=null),Q!=null&&this.write(Q,J),X.corked&&(X.corked=1,this.uncork()),X.ending||X.finished||M(this,X,ie)},Object.defineProperty(r.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(J){this._writableState&&(this._writableState.destroyed=J)}}),r.prototype.destroy=ue.destroy,r.prototype._undestroy=ue.undestroy,r.prototype._destroy=function(Q,J){this.end(),J(Q)}}).call(this,n("_process"),typeof Ae!="undefined"?Ae:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":179,"./internal/streams/destroy":185,"./internal/streams/stream":186,_process:173,"babel-runtime/core-js/object/define-property":20,"babel-runtime/core-js/set-immediate":25,"babel-runtime/core-js/symbol":27,"babel-runtime/core-js/symbol/has-instance":28,"core-util-is":153,inherits:162,"process-nextick-args":172,"safe-buffer":193,"util-deprecate":205}],184:[function(n,A,v){"use strict";function h(d,u){if(!(d instanceof u))throw new TypeError("Cannot call a class as a function")}function y(d,u,e){d.copy(u,e)}var i=n("safe-buffer").Buffer,s=n("util");A.exports=function(){function d(){h(this,d),this.head=null,this.tail=null,this.length=0}return d.prototype.push=function(u){var e={data:u,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},d.prototype.unshift=function(u){var e={data:u,next:this.head};this.length===0&&(this.tail=e),this.head=e,++this.length},d.prototype.shift=function(){if(this.length!==0){var u=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,u}},d.prototype.clear=function(){this.head=this.tail=null,this.length=0},d.prototype.join=function(u){if(this.length===0)return"";for(var e=this.head,o=""+e.data;e=e.next;)o+=u+e.data;return o},d.prototype.concat=function(u){if(this.length===0)return i.alloc(0);if(this.length===1)return this.head.data;for(var e=i.allocUnsafe(u>>>0),o=this.head,r=0;o;)y(o.data,e,r),r+=o.data.length,o=o.next;return e},d}(),s&&s.inspect&&s.inspect.custom&&(A.exports.prototype[s.inspect.custom]=function(){var d=s.inspect({length:this.length});return this.constructor.name+" "+d})},{"safe-buffer":193,util:36}],185:[function(n,A,v){"use strict";function h(d,u){var e=this,o=this._readableState&&this._readableState.destroyed,r=this._writableState&&this._writableState.destroyed;return o||r?(u?u(d):!d||this._writableState&&this._writableState.errorEmitted||s.nextTick(i,this,d),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(d||null,function(l){!u&&l?(s.nextTick(i,e,l),e._writableState&&(e._writableState.errorEmitted=!0)):u&&u(l)}),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 i(d,u){d.emit("error",u)}var s=n("process-nextick-args");A.exports={destroy:h,undestroy:y}},{"process-nextick-args":172}],186:[function(n,A,v){"use strict";A.exports=n("events").EventEmitter},{events:158}],187:[function(n,A,v){A.exports=n("./readable").PassThrough},{"./readable":188}],188:[function(n,A,v){v=A.exports=n("./lib/_stream_readable.js"),v.Stream=v,v.Readable=v,v.Writable=n("./lib/_stream_writable.js"),v.Duplex=n("./lib/_stream_duplex.js"),v.Transform=n("./lib/_stream_transform.js"),v.PassThrough=n("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":179,"./lib/_stream_passthrough.js":180,"./lib/_stream_readable.js":181,"./lib/_stream_transform.js":182,"./lib/_stream_writable.js":183}],189:[function(n,A,v){A.exports=n("./readable").Transform},{"./readable":188}],190:[function(n,A,v){A.exports=n("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":183}],191:[function(n,A,v){var h=function(){return this}()||Function("return this")(),y=h.regeneratorRuntime&&Object.getOwnPropertyNames(h).indexOf("regeneratorRuntime")>=0,i=y&&h.regeneratorRuntime;if(h.regeneratorRuntime=void 0,A.exports=n("./runtime"),y)h.regeneratorRuntime=i;else try{delete h.regeneratorRuntime}catch(s){h.regeneratorRuntime=void 0}},{"./runtime":192}],192:[function(n,A,v){!function(h){"use strict";function y(q,R,I,F){var N=R&&R.prototype instanceof s?R:s,H=Object.create(N.prototype),Y=new x(F||[]);return H._invoke=r(q,I,Y),H}function i(q,R,I){try{return{type:"normal",arg:q.call(R,I)}}catch(F){return{type:"throw",arg:F}}}function s(){}function d(){}function u(){}function e(q){["next","throw","return"].forEach(function(R){q[R]=function(I){return this._invoke(R,I)}})}function o(q){function R(N,H,Y,ae){var te=i(q[N],q,H);if(te.type!=="throw"){var ue=te.arg,de=ue.value;return de&&typeof de=="object"&&m.call(de,"__await")?Promise.resolve(de.__await).then(function(Q){R("next",Q,Y,ae)},function(Q){R("throw",Q,Y,ae)}):Promise.resolve(de).then(function(Q){ue.value=Q,Y(ue)},ae)}ae(te.arg)}function I(N,H){function Y(){return new Promise(function(ae,te){R(N,H,ae,te)})}return F=F?F.then(Y,Y):Y()}var F;this._invoke=I}function r(q,R,I){var F=M;return function(N,H){if(F===z)throw new Error("Generator is already running");if(F===W){if(N==="throw")throw H;return f()}for(I.method=N,I.arg=H;;){var Y=I.delegate;if(Y){var ae=l(Y,I);if(ae){if(ae===G)continue;return ae}}if(I.method==="next")I.sent=I._sent=I.arg;else if(I.method==="throw"){if(F===M)throw F=W,I.arg;I.dispatchException(I.arg)}else I.method==="return"&&I.abrupt("return",I.arg);F=z;var te=i(q,R,I);if(te.type==="normal"){if(F=I.done?W:L,te.arg===G)continue;return{value:te.arg,done:I.done}}te.type==="throw"&&(F=W,I.method="throw",I.arg=te.arg)}}}function l(q,R){var I=q.iterator[R.method];if(I===T){if(R.delegate=null,R.method==="throw"){if(q.iterator.return&&(R.method="return",R.arg=T,l(q,R),R.method==="throw"))return G;R.method="throw",R.arg=new TypeError("The iterator does not provide a 'throw' method")}return G}var F=i(I,q.iterator,R.arg);if(F.type==="throw")return R.method="throw",R.arg=F.arg,R.delegate=null,G;var N=F.arg;return N?N.done?(R[q.resultName]=N.value,R.next=q.nextLoc,R.method!=="return"&&(R.method="next",R.arg=T),R.delegate=null,G):N:(R.method="throw",R.arg=new TypeError("iterator result is not an object"),R.delegate=null,G)}function p(q){var R={tryLoc:q[0]};1 in q&&(R.catchLoc=q[1]),2 in q&&(R.finallyLoc=q[2],R.afterLoc=q[3]),this.tryEntries.push(R)}function c(q){var R=q.completion||{};R.type="normal",delete R.arg,q.completion=R}function x(q){this.tryEntries=[{tryLoc:"root"}],q.forEach(p,this),this.reset(!0)}function E(q){if(q){var R=q[k];if(R)return R.call(q);if(typeof q.next=="function")return q;if(!isNaN(q.length)){var I=-1,F=function N(){for(;++I<q.length;)if(m.call(q,I))return N.value=q[I],N.done=!1,N;return N.value=T,N.done=!0,N};return F.next=F}}return{next:f}}function f(){return{value:T,done:!0}}var T,S=Object.prototype,m=S.hasOwnProperty,b=typeof Symbol=="function"?Symbol:{},k=b.iterator||"@@iterator",C=b.asyncIterator||"@@asyncIterator",_=b.toStringTag||"@@toStringTag",j=typeof A=="object",D=h.regeneratorRuntime;if(D)return void(j&&(A.exports=D));D=h.regeneratorRuntime=j?A.exports:{},D.wrap=y;var M="suspendedStart",L="suspendedYield",z="executing",W="completed",G={},Z={};Z[k]=function(){return this};var U=Object.getPrototypeOf,ee=U&&U(U(E([])));ee&&ee!==S&&m.call(ee,k)&&(Z=ee);var $=u.prototype=s.prototype=Object.create(Z);d.prototype=$.constructor=u,u.constructor=d,u[_]=d.displayName="GeneratorFunction",D.isGeneratorFunction=function(q){var R=typeof q=="function"&&q.constructor;return!!R&&(R===d||(R.displayName||R.name)==="GeneratorFunction")},D.mark=function(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,u):(q.__proto__=u,_ in q||(q[_]="GeneratorFunction")),q.prototype=Object.create($),q},D.awrap=function(q){return{__await:q}},e(o.prototype),o.prototype[C]=function(){return this},D.AsyncIterator=o,D.async=function(q,R,I,F){var N=new o(y(q,R,I,F));return D.isGeneratorFunction(R)?N:N.next().then(function(H){return H.done?H.value:N.next()})},e($),$[_]="Generator",$[k]=function(){return this},$.toString=function(){return"[object Generator]"},D.keys=function(q){var R=[];for(var I in q)R.push(I);return R.reverse(),function F(){for(;R.length;){var N=R.pop();if(N in q)return F.value=N,F.done=!1,F}return F.done=!0,F}},D.values=E,x.prototype={constructor:x,reset:function(R){if(this.prev=0,this.next=0,this.sent=this._sent=T,this.done=!1,this.delegate=null,this.method="next",this.arg=T,this.tryEntries.forEach(c),!R)for(var I in this)I.charAt(0)==="t"&&m.call(this,I)&&!isNaN(+I.slice(1))&&(this[I]=T)},stop:function(){this.done=!0;var R=this.tryEntries[0],I=R.completion;if(I.type==="throw")throw I.arg;return this.rval},dispatchException:function(R){function I(ue,de){return Y.type="throw",Y.arg=R,F.next=ue,de&&(F.method="next",F.arg=T),!!de}if(this.done)throw R;for(var F=this,N=this.tryEntries.length-1;N>=0;--N){var H=this.tryEntries[N],Y=H.completion;if(H.tryLoc==="root")return I("end");if(H.tryLoc<=this.prev){var ae=m.call(H,"catchLoc"),te=m.call(H,"finallyLoc");if(ae&&te){if(this.prev<H.catchLoc)return I(H.catchLoc,!0);if(this.prev<H.finallyLoc)return I(H.finallyLoc)}else if(ae){if(this.prev<H.catchLoc)return I(H.catchLoc,!0)}else{if(!te)throw new Error("try statement without catch or finally");if(this.prev<H.finallyLoc)return I(H.finallyLoc)}}}},abrupt:function(R,I){for(var F=this.tryEntries.length-1;F>=0;--F){var N=this.tryEntries[F];if(N.tryLoc<=this.prev&&m.call(N,"finallyLoc")&&this.prev<N.finallyLoc){var H=N;break}}H&&(R==="break"||R==="continue")&&H.tryLoc<=I&&I<=H.finallyLoc&&(H=null);var Y=H?H.completion:{};return Y.type=R,Y.arg=I,H?(this.method="next",this.next=H.finallyLoc,G):this.complete(Y)},complete:function(R,I){if(R.type==="throw")throw R.arg;return R.type==="break"||R.type==="continue"?this.next=R.arg:R.type==="return"?(this.rval=this.arg=R.arg,this.method="return",this.next="end"):R.type==="normal"&&I&&(this.next=I),G},finish:function(R){for(var I=this.tryEntries.length-1;I>=0;--I){var F=this.tryEntries[I];if(F.finallyLoc===R)return this.complete(F.completion,F.afterLoc),c(F),G}},catch:function(R){for(var I=this.tryEntries.length-1;I>=0;--I){var F=this.tryEntries[I];if(F.tryLoc===R){var N=F.completion;if(N.type==="throw"){var H=N.arg;c(F)}return H}}throw new Error("illegal catch attempt")},delegateYield:function(R,I,F){return this.delegate={iterator:E(R),resultName:I,nextLoc:F},this.method==="next"&&(this.arg=T),G}}}(function(){return this}()||Function("return this")())},{}],193:[function(n,A,v){function h(d,u){for(var e in d)u[e]=d[e]}function y(d,u,e){return s(d,u,e)}var i=n("buffer"),s=i.Buffer;s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?A.exports=i:(h(i,v),v.Buffer=y),h(s,y),y.from=function(d,u,e){if(typeof d=="number")throw new TypeError("Argument must not be a number");return s(d,u,e)},y.alloc=function(d,u,e){if(typeof d!="number")throw new TypeError("Argument must be a number");var o=s(d);return u!==void 0?typeof e=="string"?o.fill(u,e):o.fill(u):o.fill(0),o},y.allocUnsafe=function(d){if(typeof d!="number")throw new TypeError("Argument must be a number");return s(d)},y.allocUnsafeSlow=function(d){if(typeof d!="number")throw new TypeError("Argument must be a number");return i.SlowBuffer(d)}},{buffer:38}],194:[function(n,A,v){(function(h){"use strict";function y(f){return f&&f.__esModule?f:{default:f}}var i=n("babel-runtime/core-js/string/from-code-point"),s=y(i),d=n("babel-runtime/core-js/json/stringify"),u=y(d),e=n("babel-runtime/helpers/typeof"),o=y(e),r=n("babel-runtime/core-js/object/define-property"),l=y(r),p=n("babel-runtime/core-js/object/keys"),c=y(p),x=n("babel-runtime/core-js/object/create"),E=y(x);!function(f){function T(g,w){if(!(this instanceof T))return new T(g,w);var V=this;m(V),V.q=V.c="",V.bufferCheckPosition=f.MAX_BUFFER_LENGTH,V.opt=w||{},V.opt.lowercase=V.opt.lowercase||V.opt.lowercasetags,V.looseCase=V.opt.lowercase?"toLowerCase":"toUpperCase",V.tags=[],V.closed=V.closedRoot=V.sawRoot=!1,V.tag=V.error=null,V.strict=!!g,V.noscript=!(!g&&!V.opt.noscript),V.state=a.BEGIN,V.strictEntities=V.opt.strictEntities,V.ENTITIES=V.strictEntities?(0,E.default)(f.XML_ENTITIES):(0,E.default)(f.ENTITIES),V.attribList=[],V.opt.xmlns&&(V.ns=(0,E.default)(re)),V.trackPosition=V.opt.position!==!1,V.trackPosition&&(V.position=V.line=V.column=0),z(V,"onready")}function S(g){for(var w=Math.max(f.MAX_BUFFER_LENGTH,10),V=0,K=0,fe=ue.length;K<fe;K++){var le=g[ue[K]].length;if(le>w)switch(ue[K]){case"textNode":G(g);break;case"cdata":W(g,"oncdata",g.cdata),g.cdata="";break;case"script":W(g,"onscript",g.script),g.script="";break;default:U(g,"Max buffer length exceeded: "+ue[K])}V=Math.max(V,le)}var me=f.MAX_BUFFER_LENGTH-V;g.bufferCheckPosition=me+g.position}function m(g){for(var w=0,V=ue.length;w<V;w++)g[ue[w]]=""}function b(g){G(g),g.cdata!==""&&(W(g,"oncdata",g.cdata),g.cdata=""),g.script!==""&&(W(g,"onscript",g.script),g.script="")}function k(g,w){return new C(g,w)}function C(g,w){if(!(this instanceof C))return new C(g,w);de.apply(this),this._parser=new T(g,w),this.writable=!0,this.readable=!0;var V=this;this._parser.onend=function(){V.emit("end")},this._parser.onerror=function(K){V.emit("error",K),V._parser.error=null},this._decoder=null,Q.forEach(function(K){(0,l.default)(V,"on"+K,{get:function(){return V._parser["on"+K]},set:function(le){if(!le)return V.removeAllListeners(K),V._parser["on"+K]=le,le;V.on(K,le)},enumerable:!0,configurable:!1})})}function _(g){return g===" "||g===`
|
||
`||g==="\r"||g===" "}function j(g){return g==='"'||g==="'"}function D(g){return g===">"||_(g)}function M(g,w){return g.test(w)}function L(g,w){return!M(g,w)}function z(g,w,V){g[w]&&g[w](V)}function W(g,w,V){g.textNode&&G(g),z(g,w,V)}function G(g){g.textNode=Z(g.opt,g.textNode),g.textNode&&z(g,"ontext",g.textNode),g.textNode=""}function Z(g,w){return g.trim&&(w=w.trim()),g.normalize&&(w=w.replace(/\s+/g," ")),w}function U(g,w){return G(g),g.trackPosition&&(w+=`
|
||
Line: `+g.line+`
|
||
Column: `+g.column+`
|
||
Char: `+g.c),w=new Error(w),g.error=w,z(g,"onerror",w),g}function ee(g){return g.sawRoot&&!g.closedRoot&&$(g,"Unclosed root tag"),g.state!==a.BEGIN&&g.state!==a.BEGIN_WHITESPACE&&g.state!==a.TEXT&&U(g,"Unexpected end"),G(g),g.c="",g.closed=!0,z(g,"onend"),T.call(g,g.strict,g.opt),g}function $(g,w){if((g===void 0?"undefined":(0,o.default)(g))!=="object"||!(g instanceof T))throw new Error("bad call to strictFail");g.strict&&U(g,w)}function q(g){g.strict||(g.tagName=g.tagName[g.looseCase]());var w=g.tags[g.tags.length-1]||g,V=g.tag={name:g.tagName,attributes:{}};g.opt.xmlns&&(V.ns=w.ns),g.attribList.length=0,W(g,"onopentagstart",V)}function R(g,w){var V=g.indexOf(":"),K=V<0?["",g]:g.split(":"),fe=K[0],le=K[1];return w&&g==="xmlns"&&(fe="xmlns",le=""),{prefix:fe,local:le}}function I(g){if(g.strict||(g.attribName=g.attribName[g.looseCase]()),g.attribList.indexOf(g.attribName)!==-1||g.tag.attributes.hasOwnProperty(g.attribName))return void(g.attribName=g.attribValue="");if(g.opt.xmlns){var w=R(g.attribName,!0),V=w.prefix,K=w.local;if(V==="xmlns")if(K==="xml"&&g.attribValue!==X)$(g,"xml: prefix must be bound to "+X+`
|
||
Actual: `+g.attribValue);else if(K==="xmlns"&&g.attribValue!==B)$(g,"xmlns: prefix must be bound to "+B+`
|
||
Actual: `+g.attribValue);else{var fe=g.tag,le=g.tags[g.tags.length-1]||g;fe.ns===le.ns&&(fe.ns=(0,E.default)(le.ns)),fe.ns[K]=g.attribValue}g.attribList.push([g.attribName,g.attribValue])}else g.tag.attributes[g.attribName]=g.attribValue,W(g,"onattribute",{name:g.attribName,value:g.attribValue});g.attribName=g.attribValue=""}function F(g,w){if(g.opt.xmlns){var V=g.tag,K=R(g.tagName);V.prefix=K.prefix,V.local=K.local,V.uri=V.ns[K.prefix]||"",V.prefix&&!V.uri&&($(g,"Unbound namespace prefix: "+(0,u.default)(g.tagName)),V.uri=K.prefix);var fe=g.tags[g.tags.length-1]||g;V.ns&&fe.ns!==V.ns&&(0,c.default)(V.ns).forEach(function(Oe){W(g,"onopennamespace",{prefix:Oe,uri:V.ns[Oe]})});for(var le=0,me=g.attribList.length;le<me;le++){var ge=g.attribList[le],ve=ge[0],he=ge[1],oe=R(ve,!0),ye=oe.prefix,xe=oe.local,Ee=ye===""?"":V.ns[ye]||"",we={name:ve,value:he,prefix:ye,local:xe,uri:Ee};ye&&ye!=="xmlns"&&!Ee&&($(g,"Unbound namespace prefix: "+(0,u.default)(ye)),we.uri=ye),g.tag.attributes[ve]=we,W(g,"onattribute",we)}g.attribList.length=0}g.tag.isSelfClosing=!!w,g.sawRoot=!0,g.tags.push(g.tag),W(g,"onopentag",g.tag),w||(g.noscript||g.tagName.toLowerCase()!=="script"?g.state=a.TEXT:g.state=a.SCRIPT,g.tag=null,g.tagName=""),g.attribName=g.attribValue="",g.attribList.length=0}function N(g){if(!g.tagName)return $(g,"Weird empty close tag."),g.textNode+="</>",void(g.state=a.TEXT);if(g.script){if(g.tagName!=="script")return g.script+="</"+g.tagName+">",g.tagName="",void(g.state=a.SCRIPT);W(g,"onscript",g.script),g.script=""}var w=g.tags.length,V=g.tagName;g.strict||(V=V[g.looseCase]());for(var K=V;w--&&!(g.tags[w].name===K);)$(g,"Unexpected close tag");if(w<0)return $(g,"Unmatched closing tag: "+g.tagName),g.textNode+="</"+g.tagName+">",void(g.state=a.TEXT);g.tagName=V;for(var fe=g.tags.length;fe-- >w;){var le=g.tag=g.tags.pop();g.tagName=g.tag.name,W(g,"onclosetag",g.tagName);var me={};for(var ge in le.ns)me[ge]=le.ns[ge];var ve=g.tags[g.tags.length-1]||g;g.opt.xmlns&&le.ns!==ve.ns&&(0,c.default)(le.ns).forEach(function(he){var oe=le.ns[he];W(g,"onclosenamespace",{prefix:he,uri:oe})})}w===0&&(g.closedRoot=!0),g.tagName=g.attribValue=g.attribName="",g.attribList.length=0,g.state=a.TEXT}function H(g){var w,V=g.entity,K=V.toLowerCase(),fe="";return g.ENTITIES[V]?g.ENTITIES[V]:g.ENTITIES[K]?g.ENTITIES[K]:(V=K,V.charAt(0)==="#"&&(V.charAt(1)==="x"?(V=V.slice(2),w=parseInt(V,16),fe=w.toString(16)):(V=V.slice(1),w=parseInt(V,10),fe=w.toString(10))),V=V.replace(/^0+/,""),isNaN(w)||fe.toLowerCase()!==V?($(g,"Invalid character entity"),"&"+g.entity+";"):(0,s.default)(w))}function Y(g,w){w==="<"?(g.state=a.OPEN_WAKA,g.startTagPosition=g.position):_(w)||($(g,"Non-whitespace before first tag."),g.textNode=w,g.state=a.TEXT)}function ae(g,w){var V="";return w<g.length&&(V=g.charAt(w)),V}function te(g){var w=this;if(this.error)throw this.error;if(w.closed)return U(w,"Cannot write after close. Assign an onready handler.");if(g===null)return ee(w);(g===void 0?"undefined":(0,o.default)(g))==="object"&&(g=g.toString());for(var V=0,K="";!(K=ae(g,V++),w.c=K,!K);)switch(w.trackPosition&&(w.position++,K===`
|
||
`?(w.line++,w.column=0):w.column++),w.state){case a.BEGIN:if(w.state=a.BEGIN_WHITESPACE,K==="\uFEFF")continue;Y(w,K);continue;case a.BEGIN_WHITESPACE:Y(w,K);continue;case a.TEXT:if(w.sawRoot&&!w.closedRoot){for(var fe=V-1;K&&K!=="<"&&K!=="&";)(K=ae(g,V++))&&w.trackPosition&&(w.position++,K===`
|
||
`?(w.line++,w.column=0):w.column++);w.textNode+=g.substring(fe,V-1)}K!=="<"||w.sawRoot&&w.closedRoot&&!w.strict?(_(K)||w.sawRoot&&!w.closedRoot||$(w,"Text data outside of root node."),K==="&"?w.state=a.TEXT_ENTITY:w.textNode+=K):(w.state=a.OPEN_WAKA,w.startTagPosition=w.position);continue;case a.SCRIPT:K==="<"?w.state=a.SCRIPT_ENDING:w.script+=K;continue;case a.SCRIPT_ENDING:K==="/"?w.state=a.CLOSE_TAG:(w.script+="<"+K,w.state=a.SCRIPT);continue;case a.OPEN_WAKA:if(K==="!")w.state=a.SGML_DECL,w.sgmlDecl="";else if(!_(K))if(M(ne,K))w.state=a.OPEN_TAG,w.tagName=K;else if(K==="/")w.state=a.CLOSE_TAG,w.tagName="";else if(K==="?")w.state=a.PROC_INST,w.procInstName=w.procInstBody="";else{if($(w,"Unencoded <"),w.startTagPosition+1<w.position){var le=w.position-w.startTagPosition;K=new Array(le).join(" ")+K}w.textNode+="<"+K,w.state=a.TEXT}continue;case a.SGML_DECL:(w.sgmlDecl+K).toUpperCase()===J?(W(w,"onopencdata"),w.state=a.CDATA,w.sgmlDecl="",w.cdata=""):w.sgmlDecl+K==="--"?(w.state=a.COMMENT,w.comment="",w.sgmlDecl=""):(w.sgmlDecl+K).toUpperCase()===ie?(w.state=a.DOCTYPE,(w.doctype||w.sawRoot)&&$(w,"Inappropriately located doctype declaration"),w.doctype="",w.sgmlDecl=""):K===">"?(W(w,"onsgmldeclaration",w.sgmlDecl),w.sgmlDecl="",w.state=a.TEXT):(j(K)&&(w.state=a.SGML_DECL_QUOTED),w.sgmlDecl+=K);continue;case a.SGML_DECL_QUOTED:K===w.q&&(w.state=a.SGML_DECL,w.q=""),w.sgmlDecl+=K;continue;case a.DOCTYPE:K===">"?(w.state=a.TEXT,W(w,"ondoctype",w.doctype),w.doctype=!0):(w.doctype+=K,K==="["?w.state=a.DOCTYPE_DTD:j(K)&&(w.state=a.DOCTYPE_QUOTED,w.q=K));continue;case a.DOCTYPE_QUOTED:w.doctype+=K,K===w.q&&(w.q="",w.state=a.DOCTYPE);continue;case a.DOCTYPE_DTD:w.doctype+=K,K==="]"?w.state=a.DOCTYPE:j(K)&&(w.state=a.DOCTYPE_DTD_QUOTED,w.q=K);continue;case a.DOCTYPE_DTD_QUOTED:w.doctype+=K,K===w.q&&(w.state=a.DOCTYPE_DTD,w.q="");continue;case a.COMMENT:K==="-"?w.state=a.COMMENT_ENDING:w.comment+=K;continue;case a.COMMENT_ENDING:K==="-"?(w.state=a.COMMENT_ENDED,w.comment=Z(w.opt,w.comment),w.comment&&W(w,"oncomment",w.comment),w.comment=""):(w.comment+="-"+K,w.state=a.COMMENT);continue;case a.COMMENT_ENDED:K!==">"?($(w,"Malformed comment"),w.comment+="--"+K,w.state=a.COMMENT):w.state=a.TEXT;continue;case a.CDATA:K==="]"?w.state=a.CDATA_ENDING:w.cdata+=K;continue;case a.CDATA_ENDING:K==="]"?w.state=a.CDATA_ENDING_2:(w.cdata+="]"+K,w.state=a.CDATA);continue;case a.CDATA_ENDING_2:K===">"?(w.cdata&&W(w,"oncdata",w.cdata),W(w,"onclosecdata"),w.cdata="",w.state=a.TEXT):K==="]"?w.cdata+="]":(w.cdata+="]]"+K,w.state=a.CDATA);continue;case a.PROC_INST:K==="?"?w.state=a.PROC_INST_ENDING:_(K)?w.state=a.PROC_INST_BODY:w.procInstName+=K;continue;case a.PROC_INST_BODY:if(!w.procInstBody&&_(K))continue;K==="?"?w.state=a.PROC_INST_ENDING:w.procInstBody+=K;continue;case a.PROC_INST_ENDING:K===">"?(W(w,"onprocessinginstruction",{name:w.procInstName,body:w.procInstBody}),w.procInstName=w.procInstBody="",w.state=a.TEXT):(w.procInstBody+="?"+K,w.state=a.PROC_INST_BODY);continue;case a.OPEN_TAG:M(ce,K)?w.tagName+=K:(q(w),K===">"?F(w):K==="/"?w.state=a.OPEN_TAG_SLASH:(_(K)||$(w,"Invalid character in tag name"),w.state=a.ATTRIB));continue;case a.OPEN_TAG_SLASH:K===">"?(F(w,!0),N(w)):($(w,"Forward-slash in opening tag not followed by >"),w.state=a.ATTRIB);continue;case a.ATTRIB:if(_(K))continue;K===">"?F(w):K==="/"?w.state=a.OPEN_TAG_SLASH:M(ne,K)?(w.attribName=K,w.attribValue="",w.state=a.ATTRIB_NAME):$(w,"Invalid attribute name");continue;case a.ATTRIB_NAME:K==="="?w.state=a.ATTRIB_VALUE:K===">"?($(w,"Attribute without value"),w.attribValue=w.attribName,I(w),F(w)):_(K)?w.state=a.ATTRIB_NAME_SAW_WHITE:M(ce,K)?w.attribName+=K:$(w,"Invalid attribute name");continue;case a.ATTRIB_NAME_SAW_WHITE:if(K==="=")w.state=a.ATTRIB_VALUE;else{if(_(K))continue;$(w,"Attribute without value"),w.tag.attributes[w.attribName]="",w.attribValue="",W(w,"onattribute",{name:w.attribName,value:""}),w.attribName="",K===">"?F(w):M(ne,K)?(w.attribName=K,w.state=a.ATTRIB_NAME):($(w,"Invalid attribute name"),w.state=a.ATTRIB)}continue;case a.ATTRIB_VALUE:if(_(K))continue;j(K)?(w.q=K,w.state=a.ATTRIB_VALUE_QUOTED):($(w,"Unquoted attribute value"),w.state=a.ATTRIB_VALUE_UNQUOTED,w.attribValue=K);continue;case a.ATTRIB_VALUE_QUOTED:if(K!==w.q){K==="&"?w.state=a.ATTRIB_VALUE_ENTITY_Q:w.attribValue+=K;continue}I(w),w.q="",w.state=a.ATTRIB_VALUE_CLOSED;continue;case a.ATTRIB_VALUE_CLOSED:_(K)?w.state=a.ATTRIB:K===">"?F(w):K==="/"?w.state=a.OPEN_TAG_SLASH:M(ne,K)?($(w,"No whitespace between attributes"),w.attribName=K,w.attribValue="",w.state=a.ATTRIB_NAME):$(w,"Invalid attribute name");continue;case a.ATTRIB_VALUE_UNQUOTED:if(!D(K)){K==="&"?w.state=a.ATTRIB_VALUE_ENTITY_U:w.attribValue+=K;continue}I(w),K===">"?F(w):w.state=a.ATTRIB;continue;case a.CLOSE_TAG:if(w.tagName)K===">"?N(w):M(ce,K)?w.tagName+=K:w.script?(w.script+="</"+w.tagName,w.tagName="",w.state=a.SCRIPT):(_(K)||$(w,"Invalid tagname in closing tag"),w.state=a.CLOSE_TAG_SAW_WHITE);else{if(_(K))continue;L(ne,K)?w.script?(w.script+="</"+K,w.state=a.SCRIPT):$(w,"Invalid tagname in closing tag."):w.tagName=K}continue;case a.CLOSE_TAG_SAW_WHITE:if(_(K))continue;K===">"?N(w):$(w,"Invalid characters in closing tag");continue;case a.TEXT_ENTITY:case a.ATTRIB_VALUE_ENTITY_Q:case a.ATTRIB_VALUE_ENTITY_U:var me,ge;switch(w.state){case a.TEXT_ENTITY:me=a.TEXT,ge="textNode";break;case a.ATTRIB_VALUE_ENTITY_Q:me=a.ATTRIB_VALUE_QUOTED,ge="attribValue";break;case a.ATTRIB_VALUE_ENTITY_U:me=a.ATTRIB_VALUE_UNQUOTED,ge="attribValue"}K===";"?(w[ge]+=H(w),w.entity="",w.state=me):M(w.entity.length?t:O,K)?w.entity+=K:($(w,"Invalid character in entity name"),w[ge]+="&"+w.entity+K,w.entity="",w.state=me);continue;default:throw new Error(w,"Unknown state: "+w.state)}return w.position>=w.bufferCheckPosition&&S(w),w}f.parser=function(g,w){return new T(g,w)},f.SAXParser=T,f.SAXStream=C,f.createStream=k,f.MAX_BUFFER_LENGTH=65536;var ue=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];f.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],E.default||(Object.create=function(g){function w(){}return w.prototype=g,new w}),c.default||(Object.keys=function(g){var w=[];for(var V in g)g.hasOwnProperty(V)&&w.push(V);return w}),T.prototype={end:function(){ee(this)},write:te,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){b(this)}};var de;try{de=n("stream").Stream}catch(g){de=function(){}}var Q=f.EVENTS.filter(function(g){return g!=="error"&&g!=="end"});C.prototype=(0,E.default)(de.prototype,{constructor:{value:C}}),C.prototype.write=function(g){if(typeof h=="function"&&typeof h.isBuffer=="function"&&h.isBuffer(g)){if(!this._decoder){var w=n("string_decoder").StringDecoder;this._decoder=new w("utf8")}g=this._decoder.write(g)}return this._parser.write(g.toString()),this.emit("data",g),!0},C.prototype.end=function(g){return g&&g.length&&this.write(g),this._parser.end(),!0},C.prototype.on=function(g,w){var V=this;return V._parser["on"+g]||Q.indexOf(g)===-1||(V._parser["on"+g]=function(){var K=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);K.splice(0,0,g),V.emit.apply(V,K)}),de.prototype.on.call(V,g,w)};var J="[CDATA[",ie="DOCTYPE",X="http://www.w3.org/XML/1998/namespace",B="http://www.w3.org/2000/xmlns/",re={xml:X,xmlns:B},ne=/[:_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]/,ce=/[:_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-]/,O=/[#:_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]/,t=/[#:_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-]/,a=0;f.STATE={BEGIN:a++,BEGIN_WHITESPACE:a++,TEXT:a++,TEXT_ENTITY:a++,OPEN_WAKA:a++,SGML_DECL:a++,SGML_DECL_QUOTED:a++,DOCTYPE:a++,DOCTYPE_QUOTED:a++,DOCTYPE_DTD:a++,DOCTYPE_DTD_QUOTED:a++,COMMENT_STARTING:a++,COMMENT:a++,COMMENT_ENDING:a++,COMMENT_ENDED:a++,CDATA:a++,CDATA_ENDING:a++,CDATA_ENDING_2:a++,PROC_INST:a++,PROC_INST_BODY:a++,PROC_INST_ENDING:a++,OPEN_TAG:a++,OPEN_TAG_SLASH:a++,ATTRIB:a++,ATTRIB_NAME:a++,ATTRIB_NAME_SAW_WHITE:a++,ATTRIB_VALUE:a++,ATTRIB_VALUE_QUOTED:a++,ATTRIB_VALUE_CLOSED:a++,ATTRIB_VALUE_UNQUOTED:a++,ATTRIB_VALUE_ENTITY_Q:a++,ATTRIB_VALUE_ENTITY_U:a++,CLOSE_TAG:a++,CLOSE_TAG_SAW_WHITE:a++,SCRIPT:a++,SCRIPT_ENDING:a++},f.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},f.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,c.default)(f.ENTITIES).forEach(function(g){var w=f.ENTITIES[g],V=typeof w=="number"?String.fromCharCode(w):w;f.ENTITIES[g]=V});for(var P in f.STATE)f.STATE[f.STATE[P]]=P;a=f.STATE,s.default||function(){var g=String.fromCharCode,w=Math.floor,V=function(){var fe,le,me=[],ge=-1,ve=arguments.length;if(!ve)return"";for(var he="";++ge<ve;){var oe=Number(arguments[ge]);if(!isFinite(oe)||oe<0||oe>1114111||w(oe)!==oe)throw RangeError("Invalid code point: "+oe);oe<=65535?me.push(oe):(oe-=65536,fe=55296+(oe>>10),le=oe%1024+56320,me.push(fe,le)),(ge+1===ve||me.length>16384)&&(he+=g.apply(null,me),me.length=0)}return he};l.default?Object.defineProperty(String,"fromCodePoint",{value:V,configurable:!0,writable:!0}):String.fromCodePoint=V}()}(v===void 0?(void 0).sax={}:v)}).call(this,n("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":17,"babel-runtime/core-js/object/create":19,"babel-runtime/core-js/object/define-property":20,"babel-runtime/core-js/object/keys":23,"babel-runtime/core-js/string/from-code-point":26,"babel-runtime/helpers/typeof":32,buffer:38,stream:195,string_decoder:37}],195:[function(n,A,v){function h(){y.call(this)}A.exports=h;var y=n("events").EventEmitter;n("inherits")(h,y),h.Readable=n("readable-stream/readable.js"),h.Writable=n("readable-stream/writable.js"),h.Duplex=n("readable-stream/duplex.js"),h.Transform=n("readable-stream/transform.js"),h.PassThrough=n("readable-stream/passthrough.js"),h.Stream=h,h.prototype.pipe=function(i,s){function d(x){i.writable&&i.write(x)===!1&&p.pause&&p.pause()}function u(){p.readable&&p.resume&&p.resume()}function e(){c||(c=!0,i.end())}function o(){c||(c=!0,typeof i.destroy=="function"&&i.destroy())}function r(x){if(l(),y.listenerCount(this,"error")===0)throw x}function l(){p.removeListener("data",d),i.removeListener("drain",u),p.removeListener("end",e),p.removeListener("close",o),p.removeListener("error",r),i.removeListener("error",r),p.removeListener("end",l),p.removeListener("close",l),i.removeListener("close",l)}var p=this;p.on("data",d),i.on("drain",u),i._isStdio||s&&s.end===!1||(p.on("end",e),p.on("close",o));var c=!1;return p.on("error",r),i.on("error",r),p.on("end",l),p.on("close",l),i.on("close",l),i.emit("pipe",p),i}},{events:158,inherits:162,"readable-stream/duplex.js":178,"readable-stream/passthrough.js":187,"readable-stream/readable.js":188,"readable-stream/transform.js":189,"readable-stream/writable.js":190}],196:[function(n,A,v){(function(h){var y=n("./lib/request"),i=n("./lib/response"),s=n("xtend"),d=n("builtin-status-codes"),u=n("url"),e=v;e.request=function(o,r){o=typeof o=="string"?u.parse(o):s(o);var l=h.location.protocol.search(/^https?:$/)===-1?"http:":"",p=o.protocol||l,c=o.hostname||o.host,x=o.port,E=o.path||"/";c&&c.indexOf(":")!==-1&&(c="["+c+"]"),o.url=(c?p+"//"+c:"")+(x?":"+x:"")+E,o.method=(o.method||"GET").toUpperCase(),o.headers=o.headers||{};var f=new y(o);return r&&f.on("response",r),f},e.get=function(o,r){var l=e.request(o,r);return l.end(),l},e.ClientRequest=y,e.IncomingMessage=i.IncomingMessage,e.Agent=function(){},e.Agent.defaultMaxSockets=4,e.globalAgent=new e.Agent,e.STATUS_CODES=d,e.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 Ae!="undefined"?Ae:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./lib/request":198,"./lib/response":199,"builtin-status-codes":39,url:203,xtend:236}],197:[function(n,A,v){(function(h){"use strict";function y(){if(d!==void 0)return d;if(h.XMLHttpRequest){d=new h.XMLHttpRequest;try{d.open("GET",h.XDomainRequest?"/":"https://example.com")}catch(o){d=null}}else d=null;return d}function i(o){var r=y();if(!r)return!1;try{return r.responseType=o,r.responseType===o}catch(l){}return!1}function s(o){return typeof o=="function"}v.fetch=s(h.fetch)&&s(h.ReadableStream),v.writableStream=s(h.WritableStream),v.abortController=s(h.AbortController),v.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),v.blobConstructor=!0}catch(o){}var d,u=h.ArrayBuffer!==void 0,e=u&&s(h.ArrayBuffer.prototype.slice);v.arraybuffer=v.fetch||u&&i("arraybuffer"),v.msstream=!v.fetch&&e&&i("ms-stream"),v.mozchunkedarraybuffer=!v.fetch&&u&&i("moz-chunked-arraybuffer"),v.overrideMimeType=v.fetch||!!y()&&s(y().overrideMimeType),v.vbArray=s(h.VBArray),d=null}).call(this,typeof Ae!="undefined"?Ae:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],198:[function(n,A,v){(function(h,y,i){"use strict";function s(S,m){return o.fetch&&m?"fetch":o.mozchunkedarraybuffer?"moz-chunked-arraybuffer":o.msstream?"ms-stream":o.arraybuffer&&S?"arraybuffer":o.vbArray&&S?"text:vbarray":"text"}function d(S){try{var m=S.status;return m!==null&&m!==0}catch(b){return!1}}var u=n("babel-runtime/core-js/object/keys"),e=function(S){return S&&S.__esModule?S:{default:S}}(u),o=n("./capability"),r=n("inherits"),l=n("./response"),p=n("readable-stream"),c=n("to-arraybuffer"),x=l.IncomingMessage,E=l.readyStates,f=A.exports=function(S){var m=this;p.Writable.call(m),m._opts=S,m._body=[],m._headers={},S.auth&&m.setHeader("Authorization","Basic "+new i(S.auth).toString("base64")),(0,e.default)(S.headers).forEach(function(C){m.setHeader(C,S.headers[C])});var b,k=!0;if(S.mode==="disable-fetch"||"requestTimeout"in S&&!o.abortController)k=!1,b=!0;else if(S.mode==="prefer-streaming")b=!1;else if(S.mode==="allow-wrong-content-type")b=!o.overrideMimeType;else{if(S.mode&&S.mode!=="default"&&S.mode!=="prefer-fast")throw new Error("Invalid value for opts.mode");b=!0}m._mode=s(b,k),m._fetchTimer=null,m.on("finish",function(){m._onFinish()})};r(f,p.Writable),f.prototype.setHeader=function(S,m){var b=this,k=S.toLowerCase();T.indexOf(k)===-1&&(b._headers[k]={name:S,value:m})},f.prototype.getHeader=function(S){var m=this._headers[S.toLowerCase()];return m?m.value:null},f.prototype.removeHeader=function(S){delete this._headers[S.toLowerCase()]},f.prototype._onFinish=function(){var S=this;if(!S._destroyed){var m=S._opts,b=S._headers,k=null;m.method!=="GET"&&m.method!=="HEAD"&&(k=o.arraybuffer?c(i.concat(S._body)):o.blobConstructor?new y.Blob(S._body.map(function(M){return c(M)}),{type:(b["content-type"]||{}).value||""}):i.concat(S._body).toString());var C=[];if((0,e.default)(b).forEach(function(M){var L=b[M].name,z=b[M].value;Array.isArray(z)?z.forEach(function(W){C.push([L,W])}):C.push([L,z])}),S._mode==="fetch"){var _=null;if(o.abortController){var j=new AbortController;_=j.signal,S._fetchAbortController=j,"requestTimeout"in m&&m.requestTimeout!==0&&(S._fetchTimer=y.setTimeout(function(){S.emit("requestTimeout"),S._fetchAbortController&&S._fetchAbortController.abort()},m.requestTimeout))}y.fetch(S._opts.url,{method:S._opts.method,headers:C,body:k||void 0,mode:"cors",credentials:m.withCredentials?"include":"same-origin",signal:_}).then(function(M){S._fetchResponse=M,S._connect()},function(M){y.clearTimeout(S._fetchTimer),S._destroyed||S.emit("error",M)})}else{var D=S._xhr=new y.XMLHttpRequest;try{D.open(S._opts.method,S._opts.url,!0)}catch(M){return void h.nextTick(function(){S.emit("error",M)})}"responseType"in D&&(D.responseType=S._mode.split(":")[0]),"withCredentials"in D&&(D.withCredentials=!!m.withCredentials),S._mode==="text"&&"overrideMimeType"in D&&D.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in m&&(D.timeout=m.requestTimeout,D.ontimeout=function(){S.emit("requestTimeout")}),C.forEach(function(M){D.setRequestHeader(M[0],M[1])}),S._response=null,D.onreadystatechange=function(){switch(D.readyState){case E.LOADING:case E.DONE:S._onXHRProgress()}},S._mode==="moz-chunked-arraybuffer"&&(D.onprogress=function(){S._onXHRProgress()}),D.onerror=function(){S._destroyed||S.emit("error",new Error("XHR error"))};try{D.send(k)}catch(M){return void h.nextTick(function(){S.emit("error",M)})}}}},f.prototype._onXHRProgress=function(){var S=this;d(S._xhr)&&!S._destroyed&&(S._response||S._connect(),S._response._onXHRProgress())},f.prototype._connect=function(){var S=this;S._destroyed||(S._response=new x(S._xhr,S._fetchResponse,S._mode,S._fetchTimer),S._response.on("error",function(m){S.emit("error",m)}),S.emit("response",S._response))},f.prototype._write=function(S,m,b){this._body.push(S),b()},f.prototype.abort=f.prototype.destroy=function(){var S=this;S._destroyed=!0,y.clearTimeout(S._fetchTimer),S._response&&(S._response._destroyed=!0),S._xhr?S._xhr.abort():S._fetchAbortController&&S._fetchAbortController.abort()},f.prototype.end=function(S,m,b){var k=this;typeof S=="function"&&(b=S,S=void 0),p.Writable.prototype.end.call(k,S,m,b)},f.prototype.flushHeaders=function(){},f.prototype.setTimeout=function(){},f.prototype.setNoDelay=function(){},f.prototype.setSocketKeepAlive=function(){};var T=["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,n("_process"),typeof Ae!="undefined"?Ae:typeof self!="undefined"?self:typeof window!="undefined"?window:{},n("buffer").Buffer)},{"./capability":197,"./response":199,_process:173,"babel-runtime/core-js/object/keys":23,buffer:38,inherits:162,"readable-stream":188,"to-arraybuffer":202}],199:[function(n,A,v){(function(h,y,i){"use strict";var s=n("babel-runtime/core-js/promise"),d=function(p){return p&&p.__esModule?p:{default:p}}(s),u=n("./capability"),e=n("inherits"),o=n("readable-stream"),r=v.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},l=v.IncomingMessage=function(p,c,x,E){var f=this;if(o.Readable.call(f),f._mode=x,f.headers={},f.rawHeaders=[],f.trailers={},f.rawTrailers=[],f.on("end",function(){h.nextTick(function(){f.emit("close")})}),x==="fetch"){if(f._fetchResponse=c,f.url=c.url,f.statusCode=c.status,f.statusMessage=c.statusText,c.headers.forEach(function(k,C){f.headers[C.toLowerCase()]=k,f.rawHeaders.push(C,k)}),u.writableStream){var T=new WritableStream({write:function(C){return new d.default(function(_,j){f._destroyed?j():f.push(new i(C))?_():f._resumeFetch=_})},close:function(){y.clearTimeout(E),f._destroyed||f.push(null)},abort:function(C){f._destroyed||f.emit("error",C)}});try{return void c.body.pipeTo(T).catch(function(k){y.clearTimeout(E),f._destroyed||f.emit("error",k)})}catch(k){}}var S=c.body.getReader();!function k(){S.read().then(function(C){if(!f._destroyed){if(C.done)return y.clearTimeout(E),void f.push(null);f.push(new i(C.value)),k()}}).catch(function(C){y.clearTimeout(E),f._destroyed||f.emit("error",C)})}()}else if(f._xhr=p,f._pos=0,f.url=p.responseURL,f.statusCode=p.status,f.statusMessage=p.statusText,p.getAllResponseHeaders().split(/\r?\n/).forEach(function(k){var C=k.match(/^([^:]+):\s*(.*)/);if(C){var _=C[1].toLowerCase();_==="set-cookie"?(f.headers[_]===void 0&&(f.headers[_]=[]),f.headers[_].push(C[2])):f.headers[_]!==void 0?f.headers[_]+=", "+C[2]:f.headers[_]=C[2],f.rawHeaders.push(C[1],C[2])}}),f._charset="x-user-defined",!u.overrideMimeType){var m=f.rawHeaders["mime-type"];if(m){var b=m.match(/;\s*charset=([^;])(;|$)/);b&&(f._charset=b[1].toLowerCase())}f._charset||(f._charset="utf-8")}};e(l,o.Readable),l.prototype._read=function(){var p=this,c=p._resumeFetch;c&&(p._resumeFetch=null,c())},l.prototype._onXHRProgress=function(){var p=this,c=p._xhr,x=null;switch(p._mode){case"text:vbarray":if(c.readyState!==r.DONE)break;try{x=new y.VBArray(c.responseBody).toArray()}catch(m){}if(x!==null){p.push(new i(x));break}case"text":try{x=c.responseText}catch(m){p._mode="text:vbarray";break}if(x.length>p._pos){var E=x.substr(p._pos);if(p._charset==="x-user-defined"){for(var f=new i(E.length),T=0;T<E.length;T++)f[T]=255&E.charCodeAt(T);p.push(f)}else p.push(E,p._charset);p._pos=x.length}break;case"arraybuffer":if(c.readyState!==r.DONE||!c.response)break;x=c.response,p.push(new i(new Uint8Array(x)));break;case"moz-chunked-arraybuffer":if(x=c.response,c.readyState!==r.LOADING||!x)break;p.push(new i(new Uint8Array(x)));break;case"ms-stream":if(x=c.response,c.readyState!==r.LOADING)break;var S=new y.MSStreamReader;S.onprogress=function(){S.result.byteLength>p._pos&&(p.push(new i(new Uint8Array(S.result.slice(p._pos)))),p._pos=S.result.byteLength)},S.onload=function(){p.push(null)},S.readAsArrayBuffer(x)}p._xhr.readyState===r.DONE&&p._mode!=="ms-stream"&&p.push(null)}}).call(this,n("_process"),typeof Ae!="undefined"?Ae:typeof self!="undefined"?self:typeof window!="undefined"?window:{},n("buffer").Buffer)},{"./capability":197,_process:173,"babel-runtime/core-js/promise":24,buffer:38,inherits:162,"readable-stream":188}],200:[function(n,A,v){"use strict";function h(m){if(!m)return"utf8";for(var b;;)switch(m){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 m;default:if(b)return;m=(""+m).toLowerCase(),b=!0}}function y(m){var b=h(m);if(typeof b!="string"&&(T.isEncoding===S||!S(m)))throw new Error("Unknown encoding: "+m);return b||m}function i(m){this.encoding=y(m);var b;switch(this.encoding){case"utf16le":this.text=l,this.end=p,b=4;break;case"utf8":this.fillLast=e,b=4;break;case"base64":this.text=c,this.end=x,b=3;break;default:return this.write=E,void(this.end=f)}this.lastNeed=0,this.lastTotal=0,this.lastChar=T.allocUnsafe(b)}function s(m){return m<=127?0:m>>5==6?2:m>>4==14?3:m>>3==30?4:m>>6==2?-1:-2}function d(m,b,k){var C=b.length-1;if(C<k)return 0;var _=s(b[C]);return _>=0?(_>0&&(m.lastNeed=_-1),_):--C<k||_===-2?0:(_=s(b[C]))>=0?(_>0&&(m.lastNeed=_-2),_):--C<k||_===-2?0:(_=s(b[C]),_>=0?(_>0&&(_===2?_=0:m.lastNeed=_-3),_):0)}function u(m,b,k){if((192&b[0])!=128)return m.lastNeed=0,"\u951F\uFFFD";if(m.lastNeed>1&&b.length>1){if((192&b[1])!=128)return m.lastNeed=1,"\u951F\uFFFD";if(m.lastNeed>2&&b.length>2&&(192&b[2])!=128)return m.lastNeed=2,"\u951F\uFFFD"}}function e(m){var b=this.lastTotal-this.lastNeed,k=u(this,m,b);return k!==void 0?k:this.lastNeed<=m.length?(m.copy(this.lastChar,b,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(m.copy(this.lastChar,b,0,m.length),void(this.lastNeed-=m.length))}function o(m,b){var k=d(this,m,b);if(!this.lastNeed)return m.toString("utf8",b);this.lastTotal=k;var C=m.length-(k-this.lastNeed);return m.copy(this.lastChar,0,C),m.toString("utf8",b,C)}function r(m){var b=m&&m.length?this.write(m):"";return this.lastNeed?b+"\u951F\uFFFD":b}function l(m,b){if((m.length-b)%2==0){var k=m.toString("utf16le",b);if(k){var C=k.charCodeAt(k.length-1);if(C>=55296&&C<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=m[m.length-2],this.lastChar[1]=m[m.length-1],k.slice(0,-1)}return k}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=m[m.length-1],m.toString("utf16le",b,m.length-1)}function p(m){var b=m&&m.length?this.write(m):"";if(this.lastNeed){var k=this.lastTotal-this.lastNeed;return b+this.lastChar.toString("utf16le",0,k)}return b}function c(m,b){var k=(m.length-b)%3;return k===0?m.toString("base64",b):(this.lastNeed=3-k,this.lastTotal=3,k===1?this.lastChar[0]=m[m.length-1]:(this.lastChar[0]=m[m.length-2],this.lastChar[1]=m[m.length-1]),m.toString("base64",b,m.length-k))}function x(m){var b=m&&m.length?this.write(m):"";return this.lastNeed?b+this.lastChar.toString("base64",0,3-this.lastNeed):b}function E(m){return m.toString(this.encoding)}function f(m){return m&&m.length?this.write(m):""}var T=n("safe-buffer").Buffer,S=T.isEncoding||function(m){switch((m=""+m)&&m.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}};v.StringDecoder=i,i.prototype.write=function(m){if(m.length===0)return"";var b,k;if(this.lastNeed){if((b=this.fillLast(m))===void 0)return"";k=this.lastNeed,this.lastNeed=0}else k=0;return k<m.length?b?b+this.text(m,k):this.text(m,k):b||""},i.prototype.end=r,i.prototype.text=o,i.prototype.fillLast=function(m){if(this.lastNeed<=m.length)return m.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);m.copy(this.lastChar,this.lastTotal-this.lastNeed,0,m.length),this.lastNeed-=m.length}},{"safe-buffer":193}],201:[function(n,A,v){(function(h,y){function i(r,l){this._id=r,this._clearFn=l}var s=n("process/browser.js").nextTick,d=Function.prototype.apply,u=Array.prototype.slice,e={},o=0;v.setTimeout=function(){return new i(d.call(setTimeout,window,arguments),clearTimeout)},v.setInterval=function(){return new i(d.call(setInterval,window,arguments),clearInterval)},v.clearTimeout=v.clearInterval=function(r){r.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(window,this._id)},v.enroll=function(r,l){clearTimeout(r._idleTimeoutId),r._idleTimeout=l},v.unenroll=function(r){clearTimeout(r._idleTimeoutId),r._idleTimeout=-1},v._unrefActive=v.active=function(r){clearTimeout(r._idleTimeoutId);var l=r._idleTimeout;l>=0&&(r._idleTimeoutId=setTimeout(function(){r._onTimeout&&r._onTimeout()},l))},v.setImmediate=typeof h=="function"?h:function(r){var l=o++,p=!(arguments.length<2)&&u.call(arguments,1);return e[l]=!0,s(function(){e[l]&&(p?r.apply(null,p):r.call(null),v.clearImmediate(l))}),l},v.clearImmediate=typeof y=="function"?y:function(r){delete e[r]}}).call(this,n("timers").setImmediate,n("timers").clearImmediate)},{"process/browser.js":173,timers:201}],202:[function(n,A,v){var h=n("buffer").Buffer;A.exports=function(y){if(y instanceof Uint8Array){if(y.byteOffset===0&&y.byteLength===y.buffer.byteLength)return y.buffer;if(typeof y.buffer.slice=="function")return y.buffer.slice(y.byteOffset,y.byteOffset+y.byteLength)}if(h.isBuffer(y)){for(var i=new Uint8Array(y.length),s=y.length,d=0;d<s;d++)i[d]=y[d];return i.buffer}throw new Error("Argument must be a Buffer")}},{buffer:38}],203:[function(n,A,v){"use strict";function h(){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}function y(_,j,D){if(_&&e.isObject(_)&&_ instanceof h)return _;var M=new h;return M.parse(_,j,D),M}function i(_){return e.isString(_)&&(_=y(_)),_ instanceof h?_.format():h.prototype.format.call(_)}function s(_,j){return y(_,!1,!0).resolve(j)}function d(_,j){return _?y(_,!1,!0).resolveObject(j):j}var u=n("punycode"),e=n("./util");v.parse=y,v.resolve=s,v.resolveObject=d,v.format=i,v.Url=h;var o=/^([a-z0-9.+-]+:)/i,r=/:[0-9]*$/,l=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,p=["<",">",'"',"`"," ","\r",`
|
||
`," "],c=["{","}","|","\\","^","`"].concat(p),x=["'"].concat(c),E=["%","/","?",";","#"].concat(x),f=["/","?","#"],T=/^[+a-z0-9A-Z_-]{0,63}$/,S=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},b={javascript:!0,"javascript:":!0},k={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},C=n("querystring");h.prototype.parse=function(_,j,D){if(!e.isString(_))throw new TypeError("Parameter 'url' must be a string, not "+typeof _);var M=_.indexOf("?"),L=M!==-1&&M<_.indexOf("#")?"?":"#",z=_.split(L),W=/\\/g;z[0]=z[0].replace(W,"/"),_=z.join(L);var G=_;if(G=G.trim(),!D&&_.split("#").length===1){var Z=l.exec(G);if(Z)return this.path=G,this.href=G,this.pathname=Z[1],Z[2]?(this.search=Z[2],this.query=j?C.parse(this.search.substr(1)):this.search.substr(1)):j&&(this.search="",this.query={}),this}var U=o.exec(G);if(U){U=U[0];var ee=U.toLowerCase();this.protocol=ee,G=G.substr(U.length)}if(D||U||G.match(/^\/\/[^@\/]+@[^@\/]+/)){var $=G.substr(0,2)==="//";!$||U&&b[U]||(G=G.substr(2),this.slashes=!0)}if(!b[U]&&($||U&&!k[U])){for(var q=-1,R=0;R<f.length;R++){var I=G.indexOf(f[R]);I!==-1&&(q===-1||I<q)&&(q=I)}var F,N;N=q===-1?G.lastIndexOf("@"):G.lastIndexOf("@",q),N!==-1&&(F=G.slice(0,N),G=G.slice(N+1),this.auth=decodeURIComponent(F)),q=-1;for(var R=0;R<E.length;R++){var I=G.indexOf(E[R]);I!==-1&&(q===-1||I<q)&&(q=I)}q===-1&&(q=G.length),this.host=G.slice(0,q),G=G.slice(q),this.parseHost(),this.hostname=this.hostname||"";var H=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!H)for(var Y=this.hostname.split(/\./),R=0,ae=Y.length;R<ae;R++){var te=Y[R];if(te&&!te.match(T)){for(var ue="",de=0,Q=te.length;de<Q;de++)te.charCodeAt(de)>127?ue+="x":ue+=te[de];if(!ue.match(T)){var J=Y.slice(0,R),ie=Y.slice(R+1),X=te.match(S);X&&(J.push(X[1]),ie.unshift(X[2])),ie.length&&(G="/"+ie.join(".")+G),this.hostname=J.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),H||(this.hostname=u.toASCII(this.hostname));var B=this.port?":"+this.port:"",re=this.hostname||"";this.host=re+B,this.href+=this.host,H&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),G[0]!=="/"&&(G="/"+G))}if(!m[ee])for(var R=0,ae=x.length;R<ae;R++){var ne=x[R];if(G.indexOf(ne)!==-1){var ce=encodeURIComponent(ne);ce===ne&&(ce=escape(ne)),G=G.split(ne).join(ce)}}var O=G.indexOf("#");O!==-1&&(this.hash=G.substr(O),G=G.slice(0,O));var t=G.indexOf("?");if(t!==-1?(this.search=G.substr(t),this.query=G.substr(t+1),j&&(this.query=C.parse(this.query)),G=G.slice(0,t)):j&&(this.search="",this.query={}),G&&(this.pathname=G),k[ee]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var B=this.pathname||"",a=this.search||"";this.path=B+a}return this.href=this.format(),this},h.prototype.format=function(){var _=this.auth||"";_&&(_=encodeURIComponent(_),_=_.replace(/%3A/i,":"),_+="@");var j=this.protocol||"",D=this.pathname||"",M=this.hash||"",L=!1,z="";this.host?L=_+this.host:this.hostname&&(L=_+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(L+=":"+this.port)),this.query&&e.isObject(this.query)&&Object.keys(this.query).length&&(z=C.stringify(this.query));var W=this.search||z&&"?"+z||"";return j&&j.substr(-1)!==":"&&(j+=":"),this.slashes||(!j||k[j])&&L!==!1?(L="//"+(L||""),D&&D.charAt(0)!=="/"&&(D="/"+D)):L||(L=""),M&&M.charAt(0)!=="#"&&(M="#"+M),W&&W.charAt(0)!=="?"&&(W="?"+W),D=D.replace(/[?#]/g,function(G){return encodeURIComponent(G)}),W=W.replace("#","%23"),j+L+D+W+M},h.prototype.resolve=function(_){return this.resolveObject(y(_,!1,!0)).format()},h.prototype.resolveObject=function(_){if(e.isString(_)){var j=new h;j.parse(_,!1,!0),_=j}for(var D=new h,M=Object.keys(this),L=0;L<M.length;L++){var z=M[L];D[z]=this[z]}if(D.hash=_.hash,_.href==="")return D.href=D.format(),D;if(_.slashes&&!_.protocol){for(var W=Object.keys(_),G=0;G<W.length;G++){var Z=W[G];Z!=="protocol"&&(D[Z]=_[Z])}return k[D.protocol]&&D.hostname&&!D.pathname&&(D.path=D.pathname="/"),D.href=D.format(),D}if(_.protocol&&_.protocol!==D.protocol){if(!k[_.protocol]){for(var U=Object.keys(_),ee=0;ee<U.length;ee++){var $=U[ee];D[$]=_[$]}return D.href=D.format(),D}if(D.protocol=_.protocol,_.host||b[_.protocol])D.pathname=_.pathname;else{for(var ae=(_.pathname||"").split("/");ae.length&&!(_.host=ae.shift()););_.host||(_.host=""),_.hostname||(_.hostname=""),ae[0]!==""&&ae.unshift(""),ae.length<2&&ae.unshift(""),D.pathname=ae.join("/")}if(D.search=_.search,D.query=_.query,D.host=_.host||"",D.auth=_.auth,D.hostname=_.hostname||_.host,D.port=_.port,D.pathname||D.search){var q=D.pathname||"",R=D.search||"";D.path=q+R}return D.slashes=D.slashes||_.slashes,D.href=D.format(),D}var I=D.pathname&&D.pathname.charAt(0)==="/",F=_.host||_.pathname&&_.pathname.charAt(0)==="/",N=F||I||D.host&&_.pathname,H=N,Y=D.pathname&&D.pathname.split("/")||[],ae=_.pathname&&_.pathname.split("/")||[],te=D.protocol&&!k[D.protocol];if(te&&(D.hostname="",D.port=null,D.host&&(Y[0]===""?Y[0]=D.host:Y.unshift(D.host)),D.host="",_.protocol&&(_.hostname=null,_.port=null,_.host&&(ae[0]===""?ae[0]=_.host:ae.unshift(_.host)),_.host=null),N=N&&(ae[0]===""||Y[0]==="")),F)D.host=_.host||_.host===""?_.host:D.host,D.hostname=_.hostname||_.hostname===""?_.hostname:D.hostname,D.search=_.search,D.query=_.query,Y=ae;else if(ae.length)Y||(Y=[]),Y.pop(),Y=Y.concat(ae),D.search=_.search,D.query=_.query;else if(!e.isNullOrUndefined(_.search)){if(te){D.hostname=D.host=Y.shift();var ue=!!(D.host&&D.host.indexOf("@")>0)&&D.host.split("@");ue&&(D.auth=ue.shift(),D.host=D.hostname=ue.shift())}return D.search=_.search,D.query=_.query,e.isNull(D.pathname)&&e.isNull(D.search)||(D.path=(D.pathname?D.pathname:"")+(D.search?D.search:"")),D.href=D.format(),D}if(!Y.length)return D.pathname=null,D.search?D.path="/"+D.search:D.path=null,D.href=D.format(),D;for(var de=Y.slice(-1)[0],Q=(D.host||_.host||Y.length>1)&&(de==="."||de==="..")||de==="",J=0,ie=Y.length;ie>=0;ie--)de=Y[ie],de==="."?Y.splice(ie,1):de===".."?(Y.splice(ie,1),J++):J&&(Y.splice(ie,1),J--);if(!N&&!H)for(;J--;J)Y.unshift("..");!N||Y[0]===""||Y[0]&&Y[0].charAt(0)==="/"||Y.unshift(""),Q&&Y.join("/").substr(-1)!=="/"&&Y.push("");var X=Y[0]===""||Y[0]&&Y[0].charAt(0)==="/";if(te){D.hostname=D.host=X?"":Y.length?Y.shift():"";var ue=!!(D.host&&D.host.indexOf("@")>0)&&D.host.split("@");ue&&(D.auth=ue.shift(),D.host=D.hostname=ue.shift())}return N=N||D.host&&Y.length,N&&!X&&Y.unshift(""),Y.length?D.pathname=Y.join("/"):(D.pathname=null,D.path=null),e.isNull(D.pathname)&&e.isNull(D.search)||(D.path=(D.pathname?D.pathname:"")+(D.search?D.search:"")),D.auth=_.auth||D.auth,D.slashes=D.slashes||_.slashes,D.href=D.format(),D},h.prototype.parseHost=function(){var _=this.host,j=r.exec(_);j&&(j=j[0],j!==":"&&(this.port=j.substr(1)),_=_.substr(0,_.length-j.length)),_&&(this.hostname=_)}},{"./util":204,punycode:174,querystring:177}],204:[function(n,A,v){"use strict";A.exports={isString:function(y){return typeof y=="string"},isObject:function(y){return typeof y=="object"&&y!==null},isNull:function(y){return y===null},isNullOrUndefined:function(y){return y==null}}},{}],205:[function(n,A,v){(function(h){function y(s,d){function u(){if(!e){if(i("throwDeprecation"))throw new Error(d);i("traceDeprecation")?console.trace(d):console.warn(d),e=!0}return s.apply(this,arguments)}if(i("noDeprecation"))return s;var e=!1;return u}function i(s){try{if(!h.localStorage)return!1}catch(u){return!1}var d=h.localStorage[s];return d!=null&&String(d).toLowerCase()==="true"}A.exports=y}).call(this,typeof Ae!="undefined"?Ae:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],206:[function(n,A,v){A.exports=function(h){return h&&typeof h=="object"&&typeof h.copy=="function"&&typeof h.fill=="function"&&typeof h.readUInt8=="function"}},{}],207:[function(n,A,v){(function(h,y){function i(R,I){var F={seen:[],stylize:d};return arguments.length>=3&&(F.depth=arguments[2]),arguments.length>=4&&(F.colors=arguments[3]),E(I)?F.showHidden=I:I&&v._extend(F,I),k(F.showHidden)&&(F.showHidden=!1),k(F.depth)&&(F.depth=2),k(F.colors)&&(F.colors=!1),k(F.customInspect)&&(F.customInspect=!0),F.colors&&(F.stylize=s),e(F,R,F.depth)}function s(R,I){var F=i.styles[I];return F?"["+i.colors[F][0]+"m"+R+"["+i.colors[F][1]+"m":R}function d(R,I){return R}function u(R){var I={};return R.forEach(function(F,N){I[F]=!0}),I}function e(R,I,F){if(R.customInspect&&I&&M(I.inspect)&&I.inspect!==v.inspect&&(!I.constructor||I.constructor.prototype!==I)){var N=I.inspect(F,R);return m(N)||(N=e(R,N,F)),N}var H=o(R,I);if(H)return H;var Y=Object.keys(I),ae=u(Y);if(R.showHidden&&(Y=Object.getOwnPropertyNames(I)),D(I)&&(Y.indexOf("message")>=0||Y.indexOf("description")>=0))return r(I);if(Y.length===0){if(M(I)){var te=I.name?": "+I.name:"";return R.stylize("[Function"+te+"]","special")}if(C(I))return R.stylize(RegExp.prototype.toString.call(I),"regexp");if(j(I))return R.stylize(Date.prototype.toString.call(I),"date");if(D(I))return r(I)}var ue="",de=!1,Q=["{","}"];if((x(I)&&(de=!0,Q=["[","]"]),M(I))&&(ue=" [Function"+(I.name?": "+I.name:"")+"]"),C(I)&&(ue=" "+RegExp.prototype.toString.call(I)),j(I)&&(ue=" "+Date.prototype.toUTCString.call(I)),D(I)&&(ue=" "+r(I)),Y.length===0&&(!de||I.length==0))return Q[0]+ue+Q[1];if(F<0)return C(I)?R.stylize(RegExp.prototype.toString.call(I),"regexp"):R.stylize("[Object]","special");R.seen.push(I);var J;return J=de?l(R,I,F,ae,Y):Y.map(function(ie){return p(R,I,F,ae,ie,de)}),R.seen.pop(),c(J,ue,Q)}function o(R,I){if(k(I))return R.stylize("undefined","undefined");if(m(I)){var F="'"+JSON.stringify(I).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return R.stylize(F,"string")}return S(I)?R.stylize(""+I,"number"):E(I)?R.stylize(""+I,"boolean"):f(I)?R.stylize("null","null"):void 0}function r(R){return"["+Error.prototype.toString.call(R)+"]"}function l(R,I,F,N,H){for(var Y=[],ae=0,te=I.length;ae<te;++ae)Z(I,String(ae))?Y.push(p(R,I,F,N,String(ae),!0)):Y.push("");return H.forEach(function(ue){ue.match(/^\d+$/)||Y.push(p(R,I,F,N,ue,!0))}),Y}function p(R,I,F,N,H,Y){var ae,te,ue;if(ue=Object.getOwnPropertyDescriptor(I,H)||{value:I[H]},ue.get?te=ue.set?R.stylize("[Getter/Setter]","special"):R.stylize("[Getter]","special"):ue.set&&(te=R.stylize("[Setter]","special")),Z(N,H)||(ae="["+H+"]"),te||(R.seen.indexOf(ue.value)<0?(te=f(F)?e(R,ue.value,null):e(R,ue.value,F-1),te.indexOf(`
|
||
`)>-1&&(te=Y?te.split(`
|
||
`).map(function(de){return" "+de}).join(`
|
||
`).substr(2):`
|
||
`+te.split(`
|
||
`).map(function(de){return" "+de}).join(`
|
||
`))):te=R.stylize("[Circular]","special")),k(ae)){if(Y&&H.match(/^\d+$/))return te;ae=JSON.stringify(""+H),ae.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(ae=ae.substr(1,ae.length-2),ae=R.stylize(ae,"name")):(ae=ae.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),ae=R.stylize(ae,"string"))}return ae+": "+te}function c(R,I,F){var N=0;return R.reduce(function(H,Y){return N++,Y.indexOf(`
|
||
`)>=0&&N++,H+Y.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?F[0]+(I===""?"":I+`
|
||
`)+" "+R.join(`,
|
||
`)+" "+F[1]:F[0]+I+" "+R.join(", ")+" "+F[1]}function x(R){return Array.isArray(R)}function E(R){return typeof R=="boolean"}function f(R){return R===null}function T(R){return R==null}function S(R){return typeof R=="number"}function m(R){return typeof R=="string"}function b(R){return typeof R=="symbol"}function k(R){return R===void 0}function C(R){return _(R)&&z(R)==="[object RegExp]"}function _(R){return typeof R=="object"&&R!==null}function j(R){return _(R)&&z(R)==="[object Date]"}function D(R){return _(R)&&(z(R)==="[object Error]"||R instanceof Error)}function M(R){return typeof R=="function"}function L(R){return R===null||typeof R=="boolean"||typeof R=="number"||typeof R=="string"||typeof R=="symbol"||R===void 0}function z(R){return Object.prototype.toString.call(R)}function W(R){return R<10?"0"+R.toString(10):R.toString(10)}function G(){var R=new Date,I=[W(R.getHours()),W(R.getMinutes()),W(R.getSeconds())].join(":");return[R.getDate(),q[R.getMonth()],I].join(" ")}function Z(R,I){return Object.prototype.hasOwnProperty.call(R,I)}var U=/%[sdj%]/g;v.format=function(R){if(!m(R)){for(var I=[],F=0;F<arguments.length;F++)I.push(i(arguments[F]));return I.join(" ")}for(var F=1,N=arguments,H=N.length,Y=String(R).replace(U,function(ue){if(ue==="%%")return"%";if(F>=H)return ue;switch(ue){case"%s":return String(N[F++]);case"%d":return Number(N[F++]);case"%j":try{return JSON.stringify(N[F++])}catch(de){return"[Circular]"}default:return ue}}),ae=N[F];F<H;ae=N[++F])f(ae)||!_(ae)?Y+=" "+ae:Y+=" "+i(ae);return Y},v.deprecate=function(R,I){function F(){if(!N){if(h.throwDeprecation)throw new Error(I);h.traceDeprecation?console.trace(I):console.error(I),N=!0}return R.apply(this,arguments)}if(k(y.process))return function(){return v.deprecate(R,I).apply(this,arguments)};if(h.noDeprecation===!0)return R;var N=!1;return F};var ee,$={};v.debuglog=function(R){if(k(ee)&&(ee=h.env.NODE_DEBUG||""),R=R.toUpperCase(),!$[R])if(new RegExp("\\b"+R+"\\b","i").test(ee)){var I=h.pid;$[R]=function(){var F=v.format.apply(v,arguments);console.error("%s %d: %s",R,I,F)}}else $[R]=function(){};return $[R]},v.inspect=i,i.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]},i.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},v.isArray=x,v.isBoolean=E,v.isNull=f,v.isNullOrUndefined=T,v.isNumber=S,v.isString=m,v.isSymbol=b,v.isUndefined=k,v.isRegExp=C,v.isObject=_,v.isDate=j,v.isError=D,v.isFunction=M,v.isPrimitive=L,v.isBuffer=n("./support/isBuffer");var q=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];v.log=function(){console.log("%s - %s",G(),v.format.apply(v,arguments))},v.inherits=n("inherits"),v._extend=function(R,I){if(!I||!_(I))return R;for(var F=Object.keys(I),N=F.length;N--;)R[F[N]]=I[F[N]];return R}}).call(this,n("_process"),typeof Ae!="undefined"?Ae:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":206,_process:173,inherits:162}],208:[function(n,A,v){"use strict";(function(){v.stripBOM=function(h){return h[0]==="\uFEFF"?h.substring(1):h}}).call(void 0)},{}],209:[function(n,A,v){"use strict";function h(u){return u&&u.__esModule?u:{default:u}}var y=n("babel-runtime/helpers/typeof"),i=h(y),s=n("babel-runtime/core-js/object/keys"),d=h(s);(function(){var u,e,o,r,l,p={}.hasOwnProperty;u=n("xmlbuilder"),e=n("./defaults").defaults,r=function(x){return typeof x=="string"&&(x.indexOf("&")>=0||x.indexOf(">")>=0||x.indexOf("<")>=0)},l=function(x){return"<![CDATA["+o(x)+"]]>"},o=function(x){return x.replace("]]>","]]]]><![CDATA[>")},v.Builder=function(){function c(x){var E,f,T;this.options={},f=e[.2];for(E in f)p.call(f,E)&&(T=f[E],this.options[E]=T);for(E in x)p.call(x,E)&&(T=x[E],this.options[E]=T)}return c.prototype.buildObject=function(x){var E,f,T,S,m;return E=this.options.attrkey,f=this.options.charkey,(0,d.default)(x).length===1&&this.options.rootName===e[.2].rootName?(m=(0,d.default)(x)[0],x=x[m]):m=this.options.rootName,T=function(b){return function(k,C){var _,j,D,M,L,z;if((C===void 0?"undefined":(0,i.default)(C))!=="object")b.options.cdata&&r(C)?k.raw(l(C)):k.txt(C);else if(Array.isArray(C)){for(M in C)if(p.call(C,M)){j=C[M];for(L in j)D=j[L],k=T(k.ele(L),D).up()}}else for(L in C)if(p.call(C,L))if(j=C[L],L===E){if((j===void 0?"undefined":(0,i.default)(j))==="object")for(_ in j)z=j[_],k=k.att(_,z)}else if(L===f)k=b.options.cdata&&r(j)?k.raw(l(j)):k.txt(j);else if(Array.isArray(j))for(M in j)p.call(j,M)&&(D=j[M],k=typeof D=="string"?b.options.cdata&&r(D)?k.ele(L).raw(l(D)).up():k.ele(L,D).up():T(k.ele(L),D).up());else(j===void 0?"undefined":(0,i.default)(j))==="object"?k=T(k.ele(L),j).up():typeof j=="string"&&b.options.cdata&&r(j)?k=k.ele(L).raw(l(j)).up():(j==null&&(j=""),k=k.ele(L,j.toString()).up());return k}}(this),S=u.create(m,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),T(S,x).end(this.options.renderOpts)},c}()}).call(void 0)},{"./defaults":210,"babel-runtime/core-js/object/keys":23,"babel-runtime/helpers/typeof":32,xmlbuilder:235}],210:[function(n,A,v){"use strict";(function(){v.defaults={.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:""},.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)},{}],211:[function(n,A,v){"use strict";function h(o){return o&&o.__esModule?o:{default:o}}var y=n("babel-runtime/core-js/object/get-own-property-names"),i=h(y),s=n("babel-runtime/core-js/object/keys"),d=h(s),u=n("babel-runtime/helpers/typeof"),e=h(u);(function(){var o,r,l,p,c,x,E,f,T=function(k,C){return function(){return k.apply(C,arguments)}},S=function(k,C){function _(){this.constructor=k}for(var j in C)m.call(C,j)&&(k[j]=C[j]);return _.prototype=C.prototype,k.prototype=new _,k.__super__=C.prototype,k},m={}.hasOwnProperty;E=n("sax"),l=n("events"),o=n("./bom"),x=n("./processors"),f=n("timers").setImmediate,r=n("./defaults").defaults,p=function(k){return(k===void 0?"undefined":(0,e.default)(k))==="object"&&k!=null&&(0,d.default)(k).length===0},c=function(k,C,_){var j,D,M;for(j=0,D=k.length;j<D;j++)M=k[j],C=M(C,_);return C},v.Parser=function(b){function k(C){this.parseString=T(this.parseString,this),this.reset=T(this.reset,this),this.assignOrPush=T(this.assignOrPush,this),this.processAsync=T(this.processAsync,this);var _,j,D;if(!(this instanceof v.Parser))return new v.Parser(C);this.options={},j=r[.2];for(_ in j)m.call(j,_)&&(D=j[_],this.options[_]=D);for(_ in C)m.call(C,_)&&(D=C[_],this.options[_]=D);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(x.normalize)),this.reset()}return S(k,b),k.prototype.processAsync=function(){var C,_;try{return this.remaining.length<=this.options.chunkSize?(C=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(C),this.saxParser.close()):(C=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(C),f(this.processAsync))}catch(j){if(_=j,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(_)}},k.prototype.assignOrPush=function(C,_,j){return _ in C?(C[_]instanceof Array||(C[_]=[C[_]]),C[_].push(j)):this.options.explicitArray?C[_]=[j]:C[_]=j},k.prototype.reset=function(){var C,_,j,D;return this.removeAllListeners(),this.saxParser=E.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(M){return function(L){if(M.saxParser.resume(),!M.saxParser.errThrown)return M.saxParser.errThrown=!0,M.emit("error",L)}}(this),this.saxParser.onend=function(M){return function(){if(!M.saxParser.ended)return M.saxParser.ended=!0,M.emit("end",M.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,D=[],C=this.options.attrkey,_=this.options.charkey,this.saxParser.onopentag=function(M){return function(L){var z,W,G,Z,U;if(G={},G[_]="",!M.options.ignoreAttrs){U=L.attributes;for(z in U)m.call(U,z)&&(C in G||M.options.mergeAttrs||(G[C]={}),W=M.options.attrValueProcessors?c(M.options.attrValueProcessors,L.attributes[z],z):L.attributes[z],Z=M.options.attrNameProcessors?c(M.options.attrNameProcessors,z):z,M.options.mergeAttrs?M.assignOrPush(G,Z,W):G[C][Z]=W)}return G["#name"]=M.options.tagNameProcessors?c(M.options.tagNameProcessors,L.name):L.name,M.options.xmlns&&(G[M.options.xmlnskey]={uri:L.uri,local:L.local}),D.push(G)}}(this),this.saxParser.onclosetag=function(M){return function(){var L,z,W,G,Z,U,ee,$,q,R;if(U=D.pop(),Z=U["#name"],M.options.explicitChildren&&M.options.preserveChildrenOrder||delete U["#name"],U.cdata===!0&&(L=U.cdata,delete U.cdata),q=D[D.length-1],U[_].match(/^\s*$/)&&!L?(z=U[_],delete U[_]):(M.options.trim&&(U[_]=U[_].trim()),M.options.normalize&&(U[_]=U[_].replace(/\s{2,}/g," ").trim()),U[_]=M.options.valueProcessors?c(M.options.valueProcessors,U[_],Z):U[_],(0,d.default)(U).length===1&&_ in U&&!M.EXPLICIT_CHARKEY&&(U=U[_])),p(U)&&(U=M.options.emptyTag!==""?M.options.emptyTag:z),M.options.validator!=null&&(R="/"+function(){var I,F,N;for(N=[],I=0,F=D.length;I<F;I++)G=D[I],N.push(G["#name"]);return N}().concat(Z).join("/"),function(){var I;try{U=M.options.validator(R,q&&q[Z],U)}catch(F){return I=F,M.emit("error",I)}}()),M.options.explicitChildren&&!M.options.mergeAttrs&&(U===void 0?"undefined":(0,e.default)(U))==="object")if(M.options.preserveChildrenOrder){if(q){q[M.options.childkey]=q[M.options.childkey]||[],ee={};for(W in U)m.call(U,W)&&(ee[W]=U[W]);q[M.options.childkey].push(ee),delete U["#name"],(0,d.default)(U).length===1&&_ in U&&!M.EXPLICIT_CHARKEY&&(U=U[_])}}else G={},M.options.attrkey in U&&(G[M.options.attrkey]=U[M.options.attrkey],delete U[M.options.attrkey]),!M.options.charsAsChildren&&M.options.charkey in U&&(G[M.options.charkey]=U[M.options.charkey],delete U[M.options.charkey]),(0,i.default)(U).length>0&&(G[M.options.childkey]=U),U=G;return D.length>0?M.assignOrPush(q,Z,U):(M.options.explicitRoot&&($=U,U={},U[Z]=$),M.resultObject=U,M.saxParser.ended=!0,M.emit("end",M.resultObject))}}(this),j=function(M){return function(L){var z,W;if(W=D[D.length-1])return W[_]+=L,M.options.explicitChildren&&M.options.preserveChildrenOrder&&M.options.charsAsChildren&&(M.options.includeWhiteChars||L.replace(/\\n/g,"").trim()!=="")&&(W[M.options.childkey]=W[M.options.childkey]||[],z={"#name":"__text__"},z[_]=L,M.options.normalize&&(z[_]=z[_].replace(/\s{2,}/g," ").trim()),W[M.options.childkey].push(z)),W}}(this),this.saxParser.ontext=j,this.saxParser.oncdata=function(M){return function(L){var z;if(z=j(L))return z.cdata=!0}}()},k.prototype.parseString=function(C,_){var j;_!=null&&typeof _=="function"&&(this.on("end",function(D){return this.reset(),_(null,D)}),this.on("error",function(D){return this.reset(),_(D)}));try{return C=C.toString(),C.trim()===""?(this.emit("end",null),!0):(C=o.stripBOM(C),this.options.async?(this.remaining=C,f(this.processAsync),this.saxParser):this.saxParser.write(C).close())}catch(D){if(j=D,!this.saxParser.errThrown&&!this.saxParser.ended)return this.emit("error",j),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw j}},k}(l.EventEmitter),v.parseString=function(b,k,C){var _,j,D;return C!=null?(typeof C=="function"&&(_=C),(k===void 0?"undefined":(0,e.default)(k))==="object"&&(j=k)):(typeof k=="function"&&(_=k),j={}),D=new v.Parser(j),D.parseString(b,_)}}).call(void 0)},{"./bom":208,"./defaults":210,"./processors":212,"babel-runtime/core-js/object/get-own-property-names":21,"babel-runtime/core-js/object/keys":23,"babel-runtime/helpers/typeof":32,events:158,sax:194,timers:201}],212:[function(n,A,v){"use strict";(function(){var h;h=new RegExp(/(?!xmlns)^.*:/),v.normalize=function(y){return y.toLowerCase()},v.firstCharLowerCase=function(y){return y.charAt(0).toLowerCase()+y.slice(1)},v.stripPrefix=function(y){return y.replace(h,"")},v.parseNumbers=function(y){return isNaN(y)||(y=y%1==0?parseInt(y,10):parseFloat(y)),y},v.parseBooleans=function(y){return/^(?:true|false)$/i.test(y)&&(y=y.toLowerCase()==="true"),y}}).call(void 0)},{}],213:[function(n,A,v){"use strict";(function(){var h,y,i,s,d=function(o,r){function l(){this.constructor=o}for(var p in r)u.call(r,p)&&(o[p]=r[p]);return l.prototype=r.prototype,o.prototype=new l,o.__super__=r.prototype,o},u={}.hasOwnProperty;y=n("./defaults"),h=n("./builder"),i=n("./parser"),s=n("./processors"),v.defaults=y.defaults,v.processors=s,v.ValidationError=function(e){function o(r){this.message=r}return d(o,e),o}(Error),v.Builder=h.Builder,v.Parser=i.Parser,v.parseString=i.parseString}).call(void 0)},{"./builder":209,"./defaults":210,"./parser":211,"./processors":212}],214:[function(n,A,v){"use strict";function h(o){return o&&o.__esModule?o:{default:o}}var y=n("babel-runtime/core-js/object/get-prototype-of"),i=h(y),s=n("babel-runtime/helpers/typeof"),d=h(s),u=n("babel-runtime/core-js/object/assign"),e=h(u);(function(){var o,r,l,p,c,x,E=[].slice,f={}.hasOwnProperty;o=function(){var S,m,b,k,C,_;if(_=arguments[0],C=2<=arguments.length?E.call(arguments,1):[],p(e.default))e.default.apply(null,arguments);else for(S=0,b=C.length;S<b;S++)if((k=C[S])!=null)for(m in k)f.call(k,m)&&(_[m]=k[m]);return _},p=function(S){return!!S&&Object.prototype.toString.call(S)==="[object Function]"},c=function(S){var m;return!!S&&((m=S===void 0?"undefined":(0,d.default)(S))==="function"||m==="object")},r=function(S){return p(Array.isArray)?Array.isArray(S):Object.prototype.toString.call(S)==="[object Array]"},l=function(S){var m;if(r(S))return!S.length;for(m in S)if(f.call(S,m))return!1;return!0},x=function(S){var m,b;return c(S)&&(b=(0,i.default)(S))&&(m=b.constructor)&&typeof m=="function"&&m instanceof m&&Function.prototype.toString.call(m)===Function.prototype.toString.call(Object)},A.exports.assign=o,A.exports.isFunction=p,A.exports.isObject=c,A.exports.isArray=r,A.exports.isEmpty=l,A.exports.isPlainObject=x}).call(void 0)},{"babel-runtime/core-js/object/assign":18,"babel-runtime/core-js/object/get-prototype-of":22,"babel-runtime/helpers/typeof":32}],215:[function(n,A,v){"use strict";var h=n("babel-runtime/core-js/object/create"),y=function(i){return i&&i.__esModule?i:{default:i}}(h);(function(){A.exports=function(){function i(s,d,u){if(this.options=s.options,this.stringify=s.stringify,d==null)throw new Error("Missing attribute name of element "+s.name);if(u==null)throw new Error("Missing attribute value for attribute "+d+" of element "+s.name);this.name=this.stringify.attName(d),this.value=this.stringify.attValue(u)}return i.prototype.clone=function(){return(0,y.default)(this)},i.prototype.toString=function(s){return this.options.writer.set(s).attribute(this)},i}()}).call(void 0)},{"babel-runtime/core-js/object/create":19}],216:[function(n,A,v){"use strict";var h=n("babel-runtime/core-js/object/create"),y=function(i){return i&&i.__esModule?i:{default:i}}(h);(function(){var i,s=function(e,o){function r(){this.constructor=e}for(var l in o)d.call(o,l)&&(e[l]=o[l]);return r.prototype=o.prototype,e.prototype=new r,e.__super__=o.prototype,e},d={}.hasOwnProperty;i=n("./XMLNode"),A.exports=function(u){function e(o,r){if(e.__super__.constructor.call(this,o),r==null)throw new Error("Missing CDATA text");this.text=this.stringify.cdata(r)}return s(e,u),e.prototype.clone=function(){return(0,y.default)(this)},e.prototype.toString=function(o){return this.options.writer.set(o).cdata(this)},e}(i)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],217:[function(n,A,v){"use strict";var h=n("babel-runtime/core-js/object/create"),y=function(i){return i&&i.__esModule?i:{default:i}}(h);(function(){var i,s=function(e,o){function r(){this.constructor=e}for(var l in o)d.call(o,l)&&(e[l]=o[l]);return r.prototype=o.prototype,e.prototype=new r,e.__super__=o.prototype,e},d={}.hasOwnProperty;i=n("./XMLNode"),A.exports=function(u){function e(o,r){if(e.__super__.constructor.call(this,o),r==null)throw new Error("Missing comment text");this.text=this.stringify.comment(r)}return s(e,u),e.prototype.clone=function(){return(0,y.default)(this)},e.prototype.toString=function(o){return this.options.writer.set(o).comment(this)},e}(i)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],218:[function(n,A,v){"use strict";(function(){var h,y=function(d,u){function e(){this.constructor=d}for(var o in u)i.call(u,o)&&(d[o]=u[o]);return e.prototype=u.prototype,d.prototype=new e,d.__super__=u.prototype,d},i={}.hasOwnProperty;h=n("./XMLNode"),A.exports=function(s){function d(u,e,o,r,l,p){if(d.__super__.constructor.call(this,u),e==null)throw new Error("Missing DTD element name");if(o==null)throw new Error("Missing DTD attribute name");if(!r)throw new Error("Missing DTD attribute type");if(!l)throw new Error("Missing DTD attribute default");if(l.indexOf("#")!==0&&(l="#"+l),!l.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT");if(p&&!l.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT");this.elementName=this.stringify.eleName(e),this.attributeName=this.stringify.attName(o),this.attributeType=this.stringify.dtdAttType(r),this.defaultValue=this.stringify.dtdAttDefault(p),this.defaultValueType=l}return y(d,s),d.prototype.toString=function(u){return this.options.writer.set(u).dtdAttList(this)},d}(h)}).call(void 0)},{"./XMLNode":227}],219:[function(n,A,v){"use strict";(function(){var h,y=function(d,u){function e(){this.constructor=d}for(var o in u)i.call(u,o)&&(d[o]=u[o]);return e.prototype=u.prototype,d.prototype=new e,d.__super__=u.prototype,d},i={}.hasOwnProperty;h=n("./XMLNode"),A.exports=function(s){function d(u,e,o){if(d.__super__.constructor.call(this,u),e==null)throw new Error("Missing DTD element name");o||(o="(#PCDATA)"),Array.isArray(o)&&(o="("+o.join(",")+")"),this.name=this.stringify.eleName(e),this.value=this.stringify.dtdElementValue(o)}return y(d,s),d.prototype.toString=function(u){return this.options.writer.set(u).dtdElement(this)},d}(h)}).call(void 0)},{"./XMLNode":227}],220:[function(n,A,v){"use strict";(function(){var h,y,i=function(u,e){function o(){this.constructor=u}for(var r in e)s.call(e,r)&&(u[r]=e[r]);return o.prototype=e.prototype,u.prototype=new o,u.__super__=e.prototype,u},s={}.hasOwnProperty;y=n("./Utility").isObject,h=n("./XMLNode"),A.exports=function(d){function u(e,o,r,l){if(u.__super__.constructor.call(this,e),r==null)throw new Error("Missing entity name");if(l==null)throw new Error("Missing entity value");if(this.pe=!!o,this.name=this.stringify.eleName(r),y(l)){if(!l.pubID&&!l.sysID)throw new Error("Public and/or system identifiers are required for an external entity");if(l.pubID&&!l.sysID)throw new Error("System identifier is required for a public external entity");if(l.pubID!=null&&(this.pubID=this.stringify.dtdPubID(l.pubID)),l.sysID!=null&&(this.sysID=this.stringify.dtdSysID(l.sysID)),l.nData!=null&&(this.nData=this.stringify.dtdNData(l.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity")}else this.value=this.stringify.dtdEntityValue(l)}return i(u,d),u.prototype.toString=function(e){return this.options.writer.set(e).dtdEntity(this)},u}(h)}).call(void 0)},{"./Utility":214,"./XMLNode":227}],221:[function(n,A,v){"use strict";(function(){var h,y=function(d,u){function e(){this.constructor=d}for(var o in u)i.call(u,o)&&(d[o]=u[o]);return e.prototype=u.prototype,d.prototype=new e,d.__super__=u.prototype,d},i={}.hasOwnProperty;h=n("./XMLNode"),A.exports=function(s){function d(u,e,o){if(d.__super__.constructor.call(this,u),e==null)throw new Error("Missing notation name");if(!o.pubID&&!o.sysID)throw new Error("Public or system identifiers are required for an external entity");this.name=this.stringify.eleName(e),o.pubID!=null&&(this.pubID=this.stringify.dtdPubID(o.pubID)),o.sysID!=null&&(this.sysID=this.stringify.dtdSysID(o.sysID))}return y(d,s),d.prototype.toString=function(u){return this.options.writer.set(u).dtdNotation(this)},d}(h)}).call(void 0)},{"./XMLNode":227}],222:[function(n,A,v){"use strict";(function(){var h,y,i=function(u,e){function o(){this.constructor=u}for(var r in e)s.call(e,r)&&(u[r]=e[r]);return o.prototype=e.prototype,u.prototype=new o,u.__super__=e.prototype,u},s={}.hasOwnProperty;y=n("./Utility").isObject,h=n("./XMLNode"),A.exports=function(d){function u(e,o,r,l){var p;u.__super__.constructor.call(this,e),y(o)&&(p=o,o=p.version,r=p.encoding,l=p.standalone),o||(o="1.0"),this.version=this.stringify.xmlVersion(o),r!=null&&(this.encoding=this.stringify.xmlEncoding(r)),l!=null&&(this.standalone=this.stringify.xmlStandalone(l))}return i(u,d),u.prototype.toString=function(e){return this.options.writer.set(e).declaration(this)},u}(h)}).call(void 0)},{"./Utility":214,"./XMLNode":227}],223:[function(n,A,v){"use strict";(function(){var h,y,i,s,d,u,e=function(l,p){function c(){this.constructor=l}for(var x in p)o.call(p,x)&&(l[x]=p[x]);return c.prototype=p.prototype,l.prototype=new c,l.__super__=p.prototype,l},o={}.hasOwnProperty;u=n("./Utility").isObject,d=n("./XMLNode"),h=n("./XMLDTDAttList"),i=n("./XMLDTDEntity"),y=n("./XMLDTDElement"),s=n("./XMLDTDNotation"),A.exports=function(r){function l(p,c,x){var E,f;l.__super__.constructor.call(this,p),this.documentObject=p,u(c)&&(E=c,c=E.pubID,x=E.sysID),x==null&&(f=[c,x],x=f[0],c=f[1]),c!=null&&(this.pubID=this.stringify.dtdPubID(c)),x!=null&&(this.sysID=this.stringify.dtdSysID(x))}return e(l,r),l.prototype.element=function(p,c){var x;return x=new y(this,p,c),this.children.push(x),this},l.prototype.attList=function(p,c,x,E,f){var T;return T=new h(this,p,c,x,E,f),this.children.push(T),this},l.prototype.entity=function(p,c){var x;return x=new i(this,!1,p,c),this.children.push(x),this},l.prototype.pEntity=function(p,c){var x;return x=new i(this,!0,p,c),this.children.push(x),this},l.prototype.notation=function(p,c){var x;return x=new s(this,p,c),this.children.push(x),this},l.prototype.toString=function(p){return this.options.writer.set(p).docType(this)},l.prototype.ele=function(p,c){return this.element(p,c)},l.prototype.att=function(p,c,x,E,f){return this.attList(p,c,x,E,f)},l.prototype.ent=function(p,c){return this.entity(p,c)},l.prototype.pent=function(p,c){return this.pEntity(p,c)},l.prototype.not=function(p,c){return this.notation(p,c)},l.prototype.up=function(){return this.root()||this.documentObject},l}(d)}).call(void 0)},{"./Utility":214,"./XMLDTDAttList":218,"./XMLDTDElement":219,"./XMLDTDEntity":220,"./XMLDTDNotation":221,"./XMLNode":227}],224:[function(n,A,v){"use strict";(function(){var h,y,i,s,d=function(o,r){function l(){this.constructor=o}for(var p in r)u.call(r,p)&&(o[p]=r[p]);return l.prototype=r.prototype,o.prototype=new l,o.__super__=r.prototype,o},u={}.hasOwnProperty;s=n("./Utility").isPlainObject,h=n("./XMLNode"),i=n("./XMLStringifier"),y=n("./XMLStringWriter"),A.exports=function(e){function o(r){o.__super__.constructor.call(this,null),r||(r={}),r.writer||(r.writer=new y),this.options=r,this.stringify=new i(r),this.isDocument=!0}return d(o,e),o.prototype.end=function(r){var l;return r?s(r)&&(l=r,r=this.options.writer.set(l)):r=this.options.writer,r.document(this)},o.prototype.toString=function(r){return this.options.writer.set(r).document(this)},o}(h)}).call(void 0)},{"./Utility":214,"./XMLNode":227,"./XMLStringWriter":231,"./XMLStringifier":232}],225:[function(n,A,v){"use strict";(function(){var h,y,i,s,d,u,e,o,r,l,p,c,x,E,f,T,S,m,b,k={}.hasOwnProperty;b=n("./Utility"),S=b.isObject,T=b.isFunction,m=b.isPlainObject,l=n("./XMLElement"),y=n("./XMLCData"),i=n("./XMLComment"),c=n("./XMLRaw"),f=n("./XMLText"),p=n("./XMLProcessingInstruction"),o=n("./XMLDeclaration"),r=n("./XMLDocType"),s=n("./XMLDTDAttList"),u=n("./XMLDTDEntity"),d=n("./XMLDTDElement"),e=n("./XMLDTDNotation"),h=n("./XMLAttribute"),E=n("./XMLStringifier"),x=n("./XMLStringWriter"),A.exports=function(){function C(_,j,D){var M;_||(_={}),_.writer?m(_.writer)&&(M=_.writer,_.writer=new x(M)):_.writer=new x(_),this.options=_,this.writer=_.writer,this.stringify=new E(_),this.onDataCallback=j||function(){},this.onEndCallback=D||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return C.prototype.node=function(_,j,D){var M;if(_==null)throw new Error("Missing node name");if(this.root&&this.currentLevel===-1)throw new Error("Document can only have one root node");return this.openCurrent(),_=_.valueOf(),j==null&&(j={}),j=j.valueOf(),S(j)||(M=[j,D],D=M[0],j=M[1]),this.currentNode=new l(this,_,j),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,D!=null&&this.text(D),this},C.prototype.element=function(_,j,D){return this.currentNode&&this.currentNode instanceof r?this.dtdElement.apply(this,arguments):this.node(_,j,D)},C.prototype.attribute=function(_,j){var D,M;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode");if(_!=null&&(_=_.valueOf()),S(_))for(D in _)k.call(_,D)&&(M=_[D],this.attribute(D,M));else T(j)&&(j=j.apply()),this.options.skipNullAttributes&&j==null||(this.currentNode.attributes[_]=new h(this,_,j));return this},C.prototype.text=function(_){var j;return this.openCurrent(),j=new f(this,_),this.onData(this.writer.text(j,this.currentLevel+1)),this},C.prototype.cdata=function(_){var j;return this.openCurrent(),j=new y(this,_),this.onData(this.writer.cdata(j,this.currentLevel+1)),this},C.prototype.comment=function(_){var j;return this.openCurrent(),j=new i(this,_),this.onData(this.writer.comment(j,this.currentLevel+1)),this},C.prototype.raw=function(_){var j;return this.openCurrent(),j=new c(this,_),this.onData(this.writer.raw(j,this.currentLevel+1)),this},C.prototype.instruction=function(_,j){var D,M,L,z,W;if(this.openCurrent(),_!=null&&(_=_.valueOf()),j!=null&&(j=j.valueOf()),Array.isArray(_))for(D=0,z=_.length;D<z;D++)M=_[D],this.instruction(M);else if(S(_))for(M in _)k.call(_,M)&&(L=_[M],this.instruction(M,L));else T(j)&&(j=j.apply()),W=new p(this,_,j),this.onData(this.writer.processingInstruction(W,this.currentLevel+1));return this},C.prototype.declaration=function(_,j,D){var M;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node");return M=new o(this,_,j,D),this.onData(this.writer.declaration(M,this.currentLevel+1)),this},C.prototype.doctype=function(_,j,D){if(this.openCurrent(),_==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 r(this,j,D),this.currentNode.rootNodeName=_,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},C.prototype.dtdElement=function(_,j){var D;return this.openCurrent(),D=new d(this,_,j),this.onData(this.writer.dtdElement(D,this.currentLevel+1)),this},C.prototype.attList=function(_,j,D,M,L){var z;return this.openCurrent(),z=new s(this,_,j,D,M,L),this.onData(this.writer.dtdAttList(z,this.currentLevel+1)),this},C.prototype.entity=function(_,j){var D;return this.openCurrent(),D=new u(this,!1,_,j),this.onData(this.writer.dtdEntity(D,this.currentLevel+1)),this},C.prototype.pEntity=function(_,j){var D;return this.openCurrent(),D=new u(this,!0,_,j),this.onData(this.writer.dtdEntity(D,this.currentLevel+1)),this},C.prototype.notation=function(_,j){var D;return this.openCurrent(),D=new e(this,_,j),this.onData(this.writer.dtdNotation(D,this.currentLevel+1)),this},C.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},C.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},C.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},C.prototype.openNode=function(_){if(!_.isOpen)return!this.root&&this.currentLevel===0&&_ instanceof l&&(this.root=_),this.onData(this.writer.openNode(_,this.currentLevel)),_.isOpen=!0},C.prototype.closeNode=function(_){if(!_.isClosed)return this.onData(this.writer.closeNode(_,this.currentLevel)),_.isClosed=!0},C.prototype.onData=function(_){return this.documentStarted=!0,this.onDataCallback(_)},C.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},C.prototype.ele=function(){return this.element.apply(this,arguments)},C.prototype.nod=function(_,j,D){return this.node(_,j,D)},C.prototype.txt=function(_){return this.text(_)},C.prototype.dat=function(_){return this.cdata(_)},C.prototype.com=function(_){return this.comment(_)},C.prototype.ins=function(_,j){return this.instruction(_,j)},C.prototype.dec=function(_,j,D){return this.declaration(_,j,D)},C.prototype.dtd=function(_,j,D){return this.doctype(_,j,D)},C.prototype.e=function(_,j,D){return this.element(_,j,D)},C.prototype.n=function(_,j,D){return this.node(_,j,D)},C.prototype.t=function(_){return this.text(_)},C.prototype.d=function(_){return this.cdata(_)},C.prototype.c=function(_){return this.comment(_)},C.prototype.r=function(_){return this.raw(_)},C.prototype.i=function(_,j){return this.instruction(_,j)},C.prototype.att=function(){return this.currentNode&&this.currentNode instanceof r?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},C.prototype.a=function(){return this.currentNode&&this.currentNode instanceof r?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},C.prototype.ent=function(_,j){return this.entity(_,j)},C.prototype.pent=function(_,j){return this.pEntity(_,j)},C.prototype.not=function(_,j){return this.notation(_,j)},C}()}).call(void 0)},{"./Utility":214,"./XMLAttribute":215,"./XMLCData":216,"./XMLComment":217,"./XMLDTDAttList":218,"./XMLDTDElement":219,"./XMLDTDEntity":220,"./XMLDTDNotation":221,"./XMLDeclaration":222,"./XMLDocType":223,"./XMLElement":226,"./XMLProcessingInstruction":228,"./XMLRaw":229,"./XMLStringWriter":231,"./XMLStringifier":232,"./XMLText":233}],226:[function(n,A,v){"use strict";var h=n("babel-runtime/core-js/object/create"),y=function(i){return i&&i.__esModule?i:{default:i}}(h);(function(){var i,s,d,u,e,o=function(p,c){function x(){this.constructor=p}for(var E in c)r.call(c,E)&&(p[E]=c[E]);return x.prototype=c.prototype,p.prototype=new x,p.__super__=c.prototype,p},r={}.hasOwnProperty;e=n("./Utility"),u=e.isObject,d=e.isFunction,s=n("./XMLNode"),i=n("./XMLAttribute"),A.exports=function(l){function p(c,x,E){if(p.__super__.constructor.call(this,c),x==null)throw new Error("Missing element name");this.name=this.stringify.eleName(x),this.attributes={},E!=null&&this.attribute(E),c.isDocument&&(this.isRoot=!0,this.documentObject=c,c.rootObject=this)}return o(p,l),p.prototype.clone=function(){var c,x,E,f;E=(0,y.default)(this),E.isRoot&&(E.documentObject=null),E.attributes={},f=this.attributes;for(x in f)r.call(f,x)&&(c=f[x],E.attributes[x]=c.clone());return E.children=[],this.children.forEach(function(T){var S;return S=T.clone(),S.parent=E,E.children.push(S)}),E},p.prototype.attribute=function(c,x){var E,f;if(c!=null&&(c=c.valueOf()),u(c))for(E in c)r.call(c,E)&&(f=c[E],this.attribute(E,f));else d(x)&&(x=x.apply()),this.options.skipNullAttributes&&x==null||(this.attributes[c]=new i(this,c,x));return this},p.prototype.removeAttribute=function(c){var x,E,f;if(c==null)throw new Error("Missing attribute name");if(c=c.valueOf(),Array.isArray(c))for(E=0,f=c.length;E<f;E++)x=c[E],delete this.attributes[x];else delete this.attributes[c];return this},p.prototype.toString=function(c){return this.options.writer.set(c).element(this)},p.prototype.att=function(c,x){return this.attribute(c,x)},p.prototype.a=function(c,x){return this.attribute(c,x)},p}(s)}).call(void 0)},{"./Utility":214,"./XMLAttribute":215,"./XMLNode":227,"babel-runtime/core-js/object/create":19}],227:[function(n,A,v){"use strict";(function(){var h,y,i,s,d,u,e,o,r,l,p,c,x={}.hasOwnProperty;c=n("./Utility"),p=c.isObject,l=c.isFunction,r=c.isEmpty,d=null,h=null,y=null,i=null,s=null,e=null,o=null,u=null,A.exports=function(){function E(f){this.parent=f,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.children=[],d||(d=n("./XMLElement"),h=n("./XMLCData"),y=n("./XMLComment"),i=n("./XMLDeclaration"),s=n("./XMLDocType"),e=n("./XMLRaw"),o=n("./XMLText"),u=n("./XMLProcessingInstruction"))}return E.prototype.element=function(f,T,S){var m,b,k,C,_,j,D,M,L,z;if(j=null,T==null&&(T={}),T=T.valueOf(),p(T)||(L=[T,S],S=L[0],T=L[1]),f!=null&&(f=f.valueOf()),Array.isArray(f))for(k=0,D=f.length;k<D;k++)b=f[k],j=this.element(b);else if(l(f))j=this.element(f.apply());else if(p(f)){for(_ in f)if(x.call(f,_))if(z=f[_],l(z)&&(z=z.apply()),p(z)&&r(z)&&(z=null),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&_.indexOf(this.stringify.convertAttKey)===0)j=this.attribute(_.substr(this.stringify.convertAttKey.length),z);else if(!this.options.separateArrayItems&&Array.isArray(z))for(C=0,M=z.length;C<M;C++)b=z[C],m={},m[_]=b,j=this.element(m);else p(z)?(j=this.element(_),j.element(z)):j=this.element(_,z)}else j=!this.options.ignoreDecorators&&this.stringify.convertTextKey&&f.indexOf(this.stringify.convertTextKey)===0?this.text(S):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&f.indexOf(this.stringify.convertCDataKey)===0?this.cdata(S):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&f.indexOf(this.stringify.convertCommentKey)===0?this.comment(S):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&f.indexOf(this.stringify.convertRawKey)===0?this.raw(S):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&f.indexOf(this.stringify.convertPIKey)===0?this.instruction(f.substr(this.stringify.convertPIKey.length),S):this.node(f,T,S);if(j==null)throw new Error("Could not create any elements with: "+f);return j},E.prototype.insertBefore=function(f,T,S){var m,b,k;if(this.isRoot)throw new Error("Cannot insert elements at root level");return b=this.parent.children.indexOf(this),k=this.parent.children.splice(b),m=this.parent.element(f,T,S),Array.prototype.push.apply(this.parent.children,k),m},E.prototype.insertAfter=function(f,T,S){var m,b,k;if(this.isRoot)throw new Error("Cannot insert elements at root level");return b=this.parent.children.indexOf(this),k=this.parent.children.splice(b+1),m=this.parent.element(f,T,S),Array.prototype.push.apply(this.parent.children,k),m},E.prototype.remove=function(){var f;if(this.isRoot)throw new Error("Cannot remove the root element");return f=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[f,f-f+1].concat([])),this.parent},E.prototype.node=function(f,T,S){var m,b;return f!=null&&(f=f.valueOf()),T||(T={}),T=T.valueOf(),p(T)||(b=[T,S],S=b[0],T=b[1]),m=new d(this,f,T),S!=null&&m.text(S),this.children.push(m),m},E.prototype.text=function(f){var T;return T=new o(this,f),this.children.push(T),this},E.prototype.cdata=function(f){var T;return T=new h(this,f),this.children.push(T),this},E.prototype.comment=function(f){var T;return T=new y(this,f),this.children.push(T),this},E.prototype.commentBefore=function(f){var T,S;return T=this.parent.children.indexOf(this),S=this.parent.children.splice(T),this.parent.comment(f),Array.prototype.push.apply(this.parent.children,S),this},E.prototype.commentAfter=function(f){var T,S;return T=this.parent.children.indexOf(this),S=this.parent.children.splice(T+1),this.parent.comment(f),Array.prototype.push.apply(this.parent.children,S),this},E.prototype.raw=function(f){var T;return T=new e(this,f),this.children.push(T),this},E.prototype.instruction=function(f,T){var S,m,b,k,C;if(f!=null&&(f=f.valueOf()),T!=null&&(T=T.valueOf()),Array.isArray(f))for(k=0,C=f.length;k<C;k++)S=f[k],this.instruction(S);else if(p(f))for(S in f)x.call(f,S)&&(m=f[S],this.instruction(S,m));else l(T)&&(T=T.apply()),b=new u(this,f,T),this.children.push(b);return this},E.prototype.instructionBefore=function(f,T){var S,m;return S=this.parent.children.indexOf(this),m=this.parent.children.splice(S),this.parent.instruction(f,T),Array.prototype.push.apply(this.parent.children,m),this},E.prototype.instructionAfter=function(f,T){var S,m;return S=this.parent.children.indexOf(this),m=this.parent.children.splice(S+1),this.parent.instruction(f,T),Array.prototype.push.apply(this.parent.children,m),this},E.prototype.declaration=function(f,T,S){var m,b;return m=this.document(),b=new i(m,f,T,S),m.children[0]instanceof i?m.children[0]=b:m.children.unshift(b),m.root()||m},E.prototype.doctype=function(f,T){var S,m,b,k,C,_,j,D,M,L;for(m=this.document(),b=new s(m,f,T),M=m.children,k=C=0,j=M.length;C<j;k=++C)if((S=M[k])instanceof s)return m.children[k]=b,b;for(L=m.children,k=_=0,D=L.length;_<D;k=++_)if(S=L[k],S.isRoot)return m.children.splice(k,0,b),b;return m.children.push(b),b},E.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},E.prototype.root=function(){var f;for(f=this;f;){if(f.isDocument)return f.rootObject;if(f.isRoot)return f;f=f.parent}},E.prototype.document=function(){var f;for(f=this;f;){if(f.isDocument)return f;f=f.parent}},E.prototype.end=function(f){return this.document().end(f)},E.prototype.prev=function(){var f;if((f=this.parent.children.indexOf(this))<1)throw new Error("Already at the first node");return this.parent.children[f-1]},E.prototype.next=function(){var f;if((f=this.parent.children.indexOf(this))===-1||f===this.parent.children.length-1)throw new Error("Already at the last node");return this.parent.children[f+1]},E.prototype.importDocument=function(f){var T;return T=f.root().clone(),T.parent=this,T.isRoot=!1,this.children.push(T),this},E.prototype.ele=function(f,T,S){return this.element(f,T,S)},E.prototype.nod=function(f,T,S){return this.node(f,T,S)},E.prototype.txt=function(f){return this.text(f)},E.prototype.dat=function(f){return this.cdata(f)},E.prototype.com=function(f){return this.comment(f)},E.prototype.ins=function(f,T){return this.instruction(f,T)},E.prototype.doc=function(){return this.document()},E.prototype.dec=function(f,T,S){return this.declaration(f,T,S)},E.prototype.dtd=function(f,T){return this.doctype(f,T)},E.prototype.e=function(f,T,S){return this.element(f,T,S)},E.prototype.n=function(f,T,S){return this.node(f,T,S)},E.prototype.t=function(f){return this.text(f)},E.prototype.d=function(f){return this.cdata(f)},E.prototype.c=function(f){return this.comment(f)},E.prototype.r=function(f){return this.raw(f)},E.prototype.i=function(f,T){return this.instruction(f,T)},E.prototype.u=function(){return this.up()},E.prototype.importXMLBuilder=function(f){return this.importDocument(f)},E}()}).call(void 0)},{"./Utility":214,"./XMLCData":216,"./XMLComment":217,"./XMLDeclaration":222,"./XMLDocType":223,"./XMLElement":226,"./XMLProcessingInstruction":228,"./XMLRaw":229,"./XMLText":233}],228:[function(n,A,v){"use strict";var h=n("babel-runtime/core-js/object/create"),y=function(i){return i&&i.__esModule?i:{default:i}}(h);(function(){var i,s=function(e,o){function r(){this.constructor=e}for(var l in o)d.call(o,l)&&(e[l]=o[l]);return r.prototype=o.prototype,e.prototype=new r,e.__super__=o.prototype,e},d={}.hasOwnProperty;i=n("./XMLNode"),A.exports=function(u){function e(o,r,l){if(e.__super__.constructor.call(this,o),r==null)throw new Error("Missing instruction target");this.target=this.stringify.insTarget(r),l&&(this.value=this.stringify.insValue(l))}return s(e,u),e.prototype.clone=function(){return(0,y.default)(this)},e.prototype.toString=function(o){return this.options.writer.set(o).processingInstruction(this)},e}(i)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],229:[function(n,A,v){"use strict";var h=n("babel-runtime/core-js/object/create"),y=function(i){return i&&i.__esModule?i:{default:i}}(h);(function(){var i,s=function(e,o){function r(){this.constructor=e}for(var l in o)d.call(o,l)&&(e[l]=o[l]);return r.prototype=o.prototype,e.prototype=new r,e.__super__=o.prototype,e},d={}.hasOwnProperty;i=n("./XMLNode"),A.exports=function(u){function e(o,r){if(e.__super__.constructor.call(this,o),r==null)throw new Error("Missing raw text");this.value=this.stringify.raw(r)}return s(e,u),e.prototype.clone=function(){return(0,y.default)(this)},e.prototype.toString=function(o){return this.options.writer.set(o).raw(this)},e}(i)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],230:[function(n,A,v){"use strict";(function(){var h,y,i,s,d,u,e,o,r,l,p,c,x,E=function(S,m){function b(){this.constructor=S}for(var k in m)f.call(m,k)&&(S[k]=m[k]);return b.prototype=m.prototype,S.prototype=new b,S.__super__=m.prototype,S},f={}.hasOwnProperty;e=n("./XMLDeclaration"),o=n("./XMLDocType"),h=n("./XMLCData"),y=n("./XMLComment"),r=n("./XMLElement"),p=n("./XMLRaw"),c=n("./XMLText"),l=n("./XMLProcessingInstruction"),i=n("./XMLDTDAttList"),s=n("./XMLDTDElement"),d=n("./XMLDTDEntity"),u=n("./XMLDTDNotation"),x=n("./XMLWriterBase"),A.exports=function(T){function S(m,b){S.__super__.constructor.call(this,b),this.stream=m}return E(S,T),S.prototype.document=function(m){var b,k,C,_,j,D,M,L;for(D=m.children,k=0,_=D.length;k<_;k++)b=D[k],b.isLastRootNode=!1;for(m.children[m.children.length-1].isLastRootNode=!0,M=m.children,L=[],C=0,j=M.length;C<j;C++)switch(b=M[C],!1){case!(b instanceof e):L.push(this.declaration(b));break;case!(b instanceof o):L.push(this.docType(b));break;case!(b instanceof y):L.push(this.comment(b));break;case!(b instanceof l):L.push(this.processingInstruction(b));break;default:L.push(this.element(b))}return L},S.prototype.attribute=function(m){return this.stream.write(" "+m.name+'="'+m.value+'"')},S.prototype.cdata=function(m,b){return this.stream.write(this.space(b)+"<![CDATA["+m.text+"]]>"+this.endline(m))},S.prototype.comment=function(m,b){return this.stream.write(this.space(b)+"<!-- "+m.text+" -->"+this.endline(m))},S.prototype.declaration=function(m,b){return this.stream.write(this.space(b)),this.stream.write('<?xml version="'+m.version+'"'),m.encoding!=null&&this.stream.write(' encoding="'+m.encoding+'"'),m.standalone!=null&&this.stream.write(' standalone="'+m.standalone+'"'),this.stream.write(this.spacebeforeslash+"?>"),this.stream.write(this.endline(m))},S.prototype.docType=function(m,b){var k,C,_,j;if(b||(b=0),this.stream.write(this.space(b)),this.stream.write("<!DOCTYPE "+m.root().name),m.pubID&&m.sysID?this.stream.write(' PUBLIC "'+m.pubID+'" "'+m.sysID+'"'):m.sysID&&this.stream.write(' SYSTEM "'+m.sysID+'"'),m.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(m)),j=m.children,C=0,_=j.length;C<_;C++)switch(k=j[C],!1){case!(k instanceof i):this.dtdAttList(k,b+1);break;case!(k instanceof s):this.dtdElement(k,b+1);break;case!(k instanceof d):this.dtdEntity(k,b+1);break;case!(k instanceof u):this.dtdNotation(k,b+1);break;case!(k instanceof h):this.cdata(k,b+1);break;case!(k instanceof y):this.comment(k,b+1);break;case!(k instanceof l):this.processingInstruction(k,b+1);break;default:throw new Error("Unknown DTD node type: "+k.constructor.name)}this.stream.write("]")}return this.stream.write(this.spacebeforeslash+">"),this.stream.write(this.endline(m))},S.prototype.element=function(m,b){var k,C,_,j,D,M,L,z;b||(b=0),z=this.space(b),this.stream.write(z+"<"+m.name),M=m.attributes;for(D in M)f.call(M,D)&&(k=M[D],this.attribute(k));if(m.children.length===0||m.children.every(function(W){return W.value===""}))this.allowEmpty?this.stream.write("></"+m.name+">"):this.stream.write(this.spacebeforeslash+"/>");else if(this.pretty&&m.children.length===1&&m.children[0].value!=null)this.stream.write(">"),this.stream.write(m.children[0].value),this.stream.write("</"+m.name+">");else{for(this.stream.write(">"+this.newline),L=m.children,_=0,j=L.length;_<j;_++)switch(C=L[_],!1){case!(C instanceof h):this.cdata(C,b+1);break;case!(C instanceof y):this.comment(C,b+1);break;case!(C instanceof r):this.element(C,b+1);break;case!(C instanceof p):this.raw(C,b+1);break;case!(C instanceof c):this.text(C,b+1);break;case!(C instanceof l):this.processingInstruction(C,b+1);break;default:throw new Error("Unknown XML node type: "+C.constructor.name)}this.stream.write(z+"</"+m.name+">")}return this.stream.write(this.endline(m))},S.prototype.processingInstruction=function(m,b){return this.stream.write(this.space(b)+"<?"+m.target),m.value&&this.stream.write(" "+m.value),this.stream.write(this.spacebeforeslash+"?>"+this.endline(m))},S.prototype.raw=function(m,b){return this.stream.write(this.space(b)+m.value+this.endline(m))},S.prototype.text=function(m,b){return this.stream.write(this.space(b)+m.value+this.endline(m))},S.prototype.dtdAttList=function(m,b){return this.stream.write(this.space(b)+"<!ATTLIST "+m.elementName+" "+m.attributeName+" "+m.attributeType),m.defaultValueType!=="#DEFAULT"&&this.stream.write(" "+m.defaultValueType),m.defaultValue&&this.stream.write(' "'+m.defaultValue+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(m))},S.prototype.dtdElement=function(m,b){return this.stream.write(this.space(b)+"<!ELEMENT "+m.name+" "+m.value),this.stream.write(this.spacebeforeslash+">"+this.endline(m))},S.prototype.dtdEntity=function(m,b){return this.stream.write(this.space(b)+"<!ENTITY"),m.pe&&this.stream.write(" %"),this.stream.write(" "+m.name),m.value?this.stream.write(' "'+m.value+'"'):(m.pubID&&m.sysID?this.stream.write(' PUBLIC "'+m.pubID+'" "'+m.sysID+'"'):m.sysID&&this.stream.write(' SYSTEM "'+m.sysID+'"'),m.nData&&this.stream.write(" NDATA "+m.nData)),this.stream.write(this.spacebeforeslash+">"+this.endline(m))},S.prototype.dtdNotation=function(m,b){return this.stream.write(this.space(b)+"<!NOTATION "+m.name),m.pubID&&m.sysID?this.stream.write(' PUBLIC "'+m.pubID+'" "'+m.sysID+'"'):m.pubID?this.stream.write(' PUBLIC "'+m.pubID+'"'):m.sysID&&this.stream.write(' SYSTEM "'+m.sysID+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(m))},S.prototype.endline=function(m){return m.isLastRootNode?"":this.newline},S}(x)}).call(void 0)},{"./XMLCData":216,"./XMLComment":217,"./XMLDTDAttList":218,"./XMLDTDElement":219,"./XMLDTDEntity":220,"./XMLDTDNotation":221,"./XMLDeclaration":222,"./XMLDocType":223,"./XMLElement":226,"./XMLProcessingInstruction":228,"./XMLRaw":229,"./XMLText":233,"./XMLWriterBase":234}],231:[function(n,A,v){"use strict";(function(){var h,y,i,s,d,u,e,o,r,l,p,c,x,E=function(S,m){function b(){this.constructor=S}for(var k in m)f.call(m,k)&&(S[k]=m[k]);return b.prototype=m.prototype,S.prototype=new b,S.__super__=m.prototype,S},f={}.hasOwnProperty;e=n("./XMLDeclaration"),o=n("./XMLDocType"),h=n("./XMLCData"),y=n("./XMLComment"),r=n("./XMLElement"),p=n("./XMLRaw"),c=n("./XMLText"),l=n("./XMLProcessingInstruction"),i=n("./XMLDTDAttList"),s=n("./XMLDTDElement"),d=n("./XMLDTDEntity"),u=n("./XMLDTDNotation"),x=n("./XMLWriterBase"),A.exports=function(T){function S(m){S.__super__.constructor.call(this,m)}return E(S,T),S.prototype.document=function(m){var b,k,C,_,j;for(this.textispresent=!1,_="",j=m.children,k=0,C=j.length;k<C;k++)b=j[k],_+=function(){switch(!1){case!(b instanceof e):return this.declaration(b);case!(b instanceof o):return this.docType(b);case!(b instanceof y):return this.comment(b);case!(b instanceof l):return this.processingInstruction(b);default:return this.element(b,0)}}.call(this);return this.pretty&&_.slice(-this.newline.length)===this.newline&&(_=_.slice(0,-this.newline.length)),_},S.prototype.attribute=function(m){return" "+m.name+'="'+m.value+'"'},S.prototype.cdata=function(m,b){return this.space(b)+"<![CDATA["+m.text+"]]>"+this.newline},S.prototype.comment=function(m,b){return this.space(b)+"<!-- "+m.text+" -->"+this.newline},S.prototype.declaration=function(m,b){var k;return k=this.space(b),k+='<?xml version="'+m.version+'"',m.encoding!=null&&(k+=' encoding="'+m.encoding+'"'),m.standalone!=null&&(k+=' standalone="'+m.standalone+'"'),k+=this.spacebeforeslash+"?>",k+=this.newline},S.prototype.docType=function(m,b){var k,C,_,j,D;if(b||(b=0),j=this.space(b),j+="<!DOCTYPE "+m.root().name,m.pubID&&m.sysID?j+=' PUBLIC "'+m.pubID+'" "'+m.sysID+'"':m.sysID&&(j+=' SYSTEM "'+m.sysID+'"'),m.children.length>0){for(j+=" [",j+=this.newline,D=m.children,C=0,_=D.length;C<_;C++)k=D[C],j+=function(){switch(!1){case!(k instanceof i):return this.dtdAttList(k,b+1);case!(k instanceof s):return this.dtdElement(k,b+1);case!(k instanceof d):return this.dtdEntity(k,b+1);case!(k instanceof u):return this.dtdNotation(k,b+1);case!(k instanceof h):return this.cdata(k,b+1);case!(k instanceof y):return this.comment(k,b+1);case!(k instanceof l):return this.processingInstruction(k,b+1);default:throw new Error("Unknown DTD node type: "+k.constructor.name)}}.call(this);j+="]"}return j+=this.spacebeforeslash+">",j+=this.newline},S.prototype.element=function(m,b){var k,C,_,j,D,M,L,z,W,G,Z,U,ee;b||(b=0),ee=!1,this.textispresent?(this.newline="",this.pretty=!1):(this.newline=this.newlinedefault,this.pretty=this.prettydefault),U=this.space(b),z="",z+=U+"<"+m.name,W=m.attributes;for(L in W)f.call(W,L)&&(k=W[L],z+=this.attribute(k));if(m.children.length===0||m.children.every(function($){return $.value===""}))this.allowEmpty?z+="></"+m.name+">"+this.newline:z+=this.spacebeforeslash+"/>"+this.newline;else if(this.pretty&&m.children.length===1&&m.children[0].value!=null)z+=">",z+=m.children[0].value,z+="</"+m.name+">"+this.newline;else{if(this.dontprettytextnodes){for(G=m.children,_=0,D=G.length;_<D;_++)if(C=G[_],C.value!=null){this.textispresent++,ee=!0;break}}for(this.textispresent&&(this.newline="",this.pretty=!1,U=this.space(b)),z+=">"+this.newline,Z=m.children,j=0,M=Z.length;j<M;j++)C=Z[j],z+=function(){switch(!1){case!(C instanceof h):return this.cdata(C,b+1);case!(C instanceof y):return this.comment(C,b+1);case!(C instanceof r):return this.element(C,b+1);case!(C instanceof p):return this.raw(C,b+1);case!(C instanceof c):return this.text(C,b+1);case!(C instanceof l):return this.processingInstruction(C,b+1);default:throw new Error("Unknown XML node type: "+C.constructor.name)}}.call(this);ee&&this.textispresent--,this.textispresent||(this.newline=this.newlinedefault,this.pretty=this.prettydefault),z+=U+"</"+m.name+">"+this.newline}return z},S.prototype.processingInstruction=function(m,b){var k;return k=this.space(b)+"<?"+m.target,m.value&&(k+=" "+m.value),k+=this.spacebeforeslash+"?>"+this.newline},S.prototype.raw=function(m,b){return this.space(b)+m.value+this.newline},S.prototype.text=function(m,b){return this.space(b)+m.value+this.newline},S.prototype.dtdAttList=function(m,b){var k;return k=this.space(b)+"<!ATTLIST "+m.elementName+" "+m.attributeName+" "+m.attributeType,m.defaultValueType!=="#DEFAULT"&&(k+=" "+m.defaultValueType),m.defaultValue&&(k+=' "'+m.defaultValue+'"'),k+=this.spacebeforeslash+">"+this.newline},S.prototype.dtdElement=function(m,b){return this.space(b)+"<!ELEMENT "+m.name+" "+m.value+this.spacebeforeslash+">"+this.newline},S.prototype.dtdEntity=function(m,b){var k;return k=this.space(b)+"<!ENTITY",m.pe&&(k+=" %"),k+=" "+m.name,m.value?k+=' "'+m.value+'"':(m.pubID&&m.sysID?k+=' PUBLIC "'+m.pubID+'" "'+m.sysID+'"':m.sysID&&(k+=' SYSTEM "'+m.sysID+'"'),m.nData&&(k+=" NDATA "+m.nData)),k+=this.spacebeforeslash+">"+this.newline},S.prototype.dtdNotation=function(m,b){var k;return k=this.space(b)+"<!NOTATION "+m.name,m.pubID&&m.sysID?k+=' PUBLIC "'+m.pubID+'" "'+m.sysID+'"':m.pubID?k+=' PUBLIC "'+m.pubID+'"':m.sysID&&(k+=' SYSTEM "'+m.sysID+'"'),k+=this.spacebeforeslash+">"+this.newline},S.prototype.openNode=function(m,b){var k,C,_,j;if(b||(b=0),m instanceof r){_=this.space(b)+"<"+m.name,j=m.attributes;for(C in j)f.call(j,C)&&(k=j[C],_+=this.attribute(k));return _+=(m.children?">":"/>")+this.newline}return _=this.space(b)+"<!DOCTYPE "+m.rootNodeName,m.pubID&&m.sysID?_+=' PUBLIC "'+m.pubID+'" "'+m.sysID+'"':m.sysID&&(_+=' SYSTEM "'+m.sysID+'"'),_+=(m.children?" [":">")+this.newline},S.prototype.closeNode=function(m,b){switch(b||(b=0),!1){case!(m instanceof r):return this.space(b)+"</"+m.name+">"+this.newline;case!(m instanceof o):return this.space(b)+"]>"+this.newline}},S}(x)}).call(void 0)},{"./XMLCData":216,"./XMLComment":217,"./XMLDTDAttList":218,"./XMLDTDElement":219,"./XMLDTDEntity":220,"./XMLDTDNotation":221,"./XMLDeclaration":222,"./XMLDocType":223,"./XMLElement":226,"./XMLProcessingInstruction":228,"./XMLRaw":229,"./XMLText":233,"./XMLWriterBase":234}],232:[function(n,A,v){"use strict";(function(){var h=function(s,d){return function(){return s.apply(d,arguments)}},y={}.hasOwnProperty;A.exports=function(){function i(s){this.assertLegalChar=h(this.assertLegalChar,this);var d,u,e;s||(s={}),this.noDoubleEncoding=s.noDoubleEncoding,u=s.stringify||{};for(d in u)y.call(u,d)&&(e=u[d],this[d]=e)}return i.prototype.eleName=function(s){return s=""+s||"",this.assertLegalChar(s)},i.prototype.eleText=function(s){return s=""+s||"",this.assertLegalChar(this.elEscape(s))},i.prototype.cdata=function(s){return s=""+s||"",s=s.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(s)},i.prototype.comment=function(s){if(s=""+s||"",s.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+s);return this.assertLegalChar(s)},i.prototype.raw=function(s){return""+s||""},i.prototype.attName=function(s){return s=""+s||""},i.prototype.attValue=function(s){return s=""+s||"",this.attEscape(s)},i.prototype.insTarget=function(s){return""+s||""},i.prototype.insValue=function(s){if(s=""+s||"",s.match(/\?>/))throw new Error("Invalid processing instruction value: "+s);return s},i.prototype.xmlVersion=function(s){if(s=""+s||"",!s.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+s);return s},i.prototype.xmlEncoding=function(s){if(s=""+s||"",!s.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+s);return s},i.prototype.xmlStandalone=function(s){return s?"yes":"no"},i.prototype.dtdPubID=function(s){return""+s||""},i.prototype.dtdSysID=function(s){return""+s||""},i.prototype.dtdElementValue=function(s){return""+s||""},i.prototype.dtdAttType=function(s){return""+s||""},i.prototype.dtdAttDefault=function(s){return s!=null?""+s||"":s},i.prototype.dtdEntityValue=function(s){return""+s||""},i.prototype.dtdNData=function(s){return""+s||""},i.prototype.convertAttKey="@",i.prototype.convertPIKey="?",i.prototype.convertTextKey="#text",i.prototype.convertCDataKey="#cdata",i.prototype.convertCommentKey="#comment",i.prototype.convertRawKey="#raw",i.prototype.assertLegalChar=function(s){var d;if(d=s.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/))throw new Error("Invalid character in string: "+s+" at index "+d.index);return s},i.prototype.elEscape=function(s){var d;return d=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,s.replace(d,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
")},i.prototype.attEscape=function(s){var d;return d=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,s.replace(d,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
")},i}()}).call(void 0)},{}],233:[function(n,A,v){"use strict";var h=n("babel-runtime/core-js/object/create"),y=function(i){return i&&i.__esModule?i:{default:i}}(h);(function(){var i,s=function(e,o){function r(){this.constructor=e}for(var l in o)d.call(o,l)&&(e[l]=o[l]);return r.prototype=o.prototype,e.prototype=new r,e.__super__=o.prototype,e},d={}.hasOwnProperty;i=n("./XMLNode"),A.exports=function(u){function e(o,r){if(e.__super__.constructor.call(this,o),r==null)throw new Error("Missing element text");this.value=this.stringify.eleText(r)}return s(e,u),e.prototype.clone=function(){return(0,y.default)(this)},e.prototype.toString=function(o){return this.options.writer.set(o).text(this)},e}(i)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],234:[function(n,A,v){"use strict";(function(){var h={}.hasOwnProperty;A.exports=function(){function y(i){var s,d,u,e,o,r,l,p,c;i||(i={}),this.pretty=i.pretty||!1,this.allowEmpty=(d=i.allowEmpty)!=null&&d,this.pretty?(this.indent=(u=i.indent)!=null?u:" ",this.newline=(e=i.newline)!=null?e:`
|
||
`,this.offset=(o=i.offset)!=null?o:0,this.dontprettytextnodes=(r=i.dontprettytextnodes)!=null?r:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash=(l=i.spacebeforeslash)!=null?l:"",this.spacebeforeslash===!0&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,p=i.writer||{};for(s in p)h.call(p,s)&&(c=p[s],this[s]=c)}return y.prototype.set=function(i){var s,d,u;i||(i={}),"pretty"in i&&(this.pretty=i.pretty),"allowEmpty"in i&&(this.allowEmpty=i.allowEmpty),this.pretty?(this.indent="indent"in i?i.indent:" ",this.newline="newline"in i?i.newline:`
|
||
`,this.offset="offset"in i?i.offset:0,this.dontprettytextnodes="dontprettytextnodes"in i?i.dontprettytextnodes:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash="spacebeforeslash"in i?i.spacebeforeslash:"",this.spacebeforeslash===!0&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,d=i.writer||{};for(s in d)h.call(d,s)&&(u=d[s],this[s]=u);return this},y.prototype.space=function(i){var s;return this.pretty?(s=(i||0)+this.offset+1,s>0?new Array(s).join(this.indent):""):""},y}()}).call(void 0)},{}],235:[function(n,A,v){"use strict";(function(){var h,y,i,s,d,u,e;e=n("./Utility"),d=e.assign,u=e.isFunction,h=n("./XMLDocument"),y=n("./XMLDocumentCB"),s=n("./XMLStringWriter"),i=n("./XMLStreamWriter"),A.exports.create=function(o,r,l,p){var c,x;if(o==null)throw new Error("Root element needs a name");return p=d({},r,l,p),c=new h(p),x=c.element(o),p.headless||(c.declaration(p),p.pubID==null&&p.sysID==null||c.doctype(p)),x},A.exports.begin=function(o,r,l){var p;return u(o)&&(p=[o,r],r=p[0],l=p[1],o={}),r?new y(o,r,l):new h(o)},A.exports.stringWriter=function(o){return new s(o)},A.exports.streamWriter=function(o,r){return new i(o,r)}}).call(void 0)},{"./Utility":214,"./XMLDocument":224,"./XMLDocumentCB":225,"./XMLStreamWriter":230,"./XMLStringWriter":231}],236:[function(n,A,v){function h(){for(var i={},s=0;s<arguments.length;s++){var d=arguments[s];for(var u in d)y.call(d,u)&&(i[u]=d[u])}return i}A.exports=h;var y=Object.prototype.hasOwnProperty},{}],237:[function(n,A,v){"use strict";function h(p,c,x){s.isBuffer(c)||(c=new s(c)),s.isBuffer(x)||(x=new s(x)),c.length>r?c=p(c):c.length<r&&(c=s.concat([c,l],r));for(var E=new s(r),f=new s(r),T=0;T<r;T++)E[T]=54^c[T],f[T]=92^c[T];var S=p(s.concat([E,x]));return p(s.concat([f,S]))}function y(p,c){p=p||"sha1";var x=o[p],E=[],f=0;return x||i("algorithm:",p,"is not yet supported"),{update:function(S){return s.isBuffer(S)||(S=new s(S)),E.push(S),f+=S.length,this},digest:function(S){var m=s.concat(E),b=c?h(x,c,m):x(m);return E=null,S?b.toString(S):b}}}function i(){var p=[].slice.call(arguments).join(" ");throw new Error([p,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
|
||
`))}var s=n("buffer").Buffer,d=n("./sha"),u=n("./sha256"),e=n("./md5"),o={sha1:d,sha256:u,md5:e},r=64,l=new s(r);l.fill(0),v.createHash=function(p){return y(p)},v.createHmac=function(p,c){return y(p,c)},function(p,c){for(var x in p)c(p[x],x)}(["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],function(p){v[p]=function(){i("sorry,",p,"is not implemented yet")}})},{"./md5":239,"./sha":240,"./sha256":241,buffer:38}],238:[function(n,A,v){"use strict";function h(o,r){if(o.length%d!=0){var l=o.length+(d-o.length%d);o=s.concat([o,u],l)}for(var p=[],c=r?o.readInt32BE:o.readInt32LE,x=0;x<o.length;x+=d)p.push(c.call(o,x));return p}function y(o,r,l){for(var p=new s(r),c=l?p.writeInt32BE:p.writeInt32LE,x=0;x<o.length;x++)c.call(p,o[x],4*x,!0);return p}function i(o,r,l,p){return s.isBuffer(o)||(o=new s(o)),y(r(h(o,p),o.length*e),l,p)}var s=n("buffer").Buffer,d=4,u=new s(d);u.fill(0);var e=8;A.exports={hash:i}},{buffer:38}],239:[function(n,A,v){"use strict";function h(l,p){l[p>>5]|=128<<p%32,l[14+(p+64>>>9<<4)]=p;for(var c=1732584193,x=-271733879,E=-1732584194,f=271733878,T=0;T<l.length;T+=16){var S=c,m=x,b=E,k=f;c=i(c,x,E,f,l[T+0],7,-680876936),f=i(f,c,x,E,l[T+1],12,-389564586),E=i(E,f,c,x,l[T+2],17,606105819),x=i(x,E,f,c,l[T+3],22,-1044525330),c=i(c,x,E,f,l[T+4],7,-176418897),f=i(f,c,x,E,l[T+5],12,1200080426),E=i(E,f,c,x,l[T+6],17,-1473231341),x=i(x,E,f,c,l[T+7],22,-45705983),c=i(c,x,E,f,l[T+8],7,1770035416),f=i(f,c,x,E,l[T+9],12,-1958414417),E=i(E,f,c,x,l[T+10],17,-42063),x=i(x,E,f,c,l[T+11],22,-1990404162),c=i(c,x,E,f,l[T+12],7,1804603682),f=i(f,c,x,E,l[T+13],12,-40341101),E=i(E,f,c,x,l[T+14],17,-1502002290),x=i(x,E,f,c,l[T+15],22,1236535329),c=s(c,x,E,f,l[T+1],5,-165796510),f=s(f,c,x,E,l[T+6],9,-1069501632),E=s(E,f,c,x,l[T+11],14,643717713),x=s(x,E,f,c,l[T+0],20,-373897302),c=s(c,x,E,f,l[T+5],5,-701558691),f=s(f,c,x,E,l[T+10],9,38016083),E=s(E,f,c,x,l[T+15],14,-660478335),x=s(x,E,f,c,l[T+4],20,-405537848),c=s(c,x,E,f,l[T+9],5,568446438),f=s(f,c,x,E,l[T+14],9,-1019803690),E=s(E,f,c,x,l[T+3],14,-187363961),x=s(x,E,f,c,l[T+8],20,1163531501),c=s(c,x,E,f,l[T+13],5,-1444681467),f=s(f,c,x,E,l[T+2],9,-51403784),E=s(E,f,c,x,l[T+7],14,1735328473),x=s(x,E,f,c,l[T+12],20,-1926607734),c=d(c,x,E,f,l[T+5],4,-378558),f=d(f,c,x,E,l[T+8],11,-2022574463),E=d(E,f,c,x,l[T+11],16,1839030562),x=d(x,E,f,c,l[T+14],23,-35309556),c=d(c,x,E,f,l[T+1],4,-1530992060),f=d(f,c,x,E,l[T+4],11,1272893353),E=d(E,f,c,x,l[T+7],16,-155497632),x=d(x,E,f,c,l[T+10],23,-1094730640),c=d(c,x,E,f,l[T+13],4,681279174),f=d(f,c,x,E,l[T+0],11,-358537222),E=d(E,f,c,x,l[T+3],16,-722521979),x=d(x,E,f,c,l[T+6],23,76029189),c=d(c,x,E,f,l[T+9],4,-640364487),f=d(f,c,x,E,l[T+12],11,-421815835),E=d(E,f,c,x,l[T+15],16,530742520),x=d(x,E,f,c,l[T+2],23,-995338651),c=u(c,x,E,f,l[T+0],6,-198630844),f=u(f,c,x,E,l[T+7],10,1126891415),E=u(E,f,c,x,l[T+14],15,-1416354905),x=u(x,E,f,c,l[T+5],21,-57434055),c=u(c,x,E,f,l[T+12],6,1700485571),f=u(f,c,x,E,l[T+3],10,-1894986606),E=u(E,f,c,x,l[T+10],15,-1051523),x=u(x,E,f,c,l[T+1],21,-2054922799),c=u(c,x,E,f,l[T+8],6,1873313359),f=u(f,c,x,E,l[T+15],10,-30611744),E=u(E,f,c,x,l[T+6],15,-1560198380),x=u(x,E,f,c,l[T+13],21,1309151649),c=u(c,x,E,f,l[T+4],6,-145523070),f=u(f,c,x,E,l[T+11],10,-1120210379),E=u(E,f,c,x,l[T+2],15,718787259),x=u(x,E,f,c,l[T+9],21,-343485551),c=e(c,S),x=e(x,m),E=e(E,b),f=e(f,k)}return Array(c,x,E,f)}function y(l,p,c,x,E,f){return e(o(e(e(p,l),e(x,f)),E),c)}function i(l,p,c,x,E,f,T){return y(p&c|~p&x,l,p,E,f,T)}function s(l,p,c,x,E,f,T){return y(p&x|c&~x,l,p,E,f,T)}function d(l,p,c,x,E,f,T){return y(p^c^x,l,p,E,f,T)}function u(l,p,c,x,E,f,T){return y(c^(p|~x),l,p,E,f,T)}function e(l,p){var c=(65535&l)+(65535&p);return(l>>16)+(p>>16)+(c>>16)<<16|65535&c}function o(l,p){return l<<p|l>>>32-p}var r=n("./helpers");A.exports=function(l){return r.hash(l,h,16)}},{"./helpers":238}],240:[function(n,A,v){"use strict";function h(e,o){e[o>>5]|=128<<24-o%32,e[15+(o+64>>9<<4)]=o;for(var r=Array(80),l=1732584193,p=-271733879,c=-1732584194,x=271733878,E=-1009589776,f=0;f<e.length;f+=16){for(var T=l,S=p,m=c,b=x,k=E,C=0;C<80;C++){r[C]=C<16?e[f+C]:d(r[C-3]^r[C-8]^r[C-14]^r[C-16],1);var _=s(s(d(l,5),y(C,p,c,x)),s(s(E,r[C]),i(C)));E=x,x=c,c=d(p,30),p=l,l=_}l=s(l,T),p=s(p,S),c=s(c,m),x=s(x,b),E=s(E,k)}return Array(l,p,c,x,E)}function y(e,o,r,l){return e<20?o&r|~o&l:e<40?o^r^l:e<60?o&r|o&l|r&l:o^r^l}function i(e){return e<20?1518500249:e<40?1859775393:e<60?-1894007588:-899497514}function s(e,o){var r=(65535&e)+(65535&o);return(e>>16)+(o>>16)+(r>>16)<<16|65535&r}function d(e,o){return e<<o|e>>>32-o}var u=n("./helpers");A.exports=function(e){return u.hash(e,h,20,!0)}},{"./helpers":238}],241:[function(n,A,v){"use strict";var h=n("./helpers"),y=function(x,E){var f=(65535&x)+(65535&E);return(x>>16)+(E>>16)+(f>>16)<<16|65535&f},i=function(x,E){return x>>>E|x<<32-E},s=function(x,E){return x>>>E},d=function(x,E,f){return x&E^~x&f},u=function(x,E,f){return x&E^x&f^E&f},e=function(x){return i(x,2)^i(x,13)^i(x,22)},o=function(x){return i(x,6)^i(x,11)^i(x,25)},r=function(x){return i(x,7)^i(x,18)^s(x,3)},l=function(x){return i(x,17)^i(x,19)^s(x,10)},p=function(x,E){var f,T,S,m,b,k,C,_,j,D,M,L,z=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),W=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),G=new Array(64);x[E>>5]|=128<<24-E%32,x[15+(E+64>>9<<4)]=E;for(var j=0;j<x.length;j+=16){f=W[0],T=W[1],S=W[2],m=W[3],b=W[4],k=W[5],C=W[6],_=W[7];for(var D=0;D<64;D++)G[D]=D<16?x[D+j]:y(y(y(l(G[D-2]),G[D-7]),r(G[D-15])),G[D-16]),M=y(y(y(y(_,o(b)),d(b,k,C)),z[D]),G[D]),L=y(e(f),u(f,T,S)),_=C,C=k,k=b,b=y(m,M),m=S,S=T,T=f,f=y(M,L);W[0]=y(f,W[0]),W[1]=y(T,W[1]),W[2]=y(S,W[2]),W[3]=y(m,W[3]),W[4]=y(b,W[4]),W[5]=y(k,W[5]),W[6]=y(C,W[6]),W[7]=y(_,W[7])}return W};A.exports=function(c){return h.hash(c,p,32,!0)}},{"./helpers":238}],242:[function(n,A,v){(function(h){"use strict";function y(p){return p&&p.__esModule?p:{default:p}}var i=n("babel-runtime/core-js/object/create"),s=y(i),d=n("babel-runtime/helpers/classCallCheck"),u=y(d),e=n("babel-runtime/helpers/createClass"),o=y(e),r=n("babel-runtime/helpers/typeof"),l=y(r);!function(p){if((v===void 0?"undefined":(0,l.default)(v))==="object"&&A!==void 0)A.exports=p();else if(typeof pe=="function"&&pe.amd)pe([],p);else{var c;c=typeof window!="undefined"?window:h!==void 0?h:typeof self!="undefined"?self:this,c.mime=p()}}(function(){return function p(c,x,E){function f(m,b){if(!x[m]){if(!c[m]){var k=typeof n=="function"&&n;if(!b&&k)return k(m,!0);if(T)return T(m,!0);var C=new Error("Cannot find module '"+m+"'");throw C.code="MODULE_NOT_FOUND",C}var _=x[m]={exports:{}};c[m][0].call(_.exports,function(j){var D=c[m][1][j];return f(D||j)},_,_.exports,p,c,x,E)}return x[m].exports}for(var T=typeof n=="function"&&n,S=0;S<E.length;S++)f(E[S]);return f}({1:[function(p,c,x){var E=function(){function f(){(0,u.default)(this,f),this._types=(0,s.default)(null),this._extensions=(0,s.default)(null);for(var T=0;T<arguments.length;T++)this.define(arguments[T])}return(0,o.default)(f,[{key:"define",value:function(S,m){for(var b in S){for(var k=S[b],C=0;C<k.length;C++){var _=k[C];if(!m&&_ in this._types)throw new Error('Attempt to change mapping for "'+_+'" extension from "'+this._types[_]+'" to "'+b+'". Pass `force=true` to allow this, otherwise remove "'+_+'" from the list of extensions for "'+b+'".');this._types[_]=b}!m&&this._extensions[b]||(this._extensions[b]=k[0])}}},{key:"getType",value:function(S){S=String(S);var m=S.replace(/^.*[\/\\]/,"").toLowerCase(),b=m.replace(/^.*\./,"").toLowerCase(),k=m.length<S.length;return(b.length<m.length-1||!k)&&this._types[b]||null}},{key:"getExtension",value:function(S){return(S=/^\s*([^;\s]*)/.test(S)&&RegExp.$1)&&this._extensions[S.toLowerCase()]||null}}]),f}();c.exports=E},{}],2:[function(p,c,x){var E=p("./Mime");c.exports=new E(p("./types/standard"),p("./types/other"))},{"./Mime":1,"./types/other":3,"./types/standard":4}],3:[function(p,c,x){c.exports={"application/prs.cww":["cww"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["xfdf"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["mpp","mpt"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":[],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":[],"application/x-bittorrent":["torrent"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-otf":[],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-ttf":["ttf","ttc"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-iso9660-image":[],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":[],"application/x-msdownload":["com","bat"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["wmf","emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":[],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":[],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":[],"audio/x-wav":[],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":[],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/x-3ds":["3ds"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":[],"image/x-pcx":["pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["mts"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":[],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]}},{}],4:[function(p,c,x){c.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomsvc+xml":["atomsvc"],"application/bdoc":["bdoc"],"application/ccxml+xml":["ccxml"],"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"],"application/emma+xml":["emma"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/font-tdpfr":["pfr"],"application/font-woff":["woff"],"application/font-woff2":["woff2"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"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/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/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"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/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/pskc+xml":["pskcxml"],"application/rdf+xml":["rdf"],"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/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/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"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/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/voicexml+xml":["vxml"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-diff+xml":["xdf"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"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":[],"audio/adpcm":["adp"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/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":[],"audio/webm":["weba"],"audio/xm":["xm"],"font/otf":["otf"],"image/apng":["apng"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/g3fax":["g3"],"image/gif":["gif"],"image/ief":["ief"],"image/jpeg":["jpeg","jpg","jpe"],"image/ktx":["ktx"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/tiff":["tiff","tif"],"image/webp":["webp"],"message/rfc822":["eml","mime"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["x3db","x3dbz"],"model/x3d+vrml":["x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/hjson":["hjson"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":[],"text/sgml":["sgml","sgm"],"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":[],"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"]}},{}]},{},[2])(2)})}).call(this,typeof Ae!="undefined"?Ae:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"babel-runtime/core-js/object/create":19,"babel-runtime/helpers/classCallCheck":30,"babel-runtime/helpers/createClass":31,"babel-runtime/helpers/typeof":32}],243:[function(n,A,v){"use strict";v.encodeURIComponent=function(h){try{return encodeURIComponent(h)}catch(y){return h}},v.escape=n("escape-html"),v.timestamp=function(h){if(h){var y=h;return typeof y=="string"&&(y=Number(y)),String(h).length===10&&(y*=1e3),new Date(y)}return Math.round(Date.now()/1e3)}},{"escape-html":157}],244:[function(n,A,v){(function(h,y){"use strict";function i(C){return C&&C.__esModule?C:{default:C}}function s(C,_){return C===void 0?_:C}function d(C,_){return function(j,D,M){if(j)return _(j);C({data:D,status:M.statusCode,headers:M.headers,res:M})}}var u,e=n("babel-runtime/core-js/json/stringify"),o=i(e),r=n("babel-runtime/helpers/typeof"),l=i(r),p=n("util"),c=n("url"),x=n("http"),E=n("https"),f=n("debug")("urllib"),T=n("humanize-ms"),S=0,m=Math.pow(2,31)-10,b=/^https?:\/\//i;v.TIMEOUTS=[T("300s"),T("300s")];var k=["json","text"];v.request=function(C,_,j){return arguments.length===2&&typeof _=="function"&&(j=_,_=null),typeof j=="function"?v.requestWithCallback(C,_,j):(u||(u=n("any-promise")),new u(function(D,M){v.requestWithCallback(C,_,d(D,M))}))},v.requestWithCallback=function(C,_,j){function D(){ce&&(clearTimeout(ce),ce=null)}function M(){O&&(clearTimeout(O),O=null)}function L(oe,ye,xe){if(M(),!j)return console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),$,h.pid,te.method,C),void(oe&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
|
||
stack: %s`,Date(),$,h.pid,oe.name,oe.message,oe.stack));var Ee=j;j=null;var we={};if(xe&&(w=xe.statusCode,we=xe.headers),w===401&&we["www-authenticate"]&&(!_.headers||!_.headers.Authorization)&&_.digestAuth){var Oe=we["www-authenticate"];if(Oe.indexOf("Digest ")>=0)return f("Request#%d %s: got digest auth header WWW-Authenticate: %s",$,C,Oe),_.headers=_.headers||{},_.headers.Authorization=digestAuthHeader(te.method,te.path,Oe,_.digestAuth),f("Request#%d %s: auth with digest header: %s",$,C,_.headers.Authorization),xe.headers["set-cookie"]&&(_.headers.Cookie=xe.headers["set-cookie"].join(";")),v.requestWithCallback(C,_,Ee)}var Te=Date.now()-I;le&&(le.contentDownload=Te),f("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",Te,g,w,te.method,te.host,te.path,P,le);var ke={status:w,statusCode:w,headers:we,size:g,aborted:V,rt:Te,keepAliveSocket:P,data:ye,requestUrls:_.requestUrls,timing:le,remoteAddress:K,remotePort:fe};if(oe){var Ie="";Y&&typeof Y.getCurrentStatus=="function"&&(Ie=", agent status: "+(0,o.default)(Y.getCurrentStatus())),oe.message+=", "+te.method+" "+C+" "+w+" (connected: "+a+", keepalive socket: "+P+Ie+`)
|
||
headers: `+(0,o.default)(we),oe.data=ye,oe.path=te.path,oe.status=w,oe.headers=we,oe.res=ke}Ee(oe,ye,_.streaming?xe:ke),_.emitter&&(q.url=C,q.socket=he&&he.connection,q.options=te,q.size=re,_.emitter.emit("response",{requestId:$,error:oe,ctx:_.ctx,req:q,res:ke}))}function z(oe){var ye=null;if(_.followRedirect&&statuses.redirect[oe.statusCode]){_._followRedirectCount=(_._followRedirectCount||0)+1;var xe=oe.headers.location;if(xe){if(!(_._followRedirectCount>_.maxRedirects)){var Ee=_.formatRedirectUrl?_.formatRedirectUrl(C,xe):c.resolve(C,xe);f("Request#%d %s: `redirected` from %s to %s",$,te.path,C,Ee),M(),_.headers&&_.headers.Host&&b.test(xe)&&(_.headers.Host=null);var we=j;return j=null,v.requestWithCallback(Ee,_,we),{redirect:!0,error:null}}ye=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+C),ye.name="MaxRedirectError"}else ye=new Error("Got statusCode "+oe.statusCode+" but cannot resolve next location from headers"),ye.name="FollowRedirectError"}return{redirect:!1,error:ye}}function W(oe,ye,xe){return xe(null,ye,oe.headers["content-encoding"])}function G(oe){if(le&&(le.waiting=Date.now()-I),f("Request#%d %s `req response` event emit: status %d, headers: %j",$,C,oe.statusCode,oe.headers),_.streaming){var ye=z(oe);return ye.redirect?void oe.resume():ye.error?(oe.resume(),L(ye.error,null,oe)):L(null,null,oe)}if(oe.on("close",function(){f("Request#%d %s: `res close` event emit, total size %d",$,C,g)}),oe.on("error",function(){f("Request#%d %s: `res error` event emit, total size %d",$,C,g)}),oe.on("aborted",function(){V=!0,f("Request#%d %s: `res aborted` event emit, total size %d",$,C,g)}),me){var ye=z(oe);return ye.redirect?void oe.resume():ye.error?(oe.resume(),me.end(),L(ye.error,null,oe)):(_.consumeWriteStream===!1?oe.on("end",L.bind(null,null,null,oe)):isNode010||isNode012?first([[me,"close"],[oe,"aborted"]],function(we,Oe,Te){f("Request#%d %s: writeStream or res %s event emitted",$,C,Te),L(t||null,null,oe)}):me.on("close",function(){f("Request#%d %s: writeStream close event emitted",$,C),L(t||null,null,oe)}),oe.pipe(me))}var xe=[];oe.on("data",function(Ee){f("Request#%d %s: `res data` event emit, size %d",$,C,Ee.length),g+=Ee.length,xe.push(Ee)}),oe.on("end",function(){var Ee=y.concat(xe,g);if(f("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",$,C,g,oe._dumped),t)return L(t,Ee,oe);var we=z(oe);if(we.error)return L(we.error,Ee,oe);we.redirect||W(oe,Ee,function(Oe,Te,ke){if(Oe)return L(Oe,Ee,oe);if(!ke&&k.indexOf(_.dataType)>=0){try{Te=decodeBodyByCharset(Te,oe)}catch(Le){return f("decodeBodyByCharset error: %s",Le),L(null,Te,oe)}if(_.dataType==="json")if(g===0)Te=null;else{var Ie=parseJSON(Te,ae);Ie.error?Oe=Ie.error:Te=Ie.data}}V&&f("Request#%d %s: Remote socket was terminated before `response.end()` was called",$,C),L(Oe,Te,oe)})})}function Z(){f("Response timer ticking, timeout: %d",ve),O=setTimeout(function(){O=null;var oe="Response timeout for "+ve+"ms";t=new Error(oe),t.name="ResponseTimeoutError",t.requestId=$,f("ResponseTimeout: Request#%d %s %s: %s, connected: %s",$,C,t.name,oe,a),U()},ve)}function U(){f("Request#%d %s abort, connected: %s",$,C,a),he.socket||(t.noSocket=!0,L(t)),he.abort()}if(!C||typeof C!="string"&&(C===void 0?"undefined":(0,l.default)(C))!=="object"){var ee=p.format("expect request url to be a string or a http request options, but got %j",C);throw new Error(ee)}arguments.length===2&&typeof _=="function"&&(j=_,_=null),_=_||{},S>=m&&(S=0);var $=++S;_.requestUrls=_.requestUrls||[];var q={requestId:$,url:C,args:_,ctx:_.ctx};_.emitter&&_.emitter.emit("request",q),_.timeout=_.timeout||v.TIMEOUTS,_.maxRedirects=_.maxRedirects||10,_.streaming=_.streaming||_.customResponse;var R,I=Date.now();typeof C=="string"?(b.test(C)||(C="http://"+C),R=c.parse(C)):R=C;var F=(_.type||_.method||R.method||"GET").toUpperCase(),N=R.port||80,H=x,Y=s(_.agent,v.agent),ae=_.fixJSONCtlChars;R.protocol==="https:"&&(H=E,Y=s(_.httpsAgent,v.httpsAgent),R.port||(N=443));var te={host:R.hostname||R.host||"localhost",path:R.path||"/",method:F,port:N,agent:Y,headers:_.headers||{},lookup:_.lookup};Array.isArray(_.timeout)?te.requestTimeout=_.timeout[_.timeout.length-1]:_.timeout!==void 0&&(te.requestTimeout=_.timeout);for(var ue=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","secureOptions"],de=0;de<ue.length;de++){var Q=ue[de];_.hasOwnProperty(Q)&&(te[Q]=_[Q])}te.rejectUnauthorized!==!1||te.hasOwnProperty("secureOptions")||(te.secureOptions=n("constants").SSL_OP_NO_TLSv1_2);var J=_.auth||R.auth;J&&(te.auth=J);var ie=_.content||_.data,X=F==="GET"||F==="HEAD"||_.dataAsQueryString;if(!_.content&&ie&&typeof ie!="string"&&!y.isBuffer(ie))if(X)ie=_.nestedQuerystring?qs.stringify(ie):querystring.stringify(ie);else{var B=te.headers["Content-Type"]||te.headers["content-type"];B||(B=_.contentType==="json"?"application/json":"application/x-www-form-urlencoded",te.headers["Content-Type"]=B),ie=parseContentType(B).type==="application/json"?(0,o.default)(ie):_.nestedQuerystring?qs.stringify(ie):querystring.stringify(ie)}X&&ie&&(te.path+=(R.query?"&":"?")+ie,ie=null);var re=0;if(ie){var ne=ie.length;y.isBuffer(ie)||(ne=y.byteLength(ie)),re=te.headers["Content-Length"]=ne}_.dataType==="json"&&(te.headers.Accept="application/json"),typeof _.beforeRequest=="function"&&_.beforeRequest(te);var ce=null,O=null,t=null,a=!1,P=!1,g=0,w=-1,V=!1,K="",fe="",le=null;_.timing&&(le={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0}),te.headers["User-Agent"]||te.headers["user-agent"]||(te.headers["User-Agent"]=navigator.userAgent),_.gzip&&(te.headers["Accept-Encoding"]||te.headers["accept-encoding"]||(te.headers["Accept-Encoding"]="gzip"));var me=_.writeStream;f("Request#%d %s %s with headers %j, options.path: %s",$,F,C,te.headers,te.path),_.requestUrls.push(C);var ge,ve;Array.isArray(_.timeout)?(ge=T(_.timeout[0]),ve=T(_.timeout[1])):ge=ve=T(_.timeout),f("ConnectTimeout: %d, ResponseTimeout: %d",ge,ve);var he;try{he=H.request(te,G)}catch(oe){return L(oe)}return typeof window=="undefined"?function(){f("Connect timer ticking, timeout: %d",ge),ce=setTimeout(function(){ce=null,w===-1&&(w=-2);var oe="Connect timeout for "+ge+"ms",ye="ConnectionTimeoutError";he.socket||(ye="SocketAssignTimeoutError",oe+=", working sockets is full"),t=new Error(oe),t.name=ye,t.requestId=$,f("ConnectTimeout: Request#%d %s %s: %s, connected: %s",$,C,t.name,oe,a),U()},ge)}():he.on("requestTimeout",function(){w===-1&&(w=-2);var oe="Connect timeout for "+ge+"ms";t=new Error(oe),t.name="ConnectionTimeoutError",t.requestId=$,U()}),le&&he.on("finish",function(){le.requestSent=Date.now()-I}),he.once("socket",function(oe){le&&(le.queuing=Date.now()-I),isNode010&&oe.socket&&(oe=oe.socket);var ye=oe.readyState;if(ye==="opening")return oe.once("lookup",function(xe,Ee,we){f("Request#%d %s lookup: %s, %s, %s",$,C,xe,Ee,we),le&&(le.dnslookup=Date.now()-I),Ee&&(K=Ee)}),void oe.once("connect",function(){le&&(le.connected=Date.now()-I),D(),Z(),f("Request#%d %s new socket connected",$,C),a=!0,K||(K=oe.remoteAddress),fe=oe.remotePort});f("Request#%d %s reuse socket connected, readyState: %s",$,C,ye),a=!0,P=!0,K||(K=oe.remoteAddress),fe=oe.remotePort,D(),Z()}),he.on("error",function(oe){oe.name!=="Error"&&oe.name!=="TypeError"||(oe.name=a?"ResponseError":"RequestError"),oe.message+=' (req "error")',f("Request#%d %s `req error` event emit, %s: %s",$,C,oe.name,oe.message),L(t||oe)}),me&&me.once("error",function(oe){oe.message+=' (writeStream "error")',t=oe,f("Request#%d %s `writeStream error` event emit, %s: %s",$,C,oe.name,oe.message),U()}),_.stream?(_.stream.pipe(he),_.stream.once("error",function(oe){oe.message+=' (stream "error")',t=oe,f("Request#%d %s `readStream error` event emit, %s: %s",$,C,oe.name,oe.message),U()})):he.end(ie),he.requestId=$,he}}).call(this,n("_process"),n("buffer").Buffer)},{_process:173,"any-promise":13,"babel-runtime/core-js/json/stringify":17,"babel-runtime/helpers/typeof":32,buffer:38,constants:42,debug:155,http:196,https:159,"humanize-ms":160,url:203,util:207}]},{},[1])(1)}),!function(pe){function n(v){if(A[v])return A[v].exports;var h=A[v]={i:v,l:!1,exports:{}};return pe[v].call(h.exports,h,h.exports,n),h.l=!0,h.exports}var A={};n.m=pe,n.c=A,n.d=function(v,h,y){n.o(v,h)||Object.defineProperty(v,h,{configurable:!1,enumerable:!0,get:y})},n.n=function(v){var h=v&&v.__esModule?function(){return v.default}:function(){return v};return n.d(h,"a",h),h},n.o=function(v,h){return Object.prototype.hasOwnProperty.call(v,h)},n.p="",n(n.s=12)}([function(pe,n,A){!function(v,h){pe.exports=n=h()}(0,function(){var v=v||function(h,y){var i=Object.create||function(){function E(){}return function(f){var T;return E.prototype=f,T=new E,E.prototype=null,T}}(),s={},d=s.lib={},u=d.Base=function(){return{extend:function(f){var T=i(this);return f&&T.mixIn(f),T.hasOwnProperty("init")&&this.init!==T.init||(T.init=function(){T.$super.init.apply(this,arguments)}),T.init.prototype=T,T.$super=this,T},create:function(){var f=this.extend();return f.init.apply(f,arguments),f},init:function(){},mixIn:function(f){for(var T in f)f.hasOwnProperty(T)&&(this[T]=f[T]);f.hasOwnProperty("toString")&&(this.toString=f.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),e=d.WordArray=u.extend({init:function(f,T){f=this.words=f||[],this.sigBytes=T!=null?T:4*f.length},toString:function(f){return(f||r).stringify(this)},concat:function(f){var T=this.words,S=f.words,m=this.sigBytes,b=f.sigBytes;if(this.clamp(),m%4)for(var k=0;k<b;k++){var C=S[k>>>2]>>>24-k%4*8&255;T[m+k>>>2]|=C<<24-(m+k)%4*8}else for(var k=0;k<b;k+=4)T[m+k>>>2]=S[k>>>2];return this.sigBytes+=b,this},clamp:function(){var f=this.words,T=this.sigBytes;f[T>>>2]&=4294967295<<32-T%4*8,f.length=h.ceil(T/4)},clone:function(){var f=u.clone.call(this);return f.words=this.words.slice(0),f},random:function(f){for(var T,S=[],m=0;m<f;m+=4){var b=function(k){var k=k,C=987654321,_=4294967295;return function(){C=36969*(65535&C)+(C>>16)&_,k=18e3*(65535&k)+(k>>16)&_;var j=(C<<16)+k&_;return j/=4294967296,(j+=.5)*(h.random()>.5?1:-1)}}(4294967296*(T||h.random()));T=987654071*b(),S.push(4294967296*b()|0)}return new e.init(S,f)}}),o=s.enc={},r=o.Hex={stringify:function(f){for(var T=f.words,S=f.sigBytes,m=[],b=0;b<S;b++){var k=T[b>>>2]>>>24-b%4*8&255;m.push((k>>>4).toString(16)),m.push((15&k).toString(16))}return m.join("")},parse:function(f){for(var T=f.length,S=[],m=0;m<T;m+=2)S[m>>>3]|=parseInt(f.substr(m,2),16)<<24-m%8*4;return new e.init(S,T/2)}},l=o.Latin1={stringify:function(f){for(var T=f.words,S=f.sigBytes,m=[],b=0;b<S;b++){var k=T[b>>>2]>>>24-b%4*8&255;m.push(String.fromCharCode(k))}return m.join("")},parse:function(f){for(var T=f.length,S=[],m=0;m<T;m++)S[m>>>2]|=(255&f.charCodeAt(m))<<24-m%4*8;return new e.init(S,T)}},p=o.Utf8={stringify:function(f){try{return decodeURIComponent(escape(l.stringify(f)))}catch(T){throw new Error("Malformed UTF-8 data")}},parse:function(f){return l.parse(unescape(encodeURIComponent(f)))}},c=d.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new e.init,this._nDataBytes=0},_append:function(f){typeof f=="string"&&(f=p.parse(f)),this._data.concat(f),this._nDataBytes+=f.sigBytes},_process:function(f){var T=this._data,S=T.words,m=T.sigBytes,b=this.blockSize,k=4*b,C=m/k;C=f?h.ceil(C):h.max((0|C)-this._minBufferSize,0);var _=C*b,j=h.min(4*_,m);if(_){for(var D=0;D<_;D+=b)this._doProcessBlock(S,D);var M=S.splice(0,_);T.sigBytes-=j}return new e.init(M,j)},clone:function(){var f=u.clone.call(this);return f._data=this._data.clone(),f},_minBufferSize:0}),x=(d.Hasher=c.extend({cfg:u.extend(),init:function(f){this.cfg=this.cfg.extend(f),this.reset()},reset:function(){c.reset.call(this),this._doReset()},update:function(f){return this._append(f),this._process(),this},finalize:function(f){return f&&this._append(f),this._doFinalize()},blockSize:16,_createHelper:function(f){return function(T,S){return new f.init(S).finalize(T)}},_createHmacHelper:function(f){return function(T,S){return new x.HMAC.init(f,S).finalize(T)}}}),s.algo={});return s}(Math);return v})},function(pe,n,A){"use strict";function v(i,s){if(!(i instanceof s))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var h=function(){function i(s,d){for(var u=0;u<d.length;u++){var e=d[u];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(s,e.key,e)}}return function(s,d,u){return d&&i(s.prototype,d),u&&i(s,u),s}}(),y=function(){function i(){v(this,i)}return h(i,null,[{key:"detectIEVersion",value:function(){for(var d=4,u=document.createElement("div"),e=u.getElementsByTagName("i");u.innerHTML="<!--[if gt IE "+d+"]><i></i><![endif]-->",e[0];)d++;return d>4&&d}},{key:"extend",value:function(d,u){for(var e in u)Object.prototype.hasOwnProperty.call(u,e)&&u[e]&&(d[e]=u[e])}},{key:"isArray",value:function(d){return Object.prototype.toString.call(arg)==="[object Array]"}},{key:"getFileType",value:function(d){return d=d.toLowerCase(),/.mp4|.flv|.m3u8|.avi|.rm|.rmvb|.mpeg|.mpg|.mov|.wmv|.3gp|.asf|.dat|.dv|.f4v|.gif|.m2t|.m4v|.mj2|.mjpeg|.mpe|.mts|.ogg|.qt|.swf|.ts|.vob|.wmv|.webm/.test(d)?"video":/.mp3|.wav|.ape|.cda|.au|.midi|.mac|.aac|.ac3|.acm|.amr|.caf|.flac|.m4a|.ra|.wma/.test(d)?"audio":/.bmp|.jpg|.jpeg|.png/.test(d)?"img":"other"}},{key:"isImage",value:function(d){return d=d.toLowerCase(),!!/.jpg|.jpeg|.png/.test(d)}},{key:"ISODateString",value:function(d){function u(e){return e<10?"0"+e:e}return d.getUTCFullYear()+"-"+u(d.getUTCMonth()+1)+"-"+u(d.getUTCDate())+"T"+u(d.getUTCHours())+":"+u(d.getUTCMinutes())+":"+u(d.getUTCSeconds())+"Z"}},{key:"isIntNum",value:function(d){return!!/^\d+$/.test(d)}}]),i}();n.default=y},function(pe,n,A){!function(v,h){pe.exports=n=h(A(0))}(0,function(v){return function(h){function y(x,E,f,T,S,m,b){var k=x+(E&f|~E&T)+S+b;return(k<<m|k>>>32-m)+E}function i(x,E,f,T,S,m,b){var k=x+(E&T|f&~T)+S+b;return(k<<m|k>>>32-m)+E}function s(x,E,f,T,S,m,b){var k=x+(E^f^T)+S+b;return(k<<m|k>>>32-m)+E}function d(x,E,f,T,S,m,b){var k=x+(f^(E|~T))+S+b;return(k<<m|k>>>32-m)+E}var u=v,e=u.lib,o=e.WordArray,r=e.Hasher,l=u.algo,p=[];!function(){for(var x=0;x<64;x++)p[x]=4294967296*h.abs(h.sin(x+1))|0}();var c=l.MD5=r.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(E,f){for(var T=0;T<16;T++){var S=f+T,m=E[S];E[S]=16711935&(m<<8|m>>>24)|4278255360&(m<<24|m>>>8)}var b=this._hash.words,k=E[f+0],C=E[f+1],_=E[f+2],j=E[f+3],D=E[f+4],M=E[f+5],L=E[f+6],z=E[f+7],W=E[f+8],G=E[f+9],Z=E[f+10],U=E[f+11],ee=E[f+12],$=E[f+13],q=E[f+14],R=E[f+15],I=b[0],F=b[1],N=b[2],H=b[3];I=y(I,F,N,H,k,7,p[0]),H=y(H,I,F,N,C,12,p[1]),N=y(N,H,I,F,_,17,p[2]),F=y(F,N,H,I,j,22,p[3]),I=y(I,F,N,H,D,7,p[4]),H=y(H,I,F,N,M,12,p[5]),N=y(N,H,I,F,L,17,p[6]),F=y(F,N,H,I,z,22,p[7]),I=y(I,F,N,H,W,7,p[8]),H=y(H,I,F,N,G,12,p[9]),N=y(N,H,I,F,Z,17,p[10]),F=y(F,N,H,I,U,22,p[11]),I=y(I,F,N,H,ee,7,p[12]),H=y(H,I,F,N,$,12,p[13]),N=y(N,H,I,F,q,17,p[14]),F=y(F,N,H,I,R,22,p[15]),I=i(I,F,N,H,C,5,p[16]),H=i(H,I,F,N,L,9,p[17]),N=i(N,H,I,F,U,14,p[18]),F=i(F,N,H,I,k,20,p[19]),I=i(I,F,N,H,M,5,p[20]),H=i(H,I,F,N,Z,9,p[21]),N=i(N,H,I,F,R,14,p[22]),F=i(F,N,H,I,D,20,p[23]),I=i(I,F,N,H,G,5,p[24]),H=i(H,I,F,N,q,9,p[25]),N=i(N,H,I,F,j,14,p[26]),F=i(F,N,H,I,W,20,p[27]),I=i(I,F,N,H,$,5,p[28]),H=i(H,I,F,N,_,9,p[29]),N=i(N,H,I,F,z,14,p[30]),F=i(F,N,H,I,ee,20,p[31]),I=s(I,F,N,H,M,4,p[32]),H=s(H,I,F,N,W,11,p[33]),N=s(N,H,I,F,U,16,p[34]),F=s(F,N,H,I,q,23,p[35]),I=s(I,F,N,H,C,4,p[36]),H=s(H,I,F,N,D,11,p[37]),N=s(N,H,I,F,z,16,p[38]),F=s(F,N,H,I,Z,23,p[39]),I=s(I,F,N,H,$,4,p[40]),H=s(H,I,F,N,k,11,p[41]),N=s(N,H,I,F,j,16,p[42]),F=s(F,N,H,I,L,23,p[43]),I=s(I,F,N,H,G,4,p[44]),H=s(H,I,F,N,ee,11,p[45]),N=s(N,H,I,F,R,16,p[46]),F=s(F,N,H,I,_,23,p[47]),I=d(I,F,N,H,k,6,p[48]),H=d(H,I,F,N,z,10,p[49]),N=d(N,H,I,F,q,15,p[50]),F=d(F,N,H,I,M,21,p[51]),I=d(I,F,N,H,ee,6,p[52]),H=d(H,I,F,N,j,10,p[53]),N=d(N,H,I,F,Z,15,p[54]),F=d(F,N,H,I,C,21,p[55]),I=d(I,F,N,H,W,6,p[56]),H=d(H,I,F,N,R,10,p[57]),N=d(N,H,I,F,L,15,p[58]),F=d(F,N,H,I,$,21,p[59]),I=d(I,F,N,H,D,6,p[60]),H=d(H,I,F,N,U,10,p[61]),N=d(N,H,I,F,_,15,p[62]),F=d(F,N,H,I,G,21,p[63]),b[0]=b[0]+I|0,b[1]=b[1]+F|0,b[2]=b[2]+N|0,b[3]=b[3]+H|0},_doFinalize:function(){var E=this._data,f=E.words,T=8*this._nDataBytes,S=8*E.sigBytes;f[S>>>5]|=128<<24-S%32;var m=h.floor(T/4294967296),b=T;f[15+(S+64>>>9<<4)]=16711935&(m<<8|m>>>24)|4278255360&(m<<24|m>>>8),f[14+(S+64>>>9<<4)]=16711935&(b<<8|b>>>24)|4278255360&(b<<24|b>>>8),E.sigBytes=4*(f.length+1),this._process();for(var k=this._hash,C=k.words,_=0;_<4;_++){var j=C[_];C[_]=16711935&(j<<8|j>>>24)|4278255360&(j<<24|j>>>8)}return k},clone:function(){var E=r.clone.call(this);return E._hash=this._hash.clone(),E}});u.MD5=r._createHelper(c),u.HmacMD5=r._createHmacHelper(c)}(Math),v.MD5})},function(pe,n,A){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.UPLOADSTATE={INIT:"init",UPLOADING:"uploading",COMPLETE:"complete",INTERRUPT:"interrupt"},n.UPLOADSTEP={INIT:"init",PART:"part",COMPLETE:"complete"},n.UPLOADDEFAULT={PARALLEL:5,PARTSIZE:1048576}},function(pe,n,A){"use strict";function v(c){return c&&c.__esModule?c:{default:c}}function h(c,x){if(!(c instanceof x))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var y=function(){function c(x,E){for(var f=0;f<E.length;f++){var T=E[f];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(x,T.key,T)}}return function(x,E,f){return E&&c(x.prototype,E),f&&c(x,f),x}}(),i=A(5),s=v(i),d=A(25),u=v(d),e=A(6),o=v(e),r=A(7),l=v(r),p=function(){function c(x){h(this,c);var E=l.default.os.name,f=l.default.os.version||"",T=l.default.browser.name,S=l.default.browser.version||"",m=window.location.href,b="";m&&(b=l.default.getHost(m));var k="pc";l.default.os.ipad?k="pad":(l.default.os.iphone||l.default.os.android)&&(k="phone"),this._ri=s.default.create(),this.initParam={APIVersion:"0.6.0",lv:"1",av:o.default.version,pd:"upload",sm:"upload",md:"uploader",uuid:c.getUuid(),os:E,ov:f,et:T,ev:S,uat:navigator.userAgent,app_n:b,tt:k,dm:"h5",ut:""}}return y(c,[{key:"log",value:function(E,f){f&&f.ri?(this._ri=f.ri,delete f.ri):this._ri=s.default.create(),f&&f.ut&&(this.initParam.ut=f.ut,delete f.ut),this.initParam.t=new Date().getTime(),this.initParam.ll=E=="20006"?"error":"info",this.initParam.ri=this._ri,this.initParam.e=E;var T=[];if(f)for(var S in f)T.push(S+"="+f[S]);var m=T.join("&");this.initParam.args=encodeURIComponent(m==""?"0":m);var b=[];for(var S in this.initParam)b.push(S+"="+this.initParam[S]);var k=b.join("&");AliyunUpload&&AliyunUpload.__logTestCallback__?AliyunUpload.__logTestCallback__(k):new Image(0,0).src="https://videocloud.cn-hangzhou.log.aliyuncs.com/logstores/upload/track?"+k}}],[{key:"getUuid",value:function(){var E=u.default.get("p_h5_upload_u");return E||(E=s.default.create(),u.default.set("p_h5_upload_u",E,730)),E}},{key:"getClientId",value:function(){return u.default.get("p_h5_upload_clientId")}},{key:"setClientId",value:function(E){return E||(E=s.default.create()),u.default.set("p_h5_upload_clientId",E,730),E}}]),c}();n.default=p},function(pe,n,A){"use strict";function v(i,s){if(!(i instanceof s))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var h=function(){function i(s,d){for(var u=0;u<d.length;u++){var e=d[u];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(s,e.key,e)}}return function(s,d,u){return d&&i(s.prototype,d),u&&i(s,u),s}}(),y=function(){function i(){v(this,i)}return h(i,null,[{key:"create",value:function(d,u){var e,o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),r=[];if(u=u||o.length,d)for(e=0;e<d;e++)r[e]=o[0|Math.random()*u];else{var l;for(r[8]=r[13]=r[18]=r[23]="-",r[14]="4",e=0;e<36;e++)r[e]||(l=0|16*Math.random(),r[e]=o[e==19?3&l|8:l])}return r.join("")}}]),i}();n.default=y},function(pe,n,A){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var v={version:"1.5.0"};n.default=v},function(pe,n,A){"use strict";function v(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var h=function(){function e(o,r){for(var l=0;l<r.length;l++){var p=r[l];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(o,p.key,p)}}return function(o,r,l){return r&&e(o.prototype,r),l&&e(o,l),o}}(),y=function(o){var r=navigator.userAgent,l="other";if(o.ios)return"iOS";if(o.android)return"android";if(r.indexOf("Baiduspider")>-1)return"Baiduspider";if(r.indexOf("PlayStation")>-1)return"PS4";var p=navigator.platform=="Win32"||navigator.platform=="Windows"||r.indexOf("Windows")>-1,c=navigator.platform=="Mac68K"||navigator.platform=="MacPPC"||navigator.platform=="Macintosh"||navigator.platform=="MacIntel";return c&&(l="macOS"),navigator.platform=="X11"&&!p&&!c&&(l="Unix"),String(navigator.platform).indexOf("Linux")>-1&&(l="Linux"),p?"windows":l},i=function(){var o=navigator.userAgent,r="";return(o.indexOf("Windows NT 5.0")>-1||o.indexOf("Windows 2000")>-1)&&(r="2000"),(o.indexOf("Windows NT 5.1")>-1||o.indexOf("Windows XP")>-1)&&(r="XP"),(o.indexOf("Windows NT 5.2")>-1||o.indexOf("Windows 2003")>-1)&&(r="2003"),(o.indexOf("Windows NT 6.0")>-1||o.indexOf("Windows Vista")>-1)&&(r="Vista"),(o.indexOf("Windows NT 6.1")>-1||o.indexOf("Windows 7")>-1)&&(r="7"),(o.indexOf("Windows NT 6.2")>-1||o.indexOf("Windows 8")>-1)&&(r="8"),(o.indexOf("Windows NT 6.3")>-1||o.indexOf("Windows 8.1")>-1)&&(r="8.1"),(o.indexOf("Windows NT 10")>-1||o.indexOf("Windows 10")>-1)&&(r="10"),r},s=function(o){var r=navigator.userAgent.toLowerCase();return o.chrome?"Chrome":o.firefox?"Firefox":o.safari?"Safari":o.webview?"webview":o.ie?/edge/.test(r)?"Edge":"IE":/baiduspider/.test(r)?"Baiduspider":/ucweb/.test(r)||/UCBrowser/.test(r)?"UC":/opera/.test(r)?"Opera":/ucweb/.test(r)?"UC":/360se/.test(r)?"360\u6D4F\u89C8\u5668":/bidubrowser/.test(r)?"\u767E\u5EA6\u6D4F\u89C8\u5668":/metasr/.test(r)?"\u641C\u72D7\u6D4F\u89C8\u5668":/lbbrowser/.test(r)?"\u730E\u8C79\u6D4F\u89C8\u5668":/micromessenger/.test(r)?"\u5FAE\u4FE1\u5185\u7F6E\u6D4F\u89C8\u5668":/qqbrowser/.test(r)?"QQ\u6D4F\u89C8\u5668":/playstation/.test(r)?"PS4\u6D4F\u89C8\u5668":void 0},d=function(){var e={},o={},r=navigator.userAgent,l=navigator.platform,p=r.match(/Web[kK]it[\/]{0,1}([\d.]+)/),c=r.match(/(Android);?[\s\/]+([\d.]+)?/),x=!!r.match(/\(Macintosh\; Intel /),E=r.match(/(iPad).*OS\s([\d_]+)/),f=r.match(/(iPod)(.*OS\s([\d_]+))?/),T=!E&&r.match(/(iPhone\sOS)\s([\d_]+)/),S=r.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),m=/Win\d{2}|Windows/.test(l),b=r.match(/Windows Phone ([\d.]+)/),k=S&&r.match(/TouchPad/),C=r.match(/Kindle\/([\d.]+)/),_=r.match(/Silk\/([\d._]+)/),j=r.match(/(BlackBerry).*Version\/([\d.]+)/),D=r.match(/(BB10).*Version\/([\d.]+)/),M=r.match(/(RIM\sTablet\sOS)\s([\d.]+)/),L=r.match(/PlayBook/),z=r.match(/Chrome\/([\d.]+)/)||r.match(/CriOS\/([\d.]+)/),W=r.match(/Firefox\/([\d.]+)/),G=r.match(/\((?:Mobile|Tablet); rv:([\d.]+)\).*Firefox\/[\d.]+/),Z=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/[\d](?=[^\?]+).*rv:([0-9.].)/),U=!z&&r.match(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/),ee=U||r.match(/Version\/([\d.]+)([^S](Safari)|[^M]*(Mobile)[^S]*(Safari))/);if((o.webkit=!!p)&&(o.version=p[1]),c&&(e.android=!0,e.version=c[2]),T&&!f&&(e.ios=e.iphone=!0,e.version=T[2].replace(/_/g,".")),E&&(e.ios=e.ipad=!0,e.version=E[2].replace(/_/g,".")),f&&(e.ios=e.ipod=!0,e.version=f[3]?f[3].replace(/_/g,"."):null),b&&(e.wp=!0,e.version=b[1]),S&&(e.webos=!0,e.version=S[2]),k&&(e.touchpad=!0),j&&(e.blackberry=!0,e.version=j[2]),D&&(e.bb10=!0,e.version=D[2]),M&&(e.rimtabletos=!0,e.version=M[2]),L&&(o.playbook=!0),C&&(e.kindle=!0,e.version=C[1]),_&&(o.silk=!0,o.version=_[1]),!_&&e.android&&r.match(/Kindle Fire/)&&(o.silk=!0),z&&(o.chrome=!0,o.version=z[1]),W&&(o.firefox=!0,o.version=W[1]),G&&(e.firefoxos=!0,e.version=G[1]),Z&&(o.ie=!0,o.version=Z[1]),ee&&(x||e.ios||m||c)&&(o.safari=!0,e.ios||(o.version=ee[1])),U&&(o.webview=!0),x){var $=r.match(/[\d]*_[\d]*_[\d]*/);$&&$.length>0&&$[0]&&(e.version=$[0].replace(/_/g,"."))}return e.tablet=!!(E||L||c&&!r.match(/Mobile/)||W&&r.match(/Tablet/)||Z&&!r.match(/Phone/)&&r.match(/Touch/)),e.phone=!(e.tablet||e.ipod||!(c||T||S||j||D||z&&r.match(/Android/)||z&&r.match(/CriOS\/([\d.]+)/)||W&&r.match(/Mobile/)||Z&&r.match(/Touch/))),e.pc=!e.tablet&&!e.phone,x?e.name="macOS":m?(e.name="windows",e.version=i()):e.name=y(e),o.name=s(o),{os:e,browser:o}}(),u=function(){function e(){v(this,e)}return h(e,null,[{key:"getHost",value:function(r){var l="";if(r===void 0||r==null||r=="")return"";var p=r.indexOf("//"),c=r;p>-1&&(c=r.substring(p+2));var l=c,x=c.split("/");return x&&x.length>0&&(l=x[0]),x=l.split(":"),x&&x.length>0&&(l=x[0]),l}},{key:"os",get:function(){return d.os}},{key:"browser",get:function(){var r=d.browser;return r.name||(r.name=s()),r}}]),e}();n.default=u},function(pe,n,A){"use strict";function v(i,s){if(!(i instanceof s))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var h=function(){function i(s,d){for(var u=0;u<d.length;u++){var e=d[u];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(s,e.key,e)}}return function(s,d,u){return d&&i(s.prototype,d),u&&i(s,u),s}}(),y=function(){function i(){v(this,i)}return h(i,null,[{key:"get",value:function(d,u,e,o,r){var l;e=e||function(){},typeof XMLHttpRequest=="undefined"&&(window.XMLHttpRequest=function(){try{return new window.ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(p){}try{return new window.ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(p){}try{return new window.ActiveXObject("Msxml2.XMLHTTP")}catch(p){}throw new Error("This browser does not support XMLHttpRequest.")}),l=new XMLHttpRequest,l.onreadystatechange=function(){l.readyState===4&&(l.status===200?u(l.responseText):e(l.responseText))};try{o===void 0&&(o=!0),l.open("GET",d,o),r&&(l.withCredentials=!0)}catch(p){return void e(p)}try{l.send()}catch(p){e(p)}}}]),i}();n.default=y},function(pe,n,A){"use strict";function v(d,u){if(!(d instanceof u))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var h=function(){function d(u,e){for(var o=0;o<e.length;o++){var r=e[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(u,r.key,r)}}return function(u,e,o){return e&&d(u.prototype,e),o&&d(u,o),u}}(),y=A(27),i=A(30),s=(A(10),function(){function d(){v(this,d)}return h(d,null,[{key:"randomUUID",value:function(){for(var e=[],o="0123456789abcdef",r=0;r<36;r++)e[r]=o.substr(Math.floor(16*Math.random()),1);return e[14]="4",e[19]=o.substr(3&e[19]|8,1),e[8]=e[13]=e[18]=e[23]="-",e.join("")}},{key:"aliyunEncodeURI",value:function(e){var o=encodeURIComponent(e);return o=o.replace(/\+/g,"%20").replace(/\*/g,"%2A").replace(/%7E/g,"~").replace(/!/g,"%21").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/'/g,"%27")}},{key:"makeUTF8sort",value:function(e,o,r){if(!e)throw new Error("PrismPlayer Error: vid should not be null!");var l=[];for(var p in e)l.push(p);for(var c=l.sort(),x="",E=c.length,p=0;p<E;p++){var f=d.aliyunEncodeURI(c[p]),T=d.aliyunEncodeURI(e[c[p]]);x==""?x=f+o+T:x+=r+f+o+T}return x}},{key:"makeChangeSiga",value:function(e,o){if(!e)throw new Error("PrismPlayer Error: vid should not be null!");return i.stringify(y("GET&"+d.aliyunEncodeURI("/")+"&"+d.aliyunEncodeURI(d.makeUTF8sort(e,"=","&")),o+"&"))}}]),d}());n.default=s},function(pe,n,A){!function(v,h){pe.exports=n=h(A(0))}(0,function(v){return v.enc.Utf8})},function(pe,n,A){!function(v,h){pe.exports=n=h(A(0))}(0,function(v){return v.enc.Hex})},function(pe,n,A){pe.exports=A(13)},function(pe,n,A){"use strict";var v,h,y=(typeof Symbol=="function"&&Symbol.iterator,A(14)),i=function(d){return d&&d.__esModule?d:{default:d}}(y),s={Vod:i.default};v=[],(h=function(){return s}.apply(n,v))!==void 0&&(pe.exports=h),window.AliyunUpload=s,Ge.exports=AliyunUpload},function(pe,n,A){"use strict";function v(D){return D&&D.__esModule?D:{default:D}}function h(D,M){if(!(D instanceof M))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var y=function(){function D(M,L){for(var z=0;z<L.length;z++){var W=L[z];W.enumerable=W.enumerable||!1,W.configurable=!0,"value"in W&&(W.writable=!0),Object.defineProperty(M,W.key,W)}}return function(M,L,z){return L&&D(M.prototype,L),z&&D(M,z),M}}(),i=A(15),s=A(3),d=A(16),u=v(d),e=A(18),o=v(e),r=A(24),l=v(r),p=A(4),c=v(p),x=A(1),E=v(x),f=A(5),T=v(f),S=A(26),m=v(S),b=A(31),k=v(b),C=A(32),_=v(C),j=(A(2),function(){function D(M){h(this,D),this.options=M,this.options.partSize=this.options.partSize||s.UPLOADDEFAULT.PARTSIZE,this.options.parallel=this.options.parallel||s.UPLOADDEFAULT.PARALLEL,this.options.region=this.options.region||"cn-shanghai",this.options.cname=this.options.cname||!1,this.options.localCheckpoint=this.options.localCheckpoint||!1,this.options.enableUploadProgress===void 0&&(this.options.enableUploadProgress=!0),this._ossCreditor=new Object,this._state=i.VODSTATE.INIT,this._uploadList=[],this._curIndex=-1,this._ossUpload=null,this._log=new c.default,this._retryCount=0,this._retryTotal=this.options.retryCount||3,this._retryDuration=this.options.retryDuration||2,this._state=i.VODSTATE.INIT,this._uploadWay="vod",this._onbeforeunload=!1,this._invalidUserId=!1,this._initEvent()}return y(D,[{key:"init",value:function(L,z,W,G){return this._retryCount=0,!(W&&!G||!W&&G)&&!(L&&!z||!L&&z)&&(this._ossCreditor.accessKeyId=L,this._ossCreditor.accessKeySecret=z,this._ossCreditor.securityToken=W,this._ossCreditor.expireTime=G,!0)}},{key:"addFile",value:function(L,z,W,G,Z,U){if(!L)return!1;if(L.size==0)try{this.options.onUploadFailed({file:L},"EmptyFile","\u6587\u4EF6\u5927\u5C0F\u4E3A0\uFF0C\u4E0D\u80FD\u4E0A\u4F20")}catch(R){console.log(R)}for(var ee=(this.options,0);ee<this._uploadList.length;ee++)if(this._uploadList[ee].file==L)return!1;var $=new Object;if($.file=L,$._endpoint=z,$._bucket=W,$._object=G,$.state=i.UPLOADSTATE.INIT,$.isImage=E.default.isImage(L.name),!$.isImage&&this.options.enableUploadProgress){var q=this;_.default.getMd5(L,function(R){$.fileHash=R;var I=q._getCheckoutpoint($);q.options.localCheckpoint||I||q._getCheckoutpointFromCloud($,function(F){if(F.UploadPoint){var N=JSON.parse(F.UploadPoint);N.loaded!=1&&($.checkpoint=N.checkpoint,$.loaded=N.loaded,$.videoId=F.VideoId,q._saveCheckoutpoint($,N.checkpoint))}},function(F){try{if((F=JSON.parse(F))&&F.Code=="InvalidParameter"&&F.Message.indexOf("UserId")>0){q._invalidUserId=!0;var N=F.Message+"\uFF0C\u6B63\u786E\u8D26\u53F7ID(userId)\u8BF7\u53C2\u8003\uFF1Ahttps://help.aliyun.com/knowledge_detail/37196.html";console.log(N)}}catch(H){console.log(H)}})})}Z&&($.videoInfo=Z?JSON.parse(Z).Vod:{},$.userData=o.default.encode(Z)),$.ri=T.default.create(),this._uploadList.push($),this._reportLog("20001",$,{ql:this._uploadList.length});try{this.options.addFileSuccess&&this.options.addFileSuccess($)}catch(R){console.log(R)}return!0}},{key:"deleteFile",value:function(L){return!!this.cancelFile(L)&&(this._uploadList.splice(L,1),!0)}},{key:"cleanList",value:function(){this.stopUpload(),this._uploadList.length=0,this._curIndex=-1}},{key:"cancelFile",value:function(L){if(this.options,L<0||L>=this._uploadList.length)return!1;var z=this._uploadList[L];if(L==this._curIndex&&z.state==i.UPLOADSTATE.UPLOADING){z.state=i.UPLOADSTATE.CANCELED;var W=this._getCheckoutpoint(z);W&&W.checkpoint&&(W=W.checkpoint),W&&this._ossUpload.abort(z),this._removeCheckoutpoint(z),this.nextUpload()}else z.state!=i.UPLOADSTATE.SUCCESS&&(z.state=i.UPLOADSTATE.CANCELED);return this._reportLog("20008",z),!0}},{key:"resumeFile",value:function(L){if(this.options,L<0||L>=this._uploadList.length)return!1;var z=this._uploadList[L];return z.state==i.UPLOADSTATE.CANCELED&&(z.state=i.UPLOADSTATE.INIT,!0)}},{key:"listFiles",value:function(){return this._uploadList}},{key:"getCheckpoint",value:function(L){return this._getCheckoutpoint({file:L})}},{key:"startUpload",value:function(L){if(this._retryCount=0,this.options,this._state==i.VODSTATE.START||this._state==i.VODSTATE.EXPIRE)return void console.log("already started or expired");if(this._initState(),this._curIndex=this._findUploadIndex(),this._curIndex==-1)return void(this._state=i.VODSTATE.END);var z=this._uploadList[this._curIndex];this._ossUpload=null,this._upload(z),this._state=i.VODSTATE.START}},{key:"nextUpload",value:function(){var L=this.options;if(this._state==i.VODSTATE.START)if(this._curIndex=this._findUploadIndex(),this._curIndex!=-1){var z=this._uploadList[this._curIndex];this._ossUpload=null,this._upload(z)}else{this._state=i.VODSTATE.END;try{L.onUploadEnd&&L.onUploadEnd(z)}catch(W){console.log(W)}}}},{key:"clear",value:function(L){for(var z=this.options,W=0,G=0;G<this._uploadList.length;G++)z.uploadList[G].state==i.UPLOADSTATE.SUCCESS&&W++,this._uploadList[G].state==L&&(z.uploadList.splice(G,1),G--);z.onClear&&z.onClear(z.uploadList.length,W)}},{key:"stopUpload",value:function(){if((this._state==i.VODSTATE.START||this._state==i.VODSTATE.FAILURE||this._curIndex==-1)&&this._curIndex!=-1){var L=this._uploadList[this._curIndex];this._state=i.VODSTATE.STOP,L.state=i.UPLOADSTATE.STOPED,this._changeState(L,i.UPLOADSTATE.STOPED),this._ossUpload.cancel()}}},{key:"resumeUploadWithAuth",value:function(L){var z=this;if(!L)return!1;var W=JSON.parse(o.default.decode(L));return!!(W.AccessKeyId&&W.AccessKeySecret&&W.SecurityToken&&W.Expiration)&&z.resumeUploadWithToken(W.AccessKeyId,W.AccessKeySecret,W.SecurityToken,W.Expiration)}},{key:"resumeUploadWithToken",value:function(L,z,W,G){if(this.options,!(L&&z&&W&&G))return!1;if(this._state!=i.VODSTATE.EXPIRE)return!1;if(this._curIndex==-1)return!1;var Z="";return this._uploadList.length>this._curIndex&&(Z=this._uploadList[this._curIndex]),Z&&(this.init(L,z,W,G),this._state=i.VODSTATE.START,this._ossUpload=null,this._uploadCore(Z,Z.retry),Z.retry=!1),!0}},{key:"resumeUploadWithSTSToken",value:function(L,z,W){if(this._curIndex==-1)return!1;if(this._state!=i.VODSTATE.EXPIRE)return!1;if(this._uploadList.length>this._curIndex){var G=this._uploadList[this._curIndex];G.object?this._refreshSTSTokenUpload(G,L,z,W):this.setSTSToken(G,L,z,W)}}},{key:"setSTSTokenDirectlyUpload",value:function(L,z,W,G,Z){if(!(z&&W&&G&&Z))return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken and expiration should not be empty."),!1;this._ut="oss";var U=L;this.init(z,W,G,Z),U.endpoint=U._endpoint,U.bucket=U._bucket,U.object=U._object,this._ossUpload=null,this._uploadCore(U,L.retry),L.retry=!1}},{key:"setSTSToken",value:function(L,z,W,G){if(!z||!W||!G)return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken should not be empty."),!1;this._ut="vod",this._uploadWay="sts";var Z=L.videoInfo,U={accessKeyId:z,securityToken:G,accessKeySecret:W,fileName:L.file.name,title:Z.Title,requestId:L.ri,region:this.options.region};Z.ImageType&&(U.imageType=Z.ImageType),Z.ImageExt&&(U.imageExt=Z.ImageExt),Z.FileSize&&(U.fileSize=Z.FileSize),Z.Description&&(U.description=Z.Description),Z.CateId&&(U.cateId=Z.CateId),Z.Tags&&(U.tags=Z.Tags),Z.TemplateGroupId&&(U.templateGroupId=Z.TemplateGroupId),Z.StorageLocation&&(U.storageLocation=Z.StorageLocation),Z.CoverURL&&(U.coverUrl=Z.CoverURL),Z.TransCodeMode&&(U.transCodeMode=Z.TransCodeMode),Z.UserData&&(U.userData=Z.UserData);var ee=this,$="getUploadAuth";L.videoId?(U.videoId=L.videoId,$="refreshUploadAuth"):L.isImage&&($="getImageUploadAuth"),m.default[$](U,function(q){L.videoId=q.VideoId?q.VideoId:L.videoId,ee.setUploadAuthAndAddress(L,q.UploadAuth,q.UploadAddress),ee._state=i.VODSTATE.START},function(q){ee._error(L,{name:q.Code,code:q.Code,message:q.Message,requestId:q.RequestId})})}},{key:"setUploadAuthAndAddress",value:function(L,z,W,G){if(!L||!z||!W)return!1;var Z=JSON.parse(o.default.decode(z));if(!(Z.AccessKeyId&&Z.AccessKeySecret&&Z.SecurityToken&&Z.Expiration))return console.error("uploadauth is invalid"),!1;var U={},ee=L;if(W){if(U=JSON.parse(o.default.decode(W)),!U.Endpoint||!U.Bucket||!U.FileName)return console.error("uploadAddress is invalid"),!1}else U.Endpoint=ee.endpoint,U.Bucket=ee.bucket,U.FileName=ee.object;this._ut="vod",this._uploadWay="vod",this.options.region=Z.Region||this.options.region,this.init(Z.AccessKeyId,Z.AccessKeySecret,Z.SecurityToken,Z.Expiration),ee.endpoint=ee._endpoint?ee._endpoint:U.Endpoint,ee.bucket=ee._bucket?ee._bucket:U.Bucket,ee.object=ee._object?ee._object:U.FileName,ee.region=this.options.region,G&&(ee.videoId=G),this._ossUpload=null,this._uploadCore(ee,L.retry),L.retry=!1}},{key:"_refreshSTSTokenUpload",value:function(L,z,W,G){if(!z||!W||!G)return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken should not be empty."),!1;var Z={accessKeyId:z,securityToken:G,accessKeySecret:W,videoId:L.object,requestId:L.ri,region:this.options.region},U=this,ee="refreshUploadAuth";L.isImage&&(ee="getImageUploadAuth"),m.default[ee](Z,function($){U.setUploadAuthAndAddress(L,$.UploadAuth,UploadAddress),U._state=i.VODSTATE.START},function($){U._error(L,{name:$.Code,code:$.Code,message:$.Message,requestId:$.RequestId})})}},{key:"_upload",value:function(L){var z=arguments.length>1&&arguments[1]!==void 0&&arguments[1],W=this.options;if(L.retry=z,W.onUploadstarted&&!z)try{var G=this._getCheckoutpoint(L);G&&G.state!=i.UPLOADSTATE.UPLOADING&&(L.checkpoint=G,L.videoId=G.videoId),W.onUploadstarted(L)}catch(Z){console.log(Z)}}},{key:"_uploadCore",value:function(L){if(arguments.length>1&&arguments[1]!==void 0&&arguments[1],!this._ossCreditor.accessKeyId||!this._ossCreditor.accessKeySecret||!this._ossCreditor.securityToken)throw new Error("AccessKeyId\u3001AccessKeySecret\u3001securityToken should not be null");if(L.state=i.UPLOADSTATE.UPLOADING,!this._ossUpload){L.endpoint=L.endpoint||"http://oss-cn-hangzhou.aliyuncs.com";var z=this;this._ossUpload=new u.default({bucket:L.bucket,endpoint:L.endpoint,AccessKeyId:this._ossCreditor.accessKeyId,AccessKeySecret:this._ossCreditor.accessKeySecret,SecurityToken:this._ossCreditor.securityToken,timeout:this.options.timeout,cname:this.options.cname},{onerror:function(R,I){z._error.call(z,R,I)},oncomplete:function(R,I){z._complete.call(z,R,I)},onprogress:function(R,I,F){z._progress.call(z,R,I,F)}})}var W=E.default.getFileType(L.file.name),G=this._getCheckoutpoint(L),Z="",U="";G&&G.checkpoint&&(U=G.state,Z=G.videoId,G=G.checkpoint),G&&Z==L.videoId&&U!=i.UPLOADSTATE.UPLOADING&&(G.file=L.file,L.checkpoint=G,G.uploadId);var ee=this._adjustPartSize(L);this._reportLog("20002",L,{ft:W,fs:L.file.size,bu:L.bucket,ok:L.object,vid:L.videoId||"",fn:L.file.name,fw:null,fh:null,ps:ee});var $={headers:{"x-oss-notification":L.userData?L.userData:""},partSize:ee,parallel:this.options.parallel};this._ossUpload.upload(L,$)}},{key:"_findUploadIndex",value:function(){for(var L=-1,z=0;z<this._uploadList.length;z++)if(this._uploadList[z].state==i.UPLOADSTATE.INIT){L=z;break}return L}},{key:"_error",value:function(L,z){if(z.name=="cancel")try{this.options.onUploadCanceled(L,z)}catch(G){console.log(G)}else{if(z.message.indexOf("InvalidAccessKeyIdError")>0||z.name=="SignatureDoesNotMatchError"||z.code=="SecurityTokenExpired"||z.code=="InvalidSecurityToken.Expired"||z.code=="InvalidAccessKeyId"&&this._ossCreditor.securityToken){if(this.options.onUploadTokenExpired){this._state=i.VODSTATE.EXPIRE,L.state=i.UPLOADSTATE.FAIlURE;try{this.options.onUploadTokenExpired(L,z)}catch(G){console.log(G)}}return}if((z.name=="RequestTimeoutError"||z.name=="ConnectionTimeout"||z.name=="ConnectionTimeoutError")&&this._retryTotal>this._retryCount){var W=this;return setTimeout(function(){W._uploadCore(L,!0)},1e3*W._retryDuration),void this._retryCount++}z.name=="NoSuchUploadError"&&this._removeCheckoutpoint(L),this._handleError(L,z)}}},{key:"_handleError",value:function(L,z){var W=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],G=i.UPLOADSTATE.FAIlURE;if(L.state!=i.UPLOADSTATE.CANCELED&&(L.state=i.UPLOADSTATE.FAIlURE,this._state=i.VODSTATE.FAILURE,this.options.onUploadFailed&&z&&z.code&&z.message))try{this.options.onUploadFailed(L,z.code,z.message)}catch(U){console.log(U)}if(W&&this._changeState(L,G),this._reportLog("20006",L,{code:z.name,message:z.message,requestId:z.requestId,fs:L.file.size,bu:L.bucket,ok:L.object,fn:L.file.name}),this._reportLog("20004",L,{requestId:z.requestId,fs:L.file.size,bu:L.bucket,ok:L.object,fn:L.file.name}),L.ri=T.default.create(),this._findUploadIndex()!=-1){var Z=this;this._state=i.VODSTATE.START,setTimeout(function(){Z.nextUpload()},100)}}},{key:"_complete",value:function(L,z){if(L.state=i.UPLOADSTATE.SUCCESS,this.options.onUploadSucceed)try{this.options.onUploadSucceed(L)}catch(Z){console.log(Z)}var W=0;z&&z.res&&z.res.headers&&(W=z.res.headers["x-oss-request-id"]),this._removeCheckoutpoint(L);var G=this;setTimeout(function(){G.nextUpload()},100),this._retryCount=0,this._reportLog("20003",L,{requestId:W})}},{key:"_progress",value:function(L,z,W){if(this.options.onUploadProgress)try{L.loaded=z.loaded,this.options.onUploadProgress(L,z.total,z.loaded)}catch(R){console.log(R)}var G=z.checkpoint,Z=0;G&&(L.checkpoint=G,this._saveCheckoutpoint(L,G,i.UPLOADSTATE.UPLOADING),Z=G.uploadId),this._retryCount=0;var U=this._getPortNumber(G),ee=0;if(W&&W.headers&&(ee=W.headers["x-oss-request-id"]),z.loaded!=0&&this._reportLog("20007",L,{pn:U,requestId:ee}),z.loaded!=1&&this._reportLog("20005",L,{UploadId:Z,pn:U+1,pr:L.retry?1:0,fs:L.file.size,bu:L.bucket,ok:L.object,fn:L.file.name}),!this._invalidUserId&&!L.isImage&&this._ut=="vod"&&this.options.enableUploadProgress){var $={file:L.file,checkpoint:z,userId:this.options.userId,videoId:L.videoId,region:this.options.region,fileHash:L.fileHash};try{var q=this;k.default.upload($,function(){},function(R){if((R=JSON.parse(R))&&R.Code=="InvalidParameter"&&R.Message.indexOf("UserId")>0){q._invalidUserId=!0;var I=R.Message+"\uFF0C\u6B63\u786E\u8D26\u53F7ID(userId)\u8BF7\u53C2\u8003\uFF1Ahttps://help.aliyun.com/knowledge_detail/37196.html";console.log(I)}})}catch(R){console.log(R)}}}},{key:"_getPortNumber",value:function(L){if(L){var z=L.doneParts;if(z&&z.length>0)return z[z.length-1].number}return 0}},{key:"_removeCheckoutpoint",value:function(L){var z=this._getCheckoutpointKey(L);l.default.remove(z)}},{key:"_getCheckoutpoint",value:function(L){var z=this._getCheckoutpointKey(L),W=l.default.get(z);if(W)try{return JSON.parse(W)}catch(G){}return""}},{key:"_saveCheckoutpoint",value:function(L,z,W){if(z){var G=this._getCheckoutpointKey(L),Z=L.file,U={fileName:Z.name,lastModified:Z.lastModified,size:Z.size,object:L.object,videoId:L.videoId,bucket:L.bucket,endpoint:L.endpoint,checkpoint:z,loaded:L.loaded,state:W};l.default.set(G,JSON.stringify(U))}}},{key:"_changeState",value:function(L,z){var W=this._getCheckoutpoint(L);W&&((this._onbeforeunload=!0)&&(z=i.UPLOADSTATE.STOPED),this._saveCheckoutpoint(L,W.checkpoint,z))}},{key:"_getCheckoutpointKey",value:function(L){return"upload_"+L.file.lastModified+"_"+L.file.name+"_"+L.file.size}},{key:"_getCheckoutpointFromCloud",value:function(L,z,W){var G={userId:this.options.userId,uploadInfoList:[{FileName:L.file.name,FileSize:L.file.size,FileCreateTime:L.file.lastModified,FileHash:L.fileHash}],region:this.options.region};k.default.get(G,function(Z){z(Z)},W)}},{key:"_reportLog",value:function(L,z,W){W||(W={}),W.ri=z.ri,this._ut&&(W.ut=this._ut),this._log.log(L,W)}},{key:"_initEvent",value:function(){var L=this;window&&(window.onbeforeunload=function(z){if(L._onbeforeunload=!0,L._curIndex!=-1&&L._uploadList.length>L._curIndex){var W=L._uploadList[L._curIndex];L._changeState(W,i.UPLOADSTATE.STOPED)}})}},{key:"_initState",value:function(){for(var L=0;L<this._uploadList.length;L++){var z=this._uploadList[L];z.state!=i.UPLOADSTATE.FAIlURE&&z.state!=i.UPLOADSTATE.STOPED||(z.state=i.UPLOADSTATE.INIT)}this._state=i.VODSTATE.INIT}},{key:"_adjustPartSize",value:function(L){return L.file.size/this.options.partSize>1e4?L.file.size/9999:this.options.partSize}}]),D}());n.default=j},function(pe,n,A){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.UPLOADSTATE={INIT:"Ready",UPLOADING:"Uploading",SUCCESS:"Success",FAIlURE:"Failure",CANCELED:"Canceled",STOPED:"Stoped"},n.VODSTATE={INIT:"Init",START:"Start",STOP:"Stop",FAILURE:"Failure",EXPIRE:"Expire",END:"End"}},function(pe,n,A){"use strict";function v(e){return e&&e.__esModule?e:{default:e}}function h(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var y=function(){function e(o,r){for(var l=0;l<r.length;l++){var p=r[l];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(o,p.key,p)}}return function(o,r,l){return r&&e(o.prototype,r),l&&e(o,l),o}}(),i=A(3),s=A(17),d=(v(s),A(1)),u=(v(d),function(){function e(o,r){if(h(this,e),o){this._config=o,this.create(this._config),this._uploadInfo=null,this._callback={};var l=function(){};this._callback.onerror=r.onerror||l,this._callback.oncomplete=r.oncomplete||l,this._callback.onprogress=r.onprogress||l}}return y(e,[{key:"create",value:function(r){if(r.endpoint=r.endpoint||this._config.endpoint,r.bucket=r.bucket||this._config.bucket,!(r.AccessKeyId&&r.AccessKeySecret&&r.endpoint&&r.SecurityToken))throw new Error("AccessKeyId\u3001AccessKeySecret\u3001endpoint should not be null");var l={accessKeyId:r.AccessKeyId,accessKeySecret:r.AccessKeySecret,stsToken:r.SecurityToken,endpoint:r.endpoint||this._config.endpoint,bucket:r.bucket||this._config.bucket,secure:!0,cname:r.cname};r.timeout&&(l.timeout=r.timeout),this.oss=new OSS.Wrapper(l)}},{key:"abort",value:function(r){if(r.checkpoint){var l=r.checkpoint.uploadId;this.oss.abortMultipartUpload(r.object,l)}}},{key:"getVersion",value:function(){}},{key:"cancel",value:function(){this.oss.cancel&&this.oss.cancel()}},{key:"upload",value:function(r,l){this._uploadInfo=r;var p=this,c=function(f,T,S){return function(m){p._progress(f,T,S),m()}},x={parallel:l.parallel||this._config.parallel||i.UPLOADDEFAULT.PARALLEL,partSize:l.partSize||this._config.partSize||i.UPLOADDEFAULT.PARTSIZE,progress:c};l.headers&&(x.headers=l.headers),r.checkpoint&&(x.checkpoint=r.checkpoint),r.bucket||(this.oss.options.bucket=r.bucket),r.endpoint||(this.oss.options.endpoint=r.endpoint),this.oss.multipartUpload(r.object,r.file,x).then(function(E,f){p._complete(E)}).catch(function(E){p.oss.cancel&&(p.oss&&p.oss.isCancel()?console.log("oss is cancel as error"):p.oss.cancel()),p._error(E)})}},{key:"header",value:function(r,l,p){this.oss.get(r.object).then(function(c){l(c)}).catch(function(c){p(c)})}},{key:"_progress",value:function(r,l,p){this._callback.onprogress(this._uploadInfo,{loaded:r,total:this._uploadInfo.file.size,checkpoint:l},p)}},{key:"_error",value:function(r){this._callback.onerror(this._uploadInfo,r)}},{key:"_complete",value:function(r){this._callback.oncomplete(this._uploadInfo,r)}}]),e}());n.default=u},function(pe,n,A){"use strict";function v(i,s){if(!(i instanceof s))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var h=function(){function i(s,d){for(var u=0;u<d.length;u++){var e=d[u];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(s,e.key,e)}}return function(s,d,u){return d&&i(s.prototype,d),u&&i(s,u),s}}(),y=function(){function i(){v(this,i)}return h(i,null,[{key:"format",value:function(d){if(arguments.length<2)return null;for(var u=arguments[1],e=1;e<arguments.length;e++){var o=new RegExp("\\{"+(e-1)+"\\}","gm");u=u.replace(o,arguments[e+1])}return{code:d,message:u}}},{key:"CODE",get:function(){return{SUCCESS:"Successful",EmptyValue:"InvalidParameter.EmptyValue",STSInvalid:"InvalidParameter.TokenInvalid",ReadFileError:"ReadFileError",FILEDUPLICATION:"FileDuplication",UploadALEADRYSTARTED:"UploadAlearyStarted"}}},{key:"MESSAGE",get:function(){return{SUCCESS:"Successful",EmptyValue:"\u53C2\u6570 {0} \u4E0D\u80FD\u4E3A\u7A7A\u3002",STSInvalid:"STS\u53C2\u6570\u975E\u6CD5\uFF0C accessKeyId\u3001accessKeySecret\u3001secretToken\u3001expireTime\u90FD\u4E0D\u80FD\u4E3A\u7A7A\u3002",ReadFileError:"\u8BFB\u53D6\u6587\u4EF6{0}{1}\u5931\u8D25.",FILEDUPLICATION:"\u6587\u4EF6\u91CD\u590D\u6DFB\u52A0 {0}",UploadALEADRYSTARTED:"\u91CD\u590D\u5F00\u59CB."}}}]),i}();n.default=y},function(pe,n,A){"use strict";(function(v){function h(s,d){if(!(s instanceof d))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var y=function(){function s(d,u){for(var e=0;e<u.length;e++){var o=u[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(d,o.key,o)}}return function(d,u,e){return u&&s(d.prototype,u),e&&s(d,e),d}}(),i=function(){function s(){h(this,s)}return y(s,null,[{key:"encode",value:function(u){return new v(u).toString("base64")}},{key:"decode",value:function(u){return new v(u,"base64").toString()}}]),s}();n.default=i}).call(n,A(19).Buffer)},function(pe,n,A){"use strict";(function(v){function h(){return i.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function y(O,t){if(h()<t)throw new RangeError("Invalid typed array length");return i.TYPED_ARRAY_SUPPORT?(O=new Uint8Array(t),O.__proto__=i.prototype):(O===null&&(O=new i(t)),O.length=t),O}function i(O,t,a){if(!(i.TYPED_ARRAY_SUPPORT||this instanceof i))return new i(O,t,a);if(typeof O=="number"){if(typeof t=="string")throw new Error("If encoding is specified then the first argument must be a string");return e(this,O)}return s(this,O,t,a)}function s(O,t,a,P){if(typeof t=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&t instanceof ArrayBuffer?l(O,t,a,P):typeof t=="string"?o(O,t,a):p(O,t)}function d(O){if(typeof O!="number")throw new TypeError('"size" argument must be a number');if(O<0)throw new RangeError('"size" argument must not be negative')}function u(O,t,a,P){return d(t),t<=0?y(O,t):a!==void 0?typeof P=="string"?y(O,t).fill(a,P):y(O,t).fill(a):y(O,t)}function e(O,t){if(d(t),O=y(O,t<0?0:0|c(t)),!i.TYPED_ARRAY_SUPPORT)for(var a=0;a<t;++a)O[a]=0;return O}function o(O,t,a){if(typeof a=="string"&&a!==""||(a="utf8"),!i.isEncoding(a))throw new TypeError('"encoding" must be a valid string encoding');var P=0|E(t,a);O=y(O,P);var g=O.write(t,a);return g!==P&&(O=O.slice(0,g)),O}function r(O,t){var a=t.length<0?0:0|c(t.length);O=y(O,a);for(var P=0;P<a;P+=1)O[P]=255&t[P];return O}function l(O,t,a,P){if(t.byteLength,a<0||t.byteLength<a)throw new RangeError("'offset' is out of bounds");if(t.byteLength<a+(P||0))throw new RangeError("'length' is out of bounds");return t=a===void 0&&P===void 0?new Uint8Array(t):P===void 0?new Uint8Array(t,a):new Uint8Array(t,a,P),i.TYPED_ARRAY_SUPPORT?(O=t,O.__proto__=i.prototype):O=r(O,t),O}function p(O,t){if(i.isBuffer(t)){var a=0|c(t.length);return O=y(O,a),O.length===0||t.copy(O,0,0,a),O}if(t){if(typeof ArrayBuffer!="undefined"&&t.buffer instanceof ArrayBuffer||"length"in t)return typeof t.length!="number"||ie(t.length)?y(O,0):r(O,t);if(t.type==="Buffer"&&re(t.data))return r(O,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function c(O){if(O>=h())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+h().toString(16)+" bytes");return 0|O}function x(O){return+O!=O&&(O=0),i.alloc(+O)}function E(O,t){if(i.isBuffer(O))return O.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(O)||O instanceof ArrayBuffer))return O.byteLength;typeof O!="string"&&(O=""+O);var a=O.length;if(a===0)return 0;for(var P=!1;;)switch(t){case"ascii":case"latin1":case"binary":return a;case"utf8":case"utf-8":case void 0:return te(O).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*a;case"hex":return a>>>1;case"base64":return Q(O).length;default:if(P)return te(O).length;t=(""+t).toLowerCase(),P=!0}}function f(O,t,a){var P=!1;if((t===void 0||t<0)&&(t=0),t>this.length)return"";if((a===void 0||a>this.length)&&(a=this.length),a<=0)return"";if(a>>>=0,t>>>=0,a<=t)return"";for(O||(O="utf8");;)switch(O){case"hex":return Z(this,t,a);case"utf8":case"utf-8":return L(this,t,a);case"ascii":return W(this,t,a);case"latin1":case"binary":return G(this,t,a);case"base64":return M(this,t,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,t,a);default:if(P)throw new TypeError("Unknown encoding: "+O);O=(O+"").toLowerCase(),P=!0}}function T(O,t,a){var P=O[t];O[t]=O[a],O[a]=P}function S(O,t,a,P,g){if(O.length===0)return-1;if(typeof a=="string"?(P=a,a=0):a>2147483647?a=2147483647:a<-2147483648&&(a=-2147483648),a=+a,isNaN(a)&&(a=g?0:O.length-1),a<0&&(a=O.length+a),a>=O.length){if(g)return-1;a=O.length-1}else if(a<0){if(!g)return-1;a=0}if(typeof t=="string"&&(t=i.from(t,P)),i.isBuffer(t))return t.length===0?-1:m(O,t,a,P,g);if(typeof t=="number")return t&=255,i.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?g?Uint8Array.prototype.indexOf.call(O,t,a):Uint8Array.prototype.lastIndexOf.call(O,t,a):m(O,[t],a,P,g);throw new TypeError("val must be string, number or Buffer")}function m(O,t,a,P,g){function w(he,oe){return V===1?he[oe]:he.readUInt16BE(oe*V)}var V=1,K=O.length,fe=t.length;if(P!==void 0&&((P=String(P).toLowerCase())==="ucs2"||P==="ucs-2"||P==="utf16le"||P==="utf-16le")){if(O.length<2||t.length<2)return-1;V=2,K/=2,fe/=2,a/=2}var le;if(g){var me=-1;for(le=a;le<K;le++)if(w(O,le)===w(t,me===-1?0:le-me)){if(me===-1&&(me=le),le-me+1===fe)return me*V}else me!==-1&&(le-=le-me),me=-1}else for(a+fe>K&&(a=K-fe),le=a;le>=0;le--){for(var ge=!0,ve=0;ve<fe;ve++)if(w(O,le+ve)!==w(t,ve)){ge=!1;break}if(ge)return le}return-1}function b(O,t,a,P){a=Number(a)||0;var g=O.length-a;P?(P=Number(P))>g&&(P=g):P=g;var w=t.length;if(w%2!=0)throw new TypeError("Invalid hex string");P>w/2&&(P=w/2);for(var V=0;V<P;++V){var K=parseInt(t.substr(2*V,2),16);if(isNaN(K))return V;O[a+V]=K}return V}function k(O,t,a,P){return J(te(t,O.length-a),O,a,P)}function C(O,t,a,P){return J(ue(t),O,a,P)}function _(O,t,a,P){return C(O,t,a,P)}function j(O,t,a,P){return J(Q(t),O,a,P)}function D(O,t,a,P){return J(de(t,O.length-a),O,a,P)}function M(O,t,a){return t===0&&a===O.length?X.fromByteArray(O):X.fromByteArray(O.slice(t,a))}function L(O,t,a){a=Math.min(O.length,a);for(var P=[],g=t;g<a;){var w=O[g],V=null,K=w>239?4:w>223?3:w>191?2:1;if(g+K<=a){var fe,le,me,ge;switch(K){case 1:w<128&&(V=w);break;case 2:fe=O[g+1],(192&fe)==128&&(ge=(31&w)<<6|63&fe)>127&&(V=ge);break;case 3:fe=O[g+1],le=O[g+2],(192&fe)==128&&(192&le)==128&&(ge=(15&w)<<12|(63&fe)<<6|63&le)>2047&&(ge<55296||ge>57343)&&(V=ge);break;case 4:fe=O[g+1],le=O[g+2],me=O[g+3],(192&fe)==128&&(192&le)==128&&(192&me)==128&&(ge=(15&w)<<18|(63&fe)<<12|(63&le)<<6|63&me)>65535&&ge<1114112&&(V=ge)}}V===null?(V=65533,K=1):V>65535&&(V-=65536,P.push(V>>>10&1023|55296),V=56320|1023&V),P.push(V),g+=K}return z(P)}function z(O){var t=O.length;if(t<=ne)return String.fromCharCode.apply(String,O);for(var a="",P=0;P<t;)a+=String.fromCharCode.apply(String,O.slice(P,P+=ne));return a}function W(O,t,a){var P="";a=Math.min(O.length,a);for(var g=t;g<a;++g)P+=String.fromCharCode(127&O[g]);return P}function G(O,t,a){var P="";a=Math.min(O.length,a);for(var g=t;g<a;++g)P+=String.fromCharCode(O[g]);return P}function Z(O,t,a){var P=O.length;(!t||t<0)&&(t=0),(!a||a<0||a>P)&&(a=P);for(var g="",w=t;w<a;++w)g+=ae(O[w]);return g}function U(O,t,a){for(var P=O.slice(t,a),g="",w=0;w<P.length;w+=2)g+=String.fromCharCode(P[w]+256*P[w+1]);return g}function ee(O,t,a){if(O%1!=0||O<0)throw new RangeError("offset is not uint");if(O+t>a)throw new RangeError("Trying to access beyond buffer length")}function $(O,t,a,P,g,w){if(!i.isBuffer(O))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>g||t<w)throw new RangeError('"value" argument is out of bounds');if(a+P>O.length)throw new RangeError("Index out of range")}function q(O,t,a,P){t<0&&(t=65535+t+1);for(var g=0,w=Math.min(O.length-a,2);g<w;++g)O[a+g]=(t&255<<8*(P?g:1-g))>>>8*(P?g:1-g)}function R(O,t,a,P){t<0&&(t=4294967295+t+1);for(var g=0,w=Math.min(O.length-a,4);g<w;++g)O[a+g]=t>>>8*(P?g:3-g)&255}function I(O,t,a,P,g,w){if(a+P>O.length)throw new RangeError("Index out of range");if(a<0)throw new RangeError("Index out of range")}function F(O,t,a,P,g){return g||I(O,t,a,4,34028234663852886e22,-34028234663852886e22),B.write(O,t,a,P,23,4),a+4}function N(O,t,a,P,g){return g||I(O,t,a,8,17976931348623157e292,-17976931348623157e292),B.write(O,t,a,P,52,8),a+8}function H(O){if(O=Y(O).replace(ce,""),O.length<2)return"";for(;O.length%4!=0;)O+="=";return O}function Y(O){return O.trim?O.trim():O.replace(/^\s+|\s+$/g,"")}function ae(O){return O<16?"0"+O.toString(16):O.toString(16)}function te(O,t){t=t||1/0;for(var a,P=O.length,g=null,w=[],V=0;V<P;++V){if((a=O.charCodeAt(V))>55295&&a<57344){if(!g){if(a>56319){(t-=3)>-1&&w.push(239,191,189);continue}if(V+1===P){(t-=3)>-1&&w.push(239,191,189);continue}g=a;continue}if(a<56320){(t-=3)>-1&&w.push(239,191,189),g=a;continue}a=65536+(g-55296<<10|a-56320)}else g&&(t-=3)>-1&&w.push(239,191,189);if(g=null,a<128){if((t-=1)<0)break;w.push(a)}else if(a<2048){if((t-=2)<0)break;w.push(a>>6|192,63&a|128)}else if(a<65536){if((t-=3)<0)break;w.push(a>>12|224,a>>6&63|128,63&a|128)}else{if(!(a<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;w.push(a>>18|240,a>>12&63|128,a>>6&63|128,63&a|128)}}return w}function ue(O){for(var t=[],a=0;a<O.length;++a)t.push(255&O.charCodeAt(a));return t}function de(O,t){for(var a,P,g,w=[],V=0;V<O.length&&!((t-=2)<0);++V)a=O.charCodeAt(V),P=a>>8,g=a%256,w.push(g),w.push(P);return w}function Q(O){return X.toByteArray(H(O))}function J(O,t,a,P){for(var g=0;g<P&&!(g+a>=t.length||g>=O.length);++g)t[g+a]=O[g];return g}function ie(O){return O!==O}/*!
|
||
* The buffer module from node.js, for the browser.
|
||
*
|
||
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
||
* @license MIT
|
||
*/var X=A(21),B=A(22),re=A(23);n.Buffer=i,n.SlowBuffer=x,n.INSPECT_MAX_BYTES=50,i.TYPED_ARRAY_SUPPORT=v.TYPED_ARRAY_SUPPORT!==void 0?v.TYPED_ARRAY_SUPPORT:function(){try{var O=new Uint8Array(1);return O.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},O.foo()===42&&typeof O.subarray=="function"&&O.subarray(1,1).byteLength===0}catch(t){return!1}}(),n.kMaxLength=h(),i.poolSize=8192,i._augment=function(O){return O.__proto__=i.prototype,O},i.from=function(O,t,a){return s(null,O,t,a)},i.TYPED_ARRAY_SUPPORT&&(i.prototype.__proto__=Uint8Array.prototype,i.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&i[Symbol.species]===i&&Object.defineProperty(i,Symbol.species,{value:null,configurable:!0})),i.alloc=function(O,t,a){return u(null,O,t,a)},i.allocUnsafe=function(O){return e(null,O)},i.allocUnsafeSlow=function(O){return e(null,O)},i.isBuffer=function(O){return!(O==null||!O._isBuffer)},i.compare=function(O,t){if(!i.isBuffer(O)||!i.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(O===t)return 0;for(var a=O.length,P=t.length,g=0,w=Math.min(a,P);g<w;++g)if(O[g]!==t[g]){a=O[g],P=t[g];break}return a<P?-1:P<a?1:0},i.isEncoding=function(O){switch(String(O).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}},i.concat=function(O,t){if(!re(O))throw new TypeError('"list" argument must be an Array of Buffers');if(O.length===0)return i.alloc(0);var a;if(t===void 0)for(t=0,a=0;a<O.length;++a)t+=O[a].length;var P=i.allocUnsafe(t),g=0;for(a=0;a<O.length;++a){var w=O[a];if(!i.isBuffer(w))throw new TypeError('"list" argument must be an Array of Buffers');w.copy(P,g),g+=w.length}return P},i.byteLength=E,i.prototype._isBuffer=!0,i.prototype.swap16=function(){var O=this.length;if(O%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<O;t+=2)T(this,t,t+1);return this},i.prototype.swap32=function(){var O=this.length;if(O%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<O;t+=4)T(this,t,t+3),T(this,t+1,t+2);return this},i.prototype.swap64=function(){var O=this.length;if(O%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<O;t+=8)T(this,t,t+7),T(this,t+1,t+6),T(this,t+2,t+5),T(this,t+3,t+4);return this},i.prototype.toString=function(){var O=0|this.length;return O===0?"":arguments.length===0?L(this,0,O):f.apply(this,arguments)},i.prototype.equals=function(O){if(!i.isBuffer(O))throw new TypeError("Argument must be a Buffer");return this===O||i.compare(this,O)===0},i.prototype.inspect=function(){var O="",t=n.INSPECT_MAX_BYTES;return this.length>0&&(O=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(O+=" ... ")),"<Buffer "+O+">"},i.prototype.compare=function(O,t,a,P,g){if(!i.isBuffer(O))throw new TypeError("Argument must be a Buffer");if(t===void 0&&(t=0),a===void 0&&(a=O?O.length:0),P===void 0&&(P=0),g===void 0&&(g=this.length),t<0||a>O.length||P<0||g>this.length)throw new RangeError("out of range index");if(P>=g&&t>=a)return 0;if(P>=g)return-1;if(t>=a)return 1;if(t>>>=0,a>>>=0,P>>>=0,g>>>=0,this===O)return 0;for(var w=g-P,V=a-t,K=Math.min(w,V),fe=this.slice(P,g),le=O.slice(t,a),me=0;me<K;++me)if(fe[me]!==le[me]){w=fe[me],V=le[me];break}return w<V?-1:V<w?1:0},i.prototype.includes=function(O,t,a){return this.indexOf(O,t,a)!==-1},i.prototype.indexOf=function(O,t,a){return S(this,O,t,a,!0)},i.prototype.lastIndexOf=function(O,t,a){return S(this,O,t,a,!1)},i.prototype.write=function(O,t,a,P){if(t===void 0)P="utf8",a=this.length,t=0;else if(a===void 0&&typeof t=="string")P=t,a=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(a)?(a|=0,P===void 0&&(P="utf8")):(P=a,a=void 0)}var g=this.length-t;if((a===void 0||a>g)&&(a=g),O.length>0&&(a<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");P||(P="utf8");for(var w=!1;;)switch(P){case"hex":return b(this,O,t,a);case"utf8":case"utf-8":return k(this,O,t,a);case"ascii":return C(this,O,t,a);case"latin1":case"binary":return _(this,O,t,a);case"base64":return j(this,O,t,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,O,t,a);default:if(w)throw new TypeError("Unknown encoding: "+P);P=(""+P).toLowerCase(),w=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ne=4096;i.prototype.slice=function(O,t){var a=this.length;O=~~O,t=t===void 0?a:~~t,O<0?(O+=a)<0&&(O=0):O>a&&(O=a),t<0?(t+=a)<0&&(t=0):t>a&&(t=a),t<O&&(t=O);var P;if(i.TYPED_ARRAY_SUPPORT)P=this.subarray(O,t),P.__proto__=i.prototype;else{var g=t-O;P=new i(g,void 0);for(var w=0;w<g;++w)P[w]=this[w+O]}return P},i.prototype.readUIntLE=function(O,t,a){O|=0,t|=0,a||ee(O,t,this.length);for(var P=this[O],g=1,w=0;++w<t&&(g*=256);)P+=this[O+w]*g;return P},i.prototype.readUIntBE=function(O,t,a){O|=0,t|=0,a||ee(O,t,this.length);for(var P=this[O+--t],g=1;t>0&&(g*=256);)P+=this[O+--t]*g;return P},i.prototype.readUInt8=function(O,t){return t||ee(O,1,this.length),this[O]},i.prototype.readUInt16LE=function(O,t){return t||ee(O,2,this.length),this[O]|this[O+1]<<8},i.prototype.readUInt16BE=function(O,t){return t||ee(O,2,this.length),this[O]<<8|this[O+1]},i.prototype.readUInt32LE=function(O,t){return t||ee(O,4,this.length),(this[O]|this[O+1]<<8|this[O+2]<<16)+16777216*this[O+3]},i.prototype.readUInt32BE=function(O,t){return t||ee(O,4,this.length),16777216*this[O]+(this[O+1]<<16|this[O+2]<<8|this[O+3])},i.prototype.readIntLE=function(O,t,a){O|=0,t|=0,a||ee(O,t,this.length);for(var P=this[O],g=1,w=0;++w<t&&(g*=256);)P+=this[O+w]*g;return g*=128,P>=g&&(P-=Math.pow(2,8*t)),P},i.prototype.readIntBE=function(O,t,a){O|=0,t|=0,a||ee(O,t,this.length);for(var P=t,g=1,w=this[O+--P];P>0&&(g*=256);)w+=this[O+--P]*g;return g*=128,w>=g&&(w-=Math.pow(2,8*t)),w},i.prototype.readInt8=function(O,t){return t||ee(O,1,this.length),128&this[O]?-1*(255-this[O]+1):this[O]},i.prototype.readInt16LE=function(O,t){t||ee(O,2,this.length);var a=this[O]|this[O+1]<<8;return 32768&a?4294901760|a:a},i.prototype.readInt16BE=function(O,t){t||ee(O,2,this.length);var a=this[O+1]|this[O]<<8;return 32768&a?4294901760|a:a},i.prototype.readInt32LE=function(O,t){return t||ee(O,4,this.length),this[O]|this[O+1]<<8|this[O+2]<<16|this[O+3]<<24},i.prototype.readInt32BE=function(O,t){return t||ee(O,4,this.length),this[O]<<24|this[O+1]<<16|this[O+2]<<8|this[O+3]},i.prototype.readFloatLE=function(O,t){return t||ee(O,4,this.length),B.read(this,O,!0,23,4)},i.prototype.readFloatBE=function(O,t){return t||ee(O,4,this.length),B.read(this,O,!1,23,4)},i.prototype.readDoubleLE=function(O,t){return t||ee(O,8,this.length),B.read(this,O,!0,52,8)},i.prototype.readDoubleBE=function(O,t){return t||ee(O,8,this.length),B.read(this,O,!1,52,8)},i.prototype.writeUIntLE=function(O,t,a,P){(O=+O,t|=0,a|=0,!P)&&$(this,O,t,a,Math.pow(2,8*a)-1,0);var g=1,w=0;for(this[t]=255&O;++w<a&&(g*=256);)this[t+w]=O/g&255;return t+a},i.prototype.writeUIntBE=function(O,t,a,P){(O=+O,t|=0,a|=0,!P)&&$(this,O,t,a,Math.pow(2,8*a)-1,0);var g=a-1,w=1;for(this[t+g]=255&O;--g>=0&&(w*=256);)this[t+g]=O/w&255;return t+a},i.prototype.writeUInt8=function(O,t,a){return O=+O,t|=0,a||$(this,O,t,1,255,0),i.TYPED_ARRAY_SUPPORT||(O=Math.floor(O)),this[t]=255&O,t+1},i.prototype.writeUInt16LE=function(O,t,a){return O=+O,t|=0,a||$(this,O,t,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[t]=255&O,this[t+1]=O>>>8):q(this,O,t,!0),t+2},i.prototype.writeUInt16BE=function(O,t,a){return O=+O,t|=0,a||$(this,O,t,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[t]=O>>>8,this[t+1]=255&O):q(this,O,t,!1),t+2},i.prototype.writeUInt32LE=function(O,t,a){return O=+O,t|=0,a||$(this,O,t,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[t+3]=O>>>24,this[t+2]=O>>>16,this[t+1]=O>>>8,this[t]=255&O):R(this,O,t,!0),t+4},i.prototype.writeUInt32BE=function(O,t,a){return O=+O,t|=0,a||$(this,O,t,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[t]=O>>>24,this[t+1]=O>>>16,this[t+2]=O>>>8,this[t+3]=255&O):R(this,O,t,!1),t+4},i.prototype.writeIntLE=function(O,t,a,P){if(O=+O,t|=0,!P){var g=Math.pow(2,8*a-1);$(this,O,t,a,g-1,-g)}var w=0,V=1,K=0;for(this[t]=255&O;++w<a&&(V*=256);)O<0&&K===0&&this[t+w-1]!==0&&(K=1),this[t+w]=(O/V>>0)-K&255;return t+a},i.prototype.writeIntBE=function(O,t,a,P){if(O=+O,t|=0,!P){var g=Math.pow(2,8*a-1);$(this,O,t,a,g-1,-g)}var w=a-1,V=1,K=0;for(this[t+w]=255&O;--w>=0&&(V*=256);)O<0&&K===0&&this[t+w+1]!==0&&(K=1),this[t+w]=(O/V>>0)-K&255;return t+a},i.prototype.writeInt8=function(O,t,a){return O=+O,t|=0,a||$(this,O,t,1,127,-128),i.TYPED_ARRAY_SUPPORT||(O=Math.floor(O)),O<0&&(O=255+O+1),this[t]=255&O,t+1},i.prototype.writeInt16LE=function(O,t,a){return O=+O,t|=0,a||$(this,O,t,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[t]=255&O,this[t+1]=O>>>8):q(this,O,t,!0),t+2},i.prototype.writeInt16BE=function(O,t,a){return O=+O,t|=0,a||$(this,O,t,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[t]=O>>>8,this[t+1]=255&O):q(this,O,t,!1),t+2},i.prototype.writeInt32LE=function(O,t,a){return O=+O,t|=0,a||$(this,O,t,4,2147483647,-2147483648),i.TYPED_ARRAY_SUPPORT?(this[t]=255&O,this[t+1]=O>>>8,this[t+2]=O>>>16,this[t+3]=O>>>24):R(this,O,t,!0),t+4},i.prototype.writeInt32BE=function(O,t,a){return O=+O,t|=0,a||$(this,O,t,4,2147483647,-2147483648),O<0&&(O=4294967295+O+1),i.TYPED_ARRAY_SUPPORT?(this[t]=O>>>24,this[t+1]=O>>>16,this[t+2]=O>>>8,this[t+3]=255&O):R(this,O,t,!1),t+4},i.prototype.writeFloatLE=function(O,t,a){return F(this,O,t,!0,a)},i.prototype.writeFloatBE=function(O,t,a){return F(this,O,t,!1,a)},i.prototype.writeDoubleLE=function(O,t,a){return N(this,O,t,!0,a)},i.prototype.writeDoubleBE=function(O,t,a){return N(this,O,t,!1,a)},i.prototype.copy=function(O,t,a,P){if(a||(a=0),P||P===0||(P=this.length),t>=O.length&&(t=O.length),t||(t=0),P>0&&P<a&&(P=a),P===a)return 0;if(O.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(a<0||a>=this.length)throw new RangeError("sourceStart out of bounds");if(P<0)throw new RangeError("sourceEnd out of bounds");P>this.length&&(P=this.length),O.length-t<P-a&&(P=O.length-t+a);var g,w=P-a;if(this===O&&a<t&&t<P)for(g=w-1;g>=0;--g)O[g+t]=this[g+a];else if(w<1e3||!i.TYPED_ARRAY_SUPPORT)for(g=0;g<w;++g)O[g+t]=this[g+a];else Uint8Array.prototype.set.call(O,this.subarray(a,a+w),t);return w},i.prototype.fill=function(O,t,a,P){if(typeof O=="string"){if(typeof t=="string"?(P=t,t=0,a=this.length):typeof a=="string"&&(P=a,a=this.length),O.length===1){var g=O.charCodeAt(0);g<256&&(O=g)}if(P!==void 0&&typeof P!="string")throw new TypeError("encoding must be a string");if(typeof P=="string"&&!i.isEncoding(P))throw new TypeError("Unknown encoding: "+P)}else typeof O=="number"&&(O&=255);if(t<0||this.length<t||this.length<a)throw new RangeError("Out of range index");if(a<=t)return this;t>>>=0,a=a===void 0?this.length:a>>>0,O||(O=0);var w;if(typeof O=="number")for(w=t;w<a;++w)this[w]=O;else{var V=i.isBuffer(O)?O:te(new i(O,P).toString()),K=V.length;for(w=0;w<a-t;++w)this[w+t]=V[w%K]}return this};var ce=/[^+\/0-9A-Za-z-_]/g}).call(n,A(20))},function(pe,n){var A;A=function(){return this}();try{A=A||Function("return this")()||(0,eval)("this")}catch(v){typeof window=="object"&&(A=window)}pe.exports=A},function(pe,n,A){"use strict";function v(c){var x=c.length;if(x%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return c[x-2]==="="?2:c[x-1]==="="?1:0}function h(c){return 3*c.length/4-v(c)}function y(c){var x,E,f,T,S,m=c.length;T=v(c),S=new o(3*m/4-T),E=T>0?m-4:m;var b=0;for(x=0;x<E;x+=4)f=e[c.charCodeAt(x)]<<18|e[c.charCodeAt(x+1)]<<12|e[c.charCodeAt(x+2)]<<6|e[c.charCodeAt(x+3)],S[b++]=f>>16&255,S[b++]=f>>8&255,S[b++]=255&f;return T===2?(f=e[c.charCodeAt(x)]<<2|e[c.charCodeAt(x+1)]>>4,S[b++]=255&f):T===1&&(f=e[c.charCodeAt(x)]<<10|e[c.charCodeAt(x+1)]<<4|e[c.charCodeAt(x+2)]>>2,S[b++]=f>>8&255,S[b++]=255&f),S}function i(c){return u[c>>18&63]+u[c>>12&63]+u[c>>6&63]+u[63&c]}function s(c,x,E){for(var f,T=[],S=x;S<E;S+=3)f=(c[S]<<16)+(c[S+1]<<8)+c[S+2],T.push(i(f));return T.join("")}function d(c){for(var x,E=c.length,f=E%3,T="",S=[],m=0,b=E-f;m<b;m+=16383)S.push(s(c,m,m+16383>b?b:m+16383));return f===1?(x=c[E-1],T+=u[x>>2],T+=u[x<<4&63],T+="=="):f===2&&(x=(c[E-2]<<8)+c[E-1],T+=u[x>>10],T+=u[x>>4&63],T+=u[x<<2&63],T+="="),S.push(T),S.join("")}n.byteLength=h,n.toByteArray=y,n.fromByteArray=d;for(var u=[],e=[],o=typeof Uint8Array!="undefined"?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,p=r.length;l<p;++l)u[l]=r[l],e[r.charCodeAt(l)]=l;e["-".charCodeAt(0)]=62,e["_".charCodeAt(0)]=63},function(pe,n){n.read=function(A,v,h,y,i){var s,d,u=8*i-y-1,e=(1<<u)-1,o=e>>1,r=-7,l=h?i-1:0,p=h?-1:1,c=A[v+l];for(l+=p,s=c&(1<<-r)-1,c>>=-r,r+=u;r>0;s=256*s+A[v+l],l+=p,r-=8);for(d=s&(1<<-r)-1,s>>=-r,r+=y;r>0;d=256*d+A[v+l],l+=p,r-=8);if(s===0)s=1-o;else{if(s===e)return d?NaN:1/0*(c?-1:1);d+=Math.pow(2,y),s-=o}return(c?-1:1)*d*Math.pow(2,s-y)},n.write=function(A,v,h,y,i,s){var d,u,e,o=8*s-i-1,r=(1<<o)-1,l=r>>1,p=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,c=y?0:s-1,x=y?1:-1,E=v<0||v===0&&1/v<0?1:0;for(v=Math.abs(v),isNaN(v)||v===1/0?(u=isNaN(v)?1:0,d=r):(d=Math.floor(Math.log(v)/Math.LN2),v*(e=Math.pow(2,-d))<1&&(d--,e*=2),v+=d+l>=1?p/e:p*Math.pow(2,1-l),v*e>=2&&(d++,e/=2),d+l>=r?(u=0,d=r):d+l>=1?(u=(v*e-1)*Math.pow(2,i),d+=l):(u=v*Math.pow(2,l-1)*Math.pow(2,i),d=0));i>=8;A[h+c]=255&u,c+=x,u/=256,i-=8);for(d=d<<i|u,o+=i;o>0;A[h+c]=255&d,c+=x,d/=256,o-=8);A[h+c-x]|=128*E}},function(pe,n){var A={}.toString;pe.exports=Array.isArray||function(v){return A.call(v)=="[object Array]"}},function(pe,n,A){"use strict";function v(i,s){if(!(i instanceof s))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var h=function(){function i(s,d){for(var u=0;u<d.length;u++){var e=d[u];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(s,e.key,e)}}return function(s,d,u){return d&&i(s.prototype,d),u&&i(s,u),s}}(),y=function(){function i(){v(this,i)}return h(i,null,[{key:"set",value:function(d,u){try{window.localStorage&&localStorage.setItem(d,u)}catch(e){window[d+"_localStorage"]=u}}},{key:"get",value:function(d){try{if(window.localStorage)return localStorage.getItem(d)}catch(u){return window[d+"_localStorage"]}return""}},{key:"remove",value:function(d){try{window.localStorage&&localStorage.removeItem(d)}catch(u){delete window[d+"_localStorage"]}}}]),i}();n.default=y},function(pe,n,A){"use strict";function v(i,s){if(!(i instanceof s))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var h=function(){function i(s,d){for(var u=0;u<d.length;u++){var e=d[u];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(s,e.key,e)}}return function(s,d,u){return d&&i(s.prototype,d),u&&i(s,u),s}}(),y=function(){function i(){v(this,i)}return h(i,null,[{key:"get",value:function(d){for(var u=d+"",e=document.cookie.split(";"),o=0;o<e.length;o++){var r=e[o].trim();if(r.indexOf(u)==0)return unescape(r.substring(u.length+1,r.length))}return""}},{key:"set",value:function(d,u,e){var o=new Date;o.setTime(o.getTime()+24*e*60*60*1e3);var r="expires="+o.toGMTString();document.cookie=d+"="+escape(u)+"; "+r}}]),i}();n.default=y},function(pe,n,A){"use strict";function v(o){return o&&o.__esModule?o:{default:o}}function h(o,r){if(!(o instanceof r))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var y=function(){function o(r,l){for(var p=0;p<l.length;p++){var c=l[p];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(r,c.key,c)}}return function(r,l,p){return l&&o(r.prototype,l),p&&o(r,p),r}}(),i=A(8),s=v(i),d=A(9),u=v(d),e=function(){function o(){h(this,o)}return y(o,null,[{key:"refreshUploadAuth",value:function(l,p,c){var x=(u.default.randomUUID(),u.default.randomUUID()),E={AccessKeyId:l.accessKeyId,SecurityToken:l.securityToken,Action:"RefreshUploadVideo",VideoId:l.videoId,Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:x,RequestId:l.requestId},f=u.default.makeUTF8sort(E,"=","&")+"&Signature="+u.default.aliyunEncodeURI(u.default.makeChangeSiga(E,l.accessKeySecret)),T="https://vod."+l.region+".aliyuncs.com/?"+f;s.default.get(T,function(S){var S=JSON.parse(S);p&&p(S)},function(S){if(c){var m=JSON.parse(S);c(m)}})}},{key:"getUploadAuth",value:function(l,p,c){var x=(u.default.randomUUID(),u.default.randomUUID()),E={AccessKeyId:l.accessKeyId,SecurityToken:l.securityToken,Action:"CreateUploadVideo",Title:l.title,FileName:l.fileName,Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:x,RequestId:l.requestId};l.fileSize&&(E.FileSize=l.fileSize),l.description&&(E.Description=l.description),l.cateId&&(E.CateId=l.cateId),l.tags&&(E.Tags=l.tags),l.templateGroupId&&(E.TemplateGroupId=l.templateGroupId),l.storageLocation&&(E.StorageLocation=l.storageLocation),l.coverUrl&&(E.CoverURL=l.coverUrl),l.transCodeMode&&(E.TransCodeMode=l.transCodeMode),l.userData&&(E.UserData=JSON.stringify(l.userData));var f=u.default.makeUTF8sort(E,"=","&")+"&Signature="+u.default.aliyunEncodeURI(u.default.makeChangeSiga(E,l.accessKeySecret)),T="https://vod."+l.region+".aliyuncs.com/?"+f;s.default.get(T,function(S){try{S=JSON.parse(S)}catch(m){if(c)return void c({Code:"GetUploadAuthFailed",Message:"\u83B7\u53D6uploadauth\u5931\u8D25"})}p&&p(S)},function(S){if(c){var m={Code:"GetUploadAuthFailed",Message:"\u83B7\u53D6uploadauth\u5931\u8D25"};try{m=JSON.parse(S)}catch(b){}c(m)}})}},{key:"getImageUploadAuth",value:function(l,p,c){var x=(u.default.randomUUID(),u.default.randomUUID()),E={AccessKeyId:l.accessKeyId,SecurityToken:l.securityToken,Action:"CreateUploadImage",ImageType:l.imageType?l.imageType:"default",Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:x,RequestId:l.requestId};l.title&&(E.Title=l.title),l.imageExt&&(E.ImageExt=l.imageExt),l.tags&&(E.Tags=l.tags),l.storageLocation&&(E.StorageLocation=l.storageLocation);var f=u.default.makeUTF8sort(E,"=","&")+"&Signature="+u.default.aliyunEncodeURI(u.default.makeChangeSiga(E,l.accessKeySecret)),T="https://vod."+l.region+".aliyuncs.com/?"+f;s.default.get(T,function(S){S=JSON.parse(S),p&&p(S)},function(S){if(c){var m=JSON.parse(S);c(m)}})}}]),o}();n.default=e},function(pe,n,A){!function(v,h,y){pe.exports=n=h(A(0),A(28),A(29))}(0,function(v){return v.HmacSHA1})},function(pe,n,A){!function(v,h){pe.exports=n=h(A(0))}(0,function(v){return function(){var h=v,y=h.lib,i=y.WordArray,s=y.Hasher,d=h.algo,u=[],e=d.SHA1=s.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(r,l){for(var p=this._hash.words,c=p[0],x=p[1],E=p[2],f=p[3],T=p[4],S=0;S<80;S++){if(S<16)u[S]=0|r[l+S];else{var m=u[S-3]^u[S-8]^u[S-14]^u[S-16];u[S]=m<<1|m>>>31}var b=(c<<5|c>>>27)+T+u[S];b+=S<20?1518500249+(x&E|~x&f):S<40?1859775393+(x^E^f):S<60?(x&E|x&f|E&f)-1894007588:(x^E^f)-899497514,T=f,f=E,E=x<<30|x>>>2,x=c,c=b}p[0]=p[0]+c|0,p[1]=p[1]+x|0,p[2]=p[2]+E|0,p[3]=p[3]+f|0,p[4]=p[4]+T|0},_doFinalize:function(){var r=this._data,l=r.words,p=8*this._nDataBytes,c=8*r.sigBytes;return l[c>>>5]|=128<<24-c%32,l[14+(c+64>>>9<<4)]=Math.floor(p/4294967296),l[15+(c+64>>>9<<4)]=p,r.sigBytes=4*l.length,this._process(),this._hash},clone:function(){var r=s.clone.call(this);return r._hash=this._hash.clone(),r}});h.SHA1=s._createHelper(e),h.HmacSHA1=s._createHmacHelper(e)}(),v.SHA1})},function(pe,n,A){!function(v,h){pe.exports=n=h(A(0))}(0,function(v){!function(){var h=v,y=h.lib,i=y.Base,s=h.enc,d=s.Utf8,u=h.algo;u.HMAC=i.extend({init:function(o,r){o=this._hasher=new o.init,typeof r=="string"&&(r=d.parse(r));var l=o.blockSize,p=4*l;r.sigBytes>p&&(r=o.finalize(r)),r.clamp();for(var c=this._oKey=r.clone(),x=this._iKey=r.clone(),E=c.words,f=x.words,T=0;T<l;T++)E[T]^=1549556828,f[T]^=909522486;c.sigBytes=x.sigBytes=p,this.reset()},reset:function(){var o=this._hasher;o.reset(),o.update(this._iKey)},update:function(o){return this._hasher.update(o),this},finalize:function(o){var r=this._hasher,l=r.finalize(o);return r.reset(),r.finalize(this._oKey.clone().concat(l))}})}()})},function(pe,n,A){!function(v,h){pe.exports=n=h(A(0))}(0,function(v){return function(){function h(u,e,o){for(var r=[],l=0,p=0;p<e;p++)if(p%4){var c=o[u.charCodeAt(p-1)]<<p%4*2,x=o[u.charCodeAt(p)]>>>6-p%4*2;r[l>>>2]|=(c|x)<<24-l%4*8,l++}return s.create(r,l)}var y=v,i=y.lib,s=i.WordArray,d=y.enc;d.Base64={stringify:function(e){var o=e.words,r=e.sigBytes,l=this._map;e.clamp();for(var p=[],c=0;c<r;c+=3)for(var x=o[c>>>2]>>>24-c%4*8&255,E=o[c+1>>>2]>>>24-(c+1)%4*8&255,f=o[c+2>>>2]>>>24-(c+2)%4*8&255,T=x<<16|E<<8|f,S=0;S<4&&c+.75*S<r;S++)p.push(l.charAt(T>>>6*(3-S)&63));var m=l.charAt(64);if(m)for(;p.length%4;)p.push(m);return p.join("")},parse:function(e){var o=e.length,r=this._map,l=this._reverseMap;if(!l){l=this._reverseMap=[];for(var p=0;p<r.length;p++)l[r.charCodeAt(p)]=p}var c=r.charAt(64);if(c){var x=e.indexOf(c);x!==-1&&(o=x)}return h(e,o,l)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),v.enc.Base64})},function(pe,n,A){"use strict";function v(b){return b&&b.__esModule?b:{default:b}}function h(b,k){if(!(b instanceof k))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var y=function(){function b(k,C){for(var _=0;_<C.length;_++){var j=C[_];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(k,j.key,j)}}return function(k,C,_){return C&&b(k.prototype,C),_&&b(k,_),k}}(),i=A(8),s=v(i),d=A(7),u=v(d),e=A(4),o=v(e),r=A(6),l=v(r),p=A(1),c=v(p),x=A(9),E=v(x),f=A(2),T=A(11),S=A(10),m=function(){function b(){h(this,b)}return y(b,null,[{key:"getAuthInfo",value:function(C,_,j){var D=C+"|f#Ylm&^1TppeRhLg|"+j;return _&&(D=C+"|"+_+"|f#Ylm&^1TppeRhLg|"+j),f(S.parse(D)).toString(T)}},{key:"upload",value:function(C,_,j){var D=c.default.ISODateString(new Date),M=Math.floor(new Date().valueOf()/1e3),L=o.default.getClientId();L=o.default.setClientId(L);var z=b.getAuthInfo(C.userId,L,M),W=E.default.randomUUID(),G={Source:"WebSDK",BusinessType:"UploadVideo",Action:"ReportUploadProgress",TerminalType:"H5",DeviceModel:u.default.browser.name+(u.default.browser.version||""),AppVersion:l.default.version,AuthTimestamp:M,Timestamp:D,AuthInfo:z,FileName:C.file.name,FileSize:C.file.size,FileCreateTime:C.file.lastModified,FileHash:C.fileHash,UploadId:C.checkpoint.checkpoint.uploadId,PartSize:C.checkpoint.checkpoint.partSize,DonePartsCount:C.checkpoint.checkpoint.doneParts.length,UploadPoint:JSON.stringify(C.checkpoint),UploadRatio:C.checkpoint.loaded,UserId:C.userId,VideoId:C.videoId,Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:W};L&&(G.ClientId=L);var Z=E.default.makeUTF8sort(G,"=","&")+"&Signature="+E.default.aliyunEncodeURI(E.default.makeChangeSiga(G,C.accessKeySecret)),U="https://vod."+C.region+".aliyuncs.com/?"+Z;s.default.get(U,function(ee){_&&_()},function(ee){ee&&(j(ee),console.log(ee))})}},{key:"get",value:function(C,_,j){var D=c.default.ISODateString(new Date),M=Math.floor(new Date().valueOf()/1e3),L=o.default.getClientId(),z=b.getAuthInfo(C.userId,L,M),W=E.default.randomUUID(),G={Source:"WebSDK",BusinessType:"UploadVideo",Action:"GetUploadProgress",TerminalType:"H5",DeviceModel:u.default.browser.name+(u.default.browser.version||""),AppVersion:l.default.version,AuthTimestamp:M,Timestamp:D,AuthInfo:z,UserId:C.userId,UploadInfoList:JSON.stringify(C.uploadInfoList),Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:W};L&&(G.ClientId=L);var Z=E.default.makeUTF8sort(G,"=","&")+"&Signature="+E.default.aliyunEncodeURI(E.default.makeChangeSiga(G,C.accessKeySecret)),U="https://vod."+C.region+".aliyuncs.com/?"+Z;s.default.get(U,function(ee){var $={},q=L;ee=ee?JSON.parse(ee):{},ee.UploadProgress&&ee.UploadProgress.UploadProgressList&&ee.UploadProgress.UploadProgressList.length>0&&($=ee.UploadProgress.UploadProgressList[0],q=$.ClientId),o.default.setClientId(q),_&&_($)},function(ee){ee&&(j(ee),console.log(ee))})}}]),b}();n.default=m},function(pe,n,A){"use strict";function v(d,u){if(!(d instanceof u))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var h=function(){function d(u,e){for(var o=0;o<e.length;o++){var r=e[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(u,r.key,r)}}return function(u,e,o){return e&&d(u.prototype,e),o&&d(u,o),u}}(),y=A(2),i=A(33),s=(A(11),function(){function d(){v(this,d)}return h(d,null,[{key:"getMd5",value:function(e,o,r){var l=new FileReader;l.onload=function(x){try{if(x&&x.target){var E=y(i.parse(x.target.result)),f=E.toString();o(f)}}catch(T){console.log(T)}},l.onerror=function(x){console.log(x),errorCallback(x)};var p=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice,c=p.call(e,0,1024);l.readAsBinaryString(c)}}]),d}());n.default=s},function(pe,n,A){!function(v,h){pe.exports=n=h(A(0))}(0,function(v){return v.enc.Latin1})}])}).call(this,se("UywP"))},sBCT:function(Ge,ze,se){"use strict";var Ae=se("NE/W"),He=se("L7QV"),pe=se("VBJJ"),n=se.n(pe),A=se("z3+T"),v=se("rjoL"),h=se("TMtJ"),y=se("X/R0"),i=se("M6G9"),s=se("EkPb"),d=se("7X0+"),u=se("GZha"),e=se("55MS"),o=se("V0hb"),r=se("DHCt"),l=se("CRgH"),p=se("ZZRV"),c=se.n(p),x=se("q5+0"),E=se("DndG"),f=se("9kvl"),T=se("kwm0"),S=se.n(T),m=se("Aky1"),b=l.a.TextArea,k=500,C=function(D,M){var L,z=M.payload||{},W=z.uploadInfo,G=W===void 0?{}:W;switch(M.type){case"addVideo":return{videoList:[].concat(Object(o.a)(D.videoList),[{name:G.file.name,size:G.file.size,type:G.file.type,fileHash:G.fileHash,state:G.state,videoId:G.videoId,loaded:G.loaded||0,title:""}])};case"removeVideo":return{videoList:D.videoList.filter(function(Z){return Z.name!==M.payload.name})};case"removeAll":return{videoList:[]};case"updateProgress":return{videoList:D.videoList.map(function(Z){return Z.name===M.payload.uploadInfo.file.name?Object(e.a)(Object(e.a)({},Z),{loaded:M.payload.progressPercent,videoId:G.videoId,fileHash:G.fileHash}):Z})};case"updateTitle":return{videoList:(L=D.videoList)===null||L===void 0?void 0:L.map(function(Z){return Z.name===M.payload.item.name?Object(e.a)(Object(e.a)({},Z),{title:M.payload.title}):Z})};default:return{videoList:[]}}},_=function(D){var M,L=D.user,z=D.globalSetting,W=D.loading,G=D.dispatch,Z=D.visible,U=D.editData,ee=D.onCancel,$=ee===void 0?function(){}:ee,q=D.onOk,R=q===void 0?function(){}:q,I=Object(x.m)(),F=d.a.useForm(),N=Object(u.a)(F,1),H=N[0],Y=Object(p.useReducer)(C,{videoList:[]}),ae=Object(u.a)(Y,2),te=ae[0],ue=ae[1],de=Object(p.useState)(!1),Q=Object(u.a)(de,2),J=Q[0],ie=Q[1],X=Object(p.useRef)(),B=Object(p.useState)(),re=Object(u.a)(B,2),ne=re[0],ce=re[1],O=Object(p.useState)(!1),t=Object(u.a)(O,2),a=t[0],P=t[1],g=Object(p.useState)(!1),w=Object(u.a)(g,2),V=w[0],K=w[1];Object(p.useEffect)(function(){if(!U)return;P(U.is_link),ce(U.link),!U.is_link&&ue({type:"addVideo",payload:{uploadInfo:{file:{name:U.file_name},videoId:U.video_id,loaded:100}}}),H.setFieldsValue({name:U.name,description:U.description})},[U]);var fe=function(){var Ee=document.getElementById("fileUpload");Ee.value=""},le=function(Ee){var we,Oe,Te;P(!1);var ke=Ee.target.files[0];if(!ke){fe();return}var Ie=ke.name.toLowerCase();if(Ie&&Ie.indexOf(".avi")==-1&&Ie.indexOf(".flv")==-1&&Ie.indexOf(".f4v")==-1&&Ie.indexOf(".m4v")==-1&&Ie.indexOf(".mov")==-1&&Ie.indexOf(".mp4")==-1&&Ie.indexOf(".rmvb")==-1&&Ie.indexOf(".swf")==-1&&Ie.indexOf(".webm")==-1&&Ie.indexOf(".wmv")==-1){i.b.info("\u4E0D\u652F\u6301\u7684\u89C6\u9891\u683C\u5F0F"),fe();return}if(!(((we=L.userInfo)===null||we===void 0?void 0:we.admin)||((Oe=L.userInfo)===null||Oe===void 0?void 0:Oe.business))&&ke.size>k*1024*1024){i.b.info("\u89C6\u9891\u5927\u5C0F\u8D85\u8FC7".concat(k,"M")),fe();return}if((Te=te.videoList)===null||Te===void 0?void 0:Te.find(function(Le){return Le.name===ke.name})){i.b.info("\u4F60\u4E0D\u80FD\u4E0A\u4F20\u540C\u4E00\u4E2A\u89C6\u9891\u6587\u4EF6\u540D\u79F0\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\u3002"),fe();return}ge(ke)},me=function(Ee,we){h.a.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:c.a.createElement("div",{className:"tc"},"\u60A8\u786E\u8BA4\u8981",we?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20","\u8BE5\u89C6\u9891\u5417\uFF1F"),onOk:function(){fe(),ue({type:"removeVideo",payload:{name:Ee}})}})},ge=function(Ee){var we,Oe='{"Vod":{}}';if(ie(!0),X.current){X.current.addFile(Ee,null,null,null,Oe);return}Object(m.a)((we=L.userInfo)===null||we===void 0?void 0:we.login,{create:!X,addFileSuccess:function(ke){ue({type:"addVideo",payload:{uploadInfo:ke}})},onUploadProgress:function(ke,Ie,Le){var Xe=Math.ceil(Le*100);ue({type:"updateProgress",payload:{uploadInfo:ke,progressPercent:Xe}}),fe()},onUploadFailed:function(ke){i.b.info("\u89C6\u9891\u4E91\u670D\u52A1\u51FA\u73B0\u5F02\u5E38\uFF0C\u8BF7\u91CD\u65B0\u4E0A\u4F20\u3002")},onUploadEnd:function(ke){ie(!1)},onUploadSucceed:function(ke){ie(!1)},onUploadError:function(ke){ie(!1)},gotUploader:function(ke){ke.addFile(Ee,null,null,null,Oe),X.current=ke}})},ve=function(){var xe=Object(A.a)(n.a.mark(function Ee(){var we,Oe,Te,ke;return n.a.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:return Le.next=2,H.validateFields();case 2:if(!(!a&&!((we=te.videoList)===null||we===void 0?void 0:we.length)||a&&!ne)){Le.next=5;break}return i.b.info("\u8BF7\u5148\u4E0A\u4F20\u89C6\u9891\u6216\u8005\u6DFB\u52A0\u5916\u94FE"),Le.abrupt("return");case 5:return K(!0),Te=a?{link:ne}:{video_id:(Oe=te.videoList)===null||Oe===void 0?void 0:Oe[0].videoId},Le.next=9,R(Object(e.a)(Object(e.a)({},Te),{name:H.getFieldValue("name"),description:H.getFieldValue("description")}));case 9:ke=Le.sent,K(!1),ke.id&&he();case 12:case"end":return Le.stop()}},Ee)}));return function(){return xe.apply(this,arguments)}}(),he=function(){H.resetFields(),ue({type:"removeAll"}),ce(null),P(null)},oe=function(){$(),he()},ye=function(){var Ee,we,Oe,Te,ke,Ie,Le,Xe,$e,nt,rt,Qe;return c.a.createElement(c.a.Fragment,null,!a&&!!((Ee=te.videoList)===null||Ee===void 0?void 0:Ee.length)&&c.a.createElement("div",{className:S.a.fileProgress},((we=te.videoList)===null||we===void 0||((Oe=we[0])===null||Oe===void 0)?void 0:Oe.loaded)==100?c.a.createElement("div",{className:"".concat(S.a.videoName," font14")},(Te=te.videoList)===null||Te===void 0||((ke=Te[0])===null||ke===void 0)?void 0:ke.name):c.a.createElement(He.a,{style:{width:"80%"},percent:(Ie=te.videoList)===null||Ie===void 0||((Le=Ie[0])===null||Le===void 0)?void 0:Le.loaded,status:((Xe=te.videoList)===null||Xe===void 0||(($e=Xe[0])===null||$e===void 0)?void 0:$e.loaded)==100?"normal":"active"}),c.a.createElement("div",{className:S.a.fileCancel,onClick:function(){var be,Fe,Re,_e;return me((be=te.videoList)===null||be===void 0||((Fe=be[0])===null||Fe===void 0)?void 0:Fe.name,((Re=te.videoList)===null||Re===void 0||((_e=Re[0])===null||_e===void 0)?void 0:_e.loaded)==100)}},((nt=te.videoList)===null||nt===void 0||((rt=nt[0])===null||rt===void 0)?void 0:rt.loaded)===100?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20")),!((Qe=te.videoList)===null||Qe===void 0?void 0:Qe.length)&&c.a.createElement("div",{className:S.a.uploadWrap},c.a.createElement("label",{htmlFor:"fileUpload",className:S.a.upload},c.a.createElement("i",{className:"iconfont icon-shangchuanshipin1 mr5"}),"\u4E0A\u4F20\u89C6\u9891"),c.a.createElement("label",{className:"".concat(S.a.upload," ").concat(S.a.uploadLink),onClick:function(){return P(!0)}},c.a.createElement("i",{className:"iconfont icon-lianjie1 mr5"}),"\u6DFB\u52A0\u5916\u94FE")),a&&c.a.createElement(l.a,{className:"mt5",placeholder:"\u8BF7\u8F93\u5165\u89C6\u9891\u94FE\u63A5",value:ne,onChange:function(be){return ce(be.target.value)}}))};return c.a.createElement(h.a,{centered:!0,maskClosable:!1,title:U?"\u7F16\u8F91\u89C6\u9891\u9879\u76EE":"\u65B0\u5EFA\u89C6\u9891\u9879\u76EE",width:740,className:S.a.modal,visible:Z,confirmLoading:V,onOk:ve,onCancel:oe},c.a.createElement(d.a,{form:H},c.a.createElement("input",{type:"file",id:"fileUpload",style:{display:"none"},onChange:le,accept:".mkv, .flv, .f4v, .rmvb, .swf, video/mp4,video/x-m4v,video/flv,video/f4v,video/rmvb,video/swf,video/*"}),c.a.createElement(d.a.Item,{label:"\u9879\u76EE\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\u79F0"}]},c.a.createElement(l.a,{maxLength:40,placeholder:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC740\u5B57\u7684\u9879\u76EE\u540D\u79F0"})),c.a.createElement(d.a.Item,{label:"\u9879\u76EE\u5185\u5BB9",name:"content",className:S.a.contentItem},ye()),c.a.createElement(d.a.Item,{label:"\u9879\u76EE\u7B80\u4ECB",name:"description",className:"ml8"},c.a.createElement(b,{rows:5,maxLength:800,placeholder:"\u8BF7\u8F93\u5165\u672C\u89C6\u9891\u7B80\u4ECB\uFF0C\u6700\u591A\u4E0D\u8D85\u8FC7800\u5B57"})),c.a.createElement("div",{className:"c-grey-999"},c.a.createElement("div",null,"\u6CE8\u610F\uFF1A"),c.a.createElement("div",null,"1\u3001\u4E0A\u4F20\u89C6\u9891\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F",c.a.createElement(E.Link,{to:"/users/".concat((M=L.userInfo)===null||M===void 0?void 0:M.login,"/videos/protocol"),target:"_blank",className:S.a.colorBlue},"\u4E0A\u4F20\u5185\u5BB9\u534F\u8BAE"),"\uFF0C\u4E0D\u5F97\u4E0A\u4F20\u672A\u7ECF\u4ED6\u4EBA\u6388\u6743\u7684\u4F5C\u54C1\uFF1B"),c.a.createElement("div",null,"2\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC7500M\uFF1B"),c.a.createElement("div",null,"3\u3001\u652F\u6301\u6587\u4EF6\u683C\u5F0F\uFF1Aavi\u3001flv\u3001f4v\u3001m4v\u3001mov\u3001mp4\u3001rmvb\u3001swf\u3001webm\u3001wmv\uFF1B"),c.a.createElement("div",null,"4\u3001\u5982\u679C\u89C6\u9891\u6765\u81EA\u4E8E\u5916\u90E8\u94FE\u63A5\uFF0C\u672C\u7F51\u7AD9\u4E0D\u63D0\u4F9B\u64AD\u653E\u9875\u9762\uFF0C\u65E0\u6CD5\u63D0\u4F9B\u7EDF\u8BA1\u6570\u636E\u3002"))))};ze.a=Object(f.a)(function(j){var D=j.user,M=j.loading,L=j.globalSetting;return{user:D,globalSetting:L,loading:M}})(_)},sWEp:function(Ge,ze,se){Ge.exports={wrap:"wrap___3nJXB",title:"title___3AYM5",radioWrap:"radioWrap___dbSML",radio:"radio___3h-_z",colorFF0000:"colorFF0000___2d_ZE",pagination:"pagination___3WP6s"}},vZDz:function(Ge,ze,se){Ge.exports={contentWrap:"contentWrap___3Fc2r",footer:"footer___4nxVN",radioGroup:"radioGroup___359yE",wrap:"wrap___1OqR3",introName:"introName___3saG-",rating:"rating___3X95K",modalRating:"modalRating___A4qeN"}}}]);
|