|
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[151,4,6,24],{"07cG":function(Ue,pe,U){Ue.exports={ldsRing:"ldsRing___2F8W7",idsRingWrapper:"idsRingWrapper___fC2cF",ldsring:"ldsring___3A88y"}},"1ZF9":function(Ue,pe,U){Ue.exports=U.p+"static/Authorize.cc9c212f.png"},"500L":function(Ue,pe,U){"use strict";U.d(pe,"a",function(){return b});var Xe=U("DZo9"),it=U("8z0m"),ve=U("+L6B"),t=U("2/Rp"),w=U("2qtc"),v=U("kLXV"),l=U("WmNS"),_=U.n(l),r=U("9og8"),u=U("k1fw"),o=U("oBTY"),e=U("miYZ"),n=U("tsqr"),i=U("tJVT"),s=U("q1tI"),d=U.n(s),m=U("m3rI"),f=U("wzkS"),A=U("y5JW");function b(p){var S=[];return p&&p.length>0&&(S=p.map(function(D){return{uid:D.id,id:D.id,name:D.title+A.c+D.filesize,url:D.url,filesize:D.filesize,status:"done",response:{id:D.id}}})),S}pe.b=function(p){var S=p.value,D=p.onChange,h=p.className,E=p.maxSize,O=E===void 0?150:E,C=p.title,g=C===void 0?"\u4E0A\u4F20\u9644\u4EF6":C,M=p.showRemoveModal,T=M===void 0?!1:M,L=p.accept,j=L===void 0?"":L,N=p.number,G=N===void 0?1e3:N,$=Object(s.useState)(!1),H=Object(i.a)($,2),F=H[0],te=H[1],ae=Object(s.useState)([]),K=Object(i.a)(ae,2),k=K[0],I=K[1],z={multiple:!0,disabled:F,accept:j,withCredentials:!0,fileList:S,beforeUpload:function(J,re){var ee=J.size/1024/1024;return k.concat(re).length>G?(n.b.error("\u6700\u591A\u53EA\u80FD\u4E0A\u4F20".concat(G,"\u4E2A\u6587\u4EF6")),!1):ee<O?!0:(n.b.error("\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(".concat(O,"MB),\u5EFA\u8BAE\u4E0A\u4F20\u5230\u767E\u5EA6\u4E91\u7B49\u5176\u5B83\u5171\u4EAB\u5DE5\u5177\u91CC\uFF0C\u7136\u540E\u518Dtxt\u6587\u6863\u91CC\u7ED9\u51FA\u94FE\u63A5\u4EE5\u53CA\u5171\u4EAB\u5BC6\u7801\u5E76\u4E0A\u4F20")),!1)},action:"".concat(m.a.API_SERVER,"/api/attachments.json"),onChange:function(J){var re=Object(o.a)(J.fileList);re.length>=G?te(!0):te(!1),I(Object(o.a)(re)),re=re.map(function(ee){var se;if(ee==null||((se=ee.response)===null||se===void 0)?void 0:se.id){var ue;ee.url="/api/attachments/".concat(ee==null||((ue=ee.response)===null||ue===void 0)?void 0:ue.id)}return ee.name.indexOf(A.c)===-1&&(ee.name="".concat(ee.name).concat(A.c).concat(Object(A.a)(ee.size))),Object(u.a)({},ee)}),console.log("info:",J),D(re)},onRemove:function(){var Z=Object(r.a)(_.a.mark(function re(ee){var se;return _.a.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:if(se=function(){var Y=Object(r.a)(_.a.mark(function ie(){var B,W;return _.a.wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:if(B=ee.response?ee.response.id:ee.id,!B){ne.next=8;break}return ne.next=4,Object(f.d)(ee.response?ee.response.id:ee.uid);case 4:return W=ne.sent,ne.abrupt("return",W);case 8:return ne.abrupt("return",!0);case 9:case"end":return ne.stop()}},ie)}));return function(){return Y.apply(this,arguments)}}(),!T){q.next=5;break}return q.abrupt("return",new Promise(function(Y,ie){v.a.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:d.a.createElement("div",{className:"tc font16"},"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:function(){var B=Object(r.a)(_.a.mark(function oe(){var ne;return _.a.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.next=2,se();case 2:ne=P.sent,n.b.success("\u5220\u9664\u6210\u529F"),Y(!0);case 5:case"end":return P.stop()}},oe)}));function W(){return B.apply(this,arguments)}return W}(),onCancel:function(){return Y(!1)}})}));case 5:return q.next=7,se();case 7:return q.abrupt("return",q.sent);case 8:case"end":return q.stop()}},re)}));function J(re){return Z.apply(this,arguments)}return J}()};function X(Z){Z.preventDefault(),Z.stopPropagation()}return d.a.createElement("div",{className:"multi-upload ".concat(h||"")},d.a.createElement(it.a,z,d.a.createElement(t.a,{disabled:F,type:"primary",ghost:!0},g),d.a.createElement("span",{onClick:X,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",O,"M) ")))}},"7ahc":function(Ue,pe,U){"use strict";U.d(pe,"a",function(){return p});var Xe=U("k1fw"),it=U("0Owb"),ve=U("+L6B"),t=U("2/Rp"),w=U("y8nQ"),v=U("Vl3Y"),l=U("tJVT"),_=U("OaEy"),r=U("2fM7"),u=U("q1tI"),o=U.n(u),e=U("VrN/"),n=U.n(e),i=U("p77/"),s=U.n(i),d=U("c5Ni"),m=U.n(d),f=r.a.Option,A={labelCol:{span:4},wrapperCol:{span:20}},b={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};pe.b=function(S){var D=S.callback,h=S.onCancel,E=Object(u.useState)("python"),O=Object(l.a)(E,2),C=O[0],g=O[1];function M(L){g(b[L][1])}function T(L){D(L)}return o.a.createElement(v.a,Object(it.a)({},A,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:T}),o.a.createElement(v.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},o.a.createElement(r.a,{onChange:M},Object.keys(b).map(function(L){return o.a.createElement(f,{key:L,value:L},b[L][0])}))),o.a.createElement(v.a.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},o.a.createElement(p,{mode:C})),o.a.createElement("div",{className:"flex-container flex-end"},o.a.createElement(t.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),o.a.createElement(t.a,{type:"ghost",onClick:h},"\u53D6\u6D88")))};function p(S){var D=S.value,h=S.onChange,E=S.mode,O=S.options,C=O===void 0?{}:O,g=Object(u.useRef)(),M=Object(u.useState)(),T=Object(l.a)(M,2),L=T[0],j=T[1];return Object(u.useEffect)(function(){if(L){var N=function($){var H=$.getValue();h&&h(H)};return L.on("change",N),function(){L.off("change",N)}}},[L,h]),Object(u.useEffect)(function(){L&&L.setOption("mode",E)},[L,E]),Object(u.useEffect)(function(){L&&((D!==L.getValue()||D==="")&&setTimeout(function(){L.setValue(D||" ")},300))},[L,D]),Object(u.useEffect)(function(){if(g.current&&!L){var N=n.a.fromTextArea(g.current,Object(Xe.a)({mode:E,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},C));j(N)}},[g.current,L]),o.a.createElement("div",{className:"my-codemirror-container"},o.a.createElement("textarea",{ref:g}))}},"8Bcu":function(Ue,pe,U){Ue.exports={flex_box_center:"flex_box_center___3isCS",flex_space_between:"flex_space_between___1zEgQ",flex_box_vertical_center:"flex_box_vertical_center___2IyXM",flex_box_center_end:"flex_box_center_end___1r0jY",flex_box_column:"flex_box_column___2SHBj",rightWrap:"rightWrap___2XCk6",qrCode:"qrCode___3q9Z0",cardTop:"cardTop___2h9UR",cardTop2:"cardTop2___3KQ3O",card:"card___1aOV1",flexRow:"flexRow___DeBf7",flexRowAbout:"flexRowAbout___3sD2f",skillWrap:"skillWrap___pwM-3",skillTopWrap:"skillTopWrap___2oSn4",skillContentWrap:"skillContentWrap___239Us",skillContentWrapMin:"skillContentWrapMin___2KWd4",skillContentWrapMax:"skillContentWrapMax___NVKFP",skillContentIcon:"skillContentIcon___5mU6F",skillContentIconNoStatus:"skillContentIconNoStatus___1_V1l",skillExpandAllWrap:"skillExpandAllWrap___1HSf6",skillExpandAllContent:"skillExpandAllContent___3kY9W",memberItem:"memberItem___3cgRI",radius:"radius___2fxUa",memberItemContent:"memberItemContent___19hpK",directionItemWrap:"directionItemWrap___3Zm3f",groupActionWrap:"groupActionWrap___N0Epv",divabout:"divabout___psa-7",classButton:"classButton___30JJg",bg28e:"bg28e___2DyZD",bgGray:"bgGray___2PZB0",price:"price___2sFWj",li1:"li1___2y74c",discounts:"discounts___2JS39",realPrice:"realPrice___2kTeg",lineationPrice:"lineationPrice___2LeZ4",li2:"li2___2rpKJ"}},"9Bee":function(Ue,pe,U){"use strict";var Xe=U("k1fw"),it=U("q1tI"),ve=U.n(it),t=U("vg9a"),w=U("tJVT"),v=U("DlQD"),l=U.n(v),_=U("rUJ1");function r(H,F){var te=H.match(/^(\s+)(?:```)/);if(te===null)return F;var ae=te[1];return F.split(`
|
|
|
`).map(function(K){var k=K.match(/^\s+/);if(k===null)return K;var I=Object(w.a)(k,1),z=I[0];return z.length>=ae.length?K.slice(ae.length):K}).join(`
|
|
|
`)}var u=[],o=["<ul>"],e=new l.a.Renderer,n=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function i(){u.length=0,o=["<ul>"]}var s={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function d(H,F,te,ae){if(F>=H.length||H[F].level<=te)return F;var K=H[F];ae.push("<li><a href='#"+K.anchor+"'>"+K.text+"</a>"),F++;var k=[];return F=d(H,F,K.level,k),k.length>0&&(ae.push("<ul>"),k.forEach(function(I){ae.push(I)}),ae.push("</ul>")),ae.push("</li>"),F=d(H,F,te,ae),F}function m(){return d(u,0,0,o),o.push("</ul>"),o.join("")}var f={heading:function(F){var te=n.exec(F);if(te)return{type:"heading",raw:te[0],depth:te[1].length,text:te[2]}},fences:function(F){var te=this.rules.block.fences.exec(F);if(te){var ae=te[0],K=r(ae,te[3]||""),k=te[2]?te[2].trim():te[2];if(["latex","katex","math"].indexOf(k)>=0){var I=p(),z=K;K=I,S[I]={type:"block",expression:z}}return{type:"code",raw:ae,lang:k,text:K}}}},A=/(?:\${2})([^\n`]+?)(?:\${2})/gi,b=0,p=function(){return"__special_katext_id_".concat(b++,"__")},S={};function D(){return S}function h(){b=0,S={}}function E(H){return H=H.replace(A,function(F,te){var ae=p();return S[ae]={type:"inline",expression:te},ae}),H}var O=e.listitem;e.listitem=function(H){return O(E(H))};var C=e.paragraph;e.paragraph=function(H){return C(E(H))};var g=e.tablecell;e.tablecell=function(H,F){return g(E(H),F)},e.code=function(H,F,te){var ae=(F||"").match(/\S*/)[0];return ae?["latex","katex","math"].indexOf(ae)>=0?"<p class='editormd-tex'>".concat(H,"</p>"):'<pre class="prettyprint linenums"><code class="language-'.concat(F,'">').concat(te?H:Object(_.escape)(H,!0),`</code></pre>
|
|
|
`):'<pre class="prettyprint linenums"><code>'+(te?H:Object(_.escape)(H,!0))+"</code></pre>"},e.heading=function(H,F,te){var ae=this.options.headerPrefix+te.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return u.push({anchor:ae,level:F,text:H}),"<h"+F+' id="'+ae+'">'+H+"</h"+F+">"},l.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),l.a.use({tokenizer:f,renderer:e});var M=l.a,T=U("SJMd"),L=U("m3rI"),j=U("Oy/b"),N=/<pre[^>]*>/g;function G(H){var F=document.createElement("div");return F.innerHTML=H,F.childNodes.length===0?"":F.childNodes[0].nodeValue}var $=pe.a=function(H){var F=H.value,te=F===void 0?"":F,ae=H.className,K=H.showTextOnly,k=H.showLines,I=H.style,z=I===void 0?{}:I,X=String(te),Z=Object(it.useMemo)(function(){try{var se=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,ue=/\"\/api\/attachments\/|\"\/attachments\/download\//g,q=/\(\s+\/files\/uploads\/|\(\/files\/uploads\//g;X=X.replace(se,"("+L.a.API_SERVER+"/api/attachments/").replace(ue,'"'+L.a.API_SERVER+"/api/attachments/").replace(q,'"'+L.a.API_SERVER+"/files/uploads/")}catch(W){}var Y=M(X);setTimeout(function(){return ee()},300);var ie=D();if(X.match(/\[TOC\]/)&&(Y=Y.replace("<p>[TOC]</p>",m()),i()),Y=Y.replace(/(__special_katext_id_\d+__)/g,function(W,oe){var ne=ie[oe],me=ne.type,P=ne.expression;return Object(j.renderToString)(G(P)||"",{displayMode:me==="block",throwOnError:!1,output:"html"})}),Y=Y.replace(/▁/g,"\u2581\u2581\u2581"),h(),K){var B=document.createElement("div");return B.innerHTML=Y,B.innerText}return Y},[X]),J=Object(it.useRef)();s.WebkitLineClamp=k,k&&(z=Object(Xe.a)(Object(Xe.a)({},z),s));function re(se){var ue=se.target;if(ue.tagName.toUpperCase()==="A"){var q=ue.getAttribute("href");if(q.startsWith("#")){se.preventDefault();var Y=document.getElementById(q.replace("#",""));Y&&Y.scrollIntoView(!0)}}}var ee=function(){};return Object(it.useEffect)(function(){if(J.current&&Z&&(Z.match(N)&&window.PR.prettyPrint()),J.current)return J.current.addEventListener("click",re),function(){J.current.removeEventListener("click",re),h(),i()}},[Z,J.current,re]),ve.a.createElement(ve.a.Fragment,null,ve.a.createElement("div",{ref:J,style:Object(Xe.a)({},z),className:"".concat(ae||""," markdown-body "),dangerouslySetInnerHTML:{__html:Z}}))}},"9VGf":function(Ue,pe,U){"use strict";U.d(pe,"a",function(){return ve});var Xe=U("q1tI"),it=U.n(Xe);function ve(t,w){var v=Object(Xe.useRef)();Object(Xe.useEffect)(function(){v.current=t}),Object(Xe.useEffect)(function(){function l(){v.current()}if(w!==null){var _=setInterval(l,w);return function(){return clearInterval(_)}}},[w])}},"9nDM":function(Ue,pe,U){},A2z3:function(Ue,pe,U){Ue.exports=U.p+"static/Certificate.80413b23.png"},AZ8Y:function(Ue,pe,U){"use strict";U.r(pe);var Xe=U("T2oS"),it=U("W9HT"),ve=U("WmNS"),t=U.n(ve),w=U("k1fw"),v=U("9og8"),l=U("tJVT"),_=U("PpiC"),r=U("Znn+"),u=U("ZTPi"),o=U("q1tI"),e=U.n(o),n=U("Ty5D"),i=U("9kvl"),s=U("qVdP"),d=U("jsC+"),m=U("lUTK"),f=U("BvKs"),A=U("oBTY"),b=U("pC0b"),p=U("GzdX"),S=U("+BJd"),D=U("mr32"),h=U("5Dmo"),E=U("3S7+"),O=U("+L6B"),C=U("2/Rp"),g=U("7Kak"),M=U("9yH6"),T=U("2qtc"),L=U("kLXV"),j=U("miYZ"),N=U("tsqr"),G=U("0NbB"),$=U("JTSX"),H=U.n($),F=U("xKgJ"),te=U("Mgx3"),ae=U("ozfa"),K=U("MJZm"),k=U("sRBo"),I=U("kaz8"),z=U("14J3"),X=U("BMrR"),Z=U("jCWc"),J=U("kPKH"),re=U("OaEy"),ee=U("2fM7"),se=U("wd/R"),ue=U.n(se),q=U("kNP/"),Y=U.n(q),ie=U("1vsH"),B=ee.a.Option,W=function(le){var Ee=le.pathsDetail,Re=le.globalSetting,Ge=le.loading,ye=le.dispatch,xt=Object(_.a)(le,["pathsDetail","globalSetting","loading","dispatch"]),Ne=Object(n.m)(),Oe=Object(o.useState)(),Ze=Object(l.a)(Oe,2),we=Ze[0],ct=Ze[1],mt=Object(o.useState)([]),Ae=Object(l.a)(mt,2),Ut=Ae[0],$e=Ae[1],yt=Object(o.useState)([]),Ce=Object(l.a)(yt,2),ke=Ce[0],_t=Ce[1],nn=Object(o.useState)([]),Be=Object(l.a)(nn,2),st=Be[0],Gt=Be[1],Ft=Object(o.useState)(),Le=Object(l.a)(Ft,2),Pt=Le[0],bt=Le[1],Et=Object(o.useState)(),Jt=Object(l.a)(Et,2),Ct=Jt[0],Rt=Jt[1],hn=Object(o.useState)(!0),ln=Object(l.a)(hn,2),mn=ln[0],_n=ln[1];Object(o.useEffect)(function(){Ee.actionTabs.key==="PathsDetail-SendToClass"&&rt()},[Ee.actionTabs.key]);var vn=function(ge){switch(ge.item_type){case"Shixun":return e.a.createElement("span",null,e.a.createElement("span",{className:"mr5 c-light-primary"},"\u5B9E\u8BAD"),ge.name);case"Attachment":return e.a.createElement("span",null,e.a.createElement("span",{className:"mr5 c-cyan-blue"},"\u8BFE\u4EF6"),ge.name);case"VideoItem":return e.a.createElement("span",null,e.a.createElement("span",{className:"mr5 c-purple-8C1"},"\u89C6\u9891"),ge.name);case"StageCatalog":return e.a.createElement("span",null,ge.name);default:return""}},rt=function(){var Me=Object(v.a)(t.a.mark(function ge(){var Ve,Ot,Je;return t.a.wrap(function(Mt){for(;;)switch(Mt.prev=Mt.next){case 0:return Mt.next=2,Object(te.E)({id:Ne.pathId});case 2:Ve=Mt.sent,Ve&&($e((Ve==null?void 0:Ve.courses)||[]),Je=(Ot=Ve.stages)===null||Ot===void 0?void 0:Ot.map(function(Tn,Un){var cn;return{title:Tn.state_name||"",key:Un,children:(cn=Tn.items)===null||cn===void 0?void 0:cn.map(function(Xn,Kn){var Bn;return Object(w.a)(Object(w.a)({},Xn),{},{disabled:Xn.is_jupyter,title:vn(Xn),key:"".concat(Un,"-").concat(Kn),children:(Bn=Xn.children)===null||Bn===void 0?void 0:Bn.map(function(qn,ua){return Object(w.a)(Object(w.a)({},qn),{},{disabled:qn.is_jupyter,title:vn(qn),key:"".concat(Un,"-").concat(Kn,"-").concat(ua)})})})})}}),_t(Je||[]));case 4:case"end":return Mt.stop()}},ge)}));return function(){return Me.apply(this,arguments)}}(),gn=function(ge,Ve){Gt(ge)},Cn=function(ge){var Ve=ge.target.checked,Ot=[];ke==null||ke.map(function(Je,kt){var Mt;Ot.push(kt),Je==null||((Mt=Je.children)===null||Mt===void 0)||Mt.map(function(Tn,Un){var cn;Ot.push("".concat(kt,"-").concat(Un)),Tn==null||((cn=Tn.children)===null||cn===void 0)||cn.map(function(Xn,Kn){Ot.push("".concat(kt,"-").concat(Un,"-").concat(Kn))})})}),Gt(Ve?Ot:[])},sn=function(){var ge=st.filter(function(Mt){return typeof Mt=="string"}),Ve=[],Ot=[],Je=[],kt=[];return ke==null||ke.map(function(Mt,Tn){var Un;Mt==null||((Un=Mt.children)===null||Un===void 0)||Un.map(function(cn,Xn){var Kn;ge.includes("".concat(Tn,"-").concat(Xn))&&(Je.push(cn.stage_item_id),cn.item_type==="Shixun"?Ve.push(cn.id):cn.item_type==="Attachment"?kt.push(cn.id):cn.item_type==="VideoItem"&&Ot.push(cn.id)),cn==null||((Kn=cn.children)===null||Kn===void 0)||Kn.map(function(Bn,qn){ge.includes("".concat(Tn,"-").concat(Xn,"-").concat(qn))&&(Je.push(Bn.stage_item_id),Bn.item_type==="Shixun"?Ve.push(Bn.id):Bn.item_type==="Attachment"?kt.push(Bn.id):Bn.item_type==="VideoItem"&&Ot.push(Bn.id))})})}),{shixunIds:Ve,videoItemIds:Ot,stageItemIds:Je,coursewareIds:kt}},Tt=function(){var Me=Object(v.a)(t.a.mark(function ge(){var Ve,Ot,Je;return t.a.wrap(function(Mt){for(;;)switch(Mt.prev=Mt.next){case 0:if(Ve=sn(),Ot=Ve.stageItemIds,console.log(Ot,"stageItemIds"),we){Mt.next=5;break}return N.b.info("\u60A8\u8FD8\u672A\u9009\u62E9\u53D1\u9001\u7684\u8BFE\u5802"),Mt.abrupt("return");case 5:if(!(!lt.length&&!vt.length&&!He.length)){Mt.next=8;break}return N.b.info("\u60A8\u8FD8\u672A\u9009\u62E9\u5B9E\u8BAD\u6216\u8005\u89C6\u9891"),Mt.abrupt("return");case 8:return Rt(!0),Mt.next=11,Object(te.N)({id:Ne.pathId,course_id:we,stage_item_id:Ot,sync_catelog:mn?1:0}).catch(function(Tn){return Rt(!1)});case 11:Je=Mt.sent,Rt(!1),We(),(Je==null?void 0:Je.status)===1&&L.a.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:e.a.createElement("div",{className:"tc"},Je.message),onOk:function(){var Un,cn=Je==null||((Un=Je.url.split("/"))===null||Un===void 0)?void 0:Un[2];Object(ie.I)("/classrooms/".concat(cn,"/shixun_homework"))}});case 15:case"end":return Mt.stop()}},ge)}));return function(){return Me.apply(this,arguments)}}(),We=function(){ye({type:"pathsDetail/setActionTabs",payload:{}}),ct(null),Gt([]),bt(null)},Lt=sn(),Sn=Lt.shixunIds,lt=Sn===void 0?[]:Sn,St=Lt.videoItemIds,vt=St===void 0?[]:St,qe=Lt.coursewareIds,He=qe===void 0?[]:qe;return e.a.createElement(L.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:Ee.actionTabs.key==="PathsDetail-SendToClass",title:"\u53D1\u9001\u81F3\u8BFE\u5802",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",confirmLoading:Ct,width:600,onOk:Tt,onCancel:We},e.a.createElement("div",{className:Y.a.wrap},e.a.createElement("div",{className:"mb10"},e.a.createElement(ee.a,{placeholder:"\u8BF7\u9009\u62E9\u60A8\u8981\u53D1\u9001\u7684\u8BFE\u5802",defaultOpen:!1,value:we,style:{width:"100%"},onSelect:function(ge){return ct(ge)},optionLabelProp:"lable"},Ut==null?void 0:Ut.map(function(Me,ge){return e.a.createElement(B,{key:Me.course_id,value:Me.course_id,lable:Me.course_name},e.a.createElement(X.a,{justify:"space-between"},e.a.createElement(J.a,null,Me.course_name),e.a.createElement(J.a,null,ue()(Me.created_at).format("YYYY-MM-DD HH:mm"),"\xA0")))}))),e.a.createElement("div",{className:Y.a.title},"\u6E29\u99A8\u63D0\u793A\uFF1A",e.a.createElement("br",null),"1.\u8BF7\u5728\u672C\u8BFE\u7A0B\u4E2D\u9009\u62E9\u6240\u9700\u9879\u76EE\u53D1\u9001\u5230\u6307\u5B9A\u8BFE\u5802\uFF1B",e.a.createElement("br",null),"2.\u672A\u53D1\u5E03\u7684\u5B9E\u8BAD\u4E0D\u80FD\u53D1\u9001\u81F3\u8BFE\u5802\uFF0C\u4E5F\u4E0D\u4F1A\u8FDB\u5165\u672C\u5F39\u7A97\u5907\u9009\u3002"),e.a.createElement("div",{className:Y.a.radioWrap},e.a.createElement("div",null,e.a.createElement(I.a,{value:Pt,onChange:Cn,className:"font14 ml20"},"\u5168\u9009")),!!(ke==null?void 0:ke.length)&&e.a.createElement(K.a,{className:Y.a.tree,checkable:!0,defaultExpandAll:!0,treeData:ke,checkedKeys:st,onCheck:function(ge,Ve){return gn(ge,Ve)}})),e.a.createElement("div",{className:Y.a.createMkdir},e.a.createElement(I.a,{checked:mn,onChange:function(ge){return _n(ge.target.checked)},className:"font14"},"\u9009\u4E2D\u7AE0\u8282\u5728\u8BFE\u5802\u4E2D\u540C\u6B65\u751F\u6210\u76EE\u5F55"),!!(lt.length+vt.length)&&e.a.createElement("span",null,e.a.createElement("span",null,"\u5DF2\u9009\u4E2D\uFF1A"),!!lt.length&&e.a.createElement(e.a.Fragment,null,e.a.createElement("span",{className:"c-light-primary"},lt.length," "),e.a.createElement("span",null,"\u4E2A\u5B9E\u8BAD")),!!vt.length&&e.a.createElement(e.a.Fragment,null,e.a.createElement("span",{className:"c-purple-8C1 ml5"},vt.length," "),e.a.createElement("span",null,"\u4E2A\u89C6\u9891")),!!He.length&&e.a.createElement(e.a.Fragment,null,e.a.createElement("span",{className:"c-cyan-blue ml5"},He.length," "),e.a.createElement("span",null,"\u4E2A\u8BFE\u4EF6"))))))},oe=Object(i.a)(function(de){var le=de.pathsDetail,Ee=de.loading,Re=de.globalSetting;return{pathsDetail:le,globalSetting:Re,loading:Ee.effects}})(W),ne=U("NLgs"),me=U("m3rI"),P=U("OljG"),a=U.n(P),c=function(le){var Ee,Re,Ge,ye,xt,Ne,Oe,Ze,we,ct,mt,Ae,Ut,$e,yt,Ce,ke,_t,nn,Be,st,Gt,Ft,Le,Pt,bt,Et,Jt,Ct,Rt,hn,ln,mn,_n,vn,rt,gn,Cn,sn,Tt,We,Lt,Sn,lt,St,vt,qe,He,Me,ge,Ve,Ot,Je,kt,Mt,Tn,Un,cn,Xn,Kn,Bn,qn,ua,Gn,Ta,Ua,_a,fa,Jn,Ia,va,ja,La,ka,ga,Ea,Ma,Na,pa,Ba,Fa,ya,Wa,ba,Aa,xa,za,Xa,Qa,Ka,ra,la,Ga,Ha,Va,Ya,wa,rr,Ja,Za,Te,Da,ir,Sr,or,Wn,Or,Ke,_e,Pe,fe=le.pathsDetail,je=le.user,gt=le.globalSetting,pt=le.loading,ut=le.dispatch,Hn=Object(_.a)(le,["pathsDetail","user","globalSetting","loading","dispatch"]),Kt=Object(n.m)(),ea=Object(o.useState)({}),En=Object(l.a)(ea,2),ze=En[0],Qn=En[1],na=Object(o.useRef)(1),dt=Object(o.useState)(),sr=Object(l.a)(dt,2),Sa=sr[0],ur=sr[1],Pr=Object(o.useState)(!1),qr=Object(l.a)(Pr,2),mr=qr[0],ei=qr[1],hi=((Ee=fe.detail)===null||Ee===void 0?void 0:Ee.is_free)||((Re=fe.detail)===null||Re===void 0?void 0:Re.can_learning);Object(o.useEffect)(function(){var dn,zt,yn,Ht,en=(dn=fe.detail)===null||dn===void 0||((zt=dn.courses)===null||zt===void 0)?void 0:zt.length;if(!en)return;var On;if((yn=fe.detail)===null||yn===void 0?void 0:yn.has_start){var kn,an,ia=(kn=fe.detail)===null||kn===void 0||((an=kn.courses)===null||an===void 0)?void 0:an.findIndex(function(Wt){var Fe;return((Fe=Wt.course_status)===null||Fe===void 0?void 0:Fe.status)===1});On=ia>-1?ia:0}else{var un,kr,cr,Vt,At,nt=(un=fe.detail)===null||un===void 0||((kr=un.courses)===null||kr===void 0||((cr=kr.map(function(Wt){var Fe;return(Fe=Wt.course_status)===null||Fe===void 0?void 0:Fe.status}))===null||cr===void 0))?void 0:cr.lastIndexOf(2);On=nt>-1?nt:0,nt=(Vt=fe.detail)===null||Vt===void 0||((At=Vt.courses)===null||At===void 0)?void 0:At.findIndex(function(Wt){var Fe;return((Fe=Wt.course_status)===null||Fe===void 0?void 0:Fe.status)===0}),On=nt>-1?nt:On}Qn(((Ht=fe.detail)===null||Ht===void 0?void 0:Ht.courses[On])||{})},[fe.detail]);var mi=function(zt){var yn,Ht,en=(yn=fe.detail)===null||yn===void 0||((Ht=yn.courses)===null||Ht===void 0)?void 0:Ht.find(function(On){return On.course_id===zt});Qn(en||{}),ut({type:"classroomList/setActionTabs",payload:{key:"\u4FEE\u6539\u5F00\u8BFE\u65F6\u95F4",name:zt}})},ti=function(){var dn=Object(v.a)(t.a.mark(function zt(){var yn;return t.a.wrap(function(en){for(;;)switch(en.prev=en.next){case 0:return en.next=2,Object(te.j)({container_id:Kt.pathId,container_type:"Subject"});case 2:yn=en.sent,yn.status===0&&(lr(),N.b.success(yn.message));case 4:case"end":return en.stop()}},zt)}));return function(){return dn.apply(this,arguments)}}(),_i=function(){var dn=Object(v.a)(t.a.mark(function zt(){var yn;return t.a.wrap(function(en){for(;;)switch(en.prev=en.next){case 0:return en.next=2,Object(te.m)({container_id:Kt.pathId,container_type:"Subject"});case 2:yn=en.sent,yn.status===0&&(lr(),N.b.success(yn.message));case 4:case"end":return en.stop()}},zt)}));return function(){return dn.apply(this,arguments)}}(),ni=function(){var dn=Object(v.a)(t.a.mark(function zt(){return t.a.wrap(function(Ht){for(;;)switch(Ht.prev=Ht.next){case 0:L.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:e.a.createElement("div",{className:"tc"},"\u662F\u5426\u5220\u9664\u5B9E\u8DF5\u8BFE\u7A0B?"),onOk:function(){var en=Object(v.a)(t.a.mark(function kn(){var an;return t.a.wrap(function(un){for(;;)switch(un.prev=un.next){case 0:return un.next=2,Object(te.p)({id:Kt.pathId});case 2:an=un.sent,an.status===1&&i.c.push("/paths");case 4:case"end":return un.stop()}},kn)}));function On(){return en.apply(this,arguments)}return On}()});case 1:case"end":return Ht.stop()}},zt)}));return function(){return dn.apply(this,arguments)}}(),$a=function(){var dn=Object(v.a)(t.a.mark(function zt(){return t.a.wrap(function(Ht){for(;;)switch(Ht.prev=Ht.next){case 0:L.a.info({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u77E5\u9053\u5566",content:e.a.createElement("div",{className:"tc"},"\u8BFE\u7A0B\u53D1\u5E03\u540E\u5373\u53EF\u53D1\u9001\u8BFE\u5802\u4F7F\u7528"),onOk:function(){var en=Object(v.a)(t.a.mark(function kn(){var an;return t.a.wrap(function(un){for(;;)switch(un.prev=un.next){case 0:return un.next=2,Object(te.h)({id:Kt.pathId});case 2:an=un.sent,(an==null?void 0:an.status)===0&&(lr(),N.b.success(an.message));case 4:case"end":return un.stop()}},kn)}));function On(){return en.apply(this,arguments)}return On}()});case 1:case"end":return Ht.stop()}},zt)}));return function(){return dn.apply(this,arguments)}}(),vi=function(){var dn=Object(v.a)(t.a.mark(function zt(){return t.a.wrap(function(Ht){for(;;)switch(Ht.prev=Ht.next){case 0:L.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:e.a.createElement("div",{className:"tc"},"\u662F\u5426\u786E\u8BA4\u64A4\u9500\u53D1\u5E03\uFF1F"),okButtonProps:{loading:mr},onOk:function(){var en=Object(v.a)(t.a.mark(function kn(){var an;return t.a.wrap(function(un){for(;;)switch(un.prev=un.next){case 0:return ei(!0),un.next=3,Object(te.l)({id:Kt.pathId});case 3:an=un.sent,(an==null?void 0:an.status)===1&&(lr(),N.b.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F")),ei(!1);case 6:case"end":return un.stop()}},kn)}));function On(){return en.apply(this,arguments)}return On}()});case 1:case"end":return Ht.stop()}},zt)}));return function(){return dn.apply(this,arguments)}}(),gi=function(){var dn=Object(v.a)(t.a.mark(function zt(){return t.a.wrap(function(Ht){for(;;)switch(Ht.prev=Ht.next){case 0:L.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A\u7533\u8BF7",cancelText:"\u53D6\u6D88\u7533\u8BF7",content:e.a.createElement("div",{className:"tc"},"\u516C\u5F00\u8BFE\u7A0B\u9700\u7ECF\u8FC7\u5E73\u53F0\u6807\u51C6\u5316\u5BA1\u6838\uFF0C\u5BA1\u6838\u5468\u671F\u4E3A1-2\u5929\uFF0C\u516C\u5F00",e.a.createElement("br",null),"\u7684\u8BFE\u7A0B\u5C06\u5BF9\u5E73\u53F0\u6240\u6709\u4EBA\u53EF\u89C1\u3002\u82E5\u4EC5\u672C\u4EBA\u6559\u5B66\u4F7F\u7528\u5219\u65E0\u9700",e.a.createElement("br",null),"\u7533\u8BF7\u516C\u5F00\uFF0C\u76F4\u63A5\u53D1\u9001\u5230\u8BFE\u5802\u5373\u53EF",e.a.createElement("br",null)),onOk:function(){var en=Object(v.a)(t.a.mark(function kn(){var an;return t.a.wrap(function(un){for(;;)switch(un.prev=un.next){case 0:return un.next=2,Object(te.g)({id:Kt.pathId});case 2:an=un.sent,((an==null?void 0:an.status)===0||(an==null?void 0:an.status)===1)&&(lr(),N.b.success("\u516C\u5F00\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u7BA1\u7406\u5458\u7684\u5BA1\u6838"));case 4:case"end":return un.stop()}},kn)}));function On(){return en.apply(this,arguments)}return On}()});case 1:case"end":return Ht.stop()}},zt)}));return function(){return dn.apply(this,arguments)}}(),Ir=function(){var dn=Object(v.a)(t.a.mark(function zt(){return t.a.wrap(function(Ht){for(;;)switch(Ht.prev=Ht.next){case 0:L.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:e.a.createElement("div",{className:"tc"},"\u662F\u5426\u786E\u8BA4\u64A4\u9500\u7533\u8BF7\u516C\u5F00\uFF1F"),onOk:function(){var en=Object(v.a)(t.a.mark(function kn(){var an;return t.a.wrap(function(un){for(;;)switch(un.prev=un.next){case 0:return un.next=2,Object(te.k)({id:Kt.pathId});case 2:an=un.sent,(an==null?void 0:an.status)===0&&(lr(),N.b.success("\u64A4\u9500\u7533\u8BF7\u516C\u5F00\u6210\u529F"));case 4:case"end":return un.stop()}},kn)}));function On(){return en.apply(this,arguments)}return On}()});case 1:case"end":return Ht.stop()}},zt)}));return function(){return dn.apply(this,arguments)}}(),jr=function(){var dn=Object(v.a)(t.a.mark(function zt(){return t.a.wrap(function(Ht){for(;;)switch(Ht.prev=Ht.next){case 0:L.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:e.a.createElement("div",{className:"ml20"},e.a.createElement(M.a.Group,{defaultValue:1,onChange:function(On){return na.current=On.target.value}},e.a.createElement(M.a,{value:1,className:"mt10"},"\u5F00\u653E\u8BFE\u5802\uFF1A",e.a.createElement("span",null,"\u6240\u6709\u7528\u6237\u53EF\u4EE5\u968F\u65F6\u8BBF\u95EE")),e.a.createElement(M.a,{value:0,className:"mt10"},"\u79C1\u6709\u8BFE\u5802\uFF1A",e.a.createElement("span",null,"\u4EC5\u62A5\u540D\u53C2\u4E0E\u7684\u8BFE\u5802\u6210\u5458\u53EF\u4EE5\u8BBF\u95EE")))),onOk:function(){var en=Object(v.a)(t.a.mark(function kn(){return t.a.wrap(function(ia){for(;;)switch(ia.prev=ia.next){case 0:Object(ie.I)("/classrooms/news/".concat(Kt.pathId,"/newgold/").concat(na.current));case 1:case"end":return ia.stop()}},kn)}));function On(){return en.apply(this,arguments)}return On}()});case 1:case"end":return Ht.stop()}},zt)}));return function(){return dn.apply(this,arguments)}}(),ai=function(){L.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:e.a.createElement("div",{className:"tc"},"\u662F\u5426\u786E\u8BA4\u7ACB\u5373\u9884\u7EA6\uFF1F"),onOk:function(){var zt=Object(v.a)(t.a.mark(function Ht(){var en;return t.a.wrap(function(kn){for(;;)switch(kn.prev=kn.next){case 0:return kn.next=2,Object(te.i)({id:Kt.pathId});case 2:en=kn.sent,en.status===0&&(ur(!0),N.b.success(en.message));case 4:case"end":return kn.stop()}},Ht)}));function yn(){return zt.apply(this,arguments)}return yn}()})},Lr=function(){if(!Object(ne.e)(ut))return;L.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:e.a.createElement("div",{className:"tc"},"\u662F\u5426\u786E\u5B9A\u52A0\u5165\u8BE5\u8BFE\u5802"),onOk:function(){var zt=Object(v.a)(t.a.mark(function Ht(){var en,On;return t.a.wrap(function(an){for(;;)switch(an.prev=an.next){case 0:return an.next=2,Object(te.J)({id:ze==null?void 0:ze.course_id});case 2:en=an.sent,en.status===0&&(N.b.success(en.message),ut({type:"pathsDetail/getPathsDetail",payload:{id:Kt.pathId}}),((On=ze.course_status)===null||On===void 0?void 0:On.status)===1&&Object(ie.I)("/classrooms/".concat(ze==null?void 0:ze.course_id,"/shixun_homework")));case 4:case"end":return an.stop()}},Ht)}));function yn(){return zt.apply(this,arguments)}return yn}()})},ri=function(){var zt;if((zt=fe.detail)===null||zt===void 0?void 0:zt.need_authorize){Object(ne.a)(!1,"\u8BE5\u8BFE\u7A0B\u4E2D\u5305\u542B\u5B9E\u8BAD\u9700\u6388\u6743\u540E\u624D\u53EF\u4F7F\u7528\u3002 \u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650\u3002");return}if(!Object(ne.e)(ut))return;ut({type:"pathsDetail/setActionTabs",payload:{key:"PathsDetail-SendToClass"}})},lr=function(){ut({type:"pathsDetail/getPathsDetail",payload:{id:Kt.pathId}}),ut({type:"pathsDetail/getRightData",payload:{id:Kt.pathId}})},_r=!!((Ge=fe.detail)===null||Ge===void 0?void 0:Ge.participant_count)&&!((ye=fe.detail)===null||ye===void 0?void 0:ye.allow_statistics),vr=((xt=fe.detail)===null||xt===void 0||((Ne=xt.courses)===null||Ne===void 0)?void 0:Ne.findIndex(function(dn){return(dn==null?void 0:dn.course_id)===(ze==null?void 0:ze.course_id)}))+1,Cr=vr===((Oe=fe.detail)===null||Oe===void 0||((Ze=Oe.courses)===null||Ze===void 0)?void 0:Ze.length);return e.a.createElement("section",null,e.a.createElement("aside",{className:H.a.banner,style:{backgroundImage:(fe==null||((we=fe.detail)===null||we===void 0||((ct=we.attachments)===null||ct===void 0||((mt=ct[0])===null||mt===void 0)))?void 0:mt.url)?"url(".concat(me.a.API_SERVER+(fe==null||((Ae=fe.detail)===null||Ae===void 0||((Ut=Ae.attachments)===null||Ut===void 0||(($e=Ut[0])===null||$e===void 0)))?void 0:$e.url),")"):"url(".concat(a.a,")"),marginBottom:((yt=fe.detail)===null||yt===void 0||((Ce=yt.courses)===null||Ce===void 0)?void 0:Ce.length)?70:20}},e.a.createElement("aside",{className:H.a.wrp},e.a.createElement("div",{className:H.a.operationWrap},((ke=je.userInfo)===null||ke===void 0?void 0:ke.login)&&((_t=fe.detail)===null||_t===void 0?void 0:_t.is_collect)&&e.a.createElement(C.a,{className:"".concat(H.a.button," ").concat(H.a.buttonTransparent," mr15"),onClick:ti},"\u53D6\u6D88\u6536\u85CF"),((nn=je.userInfo)===null||nn===void 0?void 0:nn.login)&&!((Be=fe.detail)===null||Be===void 0?void 0:Be.is_collect)&&e.a.createElement(C.a,{className:"".concat(H.a.button," ").concat(H.a.buttonTransparent," mr15"),onClick:_i},"\u6536\u85CF"),!Object(F.p)()&&e.a.createElement(C.a,{ghost:!0,onClick:function(){if(!Object(ne.e)(ut))return}},"\u6536\u85CF"),((st=fe.detail)===null||st===void 0?void 0:st.allow_statistics)&&e.a.createElement(C.a,{className:"".concat(H.a.button," ").concat(H.a.buttonTransparent," mr15"),onClick:function(){return i.c.push("/paths/".concat(Kt.pathId,"/edit"))}},"\u7F16\u8F91"),((Gt=fe.detail)===null||Gt===void 0?void 0:Gt.allow_delete)&&e.a.createElement(C.a,{className:"".concat(H.a.button," ").concat(H.a.buttonTransparent," mr15"),onClick:ni},"\u5220\u9664"),((Ft=fe.detail)===null||Ft===void 0?void 0:Ft.allow_add_member)&&((Le=fe.detail)===null||Le===void 0?void 0:Le.publish_status)===0&&e.a.createElement(C.a,{className:"".concat(H.a.button," ").concat(H.a.buttonTransparent," mr15"),onClick:$a},"\u7533\u8BF7\u53D1\u5E03"),((Pt=fe.detail)===null||Pt===void 0?void 0:Pt.allow_statistics)&&((bt=fe.detail)===null||bt===void 0?void 0:bt.publish_status)===2&&((Et=fe.detail)===null||Et===void 0?void 0:Et.public_status)===0&&e.a.createElement(C.a,{className:"".concat(H.a.button," ").concat(H.a.buttonTransparent," mr15"),onClick:vi},"\u64A4\u9500\u53D1\u5E03"),((Jt=fe.detail)===null||Jt===void 0?void 0:Jt.allow_statistics)&&((Ct=fe.detail)===null||Ct===void 0?void 0:Ct.publish_status)===2&&((Rt=fe.detail)===null||Rt===void 0?void 0:Rt.public_status)===0&&e.a.createElement(C.a,{className:"".concat(H.a.button," ").concat(H.a.buttonTransparent," mr15"),onClick:gi},"\u7533\u8BF7\u516C\u5F00"),((hn=fe.detail)===null||hn===void 0?void 0:hn.allow_statistics)&&((ln=fe.detail)===null||ln===void 0?void 0:ln.public_status)===1&&e.a.createElement(C.a,{className:"".concat(H.a.button," ").concat(H.a.buttonTransparent," mr15"),onClick:Ir},"\u64A4\u9500\u7533\u8BF7\u516C\u5F00"),Object(F.c)()&&((mn=fe.detail)===null||mn===void 0?void 0:mn.allow_statistics)&&((_n=fe.detail)===null||_n===void 0?void 0:_n.public_status)===2&&e.a.createElement(C.a,{className:"".concat(H.a.button," ").concat(H.a.buttonTransparent," mr15"),onClick:Ir},"\u64A4\u9500\u516C\u5F00"),((vn=fe.detail)===null||vn===void 0?void 0:vn.courses)&&(((rt=fe.detail)===null||rt===void 0?void 0:rt.is_creator)&&!!((gn=je.userInfo)===null||gn===void 0?void 0:gn.professional_certification)||Object(F.o)())&&e.a.createElement(C.a,{className:"".concat(H.a.button," ").concat(H.a.buttonTransparent," mr15"),onClick:jr},"\u5F00\u8BFE"),!!((Cn=fe.detail)===null||Cn===void 0?void 0:Cn.is_free)&&((sn=fe.detail)===null||sn===void 0?void 0:sn.publish_status)!==0&&(((Tt=fe.detail)===null||Tt===void 0?void 0:Tt.allow_add_member)||!Object(F.m)())&&e.a.createElement(E.a,{placement:"bottom",title:"\u4EE5\u5B9E\u8BAD\u4F5C\u4E1A\u7684\u5F62\u5F0F\u53D1\u9001\u5230\u6211\u7684\u8BFE\u5802"},e.a.createElement(C.a,{className:"".concat(H.a.button," ").concat(H.a.buttonTransparent," mr15"),onClick:ri},"\u53D1\u9001\u81F3")),((We=fe.detail)===null||We===void 0?void 0:We.allow_statistics)&&((Lt=fe.detail)===null||Lt===void 0?void 0:Lt.public_status)===2&&e.a.createElement(C.a,{className:"".concat(H.a.buttonLearnStatistics," mr15"),onClick:function(){return i.c.push("/paths/".concat(Kt.pathId,"/statistics"))}},"\u5B66\u4E60\u7EDF\u8BA1")),e.a.createElement("p",{className:[H.a.titleWrap,((Sn=fe.detail)===null||Sn===void 0||((lt=Sn.name)===null||lt===void 0)?void 0:lt.indexOf(`
|
|
|
`))&&H.a.titleFlexEnd].join(" ")},e.a.createElement("span",{className:H.a.title},e.a.createElement("strong",null,(St=fe.detail)===null||St===void 0||((vt=St.name)===null||vt===void 0)?void 0:vt.split(`
|
|
|
`)[0]),e.a.createElement("span",{className:"font24"},e.a.createElement("br",null),(qe=fe.detail)===null||qe===void 0||((He=qe.name)===null||He===void 0)?void 0:He.split(`
|
|
|
`).filter(function(dn,zt){return zt!==0}).join(""))),e.a.createElement("div",null,((Me=fe.detail)===null||Me===void 0?void 0:Me.excellent)&&e.a.createElement(D.a,{className:"".concat(H.a.openCourseTag," font14"),style:{background:"#44D7B6",border:"1px solid #44D7B6"}},"\u5F00\u653E\u8BFE\u7A0B"),((ge=fe.detail)===null||ge===void 0?void 0:ge.featured)>0&&e.a.createElement("div",null,((Ve=fe.detail)===null||Ve===void 0?void 0:Ve.featured)===1&&e.a.createElement(D.a,{className:"".concat(H.a.openCourseTag," font14"),style:{background:"#FF8C29",border:"1px solid #FF8C29"}},"\u56FD\u5BB6\u4E00\u6D41"),((Ot=fe.detail)===null||Ot===void 0?void 0:Ot.featured)===2&&e.a.createElement(D.a,{className:"".concat(H.a.openCourseTag," font14"),style:{background:"#4361F2",border:"1px solid #4361F2"}},"\u519B\u961F\u4E00\u6D41"),((Je=fe.detail)===null||Je===void 0?void 0:Je.featured)===3&&e.a.createElement(D.a,{className:"".concat(H.a.openCourseTag," font14"),style:{background:"#B38D24",border:"1px solid #B38D24"}},"\u7701\u7EA7\u4E00\u6D41")))),e.a.createElement("div",{className:H.a.contentWrap},e.a.createElement("div",{className:H.a.contentLeftWrap},!!((kt=fe.detail)===null||kt===void 0?void 0:kt.stages_count)&&e.a.createElement("div",{className:"mr30"},e.a.createElement("span",null,"\u7AE0\u8282"),e.a.createElement("p",{className:"mt3"},(Mt=fe.detail)===null||Mt===void 0?void 0:Mt.stages_count)),!!((Tn=fe.detail)===null||Tn===void 0?void 0:Tn.shixuns_count)&&e.a.createElement("div",{className:"mr30"},e.a.createElement("span",null,"\u5B9E\u8BAD"),e.a.createElement("p",{className:"mt3"},(Un=fe.detail)===null||Un===void 0?void 0:Un.shixuns_count)),!!((cn=fe.detail)===null||cn===void 0?void 0:cn.challenge_choose_count)&&e.a.createElement("div",{className:"mr30"},e.a.createElement("span",null,"\u9009\u62E9\u9898\u5173\u5361"),e.a.createElement("p",{className:"mt3"},(Xn=fe.detail)===null||Xn===void 0?void 0:Xn.challenge_choose_count)),!!((Kn=fe.detail)===null||Kn===void 0?void 0:Kn.challenges_count)&&e.a.createElement("div",{className:"mr30"},e.a.createElement("span",null,"\u5B9E\u8DF5\u5173\u5361"),e.a.createElement("p",{className:"mt3"},(Bn=fe.detail)===null||Bn===void 0?void 0:Bn.challenges_count)),!!((qn=fe.detail)===null||qn===void 0?void 0:qn.videos_count)&&e.a.createElement("div",{className:"mr30"},e.a.createElement("span",null,"\u89C6\u9891"),e.a.createElement("p",{className:"mt3"},(ua=fe.detail)===null||ua===void 0?void 0:ua.videos_count)),!!((Gn=fe.detail)===null||Gn===void 0?void 0:Gn.attachment_count)&&e.a.createElement("div",{className:"mr30"},e.a.createElement("span",null,"\u8BFE\u4EF6"),e.a.createElement("p",{className:"mt3"},(Ta=fe.detail)===null||Ta===void 0?void 0:Ta.attachment_count)),((Ua=fe.detail)===null||Ua===void 0?void 0:Ua.publish_status)!==0&&!!((_a=fe.detail)===null||_a===void 0?void 0:_a.subject_score)&&e.a.createElement("div",{className:"mr30"},e.a.createElement("span",null,"\u7ECF\u9A8C\u503C"),e.a.createElement("p",{className:"mt3"},(fa=fe.detail)===null||fa===void 0?void 0:fa.subject_score)),((Jn=fe.detail)===null||Jn===void 0?void 0:Jn.publish_status)!==0&&!!((Ia=fe.detail)===null||Ia===void 0?void 0:Ia.member_count)&&e.a.createElement("div",{className:"mr30"},e.a.createElement("span",null,((va=fe.detail)===null||va===void 0?void 0:va.excellent)?"\u53C2\u4E0E\u4EBA\u6570":"\u5B66\u4E60\u4EBA\u6570"),e.a.createElement("p",{className:"mt3"},(ja=fe.detail)===null||ja===void 0?void 0:ja.member_count)),((La=fe.detail)===null||La===void 0?void 0:La.subject_score)>=0&&e.a.createElement("span",{className:"font14 c-white"},e.a.createElement("span",null,"\u8BC4\u5206"),e.a.createElement("br",null),e.a.createElement(p.a,{allowHalf:!0,value:Object(ie.v)((ka=fe.detail)===null||ka===void 0?void 0:ka.averge_star),disabled:!0,className:H.a.rating})))),!!((ga=fe.detail)===null||ga===void 0||((Ea=ga.courses)===null||Ea===void 0)?void 0:Ea.length)&&e.a.createElement("aside",{className:H.a.nav},e.a.createElement("div",{className:H.a.navLeft},ze.course_identity<4&&e.a.createElement(E.a,{placement:"bottom",title:"\u7F16\u8F91\u8BFE\u5802"},e.a.createElement("a",{href:"/classrooms/".concat(ze==null?void 0:ze.course_id,"/newgolds/settings"),target:"_blank"},e.a.createElement("i",{className:"iconfont icon-bianji1 ".concat(H.a.navLeftIcon)}))),e.a.createElement(d.a,{overlay:e.a.createElement(f.a,null,(Ma=Object(A.a)((pa=fe.detail)===null||pa===void 0?void 0:pa.courses))===null||Ma===void 0||((Na=Ma.reverse())===null||Na===void 0)?void 0:Na.map(function(dn,zt){var yn,Ht;return e.a.createElement(f.a.Item,{key:dn.course_id,onClick:function(){return mi(dn.course_id)}},e.a.createElement("span",{className:"font14"},"\u7B2C",((yn=fe.detail)===null||yn===void 0||((Ht=yn.courses)===null||Ht===void 0)?void 0:Ht.length)-zt,"\u671F"))}))},e.a.createElement("div",null,e.a.createElement("span",{className:"font14 current"},"\u7B2C",e.a.createElement("span",{className:H.a.colorOrange},vr),"\u671F"),e.a.createElement(G.a,null))),e.a.createElement("div",{className:H.a.navContent},e.a.createElement("div",{className:H.a.contentItem},e.a.createElement("div",{className:H.a.contentItemTitle},"\u5F00\u8BFE\u65F6\u95F4\uFF1A"),e.a.createElement("div",{className:H.a.contentItemText},ze==null?void 0:ze.start_date)),e.a.createElement("div",{className:H.a.verticalLine}),e.a.createElement("div",{className:H.a.contentItem},e.a.createElement("div",{className:H.a.contentItemTitle},"\u7ED3\u8BFE\u65F6\u95F4\uFF1A"),e.a.createElement("div",{className:H.a.contentItemText},ze==null?void 0:ze.end_date)),e.a.createElement("div",{className:H.a.verticalLine}),e.a.createElement("div",{className:H.a.contentItem},e.a.createElement("div",{className:H.a.contentItemTitle},((Ba=fe.detail)===null||Ba===void 0?void 0:Ba.excellent)?"\u53C2\u4E0E\u4EBA\u6570\uFF1A":"\u62A5\u540D\u4EBA\u6570\uFF1A"),e.a.createElement("div",{className:H.a.contentItemText},ze==null?void 0:ze.student_count," \u4EBA")))),e.a.createElement("div",{className:H.a.navRight,style:{display:"none"}},e.a.createElement("div",{className:H.a.flexRow},(ze==null||((Fa=ze.course_status)===null||Fa===void 0)?void 0:Fa.status)===1&&e.a.createElement("div",{className:"mr20 c-red-ee4"},ze==null||((ya=ze.course_status)===null||ya===void 0)?void 0:ya.time),(ze==null||((Wa=ze.course_status)===null||Wa===void 0)?void 0:Wa.status)===2&&ze.course_identity<6&&e.a.createElement("div",{className:"current mr20 c-grey-9b9 font14"},"\u5DF2\u7ED3\u675F"),((ba=ze.course_status)===null||ba===void 0?void 0:ba.status)===2&&(ze.course_identity<6?e.a.createElement("a",{className:H.a.classButton,href:"/classrooms/".concat(ze==null||((Aa=ze.first_category_url)===null||Aa===void 0||((xa=Aa.split("/"))===null||xa===void 0))?void 0:xa[2],"/announcement"),target:"_blank"},"\u8FDB\u5165\u8BFE\u5802"):e.a.createElement("div",{className:"current mr20 c-grey-9b9 font14"},"\u5DF2\u7ED3\u675F")),((za=ze.course_status)===null||za===void 0?void 0:za.status)===1&&ze.course_identity>5&&e.a.createElement("div",{className:H.a.classButton,onClick:Lr},"\u7ACB\u5373\u52A0\u5165"),((Xa=ze.course_status)===null||Xa===void 0?void 0:Xa.status)===1&&ze.course_identity===5&&e.a.createElement("a",{className:H.a.classButton,href:"/classrooms/".concat(ze==null||((Qa=ze.first_category_url)===null||Qa===void 0||((Ka=Qa.split("/"))===null||Ka===void 0))?void 0:Ka[2],"/announcement"),target:"_blank"},"\u7ACB\u5373\u5B66\u4E60"),((ra=ze.course_status)===null||ra===void 0?void 0:ra.status)===0&&ze.course_identity>5&&e.a.createElement("div",{className:H.a.classButton,onClick:Lr},"\u7ACB\u5373\u62A5\u540D"),((la=ze.course_status)===null||la===void 0?void 0:la.status)===0&&ze.course_identity===5&&e.a.createElement("div",{className:H.a.classButton},"\u62A5\u540D\u6210\u529F"),((ze==null||((Ga=ze.course_status)===null||Ga===void 0)?void 0:Ga.status)===0||(ze==null||((Ha=ze.course_status)===null||Ha===void 0)?void 0:Ha.status)===1)&&ze.course_identity<5&&e.a.createElement("a",{className:H.a.classButton,href:"/classrooms/".concat(ze==null||((Va=ze.first_category_url)===null||Va===void 0||((Ya=Va.split("/"))===null||Ya===void 0))?void 0:Ya[2],"/announcement"),target:"_blank"},"\u8FDB\u5165\u8BFE\u5802"),_r&&Cr&&((wa=fe.detail)===null||wa===void 0?void 0:wa.has_participate)&&e.a.createElement("span",{className:"".concat(H.a.classButton," ").concat(H.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"),_r&&Cr&&!((rr=fe.detail)===null||rr===void 0?void 0:rr.has_participate)&&(Sa?e.a.createElement("span",{className:"".concat(H.a.classButton," ").concat(H.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"):e.a.createElement("span",{className:"".concat(H.a.classButton," ").concat(H.a.bg28e),onClick:ai},"\u671F\u5F85\u5F00\u8BFE\u5E76\u9884\u7EA6\u62A5\u540D"))),e.a.createElement("div",{className:H.a.flexRow},_r&&!!((Ja=fe.detail)===null||Ja===void 0||((Za=Ja.courses)===null||Za===void 0)?void 0:Za.length)&&Cr&&e.a.createElement("span",{className:"mt20"},e.a.createElement("span",{className:"mr10"},"\u5F53\u9884\u7EA6\u62A5\u540D\u4EBA\u6570\u8FBE\u5230 ",(Te=fe.detail)===null||Te===void 0?void 0:Te.student_count," \u4EBA\u65F6\u5373\u5C06\u5F00\u8BFE"),e.a.createElement("span",{className:""},"\u5F53\u524D\u9884\u7EA6\u62A5\u540D\u4EBA\u6570\uFF1A",e.a.createElement("span",{className:"mr5 c-red-ee4"},Sa===!0?((Da=fe.detail)===null||Da===void 0?void 0:Da.participant_count)+1:(ir=fe.detail)===null||ir===void 0?void 0:ir.participant_count),"\u4EBA")),_r&&!((Sr=fe.detail)===null||Sr===void 0||((or=Sr.courses)===null||or===void 0)?void 0:or.length)&&Cr&&e.a.createElement("span",null,!((Wn=fe.detail)===null||Wn===void 0?void 0:Wn.has_participate)&&(Sa===!0?e.a.createElement("span",{className:"".concat(H.a.classButton," ").concat(H.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"):e.a.createElement("a",{className:"".concat(H.a.classButton," ").concat(H.a.bg28e),onClick:ai},"\u671F\u5F85\u5F00\u8BFE\u5E76\u9884\u7EA6\u62A5\u540D")),((Or=fe.detail)===null||Or===void 0?void 0:Or.has_participate)&&e.a.createElement("span",{className:"".concat(H.a.classButton," ").concat(H.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"),e.a.createElement("span",{className:"mr10"},"\u5F53\u9884\u7EA6\u62A5\u540D\u4EBA\u6570\u8FBE\u5230 ",(Ke=fe.detail)===null||Ke===void 0?void 0:Ke.student_count," \u4EBA\u65F6\u5373\u5C06\u5F00\u8BFE"),e.a.createElement("span",{className:""},"\u5F53\u524D\u9884\u7EA6\u62A5\u540D\u4EBA\u6570\uFF1A",e.a.createElement("span",{className:"mr5 c-red-ee4"},Sa===!0?((_e=fe.detail)===null||_e===void 0?void 0:_e.participant_count)+1:(Pe=fe.detail)===null||Pe===void 0?void 0:Pe.participant_count),"\u4EBA"))))))),e.a.createElement(oe,null))},R=Object(i.a)(function(de){var le=de.pathsDetail,Ee=de.user,Re=de.loading,Ge=de.globalSetting;return{pathsDetail:le,user:Ee,globalSetting:Ge,loading:Re.models.index}})(c),y=U("9Bee"),x=U("MXD1"),Q=U("CFYs"),V=U("5NDa"),xe=U("5rEg"),be=U("8Bcu"),ce=U.n(be),Se=U("g9YV"),Qe=U("wCAj"),et=U("O3gP"),he=U("lrIw"),Dt=U("y8nQ"),ft=U("Vl3Y"),$t=U("RotF"),fn=U.n($t),An=U("oUNq"),xn=U("55Ip"),tn=function(le){var Ee=le.pathsDetail,Re=le.loading,Ge=le.dispatch,ye=le.onReloadData,xt=ye===void 0?function(){}:ye,Ne=Object(n.m)(),Oe=Object(o.useState)([]),Ze=Object(l.a)(Oe,2),we=Ze[0],ct=Ze[1],mt=Object(o.useState)(!0),Ae=Object(l.a)(mt,2),Ut=Ae[0],$e=Ae[1],yt=Object(o.useState)(!1),Ce=Object(l.a)(yt,2),ke=Ce[0],_t=Ce[1],nn=ft.a.useForm(),Be=Object(l.a)(nn,1),st=Be[0],Gt=Object(o.useState)([]),Ft=Object(l.a)(Gt,2),Le=Ft[0],Pt=Ft[1],bt=Object(o.useState)(1),Et=Object(l.a)(bt,2),Jt=Et[0],Ct=Et[1],Rt=Object(o.useState)([]),hn=Object(l.a)(Rt,2),ln=hn[0],mn=hn[1],_n=Object(o.useState)(!0),vn=Object(l.a)(_n,2),rt=vn[0],gn=vn[1],Cn=Object(o.useState)(!1),sn=Object(l.a)(Cn,2),Tt=sn[0],We=sn[1];Object(o.useEffect)(function(){Ee.actionTabs.key==="Collaborators-AddCollaborator"&&(gn(!0),$e(!0),Lt())},[Ee.actionTabs.key]);var Lt=function(){var Me=Object(v.a)(t.a.mark(function ge(){var Ve;return t.a.wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:return Je.next=2,Ge({type:"classroomList/getSchoolList",payload:{}});case 2:Ve=Je.sent,ct(Ve.map(function(kt){return{value:kt}}));case 4:case"end":return Je.stop()}},ge)}));return function(){return Me.apply(this,arguments)}}(),Sn=function(){var ge,Ve;if(!((ge=st.getFieldValue())===null||ge===void 0||((Ve=ge.keyword)===null||Ve===void 0)?void 0:Ve.trim())){N.b.warn("\u8BF7\u8F93\u5165\u59D3\u540D"),Pt([]);return}gn(!1),$e(!0),_t(!1),Ct(1),mn([]),St(!0)},lt=function(ge){ge=String(ge);var Ve=ln.indexOf(ge);Ve<0?ln.push(ge):ln.splice(Ve,1),mn(Object(A.a)(ln))},St=function(){var Me=Object(v.a)(t.a.mark(function ge(){var Ve,Ot,Je,kt,Mt,Tn=arguments;return t.a.wrap(function(cn){for(;;)switch(cn.prev=cn.next){case 0:if(Ve=Tn.length>0&&Tn[0]!==void 0?Tn[0]:!1,!(Ut&&!ke||Ve)){cn.next=11;break}return kt=st.getFieldValue(),_t(!0),Ct(Ve?1:Jt+1),cn.next=7,Object(An.tb)({page:Ve?1:Jt+1,container_id:Ne.pathId,container_type:3,school_name:(kt==null?void 0:kt.school_name)||null,keyword:(kt==null||((Ot=kt.keyword)===null||Ot===void 0)?void 0:Ot.trim())||null});case 7:Mt=cn.sent,Pt(Ve?Object(A.a)(Mt.users):[].concat(Object(A.a)(Le),Object(A.a)(Mt.users))),_t(!1),((Je=Mt.users)===null||Je===void 0?void 0:Je.length)<10&&$e(!1);case 11:case"end":return cn.stop()}},ge)}));return function(){return Me.apply(this,arguments)}}(),vt=function(){var Me=Object(v.a)(t.a.mark(function ge(){var Ve;return t.a.wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:if(ln==null?void 0:ln.length){Je.next=4;break}N.b.warn("\u8BF7\u5148\u5728\u4E0B\u9762\u5217\u8868\u4E2D\u9009\u62E9\u8981\u6DFB\u52A0\u6210\u5458"),Je.next=10;break;case 4:return We(!0),Je.next=7,Object(te.e)({id:Ne.pathId,user_ids:ln});case 7:Ve=Je.sent,We(!1),Ve&&(N.b.success("\u6DFB\u52A0\u6210\u529F"),qe(),xt&&xt());case 10:case"end":return Je.stop()}},ge)}));return function(){return Me.apply(this,arguments)}}(),qe=function(){st.setFieldsValue({keyword:""}),Ge({type:"pathsDetail/setActionTabs",payload:{}})},He=[{title:"",dataIndex:"added",width:40,ellipsis:!0,render:function(ge,Ve){return e.a.createElement(I.a,{value:Ve.numid,checked:ln.includes(String(Ve.numid)),disabled:!!ge})}},{title:"\u59D3\u540D",width:100,ellipsis:!0,dataIndex:"username",render:function(ge,Ve){return e.a.createElement(E.a,{placement:"bottom",title:ge},e.a.createElement(xn.Link,{className:"bold c-black",to:"/users/".concat(Ve.login),target:"_blank"},ge||"--"))}},{title:"\u624B\u673A\u53F7",width:100,dataIndex:"phone",ellipsis:!0,render:function(ge){return e.a.createElement(E.a,{placement:"bottom",title:ge},e.a.createElement("span",null,ge||"--"))}},{title:"\u90AE\u7BB1",dataIndex:"email",width:100,ellipsis:!0,render:function(ge){return e.a.createElement(E.a,{placement:"bottom",title:ge},e.a.createElement("span",null,ge||"--"))}},{title:"\u5B66\u53F7/\u5DE5\u53F7",width:100,dataIndex:"student_number",ellipsis:!0,render:function(ge){return e.a.createElement(E.a,{placement:"bottom",title:ge},e.a.createElement("span",null,ge||"--"))}},{title:"\u5B66\u6821/\u5355\u4F4D",width:150,dataIndex:"school_name",ellipsis:!0,render:function(ge){return e.a.createElement(E.a,{placement:"bottom",title:ge},e.a.createElement("span",null,ge||"--"))}},{title:"\u9662\u7CFB/\u90E8\u95E8",dataIndex:"depart_name",width:130,ellipsis:!0,render:function(ge){return e.a.createElement(E.a,{placement:"bottom",title:ge},e.a.createElement("span",null,ge||"--"))}},{title:"\u5B9E\u540D\u8BA4\u8BC1",dataIndex:"auth",width:100,render:function(ge){return ge?"\u662F":"\u5426"}},{title:"\u6700\u540E\u767B\u5F55\u65F6\u95F4",dataIndex:"last_login_on",width:140,ellipsis:!0,render:function(ge){return e.a.createElement(E.a,{placement:"bottom",title:ge&&ue()(ge).format("YYYY-MM-DD HH:mm")},e.a.createElement("span",null,ge&&ue()(ge).format("YYYY-MM-DD HH:mm")))}},{title:"\u72B6\u6001",dataIndex:"added",width:80,render:function(ge){if(ge===1)return e.a.createElement("span",{className:"c-green"},"\u5DF2\u6DFB\u52A0")}}];return e.a.createElement(L.a,{title:"\u6DFB\u52A0\u5408\u4F5C\u8005",visible:Ee.actionTabs.key==="Collaborators-AddCollaborator",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",width:1100,centered:!0,keyboard:!1,maskClosable:!1,bodyStyle:{minHeight:200},confirmLoading:Tt,onOk:vt,onCancel:qe},e.a.createElement(ft.a,{layout:"inline",form:st,initialValues:{school_name:"",keyword:""},className:"mt10",onFinish:Sn},e.a.createElement(ft.a.Item,{name:"keyword",label:"\u59D3\u540D\uFF1A"},e.a.createElement(xe.a,{allowClear:!0,style:{width:370},size:"large",placeholder:"\u8BF7\u8F93\u5165\u771F\u5B9E\u59D3\u540D"})),e.a.createElement(ft.a.Item,{name:"school_name",label:"\u5355\u4F4D\uFF1A"},e.a.createElement(he.a,{allowClear:!0,defaultOpen:!1,options:we,style:{width:400},size:"large",placeholder:"\u8BF7\u8F93\u5165\u5355\u4F4D\u540D\u79F0",filterOption:function(ge,Ve){return Ve.value.toUpperCase().indexOf(ge.toUpperCase())!==-1}})),e.a.createElement(ft.a.Item,null,e.a.createElement(C.a,{htmlType:"submit",type:"primary",size:"large"},"\u641C\u7D22"))),rt&&e.a.createElement("div",{className:"tc font16 c-light-black mt40"},e.a.createElement("img",{src:U("E7E6"),width:"100",alt:""}),e.a.createElement("br",null),"\u8BF7\u641C\u7D22\u8981\u6DFB\u52A0\u7684\u4EBA\u5458"),!rt&&e.a.createElement("section",null,e.a.createElement("div",{className:"flexd-table-header mt20"},e.a.createElement(Qe.a,{pagination:!1,dataSource:[],columns:He})),e.a.createElement("div",{style:{maxHeight:260,overflow:"auto"}},e.a.createElement(fn.a,{initialLoad:!1,pageStart:1,threshold:20,loadMore:function(ge){St()},hasMore:Ut,useWindow:!1},e.a.createElement(Qe.a,{loading:ke,showHeader:!1,pagination:!1,dataSource:Le,columns:He,onRow:function(ge){return{onClick:function(Ot){Ot.currentTarget.querySelector("input").disabled||lt(Ot.currentTarget.querySelector("input").value)}}}})))))},De=Object(i.a)(function(de){var le=de.pathsDetail,Ee=de.loading;return{pathsDetail:le,loading:Ee}})(tn),Ye=function(le){var Ee=le.pathsDetail,Re=le.loading,Ge=le.dispatch,ye=le.data,xt=le.onReloadData,Ne=xt===void 0?function(){}:xt,Oe=Object(n.m)(),Ze=Object(o.useState)(!0),we=Object(l.a)(Ze,2),ct=we[0],mt=we[1],Ae=Object(o.useState)(!1),Ut=Object(l.a)(Ae,2),$e=Ut[0],yt=Ut[1],Ce=ft.a.useForm(),ke=Object(l.a)(Ce,1),_t=ke[0],nn=Object(o.useState)([]),Be=Object(l.a)(nn,2),st=Be[0],Gt=Be[1],Ft=Object(o.useState)(1),Le=Object(l.a)(Ft,2),Pt=Le[0],bt=Le[1],Et=Object(o.useState)([]),Jt=Object(l.a)(Et,2),Ct=Jt[0],Rt=Jt[1],hn=Object(o.useState)(!0),ln=Object(l.a)(hn,2),mn=ln[0],_n=ln[1],vn=Object(o.useState)(!1),rt=Object(l.a)(vn,2),gn=rt[0],Cn=rt[1];Object(o.useEffect)(function(){Ee.actionTabs.key==="Collaborators-AddCourses"&&(_n(!0),mt(!0),sn())},[Ee.actionTabs.key]);var sn=function(){var vt=Object(v.a)(t.a.mark(function qe(){var He;return t.a.wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:return ge.next=2,Ge({type:"classroomList/getSchoolList",payload:{}});case 2:He=ge.sent;case 3:case"end":return ge.stop()}},qe)}));return function(){return vt.apply(this,arguments)}}(),Tt=function(){_n(!1),mt(!0),yt(!1),bt(1),Rt([]),Lt(!0)},We=function(qe){qe=String(qe);var He=Ct.indexOf(qe);He<0?Ct.push(qe):Ct.splice(He,1),Rt(Object(A.a)(Ct))},Lt=function(){var vt=Object(v.a)(t.a.mark(function qe(){var He,Me,ge,Ve,Ot,Je=arguments;return t.a.wrap(function(Mt){for(;;)switch(Mt.prev=Mt.next){case 0:if(He=Je.length>0&&Je[0]!==void 0?Je[0]:!1,!(ct&&!$e||He)){Mt.next=11;break}return Ve=_t.getFieldValue(),yt(!0),bt(He?1:Pt+1),Mt.next=7,Object(An.sb)({page:He?1:Pt+1,container_id:Oe.pathId,container_type:3,manager_name:(Ve==null?void 0:Ve.manager_name)||null,course_name:(Ve==null||((Me=Ve.course_name)===null||Me===void 0)?void 0:Me.trim())||null});case 7:Ot=Mt.sent,Gt(He?Object(A.a)(Ot.courses):[].concat(Object(A.a)(st),Object(A.a)(Ot.courses))),yt(!1),((ge=Ot.courses)===null||ge===void 0?void 0:ge.length)<10&&mt(!1);case 11:case"end":return Mt.stop()}},qe)}));return function(){return vt.apply(this,arguments)}}(),Sn=function(){var vt=Object(v.a)(t.a.mark(function qe(){var He,Me,ge,Ve;return t.a.wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:if(Ct==null?void 0:Ct.length){Je.next=4;break}N.b.warn("\u8BF7\u5148\u5728\u4E0B\u9762\u5217\u8868\u4E2D\u9009\u62E9\u8981\u6DFB\u52A0\u8BFE\u5802"),Je.next=19;break;case 4:if(!(Ee.actionTabs.type!=1)){Je.next=10;break}if(!((Ee==null||((He=Ee.Courses)===null||He===void 0||((Me=He.spoc_courses)===null||Me===void 0))?void 0:Me.length)+(Ct==null?void 0:Ct.length)>3)){Je.next=8;break}return N.b.warn("\u4E00\u4E2A\u5B9E\u8DF5\u8BFE\u7A0B\u53EA\u80FD\u52A0\u51653\u4E2Aspoc\u8BFE\u5802"),Je.abrupt("return");case 8:Je.next=13;break;case 10:if(!((ye==null||((ge=ye.spoc_courses)===null||ge===void 0)?void 0:ge.length)+(Ct==null?void 0:Ct.length)>3)){Je.next=13;break}return N.b.warn("\u4E00\u4E2A\u5B9E\u8DF5\u8BFE\u7A0B\u53EA\u80FD\u52A0\u51653\u4E2A\u5386\u53F2\u8BFE\u5802"),Je.abrupt("return");case 13:return Cn(!0),Je.next=16,Object(te.b)({id:Oe.pathId,course_ids:Ct,course_type:Ee.actionTabs.type});case 16:Ve=Je.sent,Cn(!1),Ve&&(N.b.success("\u6DFB\u52A0\u6210\u529F"),lt(),Ne&&Ne());case 19:case"end":return Je.stop()}},qe)}));return function(){return vt.apply(this,arguments)}}(),lt=function(){_t.setFieldsValue({course_name:"",manager_name:""}),Rt([]),Ge({type:"pathsDetail/setActionTabs",payload:{}})},St=[{title:"",dataIndex:"added",width:40,ellipsis:!0,render:function(qe,He){return e.a.createElement(I.a,{value:He.id,checked:Ct.includes(String(He.id)),disabled:!!qe})}},{title:"\u8BFE\u5802\u540D\u79F0",dataIndex:"name",width:100,ellipsis:!0,render:function(qe){return e.a.createElement(E.a,{placement:"bottom",title:qe},e.a.createElement("span",null,qe||"--"))}},{title:"\u7BA1\u7406\u8005",width:100,dataIndex:"managers",ellipsis:!0,render:function(qe){return e.a.createElement(E.a,{placement:"bottom",title:qe},e.a.createElement("span",null,qe||"--"))}},{title:"\u8BFE\u5802\u6240\u5728\u5B66\u6821",width:150,dataIndex:"school_name",ellipsis:!0,render:function(qe){return e.a.createElement(E.a,{placement:"bottom",title:qe},e.a.createElement("span",null,qe||"--"))}},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"created_at",width:140,ellipsis:!0,render:function(qe){return e.a.createElement(E.a,{placement:"bottom",title:qe},e.a.createElement("span",null,qe))}},{title:"\u6210\u5458\u6570\u91CF",dataIndex:"course_members_count",width:80,render:function(qe){return e.a.createElement(E.a,{placement:"bottom",title:qe},e.a.createElement("span",null,qe||"--"))}}];return e.a.createElement(L.a,{title:"\u6DFB\u52A0\u8BFE\u5802",visible:Ee.actionTabs.key==="Collaborators-AddCourses",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",width:1100,centered:!0,keyboard:!1,maskClosable:!1,bodyStyle:{minHeight:200},confirmLoading:gn,onOk:Sn,onCancel:lt},e.a.createElement(ft.a,{layout:"inline",form:_t,initialValues:{course_name:"",manager_name:""},className:"mt10",onFinish:Tt},e.a.createElement(ft.a.Item,{name:"course_name",label:"\u8BFE\u5802\u540D\u79F0"},e.a.createElement(xe.a,{allowClear:!0,style:{width:370},size:"large",placeholder:"\u8BF7\u8F93\u5165\u8BFE\u5802\u540D\u79F0"})),e.a.createElement(ft.a.Item,{name:"manager_name",label:"\u8BFE\u5802\u7BA1\u7406\u8005"},e.a.createElement(xe.a,{allowClear:!0,style:{width:370},size:"large",placeholder:"\u8BF7\u8F93\u5165\u8BFE\u5802\u7BA1\u7406\u8005\u540D\u79F0"})),e.a.createElement(ft.a.Item,null,e.a.createElement(C.a,{htmlType:"submit",type:"primary",size:"large"},"\u641C\u7D22"))),mn&&e.a.createElement("div",{className:"tc font16 c-light-black mt40"},e.a.createElement("img",{src:U("E7E6"),width:"100",alt:""}),e.a.createElement("br",null),"\u8BF7\u641C\u7D22\u8981\u6DFB\u52A0\u7684\u4EBA\u5458"),!mn&&e.a.createElement("section",null,e.a.createElement("div",{className:"flexd-table-header mt20"},e.a.createElement(Qe.a,{pagination:!1,dataSource:[],columns:St})),e.a.createElement("div",{style:{maxHeight:260,overflow:"auto"}},e.a.createElement(fn.a,{initialLoad:!1,pageStart:1,threshold:20,loadMore:function(qe){Lt()},hasMore:ct,useWindow:!1},e.a.createElement(Qe.a,{loading:$e,showHeader:!1,pagination:!1,dataSource:st,columns:St,onRow:function(qe){return{onClick:function(Me){Me.currentTarget.querySelector("input").disabled||We(Me.currentTarget.querySelector("input").value)}}}})))))},rn=Object(i.a)(function(de){var le=de.pathsDetail,Ee=de.loading;return{pathsDetail:le,loading:Ee}})(Ye),at=U("2BaD"),qt=U("1n7x"),tt=U.n(qt),Nt=U("y1J/"),jn=U.n(Nt),on=U("A2z3"),wn=U.n(on),ot=U("Ye+n"),wt=U.n(ot),Xt=function(le){var Ee=le.visible,Re=le.onOk,Ge=Re===void 0?function(){}:Re,ye=le.onCancel,xt=ye===void 0?function(){}:ye,Ne=le.data,Oe=Ne===void 0?{}:Ne,Ze=Object(o.useRef)();Object(o.useEffect)(function(){return Ee?document.body.setAttribute("class",wt.a.bodyHeight):document.body.removeAttribute("class"),function(){document.body.removeAttribute("class")}},[Ee]);var we={"1":"January","2":"February","3":"March","4":"April","5":"May","6":"June","7":"July","8":"August","9":"September","10":"October","11":"November","12":"December"},ct=function(){var mt=Object(v.a)(t.a.mark(function Ae(){var Ut,$e,yt;return t.a.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return document.body.scrollIntoView(),Ut={margin:[0,0,0,0],filename:"11.pdf",enableLinks:!1,html2canvas:{scale:5,allowTaint:!1,useCORS:!0},jsPDF:{format:[1412,1e3],orientation:"landscape",unit:"px"},image:{type:"jpeg",quality:1}},$e=tt()().set(Ut).from(Ze.current).toPdf(),ke.next=5,$e.get("pdf");case 5:return $e=ke.sent,ke.next=8,$e.output("bloburl");case 8:yt=ke.sent,Object(ie.r)("".concat(Oe.school_name,"-").concat(Oe.user_name,".pdf"),yt);case 10:case"end":return ke.stop()}},Ae)}));return function(){return mt.apply(this,arguments)}}();return e.a.createElement(L.a,{visible:Ee,title:null,footer:e.a.createElement("div",null,e.a.createElement(C.a,{type:"primary",onClick:ct},"\u4E0B\u8F7D\u8BC1\u4E66")),style:{background:"transparen",height:"740px"},centered:!0,width:1052,className:wt.a.advertisementModal,maskClosable:!1,closeIcon:e.a.createElement(at.a,{onClick:xt,style:{fontSize:"25px",color:"#fff",marginLeft:"100px"}})},e.a.createElement("div",{ref:Ze},e.a.createElement("div",{style:{backgroundImage:"url(".concat(wn.a,")"),height:"740px",width:"1052px",padding:"1px 100px"}},e.a.createElement("div",{style:{color:"#EB5E00",fontSize:"36px",marginTop:"239px",width:"100%",textAlign:"center"}},Oe==null?void 0:Oe.school_name," ",Oe==null?void 0:Oe.user_name),e.a.createElement("div",{style:{color:"#0D3580",fontSize:"24px",marginTop:"30px",width:"100%",textAlign:"center"}},"\u4E8E",ue()(Oe==null?void 0:Oe.created_at).format("YYYY\u5E74MM\u6708DD\u65E5"),"\u5B8C\u6210\u4E86EduCoder\u5E73\u53F0\u300A",Oe==null?void 0:Oe.subject_name,"\u300B\u8BFE\u7A0B\u5B66\u4E60\u3002"),e.a.createElement("div",{style:{color:"#0D3580",fontSize:"30px",marginTop:"50px",width:"100%",textAlign:"center",fontWeight:900}},"\u7279\u6B64\u8BC1\u660E"),e.a.createElement("div",{style:{color:"#0D3580",fontSize:"14px",marginTop:"30px",width:"100%",textAlign:"center"}},"On ",we[ue()(Oe==null?void 0:Oe.created_at).format("M")]," ",ue()(Oe==null?void 0:Oe.created_at).format("DD"),"\uFF0C",ue()(Oe==null?void 0:Oe.created_at).format("YYYY"),"\uFF0C completed the \u300A",Oe==null?void 0:Oe.subject_name_en,"\u300B course on EduCoder."),e.a.createElement("img",{src:jn.a,style:{position:"absolute",left:"820px",bottom:"130px"}}),e.a.createElement("div",{style:{color:"#0D3580",fontSize:"12px",width:"100%",display:"flex",paddingRight:"200px",position:"absolute",bottom:"150px"}},e.a.createElement("span",null,"\u8BC1\u4E66\u7F16\u53F7\uFF1A",Oe==null?void 0:Oe.code),e.a.createElement("span",{style:{marginLeft:"560px"}},"\u5934\u6B4C\u5728\u7EBF\u7F16\u7A0B\u5B66\u9662")))))},ht=Xt,Yt=U("YJCA"),Zn=U("wYyv"),Rn=U.n(Zn),Vn=U("WPnJ"),oa=U.n(Vn),Nn=U("ErOA"),dr=Object(Yt.b)(function(de){var le,Ee,Re,Ge,ye,xt,Ne,Oe,Ze,we=de.item,ct=de.toIndex,mt=de.params,Ae=de.isShow,Ut=de.setShow,$e=de.dispatch,yt=de.classroomList,Ce=de.handleDeleteMember,ke=de.pathsDetail;return e.a.createElement("span",{style:{display:"inline-block",width:"33%",padding:"5px",background:"#fff",marginTop:"10px"}},e.a.createElement("div",{className:oa.a.directionItemWrap},e.a.createElement(E.a,{color:"#ffffff",placement:"bottom",title:e.a.createElement("div",{className:oa.a.teamHeight},e.a.createElement("span",{title:we==null?void 0:we.name,style:{fontSize:"14px",color:"#333333",textOverflow:"ellipsis",whiteSpace:"nowrap",width:"80px",overflow:"hidden"}},(we==null||((le=we.name)===null||le===void 0)?void 0:le.length)>6?(we==null||((Ee=we.name)===null||Ee===void 0)?void 0:Ee.substr(0,6))+"...":(we==null?void 0:we.name)||"--"),e.a.createElement("span",{style:{marginLeft:"10px",color:"#999999",fontSize:"12px"}},(we==null||((Re=we.school)===null||Re===void 0)?void 0:Re.length)>9?(we==null||((Ge=we.school)===null||Ge===void 0)?void 0:Ge.substr(0,9))+"...":we==null?void 0:we.school),e.a.createElement("div",{style:{height:"1px",width:"100%",border:"1px solid #f5f5f5",marginTop:"3px",marginBottom:"3px"}}),!(we==null?void 0:we.brief_introduction)&&e.a.createElement("div",{style:{textAlign:"center",marginTop:"20px"}},"\u6682\u65E0\u7B80\u4ECB"),(we==null?void 0:we.brief_introduction)&&e.a.createElement("div",{className:oa.a.divHeight},we==null?void 0:we.brief_introduction))},e.a.createElement("img",{draggable:!1,className:oa.a.imgradius,onClick:function(){Object(F.p)()?i.c.push("".concat(we.user_url)):$e({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}})},src:me.a.API_SERVER+"/images/"+(we==null?void 0:we.image_url)}),e.a.createElement("div",null,(we==null||((ye=we.name)===null||ye===void 0)?void 0:ye.length)>6?(we==null||((xt=we.name)===null||xt===void 0)?void 0:xt.substr(0,6))+"...":(we==null?void 0:we.name)||"--",e.a.createElement("br",null),e.a.createElement("span",{style:{color:"#999999"}},(we==null||((Ne=we.school)===null||Ne===void 0)?void 0:Ne.length)>6?(we==null||((Oe=we.school)===null||Oe===void 0)?void 0:Oe.substr(0,6))+"...":(we==null?void 0:we.school)||"--"))),e.a.createElement("br",null),e.a.createElement("span",{className:oa.a.groupActionWrap},e.a.createElement("i",{style:{display:!((Ze=ke.detail)===null||Ze===void 0?void 0:Ze.allow_add_member)&&"none"},className:"iconfont icon-shanchu5 mr1 c-red font15 current",onClick:function(nn){nn.stopPropagation(),Ce(we.id)}}))))}),tr=Object(Yt.a)(function(de){var le=de.isShow,Ee=de.setShow,Re=de.pathsDetail,Ge=de.items,ye=de.params,xt=de.dispatch,Ne=de.classroomList,Oe=de.handleDeleteMember;return e.a.createElement("div",{className:"task-list-container"},Ge==null?void 0:Ge.map(function(Ze,we){return e.a.createElement(dr,{key:"".concat(Ze.id),isShow:le,setShow:Ee,dispatch:xt,pathsDetail:Re,handleDeleteMember:Oe,classroomList:Ne,toIndex:we+1,params:ye,index:we,item:Ze})}))}),Ie=function(le){var Ee=le.data,Re=le.classroomList,Ge=le.pathsDetail,ye=le.operation,xt=le.callback,Ne=le.handleDeleteMember,Oe=le.onCancel,Ze=le.dispatch,we=le.visible,ct=we===void 0?!1:we,mt=Object(o.useState)(Ee),Ae=Object(l.a)(mt,2),Ut=Ae[0],$e=Ae[1],yt=Object(n.m)(),Ce=Object(o.useState)(),ke=Object(l.a)(Ce,2),_t=ke[0],nn=ke[1],Be=Object(o.useState)(!0),st=Object(l.a)(Be,2),Gt=st[0],Ft=st[1];function Le(Et){var Jt=Et.newIndex,Ct=Et.oldIndex;if(!ye)return;Pt(Rn()(Ut,Ct,Jt).map(function(Rt){return Rt==null?void 0:Rt.id})),$e(Rn()(Ut,Ct,Jt))}Object(o.useEffect)(function(){$e(Ee)},[JSON.stringify(Ee)]);function Pt(Et){return bt.apply(this,arguments)}function bt(){return bt=Object(v.a)(t.a.mark(function Et(Jt){var Ct;return t.a.wrap(function(hn){for(;;)switch(hn.prev=hn.next){case 0:return hn.next=2,Object(Nn.a)("/api/paths/".concat(yt==null?void 0:yt.pathId,"/move_subject_members.json"),{method:"post",body:{user_ids:Jt}});case 2:Ct=hn.sent;case 3:case"end":return hn.stop()}},Et)})),bt.apply(this,arguments)}return e.a.createElement("div",{style:{zIndex:9999,width:"100%"},className:"sort-list-panel"},e.a.createElement(tr,{axis:"xy",helperClass:"dragging-li",isShow:Gt,setShow:Ft,distance:2,dispatch:Ze,pathsDetail:Ge,handleDeleteMember:Ne,classroomList:Re,params:yt,items:Ut,onSortEnd:Le}))},Oa=Object(i.a)(function(de){var le=de.classroomList,Ee=de.pathsDetail;return{classroomList:le,pathsDetail:Ee}})(Ie),fr=U("lseA"),da=U.n(fr),nr=[2,5,8,11,14],Er=Object(Yt.b)(function(de){var le,Ee,Re,Ge,ye=de.item,xt=de.toIndex,Ne=de.params,Oe=de.dispatch,Ze=de.classroomList,we=de.handleDeleteMember,ct=de.pathsDetail;return e.a.createElement("span",{onClick:function(){window.open(ye==null?void 0:ye.first_category_url)},style:{display:"inline-block",padding:"10px 20px",width:"100%",background:"#fff",marginTop:"5px"}},e.a.createElement("div",{className:da.a.directionItemWrap},e.a.createElement("img",{className:da.a.imgradius,src:me.a.API_SERVER+(ye==null?void 0:ye.default_image)}),e.a.createElement("span",{className:da.a.groupActionWrap},e.a.createElement(E.a,{title:ye.name},e.a.createElement("span",{style:{fontSize:"18px",color:"#ffffff"}},((le=ye.name)===null||le===void 0?void 0:le.length)>7?e.a.createElement("span",null,(Ee=ye.name)===null||Ee===void 0?void 0:Ee.substring(0,7),e.a.createElement("br",null)," ",(Re=ye.name)===null||Re===void 0?void 0:Re.substring(7,14),(ye==null?void 0:ye.name.length)>14&&"..."):ye.name)))),e.a.createElement("div",{className:da.a.bottomdiv},e.a.createElement(E.a,{title:"\u8BBF\u95EE\u6570\uFF1A".concat(ye==null?void 0:ye.visits),placement:"bottom"},e.a.createElement("span",null,e.a.createElement("i",{style:{marginRight:"3px",color:"#bbbbbb"},className:"iconfont icon-chakan ml3 font15 current"}),e.a.createElement("span",{style:{color:"rgba(0, 0, 0, 0.45)"}},ye==null?void 0:ye.visits))),e.a.createElement(E.a,{title:"\u8BFE\u5802\u6210\u5458\u6570\uFF1A".concat(ye==null?void 0:ye.course_members_count),placement:"bottom"},e.a.createElement("span",null,e.a.createElement("i",{style:{marginRight:"3px",color:"#bbbbbb"},className:"iconfont icon-ren ml3 font15 current"}),e.a.createElement("span",{style:{color:"rgba(0, 0, 0, 0.45)"}}," ",ye==null?void 0:ye.course_members_count))),e.a.createElement(E.a,{overlayStyle:{maxWidth:380},title:e.a.createElement("div",{style:{whiteSpace:"nowrap"}},"\u8BFE\u5802\u7684\u4EFB\u52A1\u6570(\u4F5C\u4E1A\u6570\uFF0B\u8BD5\u5377\u6570\uFF0B\u95EE\u5377\u6570)\uFF1A",ye==null?void 0:ye.tasks_count),placement:"bottom"},e.a.createElement("span",null,e.a.createElement("i",{style:{marginRight:"3px",color:"#bbbbbb"},className:"iconfont icon-wenjian2 ml3 font15 current"}),e.a.createElement("span",{style:{color:"rgba(0, 0, 0, 0.45)"}}," ",ye==null?void 0:ye.tasks_count))),e.a.createElement(E.a,{title:"\u5220\u9664",placement:"bottom"},e.a.createElement("span",null,e.a.createElement("i",{style:{color:"#bbbbbb",display:!(ct==null||((Ge=ct.detail)===null||Ge===void 0)?void 0:Ge.allow_add_member)&&"none"},className:"iconfont icon-lajitong1 mr3 font15 current",onClick:function(Ae){Ae.stopPropagation(),we(ye.id)}})))))}),oi=Object(Yt.a)(function(de){var le=de.items,Ee=de.params,Re=de.dispatch,Ge=de.classroomList,ye=de.handleDeleteMember,xt=de.pathsDetail;return e.a.createElement("div",{className:"task-list-container"},le==null?void 0:le.map(function(Ne,Oe){return e.a.createElement(Er,{key:"".concat(Ne.id),dispatch:Re,pathsDetail:xt,handleDeleteMember:ye,classroomList:Ge,toIndex:Oe+1,params:Ee,index:Oe,item:Ne})}))}),Nr=function(le){var Ee=le.data,Re=le.classroomList,Ge=le.pathsDetail,ye=le.callback,xt=le.handleDeleteMember,Ne=le.onCancel,Oe=le.dispatch,Ze=le.visible,we=Ze===void 0?!1:Ze,ct=Object(o.useState)(Ee),mt=Object(l.a)(ct,2),Ae=mt[0],Ut=mt[1],$e=Object(n.m)(),yt=Object(o.useState)(),Ce=Object(l.a)(yt,2),ke=Ce[0],_t=Ce[1];function nn(Gt){var Ft=Gt.newIndex,Le=Gt.oldIndex;Be(Rn()(Ae,Le,Ft).map(function(Pt){return Pt==null?void 0:Pt.id})),Ut(Rn()(Ae,Le,Ft))}Object(o.useEffect)(function(){Ut(Ee)},[JSON.stringify(Ee)]);function Be(Gt){return st.apply(this,arguments)}function st(){return st=Object(v.a)(t.a.mark(function Gt(Ft){var Le;return t.a.wrap(function(bt){for(;;)switch(bt.prev=bt.next){case 0:return bt.next=2,Object(Nn.a)("/api/paths/".concat($e==null?void 0:$e.pathId,"/spoc_courses/move_position.json"),{method:"post",body:{ids:Ft}});case 2:Le=bt.sent;case 3:case"end":return bt.stop()}},Gt)})),st.apply(this,arguments)}return e.a.createElement("div",{style:{zIndex:9999,width:"100%"},className:"sort-list-panel"},e.a.createElement(oi,{axis:"y",helperClass:"dragging-li",pathsDetail:Ge,distance:2,dispatch:Oe,handleDeleteMember:xt,classroomList:Re,params:$e,items:Ae,onSortEnd:nn}))},ha=Object(i.a)(function(de){var le=de.classroomList,Ee=de.pathsDetail;return{classroomList:le,pathsDetail:Ee}})(Nr),Rr=U("V0Rq"),ar=U("HBuW"),Br=U("W6us"),Pa=U.n(Br),Fr=U("CnIC"),Wr=U.n(Fr),zr=U("LZjx"),Ca=U.n(zr),ma=U("dhSg"),si=U("cVA7"),Xr=U.n(si),yr=U("h6EL");function br(de){var le=function(xt,Ne){if(xt.localName===Ne)return xt;for(var Oe=0,Ze=xt;Ze=Ze.parentNode;Oe++){if(Ze.localName===Ne)return Ze;if(Ze==document.documentElement)return!1}},Ee=de.target,Re=le(Ee,"a");if(console.log([Re],Re==null?void 0:Re.href,44),Re==null?void 0:Re.href)return;if(Ee.tagName.toUpperCase()==="IMG"){var Ge=Ee.src||Ee.getAttribute("src");Ge&&Ge.indexOf("/images/avatars/User")===-1&&(de.stopPropagation(),de.preventDefault(),ma.a.publish("preview-image",Ge))}}var ui=function(le){var Ee,Re,Ge,ye,xt,Ne,Oe,Ze,we,ct,mt,Ae,Ut,$e,yt,Ce,ke,_t,nn,Be,st,Gt,Ft,Le,Pt,bt,Et,Jt,Ct,Rt,hn,ln,mn,_n,vn,rt,gn,Cn,sn,Tt,We,Lt,Sn,lt,St,vt,qe,He,Me,ge,Ve,Ot,Je,kt,Mt,Tn,Un,cn,Xn,Kn,Bn,qn,ua,Gn,Ta,Ua,_a,fa,Jn,Ia,va,ja,La,ka,ga,Ea,Ma,Na,pa,Ba,Fa,ya,Wa,ba,Aa,xa,za,Xa,Qa,Ka,ra,la,Ga,Ha,Va,Ya,wa,rr,Ja,Za,Te=le.pathsDetail,Da=le.user,ir=le.globalSetting,Sr=le.loading,or=le.classroomList,Wn=le.dispatch,Or=Object(_.a)(le,["pathsDetail","user","globalSetting","loading","classroomList","dispatch"]),Ke=Object(n.m)(),_e=Object(o.useState)(!0),Pe=Object(l.a)(_e,2),fe=Pe[0],je=Pe[1],gt=Object(o.useState)(),pt=Object(l.a)(gt,2),ut=pt[0],Hn=pt[1],Kt=Object(o.useState)(),ea=Object(l.a)(Kt,2),En=ea[0],ze=ea[1],Qn=Object(o.useState)({}),na=Object(l.a)(Qn,2),dt=na[0],sr=na[1],Sa=Object(o.useState)(),ur=Object(l.a)(Sa,2),Pr=ur[0],qr=ur[1],mr=Object(o.useRef)(),ei=Object(o.useState)(!1),hi=Object(l.a)(ei,2),mi=hi[0],ti=hi[1],_i=Object(o.useState)({}),ni=Object(l.a)(_i,2),$a=ni[0],vi=ni[1];Object(o.useEffect)(function(){if(mr.current)return mr.current.addEventListener("mousedown",br),function(){mr.current.removeEventListener("mousedown",br)}},[mr.current]);var gi=function(){var Vt=Object(v.a)(t.a.mark(function At(){var nt;return t.a.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:if(En==null?void 0:En.trim()){Fe.next=3;break}return N.b.warn("\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"),Fe.abrupt("return");case 3:return Fe.next=5,Object(te.S)({id:Ke.pathId,team_title:En.trim()});case 5:nt=Fe.sent,Hn(!ut),(nt==null?void 0:nt.status)===0&&(ze(null),N.b.success(nt.message),Wn({type:"pathsDetail/getRightData",payload:{id:Ke.pathId}}));case 8:case"end":return Fe.stop()}},At)}));return function(){return Vt.apply(this,arguments)}}();Object(o.useEffect)(function(){Wn({type:"pathsDetail/getCoureses",payload:{id:Ke.pathId}}),Ir()},[]);function Ir(){return jr.apply(this,arguments)}function jr(){return jr=Object(v.a)(t.a.mark(function Vt(){return t.a.wrap(function(nt){for(;;)switch(nt.prev=nt.next){case 0:return nt.t0=vi,nt.next=3,Object(te.v)({id:Ke.pathId,course_type:1});case 3:nt.t1=nt.sent,(0,nt.t0)(nt.t1);case 5:case"end":return nt.stop()}},Vt)})),jr.apply(this,arguments)}Object(o.useEffect)(function(){var Vt;if(((Vt=or.actionTabs)===null||Vt===void 0?void 0:Vt.key)==="\u4FEE\u6539\u5F00\u8BFE\u65F6\u95F4"){var At,nt,Wt=(At=Te.detail)===null||At===void 0||((nt=At.courses)===null||nt===void 0)?void 0:nt.find(function(Fe){var bn;return Fe.course_id===((bn=or.actionTabs)===null||bn===void 0?void 0:bn.name)});sr(Wt||{})}},[or.actionTabs]),Object(o.useEffect)(function(){var Vt,At,nt;if((Vt=Te.detail)===null||Vt===void 0?void 0:Vt.has_start){var Wt,Fe,bn=(Wt=Te.detail)===null||Wt===void 0||((Fe=Wt.courses)===null||Fe===void 0)?void 0:Fe.findIndex(function(qa){var ca;return parseInt((ca=qa.course_status)===null||ca===void 0?void 0:ca.status)===1});nt=bn>-1?bn:0}else{var It,Zt,In,Mn,aa,ta=(It=Te.detail)===null||It===void 0||((Zt=It.courses)===null||Zt===void 0||((In=Zt.map(function(qa){var ca;return parseInt((ca=qa.course_status)===null||ca===void 0?void 0:ca.status)}))===null||In===void 0))?void 0:In.lastIndexOf(2);nt=ta>-1?ta:0,ta=(Mn=Te.detail)===null||Mn===void 0||((aa=Mn.courses)===null||aa===void 0)?void 0:aa.findIndex(function(qa){var ca;return parseInt((ca=qa.course_status)===null||ca===void 0?void 0:ca.status)===0}),nt=ta>-1?ta:nt}if((At=Te.detail)===null||At===void 0?void 0:At.courses){var gr;sr(((gr=Te.detail)===null||gr===void 0?void 0:gr.courses[nt])||{})}},[Te.detail]);var ai=function(){var Vt=Object(v.a)(t.a.mark(function At(nt){return t.a.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:L.a.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:e.a.createElement("div",{className:"tc"},"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6210\u5458\u5417\uFF1F"),onOk:function(){var bn=Object(v.a)(t.a.mark(function Zt(){var In,Mn;return t.a.wrap(function(ta){for(;;)switch(ta.prev=ta.next){case 0:return ta.next=2,Object(te.o)({id:Ke.pathId,user_id:nt});case 2:In=ta.sent,(In==null?void 0:In.status)===1&&(((Mn=Da.userInfo)===null||Mn===void 0?void 0:Mn.user_id)===nt&&(window.location.href=window.location.href),N.b.info(In==null?void 0:In.message),vr());case 4:case"end":return ta.stop()}},Zt)}));function It(){return bn.apply(this,arguments)}return It}()});case 1:case"end":return Fe.stop()}},At)}));return function(nt){return Vt.apply(this,arguments)}}(),Lr=function(){var Vt=Object(v.a)(t.a.mark(function At(nt){return t.a.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:L.a.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:e.a.createElement("div",{className:"tc"},"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u8BFE\u5802\u5417\uFF1F"),onOk:function(){var bn=Object(v.a)(t.a.mark(function Zt(){var In;return t.a.wrap(function(aa){for(;;)switch(aa.prev=aa.next){case 0:return aa.next=2,Object(te.n)({id:Ke.pathId,courseid:nt});case 2:In=aa.sent,(In==null?void 0:In.status)===0&&(N.b.info("\u5220\u9664\u6210\u529F"),vr());case 4:case"end":return aa.stop()}},Zt)}));function It(){return bn.apply(this,arguments)}return It}()});case 1:case"end":return Fe.stop()}},At)}));return function(nt){return Vt.apply(this,arguments)}}(),ri=function(){L.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:e.a.createElement("div",{className:"tc"},"\u662F\u5426\u786E\u8BA4\u7ACB\u5373\u9884\u7EA6\uFF1F"),onOk:function(){var At=Object(v.a)(t.a.mark(function Wt(){var Fe;return t.a.wrap(function(It){for(;;)switch(It.prev=It.next){case 0:return It.next=2,Object(te.i)({id:Ke.pathId});case 2:Fe=It.sent,Fe.status===0&&(qr(!0),N.b.success(Fe.message));case 4:case"end":return It.stop()}},Wt)}));function nt(){return At.apply(this,arguments)}return nt}()})},lr=function(){Wn({type:"pathsDetail/setActionTabs",payload:{key:"Collaborators-AddCollaborator"}})},_r=function(At){Wn({type:"pathsDetail/setActionTabs",payload:{key:"Collaborators-AddCourses",type:At}})},vr=function(){Wn({type:"pathsDetail/getPathsDetail",payload:{id:Ke.pathId}}),Wn({type:"pathsDetail/getRightData",payload:{id:Ke.pathId}}),Wn({type:"pathsDetail/getCoureses",payload:{id:Ke.pathId}}),Ir()},Cr=function(){var At;return ut?e.a.createElement("div",{className:ce.a.flexRow},e.a.createElement(xe.a,{placeholder:"\u4F8B\u5982\uFF1A\u6559\u5B66\u56E2\u961F",value:En,onChange:function(Wt){return ze(Wt.target.value)}}),e.a.createElement(C.a,{className:"ml5",onClick:function(){return Hn(!ut)}},"\u53D6\u6D88"),e.a.createElement(C.a,{className:"ml5",type:"primary",onClick:gi},"\u786E\u5B9A")):e.a.createElement("div",{className:ce.a.directionItemWrap},e.a.createElement("span",{style:{fontSize:"16px",display:"flex",alignItems:"center"}}," ",e.a.createElement("img",{style:{marginRight:"10px"},src:Wr.a})," ",(At=Te.rightData)===null||At===void 0?void 0:At.team_title),e.a.createElement("span",{className:ce.a.groupActionWrap},e.a.createElement("i",{className:"iconfont icon-xiugai mr1 c-light-primary font15 current",onClick:function(){return Hn(!ut)}})))},dn=function(){var At,nt,Wt=new Image;Wt.src=U("RMFE");var Fe=((At=Te.rightData)===null||At===void 0||((nt=At.tags)===null||nt===void 0)?void 0:nt.map(function(It,Zt){return{name:It.tag_name,value:Zt}}))||[],bn={backgroundColor:"#fff",tooltip:{pointFormat:"{series.name}</b>"},series:[{type:"wordCloud",sizeRange:[10,30],rotationRange:[-90,90],rotationStep:45,gridSize:2,shape:"pentagon",maskImage:Wt,textStyle:{normal:{color:function(){return"rgb("+Math.round(Math.random()*255)+", "+Math.round(Math.random()*255)+", "+Math.round(Math.random()*255)+")"}}},left:"center",top:"center",right:null,bottom:null,width:"100%",height:"100%",data:Fe}]};return bn},zt=function(){if(!Object(ne.e)(Wn))return;L.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:e.a.createElement("div",{className:"tc"},"\u662F\u5426\u786E\u5B9A\u52A0\u5165\u8BE5\u8BFE\u5802"),onOk:function(){var At=Object(v.a)(t.a.mark(function Wt(){var Fe,bn;return t.a.wrap(function(Zt){for(;;)switch(Zt.prev=Zt.next){case 0:return Zt.next=2,Object(te.J)({id:dt==null?void 0:dt.course_id});case 2:Fe=Zt.sent,Fe.status===0&&(N.b.success(Fe.message),Wn({type:"pathsDetail/getPathsDetail",payload:{id:Ke.pathId}}),parseInt((bn=dt.course_status)===null||bn===void 0?void 0:bn.status)===1&&Object(ie.I)("".concat(dt==null?void 0:dt.first_category_url)));case 4:case"end":return Zt.stop()}},Wt)}));function nt(){return At.apply(this,arguments)}return nt}()})},yn=function(){if(!Object(ne.e)(Wn))return;Object(ie.I)("/order/".concat(Ke.pathId,"/information"))},Ht=function(){var Vt=Object(v.a)(t.a.mark(function At(nt,Wt){var Fe;return t.a.wrap(function(It){for(;;)switch(It.prev=It.next){case 0:if(Wn({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF0C\u8BF7\u7A0D\u540E..."}}),!Wt){It.next=7;break}return It.next=4,Object(ar.z)({id:nt});case 4:It.t0=It.sent,It.next=10;break;case 7:return It.next=9,Object(ar.A)({id:nt});case 9:It.t0=It.sent;case 10:if(Fe=It.t0,Wn({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),!((Fe==null?void 0:Fe.game_identifier)||(Fe==null?void 0:Fe.identifier))){It.next=15;break}return Object(ie.I)(Wt?"/tasks/".concat(Fe==null?void 0:Fe.identifier,"/jupyter"):"/tasks/".concat(Fe.game_identifier)),It.abrupt("return");case 15:(Fe==null?void 0:Fe.status)===2?On(Fe==null?void 0:Fe.message):(Fe==null?void 0:Fe.status)===3&&en(Fe==null?void 0:Fe.message);case 16:case"end":return It.stop()}},At)}));return function(nt,Wt){return Vt.apply(this,arguments)}}(),en=function(At){L.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:e.a.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",At,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},On=function Vt(At){var nt;At=((nt=At)===null||nt===void 0?void 0:nt.includes(".json"))?At:"".concat(At,".json"),L.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:e.a.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:function(){var Wt=Object(v.a)(t.a.mark(function bn(){var It,Zt;return t.a.wrap(function(Mn){for(;;)switch(Mn.prev=Mn.next){case 0:return Mn.next=2,Object(Rr.O)({url:At});case 2:if(It=Mn.sent,It){Mn.next=5;break}return Mn.abrupt("return");case 5:return N.b.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF01"),Mn.next=8,Object(ar.A)({id:It.shixun_identifier});case 8:if(Zt=Mn.sent,!(Zt==null?void 0:Zt.game_identifier)){Mn.next=12;break}return Object(ie.I)("/tasks/".concat(Zt.game_identifier)),Mn.abrupt("return");case 12:(Zt==null?void 0:Zt.status)===2?Vt(Zt==null?void 0:Zt.message):(Zt==null?void 0:Zt.status)===3&&en(Zt==null?void 0:Zt.message);case 13:case"end":return Mn.stop()}},bn)}));function Fe(){return Wt.apply(this,arguments)}return Fe}()})},kn=function(){var At;if(!Object(ne.e)(Wn))return;var nt=[];Te==null||((At=Te.stageData)===null||At===void 0)||At.forEach(function(Fe){var bn;if(Fe.items&&((bn=Fe.items)===null||bn===void 0?void 0:bn.length)){var It;(It=Fe.items)===null||It===void 0||It.forEach(function(Zt){var In;nt.push(Zt),Zt.children&&((In=Zt.children)===null||In===void 0?void 0:In.length)&&(nt=nt.concat(Zt.children))})}});var Wt=nt.find(function(Fe){return["VideoItem","Attachment","Shixun"].includes(Fe.item_type)});if(console.log(Wt,"stageParam"),Wt.item_type==="VideoItem"){Object(ie.I)("/video/".concat(Wt.id,"?subject_id=").concat(Ke.pathId));return}if(Wt.item_type==="Attachment"){Object(ie.I)(Wt.url);return}if(Wt.item_type==="Shixun"){Ht(Wt.identifier,Wt.is_jupyter);return}},an=function(){var At,nt,Wt,Fe,bn=(At=Te.detail)===null||At===void 0||((nt=At.learning_status)===null||nt===void 0)?void 0:nt[0],It=(Wt=Te.detail)===null||Wt===void 0||((Fe=Wt.learning_status)===null||Fe===void 0)?void 0:Fe[1];if(bn==="can")return e.a.createElement(C.a,{onClick:kn,type:"primary"},"\u5F00\u59CB\u5B66\u4E60");if(bn==="disabled"){if(It==="try"||It==="unpayed")return e.a.createElement(C.a,{onClick:yn,type:"primary"},"\u7ACB\u5373\u8D2D\u4E70");if(It==="expired")return e.a.createElement(C.a,{disabled:!0,type:"primary"},"\u5DF2\u8FC7\u671F");if(It==="buyed")return e.a.createElement(C.a,{disabled:!0,type:"primary"},"\u672A\u5F00\u59CB")}},ia=function(){var Vt=Object(v.a)(t.a.mark(function At(){var nt,Wt,Fe,bn,It,Zt,In,Mn,aa,ta,gr,qa;return t.a.wrap(function(er){for(;;)switch(er.prev=er.next){case 0:if(ta=function(){var Ai=Object(v.a)(t.a.mark(function xi(){var ii;return t.a.wrap(function(Mr){for(;;)switch(Mr.prev=Mr.next){case 0:return Mr.next=2,Object(Nn.a)("/api/users/".concat(Da.userInfo.login,"/subjects/request_certificate.json?subject_id=").concat(Ke.pathId),{method:"post"});case 2:ii=Mr.sent,(ii==null?void 0:ii.status)===0&&(N.b.info("\u63D0\u4EA4\u6210\u529F"),Wn({type:"pathsDetail/getRightData",payload:{id:Ke.pathId}}));case 4:case"end":return Mr.stop()}},xi)}));return function(){return Ai.apply(this,arguments)}}(),(nt=Da.userInfo)===null||nt===void 0?void 0:nt.professional_certification){er.next=4;break}return L.a.confirm({title:"\u63D0\u793A",centered:!0,content:e.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(ie.I)("/account/certification")}}),er.abrupt("return",!1);case 4:if(!(((Wt=Te.rightData)===null||Wt===void 0||((Fe=Wt.progress)===null||Fe===void 0)?void 0:Fe.certificated)==="drafted")){er.next=6;break}return er.abrupt("return",!1);case 6:if(!(((bn=Te.rightData)===null||bn===void 0||((It=bn.progress)===null||It===void 0)?void 0:It.certificated)==="none"||((Zt=Te.rightData)===null||Zt===void 0||((In=Zt.progress)===null||In===void 0)?void 0:In.certificated)==="rejected")){er.next=9;break}return((gr=Te.rightData)===null||gr===void 0?void 0:gr.progress.learned)===100?L.a.info({title:"\u7533\u8BF7\u8BC1\u4E66",icon:null,className:"custom-modal-divider",centered:!0,width:400,content:'\u7533\u8BF7\u6210\u529F\uFF0C\u53EF\u4EE5\u5728\u4E2A\u4EBA\u4E2D\u5FC3"\u6211\u7684\u8BC1\u4E66"\u4E2D\u67E5\u770B',okText:"\u786E\u5B9A\u7533\u8BF7",onOk:ta}):L.a.confirm({title:"\u7533\u8BF7\u8BC1\u4E66",icon:null,className:"custom-modal-divider",centered:!0,width:400,content:"\u4F60\u76EE\u524D\u5B66\u4E60\u8FDB\u5EA6\u4E3A".concat((qa=Te.rightData)===null||qa===void 0?void 0:qa.progress.learned,"%\uFF0C\u5EFA\u8BAE\u7533\u8BF7\u540E\u7EE7\u7EED\u8FDB\u884C\u8BFE\u7A0B\u5B66\u4E60"),okText:"\u786E\u5B9A\u7533\u8BF7",onOk:ta}),er.abrupt("return",!1);case 9:((Mn=Te.rightData)===null||Mn===void 0||((aa=Mn.progress)===null||aa===void 0)?void 0:aa.certificated)==="passed"&&ti(!0);case 10:case"end":return er.stop()}},At)}));return function(){return Vt.apply(this,arguments)}}(),un=!!((Ee=Te.detail)===null||Ee===void 0?void 0:Ee.participant_count)&&!((Re=Te.detail)===null||Re===void 0?void 0:Re.allow_statistics),kr=((Ge=Te.detail)===null||Ge===void 0||((ye=Ge.courses)===null||ye===void 0)?void 0:ye.findIndex(function(Vt){return(Vt==null?void 0:Vt.course_id)===(dt==null?void 0:dt.course_id)}))+1,cr=kr===((xt=Te.detail)===null||xt===void 0||((Ne=xt.courses)===null||Ne===void 0)?void 0:Ne.length);return e.a.createElement("section",{className:ce.a.rightWrap},((Oe=Te.rightData)===null||Oe===void 0?void 0:Oe.qrcode_img)&&e.a.createElement("div",{className:ce.a.qrCode},e.a.createElement("img",{src:(Ze=Te.rightData)===null||Ze===void 0?void 0:Ze.qrcode_img})),((we=Te.rightData)===null||we===void 0?void 0:we.progress)&&e.a.createElement("div",{className:"".concat(ce.a.card," ").concat(ce.a.cardTop),style:{top:((ct=Te.detail)===null||ct===void 0||((mt=ct.courses)===null||mt===void 0)?void 0:mt.length)?"-140px":"-70px"}},parseInt(dt==null||((Ae=dt.course_status)===null||Ae===void 0)?void 0:Ae.status)===2&&dt.course_identity<6&&e.a.createElement("div",{className:"current mr20 c-grey-9b9 font14"},"\u5DF2\u7ED3\u675F"),parseInt((Ut=dt.course_status)===null||Ut===void 0?void 0:Ut.status)===2&&(dt.course_identity<6?"":e.a.createElement("div",{className:"current mr20 c-grey-9b9 font14"},"\u5DF2\u7ED3\u675F")),e.a.createElement("div",{className:ce.a.flexRow},un&&!!(($e=Te.detail)===null||$e===void 0||((yt=$e.courses)===null||yt===void 0)?void 0:yt.length)&&cr&&e.a.createElement("span",{className:"mt20"},e.a.createElement("span",{className:"mr10"},"\u5F53\u9884\u7EA6\u62A5\u540D\u4EBA\u6570\u8FBE\u5230 ",(Ce=Te.detail)===null||Ce===void 0?void 0:Ce.student_count," \u4EBA\u65F6\u5373\u5C06\u5F00\u8BFE"),e.a.createElement("p",{className:""},"\u5F53\u524D\u9884\u7EA6\u62A5\u540D\u4EBA\u6570\uFF1A",e.a.createElement("span",{className:"mr5 c-red-ee4"},Pr===!0?((ke=Te.detail)===null||ke===void 0?void 0:ke.participant_count)+1:(_t=Te.detail)===null||_t===void 0?void 0:_t.participant_count),"\u4EBA")),un&&!((nn=Te.detail)===null||nn===void 0||((Be=nn.courses)===null||Be===void 0)?void 0:Be.length)&&cr&&e.a.createElement("span",null,!((st=Te.detail)===null||st===void 0?void 0:st.has_participate)&&(Pr===!0?e.a.createElement("span",{className:"".concat(ce.a.classButton," ").concat(ce.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"):e.a.createElement("a",{className:"".concat(ce.a.classButton," ").concat(ce.a.bg28e),onClick:ri},"\u671F\u5F85\u5F00\u8BFE\u5E76\u9884\u7EA6\u62A5\u540D")),((Gt=Te.detail)===null||Gt===void 0?void 0:Gt.has_participate)&&e.a.createElement("span",{className:"".concat(ce.a.classButton," ").concat(ce.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"),e.a.createElement("span",{className:"mr10"},"\u5F53\u9884\u7EA6\u62A5\u540D\u4EBA\u6570\u8FBE\u5230 ",(Ft=Te.detail)===null||Ft===void 0?void 0:Ft.student_count," \u4EBA\u65F6\u5373\u5C06\u5F00\u8BFE"),e.a.createElement("p",{className:""},"\u5F53\u524D\u9884\u7EA6\u62A5\u540D\u4EBA\u6570\uFF1A",e.a.createElement("span",{className:"mr5 c-red-ee4"},Pr===!0?((Le=Te.detail)===null||Le===void 0?void 0:Le.participant_count)+1:(Pt=Te.detail)===null||Pt===void 0?void 0:Pt.participant_count),"\u4EBA"))),parseInt(dt==null||((bt=dt.course_status)===null||bt===void 0)?void 0:bt.status)===1&&e.a.createElement("div",{className:"mr20 c-red-ee4"},dt==null||((Et=dt.course_status)===null||Et===void 0)?void 0:Et.time),e.a.createElement("p",{style:{display:dt.course_identity<6?"":"none"},className:"mb10 mt10 ".concat(ce.a.flexRowAbout)},e.a.createElement("span",{style:{display:((Jt=dt.course_status)===null||Jt===void 0?void 0:Jt.status)<=1?"":"none"},className:"c-light-green font14"},"\u5DF2\u5B66",(Ct=Te.rightData)===null||Ct===void 0?void 0:Ct.progress.learned,"%"),e.a.createElement("span",{style:{display:((Rt=dt.course_status)===null||Rt===void 0?void 0:Rt.status)<=1?"":"none"},className:"c-light-black"},"\u5B66\u4E60\u8017\u65F6",Object(ie.O)((hn=Te.rightData)===null||hn===void 0?void 0:hn.progress.time)," "),((ln=Te.rightData)===null||ln===void 0||((mn=ln.progress)===null||mn===void 0)?void 0:mn.certificated)!="disabled"&&e.a.createElement(C.a,{disabled:((_n=Te.rightData)===null||_n===void 0||((vn=_n.progress)===null||vn===void 0)?void 0:vn.certificated)==="drafted",onClick:ia},((rt=Te.rightData)===null||rt===void 0||((gn=rt.progress)===null||gn===void 0)?void 0:gn.certificated)==="none"&&"\u7533\u8BF7\u8BC1\u4E66",((Cn=Te.rightData)===null||Cn===void 0||((sn=Cn.progress)===null||sn===void 0)?void 0:sn.certificated)==="rejected"&&"\u7533\u8BF7\u8BC1\u4E66",((Tt=Te.rightData)===null||Tt===void 0||((We=Tt.progress)===null||We===void 0)?void 0:We.certificated)==="drafted"&&"\u5BA1\u6838\u4E2D",((Lt=Te.rightData)===null||Lt===void 0||((Sn=Lt.progress)===null||Sn===void 0)?void 0:Sn.certificated)==="passed"&&"\u67E5\u770B\u8BC1\u4E66")),e.a.createElement(E.a,{placement:"bottom",title:"\u5B8C\u6210\u8BFE\u7A0B\u540E\u53EF\u83B7\u53D6\u8BC1\u4E66\uFF01",color:"yellow"}," ",e.a.createElement(Q.a,{percent:(lt=Te.rightData)===null||lt===void 0?void 0:lt.progress.learned,showInfo:!1,style:{display:((St=dt.course_status)===null||St===void 0?void 0:St.status)<=1&&dt.course_identity<6?"":"none"},status:"active",strokeColor:{"0%":"#29BD8B","100%":"#29BD8B"}})),parseInt((vt=dt.course_status)===null||vt===void 0?void 0:vt.status)===2&&e.a.createElement("a",{className:ce.a.classButton,href:"".concat(dt==null?void 0:dt.first_category_url),target:"_blank"},"\u8FDB\u5165\u8BFE\u5802"),parseInt((qe=dt.course_status)===null||qe===void 0?void 0:qe.status)===1&&dt.course_identity>5&&e.a.createElement("div",{className:ce.a.classButton,onClick:zt},"\u7ACB\u5373\u52A0\u5165"),parseInt((He=dt.course_status)===null||He===void 0?void 0:He.status)===1&&dt.course_identity===5&&e.a.createElement("a",{className:ce.a.classButton,href:"".concat(dt==null?void 0:dt.first_category_url),target:"_blank"},"\u7ACB\u5373\u5B66\u4E60"),parseInt((Me=dt.course_status)===null||Me===void 0?void 0:Me.status)===0&&dt.course_identity>5&&e.a.createElement("div",{className:ce.a.classButton,onClick:zt},"\u7ACB\u5373\u62A5\u540D"),parseInt((ge=dt.course_status)===null||ge===void 0?void 0:ge.status)===0&&dt.course_identity===5&&e.a.createElement("div",{className:ce.a.classButton},"\u62A5\u540D\u6210\u529F"),(parseInt(dt==null||((Ve=dt.course_status)===null||Ve===void 0)?void 0:Ve.status)===0||parseInt(dt==null||((Ot=dt.course_status)===null||Ot===void 0)?void 0:Ot.status)===1)&&dt.course_identity<5&&e.a.createElement("a",{className:ce.a.classButton,href:"".concat(dt==null?void 0:dt.first_category_url),target:"_blank"},"\u8FDB\u5165\u8BFE\u5802"),un&&cr&&((Je=Te.detail)===null||Je===void 0?void 0:Je.has_participate)&&e.a.createElement("span",{className:"".concat(ce.a.classButton," ").concat(ce.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"),un&&cr&&!((kt=Te.detail)===null||kt===void 0?void 0:kt.has_participate)&&(Pr?e.a.createElement("span",{className:"".concat(ce.a.classButton," ").concat(ce.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"):e.a.createElement("span",{className:"".concat(ce.a.classButton," ").concat(ce.a.bg28e),onClick:ri},"\u671F\u5F85\u5F00\u8BFE\u5E76\u9884\u7EA6\u62A5\u540D")),!((Mt=Te.detail)===null||Mt===void 0?void 0:Mt.excellent)&&((Tn=Te.detail)===null||Tn===void 0?void 0:Tn.is_free)!==!0&&e.a.createElement("div",{className:ce.a.price},e.a.createElement("ul",null,e.a.createElement("li",{className:ce.a.li1},!!((Un=Te.detail)===null||Un===void 0?void 0:Un.origin_price)&&e.a.createElement("div",{className:ce.a.discounts},"\u4F18\u60E0"),e.a.createElement("div",{className:ce.a.realPrice},e.a.createElement("span",null,"\uFFE5"),(cn=Te.detail)===null||cn===void 0?void 0:cn.price),!!((Xn=Te.detail)===null||Xn===void 0?void 0:Xn.origin_price)&&e.a.createElement("div",{className:ce.a.lineationPrice},e.a.createElement("span",null,"\uFFE5"),(Kn=Te.detail)===null||Kn===void 0?void 0:Kn.origin_price)),e.a.createElement("li",{className:ce.a.li2},"\u8BFE\u7A0B\u6709\u6548\u671F\uFF1A",((Bn=Te.detail)===null||Bn===void 0||((qn=Bn.expiration_type)===null||qn===void 0)?void 0:qn.clazz)==="1"&&"\u6C38\u4E45\u6709\u6548",((ua=Te.detail)===null||ua===void 0||((Gn=ua.expiration_type)===null||Gn===void 0)?void 0:Gn.clazz)==="2"&&"\u8D2D\u4E70\u540E".concat((Ta=Te.detail)===null||Ta===void 0||((Ua=Ta.expiration_type)===null||Ua===void 0||((_a=Ua.days)===null||_a===void 0))?void 0:_a[0],"\u5929\u5185\u6709\u6548"),((fa=Te.detail)===null||fa===void 0||((Jn=fa.expiration_type)===null||Jn===void 0)?void 0:Jn.clazz)==="3"&&"".concat((Ia=Te.detail)===null||Ia===void 0||((va=Ia.expiration_type)===null||va===void 0||((ja=va.days)===null||ja===void 0))?void 0:ja.join("\u5230")))),an()),e.a.createElement("p",{className:"mb30",style:{marginTop:"15px"}},e.a.createElement("span",{className:"font16",style:{display:"flex",alignItems:"center"}},e.a.createElement("img",{style:{marginRight:"10px"},src:Pa.a})," ",(La=Te.detail)===null||La===void 0?void 0:La.learning_notes_title)),e.a.createElement("div",{ref:mr},e.a.createElement(y.a,{className:"fon16",value:(ka=Te.detail)===null||ka===void 0?void 0:ka.learning_notes}))),!!((ga=Te.rightData)===null||ga===void 0||((Ea=ga.members)===null||Ea===void 0)?void 0:Ea.length)&&e.a.createElement("div",{className:"".concat(ce.a.card," pb0"),style:{marginTop:((Ma=Te.detail)===null||Ma===void 0||((Na=Ma.courses)===null||Na===void 0)?void 0:Na.length)?-135:-65}},((pa=Te.detail)===null||pa===void 0?void 0:pa.allow_add_member)?Cr():e.a.createElement("span",{style:{fontSize:"16px",display:"flex",alignItems:"center"}}," ",e.a.createElement("img",{style:{marginRight:"10px"},src:Wr.a})," ",(Ba=Te.rightData)===null||Ba===void 0?void 0:Ba.team_title),e.a.createElement(Oa,{data:(Fa=Te.rightData)===null||Fa===void 0?void 0:Fa.members,operation:(ya=Te.detail)===null||ya===void 0?void 0:ya.allow_add_member,handleDeleteMember:ai}),((Wa=Te.detail)===null||Wa===void 0?void 0:Wa.allow_add_member)&&e.a.createElement(X.a,{gutter:[0,40],justify:"center",align:"middle",className:"bg-white mt0"},e.a.createElement(J.a,{className:"c-blue current",onClick:lr},"+ \u6DFB\u52A0\u5408\u4F5C\u8005"))),!!((ba=Te.rightData)===null||ba===void 0||((Aa=ba.tags)===null||Aa===void 0)?void 0:Aa.length)&&((xa=Te.detail)===null||xa===void 0?void 0:xa.show_tag)&&e.a.createElement("div",{className:ce.a.skillWrap},e.a.createElement("p",{className:"".concat(ce.a.skillTopWrap," font16 mb20")},e.a.createElement("span",null,"\u6280\u80FD\u6807\u7B7E",e.a.createElement("span",{className:"ml5 c-grey-c"},(za=Te.rightData)===null||za===void 0||((Xa=za.tags)===null||Xa===void 0)?void 0:Xa.length))),e.a.createElement(Xr.a,{option:dn(),style:{height:370},opts:{renderer:"svg"}})),((Qa=Te.detail)===null||Qa===void 0?void 0:Qa.show_spoc)===1&&e.a.createElement("div",{className:"".concat(ce.a.card," pb0"),style:{marginTop:15}},e.a.createElement("p",{className:"font16",style:{display:"flex",alignItems:"center"}},e.a.createElement("img",{style:{marginRight:"10px"},src:Ca.a}),"SPOC\u8BFE\u5802"),e.a.createElement(ha,{data:(Ka=Te.Courses)===null||Ka===void 0?void 0:Ka.spoc_courses,handleDeleteMember:Lr}),((ra=Te.detail)===null||ra===void 0?void 0:ra.show_spoc)===1&&(Te==null||((la=Te.Courses)===null||la===void 0||((Ga=la.spoc_courses)===null||Ga===void 0))?void 0:Ga.length)<3&&((Ha=Te.detail)===null||Ha===void 0?void 0:Ha.allow_add_member)&&e.a.createElement(X.a,{gutter:[0,40],justify:"center",align:"middle",className:"bg-white mt0"},e.a.createElement(J.a,{className:"c-blue current",onClick:function(){return _r()}},"+ \u6DFB\u52A0\u8BFE\u5802"))),((Va=Te.detail)===null||Va===void 0?void 0:Va.show_history)&&e.a.createElement("div",{className:"".concat(ce.a.card," pb0"),style:{marginTop:15}},e.a.createElement("p",{className:"font16",style:{display:"flex",alignItems:"center"}},e.a.createElement("img",{style:{marginRight:"10px"},src:Ca.a}),"\u5386\u53F2\u8BFE\u5802"),e.a.createElement(ha,{data:$a==null?void 0:$a.spoc_courses,handleDeleteMember:Lr}),((Ya=Te.detail)===null||Ya===void 0?void 0:Ya.show_history)&&($a==null||((wa=$a.spoc_courses)===null||wa===void 0)?void 0:wa.length)<3&&((rr=Te.detail)===null||rr===void 0?void 0:rr.allow_add_member)&&e.a.createElement(X.a,{gutter:[0,40],justify:"center",align:"middle",className:"bg-white mt0"},e.a.createElement(J.a,{className:"c-blue current",onClick:function(){return _r(1)}},"+ \u6DFB\u52A0\u8BFE\u5802"))),e.a.createElement(De,{onReloadData:vr}),e.a.createElement(rn,{onReloadData:vr,data:$a}),e.a.createElement(ht,{visible:mi,onCancel:function(){ti(!1)},data:((Ja=Te.rightData)===null||Ja===void 0||((Za=Ja.progress)===null||Za===void 0)?void 0:Za.info)||{}}))},Qr=Object(i.a)(function(de){var le=de.pathsDetail,Ee=de.user,Re=de.loading,Ge=de.globalSetting,ye=de.classroomList;return{pathsDetail:le,user:Ee,globalSetting:Ge,loading:Re.models.index,classroomList:ye}})(ui),Kr=U("cWXX"),Gr=U("/ezw"),li=U("VlDO"),Yn=U.n(li),wi=U("bbsP"),Tr=U("/wGt"),Ar=U("DjyN"),Ra=U("NUBc"),Ur=U("/zsF"),pr=U("PArb"),Hr=U("cCSd"),sa=U.n(Hr),xr=xe.a.Search,ci=[{id:"type",name:"\u7B5B\u9009",children:[{name:"\u5168\u90E8\u5B9E\u8BAD",id:"all",type:"type"},{name:"\u6211\u7684\u5B9E\u8BAD",id:"mine",type:"type"}]},{id:"diff",name:"\u96BE\u5EA6",children:[{name:"\u5168\u90E8",id:"",type:"diff"},{name:"\u521D\u7EA7",id:1,type:"diff"},{name:"\u4E2D\u7EA7",id:2,type:"diff"},{name:"\u4E2D\u9AD8\u7EA7",id:3,type:"diff"},{name:"\u9AD8\u7EA7",id:4,type:"diff"}]}],hr=function(le){var Ee,Re=le.classroomList,Ge=le.loading,ye=le.dispatch,xt=le.cb,Ne=le.shixunIds,Oe=Ne===void 0?[]:Ne,Ze=Object(n.m)(),we=Object(n.l)(),ct=Re.actionTabs,mt=ft.a.useForm(),Ae=Object(l.a)(mt,1),Ut=Ae[0],$e=Re.shixunLists,yt=Object(o.useState)([]),Ce=Object(l.a)(yt,2),ke=Ce[0],_t=Ce[1],nn=Object(o.useState)({page:1,type:"all",diff:0,status:"all",order:"desc",limit:20,sort:"myshixuns_count"}),Be=Object(l.a)(nn,2),st=Be[0],Gt=Be[1];Object(o.useEffect)(function(){Re.actionTabs.key==="\u9009\u7528\u5B9E\u8DF5\u9879\u76EE"&&(st.page=1,ye({type:"classroomList/getShixunLists",payload:Object(w.a)({},st)}))},[Re.actionTabs.key]),Object(o.useEffect)(function(){return Re.actionTabs.key==="\u9009\u7528\u5B9E\u8DF5\u9879\u76EE"?document.body.setAttribute("data-custom","height"):document.body.removeAttribute("data-custom"),function(){document.body.removeAttribute("data-custom")}},[Re.actionTabs.key]);var Ft=function(){ye({type:"classroomList/setActionTabs",payload:{}}),Gt({page:1,type:"all",diff:0,status:"all",order:"desc",limit:20,sort:"myshixuns_count"})};return Re.actionTabs.key!=="\u9009\u7528\u5B9E\u8DF5\u9879\u76EE"?null:e.a.createElement(Tr.a,{placement:"bottom",height:"100%",closable:!1,visible:Re.actionTabs.key==="\u9009\u7528\u5B9E\u8DF5\u9879\u76EE",key:"bottom",className:sa.a.drawer,footer:e.a.createElement("div",{className:"tc"},e.a.createElement(C.a,{size:"large",onClick:function(){Ft(),_t([]),xt("\u53D6\u6D88")},style:{marginRight:8}},"\u53D6\u6D88"),e.a.createElement(C.a,{size:"large",onClick:Object(v.a)(t.a.mark(function Le(){var Pt,bt,Et,Jt;return t.a.wrap(function(Rt){for(;;)switch(Rt.prev=Rt.next){case 0:Pt=function(ln){var mn=ke[ln];if(Oe.includes(mn)){var _n,vn;return N.b.info("\u8BF7\u52FF\u91CD\u590D\u9009\u62E9\uFF1A".concat($e==null||((_n=$e.shixun_list)===null||_n===void 0||((vn=_n.find(function(rt){return rt.id===mn}))===null||vn===void 0))?void 0:vn.title)),{v:void 0}}},bt=0;case 2:if(!(bt<(ke==null?void 0:ke.length))){Rt.next=9;break}if(Et=Pt(bt),!(typeof Et=="object")){Rt.next=6;break}return Rt.abrupt("return",Et.v);case 6:bt++,Rt.next=2;break;case 9:return Rt.next=11,Object(te.M)({id:Re.actionTabs.id,subject_id:Re.actionTabs.subject_id,shixun_ids:Object(A.a)(ke)});case 11:Jt=Rt.sent,_t([]),(Jt==null?void 0:Jt.shixuns_list)&&(Ft(),xt(Jt.shixuns_list));case 14:case"end":return Rt.stop()}},Le)})),type:"primary"},"\u786E\u5B9A"))},e.a.createElement("section",{className:"tc"},e.a.createElement(xr,{placeholder:"\u5B9E\u8BAD\u4FE1\u606F/\u9662\u6821\u540D\u79F0/\u521B\u5EFA\u8005",enterButton:"\u641C\u7D22",size:"large",className:sa.a.search,onSearch:function(Pt){st.keyword=Pt,st.page=1,ye({type:"classroomList/getShixunLists",payload:Object(w.a)({},st)})}})),e.a.createElement("section",{className:"edu-container"},ci.map(function(Le,Pt){var bt;return e.a.createElement("ul",{className:sa.a.menu,key:Pt},e.a.createElement("li",null,Le.name),Le==null||((bt=Le.children)===null||bt===void 0)?void 0:bt.map(function(Et,Jt){return e.a.createElement("li",{className:st[Le.id]==Et.id?sa.a.actived:"",onClick:function(){st[Le.id]=Et.id,Gt(Object(w.a)({},st)),ye({type:"classroomList/getShixunLists",payload:Object(w.a)({},st)})}},e.a.createElement("strong",null,Et.name))}))}),$e==null||((Ee=$e.shixun_list)===null||Ee===void 0)?void 0:Ee.map(function(Le,Pt){return e.a.createElement("div",{className:sa.a.listItem,key:Pt},e.a.createElement(I.a,{checked:ke.includes(Le.id),value:Le.id,onChange:function(Et){var Jt=ke.indexOf(Le.id);ke.indexOf(Le.id)>-1?_t(ke.filter(function(Ct){return Ct!==Le.id})):_t(ke.concat(Le.id))}}),e.a.createElement("div",{className:sa.a.info},e.a.createElement("div",{className:sa.a.title},e.a.createElement("div",{className:sa.a.titleLeft},e.a.createElement("a",{className:"c-black",href:"/shixuns/".concat(Le==null?void 0:Le.identifier,"/challenges"),target:"_blank"},e.a.createElement("strong",{className:"font16",dangerouslySetInnerHTML:{__html:Le.title}})),Object(F.v)()&&(Le==null?void 0:Le.mark_status)===1&&e.a.createElement(E.a,{title:Le==null?void 0:Le.mark_content},e.a.createElement("span",{style:{marginRight:"auto",background:"#2FA34F"},className:"tag-style current ml10"},"\u6B63\u5E38")),Object(F.v)()&&(Le==null?void 0:Le.mark_status)===2&&e.a.createElement(E.a,{title:Le==null?void 0:Le.mark_content},e.a.createElement("span",{style:{marginRight:"auto",background:"#FF8C29"},className:"tag-style current ml10"},"\u9700\u5B8C\u5584")),Object(F.v)()&&(Le==null?void 0:Le.mark_status)===3&&e.a.createElement(E.a,{title:Le==null?void 0:Le.mark_content},e.a.createElement("span",{style:{marginRight:"auto",background:"#E53333"},className:"tag-style current ml10"},"\u65E0\u6CD5\u4F7F\u7528")))),e.a.createElement("div",{className:"flex-wrp mt10 font14 c-light-black"},e.a.createElement("span",{className:sa.a.description,dangerouslySetInnerHTML:{__html:Le.description}})),e.a.createElement("div",{className:" mt15"},Le.challenge_names.map(function(bt,Et){return e.a.createElement("span",{key:Et,className:"mr30 font12"},"\u7B2C",Et+1,"\u5173 ",bt," ")})),e.a.createElement(pr.a,{dashed:!0}),e.a.createElement("div",{className:"c-light-black mt20 font12"},e.a.createElement("span",null,Le.author_name),e.a.createElement("span",{className:"ml15 mr15"},"|"),e.a.createElement("span",null,Le.author_school_name),e.a.createElement("span",{className:"ml15 mr15"},"|"),e.a.createElement("span",null,"\u96BE\u5EA6\u7CFB\u6570:",Le.level),e.a.createElement("span",{className:"ml15 mr15"},"|"),e.a.createElement("span",null,"\u5B66\u4E60\u4EBA\u6570:"),e.a.createElement("span",null,Le.study_count))))}),e.a.createElement("p",null)),e.a.createElement("div",{className:"tc"},e.a.createElement(Ra.a,{current:st.page||1,hideOnSinglePage:!0,showSizeChanger:!1,defaultPageSize:20,showQuickJumper:!0,total:$e==null?void 0:$e.shixuns_count,onChange:function(Pt){st.page=Pt,ye({type:"classroomList/getShixunLists",payload:Object(w.a)({},st)})}})))},di=Object(i.a)(function(de){var le=de.classroomList,Ee=de.loading;return{classroomList:le,loading:Ee}})(hr),fi=U("sBCT"),pi=U("500L"),Di=U("giR+"),Ei=U("fyUT"),Si=U("dwhp"),Qt=U("IxHN"),jt=U("M8RZ"),Bt=U("BdwD"),Dn=U("Ot1p"),Pn=U("9nDM"),Ln=function(le){var Ee=le.user,Re=le.onReplyDiscuss,Ge=le.dispatch,ye=le.id,xt=le.activeDiscussIndex,Ne=Object(o.useState)(""),Oe=Object(l.a)(Ne,2),Ze=Oe[0],we=Oe[1];function ct(Ut){we(Ut)}var mt=Object(n.m)();function Ae(){if(!Ze){N.b.info("\u56DE\u590D\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A!");return}Re(ye,Ze),Ge({type:"pathsDetail/getPathsDetail",payload:{id:mt.pathId}}),we("")}return e.a.createElement("div",{key:ye,className:"discuss-item-editor",style:{display:xt===ye?"block":"none",width:"100%"}},e.a.createElement(Dn.a,{miniToolbar:!0,startInit:xt===ye,defaultValue:Ze,id:ye,noStorage:!0,watch:!1,height:155,placeholder:"\u6211\u8981\u56DE\u590D",showResizeBar:!0,onChange:ct}),e.a.createElement("a",{onClick:Ae,className:"btn-send"},"\u53D1\u9001"))},Fn=Object(i.a)(function(de){var le=de.shixunsDetail,Ee=de.loading,Re=de.globalSetting;return{shixunsDetail:le,globalSetting:Re,loading:Ee.models.index}})(Ln),$n=function(le){var Ee=le.user,Re=le.upDataList,Ge=le.page,ye=le.getTypeNumber,xt=le.dispatch,Ne=Object(n.m)(),Oe=function(){var Ze=Object(v.a)(t.a.mark(function we(ct,mt){var Ae;return t.a.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return $e.next=2,Object(te.K)({id:ct,content:mt});case 2:Ae=$e.sent,(Ae==null?void 0:Ae.status)===0&&Re(1);case 4:case"end":return $e.stop()}},we)}));return function(ct,mt){return Ze.apply(this,arguments)}}();return e.a.createElement("div",{className:"discuss-item-container bg-white"},e.a.createElement("a",{href:"/users/".concat(Ee.login),target:"_blank"},e.a.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",height:"50",src:"".concat(me.a.IMG_SERVER,"/images/").concat(Ee.image_url),width:"50"})),e.a.createElement("section",null,e.a.createElement(Fn,{id:Ne.pathId,activeDiscussIndex:Ne.pathId,onReplyDiscuss:Oe})))},zn=Object(i.a)(function(de){var le=de.shixunsDetail,Ee=de.loading,Re=de.globalSetting;return{shixunsDetail:le,globalSetting:Re,loading:Ee.models.index}})($n),pn=U("fXAG");function Vr(de){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Object(Nn.c)("/discusses.json?page=".concat(le-1,"&container_identifier=").concat(de,"&container_type=Shixun"))}function wr(de,le){return Object(Nn.f)("/discusses/".concat(de,"/top_or_down_discuss.json"),{top:le})}function Yr(de,le){return Object(Nn.f)("/discusses/".concat(de,"/plus.json"),{container_type:"Discuss",type:le?1:0})}function Jr(de,le){return Object(Nn.f)("/discusses/".concat(de,"/hidden.json"),le)}function Zr(de,le){return Object(Nn.f)("/discusses/".concat(de,"/reward_code.json"),le)}function Oi(de){return Object(Nn.a)("/api/discusses/".concat(de,".json"),{method:"delete"})}function Pi(de,le){return Object(Nn.f)("/discusses/".concat(de,"/reply.json"),{container_type:"Shixun",content:le})}function Yi(de){return Object(Nn.f)("/discusses.json",de)}var Ji=U("QcdW"),Ci=U("kaH+");function Ri(de){var le=de.data,Ee=de.index,Re=de.adminOrOperator,Ge=de.parentDiscussIndex,ye=de.shixunIdentifier,xt=de.isDelete,Ne=de.user,Oe=de.onSetRewardData,Ze=de.onSetActionType,we=de.deleteCommentAlert,ct=de.shixunName,mt=le.author,Ae=le.can_delete,Ut=le.manage,$e=le.content,yt=le.hidden,Ce=le.id,ke=le.reward,_t=le.time;function nn(){Oe({id:Ce,index:Ee,user_id:mt.user_id,parentDiscussIndex:Ge})}function Be(){Ze({id:Ce,index:Ee,params:{hidden:yt?"0":"1",container_identifier:ye},type:"hidden-discuss",parentDiscussIndex:Ge,message:yt?"\u786E\u5B9A\u8981\u53D6\u6D88\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417":"\u786E\u5B9A\u8981\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417"})}function st(){if(we){L.a.info({title:"\u63D0\u793A",content:e.a.createElement("div",{className:"tc"}," ","\u8BE5\u6761\u8BC4\u8BBA\u6765\u81EA\u300A",ct,"\u300B\u5B9E\u8DF5\u9879\u76EE\uFF0C\u60A8\u4E0D\u662F\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u7BA1\u7406\u8005\uFF0C\u4E0D\u80FD\u5220\u9664\u8BC4\u8BBA\uFF01"),onOk:function(){}});return}Ze({id:Ce,index:Ee,type:"delete-discuss",parentDiscussIndex:Ge,message:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417"})}return e.a.createElement("div",{className:"second-level-discuss"},e.a.createElement("div",{className:"discuss-info-body"},e.a.createElement("div",{className:"discuss-info"},e.a.createElement("a",{href:"/users/".concat(mt.login),target:"_blank"},mt.name),e.a.createElement("span",{className:"grey"},_t),ke?e.a.createElement("a",{className:"c-orange gift",title:"\u5DF2\u5956\u52B1\u91D1\u5E01".concat(ke)},e.a.createElement("i",{className:"iconfont icon-gift c-orange "}),e.a.createElement("span",null,ke)):null),e.a.createElement("div",{className:"btn-group"},Re?e.a.createElement("a",{onClick:nn,title:"\u7ED9TA\u5956\u52B1\u91D1\u5E01"},e.a.createElement("i",{className:"iconfont icon-jiangli"})):null,Re?e.a.createElement("a",{onClick:Be,title:yt?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF\u8BC4\u8BBA"},e.a.createElement("i",{className:yt?"iconfont icon-yincangbiyan":"fa fa-eye"})):null,Ut?e.a.createElement("a",{onClick:st,title:"\u5220\u9664"},e.a.createElement("i",{className:"iconfont icon-shanchu"})):null)),e.a.createElement(y.a,{className:"discuss-content",value:$e}))}var Ti=function(de){var le=de.data,Ee=de.index,Re=de.shixunIdentifier,Ge=de.adminOrOperator,ye=de.identity,xt=de.onTopOrDownDiscuss,Ne=de.onPlusDiscuss,Oe=de.onSetActionType,Ze=de.onSetRewardData,we=de.user,ct=de.isDelete,mt=de.activeDiscussIndex,Ae=de.onReplyDiscuss,Ut=de.onSetActiveDiscussIndex,$e=le.content,yt=le.children,Ce=le.game_url,ke=le.hidden,_t=le.id,nn=le.position,Be=le.praise_count,st=le.reward,Gt=le.sticky,Ft=le.time,Le=le.user_praise,Pt=le.game_passed,bt=le.delete_comment_alert,Et=le.author,Jt=le.shixun_name,Ct=le.manage;function Rt(){Ut(_t)}function hn(){xt(_t,!Gt,Ee)}function ln(){Ne(_t,!Le,Ee)}function mn(){Ze({id:_t,index:Ee,user_id:Et.user_id})}function _n(){if(bt){L.a.info({title:"\u63D0\u793A",content:e.a.createElement("div",{className:"tc"}," ","\u8BE5\u6761\u8BC4\u8BBA\u6765\u81EA\u300A",Jt,"\u300B\u5B9E\u8DF5\u9879\u76EE\uFF0C\u60A8\u4E0D\u662F\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u7BA1\u7406\u8005\uFF0C\u4E0D\u80FD\u5220\u9664\u8BC4\u8BBA\uFF01"),onOk:function(){}});return}Oe({id:_t,index:Ee,type:"delete-discuss",message:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417"})}function vn(){Oe({id:_t,index:Ee,params:{hidden:ke?"0":"1",container_identifier:Re},type:"hidden-discuss",message:ke?"\u786E\u5B9A\u8981\u53D6\u6D88\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417":"\u786E\u5B9A\u8981\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417"})}var rt=function(Cn){var sn=Cn.target,Tt=sn.nodeName,We=sn.src;Tt==="IMG"&&(ma.a.publish("preview-image",We),console.log("src:",We))};return e.a.createElement("div",{className:"discuss-item-container",key:_t},e.a.createElement("a",{href:"/users/".concat(Et.login),target:"_blank"},e.a.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",height:"50",src:"".concat(me.a.IMG_SERVER,"/images/").concat(Et.image_url),width:"50"})),e.a.createElement("section",null,e.a.createElement("div",{className:"discuss-info"},e.a.createElement("a",{href:"/users/".concat(Et.login),target:"_blank"},Et.name),e.a.createElement("span",{className:"grey"},Ft),nn?e.a.createElement("span",{className:"c-green"}," [\u7B2C",nn,"\u5173] "):null,Ce?e.a.createElement("a",{href:Ce,target:"_blank",className:"view-code",title:"\u70B9\u51FB\u67E5\u770BTA\u7684\u4EE3\u7801\u9875\u9762"},"\u67E5\u770B"):null,st?e.a.createElement("a",{className:"c-orange gift",title:"\u5DF2\u5956\u52B1\u91D1\u5E01".concat(st)},e.a.createElement("i",{className:"iconfont icon-gift c-orange "}),e.a.createElement("span",null,st)):null,ye<=5?e.a.createElement("span",{style:{flex:"1",textAlign:"right",color:Pt===1?"#29bd8b":""}},Pt||Pt===0?Pt===1?"\u5DF2\u901A\u5173":"\u672A\u901A\u5173":""):null),e.a.createElement("div",{onClick:rt},e.a.createElement(y.a,{className:"discuss-content",value:$e})),yt&&yt.length>0?e.a.createElement("div",{className:"reply-discuss-container",onClick:rt},yt.map(function(gn,Cn){return e.a.createElement(Ri,{key:gn.id,data:gn,index:Cn,deleteCommentAlert:bt,shixunName:Jt,shixunIdentifier:Re,adminOrOperator:Ge,user:we,isDelete:ct,onSetRewardData:Ze,onSetActionType:Oe,parentDiscussIndex:Ee})})):null,e.a.createElement("div",{className:"btn-group"},Ge?e.a.createElement("a",{onClick:mn,title:"\u7ED9TA\u5956\u52B1\u91D1\u5E01"},e.a.createElement("i",{className:"iconfont icon-jiangli"})):null,Ge?e.a.createElement("a",{onClick:vn,title:ke?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF\u8BC4\u8BBA"},e.a.createElement("i",{className:ke?"iconfont icon-yincangbiyan":"fa fa-eye"})):null,Ct&&(!yt||yt.length==0)&&e.a.createElement("a",{onClick:_n,title:"\u5220\u9664"},e.a.createElement("i",{className:"iconfont icon-shanchu"})),e.a.createElement("a",{onClick:Rt,title:"\u56DE\u590D"},e.a.createElement("i",{className:"iconfont icon-huifu1"})),e.a.createElement("a",{onClick:ln,className:Le?"c-orange":""},e.a.createElement("i",{className:Le?"iconfont icon-dianzan mr3":"iconfont icon-dianzan-xian mr3 "}),e.a.createElement("span",null,Be||""))),e.a.createElement(Fn,{id:_t,activeDiscussIndex:mt,onReplyDiscuss:Ae})))},Ui={showRewardDialog:!1,data:null,page:1,loading:!1,actionType:null,activeDiscussIndex:null};function Ii(de,le){switch(le.type){case pn.Q:return Object(w.a)(Object(w.a)({},de),{},{loading:!0});case pn.X:return Object(w.a)(Object(w.a)({},de),{},{showRewardDialog:!0});case pn.b:return Object(w.a)(Object(w.a)({},de),{},{showRewardDialog:!1});case pn.l:return Object(w.a)(Object(w.a)({},de),le.payload);case pn.ab:return Object(w.a)(Object(w.a)({},de),le.payload);case pn.x:return Object(w.a)(Object(w.a)({},de),le.payload);case pn.z:return Object(w.a)(Object(w.a)({},de),le.payload);case pn.H:return Object(w.a)(Object(w.a)({},de),le.payload);case pn.a:return Object(w.a)(Object(w.a)({},de),le.payload);default:throw new Error}}var ji=function(de){var le=de.shixunIdentifier,Ee=de.identity,Re=de.activeIndex,Ge=de.user,ye=de.isShixunDetail,xt=ye===void 0?!1:ye,Ne=de.isDelete,Oe=de.getTypeNumber,Ze=Object(o.useReducer)(Ii,Ui),we=Object(l.a)(Ze,2),ct=we[0],mt=we[1],Ae=ct.page,Ut=ct.loading,$e=ct.data,yt=ct.actionType,Ce=ct.showRewardDialog,ke=ct.activeDiscussIndex,_t=Object(o.useRef)(),nn=Object(o.useRef)(),Be=Object(n.m)();function st(lt){return Gt.apply(this,arguments)}function Gt(){return Gt=Object(v.a)(t.a.mark(function lt(St){var vt;return t.a.wrap(function(He){for(;;)switch(He.prev=He.next){case 0:if(!Ut){He.next=2;break}return He.abrupt("return");case 2:return He.prev=2,mt({type:pn.Q}),He.next=6,Object(te.z)(Object(w.a)(Object(w.a)({},Be),{},{page:St}));case 6:vt=He.sent,mt({type:pn.l,payload:{activeDiscussIndex:null,page:St,data:vt,loading:!1}}),He.next=13;break;case 10:He.prev=10,He.t0=He.catch(2),console.log(He.t0);case 13:case"end":return He.stop()}},lt,null,[[2,10]])})),Gt.apply(this,arguments)}function Ft(lt){document.body.scrollIntoView(),st(lt)}function Le(lt,St,vt){return Pt.apply(this,arguments)}function Pt(){return Pt=Object(v.a)(t.a.mark(function lt(St,vt,qe){var He;return t.a.wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:return ge.prev=0,ge.next=3,Yr(St,vt);case 3:He=ge.sent,We[qe].user_praise=vt,We[qe].praise_count=He.praise_count,mt({type:pn.x,payload:{data:Object(w.a)(Object(w.a)({},$e),{},{comments:We})}}),ge.next=12;break;case 9:ge.prev=9,ge.t0=ge.catch(0),console.log(ge.t0);case 12:case"end":return ge.stop()}},lt,null,[[0,9]])})),Pt.apply(this,arguments)}function bt(lt,St,vt){return Et.apply(this,arguments)}function Et(){return Et=Object(v.a)(t.a.mark(function lt(St,vt,qe){return t.a.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return Me.prev=0,Me.next=3,wr(St,vt);case 3:We[qe].sticky=vt,mt({type:pn.ab,payload:{data:Object(w.a)(Object(w.a)({},$e),{},{comments:We})}}),Me.next=10;break;case 7:Me.prev=7,Me.t0=Me.catch(0),console.log(Me.t0);case 10:case"end":return Me.stop()}},lt,null,[[0,7]])})),Et.apply(this,arguments)}function Jt(){mt({type:pn.z,payload:{actionType:null}})}function Ct(){return Rt.apply(this,arguments)}function Rt(){return Rt=Object(v.a)(t.a.mark(function lt(){var St,vt,qe,He,Me,ge,Ve,Ot;return t.a.wrap(function(kt){for(;;)switch(kt.prev=kt.next){case 0:if(St=yt.id,vt=yt.params,qe=yt.type,He=yt.index,Me=yt.parentDiscussIndex,!(qe==="hidden-discuss")){kt.next=6;break}return kt.next=4,Jr(St,vt);case 4:Me?We[Me].children[He].hidden=vt.hidden==1:We[He].hidden=vt.hidden==1,mt({type:pn.z,payload:{actionType:null,data:Object(w.a)(Object(w.a)({},$e),{},{comments:We})}});case 6:if(!(qe==="delete-discuss")){kt.next=31;break}return kt.next=9,Oi(St);case 9:if(!(Me||Me===0)){kt.next=22;break}ge=We[Me].children,Ve=ge.length-1;case 12:if(!(Ve>=0)){kt.next=19;break}if(!(ge[Ve].id===St)){kt.next=16;break}return ge.splice(Ve,1),kt.abrupt("break",19);case 16:Ve--,kt.next=12;break;case 19:We[Me].children=ge,kt.next=30;break;case 22:Ot=We.length-1;case 23:if(!(Ot>=0)){kt.next=30;break}if(!(We[Ot].id===St)){kt.next=27;break}return We.splice(Ot,1),kt.abrupt("break",30);case 27:Ot--,kt.next=23;break;case 30:mt({type:pn.z,payload:{actionType:null,data:Object(w.a)(Object(w.a)({},$e),{},{comments:We})}});case 31:case"end":return kt.stop()}},lt)})),Rt.apply(this,arguments)}function hn(lt){mt({type:pn.z,payload:{actionType:lt}})}function ln(){mt({type:pn.b})}function mn(){return _n.apply(this,arguments)}function _n(){return _n=Object(v.a)(t.a.mark(function lt(){var St,vt,qe,He,Me,ge,Ve;return t.a.wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:return St=_t.current,vt=St.id,qe=St.index,He=St.score,Me=St.user_id,ge=St.parentDiscussIndex,Je.next=3,Zr(vt,{container_type:"Discusses",score:He,user_id:Me});case 3:Ve=Je.sent,ge?We[ge].children[qe].reward=Ve.code:We[qe].reward=Ve.code,mt({type:pn.H,payload:{showRewardDialog:!1,data:Object(w.a)(Object(w.a)({},$e),{},{comments:We})}}),_t.current=null;case 7:case"end":return Je.stop()}},lt)})),_n.apply(this,arguments)}function vn(lt){_t.current=lt,mt({type:pn.X})}function rt(lt){_t.current.score=lt}function gn(lt,St){return Cn.apply(this,arguments)}function Cn(){return Cn=Object(v.a)(t.a.mark(function lt(St,vt){return t.a.wrap(function(He){for(;;)switch(He.prev=He.next){case 0:return He.prev=0,He.next=3,Pi(St,vt);case 3:st(Ae),He.next=9;break;case 6:He.prev=6,He.t0=He.catch(0),console.log(He.t0);case 9:case"end":return He.stop()}},lt,null,[[0,6]])})),Cn.apply(this,arguments)}function sn(lt){ke===lt?mt({type:pn.a,payload:{activeDiscussIndex:null}}):mt({type:pn.a,payload:{activeDiscussIndex:lt}})}if(Object(o.useEffect)(function(){function lt(){return St.apply(this,arguments)}function St(){return St=Object(v.a)(t.a.mark(function vt(){return t.a.wrap(function(He){for(;;)switch(He.prev=He.next){case 0:if(!(Re===3&&!$e&&le)){He.next=3;break}return He.next=3,st(Ae);case 3:case"end":return He.stop()}},vt)})),St.apply(this,arguments)}lt()},[Be.pathId]),!$e)return e.a.createElement(it.a,{spinning:!0},e.a.createElement("div",{style:{height:"300px",width:"100%"}}));var Tt=$e.disscuss_count,We=$e.comments,Lt=$e.all,Sn=$e.can_hidden;return e.a.createElement(o.Fragment,null,e.a.createElement("div",{className:"discuss-container",ref:nn},Tt===0?e.a.createElement(Bt.a,null):null,Object(F.p)()&&e.a.createElement(zn,{getTypeNumber:Oe,upDataList:st,page:Ae,user:Ge}),e.a.createElement("aside",{className:"bg-white"},We==null?void 0:We.map(function(lt,St){return e.a.createElement(Ti,{user:Ge,key:lt.id,data:lt,index:St,identity:Ee,onPaginationChange:Ft,shixunIdentifier:le,isDelete:Ne,onSetActionType:hn,onTopOrDownDiscuss:bt,adminOrOperator:Sn,onPlusDiscuss:Le,onSetRewardData:vn,activeDiscussIndex:ke,onSetActiveDiscussIndex:sn,onReplyDiscuss:gn})})),Tt>10?e.a.createElement("div",{className:"pagination-container tc"},e.a.createElement(Ra.a,{showQuickJumper:!0,showSizeChanger:!1,onChange:Ft,current:Ae,total:Tt})):null),e.a.createElement(jt.a,null,e.a.createElement(L.a,{centered:!0,title:"\u63D0\u793A",visible:!!yt,onOk:Ct,onCancel:Jt},e.a.createElement("p",null,yt?yt.message:"")),e.a.createElement(L.a,{centered:!0,width:400,title:"\u5956\u52B1\u8BBE\u7F6E",visible:Ce,onCancel:ln,onOk:mn},e.a.createElement(Ei.a,{placeholder:"\u8BF7\u8F93\u5165\u5956\u52B1\u7684\u91D1\u5E01\u6570\u91CF",min:1,onChange:rt,style:{width:"228px"}}))))},Li=U("qdXH"),ki=U("jZGp"),Mi=U("LvDl"),Ni=function(le){var Ee,Re,Ge,ye,xt,Ne=le.pathsDetail,Oe=le.user,Ze=le.globalSetting,we=le.loading,ct=le.dispatch,mt=Object(_.a)(le,["pathsDetail","user","globalSetting","loading","dispatch"]),Ae=Object(n.m)(),Ut=Ne.stageData,$e=Object(o.useState)([]),yt=Object(l.a)($e,2),Ce=yt[0],ke=yt[1],_t=Object(o.useState)(-1),nn=Object(l.a)(_t,2),Be=nn[0],st=nn[1],Gt=Object(o.useState)(!1),Ft=Object(l.a)(Gt,2),Le=Ft[0],Pt=Ft[1],bt=Object(o.useState)(!1),Et=Object(l.a)(bt,2),Jt=Et[0],Ct=Et[1],Rt=Object(o.useState)(!1),hn=Object(l.a)(Rt,2),ln=hn[0],mn=hn[1],_n=Object(o.useState)({name:"",is_jupyter:!1}),vn=Object(l.a)(_n,2),rt=vn[0],gn=vn[1],Cn=ft.a.useForm(),sn=Object(l.a)(Cn,1),Tt=sn[0],We=ft.a.useForm(),Lt=Object(l.a)(We,1),Sn=Lt[0],lt=ft.a.useForm(),St=Object(l.a)(lt,1),vt=St[0],qe=ft.a.useForm(),He=Object(l.a)(qe,1),Me=He[0],ge=Object(o.useState)(),Ve=Object(l.a)(ge,2),Ot=Ve[0],Je=Ve[1],kt=Object(o.useState)([]),Mt=Object(l.a)(kt,2),Tn=Mt[0],Un=Mt[1],cn=Object(o.useState)(),Xn=Object(l.a)(cn,2),Kn=Xn[0],Bn=Xn[1],qn=Object(o.useState)("All"),ua=Object(l.a)(qn,2),Gn=ua[0],Ta=ua[1],Ua=Object(o.useState)(!1),_a=Object(l.a)(Ua,2),fa=_a[0],Jn=_a[1],Ia=Object(o.useState)(0),va=Object(l.a)(Ia,2),ja=va[0],La=va[1],ka=Object(o.useState)([{name:"\u5168\u90E8",type:"All",number:0},{name:"\u5B9E\u8DF5\u9879\u76EE",type:"Shixun",number:0},{name:"\u89C6\u9891\u9879\u76EE",type:"VideoItem",number:0},{name:"\u6559\u5B66\u8BFE\u4EF6",type:"Attachment",number:0},{name:"\u8BA8\u8BBA",type:"Discusses",number:0}]),ga=Object(l.a)(ka,2),Ea=ga[0],Ma=ga[1],Na=((Ee=Ne.detail)===null||Ee===void 0?void 0:Ee.is_free)||((Re=Ne.detail)===null||Re===void 0?void 0:Re.can_learning),pa=function(){var _e=Ne.detail,Pe=_e.shixuns_count,fe=Pe===void 0?0:Pe,je=_e.videos_count,gt=je===void 0?0:je,pt=_e.attachment_count,ut=pt===void 0?0:pt,Hn=_e.disscuss_count,Kt=Hn===void 0?0:Hn,ea={All:fe+gt+ut,Shixun:fe,VideoItem:gt,Attachment:ut,Discusses:Kt},En=Ea.map(function(ze){return Object(w.a)(Object(w.a)({},ze),{},{number:ea[ze.type]})});Ma(En)};Object(o.useEffect)(function(){pa()},[Ne.detail]),Object(o.useEffect)(function(){pa(),ke(Object(A.a)(Ut))},[Ut]);var Ba=function(){var Ke=Object(v.a)(t.a.mark(function _e(Pe,fe){var je;return t.a.wrap(function(pt){for(;;)switch(pt.prev=pt.next){case 0:if(ct({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF0C\u8BF7\u7A0D\u540E..."}}),!fe){pt.next=7;break}return pt.next=4,Object(ar.z)({id:Pe});case 4:pt.t0=pt.sent,pt.next=10;break;case 7:return pt.next=9,Object(ar.A)({id:Pe});case 9:pt.t0=pt.sent;case 10:if(je=pt.t0,ct({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),!((je==null?void 0:je.game_identifier)||(je==null?void 0:je.identifier))){pt.next=15;break}return Object(ie.I)(fe?"/tasks/".concat(je==null?void 0:je.identifier,"/jupyter"):"/tasks/".concat(je.game_identifier)),pt.abrupt("return");case 15:(je==null?void 0:je.status)===-3?Object(ie.m)():(je==null?void 0:je.status)===2?Fa(je==null?void 0:je.message):(je==null?void 0:je.status)===3&&ya(je==null?void 0:je.message);case 16:case"end":return pt.stop()}},_e)}));return function(Pe,fe){return Ke.apply(this,arguments)}}(),Fa=function Ke(_e){var Pe;_e=((Pe=_e)===null||Pe===void 0?void 0:Pe.includes(".json"))?_e:"".concat(_e,".json"),L.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:e.a.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:function(){var fe=Object(v.a)(t.a.mark(function gt(){var pt,ut;return t.a.wrap(function(Kt){for(;;)switch(Kt.prev=Kt.next){case 0:return Kt.next=2,Object(Rr.O)({url:_e});case 2:if(pt=Kt.sent,pt){Kt.next=5;break}return Kt.abrupt("return");case 5:return N.b.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF01"),Kt.next=8,Object(ar.A)({id:pt.shixun_identifier});case 8:if(ut=Kt.sent,!(ut==null?void 0:ut.game_identifier)){Kt.next=12;break}return Object(ie.I)("/tasks/".concat(ut.game_identifier)),Kt.abrupt("return");case 12:(ut==null?void 0:ut.status)===2?Ke(ut==null?void 0:ut.message):(ut==null?void 0:ut.status)===3&&ya(ut==null?void 0:ut.message);case 13:case"end":return Kt.stop()}},gt)}));function je(){return fe.apply(this,arguments)}return je}()})},ya=function(_e){L.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:e.a.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",_e,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},Wa=function(){if(!Te())return;Je(!0)};Object(o.useEffect)(function(){if(Ot){var Ke={shixuns_list:[],attachments_list:[],items:[]};Aa(Ce.length,Ke),ke([].concat(Object(A.a)(Ce),[Ke]))}},[Ot]);var ba=function(){setTimeout(function(){Be===Ce.length-1&&Ot&&(ir(),ke(Ce.filter(function(_e,Pe){return Pe!==Ce.length-1}))),ra(),st(-1)},300)},Aa=function(_e,Pe){if(!Te())return;st(_e),Tt.setFieldsValue({name:Pe.stage_name,description:Pe.stage_description})},xa=function(_e){if(setTimeout(function(){document.documentElement.scrollTop=ja},300),_e==="\u53D6\u6D88")return;Ce[Be].items=Ce[Be].items.concat(_e),ke(Object(A.a)(Ce))},za=function(){var Ke=Object(v.a)(t.a.mark(function _e(Pe){var fe;return t.a.wrap(function(gt){for(;;)switch(gt.prev=gt.next){case 0:return gt.next=2,Object(te.O)(Object(w.a)({},Pe));case 2:return fe=gt.sent,Ce[Be].items=Pe.list,gt.abrupt("return",fe);case 5:case"end":return gt.stop()}},_e)}));return function(Pe){return Ke.apply(this,arguments)}}(),Xa=function(_e){Ce[Be].items=Ce[Be].items.concat(Object(w.a)(Object(w.a)({},_e),{},{children:[]})),ke(Object(A.a)(Ce))},Qa=function(_e){Ce[Be].items=Ce[Be].items.concat(_e),ke(Object(A.a)(Ce))},Ka=function(){var Ke=Object(v.a)(t.a.mark(function _e(Pe){var fe,je;return t.a.wrap(function(pt){for(;;)switch(pt.prev=pt.next){case 0:return pt.next=2,Object(te.f)(Object(w.a)({id:Ce[Be].stage_id,subject_id:Ae.pathId},Pe));case 2:return fe=pt.sent,fe.id&&(Bn(!1),je=[Object(w.a)({},fe)],Ce[Be].items=Ce[Be].items.concat(je),ke(Object(A.a)(Ce))),pt.abrupt("return",fe);case 5:case"end":return pt.stop()}},_e)}));return function(Pe){return Ke.apply(this,arguments)}}(),ra=function(){ct({type:"pathsDetail/getStageData",payload:{subject_id:Ae.pathId}}),ct({type:"pathsDetail/getPathsDetail",payload:{id:Ae.pathId}}),ct({type:"pathsDetail/getRightData",payload:{id:Ae.pathId}}),ir()},la=function(){var Ke=Object(v.a)(t.a.mark(function _e(Pe,fe){var je,gt,pt,ut,Hn,Kt;return t.a.wrap(function(En){for(;;)switch(En.prev=En.next){case 0:if(!(!(Pe==null?void 0:Pe.name)||(Pe==null?void 0:Pe.name.replace(/(^\s*)|(\s*$)/g,""))==="")){En.next=2;break}return En.abrupt("return",N.b.info("\u8BF7\u5148\u8F93\u5165\u7AE0\u8282\u540D\u79F0\uFF01"));case 2:if(ir(),pt=[],(je=Ce[Be].shixuns_list)===null||je===void 0||je.map(function(ze){pt.push({type:ze.item_type,id:ze.id})}),(gt=Ce[Be].attachments_list)===null||gt===void 0||gt.map(function(ze){pt.push({type:"Attachment",id:ze.id})}),console.log(Ot,":isAdd"),!Ot){En.next=14;break}return En.next=10,Object(te.d)(Object(w.a)(Object(w.a)({},Pe),{},{pathId:Ae.pathId,list:pt}));case 10:ut=En.sent,(ut==null?void 0:ut.subject_id)&&(Ce[Be]=Object(w.a)(Object(w.a)({},Ce[Be]),ut),ke(Object(A.a)(Ce))),En.next=19;break;case 14:return Hn=Array.from(new Set(pt.map(function(ze){return ze.type}))),En.next=17,Object(te.R)(Object(w.a)(Object(w.a)({},Pe),{},{id:Ce[Be].stage_id,type:Array.from(new Set(pt.map(function(ze){return ze.type}))),list:pt}));case 17:Kt=En.sent,(Kt==null?void 0:Kt.subject_id)&&(Ce[Be]=Object(w.a)(Object(w.a)({},Ce[Be]),Kt));case 19:return Je(!1),En.abrupt("return");case 21:case"end":return En.stop()}},_e)}));return function(Pe,fe){return Ke.apply(this,arguments)}}(),Ga=function(_e,Pe,fe){var je=Array.from(_e),gt=je.splice(Pe,1),pt=Object(l.a)(gt,1),ut=pt[0];return je.splice(fe,0,ut),je},Ha=function(_e,Pe){L.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u5B9A\u5220\u9664\u8BE5\u5B9E\u8BAD\u5417\uFF1F",onOk:function(){Ce[Be][Pe||"shixuns_list"].splice(_e,1),N.b.success("\u5220\u9664\u6210\u529F"),ke(Object(A.a)(Ce)),la(Tt.getFieldsValue(),Pe)}})},Va=function(_e){L.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u672C\u64CD\u4F5C\u5C06\u5220\u9664\u5F53\u524D\u76EE\u5F55\u53CA\u4E0B\u5C5E\u5B50\u76EE\u5F55\u5B9A\u5168\u90E8\u5185\u5BB9\uFF0C\u786E\u8BA4\u8981\u5220\u9664\u5417\uFF1F",onOk:function(){var Pe=Object(v.a)(t.a.mark(function je(){var gt;return t.a.wrap(function(ut){for(;;)switch(ut.prev=ut.next){case 0:return ut.next=2,Object(te.r)(_e);case 2:gt=ut.sent,gt.status===0&&(N.b.success("\u5220\u9664\u6210\u529F"),ra());case 4:case"end":return ut.stop()}},je)}));function fe(){return Pe.apply(this,arguments)}return fe}()})},Ya=function(_e){L.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u5B9A\u5220\u9664\u8BE5\u7AE0\u8282\u5417\uFF1F",onOk:function(){var Pe=Object(v.a)(t.a.mark(function je(){var gt;return t.a.wrap(function(ut){for(;;)switch(ut.prev=ut.next){case 0:return ut.next=2,Object(te.q)({id:_e});case 2:gt=ut.sent,gt.status===1&&(st(-1),N.b.success("\u5220\u9664\u6210\u529F"),ra());case 4:case"end":return ut.stop()}},je)}));function fe(){return Pe.apply(this,arguments)}return fe}()})},wa=function(){gn({name:"",is_jupyter:!1}),Sn.setFieldsValue({name:"",is_jupyter:!1}),Jn(!1),Pt(!1)},rr=function(_e,Pe){var fe;if(!_e.destination)return;var je=Ga((fe=Ce[Be])===null||fe===void 0?void 0:fe[Pe||"shixuns_list"],_e.source.index,_e.destination.index);Ce[Be][Pe||"shixuns_list"]=je,ke(Object(A.a)(Ce)),la(Tt.getFieldsValue(),Pe)},Ja=function(){var Ke=Object(v.a)(t.a.mark(function _e(Pe){var fe;return t.a.wrap(function(gt){for(;;)switch(gt.prev=gt.next){case 0:if(Te()){gt.next=2;break}return gt.abrupt("return");case 2:return gt.next=4,Object(te.Q)({id:Pe});case 4:fe=gt.sent,fe.status===1&&ra();case 6:case"end":return gt.stop()}},_e)}));return function(Pe){return Ke.apply(this,arguments)}}(),Za=function(){var Ke=Object(v.a)(t.a.mark(function _e(Pe){var fe;return t.a.wrap(function(gt){for(;;)switch(gt.prev=gt.next){case 0:if(Te()){gt.next=2;break}return gt.abrupt("return");case 2:return gt.next=4,Object(te.s)({id:Pe});case 4:fe=gt.sent,fe.status===1&&ra();case 6:case"end":return gt.stop()}},_e)}));return function(Pe){return Ke.apply(this,arguments)}}(),Te=function(){return Be!==-1?(L.a.info({icon:null,className:"custom-modal-divider ",okText:"\u77E5\u9053\u5566",title:"\u63D0\u793A",content:e.a.createElement("div",{className:"mt10 font14"},"\u5F53\u524D\u5355\u5143\u6709\u672A\u4FDD\u5B58\u7684\u4FEE\u6539\u8BB0\u5F55\uFF0C\u8BF7\u5148\u4FDD\u5B58\uFF01"),onOk:function(){var Pe="Edit_".concat(Be),fe=document.getElementById(Pe);fe&&setTimeout(function(){return fe.scrollIntoView({block:"start",behavior:"smooth"})})}}),!1):!0},Da=function(){la(Tt.getFieldsValue())},ir=function(){Je(!1)},Sr=function(){var _e,Pe,fe,je,gt,pt;return((_e=Ne.detail)===null||_e===void 0||((Pe=_e.courses)===null||Pe===void 0)?void 0:Pe.length)>0?(fe=Ne.detail)===null||fe===void 0?void 0:fe.allow_visit:!(((je=Oe.userInfo)===null||je===void 0?void 0:je.user_identity)==="\u5B66\u751F"&&((gt=Ne.detail)===null||gt===void 0?void 0:gt.allow_visit)&&((pt=Ne.detail)===null||pt===void 0?void 0:pt.courses))},or=function(_e,Pe,fe){var je,gt,pt,ut,Hn,Kt,ea,En,ze,Qn,na,dt;return Gn!=="All"&&_e.item_type!==Gn?null:e.a.createElement(X.a,{className:"list-item-row",align:"middle",key:Pe,gutter:[5,10]},e.a.createElement(J.a,null,_e.item_type==="Shixun"?e.a.createElement("i",{className:"iconfont icon-shixunti2 c-light-primary font20"}):e.a.createElement("i",{className:"iconfont icon-shipin2 c-purple-8C1 font20"})),e.a.createElement(J.a,{flex:1,className:!_e.allow_visit&&!_e.to_be_built&&(_e.shixun_status==="\u6682\u672A\u516C\u5F00"||_e.shixun_status==="\u5DF2\u5220\u9664")?Yn.a.color204:""},!!(Ne==null||((je=Ne.detail)===null||je===void 0)?void 0:je.cust_seq)&&e.a.createElement("span",{className:"mr8"},fe+1,"-",Pe+1),_e.name,Be===-1&&_e.complete_status===1&&e.a.createElement("span",{className:Yn.a.completed},e.a.createElement("i",{className:"iconfont icon-duigou1 mr5 font12"}),"\u5DF2\u5B8C\u6210")),e.a.createElement(J.a,null,Be===fe&&e.a.createElement("div",null,e.a.createElement(E.a,{title:"\u5220\u9664"},e.a.createElement("span",{onClick:function(){Ha(Pe,"shixuns_list")},className:"iconfont icon-shanchu c-grey-c"}))),(((gt=Oe.userInfo)===null||gt===void 0?void 0:gt.admin)||((pt=Oe.userInfo)===null||pt===void 0?void 0:pt.business)||!(!((ut=Ne.detail)===null||ut===void 0?void 0:ut.allow_statistics)&&((Hn=Oe.userInfo)===null||Hn===void 0?void 0:Hn.user_identity)==="\u5B66\u751F"&&((Kt=Ne.detail)===null||Kt===void 0?void 0:Kt.allow_visit)&&((ea=Ne.detail)===null||ea===void 0?void 0:ea.courses)))&&Be!==fe&&_e.item_type==="VideoItem"&&e.a.createElement("aside",null,e.a.createElement(C.a,{type:"primary",onClick:function(){var Sa,ur;if(!((Sa=Oe.userInfo)===null||Sa===void 0?void 0:Sa.admin)&&!((ur=Oe.userInfo)===null||ur===void 0?void 0:ur.business)&&!_e.can_view)return L.a.info({centered:!0,width:400,okText:"\u77E5\u9053\u5566",icon:null,content:e.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")});_e.link&&Object(Li.o)({is_f:1,id:_e.id,point:0,total:0}),Object(ie.I)(_e.link||"/video/".concat(_e.id,"?subject_id=").concat(Ae.pathId))}},_e.last_point>0?"\u7EE7\u7EED\u5B66\u4E60":"\u5F00\u59CB\u5B66\u4E60")),(((En=Oe.userInfo)===null||En===void 0?void 0:En.admin)||(_e.allow_visit||_e.to_be_built||_e.shixun_status!=="\u6682\u672A\u516C\u5F00"&&_e.shixun_status!=="\u5DF2\u5220\u9664")&&!(!((ze=Ne.detail)===null||ze===void 0?void 0:ze.allow_statistics)&&((Qn=Oe.userInfo)===null||Qn===void 0?void 0:Qn.user_identity)==="\u5B66\u751F"&&((na=Ne.detail)===null||na===void 0?void 0:na.allow_visit)&&((dt=Ne.detail)===null||dt===void 0?void 0:dt.courses)))&&Be!==fe&&_e.item_type==="Shixun"&&e.a.createElement("aside",null,e.a.createElement(xn.Link,{to:"/shixuns/".concat(_e.identifier,"/challenges"),target:"_blank"},"\u67E5\u770B\u8BE6\u60C5"),_e.shixun_status!=="\u6682\u672A\u516C\u5F00"&&e.a.createElement(C.a,{className:"ml20",type:"primary",onClick:function(){if(!Object(ne.e)(ct))return;Ba(_e.identifier,_e.is_jupyter||_e.is_jupyter_lab)}},"\u5F00\u59CB\u5B9E\u6218")),Be===-1&&!_e.allow_visit&&!_e.to_be_built&&_e.shixun_status==="\u6682\u672A\u516C\u5F00"&&e.a.createElement("span",{className:Yn.a.color204},"\u6682\u672A\u516C\u5F00"),Be===-1&&!_e.allow_visit&&!_e.to_be_built&&_e.shixun_status==="\u5DF2\u5220\u9664"&&e.a.createElement("span",{className:Yn.a.color204},"\u5DF2\u5220\u9664"),Be===-1&&_e.item_type==="Shixun"&&!!_e.challenges_count&&e.a.createElement("span",{className:"exper\u02C6iment-number ml5 c-grey-999"},"\u5B9E\u9A8C\u6570 ",_e.challenges_count)))},Wn=function(_e){var Pe,fe=[];if(_e.items&&((Pe=_e.items)===null||Pe===void 0?void 0:Pe.length)){var je;(je=_e.items)===null||je===void 0||je.forEach(function(pt){var ut;fe.push(pt),pt.children&&((ut=pt.children)===null||ut===void 0?void 0:ut.length)&&(fe=fe.concat(pt.children))})}var gt=!!fe.find(function(pt){return Object(Mi.isEqual)(pt.learning_status,["can","try"])});return gt?e.a.createElement("aside",{className:Yn.a.learn},"\u514D\u8D39\u8BD5\u5B66"):null},Or=function(_e,Pe){var fe,je,gt,pt,ut,Hn,Kt,ea,En,ze;return Gn!=="All"&&!((fe=_e.stage_tag)===null||fe===void 0?void 0:fe.includes(Gn))?null:e.a.createElement("section",{key:Pe,className:"bg-white mt20 pt30 pb20"},e.a.createElement("aside",{className:"pl20 pr20"},e.a.createElement(X.a,{gutter:[5,20],align:"middle"},e.a.createElement(J.a,{flex:1,className:"tl font18 bold c-grey-333"},_e.stage_name||"\u7B2C".concat(Ce==null?void 0:Ce.length,"\u90E8\u5206"),Wn(_e)),Gn==="All"&&e.a.createElement(J.a,null,(((je=Oe.userInfo)===null||je===void 0?void 0:je.admin)||((gt=Oe.userInfo)===null||gt===void 0?void 0:gt.business)||((pt=Ne.detail)===null||pt===void 0?void 0:pt.allow_statistics))&&Be===Pe&&!Ot&&e.a.createElement(E.a,{title:"\u5220\u9664"},e.a.createElement("span",{onClick:function(){Ya(_e.stage_id)},className:"iconfont icon-shanchu c-grey-c"})),((ut=Ne.detail)===null||ut===void 0?void 0:ut.allow_add_member)&&Na&&Be!==Pe&&e.a.createElement("div",null,Pe>0&&e.a.createElement(E.a,{title:"\u5411\u4E0A\u79FB\u52A8"},e.a.createElement("span",{onClick:function(){return Ja(_e.stage_id)},className:"iconfont icon-xiangshangyi c-light-green font18 current"})),Pe<Ce.length-1&&e.a.createElement(E.a,{title:"\u5411\u4E0B\u79FB\u52A8"},e.a.createElement("span",{onClick:function(){return Za(_e.stage_id)},className:"iconfont icon-xiangxiayi c-light-green font18 current ml5"})),e.a.createElement(E.a,{title:"\u7F16\u8F91"},e.a.createElement("span",{onClick:function(){return Aa(Pe,_e)},className:"iconfont icon-bianjidaibeijing c-light-green font20 current ml5"}))))),!!_e.stage_description&&e.a.createElement(X.a,{gutter:[5,20]},e.a.createElement(J.a,{span:24},e.a.createElement("div",{dangerouslySetInnerHTML:{__html:(Hn=_e.stage_description)===null||Hn===void 0?void 0:Hn.replace(/[\r|\n]/gi,"<br/>")}})))),Be===Pe&&e.a.createElement("div",{className:"pl20 pr20"},e.a.createElement("aside",null,e.a.createElement(ft.a.Item,{name:"name",label:"\u540D\u79F0",rules:[{required:!0,message:"\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"},{whitespace:!0,message:"\u4E0D\u80FD\u8F93\u5165\u7A7A\u683C"}]},e.a.createElement(xe.a,{size:"large",maxLength:60,placeholder:"\u8BF7\u8F93\u5165\u7B2C".concat(Pe+1,"\u9636\u6BB5\u540D\u79F0,\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26"),onBlur:Da})),e.a.createElement(ft.a.Item,{name:"description",label:"\u63CF\u8FF0",className:"ml10"},e.a.createElement(xe.a.TextArea,{rows:5,maxLength:300,placeholder:"\u8BF7\u8F93\u5165\u7B2C".concat(Pe+1,"\u9636\u6BB5\u63CF\u8FF0"),onBlur:Da}))),e.a.createElement("aside",{className:"mt20 mb20"},e.a.createElement(C.a,{size:"large",ghost:!0,type:"primary",onClick:function(){if(!Ce[Be].stage_id)return N.b.info("\u8BF7\u5148\u8F93\u5165\u7AE0\u8282\u540D\u79F0\uFF01");if(!Object(ne.e)(ct))return;Jn(!1),mn(!0),Me.resetFields()}},e.a.createElement("span",{className:"iconfont icon-tianjiafangda mr5 "}),"\u65B0\u5EFA\u5C0F\u8282"),e.a.createElement(C.a,{size:"large",className:"ml20",ghost:!0,type:"primary",onClick:function(){if(!Ce[Be].stage_id)return N.b.info("\u8BF7\u5148\u8F93\u5165\u7AE0\u8282\u540D\u79F0\uFF01");if(!Object(ne.e)(ct))return;if(!Object(ne.c)())return;Jn(!1),Pt(!0),Sn.setFieldsValue({name:"",is_jupyter:!1})}},e.a.createElement("span",{className:"iconfont icon-tianjiafangda mr5"}),"\u65B0\u5EFA\u5B9E\u8DF5\u9879\u76EE"),e.a.createElement(C.a,{size:"large",className:"ml20",ghost:!0,type:"primary",onClick:function(){var na;if(!Ce[Be].stage_id)return N.b.info("\u8BF7\u5148\u8F93\u5165\u7AE0\u8282\u540D\u79F0\uFF01");La(document.documentElement.scrollTop),ct({type:"classroomList/setActionTabs",payload:{key:"\u9009\u7528\u5B9E\u8DF5\u9879\u76EE",id:Ce[Be].stage_id,subject_id:Ae.pathId}}),Un(_e==null||((na=_e.shixuns_list)===null||na===void 0)?void 0:na.map(function(dt){return dt.id}))}},e.a.createElement("span",{className:"iconfont icon-tianjiafangda mr5"}),"\u9009\u7528\u5B9E\u8DF5\u9879\u76EE"),e.a.createElement(C.a,{size:"large",className:" ml20",ghost:!0,type:"primary",onClick:function(){if(!Ce[Be].stage_id)return N.b.info("\u8BF7\u5148\u8F93\u5165\u7AE0\u8282\u540D\u79F0\uFF01");Bn(!0)}},e.a.createElement("span",{className:"iconfont icon-tianjiafangda mr5 "}),"\u65B0\u5EFA\u89C6\u9891\u9879\u76EE"),e.a.createElement(C.a,{size:"large",className:"ml20",ghost:!0,type:"primary",onClick:function(){if(!Ce[Be].stage_id)return N.b.info("\u8BF7\u5148\u8F93\u5165\u7AE0\u8282\u540D\u79F0\uFF01");if(!Object(ne.e)(ct))return;Jn(!1),Ct(!0),vt.resetFields()}},e.a.createElement("span",{className:"iconfont icon-tianjiafangda mr5 "}),"\u65B0\u5EFA\u6559\u5B66\u8BFE\u4EF6"),e.a.createElement("br",null)),e.a.createElement("aside",{className:"c-light-black mt10 pb20",id:"Edit_".concat(Pe)},"\u6240\u6709\u9879\u76EE\u5747\u53EF\u4EE5\u901A\u8FC7\u62D6\u52A8\u6392\u5E8F\u6216\u5347\u964D\u7EA7\u3002",e.a.createElement("br",null),"\u65B0\u5EFA\u9879\u76EE\u540D\u79F0\u6307\u672C\u9879\u76EE\u4E0B\u6CA1\u6709\u5B9E\u8D28\u5185\u5BB9\uFF0C\u4EC5\u5C55\u793A\u540D\u79F0\uFF0C\u4E0D\u53EF\u70B9\u51FB\u3002")),e.a.createElement("aside",{className:Yn.a.shixuns},e.a.createElement("div",{className:""},!!(_e==null||((Kt=_e.items)===null||Kt===void 0)?void 0:Kt.length)&&e.a.createElement(ki.a,{visibleType:Gn,data:Object(A.a)(_e.items),stage_id:_e.stage_id,disabled:!(Be===Pe),deleteStages:Va,updateSort:za,index:Pe,cust_seq:!!(Ne==null||((ea=Ne.detail)===null||ea===void 0)?void 0:ea.cust_seq),showVideoPlay:((En=Oe.userInfo)===null||En===void 0?void 0:En.admin)||((ze=Oe.userInfo)===null||ze===void 0?void 0:ze.business)||Sr()}))),Be===Pe&&e.a.createElement("aside",{className:Yn.a.buttons},e.a.createElement(C.a,{onClick:ba,type:"primary",size:"large",ghost:!0},"\u53D6\u6D88"),e.a.createElement(C.a,{onClick:Object(v.a)(t.a.mark(function Qn(){return t.a.wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:ba();case 1:case"end":return dt.stop()}},Qn)})),size:"large",type:"primary"},"\u4FDD\u5B58")))};return e.a.createElement("section",null,e.a.createElement(Gr.a,{active:!0,paragraph:{rows:250},avatar:!0,className:"".concat(we["pathsDetail/getStageData"]||we["pathsDetail/getPathsDetail"]?"mt20":""),loading:we["pathsDetail/getStageData"]||we["pathsDetail/getPathsDetail"]},e.a.createElement("aside",{className:Yn.a.actionTabs},Ea.map(function(Ke,_e){if((Ce==null?void 0:Ce.some(function(Pe){var fe;return(fe=Pe.stage_tag)===null||fe===void 0?void 0:fe.includes(Ke.type)}))||Ke.type=="All"||Ke.type=="Discusses"&&Ke.number>0)return e.a.createElement("div",{key:_e,className:Ke.type===Gn?Yn.a.tabActive:Yn.a.tab,onClick:function(){Be===-1?(Ta(Ke.type),st(-1)):N.b.warn("\u8BF7\u5148\u53D6\u6D88\u7F16\u8F91\u72B6\u6001")}},e.a.createElement("span",{className:Yn.a.s1},Ke.name),e.a.createElement("span",{className:Yn.a.s2},Ke.number))})),Gn!=="Discusses"&&e.a.createElement(e.a.Fragment,null,e.a.createElement(ft.a,{form:Tt,onFinish:la},Ce==null?void 0:Ce.map(function(Ke,_e){return e.a.createElement("div",{key:_e},Or(Ke,_e))})),((Ge=Ne.detail)===null||Ge===void 0?void 0:Ge.allow_statistics)&&Gn==="All"&&!Ot&&e.a.createElement("div",{className:Yn.a.addStage,onClick:Wa},e.a.createElement("span",{className:Yn.a.color4CA},"+\u70B9\u51FB\u65B0\u5EFA\u9636\u6BB5"),"\uFF08\u6DFB\u52A0\u4E00\u4E2A\u6216\u591A\u4E2A\u5B9E\u8BAD/\u89C6\u9891\u9879\u76EE\uFF0C\u7EC4\u6210\u4E00\u4E2A\u9636\u6BB5\uFF09"))),Gn==="Discusses"&&e.a.createElement("aside",{className:"mt20"},e.a.createElement(ji,{activeIndex:3,isDelete:(ye=Ne.detail)===null||ye===void 0?void 0:ye.allow_add_member,shixunIdentifier:11,identity:(xt=Oe.userInfo)===null||xt===void 0?void 0:xt.role,getTypeNumber:pa,user:Oe.userInfo,isShixunDetail:!0})),e.a.createElement(L.a,{centered:!0,title:"\u65B0\u5EFA\u5B9E\u8DF5\u9879\u76EE",visible:Le,confirmLoading:fa,onOk:Object(v.a)(t.a.mark(function Ke(){var _e;return t.a.wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:return Jn(!0),fe.next=3,Sn.validateFields();case 3:return fe.next=5,Object(te.L)(Object(w.a)({id:Ce[Be].stage_id,subject_id:Ae.pathId},rt));case 5:_e=fe.sent,wa(),_e.id&&(Sn.resetFields(),N.b.success("\u6DFB\u52A0\u6210\u529F"),xa([_e]));case 8:case"end":return fe.stop()}},Ke)})),onCancel:wa},e.a.createElement(ft.a,{form:Sn,onValuesChange:function(_e){gn(Object(w.a)(Object(w.a)({},rt),_e))}},e.a.createElement(ft.a.Item,{label:"\u7C7B\u578B",name:"is_jupyter",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7C7B\u578B"}]},e.a.createElement(M.a.Group,null,e.a.createElement(M.a,{defaultChecked:!0,value:!1},"\u5168\u6808\u5B9E\u8DF5\u9879\u76EE"),e.a.createElement(M.a,{value:!0},"Jupyter Notebook\u5B9E\u8DF5\u9879\u76EE"))),e.a.createElement(ft.a.Item,{label:"\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u540D\u79F0"}]},e.a.createElement(xe.a,{suffix:e.a.createElement("span",null,rt.name.length,"/60")})))),e.a.createElement(L.a,{centered:!0,title:"\u65B0\u5EFA\u6559\u5B66\u8BFE\u4EF6",visible:Jt,confirmLoading:fa,onOk:Object(v.a)(t.a.mark(function Ke(){var _e,Pe;return t.a.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return Jn(!0),je.next=3,vt.validateFields();case 3:return je.next=5,vt.getFieldsValue();case 5:return _e=je.sent,je.next=8,Object(te.c)({id:Ce[Be].stage_id,subject_id:Ae.pathId,attachment_ids:_e.files.map(function(gt){return gt.response.id})});case 8:Pe=je.sent,Pe.status===0&&(N.b.success("\u6DFB\u52A0\u6210\u529F"),Ct(!1),Qa(Object(A.a)(Pe.items))),Jn(!1);case 11:case"end":return je.stop()}},Ke)})),onCancel:function(){return Ct(!1)}},e.a.createElement(ft.a,{form:vt},e.a.createElement(ft.a.Item,{label:"\u8BFE\u4EF6\u5185\u5BB9",name:"files",rules:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u8BFE\u4EF6\u5185\u5BB9"}]},e.a.createElement(pi.b,{maxSize:100,accept:"application/pdf",number:10})),e.a.createElement("div",null,e.a.createElement("span",{className:"c-red"},"\u6CE8\u610F\uFF1A"),e.a.createElement("br",null),"1\u3001\u4E0A\u4F20\u8BFE\u4EF6\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F",e.a.createElement(xn.Link,{to:"/users/mmipb3zhj/videos/protocol",target:"_blank"},"\u4E0A\u4F20\u5185\u5BB9\u534F\u8BAE"),"\uFF0C\u4E0D\u5F97\u4E0A\u4F20\u672A\u7ECF\u4ED6\u4EBA\u6388\u6743\u7684\u4F5C\u54C1\uFF1B",e.a.createElement("br",null),"2\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u5355\u4E2A\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC7100M\uFF1B",e.a.createElement("br",null),"3\u3001\u5F53\u524D\u4EC5\u9650\u652F\u6301pdf\u6587\u4EF6\uFF1B",e.a.createElement("br",null),"4\u3001\u6587\u4EF6\u540D\u5C06\u88AB\u81EA\u52A8\u8BFB\u53D6\u4E3A\u7CFB\u7EDF\u5185\u8BE5\u8BFE\u4EF6\u7684\u540D\u79F0\uFF0C\u4E0A\u4F20\u524D\u8BF7\u6CE8\u610F\u8FD9\u4E00\u70B9\uFF1B",e.a.createElement("br",null),"5\u3001\u4E00\u6B21\u6700\u591A\u4E0A\u4F2010\u4E2A\u6587\u4EF6\u3002"))),e.a.createElement(L.a,{centered:!0,title:"\u65B0\u5EFA\u5C0F\u8282\u540D\u79F0",visible:ln,confirmLoading:fa,onOk:Object(v.a)(t.a.mark(function Ke(){var _e,Pe;return t.a.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return Jn(!0),je.next=3,Me.validateFields();case 3:return je.next=5,Me.getFieldsValue();case 5:return _e=je.sent,je.next=8,Object(te.a)({id:Ce[Be].stage_id,subject_id:Ae.pathId,name:_e.name});case 8:Pe=je.sent,Pe.status===0&&(N.b.success("\u6DFB\u52A0\u6210\u529F"),mn(!1),Xa(Object(w.a)({},Pe))),Jn(!1);case 11:case"end":return je.stop()}},Ke)})),onCancel:function(){return mn(!1)}},e.a.createElement(ft.a,{form:Me},e.a.createElement(ft.a.Item,{label:"",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC740\u5B57\u7684\u5C0F\u8282\u540D\u79F0"}]},e.a.createElement(xe.a,{maxLength:40,placeholder:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC740\u5B57\u7684\u5C0F\u8282\u540D\u79F0"})))),e.a.createElement(di,{shixunIds:Tn,cb:xa}),e.a.createElement(fi.a,{visible:Kn,onCancel:function(){return Bn(!1)},onOk:Ka}))},Bi=Object(i.a)(function(de){var le=de.pathsDetail,Ee=de.user,Re=de.loading,Ge=de.globalSetting;return{pathsDetail:le,user:Ee,globalSetting:Ge,loading:Re.effects}})(Ni),Fi=U("uRQ9"),yi=U.n(Fi),Wi=function(le){var Ee=le.user,Re=Object(_.a)(le,["user"]),Ge=Object(o.useState)([]),ye=Object(l.a)(Ge,2),xt=ye[0],Ne=ye[1],Oe=Object(o.useState)(!0),Ze=Object(l.a)(Oe,2),we=Ze[0],ct=Ze[1],mt=Object(o.useState)(!1),Ae=Object(l.a)(mt,2),Ut=Ae[0],$e=Ae[1],yt=Object(o.useState)(!1),Ce=Object(l.a)(yt,2),ke=Ce[0],_t=Ce[1],nn=Object(o.useState)(0),Be=Object(l.a)(nn,2),st=Be[0],Gt=Be[1],Ft=Object(o.useState)({}),Le=Object(l.a)(Ft,2),Pt=Le[0],bt=Le[1],Et=Object(n.m)(),Jt=Object(o.useState)({page:1,limit:10}),Ct=Object(l.a)(Jt,2),Rt=Ct[0],hn=Ct[1],ln=[{title:"\u59D3\u540D",dataIndex:"user_name",key:"user_name",align:"left"},{title:"\u7533\u8BF7\u65F6\u95F4",dataIndex:"created_at",key:"created_at",align:"left"},{title:"\u7533\u8BF7\u72B6\u6001",dataIndex:"state",key:"state",align:"left",render:function(Tt,We){return e.a.createElement(e.a.Fragment,null,(We==null?void 0:We.state)==="drafted"&&e.a.createElement("span",null,"\u7533\u8BF7\u4E2D"),(We==null?void 0:We.state)==="rejected"&&e.a.createElement("span",{style:{color:"#E53333"}},"\u672A\u901A\u8FC7"),(We==null?void 0:We.state)==="passed"&&e.a.createElement("span",{style:{color:"#2FA34F"}},"\u901A\u8FC7"))}},{title:"\u5B66\u4E60\u8FDB\u5EA6",dataIndex:"process",key:"process",align:"left",render:function(Tt){return"".concat(Tt,"%")}},{title:"\u5BA1\u6279\u64CD\u4F5C",dataIndex:"action",key:"action",align:"left",render:function(Tt,We){return e.a.createElement("div",{className:yi.a.actionsBtns},(We==null?void 0:We.state)==="drafted"&&e.a.createElement("span",{onClick:function(){return mn(We)}},"\u540C\u610F"),(We==null?void 0:We.state)==="drafted"&&e.a.createElement("span",{onClick:function(){return _n(We)}},"\u62D2\u7EDD"),(We==null?void 0:We.state)==="rejected"&&e.a.createElement("span",{onClick:function(){return vn(We)}},"\u62D2\u7EDD\u539F\u56E0"),(We==null?void 0:We.state)==="passed"&&e.a.createElement("span",{onClick:function(){return rt(We)}},"\u67E5\u770B\u8BC1\u4E66"))}}].filter(function(sn){return ke?!0:sn.title!=="\u5B66\u4E60\u8FDB\u5EA6"&&sn.title!=="\u5BA1\u6279\u64CD\u4F5C"});Object(o.useEffect)(function(){gn(Rt)},[Rt]);var mn=function(){var sn=Object(v.a)(t.a.mark(function Tt(We){var Lt;return t.a.wrap(function(lt){for(;;)switch(lt.prev=lt.next){case 0:return lt.next=2,Object(Nn.a)("/api/paths/".concat(Et==null?void 0:Et.pathId,"/process_certificate.json"),{method:"post",body:{certificate_id:We==null?void 0:We.id,op:"pass"}});case 2:Lt=lt.sent,(Lt==null?void 0:Lt.status)===0&&gn(Rt);case 4:case"end":return lt.stop()}},Tt)}));return function(We){return sn.apply(this,arguments)}}(),_n=function(Tt){var We="";L.a.confirm({title:"\u8BC1\u4E66\u7533\u8BF7\u62D2\u7EDD",icon:null,className:"custom-modal-divider",centered:!0,width:400,content:e.a.createElement("div",null,e.a.createElement("p",null,"\u62D2\u7EDD\u8BC1\u4E66\u53D1\u653E\u9700\u586B\u5199\u62D2\u7EDD\u539F\u56E0\u3002"),e.a.createElement("aside",{className:"flex-container"},e.a.createElement("sup",{className:"c-red-ee4"},"*"),e.a.createElement("span",null,"\u62D2\u7EDD\u539F\u56E0:"),e.a.createElement(xe.a,{maxLength:30,style:{width:284,marginLeft:10},onChange:function(Sn){return We=Sn.target.value}}))),okText:"\u786E\u5B9A\u62D2\u7EDD",cancelText:"\u53D6\u6D88",onOk:function(){var Lt=Object(v.a)(t.a.mark(function lt(){var St;return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:if(We){qe.next=3;break}return N.b.warn("\u62D2\u7EDD\u7406\u7531\u4E0D\u80FD\u4E3A\u7A7A"),qe.abrupt("return",Promise.reject());case 3:return qe.next=5,Object(Nn.a)("/api/paths/".concat(Et==null?void 0:Et.pathId,"/process_certificate.json"),{method:"post",body:{certificate_id:Tt==null?void 0:Tt.id,op:"reject",content:We}});case 5:St=qe.sent,(St==null?void 0:St.status)===0&&gn(Rt);case 7:case"end":return qe.stop()}},lt)}));function Sn(){return Lt.apply(this,arguments)}return Sn}()})},vn=function(Tt){L.a.info({title:"\u62D2\u7EDD\u539F\u56E0",icon:null,className:"custom-modal-divider",centered:!0,width:400,content:e.a.createElement("div",null,Tt==null?void 0:Tt.content),okText:"\u786E\u5B9A"})},rt=function(Tt){bt((Tt==null?void 0:Tt.info)||{}),$e(!0)},gn=function(){var sn=Object(v.a)(t.a.mark(function Tt(We){var Lt;return t.a.wrap(function(lt){for(;;)switch(lt.prev=lt.next){case 0:return ct(!0),lt.next=3,Object(Nn.a)("/api/paths/".concat(Et==null?void 0:Et.pathId,"/request_certificates.json"),{method:"get",params:We});case 3:Lt=lt.sent,(Lt==null?void 0:Lt.data)&&(Ne(Lt==null?void 0:Lt.data),Gt((Lt==null?void 0:Lt.total_count)||0),_t(Lt==null?void 0:Lt.is_manage)),ct(!1);case 6:case"end":return lt.stop()}},Tt)}));return function(We){return sn.apply(this,arguments)}}(),Cn=function(Tt,We){var Lt=Object(w.a)(Object(w.a)({},Rt),{},{page:Tt,limit:We});hn(Lt),gn(Lt)};return e.a.createElement("div",{className:yi.a.certificate},e.a.createElement(Qe.a,{dataSource:xt,rowKey:function(Tt){return Tt.id},columns:ln,loading:we,pagination:{pageSize:Rt.limit,total:st,current:Rt.page,onChange:Cn,showQuickJumper:!0,hideOnSinglePage:!0,position:["bottomCenter"]}}),e.a.createElement(ht,{visible:Ut,onCancel:function(){$e(!1),bt({})},data:Pt}))},zi=Object(i.a)(function(de){var le=de.user,Ee=de.pathsDetail;return{user:le,pathsDetail:Ee}})(Wi);ue.a.locale("ZH-cn");var $r=u.a.TabPane,Xi=function(le){var Ee=le.data,Re=Object(o.useState)("1"),Ge=Object(l.a)(Re,2),ye=Ge[0],xt=Ge[1],Ne=Object(o.useState)(1),Oe=Object(l.a)(Ne,2),Ze=Oe[0],we=Oe[1],ct=Object(o.useState)(),mt=Object(l.a)(ct,2),Ae=mt[0],Ut=mt[1],$e=Object(o.useState)(!0),yt=Object(l.a)($e,2),Ce=yt[0],ke=yt[1],_t=Object(n.m)();function nn(){return Be.apply(this,arguments)}function Be(){return Be=Object(v.a)(t.a.mark(function Gt(){var Ft,Le;return t.a.wrap(function(bt){for(;;)switch(bt.prev=bt.next){case 0:return ke(!0),ye==="1"?Ft="/api/paths/".concat(_t.pathId,"/study_ranking_shixuns_passed.json"):ye==="2"?Ft="/api/paths/".concat(_t.pathId,"/study_ranking_videos.json"):ye==="3"?Ft="/api/paths/".concat(_t.pathId,"/study_ranking_pdf_attachments.json"):ye==="4"&&(Ft="/api/paths/".concat(_t.pathId,"/study_ranking_discusses.json")),bt.next=4,Object(Nn.a)(Ft,{method:"get",params:{page:Ze}});case 4:Le=bt.sent,ke(!1),Ut(Le);case 7:case"end":return bt.stop()}},Gt)})),Be.apply(this,arguments)}Object(o.useEffect)(function(){nn()},[Ze,ye]);var st=function(){var Ft,Le,Pt,bt,Et,Jt,Ct,Rt,hn,ln,mn,_n,vn;return e.a.createElement(e.a.Fragment,null,e.a.createElement(it.a,{spinning:Ce},e.a.createElement("div",{style:{height:"42px",background:"#fafafa",display:"flex",padding:"0px 5px",alignItems:"center"}},e.a.createElement("span",{style:{flex:"1"}},"\u6392\u540D"),e.a.createElement("span",{style:{flex:"1"}},"\u59D3\u540D"),ye==="1"&&e.a.createElement("span",{style:{flex:"3"}},"\u901A\u8FC7\u5173\u5361\u6570"),ye==="2"&&e.a.createElement("span",{style:{flex:"3"}},"\u7D2F\u8BA1\u5B66\u4E60\u65F6\u957F"),ye==="3"&&e.a.createElement("span",{style:{flex:"3"}},"\u4E0B\u8F7D\u8D44\u6E90\u6B21\u6570"),ye==="4"&&e.a.createElement("span",{style:{flex:"3"}},"\u53D1\u5E16\u6570")),(Ae==null?void 0:Ae.user_show)&&e.a.createElement("div",{style:{height:"42px",display:"flex",padding:"0px 5px",alignItems:"center"}},e.a.createElement("span",{style:{flex:"1"}},(Ae==null||((Ft=Ae.data_user)===null||Ft===void 0)?void 0:Ft.rank)===0&&(Ae==null||((Le=Ae.data_user)===null||Le===void 0)?void 0:Le.num)===0?"--":(Ae==null||((Pt=Ae.data_user)===null||Pt===void 0)?void 0:Pt.rank)<=100&&(Ae==null||((bt=Ae.data_user)===null||bt===void 0)?void 0:bt.rank)!=0?Ae==null||((Et=Ae.data_user)===null||Et===void 0)?void 0:Et.rank:"\u672A\u4E0A\u699C"),e.a.createElement("span",{style:{flex:"1"}},Ae==null||((Jt=Ae.data_user)===null||Jt===void 0)?void 0:Jt.user_real_name),ye==="1"&&e.a.createElement("span",{style:{flex:"3"}},(Ae==null||((Ct=Ae.data_user)===null||Ct===void 0)?void 0:Ct.num)||"--"),ye==="2"&&e.a.createElement("span",{style:{flex:"3"}},(Ae==null||((Rt=Ae.data_user)===null||Rt===void 0)?void 0:Rt.num)?Object(ie.O)(Ae==null||((hn=Ae.data_user)===null||hn===void 0)?void 0:hn.num):"--"),ye==="3"&&e.a.createElement("span",{style:{flex:"3"}},(Ae==null||((ln=Ae.data_user)===null||ln===void 0)?void 0:ln.num)||"--"),ye==="4"&&e.a.createElement("span",{style:{flex:"3"}},(Ae==null||((mn=Ae.data_user)===null||mn===void 0)?void 0:mn.num)||"--")),(Ae==null?void 0:Ae.user_show)&&e.a.createElement(pr.a,null),(Ae==null||((_n=Ae.data)===null||_n===void 0)?void 0:_n.length)>0?Ae==null||((vn=Ae.data)===null||vn===void 0)?void 0:vn.map(function(rt,gn){return e.a.createElement("div",{style:{height:"42px",display:"flex",padding:"0px 5px",alignItems:"center"}},(rt==null?void 0:rt.rank)===1&&e.a.createElement("span",{style:{flex:"1",color:"#E02020"}},rt==null?void 0:rt.rank),(rt==null?void 0:rt.rank)===2&&e.a.createElement("span",{style:{flex:"1",color:"#FA6400"}},rt==null?void 0:rt.rank),(rt==null?void 0:rt.rank)===3&&e.a.createElement("span",{style:{flex:"1",color:"#F7B500"}},rt==null?void 0:rt.rank),(rt==null?void 0:rt.rank)>3&&e.a.createElement("span",{style:{flex:"1"}},rt==null?void 0:rt.rank),e.a.createElement("span",{style:{flex:"1"}},rt==null?void 0:rt.user_real_name),ye==="1"&&e.a.createElement("span",{style:{flex:"3"}},rt==null?void 0:rt.num),ye==="2"&&e.a.createElement("span",{style:{flex:"3"}},Object(ie.O)(rt==null?void 0:rt.num)),ye==="3"&&e.a.createElement("span",{style:{flex:"3"}},rt==null?void 0:rt.num),ye==="4"&&e.a.createElement("span",{style:{flex:"3"}},rt==null?void 0:rt.num))}):e.a.createElement(Bt.a,null),(Ae==null?void 0:Ae.count)>10&&e.a.createElement(Ra.a,{current:Ze,pageSize:10,showSizeChanger:!1,total:Ae==null?void 0:Ae.count,style:{textAlign:"center",margin:"20px 0px"},onChange:function(gn){we(gn)}})))};return e.a.createElement("div",null,e.a.createElement(u.a,{activeKey:ye,style:{background:"#fff",padding:"0px 20px"},onChange:function(Ft){xt(Ft),we(1)}},e.a.createElement($r,{tab:"\u901A\u5173\u699C",style:{background:"#fff"},key:"1"},e.a.createElement(st,null)),e.a.createElement($r,{tab:"\u89C6\u9891\u5B66\u4E60\u699C",key:"2"},e.a.createElement(st,null)),e.a.createElement($r,{tab:"\u4E0B\u8F7D\u8D44\u6E90\u699C",key:"3"},e.a.createElement(st,null)),e.a.createElement($r,{tab:"\u4E92\u52A8\u8BA8\u8BBA\u699C",key:"4"},e.a.createElement(st,null))))},Qi=U("XzQ7"),Dr=U.n(Qi),Ki=U("ho57"),Gi=U.n(Ki),Hi=u.a.TabPane;function bi(de){var le=function(xt,Ne){if(xt.localName===Ne)return xt;for(var Oe=0,Ze=xt;Ze=Ze.parentNode;Oe++){if(Ze.localName===Ne)return Ze;if(Ze==document.documentElement)return!1}},Ee=de.target,Re=le(Ee,"a");if(console.log([Re],Re==null?void 0:Re.href,44),Re==null?void 0:Re.href)return;if(Ee.tagName.toUpperCase()==="IMG"){var Ge=Ee.src||Ee.getAttribute("src");Ge&&Ge.indexOf("/images/avatars/User")===-1&&(de.stopPropagation(),de.preventDefault(),ma.a.publish("preview-image",Ge))}}var Vi=function(le){var Ee,Re,Ge=le.pathsDetail,ye=le.globalSetting,xt=le.loading,Ne=le.dispatch,Oe=Object(_.a)(le,["pathsDetail","globalSetting","loading","dispatch"]),Ze=Object(n.m)(),we=Oe.location.query,ct=Object(o.useRef)(),mt=Object(o.useState)("stage"),Ae=Object(l.a)(mt,2),Ut=Ae[0],$e=Ae[1],yt=[{name:"\u8BFE\u7A0B\u7AE0\u8282",key:"stage"},{name:"\u6392\u884C\u699C",key:"ranking"},{name:"\u8BC1\u4E66\u7533\u8BF7",key:"certificate"}].filter(function(ke){var _t;return((_t=Ge.detail)===null||_t===void 0?void 0:_t.excellent)?!0:ke.key!=="certificate"});Object(o.useEffect)(function(){if(ct.current)return ct.current.addEventListener("mousedown",bi),function(){ct.current.removeEventListener("mousedown",bi)}},[ct.current]),Object(o.useEffect)(function(){if(!Ze.pathId)return;Ce()},[Ze.pathId]),Object(o.useEffect)(function(){var ke;document.title=((ke=Ge.detail)===null||ke===void 0?void 0:ke.name)||"EduCoder"},[Ge]);var Ce=function(){var ke=Object(v.a)(t.a.mark(function _t(){var nn;return t.a.wrap(function(st){for(;;)switch(st.prev=st.next){case 0:return st.next=2,Ne({type:"pathsDetail/getPathsDetail",payload:Object(w.a)({id:Ze.pathId},we)});case 2:nn=st.sent,Ne({type:"pathsDetail/getRightData",payload:{id:Ze.pathId}}),Ne({type:"pathsDetail/getStageData",payload:{subject_id:Ze.pathId}}),(nn==null?void 0:nn.id)&&we.token&&(location.href=location.pathname);case 6:case"end":return st.stop()}},_t)}));return function(){return ke.apply(this,arguments)}}();return e.a.createElement(it.a,{spinning:!1},e.a.createElement("section",{className:Dr.a.bg},e.a.createElement(R,null),e.a.createElement(Ci.a,null),e.a.createElement("section",{style:{marginTop:((Ee=Ge.detail)===null||Ee===void 0?void 0:Ee.excellent)&&"89px"},className:"edu-container mb80 ".concat(Dr.a.wrap)},e.a.createElement("aside",{className:Dr.a.content},e.a.createElement("div",{className:Dr.a.intro},e.a.createElement("div",{className:Dr.a.introTitle},e.a.createElement("span",{className:"font16",style:{display:"flex",alignItems:"center"}},e.a.createElement("img",{src:Gi.a,style:{marginRight:"10px"}}),"\u8BFE\u7A0B\u4ECB\u7ECD")),e.a.createElement("div",{ref:ct},e.a.createElement(y.a,{value:(Re=Ge.detail)===null||Re===void 0?void 0:Re.description}))),e.a.createElement(u.a,{className:Dr.a.wrapTabs,activeKey:Ut,onChange:function(_t){return $e(_t)},tabBarGutter:50,tabBarStyle:{height:76}},yt.map(function(ke){return e.a.createElement(Hi,{tab:ke.name,key:ke.key})})),Ut==="stage"&&e.a.createElement(Bi,null),Ut==="ranking"&&e.a.createElement(Xi,null),Ut==="certificate"&&e.a.createElement(zi,null)),e.a.createElement(Qr,null))))},Zi=pe.default=Object(i.a)(function(de){var le=de.pathsDetail,Ee=de.loading,Re=de.globalSetting;return{pathsDetail:le,globalSetting:Re,loading:Ee}})(Vi)},Aky1:function(Ue,pe,U){"use strict";U.d(pe,"a",function(){return _});var Xe=U("ErOA"),it=U("qGJc"),ve=U.n(it),t="",w;function v(r){l(r)}function l(r){w=new ve.a.Vod({timeout:6e4,partSize:1048576,parallel:5,retryCount:3,retryDuration:2,region:"ap-southeast-1",userId:1829848226361863,enableUploadProgress:!1,addFileSuccess:function(o){console.log("addFileSuccess: "+o.file.name),r.addFileSuccess&&r.addFileSuccess(o),w.startUpload()},onUploadstarted:function(o){var e=o.file.name;if(o.videoId){var s="/api/users/".concat(t,"/video_auths.json");Object(Xe.a)(s,{method:"put",body:{video_id:o.videoId,title:e,file_name:e}}).then(function(d){if(d.status==-1){r.onUploadError&&r.onUploadError(o);return}var m=d.data,f=m.UploadAuth,A=m.UploadAddress,b=m.VideoId;w.setUploadAuthAndAddress(o,f,A)}).catch(function(d){w.deleteFile(w._curIndex),w.nextUpload(),console.log(d)})}else{var n="/api/users/".concat(t,"/video_auths.json"),i="";Object(Xe.a)(n,{method:"Post",body:{title:i+e,file_name:i+e}}).then(function(d){if(d){var m=d.data,f=m.UploadAuth,A=m.UploadAddress,b=m.VideoId;w.setUploadAuthAndAddress(o,f,A,b)}}).catch(function(d){w.deleteFile(w._curIndex),w.nextUpload(),console.log(d)}),console.log("\u6587\u4EF6\u5F00\u59CB\u4E0A\u4F20...")}},onUploadSucceed:function(o){r.onUploadSucceed&&r.onUploadSucceed(o),console.log("\u6587\u4EF6\u4E0A\u4F20\u6210\u529F!")},onUploadFailed:function(o,e,n){r.onUploadFailed&&r.onUploadFailed(o),console.log("\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25!")},onUploadCanceled:function(o,e,n){console.log("\u6587\u4EF6\u4E0A\u4F20\u5DF2\u6682\u505C!")},onUploadProgress:function(o,e,n){r.onUploadProgress&&r.onUploadProgress(o,e,n);var i=Math.ceil(n*100);console.log("\u6587\u4EF6\u4E0A\u4F20\u4E2D...")},onUploadTokenExpired:function(o){console.log("\u6587\u4EF6\u4E0A\u4F20\u8D85\u65F6!");var e="/api/users/".concat(t,"/video_auths.json");Object(Xe.a)(e,{method:"put",body:{video_id:o.videoId}}).then(function(n){var i=n.data,s=i.UploadAuth;w.resumeUploadWithAuth(s)}).catch(function(n){console.log(n)})},onUploadEnd:function(o){r.onUploadEnd&&r.onUploadEnd(o),console.log("onUploadEnd: uploaded all the files")}}),r.gotUploader&&r.gotUploader(w)}function _(r,u){r&&(t=r),v(u)}},BdwD:function(Ue,pe,U){"use strict";var Xe=U("k1fw"),it=U("q1tI"),ve=U.n(it),t=function(v){var l=v.styles,_=l===void 0?{}:l,r=v.customText;return ve.a.createElement("section",{className:"tc animated fadeIn",style:Object(Xe.a)(Object(Xe.a)({},{color:"#999",margin:"200px auto"}),_)},ve.a.createElement("img",{src:U("FOrL")}),ve.a.createElement("p",{className:"mt20 font14"},r||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"))};pe.a=t},BjJ7:function(Ue,pe,U){"use strict";U.d(pe,"d",function(){return it}),U.d(pe,"c",function(){return ve}),U.d(pe,"e",function(){return t}),U.d(pe,"b",function(){return w}),U.d(pe,"a",function(){return l});var Xe=U("m3rI");function it(_){var r=!0;if(_.length>0){for(var u=0;u<_.length;u++)if(_[u].compile_success==0||!_[u].compile_success){r=!1;break}}else r=!1;return r}function ve(_){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",u=[],o=0;o<_.length;o++){var e=_[o],n=r?"".concat(r,"/").concat(e.name):"".concat(e.name);u.push({title:e.name,isLeaf:!(e.type==="tree"),key:n})}return u}function t(_,r,u){for(var o=0;o<_.length;o++){var e=_[o];if(e.key===r){e.children=u;break}e.children&&t(e.children,r,u)}return _}function w(_,r,u){var o;return function(){var e=this,n=arguments,i=function(){o=null,u||_.apply(e,n)},s=u&&!o;clearTimeout(o),o=setTimeout(i,r),s&&_.apply(e,n)}}var v=!0,l=Xe.a.API_SERVER},"C+DQ":function(Ue,pe,U){},"Ck+y":function(Ue,pe,U){var Xe=U("ProS"),it=U("+TT/");U("Nlvd"),U("wD15");var ve=U("eT+N");if(!ve.isSupported)throw new Error("Sorry your browser not support wordCloud");function t(w){for(var v=w.getContext("2d"),l=v.getImageData(0,0,w.width,w.height),_=v.createImageData(l),r=0,u=0,o=0;o<l.data.length;o+=4){var e=l.data[o+3];if(e>128){var n=l.data[o]+l.data[o+1]+l.data[o+2];r+=n,++u}}for(var i=r/u,o=0;o<l.data.length;o+=4){var n=l.data[o]+l.data[o+1]+l.data[o+2],e=l.data[o+3];e<128||n>i?(_.data[o]=0,_.data[o+1]=0,_.data[o+2]=0,_.data[o+3]=0):(_.data[o]=255,_.data[o+1]=255,_.data[o+2]=255,_.data[o+3]=255)}v.putImageData(_,0,0)}Xe.registerLayout(function(w,v){w.eachSeriesByType("wordCloud",function(l){var _=it.getLayoutRect(l.getBoxLayoutParams(),{width:v.getWidth(),height:v.getHeight()}),r=l.getData(),u=document.createElement("canvas");u.width=_.width,u.height=_.height;var o=u.getContext("2d"),e=l.get("maskImage");if(e)try{o.drawImage(e,0,0,u.width,u.height),t(u)}catch(A){console.error("Invalid mask image"),console.error(A.toString())}var n=l.get("sizeRange"),i=l.get("rotationRange"),s=r.getDataExtent("value"),d=Math.PI/180,m=l.get("gridSize");ve(u,{list:r.mapArray("value",function(A,b){var p=r.getItemModel(b);return[r.getName(b),p.get("textStyle.normal.textSize",!0)||Xe.number.linearMap(A,s,n),b]}).sort(function(A,b){return b[1]-A[1]}),fontFamily:l.get("textStyle.normal.fontFamily")||l.get("textStyle.emphasis.fontFamily")||w.get("textStyle.fontFamily"),fontWeight:l.get("textStyle.normal.fontWeight")||l.get("textStyle.emphasis.fontWeight")||w.get("textStyle.fontWeight"),gridSize:m,ellipticity:_.height/_.width,minRotation:i[0]*d,maxRotation:i[1]*d,clearCanvas:!e,rotateRatio:1,rotationStep:l.get("rotationStep")*d,drawOutOfBound:l.get("drawOutOfBound"),shuffle:!1,shape:l.get("shape")});function f(A){var b=A.detail.item;A.detail.drawn&&l.layoutInstance.ondraw&&(A.detail.drawn.gx+=_.x/m,A.detail.drawn.gy+=_.y/m,l.layoutInstance.ondraw(b[0],b[1],b[2],A.detail.drawn))}u.addEventListener("wordclouddrawn",f),l.layoutInstance&&l.layoutInstance.dispose(),l.layoutInstance={ondraw:null,dispose:function(){u.removeEventListener("wordclouddrawn",f),u.addEventListener("wordclouddrawn",function(b){b.preventDefault()})}}})}),Xe.registerPreprocessor(function(w){var v=(w||{}).series;!Xe.util.isArray(v)&&(v=v?[v]:[]);var l=["shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];Xe.util.each(v,function(r){if(r&&r.type==="wordCloud"){var u=r.textStyle||{};_(u.normal),_(u.emphasis)}});function _(r){r&&Xe.util.each(l,function(u){r.hasOwnProperty(u)&&(r["text"+Xe.format.capitalFirst(u)]=r[u])})}})},CnIC:function(Ue,pe){Ue.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAWCAYAAADTlvzyAAAAAXNSR0IArs4c6QAAA+JJREFUSA2dVltslEUUPmf+f7cXt+oKRKzVtCoICbARtVEJIA+mQiMaI00UXuCBRCT2AZPGaCJvWjUmQowPSBpN+kK8RKVNCIZLorIEVEqFmABVgxsuspi2wHZ3Z+f4za7/9r9sSe0k7Zz55pzzzZzL7M80zdHaJ7fnx+g9EeokptkklGGm/geX0PZDq1hP0w1MpzHm7pA5LLQfZKka6t/MaqZ1p7q4UGMvArkRBMC+IWnTpvC4EMeEzI+bD9NWoZpk1nzt1Yu0cXB44js27qMlY+pE0fAzqfjPtXxHCPcOFZdr0tuIlWOvfyXnnBWmTQjh1MNQtynSBVaynhFnROOFgZP6y84lbl/YSPmBPackAeBVOHc8vP8MuVgnvHWtGQdacO66ygT2jDw/eKLwUADDIkDYmNePIU/1fqWR626V3I8HZMT+eBYHCw3AHSEoSEjKzA0rzLuNcmGs1np+MnY5jDNJcxgL3NBRztWwwsuLdAy1PBbGQ+uRpclCJOwiEvEXINTaBPMAr66hFSieSPL9hErRVyLc7sfKsnL+CmMBwtzZ2K9EcsmvBLL2jpZiP4rvhh+vyrj9ylbqU8RPVzFPKBX3e6I3Bwi7uriE8O3yNu2MbuCuB/hZiBuwV/Lv4RATsxto/YZ79eZwsQnJt51LG/7061s5QGiBzlT8qGL+3MresC/MruV6HP2108PsjHZ4+532UhzifX4cUTl9PBX7xI95coTQbhjhBk/Bzqi20fGSm4UwJ4ALzUPLHqVQcaBY6lb+QfYgkYHDTI69JwsPs+GXgMyvoHLpWsF8/dqxullaUw9uumBSuyIhrMcScerdsayUE0OrEcrW/2z/IaW+uJw9v2/jqrYJz65MODh0o0UoZl+YhXYDoctlS/xpzw/OQuSwG0QtnsFUM4h/g7N3P1qhf4+zbIKXZFlXZIwV716Tih2wax4YlkeopF+HXAmByLm3foqlM9fofZDdXTb6H/9AfLolSVu2L9YdSMFizxSHObQ65X7AAycKH4O3fAPE/sK2tDo8mnc+g2LN/HoObjbb6r2jXq/pbZcX8Zjf5emyMT3WaeXqEFjR7rG88wbEGZNZ57ZFsjn3TXbUgF1XB6ukwo/JLziRwUlyrxyI5RHGch6rSjMXnjyYkcn3FalicjOVoknLrbq+cM+W7+MJVGN65hw+S/RSoo4WfbiMGuONdOap+3nU7pYJfWrUvFOeM4a2olKfwG0D/ejXm0qGQ/upkcaj0HuxmwfDehFCT2HdHnGO/E1tukhJx6Em9FgTctOEz4cmtM8t+BOkwn485TCPk6Er+Nk+n7yTRm72ffMvtr1U/uTpxS8AAAAASUVORK5CYII="},Dols:function(Ue,pe,U){Ue.exports={tree:"tree___22OZV",learn:"learn___ky8Lf",name:"name___2Aqg-",sign:"sign___1WxvA"}},E7E6:function(Ue,pe){Ue.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADUCAYAAADZTGx+AAAgAElEQVR4Xu2dC3BU13nHv7MrIQkQQoCEtAIEAmxig4GACxhogpM6NY7jOKZO4nimwcFot23SNNNO02napJN0JjN9TNMm5eG3x4+YSeI3ftUGjCDGQMBgG4wxb+0u4mEeQhJI2tP539WR7i77uPfuvXfvar8zs7Mr7bnn8Z3vt9/5zlMQB5aAQQmsW7fO397eHujp6Rkfi8XGExFeDX2vABHVSSlrhBDDiKhdSnlOCBGWUu4mol1lZWWv3nfffccNZueJaMITpeBCeEICjz/++LCOjo5GIpogpWwUQjT2vU/A/wCClNJvtbBCCCml3CaEeGzChAmPLF269LLVtNx6jgFxS9IeyOehhx6q7OnpmSilnEhE2gsA4L0PhjHZillRUUHl5WUUf6+giopyKi+Pv8rKyrSX3++nnp4e7XXpUgedP3+ezp37lE6ebKPe3l4tCyFEhIj+UwjxaHNz8+ls+ebrewYkX5J3IN9169YNv3DhwsRYLIbXJAWBDoZRmbKFYkPRhw4dqgEwdCgAwOfyPiDKyefzWS454Dh58iQdPPiJBk0fKN1E9KyU8gehUKjVcuIOPciAOCRYJ5J95JFHyq9cuaJZACHEJCklIOgHQUqZ0QIAACg/FB+//niPwxD/H3793QqwJkePHqW2tjaSUsKinCOibwWDwfVulcFIPgyIESm5FGfDhg0lBw8ehOM7qbe3dxIggCXAe58VgBOcts0AgP6XfwCACho2bBgNGTLEpZoYz6arq4vee2+PBooQosvv999y//33bzaegrMxGRBn5ZuQOpR77dq1dVB4BQCsQB8AgGB8JicY3RsAgNewYQO//EOHDnPdAtgttr1736cjR44g2VPl5eXXLF++HBYl74EBsbkJHnnkkZFQ/p6eHk3xdd2gpj6nuDxTlvAB8GufDAH+h+8Ga0A365133qHTp8/AkvwiGAx+3wt1ZUBMtsL69evLTpw4gZEfKH+THoC+z9WZkkQ3RwEQ7wLFf/2VY5yLE2yyKp6LfuHCBdq06W0A0j1kyJCG++6771S+C8mAJLUAukEPP/xw/ZUrVyb5/f4m+AAAgYia+iwCJsTSDuUMOMJD+7tB8e5Q3A/A9xzSS2DHjh0UiUQxWvY3zc3N/5VvWRUlIE888cSI9vZ2TfH7+v8AAD5A1m6QEKLPEcbIT/yl/AG8e9ERzreSmck/Go3S9u078MjOUCg018yzTsQdlIBgNOjw4cMTYAWSfv2VFcg4HBrvBsWdYLzHQYh3hWAJAAkHZyQQi8Xo1Vdfw4RirLKysvree++94ExOxlIt2JZes2bNmL5hUK37owehb6lE2r6M6gYpRxjKz90gYwpjNhac766uy9TRcYk6O7u09+7uborFpDYBWVVVRaNHj06YgNyyZSudPXsWP0S3BIPBN8zmaWd8zwICZzgSiUzs7e3VlL8PANUNwt+VRkaDBrpAcR8Af7s5IWZnY3k1LcxldHZ2UkdHh/bCZywxUf8DJNkGLhobJ9DUqVM1H+2DDz6kQ4cO4ZEfhUKhf81nvT0DyNq1a2+MxWJfIaIFRDSNiAKZJsVKS0v7h0KVBdDPChfzaJDdCnX5MixAJ3V2dmiK39UVB0DBgG5RuqB8tsrKSs1a4F11UzFq1draSqdPx5di4f9z5syhixcvaJOHRPRgKBS63+76mEkv74A8+OCDs7u7u39JRDfpC64mxdTSiEQIKtgZNtPKWeJeuXKlX/HjVgDW4FIfFJ39CwzTJQPFhuKPGDFCe1efhw8frv0v248VZtFbWlq02XRYkGuvvYY+/HAfulhvBIPBW2ysqumk8grImjVrvheLxf6DiEpgEcaPH081NWMIgmVn2HRbpn0AAMS7O3ErgPdLl+ATxLtFaoVtugQwQakUX1kCtJH6nA0AIzVBN2zTpk20f/9+gi7ATxFC7A8Gg58x8rxTcfIGyOrVq38gpQQcNG7cOLrhhhk8R2CxlaFMeuUf8AXiXaJsAMAnS7YA+r9LSkoslsz8Y6+++qpacoKHw6FQCBuy8hbyAsgDDzywuLe3dwPWHV133XU0eTIGojikkwD2Vaj+frIVwP/xfaaAYet0FgBdIPxieyXA4X/yySeVBTkfDAZH5rNsrgMCx3vNmjXvSSlnTJzYSDNmzMhn/T2RN37hVd9fdYGUD4D/w0IYAUD1+fUwAIBCm7zcunUr7dmjOek9oVAor/S6DsiaNWtui8ViL6HRliz5fME1nhWiAIDq7ytfYGA49BLBR8gU8Auv+vypukKDbREjRrZefPFF+CAyGAxa36FlpbGSnnEdkFWrVj1ARCumTZtGU6dOsaEK+U8Cw5z6ro8aDlXWAMOkmQL6+AoA/UiQsgQYsCimgB+Mhx9+uDgBWb169T4p5bTPfe6PtSHAQggAAL/8A5Nh8dEf9Tf6zZkChi4zWQAMZXNIlMDq1auLE5BVq1ZhM/KIW2/9U3JzdCSTAmKIMXkYVO8DGAEAs/T6OQC9H4DvOJiTAABBCIVCrvdy9CV1PfNVq1Zp6w5uv/3L5iSWQ+z4eiCsAxr41U+cGe7S9kWnCxjnzwQArAMHeyXAgNgMCIY6sXRBr/jKB4B1yAQAlkPoAUh2hAEAr+C1F4BsqTEgNgCC0aFjx47RsWPHNTjSBSg3+vnpukAAwI7Z4GyNzt8blwADkiMgODZm7969mu+AAEcYy6bVKFDyaBADYFw5vRCTAckBkMOHD9P773+gtWNtbS199rOfpQkTJrAV8IJm21QGBsQiIJhE+sMfdmnNcP3119PChQsZDJuU0kvJMCAWAMFI1IYNG7W1RwsWLKCZM2d6qU25LDZKgAGxAMiePXu14yrHjh1Ld955p43NwUl5TQIMiElA1GZ+vC9btkxzyDkMXgkwICYBuXjxIm3cuImtx+BlIqFmDIhJQM6cOUNbt/5e8zvgf3AY3BJgQEwCgnsl3n13Ozvng5uL/toxICYBiUZP0vbt22nRokU0ffr0IlGT4q0mA8KAFK/2G6g5A8KAGFCT4o3CgDAgxav9BmrOgDAgBtSkeKMwIAxI8Wq/gZozIAyIATUp3igMCANSvNpvoOYMCANiQE2KNwoDwoAUr/YbqDkDwoAYUJPijcKAMCDFq/0Gas6AMCAG1KR4ozAgDEjxar+BmjMgDIgBNSneKAwIA1K82m+g5gwIA2JATYo3CgPCgBSv9huoOQPCgBhQk+KNwoAwIMWr/QZqzoAwIAbUpHijMCAMSPFqv4GaMyAMiAE1Kd4oDAgDUrzab6DmDAgDYkBNijcKA8KAFK/2G6g5A8KAGFCT4o3CgDAgxav9BmrOgDAgBtTEu1FwrXZ3d7f2unLlivaO/6nbhHMtOQPCgOSqQ44/j8uKlPInw4Br8NKF6upqqqmpyal8DAgDkpMC2fUwFF0pv94a4DPuobcScC99U1OTdjW31cCAMCBWdcf0c+kAwP9hJZwIjY2NVFZWZjlpBoQBsaw8yQ+m8geUNYCFwPduBlgOWBBYEquBAWFATOmOVX/AVCY2RPb5fFRfX0/Dhg3LKTUGhAG5SoGc8Ady0tIMD8M6lJSUUGlpKQ0ZMqT/HaNYuVgOlSUDUqSA5MMfsAoJrAEgUAAABj0QVtM18hwDMkgB8Zo/kE0Z4S8oxU8GAHDkKzAgBQxIofgDSrlVV0j/669gyGUo1kl4GBCPA1Lo/oDeGtjhEzgJQ6q0GRCPAdLR0UHnz5/vnzl2an7AqqLl0x+wWuZcnmNAPATIxYsXKRqNuj5fkKxAgCCdQ5xPfyAXRbf6LAPiIUCOHDmiWQ43QiH6A27IJTkPBsRDgHzyySeW1x0lN2yq+YFC9wcYEBclsGrVKm3dw+0eAiQSiRC6WUYDIEg1IqS6R0bT4XjpJcAWxEOAYNVqa2srdXV19bcY+wP5xZcB8RAgShXgh2CiD36CV+cH8qu27uXOgHgQEPean3PKJgEGhAHJpiNF/T0DwoAUNQDZKs+AMCDZdKSov2dAGJCiBiBb5RkQBiSbjhT19wwIA1LUAGSrPAPCgGTTkaL+ngFhQIoagGyVZ0AYkGw6UlDfY/8MViHYtQKBAWFACgoAVVh13haW5ehf6hRGHBaHY3+wcDOXwIAwILnoj6PPqj336lxePQhGDqHDSudJkyblVEYGhAHJSYHseBj77pMtAf7OdDC10Xz56FGjkkqK58X9IBarUhCP4Rc/FQROnssLwcCCwJJYDWxB2IJY1Z2UzyVbA/1J7bZmZCCx4cOHUyAQMBAzfRQGhAExrUDKGqRylPN9Cgt2WcIxBxyjRo3K+fhRBoQBSQsIRoTS+QZGnGTT5Jl4AMO4ACH5lUt3KlX2DAgDchUEyjJYvbjGhJ5njKrfc68HARDYNc+RrawMSJEAAmVP1SVSd/plUxQnv9dbA3UIhQLCyXyNpM2ADDJAsk2gGVEKJ+KoY4hSdYvcsgZW6sWAFCAg+gk0vY/gBWugTmFJ5Rvw2bxWEI0/Y/2OLIt5FsI8iH6IVA+CHRNoFsUWb6y+S2sUBPpu0WA7mpQtiMcsCA6uVodX53vIFNYg2SdQUBSiNbDyo8CAeAiQc+fOUVtbm5V2zOkZdXtTcrdosFkDK0JiQDwEyOHDh7WRJieCmkBL1S2CpeCQWgIMiIcAsePwarcm0IoFKAbEQ4Cge4VuVraQbgIN1oGtQTbpmfueAfEQIFi+gQt02tvb+3fFubGcwpzKFFdsBsRDgCjVAyh4sTXIP4wMiAcByb9acAmUBBgQBoRpyCABBoQBYUAYkKslUAhLTVhz8y8BtiBsQfKvhR4uAQPCgHhYPZ0tGhaAYlj91KlT2vo3vDo6OrTVDGpFg9o0JoTYRkQHhRAfE9GOIUOGbFm+fHn2SSubqsCreW0SJCeTWQKAACsWDh06RGfOnNGG0y2GGBG9J4T4HRE9EwwGAY5jgQFxTLScMCSA24N37NhBuGrbiSCEaCGinwSDwTcdSd+JRDOlyU662xLPT37hcJi2b9/uGBgparXZ5/P9uLm5eYOdNWYLYqc0OS2t+7R161bNcmQKlZWVNGHCBKqpqaERI0YQ/sa5vmqpPzanXb58mS5evEgXLlzQtiMcP35c+ztTEEJsLCkp+cGKFSt22dEcDIgdUuQ0NAns27ePWlpaKN2pLA0NDRoUeFVXV1uS2qeffkrHjh3TXhkgvOzz+b7X3Ny81lImuocYkFwlWIDPY8ckfp3xwoiSesdqZfyajxkzxlSt8Gu/efNm+uijj1I+h2NI586dS6NHjzaVbrbIsFbwb7CfJ1UQQjwuhAg1Nzd3ZEsr3fcMiFXJFcBz6iTGZBiy7a3HyYhGIcHo1GuvvUZnz569SiITJ06kG2+80XYwkjMCKPB3jhw5kqpV3vf7/XetXLnygJUmY0CsSM2Dz2D+IBkEq6etwA9oamrKWkv4A88++6w2h6EP2CqwZMmSnK9AyFqApAiwJBs2bNCsYlKIEtGCUCiUkqBM+TAgZlshz/HVIdXJ3SM7D5owAgjyf+655wg+gT7A8txyyy1aVy0fAQ7966+/TqdPn07IXgixv6SkZOGKFSuuNnUZCsqA5KMVDeSp/AS9jwCldONY0mxdLJThpZdeumoId9q0abR48WLXjidNJ0aUDz7R/v37kyHZUlZW9sXly5d3GWgCLQoDYlRSDsXT39+h7yI5dYhEpmpgX31VVVVW/wO/0JgR14drrrmGbr75ZoekZC3Zt956iw4cSHQ9MAPf3Nz8Z0IIzMhnDQxIVhHZF0H5CcoqAAirfkIupVJ76zHvgBd8BrwbOaF97969tGXLloTsx48fT7feeqvndmLCCr/yyiva/Ik+CCG+HwwGf2FEhgyIESmZjAMTr/cR1Gc7/QSjRVIH0OlBABBWDqCDU75u3bqEI5Iw0XfHHXf0T/AZLZdb8eCzPf/889rCSBWEEJf8fv+M+++/P/X4sK5wDEgOLaXO6k2GwQ0/IbnY6tihZKtg5/56DOfq5xwA3ze+8Q0aNmxYDlJ0/tFLly7Rr3/96wSwhRDPB4PBr2bLnQHJJqG+7/XdIvU5H36C/pBqPQxOn8aIpR6/+x0W0A6E+fPn06xZswxKML/Rdu/eTe+8805CIfx+/x+tXLlye6aSMSBJ0lEHV+sdZgCRw/JsS5qh9xOUj2DUT7CUYZaH0Jc/evRofyw481//+tc953ekqwas/TPPPKPtPdF1tdYHg8HbGBADGoNxcwgvH90j/Pond42s+gkGqmo6CnyPp556KuFHYunSpdqaqkIKWL+1fv16fZExkjU50wQiWxAibVIp1VIJuxtf7yforYKdfoLdZUZ6WMaxc+fO/qQxGbhs2TInsnI8zd/85jfJk4g/DYVC/5wuYwaESBvTz7Y+yUzLqesLkq2C036CmTKaiYuuiX7GfN68eTR79mwzSXgm7q5du2jbNuzijQfMsAeDwc8wIBmayCog+rN69TDAOgyWgONYn3jiiYTq3HPPPXlbSpKrXLEUBd1FffD5fI3Nzc3HUqXNFoRI2+SDV6ag7vJItgpW5hNybWQ3n8cSdiwAVAHzHnfddZebRbA9r9/+9rcJ8yJ+v/87K1eufJgBySBqAAInHaNV6uBqPQxevvDSdg3SJYjdgXv27On/D5avz5kzx8ksHU8b/hT8Kl036xfBYPD7DIjjoh98Gbz88ssJSzW+9KUvub6M3W6pYrITk546QN4IBoO3MCB2S7oI0nv66acT5g4wcz5y5MiCrjnugsHMug6QT4LB4BQGpKCbNT+Ff+yxx6izs7M/829/+9tUXl6en8LYlGtXVxc9+uijekBOB4PBGgbEJgEXUzIPPPBAwuTpypUrC2b2PF07YVZ97dqB8xyEEFeCwWAZA1JMmm1TXRkQmwRpNBk+OM6opLwRj7tYLrcDA+KywHPMjp30HAVo5HEpZXk0Gv5mLEbffeGFF7Q1Crfz6e5GRJf3ODzM62ATnDlzZtzly50hIrFSSqmdRvbCCy9qOTIgDgrexqR5otBGYaqkotHopFis5ydE4h4pZYk+CwbEAYE7mCQvNbFRuKdOnQp0d3f/iCi2QkoqTZU0A2KjwF1Iihcr2iDkcDg8Rkr590TyL4moIlOSDIgNAnc5CV7ublHgUkpfJBL5KyL5MyllpZFkGBAjUvJWHN4wZaE9otHo9Fis50EpaZ6ZxxkQM9LyRlzecmuiHaSUQ8Lh8D8KIf8hnZ/BXSwTAi2QqHxog4GGiluN3nVSyrRbFLMlwxYkm4S8+f1gPPaHiOaFQqF3M0nc8I7CcDj8NSL5mJRyeC5NyIDkIr38PssHx6WQv5RSRCKRfyGSP8LnXJuIAclVgvl7frAcPVpSUiLnz5//y+nTp/+1ECLjfdQZFb6trW14d3f3k0TyK3Y1CwNilyTzk85gOLx6+vTr+y4IEi+UlpZ+q7a2tj2dNNMCgvVTkUjrK1LS5+1sCgbETmnmJ61Cvv6gvr6ebrxxbr/ghKCN9fUNtwohUt4ZkhIQLA8Jh8PPEskv290EDIjdEnU/vUK9QAcXAy1YMD/FBT/ipUAgcKcQoidZmlcBEp/8Cz8hpfymE6JnQJyQqvtp4uxi3E+I/d364NUr2IYPH0aLFi3STqxJFYQQT9fXB+5NvljnKkBaW1v/jUj+rVMiZ0Cckqz76RbKJZ44vmnx4kU0dOjQLEIS/97Q0PB3+kgJgLS2ti4SgjbBijglbgbEKcnmJ12vXwNdWVmpXUUNC5ItwHpISZ9raGhoUXH7AZFSVoTD4d1E8ppsCeXyPQOSi/S8+SzONX777bevug9QlXbSpEk0d+5c2+9Lx2F/O3bsSLjURy8hXA13ww0zTF4qKg4EAoFZQgjtKJd+QJzuWqmCMyDeVHI7SrVv3z5qaWlJe4VEQ0ODdmUCXtXV1ZayxCHauMYAr9bW1pRp4PDwGTOmU2Njo6U8iAa6WhogbW1tU3p6uvdLKf0WUzT8GANiWFQFGRG/6rjkMxwOZyw//AFYFpz1izvV0RWCr6BOwIdVwkAA/BwcOI07BgEF/s4URo8eTdOnT6eqKuv3tAshektKSqfV1tYe1AAJh8OrpIwF3WgRBsQNKec/DwCCZfKRSMSVwmAId9q0a7NeYW20MEL4VgcCgZCA7xGJhE9JKbN7MUZTzxCPAbFBiAWUBLpB8BOcAgVgXHvttVRTox15YFvATbj19YEaEQ6H75Qylng7o23ZXJ0QA+KgcD2aNEa6sCvRrmuw0X2qrw9QIFBPw4fntHY2o8SE8H1NtLa2/rJvq6wr4mVAXBGzpzJJXpqCa6MnT55M0WhUu5dFfy+kuo4O103AH8E5wIiP18iRVQSLgeun3QniVwBkK5Fc4E6GfOyPW3L2Qj6wGAcOHKCNGzdmLA4gaGpqokmTJpocknW6luL3IhxujUgp65zOSqXPFsQtSbubD0adcBkqLAJGnNTFqKm6Vcoa4CppLE3x6nUKQoioaG09gQkR186zZ0DcVVwncsO98QBA/8L8hJG75OfPn0+1tSlvGnCiqLmm2cWA5CrCQf487tJQICjLAKc7OcB3qKwcTrAKVVUjtbkN3Cjb0dHRHzV5qXkBiK6Lu1gF0EpuFRHKnAxDqok5ONAAAKNJAAJdJEz06e97P3jwE/rwww/7i47vliz5vOZsF0ro62Kxk14oDWZnOXFiorIIgAKf9b/2Ki+MJMVhiIMAKABDptt9r1zppjfffJO6u7v7iwwnHDv5CiuIrTzMW1gtZqm06BLpLQNgwDKO5IDh0zgI6CbFu0pGVsEmp7N37/sJCwiR7he+cHPavRiWKuXKQ+JXPFHoiqDdyQROMjYwKYugoIBTnRyw7ikOwQAQ2fdLZK8HLNPGjZsSJgWvv/56mjy5KfvDHoshhO9OXmrisUYxWhwMn2LkSHWT8I4hVgy3JoeKioo+fwFdJEAxgvA/J8L27YnLSgDdzTcvKbh7DfuXmkBIbi5WfPnl9drM6dKlt5qaFIpGT2qL37BtEqs1iylAXlB+vWU4e/ZsymXlUEjlK8Tfq1zr2qBMLS1bEppmzpw51NAQKLjm6l+siJK7udz9zTffokuXLmm/KmZGNIoFEDi2+sk2WAZ0m1JNuGEdkt55xmf3lmFcrfObN7doVk0F7PnAVtdCC1ctd0cF3Now9e677xKUfebMG7SNM0bDYAQEjnKqOYbkCTeMGGHkaMB5jvsOGG71SsCq3Z07/5BQHFj7UaOsbYzKb72SNkyhMG5tuT127Djt3r1b2355003Gl4DhbNht294lzMTOmjUrv/KzkHtnZ2dCFwmWIdUcA+YL1LAqfAV0k/C3fo7BQvaOPgLr9tZbGxKGiQOBAM2dO8fRfJ1JPM2W2z4r4vihDehCoJuFkRUc4FVXZ2wZGLodW7f+nmbMmEELFy50RjY2pYoupN55hpXA/5IDLEB8sm3AeQYMmeYYbCqirckMhklBCCTjoQ1KYm50tQ4fPkI4whJnFC1ceJOhNf1QMPxKYXHbsmXLbG3gXBLDdtDkYVVYi+Sg5hj0s89O7mXIpU5mnh08k4IaIpmP/enrajl6cJwSvhoOxHj87NmztL3JmQL65a+99ro2O3v33Xdr+wLcDnCWk4dVU024AfyBOYb47LOZAQm365VLfoNlUtDwwXF9kDh29KhqDAxdAhL4FghTpkymadOmZexefPDBh3To0CHCcS633XZbLu2a8Vk1x6B3oNHF0y+dUAlgL4PyFdTsc0WFa4ujHZOBkYQHz6SgiaNHlWCcOrw6WfAHDx6kffv2a0ulq6tH0nXXXZfWOij/Be84DAxj7LkG/RyDAiJ5l5vKA3MMybPPsIDFGgbDpKClw6tVgztx/UEqZTp79lPauXMnqb47xs+bmiYRlkcnO6zo4mA0C0DNnDmT5s2bZ3iER23q0VsGjNtn3tQz4ECnO9e1GAEZHJOCOVx/oLMktl6gk06ZYBUOHTqsLXJTa4fQfRk7dqw2lg6fQ60VOnGild577z1NsfGLPnv2bJo4caK2f1kF/aYe5TfAh0g1xzBkSCmNHFmtnYyhhlXV+UzFqPxG6vz225sTDq4upEnB+KU54mf19fU/zukCHb2g7LqCLZvw0eXBpBOGDtHH1Yd4f79KO2AM8WAJlJMMSwOA8B0sUaqRJKSFoVXEw2gYTsUAEF6acMsmHy98X8iTgkKIdiLx54FAwNBJPqauVLPjEk8zDYzuD7pf8Alg0lOtSs2UHqABVJhbqKsbq3XZuJtkpgWujgurjXks/Q9QoUwKCiH2+Xz+u+vq6t43KgVTgCBRXAMdiUR+RBT7oZVroI0WLFW89vZL1N5+kTD2DljQLevuxnuPZgUw2xyfbxhB1dWjqFhGk3KRqdlnjx8/Trt27e5/rBB2CgpB3US+n9fX1/9MCHH12v8MQjANiEorbk16HpSS5pkVMscvXAmoSV5VA6/vFBSCtvl8JSvMWA1961gGpM+a+CKRyHeJ5E+llJWF2+xccqMSgNXetm2b1vXFwMn8+fP6D5w2moYb8YQQF4nEP9XX1/9P8q1RZvLPCRCVUTgcHiOl/CGR/AsicmYnjplacVzHJYAhc4+O9HUSif8VQvw8EAiczlUQtgCiCnHq1KlAd3f3PxHFvuO2f5KrIPj5wpZAn5/xUGlp6U9ramoy371goqq2AqLyPXnyZFNvb/ePicQ9uDHXRHk4KkvAlATiN9PKp3y+kp/U1dUdNvWwgciOAKLyPXPmzLjLlztDRGKllNLe8+kNVI6jDF4JCCFOE8m1ZWUVq0aPHn3CqZo6CogqNNZ1RaPhb8Zi9D0iWXi7nZySPqdrQQJit89H/11XF3haCNFlIQFTj7gCiL5E4XB4MZEMEdEdUsps9/KaqgxHHpwSEELg/NLnicSqQCCw2c1aug6IqhwWQvb09HyVSH6LiL7Ivoqbze79vOK+Bf0fkXiypKTkudra2sR1Ry5VIW+A6OsXjUZre3t778DBmPAAAAI6SURBVO6DZb5LdedsvCmBdwCF3+9fV1dXF98slMfgCUCSumCNQsgvSymXSklLeF4lj9rhTtadQtAGIcR6KbWNS0fdydZYLp4DRF9snLQSjUZvjsViS4Wg26SUVi++NiYNjuWKBIQQR6Wkl30+3/q6urq3hBBXb+J3pSTZM/E0IMnFj0Qi10kp/4QotphILJJSjs1eRY6RbwkIIU4SyRYi32YhxBv19fUD9yLku3BZ8i8oQJLrcurUiWt6e8Wi3l7CyBiO8JvicXkXS/EOEokWv582+/2ypaZm3IFCrXhBA5Is9La2trqenp6biGi2lJhv0eZcxhVq4xRIuU8Qid1CCKyB31VSUrK1trY2WiBlz1rMQQVIqtpeuHBidEcHzZIy/iLSXtfyWrGsupEQIb7WiT4iot1CxF9Dh9LuESPGnTGXUmHFHvSApGoOzLm0tbU19vb2TpVSThGCphLJKVLSVCFoYrHCAwikpCNC0MdE4qCU9LEQ4qDf7/+4trb2aN/cRGFpeI6lLUpAMslMSulva2ub2NPT0+TzyUAsJup9PgpIKQNSinohtM/1RFRo5/1cFkJEpKSwEDIihAjHYhT2+WQkFhPhkpKSQ7W1tUdwsnmOOjWoHmdALDbn+fPnR3V2dgKW0ULEqmIxUSWlHCmErJJSVAlBVVIS3kcS4X9ULoQolVKWZnpHcaSU3UKI7szv1EUkzuNSKSEI7+eFkOelFOeFEOd8Pnz24fOZioqKcFVV1VmLVS3qx/4fQLyzKIIkCJoAAAAASUVORK5CYII="},FOrL:function(Ue,pe){Ue.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFsAAABKCAYAAADUvCinAAAAAXNSR0IArs4c6QAAFq9JREFUeAHdnAl4VFWWx6sqlYWEkIRsJCRkJQECCXsIS0gAWWwQl1YQxQ2nRx0/u9We8etvpmf87LFt7XHs7mmXbhVEFESQdWRfwiKGXRYhkI0sQAIBAmQnqZrfKfMyZVGVqldLjL7vu9997757zz33/84995xzb5VG8xO/Fi1aNPTDDz/M7w7D1HcHJjzFAyCPNxgMi/V6/YOe6kMNXZ2ayj+mugsXLhSAFxqNxtmPPvroge7A+09Osj///HOvmzdvvoZET/D19Z04f/78i90BaOHhJwU20hx748aNZVqt9kR0dHTOnXfe2dxdgBY+tN2JGVd4QT8/gsp4GRovPfnkkytcoeWptj96ycbaiEdl/BWgEWjt+AULFlzwFFiu0v3RSvaGDRt8L168+CIALNDpdL99/PHHl7oKhqfbe3m6A3fTR4J1/fr1m88iuBxJPs8iOBdr45C7+/EEvR+NZIuVUVdX9wBg/wYgTnp7e//rI488UuoqKCyqv4FmK+rnj67Sste+2+vsjz/+OODWrVsiyb9iMIcAZh4L4El7A3PkPUA/Db2ZERERdzhS39U63RbsDz74YDBq4qmWlpZZ5GtIdz7xxBMlrg5YaY/18iuAnhsYGDht1qxZDUq5J/NuBTZSnIAUzwGEOYB7i/R3pO5f3AkGtHVI9BuAmkG644EHHrjpSYDNaf+gOvvQoUPe33zzTRYMTSVNB1xf0mfo4+V4fkXmjMr9p59+GtLU1CSSPpzHvcQ8NqK36y3r2Xpub7+M92UZGRnPjhw58patup4o71KwkahwgBqFXTyawUgS6RI9vBngNj/22GPFloNkukfTZjZ17iXl8L5jNlLexPMW8lU9e/Zcj5RetWyvPKOWsrl/HzPxTdTR35XyrszdBjZAaD/66KMgBh4KmGGkKAaSzHN/yXkv96IbD5If8PLyOpCWlnbUmnQtWbIkGV19jwBM3Uyh7efnp+nfv3/lmTNnYnx8fE7OnDkzrKioSFdYWBhx/fp1wayVurvIV/Ph1mAOnpfC9evX+1+6dOkVaEzmcb67FlehrfZyC9hI3wEG04/B1sLAFVINqYrnYsoLJfXq1asYyWu0xaDEndva2u6hjYA8ROohrW0pKSmlgCz3iRTpli1bpgHMvPvvvz9H6siFaqkuKSlp40NEX716VQMNI8US6dsCrQd5/gS18XtrH1bad9XlFrCdYRYQdIsXL84CYFEP90AjQegEBQU1p6amliYnJ/v06NFDyr7HozWwpZ1yNTc31+zZs6e1rKysj1IG2CfpYxWzaTWe5jdKeVfn3xuIpzuXBfH48eOTUDEC7t2kSOkzJCSkftCgQaXx8fGBqIs4KbN1dQK2ob6+fu+uXbt8/f39/bKysvwANxzQa8+ePdv3woULvkIT4M+RrSKtRnfv49nAfZdcHge73SmZzmhEPcwkD5KRhYeHXwPgsri4uFCsj1gpc+SyAnbNlStXjiDN0aGhoY1jxowJhN4AS1rMoNrz58/XnD59Ooo8AF6kSjVgr2XRXB0QELADNddi2c6dzw6DjbvcE3f5CZiMcZQB6qYwmKnkPaRNnz59qgcPHnw+JiYmCqmTBVT1JWADzm5sb92xY8dakdhE9HFlQkJCDDT7OUKQmXWTINbFgoKCyPLy8iCepZmssl8K8GpNSkf6lDoOgd2++5EPaCMdJWwirtVq+vbtW4bVcZlgfj8GEqGmvVndNgApQIIvbdy4MRcpbQLgIwMHDgxAr6dTz6FxmNHruIVuw+XLl8sBPrS0tDQc2qJqHDYpOwg5cOMQk1gKQ2DiuAP0hFFNfHz8WQCuxfsTc6+3I+3M6rTwUauwMCqR2pvo3J7V1dVxYWFhtUT7bh44cCAL0y9vzpw5OWZt3HXbxAc9h6rpiXUTgzcrdMWk3E2+ytykdKZDh8BeunRpWENDQyUdmBYZy45goo1pfAqAG9Gbqbw36WXLepbPqKV8pnH9tWvXfGtrawNZ4EKpo8dMvI5OvwS4BhbPSOgnS7m0b1cjngJbulCuFvgqYXH1wZ5P4OODucmkFOBnESVU7eZ3eGNKD9byefPm1SDdTzDl3kTqOkwqpS7T+Tg2bChqwmQfK+X2cnSsP/pbg5kni1oogxE1Izv+0od8tB/y8uFDJ2LjF7KveQ2h6M3YRTgnwufL5LJxoepySLLNKQL6HUjdFlb9OhhYcuTIEYlrJEkdQD82YsQIPwL6HgOqKyQbW73s1KlTLaRkkWjWhSYW9pPY/z2J5YSfPHkyCEEZjs1+whwbe/cOSbZCZOfOnfri4uK3ANqIuuhJenrYsGHHmGpvfvXVV+PQdWNIGqZ/0dixY+sxpyT28aO4mLXXEZ4LgBmP3o4DTJlxZ4YMGdKEozWIQZiMg9GjR9eBgZ6P8A6Snt2uWhwaoyqwWTR+ifucBsjmxDMok3QWa+rVzZs3D4bpWSQd9arHjx9/nsVNLAZVfZl34MH7Ntz7khMnTgQztnAAD8J6quIIRAFmqizut81QynpOnDjxwqZNm8Yzyx+Bt8WO8uewGpHoGwtVATEJMbdEr9q6ylnsFhEAimY1f5iv34MAfR0e3Rn080CY9bfV0JFyd6gRpPIicZTmb7/9Nr6xsVE82Ib09PRiFvkIJNrk1drjBaFqxjm6gceb+tBDD12zV1/eq5G2/4KhQIC2R7dfcHDwfxCPrmZQb6xdu1aP1fGLLVu2jICxVnT6MWZBLIupWpPQXr+dvkdq6wHnIo5QLKZkFOMw4sEWooe9uY+nsarFPTc3tx4rLZyP9Sptn+m08/aXDkk20yUHoHYi1Qa+fGdSba3Pawz07TVr1lxB4p9C0lNFH/LhCnBMenEfba2RrTKVkm0k/FpGPCYIPRsiNJOSkqro+wZ6WBZ1l04XMDOu5ufnBzNbMzEF7e7w6wnoxwLAW6ShdG4VSMAKY2EwOgG0jC8EKf63e++9t47799B1ryFhC44ePTqBJDHqCmi38jETpLI7Lon8EecWNdGXWRWP+qqbOnXqWfRwDLyIWXmb+epMv8yMXqgjHUL0LvhlAnqnQS09lZaQJnbWGQucJjEx0RS56ayenXc9ef/r6dOnN5Mv3Ldv35u4yPNwGO4DGC8AuYKVcwWJS7FDx+prxtCEx1mNFEeTh/Xu3bsNS6kUvoNYa0RlOUXXamfthYCrnzRpUs0XX3wxEqH9BcXvdVqfhe8GjAZ2Vmn27NmtAK5Gv3dGTnnXys1SzMaP9+7dexf3C+AjAAumAdDLxRqg7LY+LdUIDscF7N5APpo4Rhp0cBX2vgE9rEo9KUw5kyM4TZi8jcyaVMK2l23R8AJIUR9ptiogGRrccKvqxVYbB8uFZgbgPowEViLZv0TCCwkLZJAlAJ4RwIpYbP2RIG+FJsBqiNMgrPqmvLy8AMy2QKyJlnHjxl1CHQVGRUUJ6J0Kj0LLXTlBtlvM0sDW1tbwdevWrbVFV9seb36BCsOQLHNQk9HRaRLjJRjvY4uAm8s3wvDr7EEmsk6IO5xG0EmDBSNbY8FE5xq3bt0aLZE57OE2hOAiuWwi+7qZD9Xk8Ctqt23bJnuw/wSOVQoB7o0IxgnZzLZqjbR7it8MHTp0EAO1Wkch5qF8N3RfRQ+KtfAi/E5W+snMzKwaMGCAPwPopZR1lxzb21hZWWkNLwMf4SlzSe7gGW/qOaZwGmCLXv0hrmw63Yz+ex6TagqMfqEwwWzb1h2BFv4Ixl1Q+LTIdQjM726zM1ErEUzhVXh8OhbFDl1p0birHlcTnziJ2niXDk28Ijn9MbkE8P5dxYSdflrh70vi7Kzze+OpG2yjfu1tqz0No/kKAcQMdLjbrSw2t9WxQczdxWKzvs35kefgR1kzqrmPxNTqQ9i3gvcO7126mznolYHRpu3bt4diEc3iubN1o5nZ+aI1/aJBVw5Hul9lcZqOpaBBkgyYNVZVjgcGoZBcs2LFCjm9WgHAYqPLR1+ekBAfVVp6Lhu9vRgLZD5lXcmXCMAmXP4iQsvZYCSWnOxOFZDEsTkiz+YXak9+ElHAoaErVsFWKmODj+f+VQ7IZKOPxLFRXnVFPpmPns4A3sLm3l5VVSWL5PIZM6ZP3rFjZzMS3wev9BNMw0e7gJkqTNLVWBv6mpqa++FJVIVsl60lvcPassMRHjoFWyEA6FO5/090+CisAWNkZKRD7ZT2TuQnkeqhSHUxbaMmT550eNu27XIAU8CeQ/CH4yG7s5lsRUjMDQY8wok+7DURj3kHNv8hdPFQAJZTAsq436DPP7N421oQrdK+bYG0VgtDvZj0/pQpU2SjIANdFY4zYiSeoXRurZkrZb8lwJMMgQXh4aH/GxsbOwUnR+h9279/8mDWkXiOfXxJkD+LOMsuvEaZcopel3quXDXEVhYhxbu5JrDh/DNAltj2HlIthCWu8hBnBivVdqJq8aODNZwG7Q0DH1ZUVMgxMb/hw4e7G3SJDX9C2s3gjBkZw6wuPCkp/TPh4QyHJh+En7c47PO82sFb1N+NpbODKxXH6h8A2If+b6Jz/zZq1KjS3r2D79uwYdO3tHF690kV2ObMTZyYXVleXrGW6T6HraMYkkQF3SHpH6CrM+lrBLvseT4+3jJ9zbs23VMWzi7QUayBRKRQfsS0HnNQrAI1l4R/l6KTqjkzch80X5bGgHyKgNjirKzMQFQVMRtNVDsLhe3Et6Na5USunHVQ0lXuP0a1dPgE7XU7MqfBRoUkI10vpqam7C0oOGMCHSkPY2NAkHEW9Dbavs2g3xEOhw3LqOfeprUhH4LZtZQw57yVK1ca586de55mfaWtnSsfFbSGAz8xqAyxaIJI4sCtGDAgZUtiYvJ4o9HwCs++Vr4zxZok+JLc8roLQclhwdxl+UKenQZbIUan4wFc0leAvoYd6QewXHoRWFKqqMnXsVERgGTNwIM93qOH/x32GiclJU5BjRzkzMldhw8ffo3wwku0sfaBbogUf/3113ybMzPh+w9Cm74uIL1/YpZUBgT4y6+E3wdoe93afE/7XF56BmyzXscNGJA6jud9p08XlAD6fQy8BwupWRW7t3+hhsRCtEOHZojTkm6vBXUjJkyYcBBVUs/O+DMEp/7GrHvarN1hPsQytueCsGIep/yp9nd5RAsXEyns4+Wlk1+N9SOZNXP6dp+tli5LthXCYwcOHDAWxvMx/CsZ+GzUizfHGqxU/V7RCX65UEC7hzl3Uo79nOPo4PV6r58Rw36PD/wU8e5BnOfYDeWzgH8AaRf7/DWSN1Issfu/8kG2xMXFcqJWKyrL39F+FG6hs5N7UXneZqkBOqKztyj1LHNPgG3qA4bGpKUN0sDAfqbuFaRoGouoF16pJQ/K8/8QKniOBx/AOEW76coLR/L4+Lh7WeS2IL1T0Zuf0mYMNJ6UtvBygvTu5Mk5l/V633/UaIzPfifEzkkypudj/HCq3BG+zOt4DGylEwaZOWjQQA368iA7GvU4RBNZ1LToSaWK5FcJ5KwiL2Qg1yIjI0abv3TkHmAjsrOzGwhz1nD/EG3ESljODFnEgaEBGo0B9SQnt5wD2BEe7NXxONgKA4A7CutFdlkOA7qRBXQkp11Nr9kw3cDmrAAUggraTi5TX/Wl02nvRge/dPDgwRbCw/lRUX0ehMgKFrxA1cQ80KDLwFZ4xxYfkZiYoMFxOLp//34/AB/IZoUc5vk5H6S5b99om1t0Co3O8tDQ3q/MmDHtGMrjv6Gp7axuV7/73lzuys5xQIbFxsYMbGlpOobzchxg/DAf+YWX1tVjBmIbj+5uQAu2qiUb6WtB/2pY6c9zsrMV0OJc+UheXvoMzDxNRkZ6GbSzAMkVcp5uK56tzEqnmFQt2RwXXsWi915VVXWfrVu3xeEgFAD+RVdHCc04gFb98V3t15H2HKNrOn78hFg1idRfimkpnqrqS/XgMjOHpfDrh6zr12v/ed++/CklJaV3lpWVG7EwDsbF9WO113TpGT7VI1bRAFe+pbCwyIcAlQ+xkg0cyGnipMHrgO6Ui6lqAeEoQSBBeyJfxth2nvOLi0s+Jeb7JFKZgdkmh8YPYQVI/Fd2V9x2bdy4SWiZ4tluI2qDECDf4mygd0VFpSE4uNcGPGGDt7ePhFq9ALpcr/dO4/dCcpxO1aVKsgH612ZAS0djkpISSUnL8dQ+4WM8z/m98adP+9WwnXY4JCQIT9LkZali6oeqjC5uRZL1SLKORXvt5Mm5unaQZXfcxBZ5P/ZmwUHzslo+VYEN8bnWOzDOGTFi+N1arebtHTvyEIzm5/AaJ7KdVjxy5IgKpt5EmFQ1i6z345nS1ta2Vvk1AQdtNIC8Oicnx5uI4ix47gDZomex31+2KLP7qBJsY79OKIrJ9cKkSbmXm5ubfpeXtzuFE6SP5eXtSurdO+Qg8ZFbqJmxnbTv8lc4WG2ckfE6d67MCMgrOXPtx2EC+bsNWyC389gpDjbHoQpsJPcCgMqKbPOC0XAfH98/TJs29fTlyzXP8nv1u69evTZ1+/YdRs7hbR4yJC1Cp/MaZpNAF7zAejIQR9EBchsgr8rNzfFHEGTzQEuyy4HgYLeSlQqqwIYX4hdG0Vd2L5geGBYW+g4btFsJuT5z7ty5ZzjKO43f3TSyS78S130IRFLtEnJjBXgC5HM6gL6FdbGa3SY5hPlzyh0CWWHlOxyUJ8dzVXqUn0dEtrW1yt9JhDnehSnqZmCci/bvP1jADzklXt0HB+YS0b3NMTF9c6Fld6fBFWsEQTayX6ktKSnll1+9VuFEBeNMzRCQ1YxD6mKN1NB2MAG1atVt1Taorj4/BQdqPe381LaF0TqDoe0t9Lk3foKEU/2JlRSwiO7j8PrdPNu00Z0BGzBNBx0xTxsx4Vamp2eE85FVhW4txtik12tnRUb23WZR7tCj6i8rVDk+wHaVcTm3IQ71cnulyvr6hj9yVGA4r2QPUMeGwa6xY8cUsRX2IBjd9osylWAD8nkkuaRBFj5+Q8M6oXUFZBkBu/7aORxR3ioPzlxOgS0doXs5u2FYDDDZznQsbZD0QzgO73HAfR50JlFkYEdn5dixWc3oUgG9Y01xBGzoGREEURd1QocfSEUB8jRn+VPaQZdjFbpHWeDPKWXO5E6DrXTGoodkGl8BmHilTG3OYFYTe9gIUC9AZwDPjZy+Woi5yP+S6ORPYbSdgS0g8/G1RUXFN/nN5Yr09MGxgMPsc+2C7jlE4t/5ZcES1yh919plsIUMYHhXV1+Y39ZmFD3s1CEWzCnZWXl7z56vKrHPX4JmOM/VnIb6gEOUOfziYBzPt7nr1dWXNDgkN3CgPsesjAfkKdRz9TrGEZi/REZGLwFw4cstl1vANueEA5BjDIbWOUiEOAcJ5u8cvL+K8fC6HMXF55DjwrIQl5PEodqEKWnSvRxw1OBaXw8MDFg+ePAQCYA5tbtDO9MFqKWIzTqdTv8ZBznzlXJ35m4H25w5gB8M8LMpuwvwhwNchw42r2fjvrCurv4N/vspFyBEf5t4HT16lAZ1UYskf8aGcgptRdervqDJoRzTEV8BeB0An1BNRGUDj4Jtzgtg9cBOz0BaRzLQkayFnDzVDqTcy7ye5T3qZVdJSfH7BQWFv+edN2plDfY5el2Ta1nX1jP9tQHsaYyew/R3CHPzEHbyMcobbbXxRHmXgW2NeQbuS6Qwlg9AyLaNQzLySwKtqAt+dSxHwsQE1PYAWAM5Z+hM/1F1B+344ar8+6URsP4/p9512lZQXs49uVc5wFaw4VEBsLT5Ya//AzDfafkdei4SAAAAAElFTkSuQmCC"},HmJG:function(Ue,pe,U){},IxHN:function(Ue,pe,U){"use strict";var Xe=U("q1tI"),it=U.n(Xe),ve=U("07cG"),t=U.n(ve);pe.a=function(w){var v=w.message,l=w.className,_=w.children,r=w.style,u=r===void 0?{}:r;return it.a.createElement("div",{className:"".concat(t.a.idsRingWrapper," ").concat(l)},it.a.createElement("div",{className:t.a.ldsRing},it.a.createElement("div",null),it.a.createElement("div",null),it.a.createElement("div",null),it.a.createElement("div",null)),v?it.a.createElement("p",{style:u},v):null,_)}},JTSX:function(Ue,pe,U){Ue.exports={flex_box_center:"flex_box_center___2jvp9",flex_space_between:"flex_space_between___YQ3n3",flex_box_vertical_center:"flex_box_vertical_center___lMDl8",flex_box_center_end:"flex_box_center_end___14pJI",flex_box_column:"flex_box_column___3MPcr",banner:"banner___1CNID",wrp:"wrp___2yuj2",titleWrap:"titleWrap___3rqyq",titleFlexEnd:"titleFlexEnd___3qeo-",title:"title___1sz3A",titleIcon:"titleIcon___oKhIk",contentWrap:"contentWrap___2hSfm",verticalLine:"verticalLine___1hWY5",contentLeftWrap:"contentLeftWrap___3cPFj",openCourseTag:"openCourseTag___2nNhU",ratingWrap:"ratingWrap___QZ8mo",ratingTitle:"ratingTitle___1sMbV",rating:"rating___tJ9xt",popoverWrap:"popoverWrap___16eNE",popverLeft:"popverLeft___1EzpC",popoverRight:"popoverRight___1dYpr",popverScore:"popverScore___2QZ2F",popoverRateWrap:"popoverRateWrap___2O45Q",popoverProgress:"popoverProgress___2jOeY",button:"button___1WaHd",operationWrap:"operationWrap___3_Xdi",forkWrap:"forkWrap___36Nap",fork:"fork___1AtQN",forkNum:"forkNum___3b1MG",buttonTransparent:"buttonTransparent___INxBh",buttonLearnStatistics:"buttonLearnStatistics___350-U",publishPopverWrap:"publishPopverWrap___2uMcI",colorFF6802:"colorFF6802___W5JBU",w140:"w140___20QZ6",nav:"nav___UcDQM",navLeft:"navLeft___1IpLj",navContent:"navContent___g-IkK",flexRow:"flexRow___2Srtn",navRight:"navRight___1wX_D",navLeftIcon:"navLeftIcon___33sNL",colorOrange:"colorOrange___1lWTV",contentItem:"contentItem___3BAmt",contentItemTitle:"contentItemTitle___3X1lp",contentItemText:"contentItemText___2Px0w",classButton:"classButton___1uAy6",bg28e:"bg28e___34ke7",bgGray:"bgGray___1wX3O"}},LZjx:function(Ue,pe){Ue.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAYCAYAAAD+vg1LAAAAAXNSR0IArs4c6QAAAgpJREFUSA3VVT1LHFEUPXdnPxUVU6TwB9j5hQZsElxECBgMgkIaU/kjJH8gmPQ2goWkMSSNWoSA7pIuKGxCmiSkFlQM6JpFd3fm5rzgzs6Ob3CywSKPYd7Mu+ecufe+e+cBMcduSTd2Svo6JhzJuEAFxgTgFW8IPVkhafz0An1VF11RtDsdyBrbzwouojBpB+WeLA6g+JjkLUNglnNOPXREkU7OfUskBgnUqZMVQcYPbXSZ+VPM+/Q2Hij2dn9J5gw10QY/FuX/E7aWWy4FPH8MdP+pg+jIz1gfzzaBSvU6xirsMEEsL/TkrhOCKykHcPztD1pgb5DzS+Dpeivwb99ubfOsqTDe5fuZihtyzG5F4bs9FqvwXTb2y1k7Ibw6vQIclsOrETk+IvDJ2s0em6qwiZrPWD02hh/H5t7+uLXNaworau37d8UU+K3SFBa8/1dh/i59jZa+GX2hi+JhhueE/8/NJNHZ14WRhCBtPuwpqgdllC7r+OU7oqhQaGtvSVYbay3CjcXGXPiiY14N7wjqlgQWeNIoPLxSQZnd/HBiRPYa2PAcKVz8rPddF9sEpCk6nx+WbUPmUTZN+TeMqqYOHk0OyoewqHm3ChdLes9VFGlVHgUzk0OyGyQXP2meKdmk1ZEUHuQHZD9oN8/NzQtYXEEvRb85DqbCogY2MSwFRjHFlHyVOrGW8RupGIelwwS0iwAAAABJRU5ErkJggg=="},M8RZ:function(Ue,pe,U){"use strict";U.d(pe,"a",function(){return r});var Xe=U("fWQN"),it=U("mtLc"),ve=U("yKVA"),t=U("879j"),w=U("q1tI"),v=U.n(w),l=U("i8i4"),_=U.n(l),r=function(u){Object(ve.a)(e,u);var o=Object(t.a)(e);function e(n){var i;Object(Xe.a)(this,e),i=o.call(this,n);var s=window.document;return i.node=s.createElement("div"),s.body.appendChild(i.node),i}return Object(it.a)(e,[{key:"render",value:function(){var i=this.props.children;return Object(l.createPortal)(i,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),e}(v.a.Component)},NLgs:function(Ue,pe,U){"use strict";U.d(pe,"e",function(){return m}),U.d(pe,"f",function(){return f}),U.d(pe,"d",function(){return b}),U.d(pe,"c",function(){return p}),U.d(pe,"a",function(){return S}),U.d(pe,"b",function(){return D});var Xe=U("WmNS"),it=U.n(Xe),ve=U("miYZ"),t=U("tsqr"),w=U("9og8"),v=U("2qtc"),l=U("kLXV"),_=U("q1tI"),r=U.n(_),u=U("9kvl"),o=U("xKgJ"),e=U("1vsH"),n=U("RCxd"),i=U("mOS8"),s=U.n(i),d=U("m3rI"),m=function(E){return!!(f(E)&&A())},f=function(E){return Object(o.p)()?!0:(E({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},A=function(){var E,O=Object(u.b)()._store.getState(),C=O.user;return((E=C.userInfo)===null||E===void 0?void 0:E.profile_completed)?!0:(l.a.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:r.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(){u.c.push("/account/profile/edit")}}),!1)},b=function(){var E,O=Object(u.b)()._store.getState(),C=O.user;return((E=C.userInfo)===null||E===void 0?void 0:E.professional_certification)?!0:(l.a.confirm({title:"\u63D0\u793A",centered:!0,content:r.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(e.I)("/account/certification")}}),!1)},p=function(){return Object(o.a)()?!0:(l.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",content:r.a.createElement("div",{className:"tc",style:{marginLeft:-38}},r.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"),r.a.createElement("img",{src:Object(o.t)()?U("WdTA"):"".concat(d.a.IMG_SERVER,"/images/educoder/qqqun20191230.png"),width:200}),r.a.createElement("div",{className:"tc"},"\u7FA4\u53F7\uFF1A",Object(o.t)()?"693542422":"612934990")),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(e.I)("//shang.qq.com/wpa/qunwpa?idkey=2f2043d88c1bd61d182b98bf1e061c6185e23055bec832c07d8148fe11c5a6cd")}}),!1)},S=function(E,O){return E?!0:(l.a.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:r.a.createElement("div",null,r.a.createElement("p",null,O||"\u8BE5\u5B9E\u8DF5\u8D44\u6E90\u9700\u6388\u6743\u540E\u624D\u53EF\u4F7F\u7528\u3002 \u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650\u3002"),r.a.createElement("div",{style:{marginLeft:"110px"}},r.a.createElement("img",{src:U("1ZF9"),width:200}),r.a.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(e.I)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1)},D=function(E){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",C=Object(u.b)()._store.getState(),g=C.shixunsDetail.detail;return(g==null?void 0:g.public)===2||(g==null?void 0:g.public)===1||(g==null?void 0:g.shixun_status)===3?(l.a.info({centered:!0,icon:r.a.createElement(n.a,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:r.a.createElement("div",{className:"tc",style:{marginLeft:-38}},r.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},r.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",(g==null?void 0:g.public)===2?"\u5DF2\u516C\u5F00":(g==null?void 0:g.public)===1?"\u5F85\u5BA1\u6838":"\u5DF2\u5173\u95ED","\uFF0C",O,"\u3002"),r.a.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),r.a.createElement("img",{style:{border:"4px solid #1890FF",borderRadius:"4px"},src:s.a,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0):(g==null?void 0:g.shixun_status)===2?(l.a.confirm({centered:!0,icon:r.a.createElement(n.a,null),title:"\u63D0\u793A",content:r.a.createElement("div",null,r.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",O,"\u3002"),r.a.createElement("br",null),r.a.createElement("span",null,"\u5982\u6709\u9700\u8981\uFF0C\u60A8\u53EF\u4EE5\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u518D\u8FDB\u884C\u64CD\u4F5C\u3002")),okText:"\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:function(){l.a.confirm({width:440,centered:!0,icon:r.a.createElement(n.a,{style:{color:"#faad14"}}),title:"\u63D0\u793A",content:"\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u5B66\u5458\u5C06\u65E0\u6CD5\u8FDB\u884C\u7EC3\u4E60\u3002\u662F\u5426\u786E\u8BA4\u64A4\u9500\u53D1\u5E03\uFF1F",okText:"\u786E\u5B9A\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:function(){var T=Object(w.a)(it.a.mark(function j(){var N;return it.a.wrap(function($){for(;;)switch($.prev=$.next){case 0:return $.next=2,E({type:"shixunsDetail/cancelRelease",payload:{id:g==null?void 0:g.identifier}});case 2:N=$.sent,N.status!==401&&(t.b.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),E({type:"shixunsDetail/getShixunsDetail",payload:{id:g==null?void 0:g.identifier}}),E({type:"practiceSetting/getCommonData",payload:{id:g==null?void 0:g.identifier}}));case 4:case"end":return $.stop()}},j)}));function L(){return T.apply(this,arguments)}return L}()})}}),!0):!1}},Nlvd:function(Ue,pe,U){var Xe=U("hi0g"),it=U("ProS");it.extendSeriesModel({type:"series.wordCloud",visualColorAccessPath:"textStyle.normal.color",optionUpdated:function(){var t=this.option;t.gridSize=Math.max(Math.floor(t.gridSize),4)},getInitialData:function(t,w){var v=Xe(["value"],t.data),l=new it.List(v,this);return l.initData(t.data),l},defaultOption:{maskImage:null,shape:"circle",left:"center",top:"center",width:"70%",height:"80%",sizeRange:[12,60],rotationRange:[-90,90],rotationStep:45,gridSize:8,drawOutOfBound:!1,textStyle:{normal:{fontWeight:"normal"}}}})},OljG:function(Ue,pe,U){Ue.exports=U.p+"static/banner.4c45dd73.png"},Ot1p:function(Ue,pe,U){"use strict";var Xe=U("2qtc"),it=U("kLXV"),ve=U("rAM+"),t=U("tJVT"),w=U("jrin"),v=U("q1tI"),l=U.n(v),_=U("VrN/"),r=U.n(_),u=U("bdgK"),o=U("p77/"),e=U("Bd2K"),n=U("ELLl"),i=U("19Vz"),s=U("lZu9"),d=U("kSUc"),m=U("9Bee"),f=U("0Owb"),A=U("dejd"),b=U("C+DQ"),p=[{title:"\u7C97\u4F53",icon:"icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"icon-sum",actionName:"inline-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"icon-formula",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"icon-picture",actionName:"upload-image"},{title:"\u8868\u683C",icon:"icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"icon-eraser",actionName:"eraser"}];function S(ce){var Se=ce.onActionCallback,Qe=ce.title,et=ce.icon,he=ce.actionName,Dt=ce.className,ft=Dt===void 0?"":Dt,$t=ce.children;function fn(){Se(he)}return l.a.createElement("a",{title:Qe,className:ft,onClick:fn},l.a.createElement("i",{className:"md-iconfont ".concat(et)}),$t)}var D=function(ce){var Se=ce.watch,Qe=ce.showNullButton,et=ce.onActionCallback,he=ce.fullScreen,Dt=ce.insertTemp,ft=[].concat(p,[{title:"".concat(Se?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(Se?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return l.a.createElement("ul",{className:"markdown-toolbar-container"},ft.map(function($t,fn){return l.a.createElement("li",{key:fn},$t.actionName?l.a.createElement(S,Object(f.a)({},$t,{onActionCallback:et})):l.a.createElement("span",{className:"v-line"}))}),Qe?l.a.createElement("li",null,l.a.createElement(S,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:et},l.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Dt&&l.a.createElement("li",null,l.a.createElement(S,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(Dt),onActionCallback:et},l.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),l.a.createElement("li",{className:"btn-full-screen"},l.a.createElement(S,{icon:"".concat(he?"icon-shrink":"icon-enlarge"),title:he?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:et})))},h=U("M8RZ"),E=U("+L6B"),O=U("2/Rp"),C=U("y8nQ"),g=U("Vl3Y"),M=U("5NDa"),T=U("5rEg"),L={labelCol:{span:4},wrapperCol:{span:20}},j=function(ce){var Se=ce.callback,Qe=ce.onCancel;function et(he){Se(he)}return l.a.createElement(g.a,Object(f.a)({},L,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:et}),l.a.createElement(g.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},l.a.createElement(T.a,null)),l.a.createElement(g.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},l.a.createElement(T.a,null)),l.a.createElement("div",{className:"flex-container flex-end"},l.a.createElement(O.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),l.a.createElement(O.a,{type:"ghost",onClick:Qe},"\u53D6\u6D88")))},N=U("7ahc"),G=U("HmJG"),$=U("BjJ7"),H=g.a.useForm,F={width:280,marginRight:10},te={labelCol:{span:5},wrapperCol:{span:19}},ae=function(ce){var Se=ce.callback,Qe=ce.onCancel,et=H(),he=Object(t.a)(et,1),Dt=he[0];function ft(An){Se(An)}function $t(An){Dt.setFieldsValue({src:"/api/attachments/".concat(An.id)})}function fn(An){var xn=An.target.files[0];k(xn,$t)}return l.a.createElement(g.a,Object(f.a)({form:Dt},te,{className:"upload-image-panel",onFinish:ft}),l.a.createElement(g.a.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},l.a.createElement("div",{className:"flex-container"},l.a.createElement(g.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},l.a.createElement(T.a,{style:F})),l.a.createElement(K,{onFileChange:fn}))),l.a.createElement(g.a.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u63CF\u8FF0"}]},l.a.createElement(T.a,{style:{width:264}})),l.a.createElement(g.a.Item,{style:{textAlign:"right"}},l.a.createElement(O.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),l.a.createElement(O.a,{type:"ghost",onClick:Qe},"\u53D6\u6D88")))};function K(ce){var Se=ce.onFileChange;return l.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",l.a.createElement("input",{type:"file",accept:"image/*",onChange:Se}))}function k(ce,Se){if(!ce)throw new String("\u6CA1\u6709\u6587\u4EF6");var Qe=new FormData;Qe.append("editormd-image-file",ce),Qe.append("file_param_name","editormd-image-file"),Qe.append("byxhr","true");var et=new window.XMLHttpRequest;et.withCredentials=!0,et.addEventListener("load",function(he){Se(JSON.parse(he.target.responseText))},!1),et.addEventListener("error",function(he){console.error(he)},!1),et.open("POST","".concat($.a,"/api/attachments.json")),et.send(Qe)}var I=U("giR+"),z=U("fyUT"),X=U("7Kak"),Z=U("9yH6"),J=Z.a.Group,re={margin:"0 8px"},ee=function(ce){var Se=ce.callback,Qe=ce.onCancel;function et(he){Se(he)}return l.a.createElement(g.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:et},l.a.createElement("div",{className:"flex-container"},l.a.createElement("span",{style:re},"\u5355\u5143\u683C\u6570\uFF1A"),l.a.createElement("span",{style:re},"\u884C\u6570"),l.a.createElement(g.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},l.a.createElement(z.a,null)),l.a.createElement("span",{style:re},"\u5217\u6570"),l.a.createElement(g.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},l.a.createElement(z.a,null))),l.a.createElement("div",{className:"flex-container",style:{marginTop:12}},l.a.createElement("span",{style:re},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),l.a.createElement(g.a.Item,{name:"align"},l.a.createElement(J,null,l.a.createElement(Z.a,{value:"default"},l.a.createElement("i",{className:"fa fa-align-justify"})),l.a.createElement(Z.a,{value:"left"},l.a.createElement("i",{className:"fa fa-align-left"})),l.a.createElement(Z.a,{value:"center"},l.a.createElement("i",{className:"fa fa-align-center"})),l.a.createElement(Z.a,{value:"right"},l.a.createElement("i",{className:"fa fa-align-right"}))))),l.a.createElement("div",{className:"flex-container flex-end"},l.a.createElement(O.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),l.a.createElement(O.a,{type:"ghost",onClick:Qe},"\u53D6\u6D88")))},se="link",ue="upload-image",q="code-block",Y="add-table",ie="------------",B={default:ie,left:":".concat(ie),center:":".concat(ie,":"),right:"".concat(ie,":")},W=U("9VGf"),oe,ne;function me(){}var P=0,a=1e4,c="\u2581",R=`
|
|
|
**\u6A21\u677F\u6807\u9898**
|
|
|
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`;function y(ce){return/^\d+$/.test(ce)?"".concat(ce,"px"):ce}var x=navigator.platform.toUpperCase().indexOf("MAC")>=0,Q=x?"Cmd":"Ctrl",V=(oe={},Object(w.a)(oe,Q+"-B","bold"),Object(w.a)(oe,Q+"-I","italic"),oe),xe=(ne={},Object(w.a)(ne,se,"\u6DFB\u52A0\u94FE\u63A5"),Object(w.a)(ne,q,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(w.a)(ne,ue,"\u6DFB\u52A0\u56FE\u7247"),Object(w.a)(ne,Y,"\u6DFB\u52A0\u8868\u683C"),ne),be=pe.a=function(ce){var Se=ce.defaultValue,Qe=Se===void 0?"":Se,et=ce.onChange,he=ce.width,Dt=he===void 0?"100%":he,ft=ce.height,$t=ft===void 0?400:ft,fn=ce.miniToolbar,An=fn===void 0?!1:fn,xn=ce.isFocus,tn=xn===void 0?!1:xn,De=ce.watch,Ye=ce.insertTemp,rn=ce.id,at=rn===void 0?"markdown-editor-id":rn,qt=ce.showResizeBar,tt=qt===void 0?!1:qt,Nt=ce.noStorage,jn=Nt===void 0?!1:Nt,on=ce.showNullButton,wn=on===void 0?!1:on,ot=ce.fullScreen,wt=ot===void 0?!1:ot,Xt=ce.onBlur,ht=ce.onCMBeforeChange,Yt=ce.className,Zn=Yt===void 0?"":Yt,Rn=ce.placeholder,Vn=Rn===void 0?"":Rn,oa=ce.values,Nn=oa===void 0?"":oa,dr=Object(v.useState)(null),tr=Object(t.a)(dr,2),Ie=tr[0],Oa=tr[1],fr=Object(v.useState)(Qe),da=Object(t.a)(fr,2),nr=da[0],Er=da[1],oi=Object(v.useState)(De),Nr=Object(t.a)(oi,2),ha=Nr[0],Rr=Nr[1],ar=Object(v.useState)(wt),Br=Object(t.a)(ar,2),Pa=Br[0],Fr=Br[1],Wr=Object(v.useState)(""),zr=Object(t.a)(Wr,2),Ca=zr[0],ma=zr[1],si=Object(v.useState)(0),Xr=Object(t.a)(si,2),yr=Xr[0],br=Xr[1],ui=Object(v.useState)($t),Qr=Object(t.a)(ui,2),Kr=Qr[0],Gr=Qr[1],li=Object(v.useState)(!1),Yn=Object(t.a)(li,2),wi=Yn[0],Tr=Yn[1],Ar=Object(v.useRef)(),Ra=Object(v.useRef)(),Ur=Object(v.useRef)(),pr=Object(v.useRef)();Object(v.useEffect)(function(){Er(Nn),Ie==null||Ie.setValue(Nn)},[Nn]),Object(v.useEffect)(function(){if(Ar.current){var Qt=function(Dn,Pn){var Ln=Pn.clipboardData;if(Ln){var Fn=Ln.types.toString(),$n=Ln.items;if(Fn==="text/html,Files"||Fn==="Files"||Ln.types.indexOf("Files")){var zn=$n[1];Fn==="Files"&&(zn=$n[0]),zn.kind==="file"&&zn.type.match(/^image\//i)&&k(zn.getAsFile(),function(pn){pn.id?jt.replaceSelection("")):(pn==null?void 0:pn.status)===401&&(document.location.href="/user/login")})}else return!0}return!0},jt=r.a.fromTextArea(Ar.current,{mode:"markdown",lineNumbers:!An,lineWrapping:!0,value:Qe,autoCloseTags:!0,autoCloseBrackets:!0});return tn&&jt.focus(),jt.on("paste",Qt),Oa(jt),function(){jt.off("paste",Qt)}}},[]);var Hr=Object(v.useCallback)(function(){if(Ra.current)try{var Qt=Ra.current.getElementsByClassName("markdown-toolbar-container")[0].offsetHeight,jt=Ra.current.getElementsByClassName("markdown-editor-body")[0];Pa?jt.style.height="calc(100vh - ".concat(Qt,"px)"):jt.style.height="".concat(Kr-Qt,"px")}catch(Bt){console.log(Bt,"---- to set md editor body height")}},[Kr,Ra,Pa]);Object(v.useEffect)(function(){function Qt(){var Bt=new u.default(function(Dn){var Pn=Object(ve.a)(Dn),Ln;try{for(Pn.s();!(Ln=Pn.n()).done;){var Fn=Ln.value;(Fn.target.offsetHeight>0||Fn.target.offsetWidth>0)&&(Hr(),Ie.setSize("100%","100%"),Ie.refresh())}}catch($n){Pn.e($n)}finally{Pn.f()}});return Bt.observe(Ar.current.parentElement),Bt}if(Ie){var jt=Qt();return function(){jt.unobserve(Ar.current.parentElement)}}},[Ie,Hr]),Object(v.useEffect)(function(){if(Ie){for(var Qt=[],jt=function(){var Fn=Dn[Bt];Pn=Object(t.a)(Fn,2);var $n=Pn[0],zn=Pn[1],pn=Object(w.a)({},$n,function(){sa(zn)});Qt.push(pn),Ie.addKeyMap(pn)},Bt=0,Dn=Object.entries(V);Bt<Dn.length;Bt++){var Pn;jt()}return function(){var Ln=Object(ve.a)(Qt),Fn;try{for(Ln.s();!(Fn=Ln.n()).done;){var $n=Fn.value;Ie.removeKeyMap($n)}}catch(zn){Ln.e(zn)}finally{Ln.f()}}}},[Ie]),Object(v.useEffect)(function(){wt!==Pa&&Fr(wt)},[wt]),Object(W.a)(function(){if(!jn&&yr>0){var Qt=new Date().getTime(),jt=window.sessionStorage.getItem(at);Qt>=yr+a&&(!jt||jt!==nr)&&(window.sessionStorage.setItem(at,nr),Tr(!0))}},a),Object(v.useEffect)(function(){Rr(De)},[Ie,De]),Object(v.useEffect)(function(){Ie&&(tn&&Ie.focus())},[Ie,tn]),Object(v.useEffect)(function(){if(ha&&Ie){var Qt=function(Dn){var Pn=Dn.target;if(pr.current){var Ln=Pn.scrollTop/Pn.scrollHeight;pr.current.scrollTop=pr.current.scrollHeight*Ln}},jt=Ie.getScrollerElement();return jt.addEventListener("scroll",Qt),function(){jt.removeEventListener("scroll",Qt)}}},[Ie,ha]),Object(v.useEffect)(function(){if(Ie&&ht){var Qt=function(Bt,Dn){ht(Bt,Dn)};return Ie.on("beforeChange",Qt),function(){Ie.off("beforeChange",Qt)}}},[Ie,ht]),Object(v.useEffect)(function(){if(Ie&&Xt){var Qt=function(){Xt(Ie.getValue())};return Ie.on("blur",Qt),function(){Ie.off("blur",Qt)}}},[Ie,Xt]),Object(v.useEffect)(function(){if(Ie){var Qt=function(Bt){var Dn=Bt.getValue();Er(Dn),br(new Date().getTime()),Bt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),et&&et(Dn)};return Ie.on("change",Qt),function(){Ie.off("change",Qt)}}},[Ie,et]),Object(v.useEffect)(function(){Ie&&(Qe==null?(Ie.setValue(""),Er("")):Qe!==Ie.getValue()&&(Ie.setValue(Qe),Er(Qe),Ie.setCursor(Ie.lineCount(),0)))},[Ie,Qe]);var sa=Object(v.useCallback)(function(Qt){var jt=Ie.getCursor(),Bt=Ie.getSelection(),Dn=Bt.split(`
|
|
|
`);switch(Qt){case"bold":return Ie.replaceSelection("**"+Bt+"**"),Bt===""&&Ie.setCursor(jt.line,jt.ch+2),Ie.focus();case"italic":return Ie.replaceSelection("*"+Bt+"*"),Bt===""&&Ie.setCursor(jt.line,jt.ch+1),Ie.focus();case"code":return Ie.replaceSelection("`"+Bt+"`"),Bt===""&&Ie.setCursor(jt.line,jt.ch+1),Ie.focus();case"inline-latex":return Ie.replaceSelection("`$$"+Bt+"$$`"),Bt===""&&Ie.setCursor(jt.line,jt.ch+3),Ie.focus();case"latex":return Ie.replaceSelection("```latex\n"+Bt+"\n```"),Ie.setCursor(jt.line+1,Bt.length+1),Ie.focus();case"line-break":return Ie.replaceSelection(`<br/>
|
|
|
`),Ie.focus();case"list-ul":return Bt===""?Ie.replaceSelection("- "+Bt):Ie.replaceSelection(Dn.map(function(Pn){return Pn===""?"":"- ".concat(Pn)}).join(`
|
|
|
`)),Ie.focus();case"list-ol":return Bt===""?Ie.replaceSelection("1. "+Bt):Ie.replaceSelection(Dn.map(function(Pn,Ln){return Pn===""?"":"".concat(Ln+1,". ").concat(Pn)}).join(`
|
|
|
`)),Ie.focus();case"add-null-ch":return Bt===""&&Ie.setCursor(jt.line,jt.ch+1),Ie.replaceSelection(c),Ie.focus();case"inster-template-1":return Bt===""&&Ie.setCursor(jt.line,jt.ch),Ie.replaceSelection(R),Ie.focus();case"eraser":return Ie.setValue(""),Ie.focus();case"trigger-watch":return Rr(!ha),Ie.focus();case"trigger-full-screen":return Fr(!Pa),Ie.focus();case se:ma(se);return;case q:ma(q);return;case ue:ma(ue);return;case Y:ma(Y);return;default:throw new Error}},[Ie,ha,Pa]),xr=Object(v.useCallback)(function(Qt){ma("");switch(Ca){case se:var jt=Qt.title,Bt=Qt.link;return Ie.replaceSelection("[".concat(jt,"](").concat(Bt,")")),Ie.focus();case q:var Dn=Qt.language,Pn=Qt.content;return Ie.replaceSelection(["```"+Dn,Pn,"```"].join(`
|
|
|
`)),Ie.focus();case ue:var Ln=Qt.src,Fn=Qt.alt;return Ie.replaceSelection(".concat(Ln,' "').concat(Fn,'" )')),Ie.focus();case Y:for(var $n=Qt.row,zn=Qt.col,pn=Qt.align,Vr=`
|
|
|
`,wr=0;wr<$n;wr++){for(var Yr=[],Jr=[],Zr=0;Zr<zn;Zr++)wr===1&&Jr.push(B[pn]),Yr.push(" ");wr===1&&(Vr+="| ".concat(Jr.join(" | "),` |
|
|
|
`)),Vr+="| ".concat(Yr.join(zn===1?"":" | "),` |
|
|
|
`)}return Ie.replaceSelection(Vr+`
|
|
|
`),Ie.focus();default:throw new Error}},[Ie,Ca]),ci=Object(v.useMemo)(function(){switch(Ca){case se:return l.a.createElement(j,{callback:xr,onCancel:hr});case q:return l.a.createElement(N.b,{callback:xr,onCancel:hr});case ue:return l.a.createElement(ae,{callback:xr,onCancel:hr});case Y:return l.a.createElement(ee,{callback:xr,onCancel:hr});default:return null}},[Ca]);function hr(){ma("")}Object(v.useEffect)(function(){if(Ur.current){var Qt=function($n){Pn=!0,Ln=$n.pageY},jt=function(){Pn=!1},Bt=function($n){if(Pn){var zn=$n.pageY-Ln;zn<0&&(zn=0),zn>300&&(zn=300);var pn=$t+zn+"px";Gr(pn)}},Dn=Ur.current,Pn=!1,Ln=0;return Dn.addEventListener("mousedown",Qt),document.addEventListener("mousemove",Bt),document.addEventListener("mouseup",jt),function(){Dn.removeEventListener("mousedown",Qt),document.removeEventListener("mousemove",Bt),document.removeEventListener("mouseup",jt)}}},[Ie,Ur]),Object(v.useEffect)(function(){Gr($t)},[$t]);var di=y(Dt),fi=y(Kr),pi={width:di,height:fi},Di=Object(v.useMemo)(function(){if(yr){var Qt=new Date(yr),jt=Qt.getHours(),Bt=Qt.getMinutes(),Dn=Qt.getSeconds();return jt=jt<10?"0"+jt:jt,Bt=Bt<10?"0"+Bt:Bt,Dn=Dn<10?"0"+Dn:Dn,"".concat(jt,":").concat(Bt,":").concat(Dn)}return 0},[yr]);function Ei(){window.sessionStorage.removeItem(at),Tr(!1),br(0)}function Si(){Tr(!1),br(0),Ie.setValue(window.sessionStorage.getItem(at))}return l.a.createElement(v.Fragment,null,l.a.createElement("div",{className:"markdown-editor-wrapper",ref:Ra},l.a.createElement("div",{className:"markdown-editor-container ".concat(Zn," ").concat(ha?"on-preview":""," ").concat(An?"mini":""," ").concat(Pa?"full-screen":""),style:pi},l.a.createElement(D,{insertTemp:Ye,watch:ha,fullScreen:Pa,showNullButton:wn,onActionCallback:sa}),l.a.createElement("div",{className:"markdown-editor-body"},l.a.createElement("div",{className:"codemirror-container"},l.a.createElement("textarea",{ref:Ar,placeholder:Vn})),ha?l.a.createElement("div",{ref:pr,className:"preview-container"},l.a.createElement(m.a,{value:nr})):null))),tt?l.a.createElement("a",{ref:Ur,className:"editor-resize"}):null,l.a.createElement(h.a,null,xe[Ca]?l.a.createElement(it.a,{centered:!0,title:xe[Ca],visible:!0,onCancel:hr,footer:null},ci):null))}},QcdW:function(Ue,pe,U){},RMFE:function(Ue,pe){Ue.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWgAAAFyCAYAAADYqEAoAAAAAXNSR0IArs4c6QAADetJREFUeAHt1jFqXUEQRUHLaP9b/jZObmYU9MAJSlGDxNBUPw76+vz9+eWHAAECBHICv3MbWYgAAQIE/gkItA+BAAECUQGBjh7GWgQIEBBo3wABAgSiAgIdPYy1CBAgINC+AQIECEQFBDp6GGsRIEBAoH0DBAgQiAoIdPQw1iJAgIBA+wYIECAQFRDo6GGsRYAAAYH2DRAgQCAqINDRw1iLAAECAu0bIECAQFRAoKOHsRYBAgQE2jdAgACBqIBARw9jLQIECAi0b4AAAQJRAYGOHsZaBAgQEGjfAAECBKICAh09jLUIECAg0L4BAgQIRAUEOnoYaxEgQECgfQMECBCICgh09DDWIkCAgED7BggQIBAVEOjoYaxFgAABgfYNECBAICog0NHDWIsAAQIC7RsgQIBAVECgo4exFgECBATaN0CAAIGogEBHD2MtAgQICLRvgAABAlEBgY4exloECBAQaN8AAQIEogICHT2MtQgQICDQvgECBAhEBQQ6ehhrESBAQKB9AwQIEIgKCHT0MNYiQICAQPsGCBAgEBUQ6OhhrEWAAAGB9g0QIEAgKiDQ0cNYiwABAgLtGyBAgEBUQKCjh7EWAQIEBNo3QIAAgaiAQEcPYy0CBAh8/5Tg6+vrp3/q7wgQIEDgPwKfz+c/v92v/Ac9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICXz/dJvP5/PTP/V3BAgQIHAg4D/oA0RPECBA4IWAQL9Q9SYBAgQOBAT6ANETBAgQeCEg0C9UvUmAAIEDAYE+QPQEAQIEXggI9AtVbxIgQOBAQKAPED1BgACBFwIC/ULVmwQIEDgQEOgDRE8QIEDghYBAv1D1JgECBA4EBPoA0RMECBB4ISDQL1S9SYAAgQMBgT5A9AQBAgReCAj0C1VvEiBA4EBAoA8QPUGAAIEXAgL9QtWbBAgQOBAQ6ANETxAgQOCFgEC/UPUmAQIEDgQE+gDREwQIEHghINAvVL1JgACBAwGBPkD0BAECBF4ICPQLVW8SIEDgQECgDxA9QYAAgRcCAv1C1ZsECBA4EBDoA0RPECBA4IWAQL9Q9SYBAgQOBAT6ANETBAgQeCEg0C9UvUmAAIEDAYE+QPQEAQIEXggI9AtVbxIgQOBAQKAPED1BgACBFwIC/ULVmwQIEDgQEOgDRE8QIEDghYBAv1D1JgECBA4EBPoA0RMECBB4ISDQL1S9SYAAgQMBgT5A9AQBAgReCAj0C1VvEiBA4EBAoA8QPUGAAIEXAgL9QtWbBAgQOBAQ6ANETxAgQOCFgEC/UPUmAQIEDgQE+gDREwQIEHghINAvVL1JgACBAwGBPkD0BAECBF4ICPQLVW8SIEDgQECgDxA9QYAAgRcCAv1C1ZsECBA4EBDoA0RPECBA4IXAH7PYDOHnuk1pAAAAAElFTkSuQmCC"},UZu5:function(Ue,pe,U){},VlDO:function(Ue,pe,U){Ue.exports={flex_box_center:"flex_box_center___3v0of",flex_space_between:"flex_space_between___2ON3P",flex_box_vertical_center:"flex_box_vertical_center___1dze4",flex_box_center_end:"flex_box_center_end___VPAo5",flex_box_column:"flex_box_column___2f1aL",icons:"icons___hbWcc",shixuns:"shixuns___ed3FZ",buttons:"buttons___7shdA",addStage:"addStage___4vVUv",color4CA:"color4CA___1C3hM",color204:"color204___37f6U",completed:"completed___3Qqbj",actionTabs:"actionTabs___1GrUM",tab:"tab___3Ipqh",s1:"s1___3EKnf",s2:"s2___2nrm0",tabActive:"tabActive___24bZy",learn:"learn___HaTK4"}},W6us:function(Ue,pe){Ue.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAYAAACpSkzOAAAAAXNSR0IArs4c6QAAAv9JREFUSA2dVV1IVEEU/s7sqkuiUAahgREkQVjmS0FEBRWELz1Yj5ZSJBEaVm8RBOFbQSZIQUU9hFT4EqRuBdIP0oOia5lIZBRZoBWYy+a6O3M6s3DxXrurez1wOeee+b7zzZ05dwYIaD0x3dk9rNsD0hAOSgBjDwHTQXmBhZgwB7A8wcwjFI1xYYiw7sA2mshWJqRUHSkkso3b/LMPXJHOw9eaCko6OOUE1muY1pQx490xPuLOO3HZLV7b8BJz9X1QNnbybt8zok/plBlHwlxw5z1CIajbIMwQm87no1xugZeZVVkbN5S28YD5i2mTxmDmkdjm1t/geoux2O5hrpY9vCnhJOWrBzbnmOyr12T5Kg3M8UixunSyF8WJeXQxY7cX5X0jwmvZu9rH+5CeZXMxn1TH4uX/T8gpsfkOF83E0S8zrHRyS3rCu5Iwdo2eobgfzrN0bsCfWVzLWcQSGVt/p4WTxXy/aEM7b0wafBRyKAvPP03QBQoVX5ro82JA+MUYl+h5bKIwkge3IEZELCK1gUVsZZlYhgtcZWmQ6Ai2y5fk6VUYU6mkeaVZv02n9FDviD5m8TJYbf1KzOFGY6bFsB60tSmhn4SJ1HnA7JTZJCMR9TRTnFGyEhE315B6KHUjIhxWpPrCh6qoVwD2WTDCLxFemVmuWE0VfRPX6hTx7TrRGHIAQX02rq+QdE6XbJQOKmI5Ga4P0VfIticx7vrgl0xZjl9rW5KvkB1Yk4dzMsP3Ns7JBFtcBGksf8sqZI+Swnzsl3PsjT91IWsxFjt+gmYXst4oq5CFfTpNU43N2BtSaJBig16q/G+Ss2MWY7GLx93v0ua5W+YOSiFzfUAutu+N9DNXdk5C5R28Op1GnRQtcBc2QFwV4L4ILnnjWo7nKncXccc6jcPGoM2dc2Kex4TEUec9m8/pi44+4lD/FHbInxVxF9KM+I+zGLAHsTvvF+ck5BBLr3OL3KRNcjyxNMGVyWa654wt53NaOqeIzColcVL+L1nJTOwMLev/AaJkF76u7DFoAAAAAElFTkSuQmCC"},WPnJ:function(Ue,pe,U){Ue.exports={"sort-list-panel":"sort-list-panel___3NFo7","sort-list-tip":"sort-list-tip___1C7gJ","ant-drawer-content":"ant-drawer-content___z72s9","dragging-li":"dragging-li___2fI-b","task-list-container":"task-list-container___O3FkA",imgradius:"imgradius___2naxh",directionItemWrap:"directionItemWrap___12VCj",groupActionWrap:"groupActionWrap___3JLr9",teamHeight:"teamHeight___1JFgn",divHeight:"divHeight___3DCc8"}},WdTA:function(Ue,pe,U){Ue.exports=U.p+"static/studnetqun.a5754d96.png"},XzQ7:function(Ue,pe,U){Ue.exports={flex_box_center:"flex_box_center___N67ls",flex_space_between:"flex_space_between___2XYCO",flex_box_vertical_center:"flex_box_vertical_center___1LsqB",flex_box_center_end:"flex_box_center_end___3WDUW",flex_box_column:"flex_box_column___MIvMP",bg:"bg___1FRP8",wrap:"wrap___3ESp_",content:"content___2BtE3",wrapTabs:"wrapTabs___1HFCe",intro:"intro___3Wt0Q",introTitle:"introTitle___3vQWN"}},"Ye+n":function(Ue,pe,U){Ue.exports={advertisementModal:"advertisementModal___2ZrRs",bodyHeight:"bodyHeight___3x6vP"}},cCSd:function(Ue,pe,U){Ue.exports={flex_box_center:"flex_box_center___3Q6yG",flex_space_between:"flex_space_between___S_CUk",flex_box_vertical_center:"flex_box_vertical_center___2Gdbl",flex_box_center_end:"flex_box_center_end___1xrL5",flex_box_column:"flex_box_column___16e2L",wrp:"wrp___3ZwBI",drawer:"drawer___1PTh9",menu:"menu___DFNiI",actived:"actived___1sNU9",actived2:"actived2___2BWt2",listItem:"listItem___1ylrh",info:"info___F7JZE",title:"title___2kNmP",titleLeft:"titleLeft___1h-DH",titleRight:"titleRight___hT8FM",search:"search___1KEgc",description:"description___31f06",menuCourse:"menuCourse___3RVET"}},dejd:function(Ue,pe,U){},dwhp:function(Ue,pe,U){},"eT+N":function(Ue,pe,U){"use strict";var Xe,it;/*!
|
|
|
* wordcloud2.js
|
|
|
* http://timdream.org/wordcloud2.js/
|
|
|
*
|
|
|
* Copyright 2011 - 2013 Tim Chien
|
|
|
* Released under the MIT license
|
|
|
*/window.setImmediate||(window.setImmediate=function(){return window.msSetImmediate||window.webkitSetImmediate||window.mozSetImmediate||window.oSetImmediate||function(){if(!window.postMessage||!window.addEventListener)return null;var w=[void 0],v="zero-timeout-message",l=function(r){var u=w.length;return w.push(r),window.postMessage(v+u.toString(36),"*"),u};return window.addEventListener("message",function(r){if(typeof r.data!="string"||r.data.substr(0,v.length)!==v)return;r.stopImmediatePropagation();var u=parseInt(r.data.substr(v.length),36);if(!w[u])return;w[u](),w[u]=void 0},!0),window.clearImmediate=function(r){if(!w[r])return;w[r]=void 0},l}()||function(w){window.setTimeout(w,0)}}()),window.clearImmediate||(window.clearImmediate=function(){return window.msClearImmediate||window.webkitClearImmediate||window.mozClearImmediate||window.oClearImmediate||function(w){window.clearTimeout(w)}}()),function(ve){var t=function(){var r=document.createElement("canvas");if(!r||!r.getContext)return!1;var u=r.getContext("2d");return u.getImageData&&(u.fillText&&Array.prototype.some)?!!Array.prototype.push:!1}(),w=function(){if(!t)return;for(var r=document.createElement("canvas").getContext("2d"),u=20,o,e;u;){if(r.font=u.toString(10)+"px sans-serif",r.measureText("\uFF37").width===o&&r.measureText("m").width===e)return u+1;o=r.measureText("\uFF37").width,e=r.measureText("m").width,u--}return 0}(),v=function(r){for(var u,o,e=r.length;e;u=Math.floor(Math.random()*e),o=r[--e],r[e]=r[u],r[u]=o);return r},l=function(r,u){if(!t)return;Array.isArray(r)||(r=[r]),r.forEach(function(J,re){if(typeof J=="string"){if(r[re]=document.getElementById(J),!r[re])throw"The element id specified is not found."}else if(!J.tagName&&!J.appendChild)throw"You must pass valid HTML elements, or ID of the element."});var o={list:[],fontFamily:'"Trebuchet MS", "Heiti TC", "\u5FAE\u8EDF\u6B63\u9ED1\u9AD4", "Arial Unicode MS", "Droid Fallback Sans", sans-serif',fontWeight:"normal",color:"random-dark",minSize:0,weightFactor:1,clearCanvas:!0,backgroundColor:"#fff",gridSize:8,drawOutOfBound:!1,origin:null,drawMask:!1,maskColor:"rgba(255,0,0,0.3)",maskGapWidth:.3,wait:0,abortThreshold:0,abort:function(){},minRotation:-Math.PI/2,maxRotation:Math.PI/2,rotationStep:.1,shuffle:!0,rotateRatio:.1,shape:"circle",ellipticity:.65,classes:null,hover:null,click:null};if(u)for(var e in u)e in o&&(o[e]=u[e]);if(typeof o.weightFactor!="function"){var n=o.weightFactor;o.weightFactor=function(re){return re*n}}if(typeof o.shape!="function")switch(o.shape){case"circle":default:o.shape="circle";break;case"cardioid":o.shape=function(re){return 1-Math.sin(re)};break;case"diamond":case"square":o.shape=function(re){var ee=re%(2*Math.PI/4);return 1/(Math.cos(ee)+Math.sin(ee))};break;case"triangle-forward":o.shape=function(re){var ee=re%(2*Math.PI/3);return 1/(Math.cos(ee)+Math.sqrt(3)*Math.sin(ee))};break;case"triangle":case"triangle-upright":o.shape=function(re){var ee=(re+Math.PI*3/2)%(2*Math.PI/3);return 1/(Math.cos(ee)+Math.sqrt(3)*Math.sin(ee))};break;case"pentagon":o.shape=function(re){var ee=(re+.955)%(2*Math.PI/5);return 1/(Math.cos(ee)+.726543*Math.sin(ee))};break;case"star":o.shape=function(re){var ee=(re+.955)%(2*Math.PI/10);return(re+.955)%(2*Math.PI/5)-2*Math.PI/10>=0?1/(Math.cos(2*Math.PI/10-ee)+3.07768*Math.sin(2*Math.PI/10-ee)):1/(Math.cos(ee)+3.07768*Math.sin(ee))};break}o.gridSize=Math.max(Math.floor(o.gridSize),4);var i=o.gridSize,s=i-o.maskGapWidth,d=Math.abs(o.maxRotation-o.minRotation),m=Math.min(o.maxRotation,o.minRotation),f=o.rotationStep,A,b,p,S,D,h,E;function O(J,re){return"hsl("+(Math.random()*360).toFixed()+","+(Math.random()*30+70).toFixed()+"%,"+(Math.random()*(re-J)+J).toFixed()+"%)"}switch(o.color){case"random-dark":E=function(){return O(10,50)};break;case"random-light":E=function(){return O(50,90)};break;default:typeof o.color=="function"&&(E=o.color);break}var C=null;typeof o.classes=="function"&&(C=o.classes);var g=!1,M=[],T,L=function(re){var ee=re.currentTarget,se=ee.getBoundingClientRect(),ue,q;re.touches?(ue=re.touches[0].clientX,q=re.touches[0].clientY):(ue=re.clientX,q=re.clientY);var Y=ue-se.left,ie=q-se.top,B=Math.floor(Y*(ee.width/se.width||1)/i),W=Math.floor(ie*(ee.height/se.height||1)/i);return M[B][W]},j=function(re){var ee=L(re);if(T===ee)return;if(T=ee,!ee){o.hover(void 0,void 0,re);return}o.hover(ee.item,ee.dimension,re)},N=function(re){var ee=L(re);if(!ee)return;o.click(ee.item,ee.dimension,re),re.preventDefault()},G=[],$=function(re){if(G[re])return G[re];var ee=re*8,se=ee,ue=[];for(re===0&&ue.push([S[0],S[1],0]);se--;){var q=1;o.shape!=="circle"&&(q=o.shape(se/ee*2*Math.PI)),ue.push([S[0]+re*q*Math.cos(-se/ee*2*Math.PI),S[1]+re*q*Math.sin(-se/ee*2*Math.PI)*o.ellipticity,se/ee*2*Math.PI])}return G[re]=ue,ue},H=function(){return o.abortThreshold>0&&new Date().getTime()-h>o.abortThreshold},F=function(){return o.rotateRatio===0||Math.random()>o.rotateRatio?0:d===0?m:m+Math.round(Math.random()*d/f)*f},te=function(re,ee,se){var ue=!1,q=o.weightFactor(ee);if(q<=o.minSize)return!1;var Y=1;q<w&&(Y=function(){for(var ft=2;ft*q<w;)ft+=2;return ft}());var ie=document.createElement("canvas"),B=ie.getContext("2d",{willReadFrequently:!0});B.font=o.fontWeight+" "+(q*Y).toString(10)+"px "+o.fontFamily;var W=B.measureText(re).width/Y,oe=Math.max(q*Y,B.measureText("m").width,B.measureText("\uFF37").width)/Y,ne=W+oe*2,me=oe*3,P=Math.ceil(ne/i),a=Math.ceil(me/i);ne=P*i,me=a*i;var c=-W/2,R=-oe*.4,y=Math.ceil((ne*Math.abs(Math.sin(se))+me*Math.abs(Math.cos(se)))/i),x=Math.ceil((ne*Math.abs(Math.cos(se))+me*Math.abs(Math.sin(se)))/i),Q=x*i,V=y*i;ie.setAttribute("width",Q),ie.setAttribute("height",V),ue&&(document.body.appendChild(ie),B.save()),B.scale(1/Y,1/Y),B.translate(Q*Y/2,V*Y/2),B.rotate(-se),B.font=o.fontWeight+" "+(q*Y).toString(10)+"px "+o.fontFamily,B.fillStyle="#000",B.textBaseline="middle",B.fillText(re,c*Y,(R+q*.5)*Y);var xe=B.getImageData(0,0,Q,V).data;if(H())return!1;ue&&(B.strokeRect(c*Y,R,W*Y,oe*Y),B.restore());for(var be=[],ce=x,Se,Qe,et,he=[y/2,x/2,y/2,x/2];ce--;)for(Se=y;Se--;){et=i;e:{for(;et--;)for(Qe=i;Qe--;)if(xe[((Se*i+et)*Q+(ce*i+Qe))*4+3]){be.push([ce,Se]),ce<he[3]&&(he[3]=ce),ce>he[1]&&(he[1]=ce),Se<he[0]&&(he[0]=Se),Se>he[2]&&(he[2]=Se),ue&&(B.fillStyle="rgba(255, 0, 0, 0.5)",B.fillRect(ce*i,Se*i,i-.5,i-.5));break e}ue&&(B.fillStyle="rgba(0, 0, 255, 0.5)",B.fillRect(ce*i,Se*i,i-.5,i-.5))}}return ue&&(B.fillStyle="rgba(0, 255, 0, 0.5)",B.fillRect(he[3]*i,he[0]*i,(he[1]-he[3]+1)*i,(he[2]-he[0]+1)*i)),{mu:Y,occupied:be,bounds:he,gw:x,gh:y,fillTextOffsetX:c,fillTextOffsetY:R,fillTextWidth:W,fillTextHeight:oe,fontSize:q}},ae=function(re,ee,se,ue,q){for(var Y=q.length;Y--;){var ie=re+q[Y][0],B=ee+q[Y][1];if(ie>=b||B>=p||ie<0||B<0){if(!o.drawOutOfBound)return!1;continue}if(!A[ie][B])return!1}return!0},K=function(re,ee,se,ue,q,Y,ie,B,W){var oe=se.fontSize,ne;E?ne=E(ue,q,oe,Y,ie):ne=o.color;var me;C?me=C(ue,q,oe,Y,ie):me=o.classes;var P,a=se.bounds;P={x:(re+a[3])*i,y:(ee+a[0])*i,w:(a[1]-a[3]+1)*i,h:(a[2]-a[0]+1)*i},r.forEach(function(c){if(c.getContext){var R=c.getContext("2d"),y=se.mu;R.save(),R.scale(1/y,1/y),R.font=o.fontWeight+" "+(oe*y).toString(10)+"px "+o.fontFamily,R.fillStyle=ne,R.translate((re+se.gw/2)*i*y,(ee+se.gh/2)*i*y),B!==0&&R.rotate(-B),R.textBaseline="middle",R.fillText(ue,se.fillTextOffsetX*y,(se.fillTextOffsetY+oe*.5)*y),R.restore()}else{var x=document.createElement("span"),Q="";Q="rotate("+-B/Math.PI*180+"deg) ",se.mu!==1&&(Q+="translateX(-"+se.fillTextWidth/4+"px) scale("+1/se.mu+")");var V={position:"absolute",display:"block",font:o.fontWeight+" "+oe*se.mu+"px "+o.fontFamily,left:(re+se.gw/2)*i+se.fillTextOffsetX+"px",top:(ee+se.gh/2)*i+se.fillTextOffsetY+"px",width:se.fillTextWidth+"px",height:se.fillTextHeight+"px",lineHeight:oe+"px",whiteSpace:"nowrap",transform:Q,webkitTransform:Q,msTransform:Q,transformOrigin:"50% 40%",webkitTransformOrigin:"50% 40%",msTransformOrigin:"50% 40%"};ne&&(V.color=ne),x.textContent=ue;for(var xe in V)x.style[xe]=V[xe];if(W)for(var be in W)x.setAttribute(be,W[be]);me&&(x.className+=me),c.appendChild(x)}})},k=function(re,ee,se,ue,q){if(re>=b||ee>=p||re<0||ee<0)return;if(A[re][ee]=!1,se){var Y=r[0].getContext("2d");Y.fillRect(re*i,ee*i,s,s)}g&&(M[re][ee]={item:q,dimension:ue})},I=function(re,ee,se,ue,q,Y){var ie=q.occupied,B=o.drawMask,W;B&&(W=r[0].getContext("2d"),W.save(),W.fillStyle=o.maskColor);var oe;if(g){var ne=q.bounds;oe={x:(re+ne[3])*i,y:(ee+ne[0])*i,w:(ne[1]-ne[3]+1)*i,h:(ne[2]-ne[0]+1)*i}}for(var me=ie.length;me--;){var P=re+ie[me][0],a=ee+ie[me][1];if(P>=b||a>=p||P<0||a<0)continue;k(P,a,B,oe,Y)}B&&W.restore()},z=function(re){var ee,se,ue;Array.isArray(re)?(ee=re[0],se=re[1]):(ee=re.word,se=re.weight,ue=re.attributes);var q=F(),Y=te(ee,se,q);if(!Y)return!1;if(H())return!1;if(!o.drawOutOfBound){var ie=Y.bounds;if(ie[1]-ie[3]+1>b||ie[2]-ie[0]+1>p)return!1}for(var B=D+1,W=function(a){var c=Math.floor(a[0]-Y.gw/2),R=Math.floor(a[1]-Y.gh/2),y=Y.gw,x=Y.gh;return ae(c,R,y,x,Y.occupied)?(K(c,R,Y,ee,se,D-B,a[2],q,ue),I(c,R,y,x,Y,re),{gx:c,gy:R,rot:q,info:Y}):!1};B--;){var oe=$(D-B);o.shuffle&&(oe=[].concat(oe),v(oe));for(var ne=0;ne<oe.length;ne++){var me=W(oe[ne]);if(me)return me}}return null},X=function(re,ee,se){if(ee)return!r.some(function(ue){var q=document.createEvent("CustomEvent");return q.initCustomEvent(re,!0,ee,se||{}),!ue.dispatchEvent(q)},this);r.forEach(function(ue){var q=document.createEvent("CustomEvent");q.initCustomEvent(re,!0,ee,se||{}),ue.dispatchEvent(q)},this)},Z=function(){var re=r[0];if(re.getContext)b=Math.ceil(re.width/i),p=Math.ceil(re.height/i);else{var ee=re.getBoundingClientRect();b=Math.ceil(ee.width/i),p=Math.ceil(ee.height/i)}if(!X("wordcloudstart",!0))return;S=o.origin?[o.origin[0]/i,o.origin[1]/i]:[b/2,p/2],D=Math.floor(Math.sqrt(b*b+p*p)),A=[];var se,ue,q;if(!re.getContext||o.clearCanvas)for(r.forEach(function(y){if(y.getContext){var x=y.getContext("2d");x.fillStyle=o.backgroundColor,x.clearRect(0,0,b*(i+1),p*(i+1)),x.fillRect(0,0,b*(i+1),p*(i+1))}else y.textContent="",y.style.backgroundColor=o.backgroundColor,y.style.position="relative"}),se=b;se--;)for(A[se]=[],ue=p;ue--;)A[se][ue]=!0;else{var Y=document.createElement("canvas").getContext("2d");Y.fillStyle=o.backgroundColor,Y.fillRect(0,0,1,1);var ie=Y.getImageData(0,0,1,1).data,B=re.getContext("2d").getImageData(0,0,b*i,p*i).data;se=b;for(var W,oe;se--;)for(A[se]=[],ue=p;ue--;){oe=i;e:for(;oe--;)for(W=i;W--;)for(q=4;q--;)if(B[((ue*i+oe)*b*i+(se*i+W))*4+q]!==ie[q]){A[se][ue]=!1;break e}A[se][ue]!==!1&&(A[se][ue]=!0)}B=Y=ie=void 0}if(o.hover||o.click){for(g=!0,se=b+1;se--;)M[se]=[];o.hover&&re.addEventListener("mousemove",j),o.click&&(re.addEventListener("click",N),re.addEventListener("touchstart",N),re.addEventListener("touchend",function(y){y.preventDefault()}),re.style.webkitTapHighlightColor="rgba(0, 0, 0, 0)"),re.addEventListener("wordcloudstart",function y(){re.removeEventListener("wordcloudstart",y),re.removeEventListener("mousemove",j),re.removeEventListener("click",N),T=void 0})}q=0;var ne,me;o.wait!==0?(ne=window.setTimeout,me=window.clearTimeout):(ne=window.setImmediate,me=window.clearImmediate);var P=function(x,Q){r.forEach(function(V){V.addEventListener(x,Q)},this)},a=function(x,Q){r.forEach(function(V){V.removeEventListener(x,Q)},this)},c=function y(){a("wordcloudstart",y),me(R)};P("wordcloudstart",c);var R=ne(function y(){if(q>=o.list.length){me(R),X("wordcloudstop",!1),a("wordcloudstart",c);return}h=new Date().getTime();var x=z(o.list[q]),Q=!X("wordclouddrawn",!0,{item:o.list[q],drawn:x});if(H()||Q){me(R),o.abort(),X("wordcloudabort",!1),X("wordcloudstop",!1),a("wordcloudstart",c);return}q++,R=ne(y,o.wait)},o.wait)};Z()};l.isSupported=t,l.minFontSize=w,!(Xe=[],it=function(){return l}.apply(pe,Xe),it!==void 0&&(Ue.exports=it))}(this)},fXAG:function(Ue,pe,U){"use strict";U.d(pe,"j",function(){return Xe}),U.d(pe,"i",function(){return it}),U.d(pe,"k",function(){return ve}),U.d(pe,"eb",function(){return t}),U.d(pe,"o",function(){return w}),U.d(pe,"S",function(){return v}),U.d(pe,"fb",function(){return l}),U.d(pe,"u",function(){return _}),U.d(pe,"v",function(){return r}),U.d(pe,"cb",function(){return u}),U.d(pe,"A",function(){return o}),U.d(pe,"m",function(){return e}),U.d(pe,"Y",function(){return n}),U.d(pe,"s",function(){return i}),U.d(pe,"N",function(){return s}),U.d(pe,"bb",function(){return d}),U.d(pe,"db",function(){return m}),U.d(pe,"l",function(){return f}),U.d(pe,"Q",function(){return A}),U.d(pe,"ab",function(){return b}),U.d(pe,"x",function(){return p}),U.d(pe,"z",function(){return S}),U.d(pe,"X",function(){return D}),U.d(pe,"b",function(){return h}),U.d(pe,"H",function(){return E}),U.d(pe,"a",function(){return O}),U.d(pe,"c",function(){return g}),U.d(pe,"P",function(){return M}),U.d(pe,"g",function(){return T}),U.d(pe,"t",function(){return L}),U.d(pe,"Z",function(){return j}),U.d(pe,"y",function(){return N}),U.d(pe,"B",function(){return G}),U.d(pe,"f",function(){return $}),U.d(pe,"e",function(){return H}),U.d(pe,"W",function(){return F}),U.d(pe,"h",function(){return te}),U.d(pe,"d",function(){return ae}),U.d(pe,"R",function(){return k}),U.d(pe,"n",function(){return I}),U.d(pe,"F",function(){return z}),U.d(pe,"I",function(){return X}),U.d(pe,"D",function(){return Z}),U.d(pe,"E",function(){return J}),U.d(pe,"C",function(){return re}),U.d(pe,"G",function(){return ee}),U.d(pe,"U",function(){return se}),U.d(pe,"q",function(){return ue}),U.d(pe,"r",function(){return q}),U.d(pe,"V",function(){return Y}),U.d(pe,"T",function(){return ie}),U.d(pe,"p",function(){return B}),U.d(pe,"M",function(){return W}),U.d(pe,"L",function(){return oe}),U.d(pe,"J",function(){return ne}),U.d(pe,"K",function(){return me}),U.d(pe,"O",function(){return P}),U.d(pe,"w",function(){return a});var Xe="FETCH_TASK_START",it="FETCH_TASK_FAILURE",ve="FETCH_TASK_SUCCESS",t="UPDATE_TASK_DATA",w="HIDE_EVALUATE_RESULT",v="SHOW_EVALUATE_RESULT",l="UPDATE_TIMESTRAP",_="MOVE_X",r="MOVE_Y",u="TRIGGER_RIGHT_PANEL_MASK ",o="SET_ACTIVE_INDEX",e="GET_TASK_LIST",n="SHOW_TASK_LIST",i="HIDE_TASK_LIST",s="SET_TASK_STAR",d="TRIGGER_ENLARGE_UNITY3D ",m="TRIGGER_TAB_FIXED ",f="GET_DISCUSSES",A="SHOW_DISCUSSES_LOADING",b="TOP_OR_DOWN_DISCUSS",p="PLUS_DISCUSS",S="SET_ACTION_TYPE",D="SHOW_REWARD_DIALOG",h="CANCEL_REWARD_DIALOG",E="SET_REWARD",O="ACTIVE_DISCUSS_INDEX",C="CREATE_DISCUSS",g="DISABLE_DISCUSS",M="SHOW_ANSWER_LOADING",T="FETCH_ANSWER_INFO",L="HIGH_TIP_MODAL",j="SHOW_TIP_MODAL",N="SELECT_UNLOCK_ANSWER",G="SET_CHOOSE_ANSWERS",$="EVAL_CHOOSE_START",H="EVAL_CHOOSE_END",F="SHOW_REP_loading",te="FETCH_REP_CONTENT",ae="EDIT_REP_CONTENT",K="SET_REP_PATH",k="SHOW_EVALUATE_LOADING",I="HIDE_EVALUATE_LOADING",z="SET_EVALUATE_MESSAGE",X="SET_SHOW_DIR",Z="SET_EDITOR_SETTING",J="SET_EDITOR_THEME",re="SET_EDITOR_FONTSIZE",ee="SET_REPOS",se="SHOW_PATH_LIST",ue="HIDE_PATH_LIST",q="HIDE_PICTURE_VIEW",Y="SHOW_PICTURE_VIEW",ie="SHOW_NOTICE",B="HIDE_NOTICE",W="SET_TAB_INDEX",oe="SET_SSH_TABS",ne="SET_SSH_CONFIGDATA",me="SET_SSH_CONFIGDATAARR",P="SET_VNC_LOADING ",a="ON_TAB_TO_SPACE "},"h/US":function(Ue,pe,U){"use strict";var Xe=U("DZo9"),it=U("8z0m"),ve=U("+L6B"),t=U("2/Rp"),w=U("tJVT"),v=U("q1tI"),l=U.n(v),_=U("z7Xi"),r=U("jN4g"),u=U("m3rI"),o=U("w8Aa"),e=U.n(o),n=function(s){var d=s.value,m=s.onChange,f=s.getFileProgress,A=Object(v.useState)(!1),b=Object(w.a)(A,2),p=b[0],S=b[1],D=l.a.createElement(t.a,{loading:p,icon:l.a.createElement(_.a,null)},"\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6"),h=function(){return l.a.createElement("div",{className:e.a.img},l.a.createElement("img",{src:u.a.API_SERVER+"/api/attachments/"+d,alt:"avatar",style:{width:288}}),l.a.createElement("div",null,l.a.createElement(r.a,{onClick:function(){return m("")},style:{fontSize:"16px",color:"red"}})))},E=function(C){if(f&&f(C),C.file.status==="uploading"){S(!0);return}if(C.file.status==="done"){var g,M;S(!1),m(C==null||((g=C.file)===null||g===void 0||((M=g.response)===null||M===void 0))?void 0:M.id)}};return l.a.createElement(l.a.Fragment,null,d?h():l.a.createElement("div",null,l.a.createElement(it.a,{withCredentials:!0,name:"file",showUploadList:!1,action:"".concat(u.a.API_SERVER,"/api/attachments.json"),onChange:E,accept:"image/*"},D),l.a.createElement("div",{className:"mt20 c-light-black"},"\u8BF4\u660E\uFF1A\u652F\u6301\u4E0A\u4F20jpg/png\u7B49\u683C\u5F0F\u6587\u4EF6\uFF0C\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC72M,\u5EFA\u8BAE\u4F7F\u7528288*158\u50CF\u7D20\uFF1B"),l.a.createElement("div",{className:"c-light-black"},"\u5982\u4E0D\u4E0A\u4F20\uFF0C\u9ED8\u8BA4\u4F7F\u7528\u7CFB\u7EDF\u56FE\u7247\u3002")))};pe.a=n},h6EL:function(Ue,pe,U){Ue.exports=U("Ck+y")},ho57:function(Ue,pe){Ue.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAO9JREFUOBFj3H//P8ePj//a/jMyRDH8/y/uZcDCyAAEoZP//QfRxAHG54yMDIv+izHUsYANY/hfyECCdkxL/kv+/89QzviKkYGFgZEhGpdhEvwMDJNiwQ6Gm5G3+D/Di49wLgoDaGgc0///QIdSDfyXZKKaWVCDiDLwxUeQN4kLZBZ8LgSGCcP2i/8Zlh6HqIq2/A9MCPh0MAAjBQ94+YmBYf5hhAJkNkIUlUWUl1G14OeNGog/fIiRHQ1DYkIJvxomRgbG5/iVkCLL+BxoIMMiUrTgUwsqtVlkWZnqHv/+Bypj44BZXxKfBtxyiCoAAHADSWb7p5YAAAAAAElFTkSuQmCC"},jZGp:function(Ue,pe,U){"use strict";var Xe=U("ozfa"),it=U("MJZm"),ve=U("14J3"),t=U("BMrR"),w=U("+L6B"),v=U("2/Rp"),l=U("5Dmo"),_=U("3S7+"),r=U("jCWc"),u=U("kPKH"),o=U("miYZ"),e=U("tsqr"),n=U("WmNS"),i=U.n(n),s=U("9og8"),d=U("2qtc"),m=U("kLXV"),f=U("oBTY"),A=U("tJVT"),b=U("PpiC"),p=U("OaEy"),S=U("2fM7"),D=U("q1tI"),h=U.n(D),E=U("Ty5D"),O=U("9kvl"),C=U("Mgx3"),g=U("1vsH"),M=U("qdXH"),T=U("V0Rq"),L=U("HBuW"),j=U("Dols"),N=U.n(j),G=U("LvDl"),$=U.n(G),H=U("8Skl"),F=U("UESt"),te=U("NLgs"),ae=S.a.Option,K=function(I){var z=I.pathsDetail,X=I.globalSetting,Z=I.user,J=I.loading,re=I.visibleType,ee=I.updateSort,se=I.dispatch,ue=Object(b.a)(I,["pathsDetail","globalSetting","user","loading","visibleType","updateSort","dispatch"]),q=Object(D.useState)([]),Y=Object(A.a)(q,2),ie=Y[0],B=Y[1],W=Object(D.useState)([]),oe=Object(A.a)(W,2),ne=oe[0],me=oe[1],P=Object(E.m)(),a=Object(D.useState)([]),c=Object(A.a)(a,2),R=c[0],y=c[1],x=Object(D.useState)({}),Q=Object(A.a)(x,2),V=Q[0],xe=Q[1];Object(D.useEffect)(function(){if(ue.data&&!Object(G.isEqual)(ue.data,R)){ne=[];var tn=JSON.parse(JSON.stringify(ue.data));ft(tn,0),y(Object(f.a)(tn)),re!="All"?B(Object(f.a)(ne)):B([])}},[JSON.stringify(ue.data),re]),Object(D.useEffect)(function(){var tn,De,Ye;if((tn=z.detail)===null||tn===void 0?void 0:tn.has_start){var rn,at,qt=(rn=z.detail)===null||rn===void 0||((at=rn.courses)===null||at===void 0)?void 0:at.findIndex(function(Xt){var ht;return parseInt((ht=Xt.course_status)===null||ht===void 0?void 0:ht.status)===1});Ye=qt>-1?qt:0}else{var tt,Nt,jn,on,wn,ot=(tt=z.detail)===null||tt===void 0||((Nt=tt.courses)===null||Nt===void 0||((jn=Nt.map(function(Xt){var ht;return parseInt((ht=Xt.course_status)===null||ht===void 0?void 0:ht.status)}))===null||jn===void 0))?void 0:jn.lastIndexOf(2);Ye=ot>-1?ot:0,ot=(on=z.detail)===null||on===void 0||((wn=on.courses)===null||wn===void 0)?void 0:wn.findIndex(function(Xt){var ht;return parseInt((ht=Xt.course_status)===null||ht===void 0?void 0:ht.status)===0}),Ye=ot>-1?ot:Ye}if((De=z.detail)===null||De===void 0?void 0:De.courses){var wt;xe(((wt=z.detail)===null||wt===void 0?void 0:wt.courses[Ye])||{})}},[z.detail]);var be=function(De,Ye){m.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u5B9A\u5220\u9664\u8BE5\u5B9E\u8BAD\u5417\uFF1F",onOk:function(){}})},ce=function(De){m.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u5B9A\u5220\u9664\u8BE5\u7AE0\u8282\u5417\uFF1F",onOk:function(){var Ye=Object(s.a)(i.a.mark(function at(){return i.a.wrap(function(tt){for(;;)switch(tt.prev=tt.next){case 0:case"end":return tt.stop()}},at)}));function rn(){return Ye.apply(this,arguments)}return rn}()})},Se=function(){var tn=Object(s.a)(i.a.mark(function De(Ye,rn){var at;return i.a.wrap(function(tt){for(;;)switch(tt.prev=tt.next){case 0:if(se({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF0C\u8BF7\u7A0D\u540E..."}}),!rn){tt.next=7;break}return tt.next=4,Object(L.z)({id:Ye});case 4:tt.t0=tt.sent,tt.next=10;break;case 7:return tt.next=9,Object(L.A)({id:Ye});case 9:tt.t0=tt.sent;case 10:if(at=tt.t0,se({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),!((at==null?void 0:at.game_identifier)||(at==null?void 0:at.identifier))){tt.next=15;break}return Object(g.I)(rn?"/tasks/".concat(at==null?void 0:at.identifier,"/jupyter"):"/tasks/".concat(at.game_identifier,"?subject_id=").concat(P.pathId||"")),tt.abrupt("return");case 15:(at==null?void 0:at.status)===-3?Object(g.m)():(at==null?void 0:at.status)===2?Qe(at==null?void 0:at.message):(at==null?void 0:at.status)===3&&et(at==null?void 0:at.message);case 16:case"end":return tt.stop()}},De)}));return function(Ye,rn){return tn.apply(this,arguments)}}(),Qe=function tn(De){var Ye;De=((Ye=De)===null||Ye===void 0?void 0:Ye.includes(".json"))?De:"".concat(De,".json"),m.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:h.a.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:function(){var rn=Object(s.a)(i.a.mark(function qt(){var tt,Nt;return i.a.wrap(function(on){for(;;)switch(on.prev=on.next){case 0:return on.next=2,Object(T.O)({url:De});case 2:if(tt=on.sent,tt){on.next=5;break}return on.abrupt("return");case 5:return e.b.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF01"),on.next=8,Object(L.A)({id:tt.shixun_identifier});case 8:if(Nt=on.sent,!(Nt==null?void 0:Nt.game_identifier)){on.next=12;break}return Object(g.I)("/tasks/".concat(Nt.game_identifier)),on.abrupt("return");case 12:(Nt==null?void 0:Nt.status)===2?tn(Nt==null?void 0:Nt.message):(Nt==null?void 0:Nt.status)===3&&et(Nt==null?void 0:Nt.message);case 13:case"end":return on.stop()}},qt)}));function at(){return rn.apply(this,arguments)}return at}()})},et=function(De){m.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:h.a.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",De,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},he=function(De){console.log("onDragEnter:",De)},Dt=function(){var tn=Object(s.a)(i.a.mark(function De(Ye){var rn,at,qt,tt,Nt,jn,on,wn,ot;return i.a.wrap(function(Xt){for(;;)switch(Xt.prev=Xt.next){case 0:if(console.log("onDrop:",Ye),rn=Ye.node.props.eventKey,at=Ye.dragNode.props.eventKey,qt=Ye.node.props.pos.split("-"),tt=Ye.dropPosition-Number(qt[qt.length-1]),!(qt.length>2&&!Ye.node.dragOverGapBottom&&!Ye.node.dragOverGapTop)){Xt.next=7;break}return Xt.abrupt("return",!1);case 7:if(!(Ye.node.dragOver&&Ye.dragNodesKeys.length>1)){Xt.next=9;break}return Xt.abrupt("return",!1);case 9:if(!(qt.length>2&&Ye.dragNodesKeys.length>1)){Xt.next=11;break}return Xt.abrupt("return",!1);case 11:return Nt=function ht(Yt,Zn,Rn){for(var Vn=0;Vn<Yt.length;Vn++){if(Yt[Vn].key===Zn)return Rn(Yt[Vn],Vn,Yt);Yt[Vn].children&&ht(Yt[Vn].children,Zn,Rn)}},jn=Object(f.a)(R),Nt(jn,at,function(ht,Yt,Zn){Zn.splice(Yt,1),on=ht}),Ye.dropToGap?(Ye.node.props.children||[]).length>0&&Ye.node.props.expanded&&tt===1?Nt(jn,rn,function(ht){ht.children=ht.children||[],ht.children.unshift(on)}):(Nt(jn,rn,function(ht,Yt,Zn){wn=Zn,ot=Yt}),tt===-1?wn.splice(ot,0,on):wn.splice(ot+1,0,on)):Nt(jn,rn,function(ht){ht.children=ht.children||[],ht.children.unshift(on)}),Xt.next=17,ee({stage_id:ue.stage_id,list:jn});case 17:ft(jn,0,0,!0),console.log("data:",jn),y(Object(f.a)(jn)),B([].concat(Object(f.a)(ie),[Ye.node.key]));case 21:case"end":return Xt.stop()}},De)}));return function(Ye){return tn.apply(this,arguments)}}(),ft=function tn(De,Ye,rn,at){Ye=Ye||0,De.map(function(qt,tt){try{var Nt;return qt.key2=Ye+1+"-"+(tt+1),qt.key3=ue.index+1+"-"+(tt+1),qt.title="",at||(qt.key=Ye+1+"-"+(tt+1)),Ye?qt.index=rn+"-"+(tt+1):qt.index=qt.key3,((Nt=qt.children)===null||Nt===void 0?void 0:Nt.length)&&(ne.push(qt.key2),tn(qt.children,qt.key2,qt.index,at)),qt}catch(jn){}})},$t=function(De){var Ye=De.learning_status,rn=De.name,at=(Ye==null?void 0:Ye[0])==="can"&&(Ye==null?void 0:Ye[1])==="try";return at?h.a.createElement("div",{className:N.a.learn},h.a.createElement("span",{className:N.a.name},rn),h.a.createElement("span",{className:N.a.sign},"\u514D\u8D39\u8BD5\u5B66")):rn},fn=function(De){if(re!=="All")return;ie.includes(De)?B(ie.filter(function(Ye){return Ye!=De})):B(ie.concat(De))},An=function(){var tn=Object(s.a)(i.a.mark(function De(Ye){return i.a.wrap(function(at){for(;;)switch(at.prev=at.next){case 0:if(Object(te.e)(se)){at.next=2;break}return at.abrupt("return");case 2:if(!(Ye==null?void 0:Ye.need_authorize)){at.next=5;break}return Object(te.a)(!1),at.abrupt("return");case 5:if(!(V==null?void 0:V.course_id)){at.next=8;break}return at.next=8,Object(C.J)({id:V==null?void 0:V.course_id});case 8:Se(Ye.identifier,Ye.is_jupyter||Ye.is_jupyter_lab);case 9:case"end":return at.stop()}},De)}));return function(Ye){return tn.apply(this,arguments)}}(),xn=function(){var tn=Object(s.a)(i.a.mark(function De(Ye){var rn,at,qt;return i.a.wrap(function(Nt){for(;;)switch(Nt.prev=Nt.next){case 0:if(Object(te.e)(se)){Nt.next=2;break}return Nt.abrupt("return");case 2:if(!(!((rn=Z.userInfo)===null||rn===void 0?void 0:rn.admin)&&!((at=Z.userInfo)===null||at===void 0?void 0:at.business)&&!Ye.can_view)){Nt.next=4;break}return Nt.abrupt("return",m.a.info({centered:!0,width:400,okText:"\u77E5\u9053\u5566",icon:null,content:h.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")}));case 4:Ye.link&&Object(M.o)({is_f:1,id:Ye.id,point:0,total:0}),qt=(ue==null?void 0:ue.course_id)?"course_id=".concat(ue==null?void 0:ue.course_id):"subject_id=".concat(P.pathId||ue.subject_id),Object(g.I)(Ye.link||"/video/".concat(Ye.id,"?").concat(qt)),Ye.last_point>0||(V==null?void 0:V.course_id)&&Object(C.J)({id:V==null?void 0:V.course_id});case 8:case"end":return Nt.stop()}},De)}));return function(Ye){return tn.apply(this,arguments)}}();return h.a.createElement(h.a.Fragment,null,h.a.createElement(it.a,{className:N.a.tree,disabled:ue.disabled,expandedKeys:Object(f.a)(ie),draggable:!0,onDragEnter:he,onDrop:Dt,onExpand:fn,blockNode:!0,titleRender:function(De){var Ye,rn,at,qt,tt=De;if(tt.item_type!==re&&re!=="All")return null;var Nt=De.index.slice(0,1)==="1",jn=(De==null||((Ye=De.learning_status)===null||Ye===void 0)?void 0:Ye[0])==="can";return h.a.createElement(t.a,{align:"middle",className:"font14",onClick:function(){return fn(tt.key)}},h.a.createElement(u.a,{flex:"30px"},De.item_type==="Shixun"?h.a.createElement("i",{className:"iconfont icon-shixunti2 c-light-primary font20"}):De.item_type==="VideoItem"?h.a.createElement("i",{className:"iconfont icon-shipin2 c-purple-8C1 font20"}):De.item_type==="StageCatalog"?h.a.createElement("i",{className:"iconfont icon-kongbai c-brilliant-blue font20"}):h.a.createElement("i",{className:"iconfont icon-kejian1 c-cyan-blue font20"})),h.a.createElement(u.a,{flex:"1",className:"c-grey-333"},ue.cust_seq&&h.a.createElement("span",{className:"mr10"},De.index),De.item_type!=="Attachment"&&$t(De),De.item_type==="Attachment"&&h.a.createElement("a",{target:"_blank",onClick:Object(s.a)(i.a.mark(function on(){var wn;return i.a.wrap(function(wt){for(;;)switch(wt.prev=wt.next){case 0:if(Object(te.e)(se)){wt.next=2;break}return wt.abrupt("return");case 2:if(!(V==null?void 0:V.course_id)){wt.next=6;break}return wt.next=5,Object(C.J)({id:V==null?void 0:V.course_id});case 5:wn=wt.sent;case 6:wt.t0=De.item_type,wt.next=wt.t0==="Attachment"?9:wt.t0==="VideoItem"?11:wt.t0==="Shixun"?13:15;break;case 9:return Object(g.I)(De.url),wt.abrupt("break",15);case 11:return xn(De),wt.abrupt("break",15);case 13:return An(De),wt.abrupt("break",15);case 15:case"end":return wt.stop()}},on)}))},De.name),De.item_type==="Shixun"&&De.is_unity_3d&&h.a.createElement("span",{style:{background:"#a300d8",color:"#fff",borderRadius:"13px",marginLeft:"5px",width:"68px",height:"20px",display:"inline-block",textAlign:"center",fontSize:"12px"}},"\u865A\u62DF\u4EFF\u771F"),!!((rn=De.schools)===null||rn===void 0?void 0:rn.length)&&h.a.createElement(_.a,{title:"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u9762\u5411\u6307\u5B9A\u5355\u4F4D\u5F00\u653E"},h.a.createElement("i",{className:"iconfont icon-zhidinggongkai1 ml10 c-orange",style:{transform:"translateY(1px)",display:"inline-block"}})),De.item_type==="Shixun"&&!!(De==null?void 0:De.finished_challenges_count)&&h.a.createElement(_.a,{title:"\u5B8C\u6210\u5EA6:".concat(Math.round((De==null?void 0:De.finished_challenges_count)/(De==null?void 0:De.challenges_count)*100),"%")},h.a.createElement("i",{className:"iconfont icon-a-wanchengdu100 ml10 ".concat((De==null?void 0:De.finished_challenges_count)-(De==null?void 0:De.challenges_count)===0?"c-light-green":"c-grey-333"),style:{transform:"translateY(1px)",display:"inline-block"}}))),!ue.disabled&&h.a.createElement("aside",{style:{color:"#1890FF",fontSize:"14px",marginRight:"20px"}},"\u62D6\u52A8\u53EF\u4EE5\u6539\u53D8\u9879\u76EE\u663E\u793A\u987A\u5E8F"),h.a.createElement(u.a,{className:"tr"},!ue.disabled&&h.a.createElement(h.a.Fragment,null,h.a.createElement(_.a,{title:"\u5220\u9664"},h.a.createElement("span",{onClick:function(){ue.deleteStages({id:tt.stage_item_id,stage_id:ue.stage_id})},className:"iconfont icon-shanchu c-grey-c"}))),ue.showVideoPlay&&ue.disabled&&tt.item_type==="VideoItem"&&jn&&h.a.createElement("aside",null,h.a.createElement(v.a,{type:"primary",onClick:Object(s.a)(i.a.mark(function on(){return i.a.wrap(function(ot){for(;;)switch(ot.prev=ot.next){case 0:xn(tt);case 1:case"end":return ot.stop()}},on)}))},tt.last_point>0?"\u7EE7\u7EED\u5B66\u4E60":"\u5F00\u59CB\u5B66\u4E60")),(((at=Z.userInfo)===null||at===void 0?void 0:at.admin)||tt.allow_visit||tt.to_be_built||tt.shixun_status!=="\u6682\u672A\u516C\u5F00"&&tt.shixun_status!=="\u5DF2\u5220\u9664")&&ue.disabled&&tt.item_type==="Shixun"&&jn&&h.a.createElement("aside",null,h.a.createElement(v.a,{className:"ml10",type:"primary",onClick:Object(s.a)(i.a.mark(function on(){return i.a.wrap(function(ot){for(;;)switch(ot.prev=ot.next){case 0:if(Object(te.e)(se)){ot.next=2;break}return ot.abrupt("return");case 2:if(!(V==null?void 0:V.course_id)){ot.next=5;break}return ot.next=5,Object(C.J)({id:V==null?void 0:V.course_id});case 5:window.open("/shixuns/".concat(tt.identifier,"/challenges"));case 6:case"end":return ot.stop()}},on)}))},"\u67E5\u770B\u8BE6\u60C5"),tt.shixun_status!=="\u6682\u672A\u516C\u5F00"&&h.a.createElement(v.a,{className:"ml10",type:"primary",onClick:Object(s.a)(i.a.mark(function on(){return i.a.wrap(function(ot){for(;;)switch(ot.prev=ot.next){case 0:An(tt);case 1:case"end":return ot.stop()}},on)}))},(tt==null?void 0:tt.need_authorize)?"\u9700\u6388\u6743":(De==null?void 0:De.finished_challenges_count)?(De==null?void 0:De.finished_challenges_count)-(De==null?void 0:De.challenges_count)===0?"\u518D\u6B21\u5B9E\u6218":"\u7EE7\u7EED\u5B9E\u6218":"\u5F00\u59CB\u5B9E\u6218")),ue.disabled&&!tt.allow_visit&&!tt.to_be_built&&tt.shixun_status==="\u6682\u672A\u516C\u5F00"&&h.a.createElement("span",{className:N.a.color204},"\u6682\u672A\u516C\u5F00"),!tt.allow_visit&&!tt.to_be_built&&tt.shixun_status==="\u5DF2\u5220\u9664"&&h.a.createElement("span",{className:N.a.color204},"\u5DF2\u5220\u9664"),ue.disabled&&tt.item_type==="Shixun"&&!!tt.challenges_count&&h.a.createElement("span",{className:"exper\u02C6iment-number ml5 c-grey-999"},"\u5B9E\u9A8C\u6570 ",tt.challenges_count),re==="All"&&!!((qt=De.children)===null||qt===void 0?void 0:qt.length)&&h.a.createElement("span",{className:"ml10"},ie.includes(De.key)?h.a.createElement(H.a,null):h.a.createElement(F.a,null))))},treeData:R}))};pe.a=Object(O.a)(function(k){var I=k.pathsDetail,z=k.loading,X=k.user,Z=k.globalSetting;return{pathsDetail:I,globalSetting:Z,user:X,loading:z.effects}})(K)},"kNP/":function(Ue,pe,U){Ue.exports={wrap:"wrap___2juS_",title:"title___2CLX2",radioWrap:"radioWrap___1FMiJ",checkboxWrap:"checkboxWrap___dPm6N",radio:"radio___2vIMS",colorFF0000:"colorFF0000___2Bu8m",pagination:"pagination___2bx8C",createMkdir:"createMkdir___2Zwt9",tree:"tree___2NdBt"}},kSUc:function(Ue,pe,U){},"kaH+":function(Ue,pe,U){"use strict";var Xe=U("+L6B"),it=U("2/Rp"),ve=U("tJVT"),t=U("q1tI"),w=U.n(t),v=U("UZu5"),l=U.n(v),_=U("dhSg"),r=U("rLCj"),u=U("dF/Y"),o=U("4i/N");pe.a=function(){var e=Object(t.useState)(""),n=Object(ve.a)(e,2),i=n[0],s=n[1],d=Object(t.useState)(0),m=Object(ve.a)(d,2),f=m[0],A=m[1],b=Object(t.useRef)("");Object(t.useEffect)(function(){var h=_.a.subscribe("preview-image",function(E){s(E),document.body.style.overflow="hidden"});return h},[]),Object(t.useEffect)(function(){return document.addEventListener("keydown",p),function(){document.removeEventListener("keydown",p)}},[]),Object(t.useEffect)(function(){b.current=i},[i]);function p(h){h.keyCode==27&&b.current&&S()}function S(){document.body.style.overflow="auto",s("")}function D(){A(f+90)}return w.a.createElement(t.Fragment,null,i?w.a.createElement("div",{className:"image-preview-container"},w.a.createElement("div",{className:"button-group"},w.a.createElement(it.a,{onClick:D},"\u65CB\u8F6C",w.a.createElement(r.a,null)),w.a.createElement(it.a,{href:i},"\u4E0B\u8F7D",w.a.createElement(u.a,null)),w.a.createElement(it.a,{onClick:S},"\u5173\u95ED",w.a.createElement(o.a,null))),w.a.createElement("div",{className:"preview-wrp-group"},w.a.createElement("img",{className:"image-preview",src:i,alt:"\u9884\u89C8\u5927\u56FE",style:{transform:"rotate(".concat(f,"deg)")}}))):null)}},kwm0:function(Ue,pe,U){Ue.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"}},lseA:function(Ue,pe,U){Ue.exports={"sort-list-panel":"sort-list-panel___3v1zo","sort-list-tip":"sort-list-tip___ZU19v","ant-drawer-content":"ant-drawer-content___1OfCe","dragging-li":"dragging-li___BZnL9","task-list-container":"task-list-container___1s_AZ",imgradius:"imgradius___1FGzg",directionItemWrap:"directionItemWrap___3LaaO",groupActionWrap:"groupActionWrap___swDtd",bottomdiv:"bottomdiv___1t3po",ml3:"ml3___hQDDB"}},mOS8:function(Ue,pe,U){Ue.exports=U.p+"static/403Qrcode.6c17b6f4.png"},qGJc:function(Ue,pe,U){(function(Xe){var it,it;!function(ve){if(!0)window.OSS=ve(),Ue.exports=ve();else var t}(function(){var ve;return function(){function t(w,v,l){function _(o,e){if(!v[o]){if(!w[o]){var n=typeof it=="function"&⁢if(!e&&n)return it(o,!0);if(r)return r(o,!0);var i=new Error("Cannot find module '"+o+"'");throw i.code="MODULE_NOT_FOUND",i}var s=v[o]={exports:{}};w[o][0].call(s.exports,function(d){return _(w[o][1][d]||d)},s,s.exports,t,w,v,l)}return v[o].exports}for(var r=typeof it=="function"&&it,u=0;u<l.length;u++)_(l[u]);return _}return t}()({1:[function(t,w,v){"use strict";var l=t("./browser/client");l.Buffer=t("buffer").Buffer,l.co=t("co"),l.urllib=t("../shims/xhr"),l.version=t("./browser/version").version,w.exports=l},{"../shims/xhr":244,"./browser/client":2,"./browser/version":5,buffer:38,co:41}],2:[function(t,w,v){(function(l,_){"use strict";function r(K){return K&&K.__esModule?K:{default:K}}function u(K,k){return K[k]||K[k.toLowerCase()]}function o(K,k){var I=g.parse(K);if(!I.protocol){var z=k?"https://":"http://";I=g.parse(z+K)}if(I.protocol!=="http:"&&I.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return I}function e(K,k,I){var z=I?"https://":"http://",X=k?"-internal.aliyuncs.com":".aliyuncs.com";return K.substr(0,"vpc100-oss-cn-".length)==="vpc100-oss-cn-"&&(X=".aliyuncs.com"),g.parse(z+K+X)}function n(){return document&&document.location&&document.location.protocol==="https:"}function i(K,k){if(!(this instanceof i))return new i(K,k);K&&K.inited?this.options=K:this.options=i.initOptions(K),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=j,this.agent=this.options.agent||te),this.ctx=k,this.userAgent=this._getUserAgent(),this.options.amendTimeSkewed=0}var s=t("babel-runtime/regenerator"),d=r(s),m=t("babel-runtime/core-js/object/keys"),f=r(m),A=t("debug")("ali-oss"),b=t("./../../shims/crypto/crypto.js"),p=t("path"),S=t("copy-to"),D=t("mime"),h=t("xml2js"),E=t("humanize-ms"),O=t("agentkeepalive"),C=t("merge-descriptors"),g=t("url"),M=t("is-type-of"),T=t("platform"),L=t("utility"),j=t("urllib"),N=t("./version"),G=t("dateformat"),$=t("bowser"),H=t("../common/signUtils"),F=t("../common/utils"),te=new O;w.exports=i,i.initOptions=function(K){if(!K||!K.accessKeyId||!K.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");var k=n(),I={region:"oss-cn-hangzhou",internal:!1,secure:k,bucket:null,endpoint:null,cname:!1};if((0,f.default)(K).forEach(function(z){K[z]!==void 0&&(I[z]=K[z])}),I.accessKeyId=I.accessKeyId.trim(),I.accessKeySecret=I.accessKeySecret.trim(),I.timeout&&(I.timeout=E(I.timeout)),I.endpoint)I.endpoint=o(I.endpoint,I.secure);else{if(!I.region)throw new Error("require options.endpoint or options.region");I.endpoint=e(I.region,I.internal,I.secure)}return I.inited=!0,I};var ae=i.prototype;C(ae,t("./object")),C(ae,t("./managed_upload")),C(ae,t("../common/multipart")),C(ae,t("../common/thunkpool.js")),i.Wrapper=t("./wrapper"),ae.signature=function(K){return A("authorization stringToSign: %s",K),H.computeSignature(this.options.accessKeySecret,K)},ae.authorization=function(K,k,I,z){var X=H.buildCanonicalString(K.toUpperCase(),k,{headers:z,parameters:I});return H.authorization(this.options.accessKeyId,this.options.accessKeySecret,X)},ae.createRequest=function(K){var k={"x-oss-date":G(+new Date+this.options.amendTimeSkewed,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'"),"x-oss-user-agent":this.userAgent};this.options.stsToken&&(k["x-oss-security-token"]=this.options.stsToken),S(K.headers).to(k),u(k,"Content-Type")||(K.mime===D.default_type&&(K.mime=""),K.mime&&K.mime.indexOf("/")>0?k["Content-Type"]=K.mime:k["Content-Type"]=D.getType(K.mime||p.extname(K.object||""))||"application/octet-stream"),K.content&&(k["Content-Md5"]=b.createHash("md5").update(new _(K.content,"utf8")).digest("base64"),k["Content-Length"]||(k["Content-Length"]=K.content.length));var I=this._getResource(K);k.authorization=this.authorization(K.method,I,K.subres,k);var z=this._getReqUrl(K);A("request %s %s, with headers %j, !!stream: %s",K.method,z,k,!!K.stream);var X=K.timeout||this.options.timeout;return{url:z,params:{agent:this.agent,method:K.method,content:K.content,stream:K.stream,headers:k,timeout:X,writeStream:K.writeStream,customResponse:K.customResponse,ctx:K.ctx||this.ctx}}},ae.request=d.default.mark(function K(k){var I,z,X,Z;return d.default.wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return I=this.createRequest(k),z=void 0,X=void 0,J.prev=3,J.next=6,this.urllib.request(I.url,I.params);case 6:z=J.sent,A("response %s %s, got %s, headers: %j",k.method,I.url,z.status,z.headers),J.next=13;break;case 10:J.prev=10,J.t0=J.catch(3),X=J.t0;case 13:if(Z=void 0,!z||!k.successStatuses||k.successStatuses.indexOf(z.status)!==-1){J.next=26;break}return J.next=17,this.requestError(z);case 17:if(Z=J.sent,Z.code!=="RequestTimeTooSkewed"){J.next=23;break}return this.options.amendTimeSkewed=+new Date(Z.serverTime)-new Date,J.next=22,this.request(k);case 22:return J.abrupt("return",J.sent);case 23:Z.params=k,J.next=30;break;case 26:if(!X){J.next=30;break}return J.next=29,this.requestError(X);case 29:Z=J.sent;case 30:if(!Z){J.next=32;break}throw Z;case 32:if(!k.xmlResponse){J.next=36;break}return J.next=35,this.parseXML(z.data);case 35:z.data=J.sent;case 36:return J.abrupt("return",z);case 37:case"end":return J.stop()}},K,this,[[3,10]])}),ae._getResource=function(K){var k="/";return K.bucket&&(k+=K.bucket+"/"),K.object&&(k+=K.object),k},ae._isIP=function(K){return F._isIP(K)},ae._escape=function(K){return L.encodeURIComponent(K).replace(/%2F/g,"/")},ae._getReqUrl=function(K){var k={};S(this.options.endpoint).to(k);var I=this._isIP(k.hostname),z=this.options.cname;!K.bucket||z||I||(k.host=K.bucket+"."+k.host);var X="/";K.bucket&&I&&(X+=K.bucket+"/"),K.object&&(X+=this._escape(K.object).replace(/\+/g,"%2B")),k.pathname=X;var Z={};if(K.query&&C(Z,K.query),K.subres){var J={};M.string(K.subres)?J[K.subres]="":M.array(K.subres)?K.subres.forEach(function(re){J[re]=""}):J=K.subres,C(Z,J)}return k.query=Z,g.format(k)},ae._getUserAgent=function(){var K=l&&l.browser?"js":"nodejs",k="aliyun-sdk-"+K+"/"+N.version,I=T.description;return!I&&l&&(I="Node.js "+l.version.slice(1)+" on "+l.platform+" "+l.arch),this._checkUserAgent(k+" "+I)},ae._checkUserAgent=function(K){return K.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta")},ae.checkBrowserAndVersion=function(K,k){return $.name===K&&$.version.split(".")[0]===k},ae.parseXML=function(K){return function(k){_.isBuffer(K)&&(K=K.toString()),h.parseString(K,{explicitRoot:!1,explicitArray:!1},k)}},ae.requestError=d.default.mark(function K(k){var I,z,X,Z;return d.default.wrap(function(J){for(;;)switch(J.prev=J.next){case 0:if(I=null,k.data&&k.data.length){J.next=5;break}k.status===-1||k.status===-2?(I=new Error(k.message),I.name=k.name,I.status=k.status,I.code=k.name):(k.status===404?(I=new Error("Object not exists"),I.name="NoSuchKeyError",I.status=404,I.code="NoSuchKey"):k.status===412?(I=new Error("Pre condition failed"),I.name="PreconditionFailedError",I.status=412,I.code="PreconditionFailed"):(I=new Error("Unknow error, status: "+k.status),I.name="UnknowError",I.status=k.status),I.requestId=k.headers["x-oss-request-id"],I.host=""),J.next=30;break;case 5:return z=String(k.data),A("request response error data: %s",z),X=void 0,J.prev=8,J.next=11,this.parseXML(z)||{};case 11:X=J.sent,J.next=21;break;case 14:return J.prev=14,J.t0=J.catch(8),A(z),J.t0.message+=`
|
|
|
raw xml: `+z,J.t0.status=k.status,J.t0.requestId=k.headers["x-oss-request-id"],J.abrupt("return",J.t0);case 21:Z=X.Message||"unknow request error, status: "+k.status,X.Condition&&(Z+=" (condition: "+X.Condition+")"),I=new Error(Z),I.name=X.Code?X.Code+"Error":"UnknowError",I.status=k.status,I.code=X.Code,I.requestId=X.RequestId,I.hostId=X.HostId,I.serverTime=X.ServerTime;case 30:return A("generate error %j",I),J.abrupt("return",I);case 32:case"end":return J.stop()}},K,this,[[8,14]])})}).call(this,t("_process"),t("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(t,w,v){(function(l){"use strict";function _(S){return S&&S.__esModule?S:{default:S}}function r(S,D){if(!(this instanceof r))return new r(S,D);p.call(this,D),this.file=S,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}var u=t("babel-runtime/core-js/array/from"),o=_(u),e=t("babel-runtime/regenerator"),n=_(e),i=t("is-type-of"),s=t("util"),d=t("path"),m=t("mime"),f=t("copy-to"),A=v;A.multipartUpload=n.default.mark(function S(D,h,E){var O,C,g,M,T,L,j,N,G;return n.default.wrap(function($){for(;;)switch($.prev=$.next){case 0:if(this.resetCancelFlag(),E=E||{},!E.checkpoint||!E.checkpoint.uploadId){$.next=6;break}return $.next=5,this._resumeMultipart(E.checkpoint,E);case 5:return $.abrupt("return",$.sent);case 6:return O=102400,E.mime||(i.file(h)?E.mime=m.getType(d.extname(h.name)):i.blob(h)?E.mime=h.type:E.mime=m.getType(d.extname(h))),E.headers=E.headers||{},this._convertMetaToHeaders(E.meta,E.headers),$.next=12,this._getFileSize(h);case 12:if(!((C=$.sent)<O)){$.next=25;break}return g=this._createStream(h,0,C),E.contentLength=C,$.next=18,this.putStream(D,g,E);case 18:if(M=$.sent,!E||!E.progress){$.next=22;break}return $.next=22,E.progress(1);case 22:return T={res:M.res,bucket:this.options.bucket,name:D,etag:M.res.headers.etag},(E.headers&&E.headers["x-oss-callback"]||E.callback)&&(T.data=M.data),$.abrupt("return",T);case 25:if(!(E.partSize&&E.partSize<O)){$.next=27;break}throw new Error("partSize must not be smaller than "+O);case 27:return $.next=29,this.initMultipartUpload(D,E);case 29:if(L=$.sent,j=L.uploadId,N=this._getPartSize(C,E.partSize),G={file:h,name:D,fileSize:C,partSize:N,uploadId:j,doneParts:[]},!E||!E.progress){$.next=36;break}return $.next=36,E.progress(0,G,L.res);case 36:return $.next=38,this._resumeMultipart(G,E);case 38:return $.abrupt("return",$.sent);case 39:case"end":return $.stop()}},S,this)}),A._resumeMultipart=n.default.mark(function S(D,h){var E,O,C,g,M,T,L,j,N,G,$,H,F,te,ae,K,k,I,z,X,Z;return n.default.wrap(function(J){for(;;)switch(J.prev=J.next){case 0:if(!this.isCancel()){J.next=2;break}throw this._makeCancelEvent();case 2:if(E=D.file,O=D.fileSize,C=D.partSize,g=D.uploadId,M=D.doneParts,T=D.name,L=[],M.length>0&&f(M).to(L),j=this._divideParts(O,C),N=j.length,G=!1,$=n.default.mark(function re(ee,se){var ue,q,Y;return n.default.wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:if(ee.isCancel()){ie.next=21;break}return ie.prev=1,ue=j[se-1],q={stream:ee._createStream(E,ue.start,ue.end),size:ue.end-ue.start},ie.next=6,ee._uploadPart(T,g,se,q);case 6:if(Y=ie.sent,ee.isCancel()||G){ie.next=13;break}if(D.doneParts.push({number:se,etag:Y.res.headers.etag}),L.push({number:se,etag:Y.res.headers.etag}),!h||!h.progress){ie.next=13;break}return ie.next=13,h.progress(M.length/N,D,Y.res);case 13:ie.next=21;break;case 15:if(ie.prev=15,ie.t0=ie.catch(1),ee.isCancel()){ie.next=21;break}throw ee.cancel(),ie.t0.partNum=se,ie.t0;case 21:case"end":return ie.stop()}},re,this,[[1,15]])}),H=(0,o.default)(new Array(N),function(re,ee){return ee+1}),F=L.map(function(re){return re.number}),te=H.filter(function(re){return F.indexOf(re)<0}),ae=5,K=h.parallel||ae,!this.checkBrowserAndVersion("Internet Explorer","10")&&K!==1){J.next=26;break}k=0;case 16:if(!(k<te.length)){J.next=24;break}if(!this.isCancel()){J.next=19;break}throw this._makeCancelEvent();case 19:return J.next=21,$(this,te[k]);case 21:k++,J.next=16;break;case 24:J.next=40;break;case 26:for(I=[],z=0;z<te.length;z++)I.push($(this,te[z]));return J.next=30,this._thunkPool(I,K);case 30:if(X=J.sent,G=!0,!(X&&X.length>0)){J.next=37;break}throw this.resetCancelFlag(),Z=X[0],Z.message="Failed to upload some parts with error: "+Z.toString()+" part_num: "+Z.partNum,Z;case 37:if(!this.isCancel()){J.next=40;break}throw I=null,this._makeCancelEvent();case 40:return J.next=42,this.completeMultipartUpload(T,g,L,h);case 42:return J.abrupt("return",J.sent);case 43:case"end":return J.stop()}},S,this)}),i.file=function(S){return typeof File!="undefined"&&S instanceof File},i.blob=function(S){return typeof Blob!="undefined"&&S instanceof Blob},A._getFileSize=n.default.mark(function S(D){var h;return n.default.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:if(!i.buffer(D)){E.next=4;break}return E.abrupt("return",D.length);case 4:if(!i.blob(D)&&!i.file(D)){E.next=6;break}return E.abrupt("return",D.size);case 6:if(!i.string(D)){E.next=11;break}return E.next=9,this._statFile(D);case 9:return h=E.sent,E.abrupt("return",h.size);case 11:throw new Error("_getFileSize requires Buffer/File/String.");case 12:case"end":return E.stop()}},S,this)});var b=t("stream"),p=b.Readable;s.inherits(r,p),r.prototype.readFileAndPush=function(S){if(this.fileBuffer)for(var D=!0;D&&this.fileBuffer&&this.start<this.fileBuffer.length;){var h=this.start,E=h+S;E=E>this.fileBuffer.length?this.fileBuffer.length:E,this.start=E,D=this.push(this.fileBuffer.slice(h,E))}},r.prototype._read=function(S){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);S=S||16384;var D=this;this.reader.onload=function(h){D.fileBuffer=new l(new Uint8Array(h.target.result)),D.file=null,D.readFileAndPush(S)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(S)},A._createStream=function(S,D,h){if(i.blob(S)||i.file(S))return new r(S.slice(D,h));throw new Error("_createStream requires File/String.")},A._getPartSize=function(S,D){return D?Math.max(Math.ceil(S/1e4),D):1048576},A._divideParts=function(S,D){for(var h=Math.ceil(S/D),E=[],O=0;O<h;O++){var C=D*O,g=Math.min(C+D,S);E.push({start:C,end:g})}return E},A._makeCancelEvent=function(){return{status:0,name:"cancel"}}}).call(this,t("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(t,w,v){"use strict";function l(D){return D&&D.__esModule?D:{default:D}}var _=t("babel-runtime/core-js/object/keys"),r=l(_),u=t("babel-runtime/regenerator"),o=l(u),e=t("debug")("ali-oss:object"),n=t("utility"),i=t("fs"),s=t("is-type-of"),d=t("url"),m=t("copy-to"),f=t("path"),A=t("mime"),b=t("../common/callback"),p=t("../common/signUtils"),S=v;S.append=o.default.mark(function D(h,E,O){var C;return o.default.wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return O=O||{},O.position===void 0&&(O.position="0"),O.subres={append:"",position:O.position},O.method="POST",g.next=6,this.put(h,E,O);case 6:return C=g.sent,C.nextAppendPosition=C.res.headers["x-oss-next-append-position"],g.abrupt("return",C);case 9:case"end":return g.stop()}},D,this)}),S.put=o.default.mark(function D(h,E,O){var C,g,M,T,L,j;return o.default.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:if(C=void 0,O=O||{},!s.buffer(E)){N.next=6;break}C=E,N.next=18;break;case 6:if(!s.blob(E)&&!s.file(E)){N.next=17;break}return O.mime||(s.file(E)?O.mime=A.getType(f.extname(E.name)):O.mime=E.type),g=this._createStream(E,0,E.size),N.next=11,this._getFileSize(E);case 11:return O.contentLength=N.sent,N.next=14,this.putStream(h,g,O);case 14:return N.abrupt("return",N.sent);case 17:throw new TypeError("Must provide Buffer/Blob for put.");case 18:return O.headers=O.headers||{},this._convertMetaToHeaders(O.meta,O.headers),M=O.method||"PUT",T=this._objectRequestParams(M,h,O),b.encodeCallback(T,O),T.mime=O.mime,T.content=C,T.successStatuses=[200],N.next=28,this.request(T);case 28:return L=N.sent,j={name:h,url:this._objectUrl(h),res:L.res},T.headers&&T.headers["x-oss-callback"]&&(j.data=JSON.parse(L.data.toString())),N.abrupt("return",j);case 32:case"end":return N.stop()}},D,this)}),S.putStream=o.default.mark(function D(h,E,O){var C,g,M,T;return o.default.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return O=O||{},O.headers=O.headers||{},O.contentLength?O.headers["Content-Length"]=O.contentLength:O.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(O.meta,O.headers),C=O.method||"PUT",g=this._objectRequestParams(C,h,O),b.encodeCallback(g,O),g.mime=O.mime,g.stream=E,g.successStatuses=[200],L.next=12,this.request(g);case 12:return M=L.sent,T={name:h,url:this._objectUrl(h),res:M.res},g.headers&&g.headers["x-oss-callback"]&&(T.data=JSON.parse(M.data.toString())),L.abrupt("return",T);case 16:case"end":return L.stop()}},D,this)}),S.head=o.default.mark(function D(h,E){var O,C,g;return o.default.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return O=this._objectRequestParams("HEAD",h,E),O.successStatuses=[200,304],M.next=4,this.request(O);case 4:return C=M.sent,g={meta:null,res:C.res,status:C.status},C.status===200&&(0,r.default)(C.headers).forEach(function(T){T.indexOf("x-oss-meta-")===0&&(g.meta||(g.meta={}),g.meta[T.substring(11)]=C.headers[T])}),M.abrupt("return",g);case 8:case"end":return M.stop()}},D,this)}),S.get=o.default.mark(function D(h,E,O){var C,g,M,T;return o.default.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return C=null,g=!1,s.writableStream(E)?C=E:s.string(E)?(C=i.createWriteStream(E),g=!0):O=E,O=O||{},O.process&&(O.subres=O.subres||{},O.subres["x-oss-process"]=O.process),M=void 0,L.prev=6,T=this._objectRequestParams("GET",h,O),T.writeStream=C,T.successStatuses=[200,206,304],L.next=12,this.request(T);case 12:M=L.sent,g&&C.destroy(),L.next=24;break;case 16:if(L.prev=16,L.t0=L.catch(6),!g){L.next=23;break}return C.destroy(),e("get error: %s, delete the exists file %s",L.t0,E),L.next=23,this._deleteFileSafe(E);case 23:throw L.t0;case 24:return L.abrupt("return",{res:M.res,content:M.data});case 25:case"end":return L.stop()}},D,this,[[6,16]])}),S.getStream=o.default.mark(function D(h,E){var O,C;return o.default.wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return E=E||{},O=this._objectRequestParams("GET",h,E),O.customResponse=!0,O.successStatuses=[200,206,304],g.next=6,this.request(O);case 6:return C=g.sent,g.abrupt("return",{stream:C.res,res:{status:C.status,headers:C.headers}});case 8:case"end":return g.stop()}},D,this)}),S.delete=o.default.mark(function D(h,E){var O,C;return o.default.wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return O=this._objectRequestParams("DELETE",h,E),O.successStatuses=[204],g.next=4,this.request(O);case 4:return C=g.sent,g.abrupt("return",{res:C.res});case 6:case"end":return g.stop()}},D,this)}),S.deleteMulti=o.default.mark(function D(h,E){var O,C,g,M,T,L;return o.default.wrap(function(j){for(;;)switch(j.prev=j.next){case 0:for(E=E||{},O=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<Delete>
|
|
|
`,E.quiet?O+=` <Quiet>true</Quiet>
|
|
|
`:O+=` <Quiet>false</Quiet>
|
|
|
`,C=0;C<h.length;C++)O+=" <Object><Key>"+n.escape(this._objectName(h[C]))+`</Key></Object>
|
|
|
`;return O+="</Delete>",e("delete multi objects: %s",O),E.subres="delete",g=this._objectRequestParams("POST","",E),g.mime="xml",g.content=O,g.xmlResponse=!0,g.successStatuses=[200],j.next=14,this.request(g);case 14:return M=j.sent,T=M.data,L=T&&T.Deleted||null,L&&(Array.isArray(L)||(L=[L]),L=L.map(function(N){return N.Key})),j.abrupt("return",{res:M.res,deleted:L});case 19:case"end":return j.stop()}},D,this)}),S.copy=o.default.mark(function D(h,E,O){var C,g,M;return o.default.wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return O=O||{},O.headers=O.headers||{},(0,r.default)(O.headers).forEach(function(L){O.headers["x-oss-copy-source-"+L.toLowerCase()]=O.headers[L]}),O.meta&&(O.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(O.meta,O.headers),E=E[0]!=="/"?"/"+this.options.bucket+"/"+encodeURIComponent(E):"/"+encodeURIComponent(E.slice(1)),O.headers["x-oss-copy-source"]=E,C=this._objectRequestParams("PUT",h,O),C.xmlResponse=!0,C.successStatuses=[200,304],T.next=12,this.request(C);case 12:return g=T.sent,M=g.data,M&&(M={etag:M.ETag,lastModified:M.LastModified}),T.abrupt("return",{data:M,res:g.res});case 16:case"end":return T.stop()}},D,this)}),S.putMeta=o.default.mark(function D(h,E,O){return o.default.wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return C.next=2,this.copy(h,h,{meta:E||{},timeout:O&&O.timeout,ctx:O&&O.ctx});case 2:return C.abrupt("return",C.sent);case 3:case"end":return C.stop()}},D,this)}),S.list=o.default.mark(function D(h,E){var O,C,g,M,T;return o.default.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return O=this._objectRequestParams("GET","",E),O.query=h,O.xmlResponse=!0,O.successStatuses=[200],L.next=6,this.request(O);case 6:return C=L.sent,g=C.data.Contents,M=this,g&&(Array.isArray(g)||(g=[g]),g=g.map(function(j){return{name:j.Key,url:M._objectUrl(j.Key),lastModified:j.LastModified,etag:j.ETag,type:j.Type,size:Number(j.Size),storageClass:j.StorageClass,owner:{id:j.Owner.ID,displayName:j.Owner.DisplayName}}})),T=C.data.CommonPrefixes||null,T&&(Array.isArray(T)||(T=[T]),T=T.map(function(j){return j.Prefix})),L.abrupt("return",{res:C.res,objects:g,prefixes:T,nextMarker:C.data.NextMarker||null,isTruncated:C.data.IsTruncated==="true"});case 13:case"end":return L.stop()}},D,this)}),S.putACL=o.default.mark(function D(h,E,O){var C,g;return o.default.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return O=O||{},O.subres="acl",O.headers=O.headers||{},O.headers["x-oss-object-acl"]=E,h=this._objectName(h),C=this._objectRequestParams("PUT",h,O),C.successStatuses=[200],M.next=9,this.request(C);case 9:return g=M.sent,M.abrupt("return",{res:g.res});case 11:case"end":return M.stop()}},D,this)}),S.getACL=o.default.mark(function D(h,E){var O,C;return o.default.wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return E=E||{},E.subres="acl",h=this._objectName(h),O=this._objectRequestParams("GET",h,E),O.successStatuses=[200],O.xmlResponse=!0,g.next=8,this.request(O);case 8:return C=g.sent,g.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 g.stop()}},D,this)}),S.restore=o.default.mark(function D(h,E){var O,C;return o.default.wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return E=E||{},E.subres="restore",O=this._objectRequestParams("POST",h,E),O.successStatuses=[202],g.next=6,this.request(O);case 6:return C=g.sent,g.abrupt("return",{res:C.res});case 8:case"end":return g.stop()}},D,this)}),S.signatureUrl=function(D,h){h=h||{},D=this._objectName(D),h.method=h.method||"GET";var E=n.timestamp()+(h.expires||1800),O={bucket:this.options.bucket,object:D},C=this._getResource(O);this.options.stsToken&&(h["security-token"]=this.options.stsToken);var g=p._signatureForURL(this.options.accessKeySecret,h,C,E),M=d.parse(this._getReqUrl(O));return M.query={OSSAccessKeyId:this.options.accessKeyId,Expires:E,Signature:g.Signature},m(g.subResource).to(M.query),M.format()},S.getObjectUrl=function(D,h){return h?h[h.length-1]!=="/"&&(h+="/"):h=this.options.endpoint.format(),h+this._escape(this._objectName(D))},S._objectUrl=function(D){return this._getReqUrl({bucket:this.options.bucket,object:D})},S.generateObjectUrl=function(D,h){if(h)h[h.length-1]!=="/"&&(h+="/");else{h=this.options.endpoint.format();var E=d.parse(h),O=this.options.bucket;E.hostname=O+"."+E.hostname,E.host=O+"."+E.host,h=E.format()}return h+this._escape(this._objectName(D))},S._objectRequestParams=function(D,h,E){if(!this.options.bucket)throw new Error("Please create a bucket first");E=E||{},h=this._objectName(h);var O={object:h,bucket:this.options.bucket,method:D,subres:E&&E.subres,timeout:E&&E.timeout,ctx:E&&E.ctx};return E.headers&&(O.headers={},m(E.headers).to(O.headers)),O},S._objectName=function(D){return D.replace(/^\/+/,"")},S._statFile=function(D){return function(h){i.stat(D,h)}},S._convertMetaToHeaders=function(D,h){D&&(0,r.default)(D).forEach(function(E){h["x-oss-meta-"+E]=D[E]})},S._deleteFileSafe=function(D){return function(h){i.exists(D,function(E){E?i.unlink(D,function(O){O&&e("unlink %j error: %s",D,O),h()}):h()})}}},{"../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(t,w,v){"use strict";v.version="5.3.1"},{}],6:[function(t,w,v){"use strict";function l(f){return f&&f.__esModule?f:{default:f}}function _(f){return f&&typeof f.next=="function"&&typeof f.throw=="function"}function r(f){if(!f)return!1;var A=f.constructor;return!!A&&(A.name==="GeneratorFunction"||A.displayName==="GeneratorFunction"||_(A.prototype)||_(f.prototype))}function u(f,A){var b=new f(A),p=(0,s.default)(b),S=(0,s.default)((0,n.default)(b));p.concat(S).forEach(function(D){r(b[D])?this[D]=d.wrap(b[D]).bind(b):this[D]=b[D]},this)}function o(f){if(!(this instanceof o))return new o(f);u.call(this,m,f)}var e=t("babel-runtime/core-js/object/get-prototype-of"),n=l(e),i=t("babel-runtime/core-js/object/keys"),s=l(i),d=t("co"),m=t("./client");w.exports=o,o.STS=function f(A){if(!(this instanceof f))return new f(A);u.call(this,m.STS,A)}},{"./client":2,"babel-runtime/core-js/object/get-prototype-of":22,"babel-runtime/core-js/object/keys":23,co:41}],7:[function(t,w,v){(function(l){"use strict";function _(n){return n&&n.__esModule?n:{default:n}}var r=t("babel-runtime/core-js/object/keys"),u=_(r),o=t("babel-runtime/core-js/json/stringify"),e=_(o);v.encodeCallback=function(n,i){if(n.headers=n.headers||{},!Object.prototype.hasOwnProperty.call(n.headers,"x-oss-callback")&&i.callback){var s={callbackUrl:encodeURI(i.callback.url),callbackBody:i.callback.body};i.callback.host&&(s.callbackHost=i.callback.host),i.callback.contentType&&(s.callbackBodyType=i.callback.contentType);var d=new l((0,e.default)(s)).toString("base64");if(n.headers["x-oss-callback"]=d,i.callback.customValue){var m={};(0,u.default)(i.callback.customValue).forEach(function(f){m["x:"+f]=i.callback.customValue[f]}),n.headers["x-oss-callback-var"]=new l((0,e.default)(m)).toString("base64")}}}}).call(this,t("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":17,"babel-runtime/core-js/object/keys":23,buffer:38}],8:[function(t,w,v){"use strict";var l=t("babel-runtime/regenerator"),_=function(e){return e&&e.__esModule?e:{default:e}}(l),r=t("copy-to"),u=t("./callback"),o=v;o.listUploads=_.default.mark(function e(n,i){var s,d,m,f;return _.default.wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return i=i||{},s={},r(i).to(s),s.subres="uploads",d=this._objectRequestParams("GET","",s),d.query=n,d.xmlResponse=!0,d.successStatuses=[200],A.next=10,this.request(d);case 10:return m=A.sent,f=m.data.Upload||[],Array.isArray(f)||(f=[f]),f=f.map(function(b){return{name:b.Key,uploadId:b.UploadId,initiated:b.Initiated}}),A.abrupt("return",{res:m.res,uploads:f,bucket:m.data.Bucket,nextKeyMarker:m.data.NextKeyMarker,nextUploadIdMarker:m.data.NextUploadIdMarker,isTruncated:m.data.IsTruncated==="true"});case 15:case"end":return A.stop()}},e,this)}),o.listParts=_.default.mark(function e(n,i,s,d){var m,f,A;return _.default.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return d=d||{},m={},r(d).to(m),m.subres={uploadId:i},f=this._objectRequestParams("GET",n,m),f.query=s,f.xmlResponse=!0,f.successStatuses=[200],b.next=10,this.request(f);case 10:return A=b.sent,b.abrupt("return",{res:A.res,uploadId:A.data.UploadId,bucket:A.data.Bucket,name:A.data.Key,partNumberMarker:A.data.PartNumberMarker,nextPartNumberMarker:A.data.NextPartNumberMarker,maxParts:A.data.MaxParts,isTruncated:A.data.IsTruncated,parts:A.data.Part||[]});case 12:case"end":return b.stop()}},e,this)}),o.abortMultipartUpload=_.default.mark(function e(n,i,s){var d,m,f;return _.default.wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return this.cancel(),s=s||{},d={},r(s).to(d),d.subres={uploadId:i},m=this._objectRequestParams("DELETE",n,d),m.successStatuses=[204],A.next=9,this.request(m);case 9:return f=A.sent,A.abrupt("return",{res:f.res});case 11:case"end":return A.stop()}},e,this)}),o.initMultipartUpload=_.default.mark(function e(n,i){var s,d,m;return _.default.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return i=i||{},s={},r(i).to(s),s.headers=s.headers||{},this._convertMetaToHeaders(i.meta,s.headers),s.subres="uploads",d=this._objectRequestParams("POST",n,s),d.mime=i.mime,d.xmlResponse=!0,d.successStatuses=[200],f.next=12,this.request(d);case 12:return m=f.sent,f.abrupt("return",{res:m.res,bucket:m.data.Bucket,name:m.data.Key,uploadId:m.data.UploadId});case 14:case"end":return f.stop()}},e,this)}),o.uploadPart=_.default.mark(function e(n,i,s,d,m,f,A){var b;return _.default.wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return b={stream:this._createStream(d,m,f),size:f-m},p.next=3,this._uploadPart(n,i,s,b,A);case 3:return p.abrupt("return",p.sent);case 4:case"end":return p.stop()}},e,this)}),o.completeMultipartUpload=_.default.mark(function e(n,i,s,d){var m,f,A,b,p,S,D,h;return _.default.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:for(m=s.concat().sort(function(O,C){return O.number-C.number}).filter(function(O,C,g){return!C||O.number!==g[C-1].number}),f=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<CompleteMultipartUpload>
|
|
|
`,A=0;A<m.length;A++)b=m[A],f+=`<Part>
|
|
|
`,f+="<PartNumber>"+b.number+`</PartNumber>
|
|
|
`,f+="<ETag>"+b.etag+`</ETag>
|
|
|
`,f+=`</Part>
|
|
|
`;return f+="</CompleteMultipartUpload>",d=d||{},p={},r(d).to(p),p.subres={uploadId:i},S=this._objectRequestParams("POST",n,p),u.encodeCallback(S,p),S.mime="xml",S.content=f,S.headers&&S.headers["x-oss-callback"]||(S.xmlResponse=!0),S.successStatuses=[200],E.next=16,this.request(S);case 16:return D=E.sent,h={res:D.res,bucket:S.bucket,name:n,etag:D.res.headers.etag},S.headers&&S.headers["x-oss-callback"]&&(h.data=JSON.parse(D.data.toString())),E.abrupt("return",h);case 20:case"end":return E.stop()}},e,this)}),o._uploadPart=_.default.mark(function e(n,i,s,d,m){var f,A,b;return _.default.wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return m=m||{},f={},r(m).to(f),f.headers={"Content-Length":d.size},f.subres={partNumber:s,uploadId:i},A=this._objectRequestParams("PUT",n,f),A.mime=f.mime,A.stream=d.stream,A.successStatuses=[200],p.next=11,this.request(A);case 11:return b=p.sent,d.stream=null,A.stream=null,p.abrupt("return",{name:n,etag:b.res.headers.etag,res:b.res});case 15:case"end":return p.stop()}},e,this)})},{"./callback":7,"babel-runtime/regenerator":33,"copy-to":43}],9:[function(t,w,v){(function(l){"use strict";function _(s){return s&&s.__esModule?s:{default:s}}var r=t("babel-runtime/core-js/json/stringify"),u=_(r),o=t("babel-runtime/core-js/object/keys"),e=_(o),n=t("./../../shims/crypto/crypto.js"),i=t("is-type-of");v.buildCanonicalizedResource=function(s,d){var m=""+s,f="?";if(i.string(d)&&d.trim()!=="")m+=f+d;else if(i.array(d))d.sort(),m+=f+d.join("&");else if(d){var A=function(S,D){return S[0]>D[0]?1:S[0]<D[0]?-1:0},b=function(S){m+=f+S,d[S]&&(m+="="+d[S]),f="&"};(0,e.default)(d).sort(A).forEach(b)}return m},v.buildCanonicalString=function(s,d,m,f){m=m||{};var A=m.headers||{},b=[],p={},S=[s.toUpperCase(),A["Content-Md5"]||"",A["Content-Type"]||A["Content-Type".toLowerCase()],f||A["x-oss-date"]];return(0,e.default)(A).forEach(function(D){var h=D.toLowerCase();h.indexOf("x-oss-")===0&&(p[h]=String(A[D]).trim())}),(0,e.default)(p).sort().forEach(function(D){b.push(D+":"+p[D])}),S=S.concat(b),S.push(this.buildCanonicalizedResource(d,m.parameters)),S.join(`
|
|
|
`)},v.computeSignature=function(s,d){return n.createHmac("sha1",s).update(new l(d,"utf8")).digest("base64")},v.authorization=function(s,d,m){return"OSS "+s+":"+this.computeSignature(d,m)},v._signatureForURL=function(s,d,m,f){var A={},b={};if(d.process&&(b["x-oss-process"]=d.process),d.response&&(0,e.default)(d.response).forEach(function(h){var E="response-"+h.toLowerCase();b[E]=d.response[h]}),(0,e.default)(d).forEach(function(h){var E=h.toLowerCase(),O=d[h];E.indexOf("x-oss-")===0?A[E]=O:E.indexOf("content-md5")===0||E.indexOf("content-type")===0?A[h]=O:E!=="expires"&&E!=="response"&&E!=="process"&&E!=="method"&&(b[E]=O)}),Object.prototype.hasOwnProperty.call(d,"security-token")&&(b["security-token"]=d["security-token"]),Object.prototype.hasOwnProperty.call(d,"callback")){var p={callbackUrl:encodeURI(d.callback.url),callbackBody:d.callback.body};if(d.callback.host&&(p.callbackHost=d.callback.host),d.callback.contentType&&(p.callbackBodyType=d.callback.contentType),b.callback=new l((0,u.default)(p)).toString("base64"),d.callback.customValue){var S={};(0,e.default)(d.callback.customValue).forEach(function(h){S["x:"+h]=d.callback.customValue[h]}),b["callback-var"]=new l((0,u.default)(S)).toString("base64")}}var D=this.buildCanonicalString(d.method,m,{headers:A,parameters:b},f.toString());return{Signature:this.computeSignature(s,D),subResource:b}}}).call(this,t("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(t,w,v){"use strict";var l=t("babel-runtime/regenerator"),_=function(n){return n&&n.__esModule?n:{default:n}}(l),r=t("co"),u=t("co-priority-queue"),o=t("any-promise"),e=v;e._thunkPool=function(n,i){function s(b,p){++f===b.length&&p(A)}function d(b,p){function S(){var g;return _.default.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:g=void 0;case 1:if(m.isCancel()){M.next=9;break}return M.next=4,E.next();case 4:return g=M.sent,M.next=7,g();case 7:M.next=1;break;case 9:O+=1,O===b&&(E.fns=[],E.buffer=[],p(A));case 11:case"end":return M.stop()}},h,this)}function D(g){console.error(g.stack)}for(var h=_.default.mark(S),E=new u,O=0,C=0;C<b;C++)r(S).catch(D);return function(g,M){return function(T){E.push(_.default.mark(function L(){return _.default.wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return j.prev=0,j.t0=T,j.next=4,g;case 4:j.t1=j.sent,(0,j.t0)(null,j.t1),j.next=11;break;case 8:j.prev=8,j.t2=j.catch(0),T(j.t2);case 11:case"end":return j.stop()}},L,this,[[0,8]])}),M)}}}var m=this,f=0,A=[];return new o(function(b){function p(O){return _.default.wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return C.next=2,h(n[O]);case 2:s(n,b);case 3:case"end":return C.stop()}},D,this)}function S(O){A.push(O),s(n,b)}for(var D=_.default.mark(p),h=new d(i,b),E=0;E<n.length;E++)r(p(E)).catch(S)})},e.cancel=function(){this.options.cancelFlag=!0},e.isCancel=function(){return this.options.cancelFlag},e.resetCancelFlag=function(){this.options.cancelFlag=!1}},{"any-promise":13,"babel-runtime/regenerator":33,co:41,"co-priority-queue":40}],11:[function(t,w,v){"use strict";v._isIP=function(l){var _=/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/,r=/^\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 _.test(l)||r.test(l)}},{}],12:[function(t,w,v){function l(){}w.exports=l,w.exports.HttpsAgent=l},{}],13:[function(t,w,v){w.exports=t("./register")().Promise},{"./register":15}],14:[function(t,w,v){"use strict";var l=null;w.exports=function(_,r){return function(u,o){u=u||null,o=o||{};var e=o.global!==!1;if(l===null&&e&&(l=_["@@any-promise/REGISTRATION"]||null),l!==null&&u!==null&&l.implementation!==u)throw new Error('any-promise already defined as "'+l.implementation+'". You can only register an implementation before the first call to require("any-promise") and an implementation cannot be changed');return l===null&&(l=u!==null&&o.Promise!==void 0?{Promise:o.Promise,implementation:u}:r(u),e&&(_["@@any-promise/REGISTRATION"]=l)),l}}},{}],15:[function(t,w,v){"use strict";function l(){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"}}w.exports=t("./loader")(window,l)},{"./loader":14}],16:[function(t,w,v){w.exports={default:t("core-js/library/fn/array/from"),__esModule:!0}},{"core-js/library/fn/array/from":44}],17:[function(t,w,v){w.exports={default:t("core-js/library/fn/json/stringify"),__esModule:!0}},{"core-js/library/fn/json/stringify":45}],18:[function(t,w,v){w.exports={default:t("core-js/library/fn/object/assign"),__esModule:!0}},{"core-js/library/fn/object/assign":46}],19:[function(t,w,v){w.exports={default:t("core-js/library/fn/object/create"),__esModule:!0}},{"core-js/library/fn/object/create":47}],20:[function(t,w,v){w.exports={default:t("core-js/library/fn/object/define-property"),__esModule:!0}},{"core-js/library/fn/object/define-property":48}],21:[function(t,w,v){w.exports={default:t("core-js/library/fn/object/get-own-property-names"),__esModule:!0}},{"core-js/library/fn/object/get-own-property-names":49}],22:[function(t,w,v){w.exports={default:t("core-js/library/fn/object/get-prototype-of"),__esModule:!0}},{"core-js/library/fn/object/get-prototype-of":50}],23:[function(t,w,v){w.exports={default:t("core-js/library/fn/object/keys"),__esModule:!0}},{"core-js/library/fn/object/keys":51}],24:[function(t,w,v){w.exports={default:t("core-js/library/fn/promise"),__esModule:!0}},{"core-js/library/fn/promise":52}],25:[function(t,w,v){w.exports={default:t("core-js/library/fn/set-immediate"),__esModule:!0}},{"core-js/library/fn/set-immediate":53}],26:[function(t,w,v){w.exports={default:t("core-js/library/fn/string/from-code-point"),__esModule:!0}},{"core-js/library/fn/string/from-code-point":54}],27:[function(t,w,v){w.exports={default:t("core-js/library/fn/symbol"),__esModule:!0}},{"core-js/library/fn/symbol":56}],28:[function(t,w,v){w.exports={default:t("core-js/library/fn/symbol/has-instance"),__esModule:!0}},{"core-js/library/fn/symbol/has-instance":55}],29:[function(t,w,v){w.exports={default:t("core-js/library/fn/symbol/iterator"),__esModule:!0}},{"core-js/library/fn/symbol/iterator":57}],30:[function(t,w,v){"use strict";v.__esModule=!0,v.default=function(l,_){if(!(l instanceof _))throw new TypeError("Cannot call a class as a function")}},{}],31:[function(t,w,v){"use strict";v.__esModule=!0;var l=t("../core-js/object/define-property"),_=function(r){return r&&r.__esModule?r:{default:r}}(l);v.default=function(){function r(u,o){for(var e=0;e<o.length;e++){var n=o[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),(0,_.default)(u,n.key,n)}}return function(u,o,e){return o&&r(u.prototype,o),e&&r(u,e),u}}()},{"../core-js/object/define-property":20}],32:[function(t,w,v){"use strict";function l(n){return n&&n.__esModule?n:{default:n}}v.__esModule=!0;var _=t("../core-js/symbol/iterator"),r=l(_),u=t("../core-js/symbol"),o=l(u),e=typeof o.default=="function"&&typeof r.default=="symbol"?function(n){return typeof n}:function(n){return n&&typeof o.default=="function"&&n.constructor===o.default&&n!==o.default.prototype?"symbol":typeof n};v.default=typeof o.default=="function"&&e(r.default)==="symbol"?function(n){return n===void 0?"undefined":e(n)}:function(n){return n&&typeof o.default=="function"&&n.constructor===o.default&&n!==o.default.prototype?"symbol":n===void 0?"undefined":e(n)}},{"../core-js/symbol":27,"../core-js/symbol/iterator":29}],33:[function(t,w,v){w.exports=t("regenerator-runtime")},{"regenerator-runtime":191}],34:[function(t,w,v){"use strict";function l(b){var p=b.length;if(p%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var S=b.indexOf("=");return S===-1&&(S=p),[S,S===p?0:4-S%4]}function _(b){var p=l(b),S=p[0],D=p[1];return 3*(S+D)/4-D}function r(b,p,S){return 3*(p+S)/4-S}function u(b){for(var p,S=l(b),D=S[0],h=S[1],E=new d(r(b,D,h)),O=0,C=h>0?D-4:D,g=0;g<C;g+=4)p=s[b.charCodeAt(g)]<<18|s[b.charCodeAt(g+1)]<<12|s[b.charCodeAt(g+2)]<<6|s[b.charCodeAt(g+3)],E[O++]=p>>16&255,E[O++]=p>>8&255,E[O++]=255&p;return h===2&&(p=s[b.charCodeAt(g)]<<2|s[b.charCodeAt(g+1)]>>4,E[O++]=255&p),h===1&&(p=s[b.charCodeAt(g)]<<10|s[b.charCodeAt(g+1)]<<4|s[b.charCodeAt(g+2)]>>2,E[O++]=p>>8&255,E[O++]=255&p),E}function o(b){return i[b>>18&63]+i[b>>12&63]+i[b>>6&63]+i[63&b]}function e(b,p,S){for(var D,h=[],E=p;E<S;E+=3)D=(b[E]<<16&16711680)+(b[E+1]<<8&65280)+(255&b[E+2]),h.push(o(D));return h.join("")}function n(b){for(var p,S=b.length,D=S%3,h=[],E=0,O=S-D;E<O;E+=16383)h.push(e(b,E,E+16383>O?O:E+16383));return D===1?(p=b[S-1],h.push(i[p>>2]+i[p<<4&63]+"==")):D===2&&(p=(b[S-2]<<8)+b[S-1],h.push(i[p>>10]+i[p>>4&63]+i[p<<2&63]+"=")),h.join("")}v.byteLength=_,v.toByteArray=u,v.fromByteArray=n;for(var i=[],s=[],d=typeof Uint8Array!="undefined"?Uint8Array:Array,m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0,A=m.length;f<A;++f)i[f]=m[f],s[m.charCodeAt(f)]=f;s["-".charCodeAt(0)]=62,s["_".charCodeAt(0)]=63},{}],35:[function(t,w,v){!function(l,_,r){w!==void 0&&w.exports?w.exports=r():typeof ve=="function"&&ve.amd?ve("bowser",r):l.bowser=r()}(this,0,function(){function l(s){function d(K){var k=s.match(K);return k&&k.length>1&&k[1]||""}function m(K){var k=s.match(K);return k&&k.length>1&&k[2]||""}var f,A=d(/(ipod|iphone|ipad)/i).toLowerCase(),b=/like android/i.test(s),p=!b&&/android/i.test(s),S=/nexus\s*[0-6]\s*/i.test(s),D=!S&&/nexus\s*[0-9]+/i.test(s),h=/CrOS/.test(s),E=/silk/i.test(s),O=/sailfish/i.test(s),C=/tizen/i.test(s),g=/(web|hpw)os/i.test(s),M=/windows phone/i.test(s),T=(/SamsungBrowser/i.test(s),!M&&/windows/i.test(s)),L=!A&&!E&&/macintosh/i.test(s),j=!p&&!O&&!C&&!g&&/linux/i.test(s),N=m(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),G=d(/version\/(\d+(\.\d+)?)/i),$=/tablet/i.test(s)&&!/tablet pc/i.test(s),H=!$&&/[^-]mobi/i.test(s),F=/xbox/i.test(s);/opera/i.test(s)?f={name:"Opera",opera:n,version:G||d(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(s)?f={name:"Opera",opera:n,version:d(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||G}:/SamsungBrowser/i.test(s)?f={name:"Samsung Internet for Android",samsungBrowser:n,version:G||d(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/coast/i.test(s)?f={name:"Opera Coast",coast:n,version:G||d(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/yabrowser/i.test(s)?f={name:"Yandex Browser",yandexbrowser:n,version:G||d(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(s)?f={name:"UC Browser",ucbrowser:n,version:d(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(s)?f={name:"Maxthon",maxthon:n,version:d(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(s)?f={name:"Epiphany",epiphany:n,version:d(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(s)?f={name:"Puffin",puffin:n,version:d(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(s)?f={name:"Sleipnir",sleipnir:n,version:d(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(s)?f={name:"K-Meleon",kMeleon:n,version:d(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:M?(f={name:"Windows Phone",osname:"Windows Phone",windowsphone:n},N?(f.msedge=n,f.version=N):(f.msie=n,f.version=d(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(s)?f={name:"Internet Explorer",msie:n,version:d(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:h?f={name:"Chrome",osname:"Chrome OS",chromeos:n,chromeBook:n,chrome:n,version:d(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(s)?f={name:"Microsoft Edge",msedge:n,version:N}:/vivaldi/i.test(s)?f={name:"Vivaldi",vivaldi:n,version:d(/vivaldi\/(\d+(\.\d+)?)/i)||G}:O?f={name:"Sailfish",osname:"Sailfish OS",sailfish:n,version:d(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(s)?f={name:"SeaMonkey",seamonkey:n,version:d(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(s)?(f={name:"Firefox",firefox:n,version:d(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(s)&&(f.firefoxos=n,f.osname="Firefox OS")):E?f={name:"Amazon Silk",silk:n,version:d(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(s)?f={name:"PhantomJS",phantom:n,version:d(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(s)?f={name:"SlimerJS",slimer:n,version:d(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(s)||/rim\stablet/i.test(s)?f={name:"BlackBerry",osname:"BlackBerry OS",blackberry:n,version:G||d(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:g?(f={name:"WebOS",osname:"WebOS",webos:n,version:G||d(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(s)&&(f.touchpad=n)):/bada/i.test(s)?f={name:"Bada",osname:"Bada",bada:n,version:d(/dolfin\/(\d+(\.\d+)?)/i)}:C?f={name:"Tizen",osname:"Tizen",tizen:n,version:d(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||G}:/qupzilla/i.test(s)?f={name:"QupZilla",qupzilla:n,version:d(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||G}:/chromium/i.test(s)?f={name:"Chromium",chromium:n,version:d(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||G}:/chrome|crios|crmo/i.test(s)?f={name:"Chrome",chrome:n,version:d(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:p?f={name:"Android",version:G}:/safari|applewebkit/i.test(s)?(f={name:"Safari",safari:n},G&&(f.version=G)):A?(f={name:A=="iphone"?"iPhone":A=="ipad"?"iPad":"iPod"},G&&(f.version=G)):f=/googlebot/i.test(s)?{name:"Googlebot",googlebot:n,version:d(/googlebot\/(\d+(\.\d+))/i)||G}:{name:d(/^(.*)\/(.*) /),version:m(/^(.*)\/(.*) /)},!f.msedge&&/(apple)?webkit/i.test(s)?(/(apple)?webkit\/537\.36/i.test(s)?(f.name=f.name||"Blink",f.blink=n):(f.name=f.name||"Webkit",f.webkit=n),!f.version&&G&&(f.version=G)):!f.opera&&/gecko\//i.test(s)&&(f.name=f.name||"Gecko",f.gecko=n,f.version=f.version||d(/gecko\/(\d+(\.\d+)?)/i)),f.windowsphone||!p&&!f.silk?!f.windowsphone&&A?(f[A]=n,f.ios=n,f.osname="iOS"):L?(f.mac=n,f.osname="macOS"):F?(f.xbox=n,f.osname="Xbox"):T?(f.windows=n,f.osname="Windows"):j&&(f.linux=n,f.osname="Linux"):(f.android=n,f.osname="Android");var te="";f.windows?te=function(K){switch(K){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}}(d(/Windows ((NT|XP)( \d\d?.\d)?)/i)):f.windowsphone?te=d(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):f.mac?(te=d(/Mac OS X (\d+([_\.\s]\d+)*)/i),te=te.replace(/[_\s]/g,".")):A?(te=d(/os (\d+([_\s]\d+)*) like mac os x/i),te=te.replace(/[_\s]/g,".")):p?te=d(/android[ \/-](\d+(\.\d+)*)/i):f.webos?te=d(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):f.blackberry?te=d(/rim\stablet\sos\s(\d+(\.\d+)*)/i):f.bada?te=d(/bada\/(\d+(\.\d+)*)/i):f.tizen&&(te=d(/tizen[\/\s](\d+(\.\d+)*)/i)),te&&(f.osversion=te);var ae=!f.windows&&te.split(".")[0];return $||D||A=="ipad"||p&&(ae==3||ae>=4&&!H)||f.silk?f.tablet=n:(H||A=="iphone"||A=="ipod"||p||S||f.blackberry||f.webos||f.bada)&&(f.mobile=n),f.msedge||f.msie&&f.version>=10||f.yandexbrowser&&f.version>=15||f.vivaldi&&f.version>=1||f.chrome&&f.version>=20||f.samsungBrowser&&f.version>=4||f.firefox&&f.version>=20||f.safari&&f.version>=6||f.opera&&f.version>=10||f.ios&&f.osversion&&f.osversion.split(".")[0]>=6||f.blackberry&&f.version>=10.1||f.chromium&&f.version>=20?f.a=n:f.msie&&f.version<10||f.chrome&&f.version<20||f.firefox&&f.version<20||f.safari&&f.version<6||f.opera&&f.version<10||f.ios&&f.osversion&&f.osversion.split(".")[0]<6||f.chromium&&f.version<20?f.c=n:f.x=n,f}function _(s){return s.split(".").length}function r(s,d){var m,f=[];if(Array.prototype.map)return Array.prototype.map.call(s,d);for(m=0;m<s.length;m++)f.push(d(s[m]));return f}function u(s){for(var d=Math.max(_(s[0]),_(s[1])),m=r(s,function(f){var A=d-_(f);return f+=new Array(A+1).join(".0"),r(f.split("."),function(b){return new Array(20-b.length).join("0")+b}).reverse()});--d>=0;){if(m[0][d]>m[1][d])return 1;if(m[0][d]!==m[1][d])return-1;if(d===0)return 0}}function o(s,d,m){var f=i;typeof d=="string"&&(m=d,d=void 0),d===void 0&&(d=!1),m&&(f=l(m));var A=""+f.version;for(var b in s)if(s.hasOwnProperty(b)&&f[b]){if(typeof s[b]!="string")throw new Error("Browser version in the minVersion map should be a string: "+b+": "+String(s));return u([A,s[b]])<0}return d}function e(s,d,m){return!o(s,d,m)}var n=!0,i=l(typeof navigator!="undefined"&&navigator.userAgent||"");return i.test=function(s){for(var d=0;d<s.length;++d){var m=s[d];if(typeof m=="string"&&m in i)return!0}return!1},i.isUnsupportedBrowser=o,i.compareVersions=u,i.check=e,i._detect=l,i.detect=l,i})},{}],36:[function(t,w,v){},{}],37:[function(t,w,v){function l(i){if(i&&!e(i))throw new Error("Unknown encoding: "+i)}function _(i){return i.toString(this.encoding)}function r(i){this.charReceived=i.length%2,this.charLength=this.charReceived?2:0}function u(i){this.charReceived=i.length%3,this.charLength=this.charReceived?3:0}var o=t("buffer").Buffer,e=o.isEncoding||function(i){switch(i&&i.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}},n=v.StringDecoder=function(i){switch(this.encoding=(i||"utf8").toLowerCase().replace(/[-_]/,""),l(i),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=r;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=u;break;default:return void(this.write=_)}this.charBuffer=new o(6),this.charReceived=0,this.charLength=0};n.prototype.write=function(i){for(var s="";this.charLength;){var d=i.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:i.length;if(i.copy(this.charBuffer,this.charReceived,0,d),this.charReceived+=d,this.charReceived<this.charLength)return"";i=i.slice(d,i.length),s=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var f=s.charCodeAt(s.length-1);if(!(f>=55296&&f<=56319)){if(this.charReceived=this.charLength=0,i.length===0)return s;break}this.charLength+=this.surrogateSize,s=""}this.detectIncompleteChar(i);var m=i.length;this.charLength&&(i.copy(this.charBuffer,0,i.length-this.charReceived,m),m-=this.charReceived),s+=i.toString(this.encoding,0,m);var m=s.length-1,f=s.charCodeAt(m);if(f>=55296&&f<=56319){var A=this.surrogateSize;return this.charLength+=A,this.charReceived+=A,this.charBuffer.copy(this.charBuffer,A,0,A),i.copy(this.charBuffer,0,0,A),s.substring(0,m)}return s},n.prototype.detectIncompleteChar=function(i){for(var s=i.length>=3?3:i.length;s>0;s--){var d=i[i.length-s];if(s==1&&d>>5==6){this.charLength=2;break}if(s<=2&&d>>4==14){this.charLength=3;break}if(s<=3&&d>>3==30){this.charLength=4;break}}this.charReceived=s},n.prototype.end=function(i){var s="";if(i&&i.length&&(s=this.write(i)),this.charReceived){var d=this.charReceived,m=this.charBuffer,f=this.encoding;s+=m.slice(0,d).toString(f)}return s}},{buffer:38}],38:[function(t,w,v){(function(l){"use strict";function _(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function r(a,c){if(_()<c)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(a=new Uint8Array(c),a.__proto__=u.prototype):(a===null&&(a=new u(c)),a.length=c),a}function u(a,c,R){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(a,c,R);if(typeof a=="number"){if(typeof c=="string")throw new Error("If encoding is specified then the first argument must be a string");return i(this,a)}return o(this,a,c,R)}function o(a,c,R,y){if(typeof c=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&c instanceof ArrayBuffer?m(a,c,R,y):typeof c=="string"?s(a,c,R):f(a,c)}function e(a){if(typeof a!="number")throw new TypeError('"size" argument must be a number');if(a<0)throw new RangeError('"size" argument must not be negative')}function n(a,c,R,y){return e(c),c<=0?r(a,c):R!==void 0?typeof y=="string"?r(a,c).fill(R,y):r(a,c).fill(R):r(a,c)}function i(a,c){if(e(c),a=r(a,c<0?0:0|A(c)),!u.TYPED_ARRAY_SUPPORT)for(var R=0;R<c;++R)a[R]=0;return a}function s(a,c,R){if(typeof R=="string"&&R!==""||(R="utf8"),!u.isEncoding(R))throw new TypeError('"encoding" must be a valid string encoding');var y=0|p(c,R);a=r(a,y);var x=a.write(c,R);return x!==y&&(a=a.slice(0,x)),a}function d(a,c){var R=c.length<0?0:0|A(c.length);a=r(a,R);for(var y=0;y<R;y+=1)a[y]=255&c[y];return a}function m(a,c,R,y){if(c.byteLength,R<0||c.byteLength<R)throw new RangeError("'offset' is out of bounds");if(c.byteLength<R+(y||0))throw new RangeError("'length' is out of bounds");return c=R===void 0&&y===void 0?new Uint8Array(c):y===void 0?new Uint8Array(c,R):new Uint8Array(c,R,y),u.TYPED_ARRAY_SUPPORT?(a=c,a.__proto__=u.prototype):a=d(a,c),a}function f(a,c){if(u.isBuffer(c)){var R=0|A(c.length);return a=r(a,R),a.length===0||c.copy(a,0,0,R),a}if(c){if(typeof ArrayBuffer!="undefined"&&c.buffer instanceof ArrayBuffer||"length"in c)return typeof c.length!="number"||B(c.length)?r(a,0):d(a,c);if(c.type==="Buffer"&&ne(c.data))return d(a,c.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function A(a){if(a>=_())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+_().toString(16)+" bytes");return 0|a}function b(a){return+a!=a&&(a=0),u.alloc(+a)}function p(a,c){if(u.isBuffer(a))return a.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(a)||a instanceof ArrayBuffer))return a.byteLength;typeof a!="string"&&(a=""+a);var R=a.length;if(R===0)return 0;for(var y=!1;;)switch(c){case"ascii":case"latin1":case"binary":return R;case"utf8":case"utf-8":case void 0:return se(a).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*R;case"hex":return R>>>1;case"base64":return Y(a).length;default:if(y)return se(a).length;c=(""+c).toLowerCase(),y=!0}}function S(a,c,R){var y=!1;if((c===void 0||c<0)&&(c=0),c>this.length)return"";if((R===void 0||R>this.length)&&(R=this.length),R<=0)return"";if(R>>>=0,c>>>=0,R<=c)return"";for(a||(a="utf8");;)switch(a){case"hex":return F(this,c,R);case"utf8":case"utf-8":return N(this,c,R);case"ascii":return $(this,c,R);case"latin1":case"binary":return H(this,c,R);case"base64":return j(this,c,R);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return te(this,c,R);default:if(y)throw new TypeError("Unknown encoding: "+a);a=(a+"").toLowerCase(),y=!0}}function D(a,c,R){var y=a[c];a[c]=a[R],a[R]=y}function h(a,c,R,y,x){if(a.length===0)return-1;if(typeof R=="string"?(y=R,R=0):R>2147483647?R=2147483647:R<-2147483648&&(R=-2147483648),R=+R,isNaN(R)&&(R=x?0:a.length-1),R<0&&(R=a.length+R),R>=a.length){if(x)return-1;R=a.length-1}else if(R<0){if(!x)return-1;R=0}if(typeof c=="string"&&(c=u.from(c,y)),u.isBuffer(c))return c.length===0?-1:E(a,c,R,y,x);if(typeof c=="number")return c&=255,u.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?x?Uint8Array.prototype.indexOf.call(a,c,R):Uint8Array.prototype.lastIndexOf.call(a,c,R):E(a,[c],R,y,x);throw new TypeError("val must be string, number or Buffer")}function E(a,c,R,y,x){function Q(he,Dt){return V===1?he[Dt]:he.readUInt16BE(Dt*V)}var V=1,xe=a.length,be=c.length;if(y!==void 0&&((y=String(y).toLowerCase())==="ucs2"||y==="ucs-2"||y==="utf16le"||y==="utf-16le")){if(a.length<2||c.length<2)return-1;V=2,xe/=2,be/=2,R/=2}var ce;if(x){var Se=-1;for(ce=R;ce<xe;ce++)if(Q(a,ce)===Q(c,Se===-1?0:ce-Se)){if(Se===-1&&(Se=ce),ce-Se+1===be)return Se*V}else Se!==-1&&(ce-=ce-Se),Se=-1}else for(R+be>xe&&(R=xe-be),ce=R;ce>=0;ce--){for(var Qe=!0,et=0;et<be;et++)if(Q(a,ce+et)!==Q(c,et)){Qe=!1;break}if(Qe)return ce}return-1}function O(a,c,R,y){R=Number(R)||0;var x=a.length-R;y?(y=Number(y))>x&&(y=x):y=x;var Q=c.length;if(Q%2!=0)throw new TypeError("Invalid hex string");y>Q/2&&(y=Q/2);for(var V=0;V<y;++V){var xe=parseInt(c.substr(2*V,2),16);if(isNaN(xe))return V;a[R+V]=xe}return V}function C(a,c,R,y){return ie(se(c,a.length-R),a,R,y)}function g(a,c,R,y){return ie(ue(c),a,R,y)}function M(a,c,R,y){return g(a,c,R,y)}function T(a,c,R,y){return ie(Y(c),a,R,y)}function L(a,c,R,y){return ie(q(c,a.length-R),a,R,y)}function j(a,c,R){return c===0&&R===a.length?W.fromByteArray(a):W.fromByteArray(a.slice(c,R))}function N(a,c,R){R=Math.min(a.length,R);for(var y=[],x=c;x<R;){var Q=a[x],V=null,xe=Q>239?4:Q>223?3:Q>191?2:1;if(x+xe<=R){var be,ce,Se,Qe;switch(xe){case 1:Q<128&&(V=Q);break;case 2:be=a[x+1],(192&be)==128&&(Qe=(31&Q)<<6|63&be)>127&&(V=Qe);break;case 3:be=a[x+1],ce=a[x+2],(192&be)==128&&(192&ce)==128&&(Qe=(15&Q)<<12|(63&be)<<6|63&ce)>2047&&(Qe<55296||Qe>57343)&&(V=Qe);break;case 4:be=a[x+1],ce=a[x+2],Se=a[x+3],(192&be)==128&&(192&ce)==128&&(192&Se)==128&&(Qe=(15&Q)<<18|(63&be)<<12|(63&ce)<<6|63&Se)>65535&&Qe<1114112&&(V=Qe)}}V===null?(V=65533,xe=1):V>65535&&(V-=65536,y.push(V>>>10&1023|55296),V=56320|1023&V),y.push(V),x+=xe}return G(y)}function G(a){var c=a.length;if(c<=me)return String.fromCharCode.apply(String,a);for(var R="",y=0;y<c;)R+=String.fromCharCode.apply(String,a.slice(y,y+=me));return R}function $(a,c,R){var y="";R=Math.min(a.length,R);for(var x=c;x<R;++x)y+=String.fromCharCode(127&a[x]);return y}function H(a,c,R){var y="";R=Math.min(a.length,R);for(var x=c;x<R;++x)y+=String.fromCharCode(a[x]);return y}function F(a,c,R){var y=a.length;(!c||c<0)&&(c=0),(!R||R<0||R>y)&&(R=y);for(var x="",Q=c;Q<R;++Q)x+=ee(a[Q]);return x}function te(a,c,R){for(var y=a.slice(c,R),x="",Q=0;Q<y.length;Q+=2)x+=String.fromCharCode(y[Q]+256*y[Q+1]);return x}function ae(a,c,R){if(a%1!=0||a<0)throw new RangeError("offset is not uint");if(a+c>R)throw new RangeError("Trying to access beyond buffer length")}function K(a,c,R,y,x,Q){if(!u.isBuffer(a))throw new TypeError('"buffer" argument must be a Buffer instance');if(c>x||c<Q)throw new RangeError('"value" argument is out of bounds');if(R+y>a.length)throw new RangeError("Index out of range")}function k(a,c,R,y){c<0&&(c=65535+c+1);for(var x=0,Q=Math.min(a.length-R,2);x<Q;++x)a[R+x]=(c&255<<8*(y?x:1-x))>>>8*(y?x:1-x)}function I(a,c,R,y){c<0&&(c=4294967295+c+1);for(var x=0,Q=Math.min(a.length-R,4);x<Q;++x)a[R+x]=c>>>8*(y?x:3-x)&255}function z(a,c,R,y,x,Q){if(R+y>a.length)throw new RangeError("Index out of range");if(R<0)throw new RangeError("Index out of range")}function X(a,c,R,y,x){return x||z(a,c,R,4,34028234663852886e22,-34028234663852886e22),oe.write(a,c,R,y,23,4),R+4}function Z(a,c,R,y,x){return x||z(a,c,R,8,17976931348623157e292,-17976931348623157e292),oe.write(a,c,R,y,52,8),R+8}function J(a){if(a=re(a).replace(P,""),a.length<2)return"";for(;a.length%4!=0;)a+="=";return a}function re(a){return a.trim?a.trim():a.replace(/^\s+|\s+$/g,"")}function ee(a){return a<16?"0"+a.toString(16):a.toString(16)}function se(a,c){c=c||1/0;for(var R,y=a.length,x=null,Q=[],V=0;V<y;++V){if((R=a.charCodeAt(V))>55295&&R<57344){if(!x){if(R>56319){(c-=3)>-1&&Q.push(239,191,189);continue}if(V+1===y){(c-=3)>-1&&Q.push(239,191,189);continue}x=R;continue}if(R<56320){(c-=3)>-1&&Q.push(239,191,189),x=R;continue}R=65536+(x-55296<<10|R-56320)}else x&&(c-=3)>-1&&Q.push(239,191,189);if(x=null,R<128){if((c-=1)<0)break;Q.push(R)}else if(R<2048){if((c-=2)<0)break;Q.push(R>>6|192,63&R|128)}else if(R<65536){if((c-=3)<0)break;Q.push(R>>12|224,R>>6&63|128,63&R|128)}else{if(!(R<1114112))throw new Error("Invalid code point");if((c-=4)<0)break;Q.push(R>>18|240,R>>12&63|128,R>>6&63|128,63&R|128)}}return Q}function ue(a){for(var c=[],R=0;R<a.length;++R)c.push(255&a.charCodeAt(R));return c}function q(a,c){for(var R,y,x,Q=[],V=0;V<a.length&&!((c-=2)<0);++V)R=a.charCodeAt(V),y=R>>8,x=R%256,Q.push(x),Q.push(y);return Q}function Y(a){return W.toByteArray(J(a))}function ie(a,c,R,y){for(var x=0;x<y&&!(x+R>=c.length||x>=a.length);++x)c[x+R]=a[x];return x}function B(a){return a!==a}var W=t("base64-js"),oe=t("ieee754"),ne=t("isarray");v.Buffer=u,v.SlowBuffer=b,v.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=l.TYPED_ARRAY_SUPPORT!==void 0?l.TYPED_ARRAY_SUPPORT:function(){try{var a=new Uint8Array(1);return a.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},a.foo()===42&&typeof a.subarray=="function"&&a.subarray(1,1).byteLength===0}catch(c){return!1}}(),v.kMaxLength=_(),u.poolSize=8192,u._augment=function(a){return a.__proto__=u.prototype,a},u.from=function(a,c,R){return o(null,a,c,R)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(a,c,R){return n(null,a,c,R)},u.allocUnsafe=function(a){return i(null,a)},u.allocUnsafeSlow=function(a){return i(null,a)},u.isBuffer=function(a){return!(a==null||!a._isBuffer)},u.compare=function(a,c){if(!u.isBuffer(a)||!u.isBuffer(c))throw new TypeError("Arguments must be Buffers");if(a===c)return 0;for(var R=a.length,y=c.length,x=0,Q=Math.min(R,y);x<Q;++x)if(a[x]!==c[x]){R=a[x],y=c[x];break}return R<y?-1:y<R?1:0},u.isEncoding=function(a){switch(String(a).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}},u.concat=function(a,c){if(!ne(a))throw new TypeError('"list" argument must be an Array of Buffers');if(a.length===0)return u.alloc(0);var R;if(c===void 0)for(c=0,R=0;R<a.length;++R)c+=a[R].length;var y=u.allocUnsafe(c),x=0;for(R=0;R<a.length;++R){var Q=a[R];if(!u.isBuffer(Q))throw new TypeError('"list" argument must be an Array of Buffers');Q.copy(y,x),x+=Q.length}return y},u.byteLength=p,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var a=this.length;if(a%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var c=0;c<a;c+=2)D(this,c,c+1);return this},u.prototype.swap32=function(){var a=this.length;if(a%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var c=0;c<a;c+=4)D(this,c,c+3),D(this,c+1,c+2);return this},u.prototype.swap64=function(){var a=this.length;if(a%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var c=0;c<a;c+=8)D(this,c,c+7),D(this,c+1,c+6),D(this,c+2,c+5),D(this,c+3,c+4);return this},u.prototype.toString=function(){var a=0|this.length;return a===0?"":arguments.length===0?N(this,0,a):S.apply(this,arguments)},u.prototype.equals=function(a){if(!u.isBuffer(a))throw new TypeError("Argument must be a Buffer");return this===a||u.compare(this,a)===0},u.prototype.inspect=function(){var a="",c=v.INSPECT_MAX_BYTES;return this.length>0&&(a=this.toString("hex",0,c).match(/.{2}/g).join(" "),this.length>c&&(a+=" ... ")),"<Buffer "+a+">"},u.prototype.compare=function(a,c,R,y,x){if(!u.isBuffer(a))throw new TypeError("Argument must be a Buffer");if(c===void 0&&(c=0),R===void 0&&(R=a?a.length:0),y===void 0&&(y=0),x===void 0&&(x=this.length),c<0||R>a.length||y<0||x>this.length)throw new RangeError("out of range index");if(y>=x&&c>=R)return 0;if(y>=x)return-1;if(c>=R)return 1;if(c>>>=0,R>>>=0,y>>>=0,x>>>=0,this===a)return 0;for(var Q=x-y,V=R-c,xe=Math.min(Q,V),be=this.slice(y,x),ce=a.slice(c,R),Se=0;Se<xe;++Se)if(be[Se]!==ce[Se]){Q=be[Se],V=ce[Se];break}return Q<V?-1:V<Q?1:0},u.prototype.includes=function(a,c,R){return this.indexOf(a,c,R)!==-1},u.prototype.indexOf=function(a,c,R){return h(this,a,c,R,!0)},u.prototype.lastIndexOf=function(a,c,R){return h(this,a,c,R,!1)},u.prototype.write=function(a,c,R,y){if(c===void 0)y="utf8",R=this.length,c=0;else if(R===void 0&&typeof c=="string")y=c,R=this.length,c=0;else{if(!isFinite(c))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");c|=0,isFinite(R)?(R|=0,y===void 0&&(y="utf8")):(y=R,R=void 0)}var x=this.length-c;if((R===void 0||R>x)&&(R=x),a.length>0&&(R<0||c<0)||c>this.length)throw new RangeError("Attempt to write outside buffer bounds");y||(y="utf8");for(var Q=!1;;)switch(y){case"hex":return O(this,a,c,R);case"utf8":case"utf-8":return C(this,a,c,R);case"ascii":return g(this,a,c,R);case"latin1":case"binary":return M(this,a,c,R);case"base64":return T(this,a,c,R);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,a,c,R);default:if(Q)throw new TypeError("Unknown encoding: "+y);y=(""+y).toLowerCase(),Q=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var me=4096;u.prototype.slice=function(a,c){var R=this.length;a=~~a,c=c===void 0?R:~~c,a<0?(a+=R)<0&&(a=0):a>R&&(a=R),c<0?(c+=R)<0&&(c=0):c>R&&(c=R),c<a&&(c=a);var y;if(u.TYPED_ARRAY_SUPPORT)y=this.subarray(a,c),y.__proto__=u.prototype;else{var x=c-a;y=new u(x,void 0);for(var Q=0;Q<x;++Q)y[Q]=this[Q+a]}return y},u.prototype.readUIntLE=function(a,c,R){a|=0,c|=0,R||ae(a,c,this.length);for(var y=this[a],x=1,Q=0;++Q<c&&(x*=256);)y+=this[a+Q]*x;return y},u.prototype.readUIntBE=function(a,c,R){a|=0,c|=0,R||ae(a,c,this.length);for(var y=this[a+--c],x=1;c>0&&(x*=256);)y+=this[a+--c]*x;return y},u.prototype.readUInt8=function(a,c){return c||ae(a,1,this.length),this[a]},u.prototype.readUInt16LE=function(a,c){return c||ae(a,2,this.length),this[a]|this[a+1]<<8},u.prototype.readUInt16BE=function(a,c){return c||ae(a,2,this.length),this[a]<<8|this[a+1]},u.prototype.readUInt32LE=function(a,c){return c||ae(a,4,this.length),(this[a]|this[a+1]<<8|this[a+2]<<16)+16777216*this[a+3]},u.prototype.readUInt32BE=function(a,c){return c||ae(a,4,this.length),16777216*this[a]+(this[a+1]<<16|this[a+2]<<8|this[a+3])},u.prototype.readIntLE=function(a,c,R){a|=0,c|=0,R||ae(a,c,this.length);for(var y=this[a],x=1,Q=0;++Q<c&&(x*=256);)y+=this[a+Q]*x;return x*=128,y>=x&&(y-=Math.pow(2,8*c)),y},u.prototype.readIntBE=function(a,c,R){a|=0,c|=0,R||ae(a,c,this.length);for(var y=c,x=1,Q=this[a+--y];y>0&&(x*=256);)Q+=this[a+--y]*x;return x*=128,Q>=x&&(Q-=Math.pow(2,8*c)),Q},u.prototype.readInt8=function(a,c){return c||ae(a,1,this.length),128&this[a]?-1*(255-this[a]+1):this[a]},u.prototype.readInt16LE=function(a,c){c||ae(a,2,this.length);var R=this[a]|this[a+1]<<8;return 32768&R?4294901760|R:R},u.prototype.readInt16BE=function(a,c){c||ae(a,2,this.length);var R=this[a+1]|this[a]<<8;return 32768&R?4294901760|R:R},u.prototype.readInt32LE=function(a,c){return c||ae(a,4,this.length),this[a]|this[a+1]<<8|this[a+2]<<16|this[a+3]<<24},u.prototype.readInt32BE=function(a,c){return c||ae(a,4,this.length),this[a]<<24|this[a+1]<<16|this[a+2]<<8|this[a+3]},u.prototype.readFloatLE=function(a,c){return c||ae(a,4,this.length),oe.read(this,a,!0,23,4)},u.prototype.readFloatBE=function(a,c){return c||ae(a,4,this.length),oe.read(this,a,!1,23,4)},u.prototype.readDoubleLE=function(a,c){return c||ae(a,8,this.length),oe.read(this,a,!0,52,8)},u.prototype.readDoubleBE=function(a,c){return c||ae(a,8,this.length),oe.read(this,a,!1,52,8)},u.prototype.writeUIntLE=function(a,c,R,y){(a=+a,c|=0,R|=0,!y)&&K(this,a,c,R,Math.pow(2,8*R)-1,0);var x=1,Q=0;for(this[c]=255&a;++Q<R&&(x*=256);)this[c+Q]=a/x&255;return c+R},u.prototype.writeUIntBE=function(a,c,R,y){(a=+a,c|=0,R|=0,!y)&&K(this,a,c,R,Math.pow(2,8*R)-1,0);var x=R-1,Q=1;for(this[c+x]=255&a;--x>=0&&(Q*=256);)this[c+x]=a/Q&255;return c+R},u.prototype.writeUInt8=function(a,c,R){return a=+a,c|=0,R||K(this,a,c,1,255,0),u.TYPED_ARRAY_SUPPORT||(a=Math.floor(a)),this[c]=255&a,c+1},u.prototype.writeUInt16LE=function(a,c,R){return a=+a,c|=0,R||K(this,a,c,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[c]=255&a,this[c+1]=a>>>8):k(this,a,c,!0),c+2},u.prototype.writeUInt16BE=function(a,c,R){return a=+a,c|=0,R||K(this,a,c,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[c]=a>>>8,this[c+1]=255&a):k(this,a,c,!1),c+2},u.prototype.writeUInt32LE=function(a,c,R){return a=+a,c|=0,R||K(this,a,c,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[c+3]=a>>>24,this[c+2]=a>>>16,this[c+1]=a>>>8,this[c]=255&a):I(this,a,c,!0),c+4},u.prototype.writeUInt32BE=function(a,c,R){return a=+a,c|=0,R||K(this,a,c,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[c]=a>>>24,this[c+1]=a>>>16,this[c+2]=a>>>8,this[c+3]=255&a):I(this,a,c,!1),c+4},u.prototype.writeIntLE=function(a,c,R,y){if(a=+a,c|=0,!y){var x=Math.pow(2,8*R-1);K(this,a,c,R,x-1,-x)}var Q=0,V=1,xe=0;for(this[c]=255&a;++Q<R&&(V*=256);)a<0&&xe===0&&this[c+Q-1]!==0&&(xe=1),this[c+Q]=(a/V>>0)-xe&255;return c+R},u.prototype.writeIntBE=function(a,c,R,y){if(a=+a,c|=0,!y){var x=Math.pow(2,8*R-1);K(this,a,c,R,x-1,-x)}var Q=R-1,V=1,xe=0;for(this[c+Q]=255&a;--Q>=0&&(V*=256);)a<0&&xe===0&&this[c+Q+1]!==0&&(xe=1),this[c+Q]=(a/V>>0)-xe&255;return c+R},u.prototype.writeInt8=function(a,c,R){return a=+a,c|=0,R||K(this,a,c,1,127,-128),u.TYPED_ARRAY_SUPPORT||(a=Math.floor(a)),a<0&&(a=255+a+1),this[c]=255&a,c+1},u.prototype.writeInt16LE=function(a,c,R){return a=+a,c|=0,R||K(this,a,c,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[c]=255&a,this[c+1]=a>>>8):k(this,a,c,!0),c+2},u.prototype.writeInt16BE=function(a,c,R){return a=+a,c|=0,R||K(this,a,c,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[c]=a>>>8,this[c+1]=255&a):k(this,a,c,!1),c+2},u.prototype.writeInt32LE=function(a,c,R){return a=+a,c|=0,R||K(this,a,c,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[c]=255&a,this[c+1]=a>>>8,this[c+2]=a>>>16,this[c+3]=a>>>24):I(this,a,c,!0),c+4},u.prototype.writeInt32BE=function(a,c,R){return a=+a,c|=0,R||K(this,a,c,4,2147483647,-2147483648),a<0&&(a=4294967295+a+1),u.TYPED_ARRAY_SUPPORT?(this[c]=a>>>24,this[c+1]=a>>>16,this[c+2]=a>>>8,this[c+3]=255&a):I(this,a,c,!1),c+4},u.prototype.writeFloatLE=function(a,c,R){return X(this,a,c,!0,R)},u.prototype.writeFloatBE=function(a,c,R){return X(this,a,c,!1,R)},u.prototype.writeDoubleLE=function(a,c,R){return Z(this,a,c,!0,R)},u.prototype.writeDoubleBE=function(a,c,R){return Z(this,a,c,!1,R)},u.prototype.copy=function(a,c,R,y){if(R||(R=0),y||y===0||(y=this.length),c>=a.length&&(c=a.length),c||(c=0),y>0&&y<R&&(y=R),y===R)return 0;if(a.length===0||this.length===0)return 0;if(c<0)throw new RangeError("targetStart out of bounds");if(R<0||R>=this.length)throw new RangeError("sourceStart out of bounds");if(y<0)throw new RangeError("sourceEnd out of bounds");y>this.length&&(y=this.length),a.length-c<y-R&&(y=a.length-c+R);var x,Q=y-R;if(this===a&&R<c&&c<y)for(x=Q-1;x>=0;--x)a[x+c]=this[x+R];else if(Q<1e3||!u.TYPED_ARRAY_SUPPORT)for(x=0;x<Q;++x)a[x+c]=this[x+R];else Uint8Array.prototype.set.call(a,this.subarray(R,R+Q),c);return Q},u.prototype.fill=function(a,c,R,y){if(typeof a=="string"){if(typeof c=="string"?(y=c,c=0,R=this.length):typeof R=="string"&&(y=R,R=this.length),a.length===1){var x=a.charCodeAt(0);x<256&&(a=x)}if(y!==void 0&&typeof y!="string")throw new TypeError("encoding must be a string");if(typeof y=="string"&&!u.isEncoding(y))throw new TypeError("Unknown encoding: "+y)}else typeof a=="number"&&(a&=255);if(c<0||this.length<c||this.length<R)throw new RangeError("Out of range index");if(R<=c)return this;c>>>=0,R=R===void 0?this.length:R>>>0,a||(a=0);var Q;if(typeof a=="number")for(Q=c;Q<R;++Q)this[Q]=a;else{var V=u.isBuffer(a)?a:se(new u(a,y).toString()),xe=V.length;for(Q=0;Q<R-c;++Q)this[Q+c]=V[Q%xe]}return this};var P=/[^+\/0-9A-Za-z-_]/g}).call(this,typeof Xe!="undefined"?Xe:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"base64-js":34,ieee754:161,isarray:166}],39:[function(t,w,v){w.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(t,w,v){"use strict";var l=function(){this.buffer=[],this.fns=[]};l.prototype.push=function(r,u){if(this.fns.length)return this.fns.shift()(null,r);var o={data:r,priority:u},e=_(this.buffer,o,function(n){return n.priority});this.buffer.splice(e,0,o)},l.prototype.next=function(){var r=this;return function(u){if(r.buffer.length)return u(null,r.buffer.pop().data);r.fns.push(u)}};var _=function(u,o,e){o=e(o);for(var n=0,i=u?u.length:n;n<i;){var s=n+i>>>1;e(u[s])<o?n=s+1:i=s}return n};w.exports=l},{}],41:[function(t,w,v){function l(m){var f=this,A=d.call(arguments,1);return new Promise(function(b,p){function S(E){var O;try{O=m.next(E)}catch(C){return p(C)}h(O)}function D(E){var O;try{O=m.throw(E)}catch(C){return p(C)}h(O)}function h(E){if(E.done)return b(E.value);var O=_.call(f,E.value);return O&&e(O)?O.then(S,D):D(new TypeError('You may only yield a function, promise, generator, array, or object, but the following object was passed: "'+String(E.value)+'"'))}if(typeof m=="function"&&(m=m.apply(f,A)),!m||typeof m.next!="function")return b(m);S()})}function _(m){return m&&(e(m)?m:i(m)||n(m)?l.call(this,m):typeof m=="function"?r.call(this,m):Array.isArray(m)?u.call(this,m):s(m)?o.call(this,m):m)}function r(m){var f=this;return new Promise(function(A,b){m.call(f,function(p,S){if(p)return b(p);arguments.length>2&&(S=d.call(arguments,1)),A(S)})})}function u(m){return Promise.all(m.map(_,this))}function o(m){for(var f=new m.constructor,A=Object.keys(m),b=[],p=0;p<A.length;p++){var S=A[p],D=_.call(this,m[S]);D&&e(D)?function(h,E){f[E]=void 0,b.push(h.then(function(O){f[E]=O}))}(D,S):f[S]=m[S]}return Promise.all(b).then(function(){return f})}function e(m){return typeof m.then=="function"}function n(m){return typeof m.next=="function"&&typeof m.throw=="function"}function i(m){var f=m.constructor;return!!f&&(f.name==="GeneratorFunction"||f.displayName==="GeneratorFunction"||n(f.prototype))}function s(m){return Object==m.constructor}var d=Array.prototype.slice;w.exports=l.default=l.co=l,l.wrap=function(m){function f(){return l.call(this,m.apply(this,arguments))}return f.__generatorFunction__=m,f}},{}],42:[function(t,w,v){w.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(t,w,v){"use strict";function l(u,o){if(!(this instanceof l))return new l(u,o);this.src=u,this._withAccess=o}function _(u,o){return u[o]===void 0&&u.__lookupGetter__(o)===void 0&&u.__lookupSetter__(o)===void 0}var r=Array.prototype.slice;w.exports=l,l.prototype.withAccess=function(u){return this._withAccess=u!==!1,this},l.prototype.pick=function(u){return Array.isArray(u)||(u=r.call(arguments)),u.length&&(this.keys=u),this},l.prototype.to=function(u){if(u=u||{},!this.src)return u;var o=this.keys||Object.keys(this.src);if(!this._withAccess){for(var e=0;e<o.length;e++)n=o[e],u[n]===void 0&&(u[n]=this.src[n]);return u}for(var e=0;e<o.length;e++){var n=o[e];if(_(u,n)){var i=this.src.__lookupGetter__(n),s=this.src.__lookupSetter__(n);i&&u.__defineGetter__(n,i),s&&u.__defineSetter__(n,s),i||s||(u[n]=this.src[n])}}return u},l.prototype.toCover=function(u){for(var o=this.keys||Object.keys(this.src),e=0;e<o.length;e++){var n=o[e];delete u[n];var i=this.src.__lookupGetter__(n),s=this.src.__lookupSetter__(n);i&&u.__defineGetter__(n,i),s&&u.__defineSetter__(n,s),i||s||(u[n]=this.src[n])}},l.prototype.override=l.prototype.toCover,l.prototype.and=function(u){var o={};return this.to(o),this.src=u,this.to(o),this.src=o,this}},{}],44:[function(t,w,v){t("../../modules/es6.string.iterator"),t("../../modules/es6.array.from"),w.exports=t("../../modules/_core").Array.from},{"../../modules/_core":65,"../../modules/es6.array.from":133,"../../modules/es6.string.iterator":145}],45:[function(t,w,v){var l=t("../../modules/_core"),_=l.JSON||(l.JSON={stringify:JSON.stringify});w.exports=function(r){return _.stringify.apply(_,arguments)}},{"../../modules/_core":65}],46:[function(t,w,v){t("../../modules/es6.object.assign"),w.exports=t("../../modules/_core").Object.assign},{"../../modules/_core":65,"../../modules/es6.object.assign":136}],47:[function(t,w,v){t("../../modules/es6.object.create");var l=t("../../modules/_core").Object;w.exports=function(_,r){return l.create(_,r)}},{"../../modules/_core":65,"../../modules/es6.object.create":137}],48:[function(t,w,v){t("../../modules/es6.object.define-property");var l=t("../../modules/_core").Object;w.exports=function(_,r,u){return l.defineProperty(_,r,u)}},{"../../modules/_core":65,"../../modules/es6.object.define-property":138}],49:[function(t,w,v){t("../../modules/es6.object.get-own-property-names");var l=t("../../modules/_core").Object;w.exports=function(_){return l.getOwnPropertyNames(_)}},{"../../modules/_core":65,"../../modules/es6.object.get-own-property-names":139}],50:[function(t,w,v){t("../../modules/es6.object.get-prototype-of"),w.exports=t("../../modules/_core").Object.getPrototypeOf},{"../../modules/_core":65,"../../modules/es6.object.get-prototype-of":140}],51:[function(t,w,v){t("../../modules/es6.object.keys"),w.exports=t("../../modules/_core").Object.keys},{"../../modules/_core":65,"../../modules/es6.object.keys":141}],52:[function(t,w,v){t("../modules/es6.object.to-string"),t("../modules/es6.string.iterator"),t("../modules/web.dom.iterable"),t("../modules/es6.promise"),t("../modules/es7.promise.finally"),t("../modules/es7.promise.try"),w.exports=t("../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(t,w,v){t("../modules/web.immediate"),w.exports=t("../modules/_core").setImmediate},{"../modules/_core":65,"../modules/web.immediate":152}],54:[function(t,w,v){t("../../modules/es6.string.from-code-point"),w.exports=t("../../modules/_core").String.fromCodePoint},{"../../modules/_core":65,"../../modules/es6.string.from-code-point":144}],55:[function(t,w,v){t("../../modules/es6.function.has-instance"),w.exports=t("../../modules/_wks-ext").f("hasInstance")},{"../../modules/_wks-ext":130,"../../modules/es6.function.has-instance":135}],56:[function(t,w,v){t("../../modules/es6.symbol"),t("../../modules/es6.object.to-string"),t("../../modules/es7.symbol.async-iterator"),t("../../modules/es7.symbol.observable"),w.exports=t("../../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(t,w,v){t("../../modules/es6.string.iterator"),t("../../modules/web.dom.iterable"),w.exports=t("../../modules/_wks-ext").f("iterator")},{"../../modules/_wks-ext":130,"../../modules/es6.string.iterator":145,"../../modules/web.dom.iterable":151}],58:[function(t,w,v){w.exports=function(l){if(typeof l!="function")throw TypeError(l+" is not a function!");return l}},{}],59:[function(t,w,v){w.exports=function(){}},{}],60:[function(t,w,v){w.exports=function(l,_,r,u){if(!(l instanceof _)||u!==void 0&&u in l)throw TypeError(r+": incorrect invocation!");return l}},{}],61:[function(t,w,v){var l=t("./_is-object");w.exports=function(_){if(!l(_))throw TypeError(_+" is not an object!");return _}},{"./_is-object":85}],62:[function(t,w,v){var l=t("./_to-iobject"),_=t("./_to-length"),r=t("./_to-absolute-index");w.exports=function(u){return function(o,e,n){var i,s=l(o),d=_(s.length),m=r(n,d);if(u&&e!=e){for(;d>m;)if((i=s[m++])!=i)return!0}else for(;d>m;m++)if((u||m in s)&&s[m]===e)return u||m||0;return!u&&-1}}},{"./_to-absolute-index":121,"./_to-iobject":123,"./_to-length":124}],63:[function(t,w,v){var l=t("./_cof"),_=t("./_wks")("toStringTag"),r=l(function(){return arguments}())=="Arguments",u=function(e,n){try{return e[n]}catch(i){}};w.exports=function(o){var e,n,i;return o===void 0?"Undefined":o===null?"Null":typeof(n=u(e=Object(o),_))=="string"?n:r?l(e):(i=l(e))=="Object"&&typeof e.callee=="function"?"Arguments":i}},{"./_cof":64,"./_wks":131}],64:[function(t,w,v){var l={}.toString;w.exports=function(_){return l.call(_).slice(8,-1)}},{}],65:[function(t,w,v){var l=w.exports={version:"2.5.7"};typeof __e=="number"&&(__e=l)},{}],66:[function(t,w,v){"use strict";var l=t("./_object-dp"),_=t("./_property-desc");w.exports=function(r,u,o){u in r?l.f(r,u,_(0,o)):r[u]=o}},{"./_object-dp":98,"./_property-desc":111}],67:[function(t,w,v){var l=t("./_a-function");w.exports=function(_,r,u){if(l(_),r===void 0)return _;switch(u){case 1:return function(o){return _.call(r,o)};case 2:return function(o,e){return _.call(r,o,e)};case 3:return function(o,e,n){return _.call(r,o,e,n)}}return function(){return _.apply(r,arguments)}}},{"./_a-function":58}],68:[function(t,w,v){w.exports=function(l){if(l==null)throw TypeError("Can't call method on "+l);return l}},{}],69:[function(t,w,v){w.exports=!t("./_fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./_fails":74}],70:[function(t,w,v){var l=t("./_is-object"),_=t("./_global").document,r=l(_)&&l(_.createElement);w.exports=function(u){return r?_.createElement(u):{}}},{"./_global":76,"./_is-object":85}],71:[function(t,w,v){w.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],72:[function(t,w,v){var l=t("./_object-keys"),_=t("./_object-gops"),r=t("./_object-pie");w.exports=function(u){var o=l(u),e=_.f;if(e)for(var n,i=e(u),s=r.f,d=0;i.length>d;)s.call(u,n=i[d++])&&o.push(n);return o}},{"./_object-gops":103,"./_object-keys":106,"./_object-pie":107}],73:[function(t,w,v){var l=t("./_global"),_=t("./_core"),r=t("./_ctx"),u=t("./_hide"),o=t("./_has"),e=function n(i,s,d){var m,f,A,b=i&n.F,p=i&n.G,S=i&n.S,D=i&n.P,h=i&n.B,E=i&n.W,O=p?_:_[s]||(_[s]={}),C=O.prototype,g=p?l:S?l[s]:(l[s]||{}).prototype;p&&(d=s);for(m in d)(f=!b&&g&&g[m]!==void 0)&&o(O,m)||(A=f?g[m]:d[m],O[m]=p&&typeof g[m]!="function"?d[m]:h&&f?r(A,l):E&&g[m]==A?function(M){var T=function(j,N,G){if(this instanceof M){switch(arguments.length){case 0:return new M;case 1:return new M(j);case 2:return new M(j,N)}return new M(j,N,G)}return M.apply(this,arguments)};return T.prototype=M.prototype,T}(A):D&&typeof A=="function"?r(Function.call,A):A,D&&((O.virtual||(O.virtual={}))[m]=A,i&n.R&&C&&!C[m]&&u(C,m,A)))};e.F=1,e.G=2,e.S=4,e.P=8,e.B=16,e.W=32,e.U=64,e.R=128,w.exports=e},{"./_core":65,"./_ctx":67,"./_global":76,"./_has":77,"./_hide":78}],74:[function(t,w,v){w.exports=function(l){try{return!!l()}catch(_){return!0}}},{}],75:[function(t,w,v){var l=t("./_ctx"),_=t("./_iter-call"),r=t("./_is-array-iter"),u=t("./_an-object"),o=t("./_to-length"),e=t("./core.get-iterator-method"),n={},i={},v=w.exports=function(s,d,m,f,A){var b,p,S,D,h=A?function(){return s}:e(s),E=l(m,f,d?2:1),O=0;if(typeof h!="function")throw TypeError(s+" is not iterable!");if(r(h)){for(b=o(s.length);b>O;O++)if((D=d?E(u(p=s[O])[0],p[1]):E(s[O]))===n||D===i)return D}else for(S=h.call(s);!(p=S.next()).done;)if((D=_(S,E,p.value,d))===n||D===i)return D};v.BREAK=n,v.RETURN=i},{"./_an-object":61,"./_ctx":67,"./_is-array-iter":83,"./_iter-call":86,"./_to-length":124,"./core.get-iterator-method":132}],76:[function(t,w,v){var l=w.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=l)},{}],77:[function(t,w,v){var l={}.hasOwnProperty;w.exports=function(_,r){return l.call(_,r)}},{}],78:[function(t,w,v){var l=t("./_object-dp"),_=t("./_property-desc");w.exports=t("./_descriptors")?function(r,u,o){return l.f(r,u,_(1,o))}:function(r,u,o){return r[u]=o,r}},{"./_descriptors":69,"./_object-dp":98,"./_property-desc":111}],79:[function(t,w,v){var l=t("./_global").document;w.exports=l&&l.documentElement},{"./_global":76}],80:[function(t,w,v){w.exports=!t("./_descriptors")&&!t("./_fails")(function(){return Object.defineProperty(t("./_dom-create")("div"),"a",{get:function(){return 7}}).a!=7})},{"./_descriptors":69,"./_dom-create":70,"./_fails":74}],81:[function(t,w,v){w.exports=function(l,_,r){var u=r===void 0;switch(_.length){case 0:return u?l():l.call(r);case 1:return u?l(_[0]):l.call(r,_[0]);case 2:return u?l(_[0],_[1]):l.call(r,_[0],_[1]);case 3:return u?l(_[0],_[1],_[2]):l.call(r,_[0],_[1],_[2]);case 4:return u?l(_[0],_[1],_[2],_[3]):l.call(r,_[0],_[1],_[2],_[3])}return l.apply(r,_)}},{}],82:[function(t,w,v){var l=t("./_cof");w.exports=Object("z").propertyIsEnumerable(0)?Object:function(_){return l(_)=="String"?_.split(""):Object(_)}},{"./_cof":64}],83:[function(t,w,v){var l=t("./_iterators"),_=t("./_wks")("iterator"),r=Array.prototype;w.exports=function(u){return u!==void 0&&(l.Array===u||r[_]===u)}},{"./_iterators":91,"./_wks":131}],84:[function(t,w,v){var l=t("./_cof");w.exports=Array.isArray||function(_){return l(_)=="Array"}},{"./_cof":64}],85:[function(t,w,v){w.exports=function(l){return typeof l=="object"?l!==null:typeof l=="function"}},{}],86:[function(t,w,v){var l=t("./_an-object");w.exports=function(_,r,u,o){try{return o?r(l(u)[0],u[1]):r(u)}catch(n){var e=_.return;throw e!==void 0&&l(e.call(_)),n}}},{"./_an-object":61}],87:[function(t,w,v){"use strict";var l=t("./_object-create"),_=t("./_property-desc"),r=t("./_set-to-string-tag"),u={};t("./_hide")(u,t("./_wks")("iterator"),function(){return this}),w.exports=function(o,e,n){o.prototype=l(u,{next:_(1,n)}),r(o,e+" Iterator")}},{"./_hide":78,"./_object-create":97,"./_property-desc":111,"./_set-to-string-tag":115,"./_wks":131}],88:[function(t,w,v){"use strict";var l=t("./_library"),_=t("./_export"),r=t("./_redefine"),u=t("./_hide"),o=t("./_iterators"),e=t("./_iter-create"),n=t("./_set-to-string-tag"),i=t("./_object-gpo"),s=t("./_wks")("iterator"),d=!([].keys&&"next"in[].keys()),m=function(){return this};w.exports=function(f,A,b,p,S,D,h){e(b,A,p);var E,O,C,g=function(te){if(!d&&te in j)return j[te];switch(te){case"keys":case"values":return function(){return new b(this,te)}}return function(){return new b(this,te)}},M=A+" Iterator",T=S=="values",L=!1,j=f.prototype,N=j[s]||j["@@iterator"]||S&&j[S],G=N||g(S),$=S?T?g("entries"):G:void 0,H=A=="Array"&&j.entries||N;if(H&&(C=i(H.call(new f)))!==Object.prototype&&C.next&&(n(C,M,!0),l||typeof C[s]=="function"||u(C,s,m)),T&&N&&N.name!=="values"&&(L=!0,G=function(){return N.call(this)}),l&&!h||!d&&!L&&j[s]||u(j,s,G),o[A]=G,o[M]=m,S)if(E={values:T?G:g("values"),keys:D?G:g("keys"),entries:$},h)for(O in E)O in j||r(j,O,E[O]);else _(_.P+_.F*(d||L),A,E);return E}},{"./_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(t,w,v){var l=t("./_wks")("iterator"),_=!1;try{var r=[7][l]();r.return=function(){_=!0},Array.from(r,function(){throw 2})}catch(u){}w.exports=function(u,o){if(!o&&!_)return!1;var e=!1;try{var n=[7],i=n[l]();i.next=function(){return{done:e=!0}},n[l]=function(){return i},u(n)}catch(s){}return e}},{"./_wks":131}],90:[function(t,w,v){w.exports=function(l,_){return{value:_,done:!!l}}},{}],91:[function(t,w,v){w.exports={}},{}],92:[function(t,w,v){w.exports=!0},{}],93:[function(t,w,v){var l=t("./_uid")("meta"),_=t("./_is-object"),r=t("./_has"),u=t("./_object-dp").f,o=0,e=Object.isExtensible||function(){return!0},n=!t("./_fails")(function(){return e(Object.preventExtensions({}))}),i=function(b){u(b,l,{value:{i:"O"+ ++o,w:{}}})},s=function(b,p){if(!_(b))return typeof b=="symbol"?b:(typeof b=="string"?"S":"P")+b;if(!r(b,l)){if(!e(b))return"F";if(!p)return"E";i(b)}return b[l].i},d=function(b,p){if(!r(b,l)){if(!e(b))return!0;if(!p)return!1;i(b)}return b[l].w},m=function(b){return n&&f.NEED&&e(b)&&!r(b,l)&&i(b),b},f=w.exports={KEY:l,NEED:!1,fastKey:s,getWeak:d,onFreeze:m}},{"./_fails":74,"./_has":77,"./_is-object":85,"./_object-dp":98,"./_uid":127}],94:[function(t,w,v){var l=t("./_global"),_=t("./_task").set,r=l.MutationObserver||l.WebKitMutationObserver,u=l.process,o=l.Promise,e=t("./_cof")(u)=="process";w.exports=function(){var n,i,s,d=function(){var p,S;for(e&&(p=u.domain)&&p.exit();n;){S=n.fn,n=n.next;try{S()}catch(D){throw n?s():i=void 0,D}}i=void 0,p&&p.enter()};if(e)s=function(){u.nextTick(d)};else if(!r||l.navigator&&l.navigator.standalone)if(o&&o.resolve){var m=o.resolve(void 0);s=function(){m.then(d)}}else s=function(){_.call(l,d)};else{var f=!0,A=document.createTextNode("");new r(d).observe(A,{characterData:!0}),s=function(){A.data=f=!f}}return function(b){var p={fn:b,next:void 0};i&&(i.next=p),n||(n=p,s()),i=p}}},{"./_cof":64,"./_global":76,"./_task":120}],95:[function(t,w,v){"use strict";function l(r){var u,o;this.promise=new r(function(e,n){if(u!==void 0||o!==void 0)throw TypeError("Bad Promise constructor");u=e,o=n}),this.resolve=_(u),this.reject=_(o)}var _=t("./_a-function");w.exports.f=function(r){return new l(r)}},{"./_a-function":58}],96:[function(t,w,v){"use strict";var l=t("./_object-keys"),_=t("./_object-gops"),r=t("./_object-pie"),u=t("./_to-object"),o=t("./_iobject"),e=Object.assign;w.exports=!e||t("./_fails")(function(){var n={},i={},s=Symbol(),d="abcdefghijklmnopqrst";return n[s]=7,d.split("").forEach(function(m){i[m]=m}),e({},n)[s]!=7||Object.keys(e({},i)).join("")!=d})?function(n,i){for(var s=u(n),d=arguments.length,m=1,f=_.f,A=r.f;d>m;)for(var b,p=o(arguments[m++]),S=f?l(p).concat(f(p)):l(p),D=S.length,h=0;D>h;)A.call(p,b=S[h++])&&(s[b]=p[b]);return s}:e},{"./_fails":74,"./_iobject":82,"./_object-gops":103,"./_object-keys":106,"./_object-pie":107,"./_to-object":125}],97:[function(t,w,v){var l=t("./_an-object"),_=t("./_object-dps"),r=t("./_enum-bug-keys"),u=t("./_shared-key")("IE_PROTO"),o=function(){},e=function(){var i,s=t("./_dom-create")("iframe"),d=r.length;for(s.style.display="none",t("./_html").appendChild(s),s.src="javascript:",i=s.contentWindow.document,i.open(),i.write("<script>document.F=Object</script>"),i.close(),e=i.F;d--;)delete e.prototype[r[d]];return e()};w.exports=Object.create||function(n,i){var s;return n!==null?(o.prototype=l(n),s=new o,o.prototype=null,s[u]=n):s=e(),i===void 0?s:_(s,i)}},{"./_an-object":61,"./_dom-create":70,"./_enum-bug-keys":71,"./_html":79,"./_object-dps":99,"./_shared-key":116}],98:[function(t,w,v){var l=t("./_an-object"),_=t("./_ie8-dom-define"),r=t("./_to-primitive"),u=Object.defineProperty;v.f=t("./_descriptors")?Object.defineProperty:function(o,e,n){if(l(o),e=r(e,!0),l(n),_)try{return u(o,e,n)}catch(i){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(o[e]=n.value),o}},{"./_an-object":61,"./_descriptors":69,"./_ie8-dom-define":80,"./_to-primitive":126}],99:[function(t,w,v){var l=t("./_object-dp"),_=t("./_an-object"),r=t("./_object-keys");w.exports=t("./_descriptors")?Object.defineProperties:function(u,o){_(u);for(var e,n=r(o),i=n.length,s=0;i>s;)l.f(u,e=n[s++],o[e]);return u}},{"./_an-object":61,"./_descriptors":69,"./_object-dp":98,"./_object-keys":106}],100:[function(t,w,v){var l=t("./_object-pie"),_=t("./_property-desc"),r=t("./_to-iobject"),u=t("./_to-primitive"),o=t("./_has"),e=t("./_ie8-dom-define"),n=Object.getOwnPropertyDescriptor;v.f=t("./_descriptors")?n:function(i,s){if(i=r(i),s=u(s,!0),e)try{return n(i,s)}catch(d){}if(o(i,s))return _(!l.f.call(i,s),i[s])}},{"./_descriptors":69,"./_has":77,"./_ie8-dom-define":80,"./_object-pie":107,"./_property-desc":111,"./_to-iobject":123,"./_to-primitive":126}],101:[function(t,w,v){var l=t("./_to-iobject"),_=t("./_object-gopn").f,r={}.toString,u=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],o=function(n){try{return _(n)}catch(i){return u.slice()}};w.exports.f=function(e){return u&&r.call(e)=="[object Window]"?o(e):_(l(e))}},{"./_object-gopn":102,"./_to-iobject":123}],102:[function(t,w,v){var l=t("./_object-keys-internal"),_=t("./_enum-bug-keys").concat("length","prototype");v.f=Object.getOwnPropertyNames||function(r){return l(r,_)}},{"./_enum-bug-keys":71,"./_object-keys-internal":105}],103:[function(t,w,v){v.f=Object.getOwnPropertySymbols},{}],104:[function(t,w,v){var l=t("./_has"),_=t("./_to-object"),r=t("./_shared-key")("IE_PROTO"),u=Object.prototype;w.exports=Object.getPrototypeOf||function(o){return o=_(o),l(o,r)?o[r]:typeof o.constructor=="function"&&o instanceof o.constructor?o.constructor.prototype:o instanceof Object?u:null}},{"./_has":77,"./_shared-key":116,"./_to-object":125}],105:[function(t,w,v){var l=t("./_has"),_=t("./_to-iobject"),r=t("./_array-includes")(!1),u=t("./_shared-key")("IE_PROTO");w.exports=function(o,e){var n,i=_(o),s=0,d=[];for(n in i)n!=u&&l(i,n)&&d.push(n);for(;e.length>s;)l(i,n=e[s++])&&(~r(d,n)||d.push(n));return d}},{"./_array-includes":62,"./_has":77,"./_shared-key":116,"./_to-iobject":123}],106:[function(t,w,v){var l=t("./_object-keys-internal"),_=t("./_enum-bug-keys");w.exports=Object.keys||function(r){return l(r,_)}},{"./_enum-bug-keys":71,"./_object-keys-internal":105}],107:[function(t,w,v){v.f={}.propertyIsEnumerable},{}],108:[function(t,w,v){var l=t("./_export"),_=t("./_core"),r=t("./_fails");w.exports=function(u,o){var e=(_.Object||{})[u]||Object[u],n={};n[u]=o(e),l(l.S+l.F*r(function(){e(1)}),"Object",n)}},{"./_core":65,"./_export":73,"./_fails":74}],109:[function(t,w,v){w.exports=function(l){try{return{e:!1,v:l()}}catch(_){return{e:!0,v:_}}}},{}],110:[function(t,w,v){var l=t("./_an-object"),_=t("./_is-object"),r=t("./_new-promise-capability");w.exports=function(u,o){if(l(u),_(o)&&o.constructor===u)return o;var e=r.f(u);return(0,e.resolve)(o),e.promise}},{"./_an-object":61,"./_is-object":85,"./_new-promise-capability":95}],111:[function(t,w,v){w.exports=function(l,_){return{enumerable:!(1&l),configurable:!(2&l),writable:!(4&l),value:_}}},{}],112:[function(t,w,v){var l=t("./_hide");w.exports=function(_,r,u){for(var o in r)u&&_[o]?_[o]=r[o]:l(_,o,r[o]);return _}},{"./_hide":78}],113:[function(t,w,v){w.exports=t("./_hide")},{"./_hide":78}],114:[function(t,w,v){"use strict";var l=t("./_global"),_=t("./_core"),r=t("./_object-dp"),u=t("./_descriptors"),o=t("./_wks")("species");w.exports=function(e){var n=typeof _[e]=="function"?_[e]:l[e];u&&n&&!n[o]&&r.f(n,o,{configurable:!0,get:function(){return this}})}},{"./_core":65,"./_descriptors":69,"./_global":76,"./_object-dp":98,"./_wks":131}],115:[function(t,w,v){var l=t("./_object-dp").f,_=t("./_has"),r=t("./_wks")("toStringTag");w.exports=function(u,o,e){u&&!_(u=e?u:u.prototype,r)&&l(u,r,{configurable:!0,value:o})}},{"./_has":77,"./_object-dp":98,"./_wks":131}],116:[function(t,w,v){var l=t("./_shared")("keys"),_=t("./_uid");w.exports=function(r){return l[r]||(l[r]=_(r))}},{"./_shared":117,"./_uid":127}],117:[function(t,w,v){var l=t("./_core"),_=t("./_global"),r=_["__core-js_shared__"]||(_["__core-js_shared__"]={});(w.exports=function(u,o){return r[u]||(r[u]=o!==void 0?o:{})})("versions",[]).push({version:l.version,mode:t("./_library")?"pure":"global",copyright:"\u6F0F 2018 Denis Pushkarev (zloirock.ru)"})},{"./_core":65,"./_global":76,"./_library":92}],118:[function(t,w,v){var l=t("./_an-object"),_=t("./_a-function"),r=t("./_wks")("species");w.exports=function(u,o){var e,n=l(u).constructor;return n===void 0||(e=l(n)[r])==null?o:_(e)}},{"./_a-function":58,"./_an-object":61,"./_wks":131}],119:[function(t,w,v){var l=t("./_to-integer"),_=t("./_defined");w.exports=function(r){return function(u,o){var e,n,i=String(_(u)),s=l(o),d=i.length;return s<0||s>=d?r?"":void 0:(e=i.charCodeAt(s),e<55296||e>56319||s+1===d||(n=i.charCodeAt(s+1))<56320||n>57343?r?i.charAt(s):e:r?i.slice(s,s+2):n-56320+(e-55296<<10)+65536)}}},{"./_defined":68,"./_to-integer":122}],120:[function(t,w,v){var l,_,r,u=t("./_ctx"),o=t("./_invoke"),e=t("./_html"),n=t("./_dom-create"),i=t("./_global"),s=i.process,d=i.setImmediate,m=i.clearImmediate,f=i.MessageChannel,A=i.Dispatch,b=0,p={},S=function(){var E=+this;if(p.hasOwnProperty(E)){var O=p[E];delete p[E],O()}},D=function(E){S.call(E.data)};d&&m||(d=function(E){for(var O=[],C=1;arguments.length>C;)O.push(arguments[C++]);return p[++b]=function(){o(typeof E=="function"?E:Function(E),O)},l(b),b},m=function(E){delete p[E]},t("./_cof")(s)=="process"?l=function(E){s.nextTick(u(S,E,1))}:A&&A.now?l=function(E){A.now(u(S,E,1))}:f?(_=new f,r=_.port2,_.port1.onmessage=D,l=u(r.postMessage,r,1)):i.addEventListener&&typeof postMessage=="function"&&!i.importScripts?(l=function(E){i.postMessage(E+"","*")},i.addEventListener("message",D,!1)):l="onreadystatechange"in n("script")?function(h){e.appendChild(n("script")).onreadystatechange=function(){e.removeChild(this),S.call(h)}}:function(h){setTimeout(u(S,h,1),0)}),w.exports={set:d,clear:m}},{"./_cof":64,"./_ctx":67,"./_dom-create":70,"./_global":76,"./_html":79,"./_invoke":81}],121:[function(t,w,v){var l=t("./_to-integer"),_=Math.max,r=Math.min;w.exports=function(u,o){return u=l(u),u<0?_(u+o,0):r(u,o)}},{"./_to-integer":122}],122:[function(t,w,v){var l=Math.ceil,_=Math.floor;w.exports=function(r){return isNaN(r=+r)?0:(r>0?_:l)(r)}},{}],123:[function(t,w,v){var l=t("./_iobject"),_=t("./_defined");w.exports=function(r){return l(_(r))}},{"./_defined":68,"./_iobject":82}],124:[function(t,w,v){var l=t("./_to-integer"),_=Math.min;w.exports=function(r){return r>0?_(l(r),9007199254740991):0}},{"./_to-integer":122}],125:[function(t,w,v){var l=t("./_defined");w.exports=function(_){return Object(l(_))}},{"./_defined":68}],126:[function(t,w,v){var l=t("./_is-object");w.exports=function(_,r){if(!l(_))return _;var u,o;if(r&&typeof(u=_.toString)=="function"&&!l(o=u.call(_)))return o;if(typeof(u=_.valueOf)=="function"&&!l(o=u.call(_)))return o;if(!r&&typeof(u=_.toString)=="function"&&!l(o=u.call(_)))return o;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":85}],127:[function(t,w,v){var l=0,_=Math.random();w.exports=function(r){return"Symbol(".concat(r===void 0?"":r,")_",(++l+_).toString(36))}},{}],128:[function(t,w,v){var l=t("./_global"),_=l.navigator;w.exports=_&&_.userAgent||""},{"./_global":76}],129:[function(t,w,v){var l=t("./_global"),_=t("./_core"),r=t("./_library"),u=t("./_wks-ext"),o=t("./_object-dp").f;w.exports=function(e){var n=_.Symbol||(_.Symbol=r?{}:l.Symbol||{});e.charAt(0)=="_"||e in n||o(n,e,{value:u.f(e)})}},{"./_core":65,"./_global":76,"./_library":92,"./_object-dp":98,"./_wks-ext":130}],130:[function(t,w,v){v.f=t("./_wks")},{"./_wks":131}],131:[function(t,w,v){var l=t("./_shared")("wks"),_=t("./_uid"),r=t("./_global").Symbol,u=typeof r=="function";(w.exports=function(o){return l[o]||(l[o]=u&&r[o]||(u?r:_)("Symbol."+o))}).store=l},{"./_global":76,"./_shared":117,"./_uid":127}],132:[function(t,w,v){var l=t("./_classof"),_=t("./_wks")("iterator"),r=t("./_iterators");w.exports=t("./_core").getIteratorMethod=function(u){if(u!=null)return u[_]||u["@@iterator"]||r[l(u)]}},{"./_classof":63,"./_core":65,"./_iterators":91,"./_wks":131}],133:[function(t,w,v){"use strict";var l=t("./_ctx"),_=t("./_export"),r=t("./_to-object"),u=t("./_iter-call"),o=t("./_is-array-iter"),e=t("./_to-length"),n=t("./_create-property"),i=t("./core.get-iterator-method");_(_.S+_.F*!t("./_iter-detect")(function(s){Array.from(s)}),"Array",{from:function(d){var m,f,A,b,p=r(d),S=typeof this=="function"?this:Array,D=arguments.length,h=D>1?arguments[1]:void 0,E=h!==void 0,O=0,C=i(p);if(E&&(h=l(h,D>2?arguments[2]:void 0,2)),C==null||S==Array&&o(C))for(m=e(p.length),f=new S(m);m>O;O++)n(f,O,E?h(p[O],O):p[O]);else for(b=C.call(p),f=new S;!(A=b.next()).done;O++)n(f,O,E?u(b,h,[A.value,O],!0):A.value);return f.length=O,f}})},{"./_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(t,w,v){"use strict";var l=t("./_add-to-unscopables"),_=t("./_iter-step"),r=t("./_iterators"),u=t("./_to-iobject");w.exports=t("./_iter-define")(Array,"Array",function(o,e){this._t=u(o),this._i=0,this._k=e},function(){var o=this._t,e=this._k,n=this._i++;return!o||n>=o.length?(this._t=void 0,_(1)):e=="keys"?_(0,n):e=="values"?_(0,o[n]):_(0,[n,o[n]])},"values"),r.Arguments=r.Array,l("keys"),l("values"),l("entries")},{"./_add-to-unscopables":59,"./_iter-define":88,"./_iter-step":90,"./_iterators":91,"./_to-iobject":123}],135:[function(t,w,v){"use strict";var l=t("./_is-object"),_=t("./_object-gpo"),r=t("./_wks")("hasInstance"),u=Function.prototype;r in u||t("./_object-dp").f(u,r,{value:function(e){if(typeof this!="function"||!l(e))return!1;if(!l(this.prototype))return e instanceof this;for(;e=_(e);)if(this.prototype===e)return!0;return!1}})},{"./_is-object":85,"./_object-dp":98,"./_object-gpo":104,"./_wks":131}],136:[function(t,w,v){var l=t("./_export");l(l.S+l.F,"Object",{assign:t("./_object-assign")})},{"./_export":73,"./_object-assign":96}],137:[function(t,w,v){var l=t("./_export");l(l.S,"Object",{create:t("./_object-create")})},{"./_export":73,"./_object-create":97}],138:[function(t,w,v){var l=t("./_export");l(l.S+l.F*!t("./_descriptors"),"Object",{defineProperty:t("./_object-dp").f})},{"./_descriptors":69,"./_export":73,"./_object-dp":98}],139:[function(t,w,v){t("./_object-sap")("getOwnPropertyNames",function(){return t("./_object-gopn-ext").f})},{"./_object-gopn-ext":101,"./_object-sap":108}],140:[function(t,w,v){var l=t("./_to-object"),_=t("./_object-gpo");t("./_object-sap")("getPrototypeOf",function(){return function(r){return _(l(r))}})},{"./_object-gpo":104,"./_object-sap":108,"./_to-object":125}],141:[function(t,w,v){var l=t("./_to-object"),_=t("./_object-keys");t("./_object-sap")("keys",function(){return function(r){return _(l(r))}})},{"./_object-keys":106,"./_object-sap":108,"./_to-object":125}],142:[function(t,w,v){arguments[4][36][0].apply(v,arguments)},{dup:36}],143:[function(t,w,v){"use strict";var l,_,r,u,o=t("./_library"),e=t("./_global"),n=t("./_ctx"),i=t("./_classof"),s=t("./_export"),d=t("./_is-object"),m=t("./_a-function"),f=t("./_an-instance"),A=t("./_for-of"),b=t("./_species-constructor"),p=t("./_task").set,S=t("./_microtask")(),D=t("./_new-promise-capability"),h=t("./_perform"),E=t("./_user-agent"),O=t("./_promise-resolve"),C=e.TypeError,g=e.process,M=g&&g.versions,T=M&&M.v8||"",L=e.Promise,j=i(g)=="process",N=function(){},G=_=D.f,$=!!function(){try{var z=L.resolve(1),X=(z.constructor={})[t("./_wks")("species")]=function(Z){Z(N,N)};return(j||typeof PromiseRejectionEvent=="function")&&z.then(N)instanceof X&&T.indexOf("6.6")!==0&&E.indexOf("Chrome/66")===-1}catch(Z){}}(),H=function(X){var Z;return!(!d(X)||typeof(Z=X.then)!="function")&&Z},F=function(X,Z){if(!X._n){X._n=!0;var J=X._c;S(function(){for(var re=X._v,ee=X._s==1,se=0;J.length>se;)!function(ue){var q,Y,ie,B=ee?ue.ok:ue.fail,W=ue.resolve,oe=ue.reject,ne=ue.domain;try{B?(ee||(X._h==2&&K(X),X._h=1),B===!0?q=re:(ne&&ne.enter(),q=B(re),ne&&(ne.exit(),ie=!0)),q===ue.promise?oe(C("Promise-chain cycle")):(Y=H(q))?Y.call(q,W,oe):W(q)):oe(re)}catch(me){ne&&!ie&&ne.exit(),oe(me)}}(J[se++]);X._c=[],X._n=!1,Z&&!X._h&&te(X)})}},te=function(X){p.call(e,function(){var Z,J,re,ee=X._v,se=ae(X);if(se&&(Z=h(function(){j?g.emit("unhandledRejection",ee,X):(J=e.onunhandledrejection)?J({promise:X,reason:ee}):(re=e.console)&&re.error&&re.error("Unhandled promise rejection",ee)}),X._h=j||ae(X)?2:1),X._a=void 0,se&&Z.e)throw Z.v})},ae=function(X){return X._h!==1&&(X._a||X._c).length===0},K=function(X){p.call(e,function(){var Z;j?g.emit("rejectionHandled",X):(Z=e.onrejectionhandled)&&Z({promise:X,reason:X._v})})},k=function(X){var Z=this;Z._d||(Z._d=!0,Z=Z._w||Z,Z._v=X,Z._s=2,Z._a||(Z._a=Z._c.slice()),F(Z,!0))},I=function z(X){var Z,J=this;if(!J._d){J._d=!0,J=J._w||J;try{if(J===X)throw C("Promise can't be resolved itself");(Z=H(X))?S(function(){var re={_w:J,_d:!1};try{Z.call(X,n(z,re,1),n(k,re,1))}catch(ee){k.call(re,ee)}}):(J._v=X,J._s=1,F(J,!1))}catch(re){k.call({_w:J,_d:!1},re)}}};$||(L=function(X){f(this,L,"Promise","_h"),m(X),l.call(this);try{X(n(I,this,1),n(k,this,1))}catch(Z){k.call(this,Z)}},l=function(X){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},l.prototype=t("./_redefine-all")(L.prototype,{then:function(X,Z){var J=G(b(this,L));return J.ok=typeof X!="function"||X,J.fail=typeof Z=="function"&&Z,J.domain=j?g.domain:void 0,this._c.push(J),this._a&&this._a.push(J),this._s&&F(this,!1),J.promise},catch:function(X){return this.then(void 0,X)}}),r=function(){var X=new l;this.promise=X,this.resolve=n(I,X,1),this.reject=n(k,X,1)},D.f=G=function(X){return X===L||X===u?new r(X):_(X)}),s(s.G+s.W+s.F*!$,{Promise:L}),t("./_set-to-string-tag")(L,"Promise"),t("./_set-species")("Promise"),u=t("./_core").Promise,s(s.S+s.F*!$,"Promise",{reject:function(X){var Z=G(this);return(0,Z.reject)(X),Z.promise}}),s(s.S+s.F*(o||!$),"Promise",{resolve:function(X){return O(o&&this===u?L:this,X)}}),s(s.S+s.F*!($&&t("./_iter-detect")(function(z){L.all(z).catch(N)})),"Promise",{all:function(X){var Z=this,J=G(Z),re=J.resolve,ee=J.reject,se=h(function(){var ue=[],q=0,Y=1;A(X,!1,function(ie){var B=q++,W=!1;ue.push(void 0),Y++,Z.resolve(ie).then(function(oe){W||(W=!0,ue[B]=oe,--Y||re(ue))},ee)}),--Y||re(ue)});return se.e&&ee(se.v),J.promise},race:function(X){var Z=this,J=G(Z),re=J.reject,ee=h(function(){A(X,!1,function(se){Z.resolve(se).then(J.resolve,re)})});return ee.e&&re(ee.v),J.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(t,w,v){var l=t("./_export"),_=t("./_to-absolute-index"),r=String.fromCharCode,u=String.fromCodePoint;l(l.S+l.F*(!!u&&u.length!=1),"String",{fromCodePoint:function(e){for(var n,i=[],s=arguments.length,d=0;s>d;){if(n=+arguments[d++],_(n,1114111)!==n)throw RangeError(n+" is not a valid code point");i.push(n<65536?r(n):r(55296+((n-=65536)>>10),n%1024+56320))}return i.join("")}})},{"./_export":73,"./_to-absolute-index":121}],145:[function(t,w,v){"use strict";var l=t("./_string-at")(!0);t("./_iter-define")(String,"String",function(_){this._t=String(_),this._i=0},function(){var _,r=this._t,u=this._i;return u>=r.length?{value:void 0,done:!0}:(_=l(r,u),this._i+=_.length,{value:_,done:!1})})},{"./_iter-define":88,"./_string-at":119}],146:[function(t,w,v){"use strict";var l=t("./_global"),_=t("./_has"),r=t("./_descriptors"),u=t("./_export"),o=t("./_redefine"),e=t("./_meta").KEY,n=t("./_fails"),i=t("./_shared"),s=t("./_set-to-string-tag"),d=t("./_uid"),m=t("./_wks"),f=t("./_wks-ext"),A=t("./_wks-define"),b=t("./_enum-keys"),p=t("./_is-array"),S=t("./_an-object"),D=t("./_is-object"),h=t("./_to-iobject"),E=t("./_to-primitive"),O=t("./_property-desc"),C=t("./_object-create"),g=t("./_object-gopn-ext"),M=t("./_object-gopd"),T=t("./_object-dp"),L=t("./_object-keys"),j=M.f,N=T.f,G=g.f,$=l.Symbol,H=l.JSON,F=H&&H.stringify,te=m("_hidden"),ae=m("toPrimitive"),K={}.propertyIsEnumerable,k=i("symbol-registry"),I=i("symbols"),z=i("op-symbols"),X=Object.prototype,Z=typeof $=="function",J=l.QObject,re=!J||!J.prototype||!J.prototype.findChild,ee=r&&n(function(){return C(N({},"a",{get:function(){return N(this,"a",{value:7}).a}})).a!=7})?function(R,y,x){var Q=j(X,y);Q&&delete X[y],N(R,y,x),Q&&R!==X&&N(X,y,Q)}:N,se=function(y){var x=I[y]=C($.prototype);return x._k=y,x},ue=Z&&typeof $.iterator=="symbol"?function(R){return typeof R=="symbol"}:function(R){return R instanceof $},q=function R(y,x,Q){return y===X&&R(z,x,Q),S(y),x=E(x,!0),S(Q),_(I,x)?(Q.enumerable?(_(y,te)&&y[te][x]&&(y[te][x]=!1),Q=C(Q,{enumerable:O(0,!1)})):(_(y,te)||N(y,te,O(1,{})),y[te][x]=!0),ee(y,x,Q)):N(y,x,Q)},Y=function(y,x){S(y);for(var Q,V=b(x=h(x)),xe=0,be=V.length;be>xe;)q(y,Q=V[xe++],x[Q]);return y},ie=function(y,x){return x===void 0?C(y):Y(C(y),x)},B=function(y){var x=K.call(this,y=E(y,!0));return!(this===X&&_(I,y)&&!_(z,y))&&(!(x||!_(this,y)||!_(I,y)||_(this,te)&&this[te][y])||x)},W=function(y,x){if(y=h(y),x=E(x,!0),y!==X||!_(I,x)||_(z,x)){var Q=j(y,x);return!Q||!_(I,x)||_(y,te)&&y[te][x]||(Q.enumerable=!0),Q}},oe=function(y){for(var x,Q=G(h(y)),V=[],xe=0;Q.length>xe;)_(I,x=Q[xe++])||x==te||x==e||V.push(x);return V},ne=function(y){for(var x,Q=y===X,V=G(Q?z:h(y)),xe=[],be=0;V.length>be;)!_(I,x=V[be++])||Q&&!_(X,x)||xe.push(I[x]);return xe};Z||($=function(){if(this instanceof $)throw TypeError("Symbol is not a constructor!");var y=d(arguments.length>0?arguments[0]:void 0),x=function Q(V){this===X&&Q.call(z,V),_(this,te)&&_(this[te],y)&&(this[te][y]=!1),ee(this,y,O(1,V))};return r&&re&&ee(X,y,{configurable:!0,set:x}),se(y)},o($.prototype,"toString",function(){return this._k}),M.f=W,T.f=q,t("./_object-gopn").f=g.f=oe,t("./_object-pie").f=B,t("./_object-gops").f=ne,r&&!t("./_library")&&o(X,"propertyIsEnumerable",B,!0),f.f=function(R){return se(m(R))}),u(u.G+u.W+u.F*!Z,{Symbol:$});for(var me="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),P=0;me.length>P;)m(me[P++]);for(var a=L(m.store),c=0;a.length>c;)A(a[c++]);u(u.S+u.F*!Z,"Symbol",{for:function(y){return _(k,y+="")?k[y]:k[y]=$(y)},keyFor:function(y){if(!ue(y))throw TypeError(y+" is not a symbol!");for(var x in k)if(k[x]===y)return x},useSetter:function(){re=!0},useSimple:function(){re=!1}}),u(u.S+u.F*!Z,"Object",{create:ie,defineProperty:q,defineProperties:Y,getOwnPropertyDescriptor:W,getOwnPropertyNames:oe,getOwnPropertySymbols:ne}),H&&u(u.S+u.F*(!Z||n(function(){var R=$();return F([R])!="[null]"||F({a:R})!="{}"||F(Object(R))!="{}"})),"JSON",{stringify:function(y){for(var x,Q,V=[y],xe=1;arguments.length>xe;)V.push(arguments[xe++]);if(Q=x=V[1],(D(x)||y!==void 0)&&!ue(y))return p(x)||(x=function(ce,Se){if(typeof Q=="function"&&(Se=Q.call(this,ce,Se)),!ue(Se))return Se}),V[1]=x,F.apply(H,V)}}),$.prototype[ae]||t("./_hide")($.prototype,ae,$.prototype.valueOf),s($,"Symbol"),s(Math,"Math",!0),s(l.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(t,w,v){"use strict";var l=t("./_export"),_=t("./_core"),r=t("./_global"),u=t("./_species-constructor"),o=t("./_promise-resolve");l(l.P+l.R,"Promise",{finally:function(n){var i=u(this,_.Promise||r.Promise),s=typeof n=="function";return this.then(s?function(d){return o(i,n()).then(function(){return d})}:n,s?function(d){return o(i,n()).then(function(){throw d})}:n)}})},{"./_core":65,"./_export":73,"./_global":76,"./_promise-resolve":110,"./_species-constructor":118}],148:[function(t,w,v){"use strict";var l=t("./_export"),_=t("./_new-promise-capability"),r=t("./_perform");l(l.S,"Promise",{try:function(o){var e=_.f(this),n=r(o);return(n.e?e.reject:e.resolve)(n.v),e.promise}})},{"./_export":73,"./_new-promise-capability":95,"./_perform":109}],149:[function(t,w,v){t("./_wks-define")("asyncIterator")},{"./_wks-define":129}],150:[function(t,w,v){t("./_wks-define")("observable")},{"./_wks-define":129}],151:[function(t,w,v){t("./es6.array.iterator");for(var l=t("./_global"),_=t("./_hide"),r=t("./_iterators"),u=t("./_wks")("toStringTag"),o="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(","),e=0;e<o.length;e++){var n=o[e],i=l[n],s=i&&i.prototype;s&&!s[u]&&_(s,u,n),r[n]=r.Array}},{"./_global":76,"./_hide":78,"./_iterators":91,"./_wks":131,"./es6.array.iterator":134}],152:[function(t,w,v){var l=t("./_export"),_=t("./_task");l(l.G+l.B,{setImmediate:_.set,clearImmediate:_.clear})},{"./_export":73,"./_task":120}],153:[function(t,w,v){(function(l){"use strict";function _(E){return Array.isArray?Array.isArray(E):S(E)==="[object Array]"}function r(E){return typeof E=="boolean"}function u(E){return E===null}function o(E){return E==null}function e(E){return typeof E=="number"}function n(E){return typeof E=="string"}function i(E){return(E===void 0?"undefined":(0,h.default)(E))==="symbol"}function s(E){return E===void 0}function d(E){return S(E)==="[object RegExp]"}function m(E){return(E===void 0?"undefined":(0,h.default)(E))==="object"&&E!==null}function f(E){return S(E)==="[object Date]"}function A(E){return S(E)==="[object Error]"||E instanceof Error}function b(E){return typeof E=="function"}function p(E){return E===null||typeof E=="boolean"||typeof E=="number"||typeof E=="string"||(E===void 0?"undefined":(0,h.default)(E))==="symbol"||E===void 0}function S(E){return Object.prototype.toString.call(E)}var D=t("babel-runtime/helpers/typeof"),h=function(E){return E&&E.__esModule?E:{default:E}}(D);v.isArray=_,v.isBoolean=r,v.isNull=u,v.isNullOrUndefined=o,v.isNumber=e,v.isString=n,v.isSymbol=i,v.isUndefined=s,v.isRegExp=d,v.isObject=m,v.isDate=f,v.isError=A,v.isFunction=b,v.isPrimitive=p,v.isBuffer=l.isBuffer}).call(this,{isBuffer:t("../../is-buffer/index.js")})},{"../../is-buffer/index.js":163,"babel-runtime/helpers/typeof":32}],154:[function(t,w,v){"use strict";var l=t("babel-runtime/helpers/typeof"),_=function(r){return r&&r.__esModule?r:{default:r}}(l);!function(r){function u(s,d){for(s=String(s),d=d||2;s.length<d;)s="0"+s;return s}function o(s){var d=new Date(s.getFullYear(),s.getMonth(),s.getDate());d.setDate(d.getDate()-(d.getDay()+6)%7+3);var m=new Date(d.getFullYear(),0,4);m.setDate(m.getDate()-(m.getDay()+6)%7+3);var f=d.getTimezoneOffset()-m.getTimezoneOffset();d.setHours(d.getHours()-f);var A=(d-m)/6048e5;return 1+Math.floor(A)}function e(s){var d=s.getDay();return d===0&&(d=7),d}function n(s){return s===null?"null":s===void 0?"undefined":(s===void 0?"undefined":(0,_.default)(s))!=="object"?s===void 0?"undefined":(0,_.default)(s):Array.isArray(s)?"array":{}.toString.call(s).slice(8,-1).toLowerCase()}var i=function(){var s=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,d=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,m=/[^-+\dA-Z]/g;return function(f,A,b,p){if(arguments.length!==1||n(f)!=="string"||/\d/.test(f)||(A=f,f=void 0),f=f||new Date,f instanceof Date||(f=new Date(f)),isNaN(f))throw TypeError("Invalid date");A=String(i.masks[A]||A||i.masks.default);var S=A.slice(0,4);S!=="UTC:"&&S!=="GMT:"||(A=A.slice(4),b=!0,S==="GMT:"&&(p=!0));var D=b?"getUTC":"get",h=f[D+"Date"](),E=f[D+"Day"](),O=f[D+"Month"](),C=f[D+"FullYear"](),g=f[D+"Hours"](),M=f[D+"Minutes"](),T=f[D+"Seconds"](),L=f[D+"Milliseconds"](),j=b?0:f.getTimezoneOffset(),N=o(f),G=e(f),$={d:h,dd:u(h),ddd:i.i18n.dayNames[E],dddd:i.i18n.dayNames[E+7],m:O+1,mm:u(O+1),mmm:i.i18n.monthNames[O],mmmm:i.i18n.monthNames[O+12],yy:String(C).slice(2),yyyy:C,h:g%12||12,hh:u(g%12||12),H:g,HH:u(g),M,MM:u(M),s:T,ss:u(T),l:u(L,3),L:u(Math.round(L/10)),t:g<12?"a":"p",tt:g<12?"am":"pm",T:g<12?"A":"P",TT:g<12?"AM":"PM",Z:p?"GMT":b?"UTC":(String(f).match(d)||[""]).pop().replace(m,""),o:(j>0?"-":"+")+u(100*Math.floor(Math.abs(j)/60)+Math.abs(j)%60,4),S:["th","st","nd","rd"][h%10>3?0:(h%100-h%10!=10)*h%10],W:N,N:G};return A.replace(s,function(H){return H in $?$[H]:H.slice(1,H.length-1)})}}();i.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"},i.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 ve=="function"&&ve.amd?ve(function(){return i}):(v===void 0?"undefined":(0,_.default)(v))==="object"?w.exports=i:r.dateFormat=i}(void 0)},{"babel-runtime/helpers/typeof":32}],155:[function(t,w,v){(function(l){function _(){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 r(n){var i=this.useColors;if(n[0]=(i?"%c":"")+this.namespace+(i?" %c":" ")+n[0]+(i?"%c ":" ")+"+"+v.humanize(this.diff),i){var s="color: "+this.color;n.splice(1,0,s,"color: inherit");var d=0,m=0;n[0].replace(/%[a-zA-Z%]/g,function(f){f!=="%%"&&(d++,f==="%c"&&(m=d))}),n.splice(m,0,s)}}function u(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function o(n){try{n==null?v.storage.removeItem("debug"):v.storage.debug=n}catch(i){}}function e(){var n;try{n=v.storage.debug}catch(i){}return!n&&l!==void 0&&"env"in l&&(n=l.env.DEBUG),n}v=w.exports=t("./debug"),v.log=u,v.formatArgs=r,v.save=o,v.load=e,v.useColors=_,v.storage=typeof chrome!="undefined"&&chrome.storage!==void 0?chrome.storage.local:function(){try{return window.localStorage}catch(n){}}(),v.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],v.formatters.j=function(n){try{return JSON.stringify(n)}catch(i){return"[UnexpectedJSONParseError]: "+i.message}},v.enable(e())}).call(this,t("_process"))},{"./debug":156,_process:173}],156:[function(t,w,v){function l(i){var s,d=0;for(s in i)d=(d<<5)-d+i.charCodeAt(s),d|=0;return v.colors[Math.abs(d)%v.colors.length]}function _(i){function s(){if(s.enabled){var d=s,m=+new Date,f=m-(n||m);d.diff=f,d.prev=n,d.curr=m,n=m;for(var A=new Array(arguments.length),b=0;b<A.length;b++)A[b]=arguments[b];A[0]=v.coerce(A[0]),typeof A[0]!="string"&&A.unshift("%O");var p=0;A[0]=A[0].replace(/%([a-zA-Z%])/g,function(S,D){if(S==="%%")return S;p++;var h=v.formatters[D];if(typeof h=="function"){var E=A[p];S=h.call(d,E),A.splice(p,1),p--}return S}),v.formatArgs.call(d,A),(s.log||v.log||console.log.bind(console)).apply(d,A)}}return s.namespace=i,s.enabled=v.enabled(i),s.useColors=v.useColors(),s.color=l(i),typeof v.init=="function"&&v.init(s),s}function r(i){v.save(i),v.names=[],v.skips=[];for(var s=(typeof i=="string"?i:"").split(/[\s,]+/),d=s.length,m=0;m<d;m++)s[m]&&(i=s[m].replace(/\*/g,".*?"),i[0]==="-"?v.skips.push(new RegExp("^"+i.substr(1)+"$")):v.names.push(new RegExp("^"+i+"$")))}function u(){v.enable("")}function o(i){var s,d;for(s=0,d=v.skips.length;s<d;s++)if(v.skips[s].test(i))return!1;for(s=0,d=v.names.length;s<d;s++)if(v.names[s].test(i))return!0;return!1}function e(i){return i instanceof Error?i.stack||i.message:i}v=w.exports=_.debug=_.default=_,v.coerce=e,v.disable=u,v.enable=r,v.enabled=o,v.humanize=t("ms"),v.names=[],v.skips=[],v.formatters={};var n},{ms:169}],157:[function(t,w,v){"use strict";function l(r){var u=""+r,o=_.exec(u);if(!o)return u;var e,n="",i=0,s=0;for(i=o.index;i<u.length;i++){switch(u.charCodeAt(i)){case 34:e=""";break;case 38:e="&";break;case 39:e="'";break;case 60:e="<";break;case 62:e=">";break;default:continue}s!==i&&(n+=u.substring(s,i)),s=i+1,n+=e}return s!==i?n+u.substring(s,i):n}var _=/["'&<>]/;w.exports=l},{}],158:[function(t,w,v){function l(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function _(e){return typeof e=="function"}function r(e){return typeof e=="number"}function u(e){return typeof e=="object"&&e!==null}function o(e){return e===void 0}w.exports=l,l.EventEmitter=l,l.prototype._events=void 0,l.prototype._maxListeners=void 0,l.defaultMaxListeners=10,l.prototype.setMaxListeners=function(e){if(!r(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},l.prototype.emit=function(e){var n,i,s,d,m,f;if(this._events||(this._events={}),e==="error"&&(!this._events.error||u(this._events.error)&&!this._events.error.length)){if((n=arguments[1])instanceof Error)throw n;var A=new Error('Uncaught, unspecified "error" event. ('+n+")");throw A.context=n,A}if(i=this._events[e],o(i))return!1;if(_(i))switch(arguments.length){case 1:i.call(this);break;case 2:i.call(this,arguments[1]);break;case 3:i.call(this,arguments[1],arguments[2]);break;default:d=Array.prototype.slice.call(arguments,1),i.apply(this,d)}else if(u(i))for(d=Array.prototype.slice.call(arguments,1),f=i.slice(),s=f.length,m=0;m<s;m++)f[m].apply(this,d);return!0},l.prototype.addListener=function(e,n){var i;if(!_(n))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,_(n.listener)?n.listener:n),this._events[e]?u(this._events[e])?this._events[e].push(n):this._events[e]=[this._events[e],n]:this._events[e]=n,u(this._events[e])&&!this._events[e].warned&&(i=o(this._maxListeners)?l.defaultMaxListeners:this._maxListeners)&&i>0&&this._events[e].length>i&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),typeof console.trace=="function"&&console.trace()),this},l.prototype.on=l.prototype.addListener,l.prototype.once=function(e,n){function i(){this.removeListener(e,i),s||(s=!0,n.apply(this,arguments))}if(!_(n))throw TypeError("listener must be a function");var s=!1;return i.listener=n,this.on(e,i),this},l.prototype.removeListener=function(e,n){var i,s,d,m;if(!_(n))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(i=this._events[e],d=i.length,s=-1,i===n||_(i.listener)&&i.listener===n)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,n);else if(u(i)){for(m=d;m-- >0;)if(i[m]===n||i[m].listener&&i[m].listener===n){s=m;break}if(s<0)return this;i.length===1?(i.length=0,delete this._events[e]):i.splice(s,1),this._events.removeListener&&this.emit("removeListener",e,n)}return this},l.prototype.removeAllListeners=function(e){var n,i;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[e]&&delete this._events[e],this;if(arguments.length===0){for(n in this._events)n!=="removeListener"&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events={},this}if(i=this._events[e],_(i))this.removeListener(e,i);else if(i)for(;i.length;)this.removeListener(e,i[i.length-1]);return delete this._events[e],this},l.prototype.listeners=function(e){return this._events&&this._events[e]?_(this._events[e])?[this._events[e]]:this._events[e].slice():[]},l.prototype.listenerCount=function(e){if(this._events){var n=this._events[e];if(_(n))return 1;if(n)return n.length}return 0},l.listenerCount=function(e,n){return e.listenerCount(n)}},{}],159:[function(t,w,v){var l=t("http"),_=w.exports;for(var r in l)l.hasOwnProperty(r)&&(_[r]=l[r]);_.request=function(u,o){return u||(u={}),u.scheme="https",u.protocol="https:",l.request.call(this,u,o)}},{http:196}],160:[function(t,w,v){"use strict";var l=t("util"),_=t("ms");w.exports=function(r){if(typeof r=="number")return r;var u=_(r);if(u===void 0){var o=new Error(l.format("humanize-ms(%j) result undefined",r));console.warn(o.stack)}return u}},{ms:169,util:207}],161:[function(t,w,v){v.read=function(l,_,r,u,o){var e,n,i=8*o-u-1,s=(1<<i)-1,d=s>>1,m=-7,f=r?o-1:0,A=r?-1:1,b=l[_+f];for(f+=A,e=b&(1<<-m)-1,b>>=-m,m+=i;m>0;e=256*e+l[_+f],f+=A,m-=8);for(n=e&(1<<-m)-1,e>>=-m,m+=u;m>0;n=256*n+l[_+f],f+=A,m-=8);if(e===0)e=1-d;else{if(e===s)return n?NaN:1/0*(b?-1:1);n+=Math.pow(2,u),e-=d}return(b?-1:1)*n*Math.pow(2,e-u)},v.write=function(l,_,r,u,o,e){var n,i,s,d=8*e-o-1,m=(1<<d)-1,f=m>>1,A=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=u?0:e-1,p=u?1:-1,S=_<0||_===0&&1/_<0?1:0;for(_=Math.abs(_),isNaN(_)||_===1/0?(i=isNaN(_)?1:0,n=m):(n=Math.floor(Math.log(_)/Math.LN2),_*(s=Math.pow(2,-n))<1&&(n--,s*=2),_+=n+f>=1?A/s:A*Math.pow(2,1-f),_*s>=2&&(n++,s/=2),n+f>=m?(i=0,n=m):n+f>=1?(i=(_*s-1)*Math.pow(2,o),n+=f):(i=_*Math.pow(2,f-1)*Math.pow(2,o),n=0));o>=8;l[r+b]=255&i,b+=p,i/=256,o-=8);for(n=n<<o|i,d+=o;d>0;l[r+b]=255&n,b+=p,n/=256,d-=8);l[r+b-p]|=128*S}},{}],162:[function(t,w,v){typeof Object.create=="function"?w.exports=function(l,_){l.super_=_,l.prototype=Object.create(_.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}})}:w.exports=function(l,_){l.super_=_;var r=function(){};r.prototype=_.prototype,l.prototype=new r,l.prototype.constructor=l}},{}],163:[function(t,w,v){function l(r){return!!r.constructor&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}function _(r){return typeof r.readFloatLE=="function"&&typeof r.slice=="function"&&l(r.slice(0,0))}w.exports=function(r){return r!=null&&(l(r)||_(r)||!!r._isBuffer)}},{}],164:[function(t,w,v){!function(l){function _(o){return u.call(o).replace(/^[^{]*{\s*/,"").replace(/\s*}[^}]*$/,"")}function r(o){return typeof o=="function"&&(/^class(\s|\{\}$)/.test(u.call(o))||/^.*classCallCheck\(/.test(_(o)))}var u=Function.prototype.toString;v!==void 0?(w!==void 0&&w.exports&&(v=w.exports=r),v.isClass=r):typeof ve=="function"&&ve.amd?ve([],function(){return r}):l.isClass=r}(this)},{}],165:[function(t,w,v){"use strict";function l(e){var n=e.slice(2);return n=n[0].toLowerCase()+n.slice(1)}var _=t("core-util-is"),r=t("isstream"),u=t("is-class");Object.keys(_).map(function(e){v[l(e)]=_[e]}),v.stream=r,v.readableStream=r.isReadable,v.writableStream=r.isWritable,v.duplexStream=r.isDuplex,v.class=u,v.finite=function(e){return Number.isFinite(e)},v.NaN=function(e){return Number.isNaN(e)},v.generator=function(e){return e&&typeof e.next=="function"&&typeof e.throw=="function"},v.generatorFunction=function(e){return e&&e.constructor&&e.constructor.name==="GeneratorFunction"},v.asyncFunction=function(e){return e&&e.constructor&&e.constructor.name==="AsyncFunction"},v.promise=function(e){return e&&typeof e.then=="function"};var o=Math.pow(2,31);v.int=function(e){return _.isNumber(e)&&e%1==0},v.int32=function(e){return v.int(e)&&e<o&&e>=-o},v.long=function(e){return v.int(e)&&(e>=o||e<-o)},v.Long=function(e){return v.object(e)&&v.number(e.high)&&v.number(e.low)},v.double=function(e){return _.isNumber(e)&&!isNaN(e)&&e%1!=0},v.date=function(e){return e instanceof Date},v.regExp=function(e){return e instanceof RegExp},v.regexp=v.regExp,v.error=function(e){return e instanceof Error},v.array=function(e){return Array.isArray(e)}},{"core-util-is":153,"is-class":164,isstream:167}],166:[function(t,w,v){var l={}.toString;w.exports=Array.isArray||function(_){return l.call(_)=="[object Array]"}},{}],167:[function(t,w,v){function l(e){return e instanceof o.Stream}function _(e){return l(e)&&typeof e._read=="function"&&typeof e._readableState=="object"}function r(e){return l(e)&&typeof e._write=="function"&&typeof e._writableState=="object"}function u(e){return _(e)&&r(e)}var o=t("stream");w.exports=l,w.exports.isReadable=_,w.exports.isWritable=r,w.exports.isDuplex=u},{stream:195}],168:[function(t,w,v){"use strict";function l(r,u,o){if(!r)throw new TypeError("argument dest is required");if(!u)throw new TypeError("argument src is required");return o===void 0&&(o=!0),Object.getOwnPropertyNames(u).forEach(function(e){if(o||!_.call(r,e)){var n=Object.getOwnPropertyDescriptor(u,e);Object.defineProperty(r,e,n)}}),r}w.exports=l;var _=Object.prototype.hasOwnProperty},{}],169:[function(t,w,v){function l(d){if(d=String(d),!(d.length>100)){var m=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(d);if(m){var f=parseFloat(m[1]);switch((m[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return f*s;case"days":case"day":case"d":return f*i;case"hours":case"hour":case"hrs":case"hr":case"h":return f*n;case"minutes":case"minute":case"mins":case"min":case"m":return f*e;case"seconds":case"second":case"secs":case"sec":case"s":return f*o;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return f;default:return}}}}function _(d){return d>=i?Math.round(d/i)+"d":d>=n?Math.round(d/n)+"h":d>=e?Math.round(d/e)+"m":d>=o?Math.round(d/o)+"s":d+"ms"}function r(d){return u(d,i,"day")||u(d,n,"hour")||u(d,e,"minute")||u(d,o,"second")||d+" ms"}function u(d,m,f){if(!(d<m))return d<1.5*m?Math.floor(d/m)+" "+f:Math.ceil(d/m)+" "+f+"s"}var o=1e3,e=60*o,n=60*e,i=24*n,s=365.25*i;w.exports=function(d,m){m=m||{};var f=typeof d;if(f==="string"&&d.length>0)return l(d);if(f==="number"&&isNaN(d)===!1)return m.long?r(d):_(d);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(d))}},{}],170:[function(t,w,v){(function(l){function _(e,n){for(var i=0,s=e.length-1;s>=0;s--){var d=e[s];d==="."?e.splice(s,1):d===".."?(e.splice(s,1),i++):i&&(e.splice(s,1),i--)}if(n)for(;i--;i)e.unshift("..");return e}function r(e){typeof e!="string"&&(e+="");var n,i=0,s=-1,d=!0;for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===47){if(!d){i=n+1;break}}else s===-1&&(d=!1,s=n+1);return s===-1?"":e.slice(i,s)}function u(e,n){if(e.filter)return e.filter(n);for(var i=[],s=0;s<e.length;s++)n(e[s],s,e)&&i.push(e[s]);return i}v.resolve=function(){for(var e="",n=!1,i=arguments.length-1;i>=-1&&!n;i--){var s=i>=0?arguments[i]:l.cwd();if(typeof s!="string")throw new TypeError("Arguments to path.resolve must be strings");s&&(e=s+"/"+e,n=s.charAt(0)==="/")}return e=_(u(e.split("/"),function(d){return!!d}),!n).join("/"),(n?"/":"")+e||"."},v.normalize=function(e){var n=v.isAbsolute(e),i=o(e,-1)==="/";return e=_(u(e.split("/"),function(s){return!!s}),!n).join("/"),e||n||(e="."),e&&i&&(e+="/"),(n?"/":"")+e},v.isAbsolute=function(e){return e.charAt(0)==="/"},v.join=function(){var e=Array.prototype.slice.call(arguments,0);return v.normalize(u(e,function(n,i){if(typeof n!="string")throw new TypeError("Arguments to path.join must be strings");return n}).join("/"))},v.relative=function(e,n){function i(p){for(var S=0;S<p.length&&p[S]==="";S++);for(var D=p.length-1;D>=0&&p[D]==="";D--);return S>D?[]:p.slice(S,D-S+1)}e=v.resolve(e).substr(1),n=v.resolve(n).substr(1);for(var s=i(e.split("/")),d=i(n.split("/")),m=Math.min(s.length,d.length),f=m,A=0;A<m;A++)if(s[A]!==d[A]){f=A;break}for(var b=[],A=f;A<s.length;A++)b.push("..");return b=b.concat(d.slice(f)),b.join("/")},v.sep="/",v.delimiter=":",v.dirname=function(e){if(typeof e!="string"&&(e+=""),e.length===0)return".";for(var n=e.charCodeAt(0),i=n===47,s=-1,d=!0,m=e.length-1;m>=1;--m)if((n=e.charCodeAt(m))===47){if(!d){s=m;break}}else d=!1;return s===-1?i?"/":".":i&&s===1?"/":e.slice(0,s)},v.basename=function(e,n){var i=r(e);return n&&i.substr(-1*n.length)===n&&(i=i.substr(0,i.length-n.length)),i},v.extname=function(e){typeof e!="string"&&(e+="");for(var n=-1,i=0,s=-1,d=!0,m=0,f=e.length-1;f>=0;--f){var A=e.charCodeAt(f);if(A!==47)s===-1&&(d=!1,s=f+1),A===46?n===-1?n=f:m!==1&&(m=1):n!==-1&&(m=-1);else if(!d){i=f+1;break}}return n===-1||s===-1||m===0||m===1&&n===s-1&&n===i+1?"":e.slice(n,s)};var o="ab".substr(-1)==="b"?function(e,n,i){return e.substr(n,i)}:function(e,n,i){return n<0&&(n=e.length+n),e.substr(n,i)}}).call(this,t("_process"))},{_process:173}],171:[function(t,w,v){(function(l){(function(){"use strict";function _(T){return T=String(T),T.charAt(0).toUpperCase()+T.slice(1)}function r(T,L,j){var N={"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 L&&j&&/^Win/i.test(T)&&!/^Windows Phone /i.test(T)&&(N=N[/[\d.]+$/.exec(T)])&&(T="Windows "+N),T=String(T),L&&j&&(T=T.replace(RegExp(L,"i"),j)),T=o(T.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 u(T,L){var j=-1,N=T?T.length:0;if(typeof N=="number"&&N>-1&&N<=h)for(;++j<N;)L(T[j],j,T);else e(T,L)}function o(T){return T=m(T),/^(?:webOS|i(?:OS|P))/.test(T)?T:_(T)}function e(T,L){for(var j in T)C.call(T,j)&&L(T[j],j,T)}function n(T){return T==null?_(T):g.call(T).slice(8,-1)}function i(T,L){var j=T!=null?typeof T[L]:"number";return!(/^(?:boolean|number|string|undefined)$/.test(j)||j=="object"&&!T[L])}function s(T){return String(T).replace(/([ -])(?!$)/g,"$1?")}function d(T,L){var j=null;return u(T,function(N,G){j=L(j,N,G,T)}),j}function m(T){return String(T).replace(/^ +| +$/g,"")}function f(T){function L(R){return d(R,function(y,x){var Q=x.pattern||s(x);return!y&&(y=RegExp("\\b"+Q+" *\\d+[.\\w_]*","i").exec(T)||RegExp("\\b"+Q+" *\\w+-[\\w]*","i").exec(T)||RegExp("\\b"+Q+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(T))&&((y=String(x.label&&!RegExp(Q,"i").test(x.label)?x.label:y).split("/"))[1]&&!/[\d.]+/.test(y[0])&&(y[0]+=" "+y[1]),x=x.label||x,y=o(y[0].replace(RegExp(Q,"i"),x).replace(RegExp("; *(?:"+x+"[_-])?","i")," ").replace(RegExp("("+x+")[-_.]?(\\w)","i"),"$1 $2"))),y})}function j(){return this.description||""}var N=b,G=T&&typeof T=="object"&&n(T)!="String";G&&(N=T,T=null);var $=N.navigator||{},H=$.userAgent||"";T||(T=H);var F,te,ae=G?!!$.likeChrome:/\bChrome\b/.test(T)&&!/internal|\n/i.test(g.toString()),K=G?"Object":"ScriptBridgingProxyObject",k=G?"Object":"Environment",I=G&&N.java?"JavaPackage":n(N.java),z=G?"Object":"RuntimeObject",X=/\bJava/.test(I)&&N.java,Z=X&&n(N.environment)==k,J=X?"a":"\u4F2A",re=X?"b":"\u5C3E",ee=N.document||{},se=N.operamini||N.opera,ue=E.test(ue=G&&se?se["[[Class]]"]:n(se))?ue:se=null,q=T,Y=[],ie=null,B=T==H,W=B&&se&&typeof se.version=="function"&&se.version(),oe=function(R){return d(R,function(y,x){return y||RegExp("\\b"+(x.pattern||s(x))+"\\b","i").exec(T)&&(x.label||x)})}([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),ne=function(R){return d(R,function(y,x){return y||RegExp("\\b"+(x.pattern||s(x))+"\\b","i").exec(T)&&(x.label||x)})}(["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"]),me=L([{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"]),P=function(R){return d(R,function(y,x,Q){return y||(x[me]||x[/^[a-z]+(?: +[a-z]+\b)*/i.exec(me)]||RegExp("\\b"+s(Q)+"(?:\\b|\\w*\\d)","i").exec(T))&&Q})}({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}}),a=function(R){return d(R,function(y,x){var Q=x.pattern||s(x);return!y&&(y=RegExp("\\b"+Q+"(?:/[\\d.]+|[ \\w.]*)","i").exec(T))&&(y=r(y,Q,x.label||x)),y})}(["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(oe&&(oe=[oe]),P&&!me&&(me=L([P])),(F=/\bGoogle TV\b/.exec(me))&&(me=F[0]),/\bSimulator\b/i.test(T)&&(me=(me?me+" ":"")+"Simulator"),ne=="Opera Mini"&&/\bOPiOS\b/.test(T)&&Y.push("running in Turbo/Uncompressed mode"),ne=="IE"&&/\blike iPhone OS\b/.test(T)?(F=f(T.replace(/like iPhone OS/,"")),P=F.manufacturer,me=F.product):/^iP/.test(me)?(ne||(ne="Safari"),a="iOS"+((F=/ OS ([\d_]+)/i.exec(T))?" "+F[1].replace(/_/g,"."):"")):ne!="Konqueror"||/buntu/i.test(a)?P&&P!="Google"&&(/Chrome/.test(ne)&&!/\bMobile Safari\b/i.test(T)||/\bVita\b/.test(me))||/\bAndroid\b/.test(a)&&/^Chrome/.test(ne)&&/\bVersion\//i.test(T)?(ne="Android Browser",a=/\bAndroid\b/.test(a)?a:"Android"):ne=="Silk"?(/\bMobi/i.test(T)||(a="Android",Y.unshift("desktop mode")),/Accelerated *= *true/i.test(T)&&Y.unshift("accelerated")):ne=="PaleMoon"&&(F=/\bFirefox\/([\d.]+)\b/.exec(T))?Y.push("identifying as Firefox "+F[1]):ne=="Firefox"&&(F=/\b(Mobile|Tablet|TV)\b/i.exec(T))?(a||(a="Firefox OS"),me||(me=F[1])):!ne||(F=!/\bMinefield\b/i.test(T)&&/\b(?:Firefox|Safari)\b/.exec(ne))?(ne&&!me&&/[\/,]|^[^(]+?\)/.test(T.slice(T.indexOf(F+"/")+8))&&(ne=null),(F=me||P||a)&&(me||P||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(a))&&(ne=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(a)?a:F)+" Browser")):ne=="Electron"&&(F=(/\bChrome\/([\d.]+)\b/.exec(T)||0)[1])&&Y.push("Chromium "+F):a="Kubuntu",W||(W=function(R){return d(R,function(y,x){return y||(RegExp(x+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(T)||0)[1]||null})}(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",s(ne),"(?:Firefox|Minefield|NetFront)"])),(F=oe=="iCab"&&parseFloat(W)>3&&"WebKit"||/\bOpera\b/.test(ne)&&(/\bOPR\b/.test(T)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(T)&&!/^(?:Trident|EdgeHTML)$/.test(oe)&&"WebKit"||!oe&&/\bMSIE\b/i.test(T)&&(a=="Mac OS"?"Tasman":"Trident")||oe=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(ne)&&"NetFront")&&(oe=[F]),ne=="IE"&&(F=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(T)||0)[1])?(ne+=" Mobile",a="Windows Phone "+(/\+$/.test(F)?F:F+".x"),Y.unshift("desktop mode")):/\bWPDesktop\b/i.test(T)?(ne="IE Mobile",a="Windows Phone 8.x",Y.unshift("desktop mode"),W||(W=(/\brv:([\d.]+)/.exec(T)||0)[1])):ne!="IE"&&oe=="Trident"&&(F=/\brv:([\d.]+)/.exec(T))&&(ne&&Y.push("identifying as "+ne+(W?" "+W:"")),ne="IE",W=F[1]),B){if(i(N,"global"))if(X&&(F=X.lang.System,q=F.getProperty("os.arch"),a=a||F.getProperty("os.name")+" "+F.getProperty("os.version")),Z){try{W=N.require("ringo/engine").version.join("."),ne="RingoJS"}catch(R){(F=N.system)&&F.global.system==N.system&&(ne="Narwhal",a||(a=F[0].os||null))}ne||(ne="Rhino")}else typeof N.process=="object"&&!N.process.browser&&(F=N.process)&&(typeof F.versions=="object"&&(typeof F.versions.electron=="string"?(Y.push("Node "+F.versions.node),ne="Electron",W=F.versions.electron):typeof F.versions.nw=="string"&&(Y.push("Chromium "+W,"Node "+F.versions.node),ne="NW.js",W=F.versions.nw)),ne||(ne="Node.js",q=F.arch,a=F.platform,W=/[\d.]+/.exec(F.version),W=W?W[0]:null));else n(F=N.runtime)==K?(ne="Adobe AIR",a=F.flash.system.Capabilities.os):n(F=N.phantom)==z?(ne="PhantomJS",W=(F=F.version||null)&&F.major+"."+F.minor+"."+F.patch):typeof ee.documentMode=="number"&&(F=/\bTrident\/(\d+)/i.exec(T))?(W=[W,ee.documentMode],(F=+F[1]+4)!=W[1]&&(Y.push("IE "+W[1]+" mode"),oe&&(oe[1]=""),W[1]=F),W=ne=="IE"?String(W[1].toFixed(1)):W[0]):typeof ee.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(ne)&&(Y.push("masking as "+ne+" "+W),ne="IE",W="11.0",oe=["Trident"],a="Windows");a=a&&o(a)}if(W&&(F=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(W)||/(?:alpha|beta)(?: ?\d)?/i.exec(T+";"+(B&&$.appMinorVersion))||/\bMinefield\b/i.test(T)&&"a")&&(ie=/b/i.test(F)?"beta":"alpha",W=W.replace(RegExp(F+"\\+?$"),"")+(ie=="beta"?re:J)+(/\d+\+?/.exec(F)||"")),ne=="Fennec"||ne=="Firefox"&&/\b(?:Android|Firefox OS)\b/.test(a))ne="Firefox Mobile";else if(ne=="Maxthon"&&W)W=W.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(me))me=="Xbox 360"&&(a=null),me=="Xbox 360"&&/\bIEMobile\b/.test(T)&&Y.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(ne)&&(!ne||me||/Browser|Mobi/.test(ne))||a!="Windows CE"&&!/Mobi/i.test(T))if(ne=="IE"&&B)try{N.external===null&&Y.unshift("platform preview")}catch(R){Y.unshift("embedded")}else(/\bBlackBerry\b/.test(me)||/\bBB10\b/.test(T))&&(F=(RegExp(me.replace(/ +/g," *")+"/([.\\d]+)","i").exec(T)||0)[1]||W)?(F=[F,/BB10/.test(T)],a=(F[1]?(me=null,P="BlackBerry"):"Device Software")+" "+F[0],W=null):this!=e&&me!="Wii"&&(B&&se||/Opera/.test(ne)&&/\b(?:MSIE|Firefox)\b/i.test(T)||ne=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(a)||ne=="IE"&&(a&&!/^Win/.test(a)&&W>5.5||/\bWindows XP\b/.test(a)&&W>8||W==8&&!/\bTrident\b/.test(T)))&&!E.test(F=f.call(e,T.replace(E,"")+";"))&&F.name&&(F="ing as "+F.name+((F=F.version)?" "+F:""),E.test(ne)?(/\bIE\b/.test(F)&&a=="Mac OS"&&(a=null),F="identify"+F):(F="mask"+F,ne=ue?o(ue.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(F)&&(a=null),B||(W=null)),oe=["Presto"],Y.push(F));else ne+=" Mobile";(F=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(T)||0)[1])&&(F=[parseFloat(F.replace(/\.(\d)$/,".0$1")),F],ne=="Safari"&&F[1].slice(-1)=="+"?(ne="WebKit Nightly",ie="alpha",W=F[1].slice(0,-1)):W!=F[1]&&W!=(F[2]=(/\bSafari\/([\d.]+\+?)/i.exec(T)||0)[1])||(W=null),F[1]=(/\bChrome\/([\d.]+)/i.exec(T)||0)[1],F[0]==537.36&&F[2]==537.36&&parseFloat(F[1])>=28&&oe=="WebKit"&&(oe=["Blink"]),B&&(ae||F[1])?(oe&&(oe[1]="like Chrome"),F=F[1]||(F=F[0],F<530?1:F<532?2:F<532.05?3:F<533?4:F<534.03?5:F<534.07?6:F<534.1?7:F<534.13?8:F<534.16?9:F<534.24?10:F<534.3?11:F<535.01?12:F<535.02?"13+":F<535.07?15:F<535.11?16:F<535.19?17:F<536.05?18:F<536.1?19:F<537.01?20:F<537.11?"21+":F<537.13?23:F<537.18?24:F<537.24?25:F<537.36?26:oe!="Blink"?"27":"28")):(oe&&(oe[1]="like Safari"),F=F[0],F=F<400?1:F<500?2:F<526?3:F<533?4:F<534?"4+":F<535?5:F<537?6:F<538?7:F<601?8:"8"),oe&&(oe[1]+=" "+(F+=typeof F=="number"?".x":/[.+]/.test(F)?"":"+")),ne=="Safari"&&(!W||parseInt(W)>45)&&(W=F)),ne=="Opera"&&(F=/\bzbov|zvav$/.exec(a))?(ne+=" ",Y.unshift("desktop mode"),F=="zvav"?(ne+="Mini",W=null):ne+="Mobile",a=a.replace(RegExp(" *"+F+"$"),"")):ne=="Safari"&&/\bChrome\b/.exec(oe&&oe[1])&&(Y.unshift("desktop mode"),ne="Chrome Mobile",W=null,/\bOS X\b/.test(a)?(P="Apple",a="iOS 4.3+"):a=null),W&&W.indexOf(F=/[\d.]+$/.exec(a))==0&&T.indexOf("/"+F+"-")>-1&&(a=m(a.replace(F,""))),oe&&!/\b(?:Avant|Nook)\b/.test(ne)&&(/Browser|Lunascape|Maxthon/.test(ne)||ne!="Safari"&&/^iOS/.test(a)&&/\bSafari\b/.test(oe[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(ne)&&oe[1])&&(F=oe[oe.length-1])&&Y.push(F),Y.length&&(Y=["("+Y.join("; ")+")"]),P&&me&&me.indexOf(P)<0&&Y.push("on "+P),me&&Y.push((/^on /.test(Y[Y.length-1])?"":"on ")+me),a&&(F=/ ([\d.+]+)$/.exec(a),te=F&&a.charAt(a.length-F[0].length-1)=="/",a={architecture:32,family:F&&!te?a.replace(F[0],""):a,version:F?F[1]:null,toString:function(){var y=this.version;return this.family+(y&&!te?" "+y:"")+(this.architecture==64?" 64-bit":"")}}),(F=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(q))&&!/\bi686\b/i.test(q)?(a&&(a.architecture=64,a.family=a.family.replace(RegExp(" *"+F),"")),ne&&(/\bWOW64\b/i.test(T)||B&&/\w(?:86|32)$/.test($.cpuClass||$.platform)&&!/\bWin64; x64\b/i.test(T))&&Y.unshift("32-bit")):a&&/^OS X/.test(a.family)&&ne=="Chrome"&&parseFloat(W)>=39&&(a.architecture=64),T||(T=null);var c={};return c.description=T,c.layout=oe&&oe[0],c.manufacturer=P,c.name=ne,c.prerelease=ie,c.product=me,c.ua=T,c.version=ne&&W,c.os=a||{architecture:null,family:null,version:null,toString:function(){return"null"}},c.parse=f,c.toString=j,c.version&&Y.unshift(W),c.name&&Y.unshift(ne),a&&ne&&(a!=String(a).split(" ")[0]||a!=ne.split(" ")[0]&&!me)&&Y.push(me?"("+a+")":"on "+a),Y.length&&(c.description=Y.join(" ")),c}var A={function:!0,object:!0},b=A[typeof window]&&window||this,p=A[typeof v]&&v,S=A[typeof w]&&w&&!w.nodeType&&w,D=p&&S&&typeof l=="object"&&l;!D||D.global!==D&&D.window!==D&&D.self!==D||(b=D);var h=Math.pow(2,53)-1,E=/\bOpera/,O=Object.prototype,C=O.hasOwnProperty,g=O.toString,M=f();typeof ve=="function"&&typeof ve.amd=="object"&&ve.amd?(b.platform=M,ve(function(){return M})):p&&S?e(M,function(T,L){p[L]=T}):b.platform=M}).call(this)}).call(this,typeof Xe!="undefined"?Xe:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],172:[function(t,w,v){(function(l){"use strict";function _(r,u,o,e){if(typeof r!="function")throw new TypeError('"callback" argument must be a function');var n,i,s=arguments.length;switch(s){case 0:case 1:return l.nextTick(r);case 2:return l.nextTick(function(){r.call(null,u)});case 3:return l.nextTick(function(){r.call(null,u,o)});case 4:return l.nextTick(function(){r.call(null,u,o,e)});default:for(n=new Array(s-1),i=0;i<n.length;)n[i++]=arguments[i];return l.nextTick(function(){r.apply(null,n)})}}!l.version||l.version.indexOf("v0.")===0||l.version.indexOf("v1.")===0&&l.version.indexOf("v1.8.")!==0?w.exports={nextTick:_}:w.exports=l}).call(this,t("_process"))},{_process:173}],173:[function(t,w,v){function l(){throw new Error("setTimeout has not been defined")}function _(){throw new Error("clearTimeout has not been defined")}function r(S){if(s===setTimeout)return setTimeout(S,0);if((s===l||!s)&&setTimeout)return s=setTimeout,setTimeout(S,0);try{return s(S,0)}catch(D){try{return s.call(null,S,0)}catch(h){return s.call(this,S,0)}}}function u(S){if(d===clearTimeout)return clearTimeout(S);if((d===_||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(S);try{return d(S)}catch(D){try{return d.call(null,S)}catch(h){return d.call(this,S)}}}function o(){b&&f&&(b=!1,f.length?A=f.concat(A):p=-1,A.length&&e())}function e(){if(!b){var S=r(o);b=!0;for(var D=A.length;D;){for(f=A,A=[];++p<D;)f&&f[p].run();p=-1,D=A.length}f=null,b=!1,u(S)}}function n(S,D){this.fun=S,this.array=D}function i(){}var s,d,m=w.exports={};!function(){try{s=typeof setTimeout=="function"?setTimeout:l}catch(S){s=l}try{d=typeof clearTimeout=="function"?clearTimeout:_}catch(S){d=_}}();var f,A=[],b=!1,p=-1;m.nextTick=function(S){var D=new Array(arguments.length-1);if(arguments.length>1)for(var h=1;h<arguments.length;h++)D[h-1]=arguments[h];A.push(new n(S,D)),A.length!==1||b||r(e)},n.prototype.run=function(){this.fun.apply(null,this.array)},m.title="browser",m.browser=!0,m.env={},m.argv=[],m.version="",m.versions={},m.on=i,m.addListener=i,m.once=i,m.off=i,m.removeListener=i,m.removeAllListeners=i,m.emit=i,m.prependListener=i,m.prependOnceListener=i,m.listeners=function(S){return[]},m.binding=function(S){throw new Error("process.binding is not supported")},m.cwd=function(){return"/"},m.chdir=function(S){throw new Error("process.chdir is not supported")},m.umask=function(){return 0}},{}],174:[function(t,w,v){(function(l){!function(_){function r(I){throw new RangeError(te[I])}function u(I,z){for(var X=I.length,Z=[];X--;)Z[X]=z(I[X]);return Z}function o(I,z){var X=I.split("@"),Z="";return X.length>1&&(Z=X[0]+"@",I=X[1]),I=I.replace(F,"."),Z+u(I.split("."),z).join(".")}function e(I){for(var z,X,Z=[],J=0,re=I.length;J<re;)z=I.charCodeAt(J++),z>=55296&&z<=56319&&J<re?(X=I.charCodeAt(J++),(64512&X)==56320?Z.push(((1023&z)<<10)+(1023&X)+65536):(Z.push(z),J--)):Z.push(z);return Z}function n(I){return u(I,function(z){var X="";return z>65535&&(z-=65536,X+=k(z>>>10&1023|55296),z=56320|1023&z),X+=k(z)}).join("")}function i(I){return I-48<10?I-22:I-65<26?I-65:I-97<26?I-97:C}function s(I,z){return I+22+75*(I<26)-((z!=0)<<5)}function d(I,z,X){var Z=0;for(I=X?K(I/L):I>>1,I+=K(I/z);I>ae*M>>1;Z+=C)I=K(I/ae);return K(Z+(ae+1)*I/(I+T))}function m(I){var z,X,Z,J,re,ee,se,ue,q,Y,ie=[],B=I.length,W=0,oe=N,ne=j;for(X=I.lastIndexOf(G),X<0&&(X=0),Z=0;Z<X;++Z)I.charCodeAt(Z)>=128&&r("not-basic"),ie.push(I.charCodeAt(Z));for(J=X>0?X+1:0;J<B;){for(re=W,ee=1,se=C;J>=B&&r("invalid-input"),ue=i(I.charCodeAt(J++)),(ue>=C||ue>K((O-W)/ee))&&r("overflow"),W+=ue*ee,q=se<=ne?g:se>=ne+M?M:se-ne,!(ue<q);se+=C)Y=C-q,ee>K(O/Y)&&r("overflow"),ee*=Y;z=ie.length+1,ne=d(W-re,z,re==0),K(W/z)>O-oe&&r("overflow"),oe+=K(W/z),W%=z,ie.splice(W++,0,oe)}return n(ie)}function f(I){var z,X,Z,J,re,ee,se,ue,q,Y,ie,B,W,oe,ne,me=[];for(I=e(I),B=I.length,z=N,X=0,re=j,ee=0;ee<B;++ee)(ie=I[ee])<128&&me.push(k(ie));for(Z=J=me.length,J&&me.push(G);Z<B;){for(se=O,ee=0;ee<B;++ee)(ie=I[ee])>=z&&ie<se&&(se=ie);for(W=Z+1,se-z>K((O-X)/W)&&r("overflow"),X+=(se-z)*W,z=se,ee=0;ee<B;++ee)if(ie=I[ee],ie<z&&++X>O&&r("overflow"),ie==z){for(ue=X,q=C;Y=q<=re?g:q>=re+M?M:q-re,!(ue<Y);q+=C)ne=ue-Y,oe=C-Y,me.push(k(s(Y+ne%oe,0))),ue=K(ne/oe);me.push(k(s(ue,0))),re=d(X,W,Z==J),X=0,++Z}++X,++z}return me.join("")}function A(I){return o(I,function(z){return $.test(z)?m(z.slice(4).toLowerCase()):z})}function b(I){return o(I,function(z){return H.test(z)?"xn--"+f(z):z})}var p=typeof v=="object"&&v&&!v.nodeType&&v,S=typeof w=="object"&&w&&!w.nodeType&&w,D=typeof l=="object"&&l;D.global!==D&&D.window!==D&&D.self!==D||(_=D);var h,E,O=2147483647,C=36,g=1,M=26,T=38,L=700,j=72,N=128,G="-",$=/^xn--/,H=/[^\x20-\x7E]/,F=/[\x2E\u3002\uFF0E\uFF61]/g,te={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},ae=C-g,K=Math.floor,k=String.fromCharCode;if(h={version:"1.4.1",ucs2:{decode:e,encode:n},decode:m,encode:f,toASCII:b,toUnicode:A},typeof ve=="function"&&typeof ve.amd=="object"&&ve.amd)ve("punycode",function(){return h});else if(p&&S)if(w.exports==p)S.exports=h;else for(E in h)h.hasOwnProperty(E)&&(p[E]=h[E]);else _.punycode=h}(this)}).call(this,typeof Xe!="undefined"?Xe:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],175:[function(t,w,v){"use strict";function l(r,u){return Object.prototype.hasOwnProperty.call(r,u)}w.exports=function(r,u,o,e){u=u||"&",o=o||"=";var n={};if(typeof r!="string"||r.length===0)return n;var i=/\+/g;r=r.split(u);var s=1e3;e&&typeof e.maxKeys=="number"&&(s=e.maxKeys);var d=r.length;s>0&&d>s&&(d=s);for(var m=0;m<d;++m){var f,A,b,p,S=r[m].replace(i,"%20"),D=S.indexOf(o);D>=0?(f=S.substr(0,D),A=S.substr(D+1)):(f=S,A=""),b=decodeURIComponent(f),p=decodeURIComponent(A),l(n,b)?_(n[b])?n[b].push(p):n[b]=[n[b],p]:n[b]=p}return n};var _=Array.isArray||function(r){return Object.prototype.toString.call(r)==="[object Array]"}},{}],176:[function(t,w,v){"use strict";function l(o,e){if(o.map)return o.map(e);for(var n=[],i=0;i<o.length;i++)n.push(e(o[i],i));return n}var _=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};w.exports=function(o,e,n,i){return e=e||"&",n=n||"=",o===null&&(o=void 0),typeof o=="object"?l(u(o),function(s){var d=encodeURIComponent(_(s))+n;return r(o[s])?l(o[s],function(m){return d+encodeURIComponent(_(m))}).join(e):d+encodeURIComponent(_(o[s]))}).join(e):i?encodeURIComponent(_(i))+n+encodeURIComponent(_(o)):""};var r=Array.isArray||function(o){return Object.prototype.toString.call(o)==="[object Array]"},u=Object.keys||function(o){var e=[];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&e.push(n);return e}},{}],177:[function(t,w,v){"use strict";v.decode=v.parse=t("./decode"),v.encode=v.stringify=t("./encode")},{"./decode":175,"./encode":176}],178:[function(t,w,v){w.exports=t("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":179}],179:[function(t,w,v){"use strict";function l(b){if(!(this instanceof l))return new l(b);s.call(this,b),d.call(this,b),b&&b.readable===!1&&(this.readable=!1),b&&b.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,b&&b.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",_)}function _(){this.allowHalfOpen||this._writableState.ended||e.nextTick(r,this)}function r(b){b.end()}var u=t("babel-runtime/core-js/object/keys"),o=function(b){return b&&b.__esModule?b:{default:b}}(u),e=t("process-nextick-args"),n=o.default||function(b){var p=[];for(var S in b)p.push(S);return p};w.exports=l;var i=t("core-util-is");i.inherits=t("inherits");var s=t("./_stream_readable"),d=t("./_stream_writable");i.inherits(l,s);for(var m=n(d.prototype),f=0;f<m.length;f++){var A=m[f];l.prototype[A]||(l.prototype[A]=d.prototype[A])}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(p){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=p,this._writableState.destroyed=p)}}),l.prototype._destroy=function(b,p){this.push(null),this.end(),e.nextTick(p,b)}},{"./_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(t,w,v){"use strict";function l(u){if(!(this instanceof l))return new l(u);_.call(this,u)}w.exports=l;var _=t("./_stream_transform"),r=t("core-util-is");r.inherits=t("inherits"),r.inherits(l,_),l.prototype._transform=function(u,o,e){e(null,u)}},{"./_stream_transform":182,"core-util-is":153,inherits:162}],181:[function(t,w,v){(function(l,_){"use strict";function r(B){return X.from(B)}function u(B){return X.isBuffer(B)||B instanceof Z}function o(B,W,oe){if(typeof B.prependListener=="function")return B.prependListener(W,oe);B._events&&B._events[W]?k(B._events[W])?B._events[W].unshift(oe):B._events[W]=[oe,B._events[W]]:B.on(W,oe)}function e(B,W){K=K||t("./_stream_duplex"),B=B||{};var oe=W instanceof K;this.objectMode=!!B.objectMode,oe&&(this.objectMode=this.objectMode||!!B.readableObjectMode);var ne=B.highWaterMark,me=B.readableHighWaterMark,P=this.objectMode?16:16384;this.highWaterMark=ne||ne===0?ne:oe&&(me||me===0)?me:P,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new ue,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=B.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,B.encoding&&(se||(se=t("string_decoder/").StringDecoder),this.decoder=new se(B.encoding),this.encoding=B.encoding)}function n(B){if(K=K||t("./_stream_duplex"),!(this instanceof n))return new n(B);this._readableState=new e(B,this),this.readable=!0,B&&(typeof B.read=="function"&&(this._read=B.read),typeof B.destroy=="function"&&(this._destroy=B.destroy)),z.call(this)}function i(B,W,oe,ne,me){var P=B._readableState;if(W===null)P.reading=!1,b(B,P);else{var a;me||(a=d(P,W)),a?B.emit("error",a):P.objectMode||W&&W.length>0?(typeof W=="string"||P.objectMode||(0,te.default)(W)===X.prototype||(W=r(W)),ne?P.endEmitted?B.emit("error",new Error("stream.unshift() after end event")):s(B,P,W,!0):P.ended?B.emit("error",new Error("stream.push() after EOF")):(P.reading=!1,P.decoder&&!oe?(W=P.decoder.write(W),P.objectMode||W.length!==0?s(B,P,W,!1):D(B,P)):s(B,P,W,!1))):ne||(P.reading=!1)}return m(P)}function s(B,W,oe,ne){W.flowing&&W.length===0&&!W.sync?(B.emit("data",oe),B.read(0)):(W.length+=W.objectMode?1:oe.length,ne?W.buffer.unshift(oe):W.buffer.push(oe),W.needReadable&&p(B)),D(B,W)}function d(B,W){var oe;return u(W)||typeof W=="string"||W===void 0||B.objectMode||(oe=new TypeError("Invalid non-string/buffer chunk")),oe}function m(B){return!B.ended&&(B.needReadable||B.length<B.highWaterMark||B.length===0)}function f(B){return B>=ie?B=ie:(B--,B|=B>>>1,B|=B>>>2,B|=B>>>4,B|=B>>>8,B|=B>>>16,B++),B}function A(B,W){return B<=0||W.length===0&&W.ended?0:W.objectMode?1:B!==B?W.flowing&&W.length?W.buffer.head.data.length:W.length:(B>W.highWaterMark&&(W.highWaterMark=f(B)),B<=W.length?B:W.ended?W.length:(W.needReadable=!0,0))}function b(B,W){if(!W.ended){if(W.decoder){var oe=W.decoder.end();oe&&oe.length&&(W.buffer.push(oe),W.length+=W.objectMode?1:oe.length)}W.ended=!0,p(B)}}function p(B){var W=B._readableState;W.needReadable=!1,W.emittedReadable||(ee("emitReadable",W.flowing),W.emittedReadable=!0,W.sync?ae.nextTick(S,B):S(B))}function S(B){ee("emit readable"),B.emit("readable"),M(B)}function D(B,W){W.readingMore||(W.readingMore=!0,ae.nextTick(h,B,W))}function h(B,W){for(var oe=W.length;!W.reading&&!W.flowing&&!W.ended&&W.length<W.highWaterMark&&(ee("maybeReadMore read 0"),B.read(0),oe!==W.length);)oe=W.length;W.readingMore=!1}function E(B){return function(){var W=B._readableState;ee("pipeOnDrain",W.awaitDrain),W.awaitDrain&&W.awaitDrain--,W.awaitDrain===0&&I(B,"data")&&(W.flowing=!0,M(B))}}function O(B){ee("readable nexttick read 0"),B.read(0)}function C(B,W){W.resumeScheduled||(W.resumeScheduled=!0,ae.nextTick(g,B,W))}function g(B,W){W.reading||(ee("resume read 0"),B.read(0)),W.resumeScheduled=!1,W.awaitDrain=0,B.emit("resume"),M(B),W.flowing&&!W.reading&&B.read(0)}function M(B){var W=B._readableState;for(ee("flow",W.flowing);W.flowing&&B.read()!==null;);}function T(B,W){if(W.length===0)return null;var oe;return W.objectMode?oe=W.buffer.shift():!B||B>=W.length?(oe=W.decoder?W.buffer.join(""):W.buffer.length===1?W.buffer.head.data:W.buffer.concat(W.length),W.buffer.clear()):oe=L(B,W.buffer,W.decoder),oe}function L(B,W,oe){var ne;return B<W.head.data.length?(ne=W.head.data.slice(0,B),W.head.data=W.head.data.slice(B)):ne=B===W.head.data.length?W.shift():oe?j(B,W):N(B,W),ne}function j(B,W){var oe=W.head,ne=1,me=oe.data;for(B-=me.length;oe=oe.next;){var P=oe.data,a=B>P.length?P.length:B;if(a===P.length?me+=P:me+=P.slice(0,B),(B-=a)===0){a===P.length?(++ne,oe.next?W.head=oe.next:W.head=W.tail=null):(W.head=oe,oe.data=P.slice(a));break}++ne}return W.length-=ne,me}function N(B,W){var oe=X.allocUnsafe(B),ne=W.head,me=1;for(ne.data.copy(oe),B-=ne.data.length;ne=ne.next;){var P=ne.data,a=B>P.length?P.length:B;if(P.copy(oe,oe.length-B,0,a),(B-=a)===0){a===P.length?(++me,ne.next?W.head=ne.next:W.head=W.tail=null):(W.head=ne,ne.data=P.slice(a));break}++me}return W.length-=me,oe}function G(B){var W=B._readableState;if(W.length>0)throw new Error('"endReadable()" called on non-empty stream');W.endEmitted||(W.ended=!0,ae.nextTick($,W,B))}function $(B,W){B.endEmitted||B.length!==0||(B.endEmitted=!0,W.readable=!1,W.emit("end"))}function H(B,W){for(var oe=0,ne=B.length;oe<ne;oe++)if(B[oe]===W)return oe;return-1}var F=t("babel-runtime/core-js/object/get-prototype-of"),te=function(B){return B&&B.__esModule?B:{default:B}}(F),ae=t("process-nextick-args");w.exports=n;var K,k=t("isarray");n.ReadableState=e;var I=(t("events").EventEmitter,function(B,W){return B.listeners(W).length}),z=t("./internal/streams/stream"),X=t("safe-buffer").Buffer,Z=_.Uint8Array||function(){},J=t("core-util-is");J.inherits=t("inherits");var re=t("util"),ee=void 0;ee=re&&re.debuglog?re.debuglog("stream"):function(){};var se,ue=t("./internal/streams/BufferList"),q=t("./internal/streams/destroy");J.inherits(n,z);var Y=["error","close","destroy","pause","resume"];Object.defineProperty(n.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(W){this._readableState&&(this._readableState.destroyed=W)}}),n.prototype.destroy=q.destroy,n.prototype._undestroy=q.undestroy,n.prototype._destroy=function(B,W){this.push(null),W(B)},n.prototype.push=function(B,W){var oe,ne=this._readableState;return ne.objectMode?oe=!0:typeof B=="string"&&(W=W||ne.defaultEncoding,W!==ne.encoding&&(B=X.from(B,W),W=""),oe=!0),i(this,B,W,!1,oe)},n.prototype.unshift=function(B){return i(this,B,null,!0,!1)},n.prototype.isPaused=function(){return this._readableState.flowing===!1},n.prototype.setEncoding=function(B){return se||(se=t("string_decoder/").StringDecoder),this._readableState.decoder=new se(B),this._readableState.encoding=B,this};var ie=8388608;n.prototype.read=function(B){ee("read",B),B=parseInt(B,10);var W=this._readableState,oe=B;if(B!==0&&(W.emittedReadable=!1),B===0&&W.needReadable&&(W.length>=W.highWaterMark||W.ended))return ee("read: emitReadable",W.length,W.ended),W.length===0&&W.ended?G(this):p(this),null;if((B=A(B,W))===0&&W.ended)return W.length===0&&G(this),null;var ne=W.needReadable;ee("need readable",ne),(W.length===0||W.length-B<W.highWaterMark)&&(ne=!0,ee("length less than watermark",ne)),W.ended||W.reading?(ne=!1,ee("reading or ended",ne)):ne&&(ee("do read"),W.reading=!0,W.sync=!0,W.length===0&&(W.needReadable=!0),this._read(W.highWaterMark),W.sync=!1,W.reading||(B=A(oe,W)));var me;return me=B>0?T(B,W):null,me===null?(W.needReadable=!0,B=0):W.length-=B,W.length===0&&(W.ended||(W.needReadable=!0),oe!==B&&W.ended&&G(this)),me!==null&&this.emit("data",me),me},n.prototype._read=function(B){this.emit("error",new Error("_read() is not implemented"))},n.prototype.pipe=function(B,W){function oe(Qe,et){ee("onunpipe"),Qe===x&&et&&et.hasUnpiped===!1&&(et.hasUnpiped=!0,me())}function ne(){ee("onend"),B.end()}function me(){ee("cleanup"),B.removeListener("close",c),B.removeListener("finish",R),B.removeListener("drain",be),B.removeListener("error",a),B.removeListener("unpipe",oe),x.removeListener("end",ne),x.removeListener("end",y),x.removeListener("data",P),ce=!0,!Q.awaitDrain||B._writableState&&!B._writableState.needDrain||be()}function P(Qe){ee("ondata"),Se=!1,B.write(Qe)!==!1||Se||((Q.pipesCount===1&&Q.pipes===B||Q.pipesCount>1&&H(Q.pipes,B)!==-1)&&!ce&&(ee("false write response, pause",x._readableState.awaitDrain),x._readableState.awaitDrain++,Se=!0),x.pause())}function a(Qe){ee("onerror",Qe),y(),B.removeListener("error",a),I(B,"error")===0&&B.emit("error",Qe)}function c(){B.removeListener("finish",R),y()}function R(){ee("onfinish"),B.removeListener("close",c),y()}function y(){ee("unpipe"),x.unpipe(B)}var x=this,Q=this._readableState;switch(Q.pipesCount){case 0:Q.pipes=B;break;case 1:Q.pipes=[Q.pipes,B];break;default:Q.pipes.push(B)}Q.pipesCount+=1,ee("pipe count=%d opts=%j",Q.pipesCount,W);var V=(!W||W.end!==!1)&&B!==l.stdout&&B!==l.stderr,xe=V?ne:y;Q.endEmitted?ae.nextTick(xe):x.once("end",xe),B.on("unpipe",oe);var be=E(x);B.on("drain",be);var ce=!1,Se=!1;return x.on("data",P),o(B,"error",a),B.once("close",c),B.once("finish",R),B.emit("pipe",x),Q.flowing||(ee("pipe resume"),x.resume()),B},n.prototype.unpipe=function(B){var W=this._readableState,oe={hasUnpiped:!1};if(W.pipesCount===0)return this;if(W.pipesCount===1)return B&&B!==W.pipes?this:(B||(B=W.pipes),W.pipes=null,W.pipesCount=0,W.flowing=!1,B&&B.emit("unpipe",this,oe),this);if(!B){var ne=W.pipes,me=W.pipesCount;W.pipes=null,W.pipesCount=0,W.flowing=!1;for(var P=0;P<me;P++)ne[P].emit("unpipe",this,oe);return this}var a=H(W.pipes,B);return a===-1?this:(W.pipes.splice(a,1),W.pipesCount-=1,W.pipesCount===1&&(W.pipes=W.pipes[0]),B.emit("unpipe",this,oe),this)},n.prototype.on=function(B,W){var oe=z.prototype.on.call(this,B,W);if(B==="data")this._readableState.flowing!==!1&&this.resume();else if(B==="readable"){var ne=this._readableState;ne.endEmitted||ne.readableListening||(ne.readableListening=ne.needReadable=!0,ne.emittedReadable=!1,ne.reading?ne.length&&p(this):ae.nextTick(O,this))}return oe},n.prototype.addListener=n.prototype.on,n.prototype.resume=function(){var B=this._readableState;return B.flowing||(ee("resume"),B.flowing=!0,C(this,B)),this},n.prototype.pause=function(){return ee("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(ee("pause"),this._readableState.flowing=!1,this.emit("pause")),this},n.prototype.wrap=function(B){var W=this,oe=this._readableState,ne=!1;B.on("end",function(){if(ee("wrapped end"),oe.decoder&&!oe.ended){var a=oe.decoder.end();a&&a.length&&W.push(a)}W.push(null)}),B.on("data",function(a){(ee("wrapped data"),oe.decoder&&(a=oe.decoder.write(a)),(!oe.objectMode||a!=null)&&(oe.objectMode||a&&a.length))&&(W.push(a)||(ne=!0,B.pause()))});for(var me in B)this[me]===void 0&&typeof B[me]=="function"&&(this[me]=function(a){return function(){return B[a].apply(B,arguments)}}(me));for(var P=0;P<Y.length;P++)B.on(Y[P],this.emit.bind(this,Y[P]));return this._read=function(a){ee("wrapped _read",a),ne&&(ne=!1,B.resume())},this},Object.defineProperty(n.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),n._fromList=T}).call(this,t("_process"),typeof Xe!="undefined"?Xe: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(t,w,v){"use strict";function l(n,i){var s=this._transformState;s.transforming=!1;var d=s.writecb;if(!d)return this.emit("error",new Error("write callback called multiple times"));s.writechunk=null,s.writecb=null,i!=null&&this.push(i),d(n);var m=this._readableState;m.reading=!1,(m.needReadable||m.length<m.highWaterMark)&&this._read(m.highWaterMark)}function _(n){if(!(this instanceof _))return new _(n);o.call(this,n),this._transformState={afterTransform:l.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,n&&(typeof n.transform=="function"&&(this._transform=n.transform),typeof n.flush=="function"&&(this._flush=n.flush)),this.on("prefinish",r)}function r(){var n=this;typeof this._flush=="function"?this._flush(function(i,s){u(n,i,s)}):u(this,null,null)}function u(n,i,s){if(i)return n.emit("error",i);if(s!=null&&n.push(s),n._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(n._transformState.transforming)throw new Error("Calling transform done when still transforming");return n.push(null)}w.exports=_;var o=t("./_stream_duplex"),e=t("core-util-is");e.inherits=t("inherits"),e.inherits(_,o),_.prototype.push=function(n,i){return this._transformState.needTransform=!1,o.prototype.push.call(this,n,i)},_.prototype._transform=function(n,i,s){throw new Error("_transform() is not implemented")},_.prototype._write=function(n,i,s){var d=this._transformState;if(d.writecb=s,d.writechunk=n,d.writeencoding=i,!d.transforming){var m=this._readableState;(d.needTransform||m.needReadable||m.length<m.highWaterMark)&&this._read(m.highWaterMark)}},_.prototype._read=function(n){var i=this._transformState;i.writechunk!==null&&i.writecb&&!i.transforming?(i.transforming=!0,this._transform(i.writechunk,i.writeencoding,i.afterTransform)):i.needTransform=!0},_.prototype._destroy=function(n,i){var s=this;o.prototype._destroy.call(this,n,function(d){i(d),s.emit("close")})}},{"./_stream_duplex":179,"core-util-is":153,inherits:162}],183:[function(t,w,v){(function(l,_){"use strict";function r(q){return q&&q.__esModule?q:{default:q}}function u(q){var Y=this;this.next=null,this.entry=null,this.finish=function(){j(Y,q)}}function o(q){return re.from(q)}function e(q){return re.isBuffer(q)||q instanceof ee}function n(){}function i(q,Y){I=I||t("./_stream_duplex"),q=q||{};var ie=Y instanceof I;this.objectMode=!!q.objectMode,ie&&(this.objectMode=this.objectMode||!!q.writableObjectMode);var B=q.highWaterMark,W=q.writableHighWaterMark,oe=this.objectMode?16:16384;this.highWaterMark=B||B===0?B:ie&&(W||W===0)?W:oe,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(me){D(Y,me)},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 u(this)}function s(q){if(I=I||t("./_stream_duplex"),!(ue.call(s,this)||this instanceof I))return new s(q);this._writableState=new i(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)),J.call(this)}function d(q,Y){var ie=new Error("write after end");q.emit("error",ie),k.nextTick(Y,ie)}function m(q,Y,ie,B){var W=!0,oe=!1;return ie===null?oe=new TypeError("May not write null values to stream"):typeof ie=="string"||ie===void 0||Y.objectMode||(oe=new TypeError("Invalid non-string/buffer chunk")),oe&&(q.emit("error",oe),k.nextTick(B,oe),W=!1),W}function f(q,Y,ie){return q.objectMode||q.decodeStrings===!1||typeof Y!="string"||(Y=re.from(Y,ie)),Y}function A(q,Y,ie,B,W,oe){if(!ie){var ne=f(Y,B,W);B!==ne&&(ie=!0,W="buffer",B=ne)}var me=Y.objectMode?1:B.length;Y.length+=me;var P=Y.length<Y.highWaterMark;if(P||(Y.needDrain=!0),Y.writing||Y.corked){var a=Y.lastBufferedRequest;Y.lastBufferedRequest={chunk:B,encoding:W,isBuf:ie,callback:oe,next:null},a?a.next=Y.lastBufferedRequest:Y.bufferedRequest=Y.lastBufferedRequest,Y.bufferedRequestCount+=1}else b(q,Y,!1,me,B,W,oe);return P}function b(q,Y,ie,B,W,oe,ne){Y.writelen=B,Y.writecb=ne,Y.writing=!0,Y.sync=!0,ie?q._writev(W,Y.onwrite):q._write(W,oe,Y.onwrite),Y.sync=!1}function p(q,Y,ie,B,W){--Y.pendingcb,ie?(k.nextTick(W,B),k.nextTick(T,q,Y),q._writableState.errorEmitted=!0,q.emit("error",B)):(W(B),q._writableState.errorEmitted=!0,q.emit("error",B),T(q,Y))}function S(q){q.writing=!1,q.writecb=null,q.length-=q.writelen,q.writelen=0}function D(q,Y){var ie=q._writableState,B=ie.sync,W=ie.writecb;if(S(ie),Y)p(q,ie,B,Y,W);else{var oe=C(ie);oe||ie.corked||ie.bufferProcessing||!ie.bufferedRequest||O(q,ie),B?z(h,q,ie,oe,W):h(q,ie,oe,W)}}function h(q,Y,ie,B){ie||E(q,Y),Y.pendingcb--,B(),T(q,Y)}function E(q,Y){Y.length===0&&Y.needDrain&&(Y.needDrain=!1,q.emit("drain"))}function O(q,Y){Y.bufferProcessing=!0;var ie=Y.bufferedRequest;if(q._writev&&ie&&ie.next){var B=Y.bufferedRequestCount,W=new Array(B),oe=Y.corkedRequestsFree;oe.entry=ie;for(var ne=0,me=!0;ie;)W[ne]=ie,ie.isBuf||(me=!1),ie=ie.next,ne+=1;W.allBuffers=me,b(q,Y,!0,Y.length,W,"",oe.finish),Y.pendingcb++,Y.lastBufferedRequest=null,oe.next?(Y.corkedRequestsFree=oe.next,oe.next=null):Y.corkedRequestsFree=new u(Y),Y.bufferedRequestCount=0}else{for(;ie;){var P=ie.chunk,a=ie.encoding,c=ie.callback;if(b(q,Y,!1,Y.objectMode?1:P.length,P,a,c),ie=ie.next,Y.bufferedRequestCount--,Y.writing)break}ie===null&&(Y.lastBufferedRequest=null)}Y.bufferedRequest=ie,Y.bufferProcessing=!1}function C(q){return q.ending&&q.length===0&&q.bufferedRequest===null&&!q.finished&&!q.writing}function g(q,Y){q._final(function(ie){Y.pendingcb--,ie&&q.emit("error",ie),Y.prefinished=!0,q.emit("prefinish"),T(q,Y)})}function M(q,Y){Y.prefinished||Y.finalCalled||(typeof q._final=="function"?(Y.pendingcb++,Y.finalCalled=!0,k.nextTick(g,q,Y)):(Y.prefinished=!0,q.emit("prefinish")))}function T(q,Y){var ie=C(Y);return ie&&(M(q,Y),Y.pendingcb===0&&(Y.finished=!0,q.emit("finish"))),ie}function L(q,Y,ie){Y.ending=!0,T(q,Y),ie&&(Y.finished?k.nextTick(ie):q.once("finish",ie)),Y.ended=!0,q.writable=!1}function j(q,Y,ie){var B=q.entry;for(q.entry=null;B;){var W=B.callback;Y.pendingcb--,W(ie),B=B.next}Y.corkedRequestsFree?Y.corkedRequestsFree.next=q:Y.corkedRequestsFree=q}var N=t("babel-runtime/core-js/object/define-property"),G=r(N),$=t("babel-runtime/core-js/symbol/has-instance"),H=r($),F=t("babel-runtime/core-js/symbol"),te=r(F),ae=t("babel-runtime/core-js/set-immediate"),K=r(ae),k=t("process-nextick-args");w.exports=s;var I,z=!l.browser&&["v0.10","v0.9."].indexOf(l.version.slice(0,5))>-1?K.default:k.nextTick;s.WritableState=i;var X=t("core-util-is");X.inherits=t("inherits");var Z={deprecate:t("util-deprecate")},J=t("./internal/streams/stream"),re=t("safe-buffer").Buffer,ee=_.Uint8Array||function(){},se=t("./internal/streams/destroy");X.inherits(s,J),i.prototype.getBuffer=function(){for(var q=this.bufferedRequest,Y=[];q;)Y.push(q),q=q.next;return Y},function(){try{Object.defineProperty(i.prototype,"buffer",{get:Z.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(q){}}();var ue;typeof te.default=="function"&&H.default&&typeof Function.prototype[H.default]=="function"?(ue=Function.prototype[H.default],(0,G.default)(s,H.default,{value:function(Y){return!!ue.call(this,Y)||this===s&&Y&&Y._writableState instanceof i}})):ue=function(Y){return Y instanceof this},s.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},s.prototype.write=function(q,Y,ie){var B=this._writableState,W=!1,oe=!B.objectMode&&e(q);return oe&&!re.isBuffer(q)&&(q=o(q)),typeof Y=="function"&&(ie=Y,Y=null),oe?Y="buffer":Y||(Y=B.defaultEncoding),typeof ie!="function"&&(ie=n),B.ended?d(this,ie):(oe||m(this,B,q,ie))&&(B.pendingcb++,W=A(this,B,oe,q,Y,ie)),W},s.prototype.cork=function(){this._writableState.corked++},s.prototype.uncork=function(){var q=this._writableState;q.corked&&(q.corked--,q.writing||q.corked||q.finished||q.bufferProcessing||!q.bufferedRequest||O(this,q))},s.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(s.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),s.prototype._write=function(q,Y,ie){ie(new Error("_write() is not implemented"))},s.prototype._writev=null,s.prototype.end=function(q,Y,ie){var B=this._writableState;typeof q=="function"?(ie=q,q=null,Y=null):typeof Y=="function"&&(ie=Y,Y=null),q!=null&&this.write(q,Y),B.corked&&(B.corked=1,this.uncork()),B.ending||B.finished||L(this,B,ie)},Object.defineProperty(s.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(Y){this._writableState&&(this._writableState.destroyed=Y)}}),s.prototype.destroy=se.destroy,s.prototype._undestroy=se.undestroy,s.prototype._destroy=function(q,Y){this.end(),Y(q)}}).call(this,t("_process"),typeof Xe!="undefined"?Xe: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(t,w,v){"use strict";function l(o,e){if(!(o instanceof e))throw new TypeError("Cannot call a class as a function")}function _(o,e,n){o.copy(e,n)}var r=t("safe-buffer").Buffer,u=t("util");w.exports=function(){function o(){l(this,o),this.head=null,this.tail=null,this.length=0}return o.prototype.push=function(e){var n={data:e,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length},o.prototype.unshift=function(e){var n={data:e,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length},o.prototype.shift=function(){if(this.length!==0){var e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},o.prototype.clear=function(){this.head=this.tail=null,this.length=0},o.prototype.join=function(e){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=e+n.data;return i},o.prototype.concat=function(e){if(this.length===0)return r.alloc(0);if(this.length===1)return this.head.data;for(var n=r.allocUnsafe(e>>>0),i=this.head,s=0;i;)_(i.data,n,s),s+=i.data.length,i=i.next;return n},o}(),u&&u.inspect&&u.inspect.custom&&(w.exports.prototype[u.inspect.custom]=function(){var o=u.inspect({length:this.length});return this.constructor.name+" "+o})},{"safe-buffer":193,util:36}],185:[function(t,w,v){"use strict";function l(o,e){var n=this,i=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return i||s?(e?e(o):!o||this._writableState&&this._writableState.errorEmitted||u.nextTick(r,this,o),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(o||null,function(d){!e&&d?(u.nextTick(r,n,d),n._writableState&&(n._writableState.errorEmitted=!0)):e&&e(d)}),this)}function _(){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 r(o,e){o.emit("error",e)}var u=t("process-nextick-args");w.exports={destroy:l,undestroy:_}},{"process-nextick-args":172}],186:[function(t,w,v){"use strict";w.exports=t("events").EventEmitter},{events:158}],187:[function(t,w,v){w.exports=t("./readable").PassThrough},{"./readable":188}],188:[function(t,w,v){v=w.exports=t("./lib/_stream_readable.js"),v.Stream=v,v.Readable=v,v.Writable=t("./lib/_stream_writable.js"),v.Duplex=t("./lib/_stream_duplex.js"),v.Transform=t("./lib/_stream_transform.js"),v.PassThrough=t("./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(t,w,v){w.exports=t("./readable").Transform},{"./readable":188}],190:[function(t,w,v){w.exports=t("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":183}],191:[function(t,w,v){var l=function(){return this}()||Function("return this")(),_=l.regeneratorRuntime&&Object.getOwnPropertyNames(l).indexOf("regeneratorRuntime")>=0,r=_&&l.regeneratorRuntime;if(l.regeneratorRuntime=void 0,w.exports=t("./runtime"),_)l.regeneratorRuntime=r;else try{delete l.regeneratorRuntime}catch(u){l.regeneratorRuntime=void 0}},{"./runtime":192}],192:[function(t,w,v){!function(l){"use strict";function _(K,k,I,z){var X=k&&k.prototype instanceof u?k:u,Z=Object.create(X.prototype),J=new A(z||[]);return Z._invoke=s(K,I,J),Z}function r(K,k,I){try{return{type:"normal",arg:K.call(k,I)}}catch(z){return{type:"throw",arg:z}}}function u(){}function o(){}function e(){}function n(K){["next","throw","return"].forEach(function(k){K[k]=function(I){return this._invoke(k,I)}})}function i(K){function k(X,Z,J,re){var ee=r(K[X],K,Z);if(ee.type!=="throw"){var se=ee.arg,ue=se.value;return ue&&typeof ue=="object"&&h.call(ue,"__await")?Promise.resolve(ue.__await).then(function(q){k("next",q,J,re)},function(q){k("throw",q,J,re)}):Promise.resolve(ue).then(function(q){se.value=q,J(se)},re)}re(ee.arg)}function I(X,Z){function J(){return new Promise(function(re,ee){k(X,Z,re,ee)})}return z=z?z.then(J,J):J()}var z;this._invoke=I}function s(K,k,I){var z=L;return function(X,Z){if(z===N)throw new Error("Generator is already running");if(z===G){if(X==="throw")throw Z;return p()}for(I.method=X,I.arg=Z;;){var J=I.delegate;if(J){var re=d(J,I);if(re){if(re===$)continue;return re}}if(I.method==="next")I.sent=I._sent=I.arg;else if(I.method==="throw"){if(z===L)throw z=G,I.arg;I.dispatchException(I.arg)}else I.method==="return"&&I.abrupt("return",I.arg);z=N;var ee=r(K,k,I);if(ee.type==="normal"){if(z=I.done?G:j,ee.arg===$)continue;return{value:ee.arg,done:I.done}}ee.type==="throw"&&(z=G,I.method="throw",I.arg=ee.arg)}}}function d(K,k){var I=K.iterator[k.method];if(I===S){if(k.delegate=null,k.method==="throw"){if(K.iterator.return&&(k.method="return",k.arg=S,d(K,k),k.method==="throw"))return $;k.method="throw",k.arg=new TypeError("The iterator does not provide a 'throw' method")}return $}var z=r(I,K.iterator,k.arg);if(z.type==="throw")return k.method="throw",k.arg=z.arg,k.delegate=null,$;var X=z.arg;return X?X.done?(k[K.resultName]=X.value,k.next=K.nextLoc,k.method!=="return"&&(k.method="next",k.arg=S),k.delegate=null,$):X:(k.method="throw",k.arg=new TypeError("iterator result is not an object"),k.delegate=null,$)}function m(K){var k={tryLoc:K[0]};1 in K&&(k.catchLoc=K[1]),2 in K&&(k.finallyLoc=K[2],k.afterLoc=K[3]),this.tryEntries.push(k)}function f(K){var k=K.completion||{};k.type="normal",delete k.arg,K.completion=k}function A(K){this.tryEntries=[{tryLoc:"root"}],K.forEach(m,this),this.reset(!0)}function b(K){if(K){var k=K[O];if(k)return k.call(K);if(typeof K.next=="function")return K;if(!isNaN(K.length)){var I=-1,z=function X(){for(;++I<K.length;)if(h.call(K,I))return X.value=K[I],X.done=!1,X;return X.value=S,X.done=!0,X};return z.next=z}}return{next:p}}function p(){return{value:S,done:!0}}var S,D=Object.prototype,h=D.hasOwnProperty,E=typeof Symbol=="function"?Symbol:{},O=E.iterator||"@@iterator",C=E.asyncIterator||"@@asyncIterator",g=E.toStringTag||"@@toStringTag",M=typeof w=="object",T=l.regeneratorRuntime;if(T)return void(M&&(w.exports=T));T=l.regeneratorRuntime=M?w.exports:{},T.wrap=_;var L="suspendedStart",j="suspendedYield",N="executing",G="completed",$={},H={};H[O]=function(){return this};var F=Object.getPrototypeOf,te=F&&F(F(b([])));te&&te!==D&&h.call(te,O)&&(H=te);var ae=e.prototype=u.prototype=Object.create(H);o.prototype=ae.constructor=e,e.constructor=o,e[g]=o.displayName="GeneratorFunction",T.isGeneratorFunction=function(K){var k=typeof K=="function"&&K.constructor;return!!k&&(k===o||(k.displayName||k.name)==="GeneratorFunction")},T.mark=function(K){return Object.setPrototypeOf?Object.setPrototypeOf(K,e):(K.__proto__=e,g in K||(K[g]="GeneratorFunction")),K.prototype=Object.create(ae),K},T.awrap=function(K){return{__await:K}},n(i.prototype),i.prototype[C]=function(){return this},T.AsyncIterator=i,T.async=function(K,k,I,z){var X=new i(_(K,k,I,z));return T.isGeneratorFunction(k)?X:X.next().then(function(Z){return Z.done?Z.value:X.next()})},n(ae),ae[g]="Generator",ae[O]=function(){return this},ae.toString=function(){return"[object Generator]"},T.keys=function(K){var k=[];for(var I in K)k.push(I);return k.reverse(),function z(){for(;k.length;){var X=k.pop();if(X in K)return z.value=X,z.done=!1,z}return z.done=!0,z}},T.values=b,A.prototype={constructor:A,reset:function(k){if(this.prev=0,this.next=0,this.sent=this._sent=S,this.done=!1,this.delegate=null,this.method="next",this.arg=S,this.tryEntries.forEach(f),!k)for(var I in this)I.charAt(0)==="t"&&h.call(this,I)&&!isNaN(+I.slice(1))&&(this[I]=S)},stop:function(){this.done=!0;var k=this.tryEntries[0],I=k.completion;if(I.type==="throw")throw I.arg;return this.rval},dispatchException:function(k){function I(se,ue){return J.type="throw",J.arg=k,z.next=se,ue&&(z.method="next",z.arg=S),!!ue}if(this.done)throw k;for(var z=this,X=this.tryEntries.length-1;X>=0;--X){var Z=this.tryEntries[X],J=Z.completion;if(Z.tryLoc==="root")return I("end");if(Z.tryLoc<=this.prev){var re=h.call(Z,"catchLoc"),ee=h.call(Z,"finallyLoc");if(re&&ee){if(this.prev<Z.catchLoc)return I(Z.catchLoc,!0);if(this.prev<Z.finallyLoc)return I(Z.finallyLoc)}else if(re){if(this.prev<Z.catchLoc)return I(Z.catchLoc,!0)}else{if(!ee)throw new Error("try statement without catch or finally");if(this.prev<Z.finallyLoc)return I(Z.finallyLoc)}}}},abrupt:function(k,I){for(var z=this.tryEntries.length-1;z>=0;--z){var X=this.tryEntries[z];if(X.tryLoc<=this.prev&&h.call(X,"finallyLoc")&&this.prev<X.finallyLoc){var Z=X;break}}Z&&(k==="break"||k==="continue")&&Z.tryLoc<=I&&I<=Z.finallyLoc&&(Z=null);var J=Z?Z.completion:{};return J.type=k,J.arg=I,Z?(this.method="next",this.next=Z.finallyLoc,$):this.complete(J)},complete:function(k,I){if(k.type==="throw")throw k.arg;return k.type==="break"||k.type==="continue"?this.next=k.arg:k.type==="return"?(this.rval=this.arg=k.arg,this.method="return",this.next="end"):k.type==="normal"&&I&&(this.next=I),$},finish:function(k){for(var I=this.tryEntries.length-1;I>=0;--I){var z=this.tryEntries[I];if(z.finallyLoc===k)return this.complete(z.completion,z.afterLoc),f(z),$}},catch:function(k){for(var I=this.tryEntries.length-1;I>=0;--I){var z=this.tryEntries[I];if(z.tryLoc===k){var X=z.completion;if(X.type==="throw"){var Z=X.arg;f(z)}return Z}}throw new Error("illegal catch attempt")},delegateYield:function(k,I,z){return this.delegate={iterator:b(k),resultName:I,nextLoc:z},this.method==="next"&&(this.arg=S),$}}}(function(){return this}()||Function("return this")())},{}],193:[function(t,w,v){function l(o,e){for(var n in o)e[n]=o[n]}function _(o,e,n){return u(o,e,n)}var r=t("buffer"),u=r.Buffer;u.from&&u.alloc&&u.allocUnsafe&&u.allocUnsafeSlow?w.exports=r:(l(r,v),v.Buffer=_),l(u,_),_.from=function(o,e,n){if(typeof o=="number")throw new TypeError("Argument must not be a number");return u(o,e,n)},_.alloc=function(o,e,n){if(typeof o!="number")throw new TypeError("Argument must be a number");var i=u(o);return e!==void 0?typeof n=="string"?i.fill(e,n):i.fill(e):i.fill(0),i},_.allocUnsafe=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return u(o)},_.allocUnsafeSlow=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(o)}},{buffer:38}],194:[function(t,w,v){(function(l){"use strict";function _(p){return p&&p.__esModule?p:{default:p}}var r=t("babel-runtime/core-js/string/from-code-point"),u=_(r),o=t("babel-runtime/core-js/json/stringify"),e=_(o),n=t("babel-runtime/helpers/typeof"),i=_(n),s=t("babel-runtime/core-js/object/define-property"),d=_(s),m=t("babel-runtime/core-js/object/keys"),f=_(m),A=t("babel-runtime/core-js/object/create"),b=_(A);!function(p){function S(y,x){if(!(this instanceof S))return new S(y,x);var Q=this;h(Q),Q.q=Q.c="",Q.bufferCheckPosition=p.MAX_BUFFER_LENGTH,Q.opt=x||{},Q.opt.lowercase=Q.opt.lowercase||Q.opt.lowercasetags,Q.looseCase=Q.opt.lowercase?"toLowerCase":"toUpperCase",Q.tags=[],Q.closed=Q.closedRoot=Q.sawRoot=!1,Q.tag=Q.error=null,Q.strict=!!y,Q.noscript=!(!y&&!Q.opt.noscript),Q.state=c.BEGIN,Q.strictEntities=Q.opt.strictEntities,Q.ENTITIES=Q.strictEntities?(0,b.default)(p.XML_ENTITIES):(0,b.default)(p.ENTITIES),Q.attribList=[],Q.opt.xmlns&&(Q.ns=(0,b.default)(oe)),Q.trackPosition=Q.opt.position!==!1,Q.trackPosition&&(Q.position=Q.line=Q.column=0),N(Q,"onready")}function D(y){for(var x=Math.max(p.MAX_BUFFER_LENGTH,10),Q=0,V=0,xe=se.length;V<xe;V++){var be=y[se[V]].length;if(be>x)switch(se[V]){case"textNode":$(y);break;case"cdata":G(y,"oncdata",y.cdata),y.cdata="";break;case"script":G(y,"onscript",y.script),y.script="";break;default:F(y,"Max buffer length exceeded: "+se[V])}Q=Math.max(Q,be)}var ce=p.MAX_BUFFER_LENGTH-Q;y.bufferCheckPosition=ce+y.position}function h(y){for(var x=0,Q=se.length;x<Q;x++)y[se[x]]=""}function E(y){$(y),y.cdata!==""&&(G(y,"oncdata",y.cdata),y.cdata=""),y.script!==""&&(G(y,"onscript",y.script),y.script="")}function O(y,x){return new C(y,x)}function C(y,x){if(!(this instanceof C))return new C(y,x);ue.apply(this),this._parser=new S(y,x),this.writable=!0,this.readable=!0;var Q=this;this._parser.onend=function(){Q.emit("end")},this._parser.onerror=function(V){Q.emit("error",V),Q._parser.error=null},this._decoder=null,q.forEach(function(V){(0,d.default)(Q,"on"+V,{get:function(){return Q._parser["on"+V]},set:function(be){if(!be)return Q.removeAllListeners(V),Q._parser["on"+V]=be,be;Q.on(V,be)},enumerable:!0,configurable:!1})})}function g(y){return y===" "||y===`
|
|
|
`||y==="\r"||y===" "}function M(y){return y==='"'||y==="'"}function T(y){return y===">"||g(y)}function L(y,x){return y.test(x)}function j(y,x){return!L(y,x)}function N(y,x,Q){y[x]&&y[x](Q)}function G(y,x,Q){y.textNode&&$(y),N(y,x,Q)}function $(y){y.textNode=H(y.opt,y.textNode),y.textNode&&N(y,"ontext",y.textNode),y.textNode=""}function H(y,x){return y.trim&&(x=x.trim()),y.normalize&&(x=x.replace(/\s+/g," ")),x}function F(y,x){return $(y),y.trackPosition&&(x+=`
|
|
|
Line: `+y.line+`
|
|
|
Column: `+y.column+`
|
|
|
Char: `+y.c),x=new Error(x),y.error=x,N(y,"onerror",x),y}function te(y){return y.sawRoot&&!y.closedRoot&&ae(y,"Unclosed root tag"),y.state!==c.BEGIN&&y.state!==c.BEGIN_WHITESPACE&&y.state!==c.TEXT&&F(y,"Unexpected end"),$(y),y.c="",y.closed=!0,N(y,"onend"),S.call(y,y.strict,y.opt),y}function ae(y,x){if((y===void 0?"undefined":(0,i.default)(y))!=="object"||!(y instanceof S))throw new Error("bad call to strictFail");y.strict&&F(y,x)}function K(y){y.strict||(y.tagName=y.tagName[y.looseCase]());var x=y.tags[y.tags.length-1]||y,Q=y.tag={name:y.tagName,attributes:{}};y.opt.xmlns&&(Q.ns=x.ns),y.attribList.length=0,G(y,"onopentagstart",Q)}function k(y,x){var Q=y.indexOf(":"),V=Q<0?["",y]:y.split(":"),xe=V[0],be=V[1];return x&&y==="xmlns"&&(xe="xmlns",be=""),{prefix:xe,local:be}}function I(y){if(y.strict||(y.attribName=y.attribName[y.looseCase]()),y.attribList.indexOf(y.attribName)!==-1||y.tag.attributes.hasOwnProperty(y.attribName))return void(y.attribName=y.attribValue="");if(y.opt.xmlns){var x=k(y.attribName,!0),Q=x.prefix,V=x.local;if(Q==="xmlns")if(V==="xml"&&y.attribValue!==B)ae(y,"xml: prefix must be bound to "+B+`
|
|
|
Actual: `+y.attribValue);else if(V==="xmlns"&&y.attribValue!==W)ae(y,"xmlns: prefix must be bound to "+W+`
|
|
|
Actual: `+y.attribValue);else{var xe=y.tag,be=y.tags[y.tags.length-1]||y;xe.ns===be.ns&&(xe.ns=(0,b.default)(be.ns)),xe.ns[V]=y.attribValue}y.attribList.push([y.attribName,y.attribValue])}else y.tag.attributes[y.attribName]=y.attribValue,G(y,"onattribute",{name:y.attribName,value:y.attribValue});y.attribName=y.attribValue=""}function z(y,x){if(y.opt.xmlns){var Q=y.tag,V=k(y.tagName);Q.prefix=V.prefix,Q.local=V.local,Q.uri=Q.ns[V.prefix]||"",Q.prefix&&!Q.uri&&(ae(y,"Unbound namespace prefix: "+(0,e.default)(y.tagName)),Q.uri=V.prefix);var xe=y.tags[y.tags.length-1]||y;Q.ns&&xe.ns!==Q.ns&&(0,f.default)(Q.ns).forEach(function(An){G(y,"onopennamespace",{prefix:An,uri:Q.ns[An]})});for(var be=0,ce=y.attribList.length;be<ce;be++){var Se=y.attribList[be],Qe=Se[0],et=Se[1],he=k(Qe,!0),Dt=he.prefix,ft=he.local,$t=Dt===""?"":Q.ns[Dt]||"",fn={name:Qe,value:et,prefix:Dt,local:ft,uri:$t};Dt&&Dt!=="xmlns"&&!$t&&(ae(y,"Unbound namespace prefix: "+(0,e.default)(Dt)),fn.uri=Dt),y.tag.attributes[Qe]=fn,G(y,"onattribute",fn)}y.attribList.length=0}y.tag.isSelfClosing=!!x,y.sawRoot=!0,y.tags.push(y.tag),G(y,"onopentag",y.tag),x||(y.noscript||y.tagName.toLowerCase()!=="script"?y.state=c.TEXT:y.state=c.SCRIPT,y.tag=null,y.tagName=""),y.attribName=y.attribValue="",y.attribList.length=0}function X(y){if(!y.tagName)return ae(y,"Weird empty close tag."),y.textNode+="</>",void(y.state=c.TEXT);if(y.script){if(y.tagName!=="script")return y.script+="</"+y.tagName+">",y.tagName="",void(y.state=c.SCRIPT);G(y,"onscript",y.script),y.script=""}var x=y.tags.length,Q=y.tagName;y.strict||(Q=Q[y.looseCase]());for(var V=Q;x--&&!(y.tags[x].name===V);)ae(y,"Unexpected close tag");if(x<0)return ae(y,"Unmatched closing tag: "+y.tagName),y.textNode+="</"+y.tagName+">",void(y.state=c.TEXT);y.tagName=Q;for(var xe=y.tags.length;xe-- >x;){var be=y.tag=y.tags.pop();y.tagName=y.tag.name,G(y,"onclosetag",y.tagName);var ce={};for(var Se in be.ns)ce[Se]=be.ns[Se];var Qe=y.tags[y.tags.length-1]||y;y.opt.xmlns&&be.ns!==Qe.ns&&(0,f.default)(be.ns).forEach(function(et){var he=be.ns[et];G(y,"onclosenamespace",{prefix:et,uri:he})})}x===0&&(y.closedRoot=!0),y.tagName=y.attribValue=y.attribName="",y.attribList.length=0,y.state=c.TEXT}function Z(y){var x,Q=y.entity,V=Q.toLowerCase(),xe="";return y.ENTITIES[Q]?y.ENTITIES[Q]:y.ENTITIES[V]?y.ENTITIES[V]:(Q=V,Q.charAt(0)==="#"&&(Q.charAt(1)==="x"?(Q=Q.slice(2),x=parseInt(Q,16),xe=x.toString(16)):(Q=Q.slice(1),x=parseInt(Q,10),xe=x.toString(10))),Q=Q.replace(/^0+/,""),isNaN(x)||xe.toLowerCase()!==Q?(ae(y,"Invalid character entity"),"&"+y.entity+";"):(0,u.default)(x))}function J(y,x){x==="<"?(y.state=c.OPEN_WAKA,y.startTagPosition=y.position):g(x)||(ae(y,"Non-whitespace before first tag."),y.textNode=x,y.state=c.TEXT)}function re(y,x){var Q="";return x<y.length&&(Q=y.charAt(x)),Q}function ee(y){var x=this;if(this.error)throw this.error;if(x.closed)return F(x,"Cannot write after close. Assign an onready handler.");if(y===null)return te(x);(y===void 0?"undefined":(0,i.default)(y))==="object"&&(y=y.toString());for(var Q=0,V="";!(V=re(y,Q++),x.c=V,!V);)switch(x.trackPosition&&(x.position++,V===`
|
|
|
`?(x.line++,x.column=0):x.column++),x.state){case c.BEGIN:if(x.state=c.BEGIN_WHITESPACE,V==="\uFEFF")continue;J(x,V);continue;case c.BEGIN_WHITESPACE:J(x,V);continue;case c.TEXT:if(x.sawRoot&&!x.closedRoot){for(var xe=Q-1;V&&V!=="<"&&V!=="&";)(V=re(y,Q++))&&x.trackPosition&&(x.position++,V===`
|
|
|
`?(x.line++,x.column=0):x.column++);x.textNode+=y.substring(xe,Q-1)}V!=="<"||x.sawRoot&&x.closedRoot&&!x.strict?(g(V)||x.sawRoot&&!x.closedRoot||ae(x,"Text data outside of root node."),V==="&"?x.state=c.TEXT_ENTITY:x.textNode+=V):(x.state=c.OPEN_WAKA,x.startTagPosition=x.position);continue;case c.SCRIPT:V==="<"?x.state=c.SCRIPT_ENDING:x.script+=V;continue;case c.SCRIPT_ENDING:V==="/"?x.state=c.CLOSE_TAG:(x.script+="<"+V,x.state=c.SCRIPT);continue;case c.OPEN_WAKA:if(V==="!")x.state=c.SGML_DECL,x.sgmlDecl="";else if(!g(V))if(L(ne,V))x.state=c.OPEN_TAG,x.tagName=V;else if(V==="/")x.state=c.CLOSE_TAG,x.tagName="";else if(V==="?")x.state=c.PROC_INST,x.procInstName=x.procInstBody="";else{if(ae(x,"Unencoded <"),x.startTagPosition+1<x.position){var be=x.position-x.startTagPosition;V=new Array(be).join(" ")+V}x.textNode+="<"+V,x.state=c.TEXT}continue;case c.SGML_DECL:(x.sgmlDecl+V).toUpperCase()===Y?(G(x,"onopencdata"),x.state=c.CDATA,x.sgmlDecl="",x.cdata=""):x.sgmlDecl+V==="--"?(x.state=c.COMMENT,x.comment="",x.sgmlDecl=""):(x.sgmlDecl+V).toUpperCase()===ie?(x.state=c.DOCTYPE,(x.doctype||x.sawRoot)&&ae(x,"Inappropriately located doctype declaration"),x.doctype="",x.sgmlDecl=""):V===">"?(G(x,"onsgmldeclaration",x.sgmlDecl),x.sgmlDecl="",x.state=c.TEXT):(M(V)&&(x.state=c.SGML_DECL_QUOTED),x.sgmlDecl+=V);continue;case c.SGML_DECL_QUOTED:V===x.q&&(x.state=c.SGML_DECL,x.q=""),x.sgmlDecl+=V;continue;case c.DOCTYPE:V===">"?(x.state=c.TEXT,G(x,"ondoctype",x.doctype),x.doctype=!0):(x.doctype+=V,V==="["?x.state=c.DOCTYPE_DTD:M(V)&&(x.state=c.DOCTYPE_QUOTED,x.q=V));continue;case c.DOCTYPE_QUOTED:x.doctype+=V,V===x.q&&(x.q="",x.state=c.DOCTYPE);continue;case c.DOCTYPE_DTD:x.doctype+=V,V==="]"?x.state=c.DOCTYPE:M(V)&&(x.state=c.DOCTYPE_DTD_QUOTED,x.q=V);continue;case c.DOCTYPE_DTD_QUOTED:x.doctype+=V,V===x.q&&(x.state=c.DOCTYPE_DTD,x.q="");continue;case c.COMMENT:V==="-"?x.state=c.COMMENT_ENDING:x.comment+=V;continue;case c.COMMENT_ENDING:V==="-"?(x.state=c.COMMENT_ENDED,x.comment=H(x.opt,x.comment),x.comment&&G(x,"oncomment",x.comment),x.comment=""):(x.comment+="-"+V,x.state=c.COMMENT);continue;case c.COMMENT_ENDED:V!==">"?(ae(x,"Malformed comment"),x.comment+="--"+V,x.state=c.COMMENT):x.state=c.TEXT;continue;case c.CDATA:V==="]"?x.state=c.CDATA_ENDING:x.cdata+=V;continue;case c.CDATA_ENDING:V==="]"?x.state=c.CDATA_ENDING_2:(x.cdata+="]"+V,x.state=c.CDATA);continue;case c.CDATA_ENDING_2:V===">"?(x.cdata&&G(x,"oncdata",x.cdata),G(x,"onclosecdata"),x.cdata="",x.state=c.TEXT):V==="]"?x.cdata+="]":(x.cdata+="]]"+V,x.state=c.CDATA);continue;case c.PROC_INST:V==="?"?x.state=c.PROC_INST_ENDING:g(V)?x.state=c.PROC_INST_BODY:x.procInstName+=V;continue;case c.PROC_INST_BODY:if(!x.procInstBody&&g(V))continue;V==="?"?x.state=c.PROC_INST_ENDING:x.procInstBody+=V;continue;case c.PROC_INST_ENDING:V===">"?(G(x,"onprocessinginstruction",{name:x.procInstName,body:x.procInstBody}),x.procInstName=x.procInstBody="",x.state=c.TEXT):(x.procInstBody+="?"+V,x.state=c.PROC_INST_BODY);continue;case c.OPEN_TAG:L(me,V)?x.tagName+=V:(K(x),V===">"?z(x):V==="/"?x.state=c.OPEN_TAG_SLASH:(g(V)||ae(x,"Invalid character in tag name"),x.state=c.ATTRIB));continue;case c.OPEN_TAG_SLASH:V===">"?(z(x,!0),X(x)):(ae(x,"Forward-slash in opening tag not followed by >"),x.state=c.ATTRIB);continue;case c.ATTRIB:if(g(V))continue;V===">"?z(x):V==="/"?x.state=c.OPEN_TAG_SLASH:L(ne,V)?(x.attribName=V,x.attribValue="",x.state=c.ATTRIB_NAME):ae(x,"Invalid attribute name");continue;case c.ATTRIB_NAME:V==="="?x.state=c.ATTRIB_VALUE:V===">"?(ae(x,"Attribute without value"),x.attribValue=x.attribName,I(x),z(x)):g(V)?x.state=c.ATTRIB_NAME_SAW_WHITE:L(me,V)?x.attribName+=V:ae(x,"Invalid attribute name");continue;case c.ATTRIB_NAME_SAW_WHITE:if(V==="=")x.state=c.ATTRIB_VALUE;else{if(g(V))continue;ae(x,"Attribute without value"),x.tag.attributes[x.attribName]="",x.attribValue="",G(x,"onattribute",{name:x.attribName,value:""}),x.attribName="",V===">"?z(x):L(ne,V)?(x.attribName=V,x.state=c.ATTRIB_NAME):(ae(x,"Invalid attribute name"),x.state=c.ATTRIB)}continue;case c.ATTRIB_VALUE:if(g(V))continue;M(V)?(x.q=V,x.state=c.ATTRIB_VALUE_QUOTED):(ae(x,"Unquoted attribute value"),x.state=c.ATTRIB_VALUE_UNQUOTED,x.attribValue=V);continue;case c.ATTRIB_VALUE_QUOTED:if(V!==x.q){V==="&"?x.state=c.ATTRIB_VALUE_ENTITY_Q:x.attribValue+=V;continue}I(x),x.q="",x.state=c.ATTRIB_VALUE_CLOSED;continue;case c.ATTRIB_VALUE_CLOSED:g(V)?x.state=c.ATTRIB:V===">"?z(x):V==="/"?x.state=c.OPEN_TAG_SLASH:L(ne,V)?(ae(x,"No whitespace between attributes"),x.attribName=V,x.attribValue="",x.state=c.ATTRIB_NAME):ae(x,"Invalid attribute name");continue;case c.ATTRIB_VALUE_UNQUOTED:if(!T(V)){V==="&"?x.state=c.ATTRIB_VALUE_ENTITY_U:x.attribValue+=V;continue}I(x),V===">"?z(x):x.state=c.ATTRIB;continue;case c.CLOSE_TAG:if(x.tagName)V===">"?X(x):L(me,V)?x.tagName+=V:x.script?(x.script+="</"+x.tagName,x.tagName="",x.state=c.SCRIPT):(g(V)||ae(x,"Invalid tagname in closing tag"),x.state=c.CLOSE_TAG_SAW_WHITE);else{if(g(V))continue;j(ne,V)?x.script?(x.script+="</"+V,x.state=c.SCRIPT):ae(x,"Invalid tagname in closing tag."):x.tagName=V}continue;case c.CLOSE_TAG_SAW_WHITE:if(g(V))continue;V===">"?X(x):ae(x,"Invalid characters in closing tag");continue;case c.TEXT_ENTITY:case c.ATTRIB_VALUE_ENTITY_Q:case c.ATTRIB_VALUE_ENTITY_U:var ce,Se;switch(x.state){case c.TEXT_ENTITY:ce=c.TEXT,Se="textNode";break;case c.ATTRIB_VALUE_ENTITY_Q:ce=c.ATTRIB_VALUE_QUOTED,Se="attribValue";break;case c.ATTRIB_VALUE_ENTITY_U:ce=c.ATTRIB_VALUE_UNQUOTED,Se="attribValue"}V===";"?(x[Se]+=Z(x),x.entity="",x.state=ce):L(x.entity.length?a:P,V)?x.entity+=V:(ae(x,"Invalid character in entity name"),x[Se]+="&"+x.entity+V,x.entity="",x.state=ce);continue;default:throw new Error(x,"Unknown state: "+x.state)}return x.position>=x.bufferCheckPosition&&D(x),x}p.parser=function(y,x){return new S(y,x)},p.SAXParser=S,p.SAXStream=C,p.createStream=O,p.MAX_BUFFER_LENGTH=65536;var se=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];p.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],b.default||(Object.create=function(y){function x(){}return x.prototype=y,new x}),f.default||(Object.keys=function(y){var x=[];for(var Q in y)y.hasOwnProperty(Q)&&x.push(Q);return x}),S.prototype={end:function(){te(this)},write:ee,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){E(this)}};var ue;try{ue=t("stream").Stream}catch(y){ue=function(){}}var q=p.EVENTS.filter(function(y){return y!=="error"&&y!=="end"});C.prototype=(0,b.default)(ue.prototype,{constructor:{value:C}}),C.prototype.write=function(y){if(typeof l=="function"&&typeof l.isBuffer=="function"&&l.isBuffer(y)){if(!this._decoder){var x=t("string_decoder").StringDecoder;this._decoder=new x("utf8")}y=this._decoder.write(y)}return this._parser.write(y.toString()),this.emit("data",y),!0},C.prototype.end=function(y){return y&&y.length&&this.write(y),this._parser.end(),!0},C.prototype.on=function(y,x){var Q=this;return Q._parser["on"+y]||q.indexOf(y)===-1||(Q._parser["on"+y]=function(){var V=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);V.splice(0,0,y),Q.emit.apply(Q,V)}),ue.prototype.on.call(Q,y,x)};var Y="[CDATA[",ie="DOCTYPE",B="http://www.w3.org/XML/1998/namespace",W="http://www.w3.org/2000/xmlns/",oe={xml:B,xmlns:W},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]/,me=/[:_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-]/,P=/[#:_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]/,a=/[#:_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-]/,c=0;p.STATE={BEGIN:c++,BEGIN_WHITESPACE:c++,TEXT:c++,TEXT_ENTITY:c++,OPEN_WAKA:c++,SGML_DECL:c++,SGML_DECL_QUOTED:c++,DOCTYPE:c++,DOCTYPE_QUOTED:c++,DOCTYPE_DTD:c++,DOCTYPE_DTD_QUOTED:c++,COMMENT_STARTING:c++,COMMENT:c++,COMMENT_ENDING:c++,COMMENT_ENDED:c++,CDATA:c++,CDATA_ENDING:c++,CDATA_ENDING_2:c++,PROC_INST:c++,PROC_INST_BODY:c++,PROC_INST_ENDING:c++,OPEN_TAG:c++,OPEN_TAG_SLASH:c++,ATTRIB:c++,ATTRIB_NAME:c++,ATTRIB_NAME_SAW_WHITE:c++,ATTRIB_VALUE:c++,ATTRIB_VALUE_QUOTED:c++,ATTRIB_VALUE_CLOSED:c++,ATTRIB_VALUE_UNQUOTED:c++,ATTRIB_VALUE_ENTITY_Q:c++,ATTRIB_VALUE_ENTITY_U:c++,CLOSE_TAG:c++,CLOSE_TAG_SAW_WHITE:c++,SCRIPT:c++,SCRIPT_ENDING:c++},p.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},p.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,f.default)(p.ENTITIES).forEach(function(y){var x=p.ENTITIES[y],Q=typeof x=="number"?String.fromCharCode(x):x;p.ENTITIES[y]=Q});for(var R in p.STATE)p.STATE[p.STATE[R]]=R;c=p.STATE,u.default||function(){var y=String.fromCharCode,x=Math.floor,Q=function(){var xe,be,ce=[],Se=-1,Qe=arguments.length;if(!Qe)return"";for(var et="";++Se<Qe;){var he=Number(arguments[Se]);if(!isFinite(he)||he<0||he>1114111||x(he)!==he)throw RangeError("Invalid code point: "+he);he<=65535?ce.push(he):(he-=65536,xe=55296+(he>>10),be=he%1024+56320,ce.push(xe,be)),(Se+1===Qe||ce.length>16384)&&(et+=y.apply(null,ce),ce.length=0)}return et};d.default?Object.defineProperty(String,"fromCodePoint",{value:Q,configurable:!0,writable:!0}):String.fromCodePoint=Q}()}(v===void 0?(void 0).sax={}:v)}).call(this,t("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(t,w,v){function l(){_.call(this)}w.exports=l;var _=t("events").EventEmitter;t("inherits")(l,_),l.Readable=t("readable-stream/readable.js"),l.Writable=t("readable-stream/writable.js"),l.Duplex=t("readable-stream/duplex.js"),l.Transform=t("readable-stream/transform.js"),l.PassThrough=t("readable-stream/passthrough.js"),l.Stream=l,l.prototype.pipe=function(r,u){function o(A){r.writable&&r.write(A)===!1&&m.pause&&m.pause()}function e(){m.readable&&m.resume&&m.resume()}function n(){f||(f=!0,r.end())}function i(){f||(f=!0,typeof r.destroy=="function"&&r.destroy())}function s(A){if(d(),_.listenerCount(this,"error")===0)throw A}function d(){m.removeListener("data",o),r.removeListener("drain",e),m.removeListener("end",n),m.removeListener("close",i),m.removeListener("error",s),r.removeListener("error",s),m.removeListener("end",d),m.removeListener("close",d),r.removeListener("close",d)}var m=this;m.on("data",o),r.on("drain",e),r._isStdio||u&&u.end===!1||(m.on("end",n),m.on("close",i));var f=!1;return m.on("error",s),r.on("error",s),m.on("end",d),m.on("close",d),r.on("close",d),r.emit("pipe",m),r}},{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(t,w,v){(function(l){var _=t("./lib/request"),r=t("./lib/response"),u=t("xtend"),o=t("builtin-status-codes"),e=t("url"),n=v;n.request=function(i,s){i=typeof i=="string"?e.parse(i):u(i);var d=l.location.protocol.search(/^https?:$/)===-1?"http:":"",m=i.protocol||d,f=i.hostname||i.host,A=i.port,b=i.path||"/";f&&f.indexOf(":")!==-1&&(f="["+f+"]"),i.url=(f?m+"//"+f:"")+(A?":"+A:"")+b,i.method=(i.method||"GET").toUpperCase(),i.headers=i.headers||{};var p=new _(i);return s&&p.on("response",s),p},n.get=function(i,s){var d=n.request(i,s);return d.end(),d},n.ClientRequest=_,n.IncomingMessage=r.IncomingMessage,n.Agent=function(){},n.Agent.defaultMaxSockets=4,n.globalAgent=new n.Agent,n.STATUS_CODES=o,n.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,typeof Xe!="undefined"?Xe:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./lib/request":198,"./lib/response":199,"builtin-status-codes":39,url:203,xtend:236}],197:[function(t,w,v){(function(l){"use strict";function _(){if(o!==void 0)return o;if(l.XMLHttpRequest){o=new l.XMLHttpRequest;try{o.open("GET",l.XDomainRequest?"/":"https://example.com")}catch(i){o=null}}else o=null;return o}function r(i){var s=_();if(!s)return!1;try{return s.responseType=i,s.responseType===i}catch(d){}return!1}function u(i){return typeof i=="function"}v.fetch=u(l.fetch)&&u(l.ReadableStream),v.writableStream=u(l.WritableStream),v.abortController=u(l.AbortController),v.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),v.blobConstructor=!0}catch(i){}var o,e=l.ArrayBuffer!==void 0,n=e&&u(l.ArrayBuffer.prototype.slice);v.arraybuffer=v.fetch||e&&r("arraybuffer"),v.msstream=!v.fetch&&n&&r("ms-stream"),v.mozchunkedarraybuffer=!v.fetch&&e&&r("moz-chunked-arraybuffer"),v.overrideMimeType=v.fetch||!!_()&&u(_().overrideMimeType),v.vbArray=u(l.VBArray),o=null}).call(this,typeof Xe!="undefined"?Xe:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],198:[function(t,w,v){(function(l,_,r){"use strict";function u(D,h){return i.fetch&&h?"fetch":i.mozchunkedarraybuffer?"moz-chunked-arraybuffer":i.msstream?"ms-stream":i.arraybuffer&&D?"arraybuffer":i.vbArray&&D?"text:vbarray":"text"}function o(D){try{var h=D.status;return h!==null&&h!==0}catch(E){return!1}}var e=t("babel-runtime/core-js/object/keys"),n=function(D){return D&&D.__esModule?D:{default:D}}(e),i=t("./capability"),s=t("inherits"),d=t("./response"),m=t("readable-stream"),f=t("to-arraybuffer"),A=d.IncomingMessage,b=d.readyStates,p=w.exports=function(D){var h=this;m.Writable.call(h),h._opts=D,h._body=[],h._headers={},D.auth&&h.setHeader("Authorization","Basic "+new r(D.auth).toString("base64")),(0,n.default)(D.headers).forEach(function(C){h.setHeader(C,D.headers[C])});var E,O=!0;if(D.mode==="disable-fetch"||"requestTimeout"in D&&!i.abortController)O=!1,E=!0;else if(D.mode==="prefer-streaming")E=!1;else if(D.mode==="allow-wrong-content-type")E=!i.overrideMimeType;else{if(D.mode&&D.mode!=="default"&&D.mode!=="prefer-fast")throw new Error("Invalid value for opts.mode");E=!0}h._mode=u(E,O),h._fetchTimer=null,h.on("finish",function(){h._onFinish()})};s(p,m.Writable),p.prototype.setHeader=function(D,h){var E=this,O=D.toLowerCase();S.indexOf(O)===-1&&(E._headers[O]={name:D,value:h})},p.prototype.getHeader=function(D){var h=this._headers[D.toLowerCase()];return h?h.value:null},p.prototype.removeHeader=function(D){delete this._headers[D.toLowerCase()]},p.prototype._onFinish=function(){var D=this;if(!D._destroyed){var h=D._opts,E=D._headers,O=null;h.method!=="GET"&&h.method!=="HEAD"&&(O=i.arraybuffer?f(r.concat(D._body)):i.blobConstructor?new _.Blob(D._body.map(function(L){return f(L)}),{type:(E["content-type"]||{}).value||""}):r.concat(D._body).toString());var C=[];if((0,n.default)(E).forEach(function(L){var j=E[L].name,N=E[L].value;Array.isArray(N)?N.forEach(function(G){C.push([j,G])}):C.push([j,N])}),D._mode==="fetch"){var g=null;if(i.abortController){var M=new AbortController;g=M.signal,D._fetchAbortController=M,"requestTimeout"in h&&h.requestTimeout!==0&&(D._fetchTimer=_.setTimeout(function(){D.emit("requestTimeout"),D._fetchAbortController&&D._fetchAbortController.abort()},h.requestTimeout))}_.fetch(D._opts.url,{method:D._opts.method,headers:C,body:O||void 0,mode:"cors",credentials:h.withCredentials?"include":"same-origin",signal:g}).then(function(L){D._fetchResponse=L,D._connect()},function(L){_.clearTimeout(D._fetchTimer),D._destroyed||D.emit("error",L)})}else{var T=D._xhr=new _.XMLHttpRequest;try{T.open(D._opts.method,D._opts.url,!0)}catch(L){return void l.nextTick(function(){D.emit("error",L)})}"responseType"in T&&(T.responseType=D._mode.split(":")[0]),"withCredentials"in T&&(T.withCredentials=!!h.withCredentials),D._mode==="text"&&"overrideMimeType"in T&&T.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in h&&(T.timeout=h.requestTimeout,T.ontimeout=function(){D.emit("requestTimeout")}),C.forEach(function(L){T.setRequestHeader(L[0],L[1])}),D._response=null,T.onreadystatechange=function(){switch(T.readyState){case b.LOADING:case b.DONE:D._onXHRProgress()}},D._mode==="moz-chunked-arraybuffer"&&(T.onprogress=function(){D._onXHRProgress()}),T.onerror=function(){D._destroyed||D.emit("error",new Error("XHR error"))};try{T.send(O)}catch(L){return void l.nextTick(function(){D.emit("error",L)})}}}},p.prototype._onXHRProgress=function(){var D=this;o(D._xhr)&&!D._destroyed&&(D._response||D._connect(),D._response._onXHRProgress())},p.prototype._connect=function(){var D=this;D._destroyed||(D._response=new A(D._xhr,D._fetchResponse,D._mode,D._fetchTimer),D._response.on("error",function(h){D.emit("error",h)}),D.emit("response",D._response))},p.prototype._write=function(D,h,E){this._body.push(D),E()},p.prototype.abort=p.prototype.destroy=function(){var D=this;D._destroyed=!0,_.clearTimeout(D._fetchTimer),D._response&&(D._response._destroyed=!0),D._xhr?D._xhr.abort():D._fetchAbortController&&D._fetchAbortController.abort()},p.prototype.end=function(D,h,E){var O=this;typeof D=="function"&&(E=D,D=void 0),m.Writable.prototype.end.call(O,D,h,E)},p.prototype.flushHeaders=function(){},p.prototype.setTimeout=function(){},p.prototype.setNoDelay=function(){},p.prototype.setSocketKeepAlive=function(){};var S=["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,t("_process"),typeof Xe!="undefined"?Xe:typeof self!="undefined"?self:typeof window!="undefined"?window:{},t("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(t,w,v){(function(l,_,r){"use strict";var u=t("babel-runtime/core-js/promise"),o=function(m){return m&&m.__esModule?m:{default:m}}(u),e=t("./capability"),n=t("inherits"),i=t("readable-stream"),s=v.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},d=v.IncomingMessage=function(m,f,A,b){var p=this;if(i.Readable.call(p),p._mode=A,p.headers={},p.rawHeaders=[],p.trailers={},p.rawTrailers=[],p.on("end",function(){l.nextTick(function(){p.emit("close")})}),A==="fetch"){if(p._fetchResponse=f,p.url=f.url,p.statusCode=f.status,p.statusMessage=f.statusText,f.headers.forEach(function(O,C){p.headers[C.toLowerCase()]=O,p.rawHeaders.push(C,O)}),e.writableStream){var S=new WritableStream({write:function(C){return new o.default(function(g,M){p._destroyed?M():p.push(new r(C))?g():p._resumeFetch=g})},close:function(){_.clearTimeout(b),p._destroyed||p.push(null)},abort:function(C){p._destroyed||p.emit("error",C)}});try{return void f.body.pipeTo(S).catch(function(O){_.clearTimeout(b),p._destroyed||p.emit("error",O)})}catch(O){}}var D=f.body.getReader();!function O(){D.read().then(function(C){if(!p._destroyed){if(C.done)return _.clearTimeout(b),void p.push(null);p.push(new r(C.value)),O()}}).catch(function(C){_.clearTimeout(b),p._destroyed||p.emit("error",C)})}()}else if(p._xhr=m,p._pos=0,p.url=m.responseURL,p.statusCode=m.status,p.statusMessage=m.statusText,m.getAllResponseHeaders().split(/\r?\n/).forEach(function(O){var C=O.match(/^([^:]+):\s*(.*)/);if(C){var g=C[1].toLowerCase();g==="set-cookie"?(p.headers[g]===void 0&&(p.headers[g]=[]),p.headers[g].push(C[2])):p.headers[g]!==void 0?p.headers[g]+=", "+C[2]:p.headers[g]=C[2],p.rawHeaders.push(C[1],C[2])}}),p._charset="x-user-defined",!e.overrideMimeType){var h=p.rawHeaders["mime-type"];if(h){var E=h.match(/;\s*charset=([^;])(;|$)/);E&&(p._charset=E[1].toLowerCase())}p._charset||(p._charset="utf-8")}};n(d,i.Readable),d.prototype._read=function(){var m=this,f=m._resumeFetch;f&&(m._resumeFetch=null,f())},d.prototype._onXHRProgress=function(){var m=this,f=m._xhr,A=null;switch(m._mode){case"text:vbarray":if(f.readyState!==s.DONE)break;try{A=new _.VBArray(f.responseBody).toArray()}catch(h){}if(A!==null){m.push(new r(A));break}case"text":try{A=f.responseText}catch(h){m._mode="text:vbarray";break}if(A.length>m._pos){var b=A.substr(m._pos);if(m._charset==="x-user-defined"){for(var p=new r(b.length),S=0;S<b.length;S++)p[S]=255&b.charCodeAt(S);m.push(p)}else m.push(b,m._charset);m._pos=A.length}break;case"arraybuffer":if(f.readyState!==s.DONE||!f.response)break;A=f.response,m.push(new r(new Uint8Array(A)));break;case"moz-chunked-arraybuffer":if(A=f.response,f.readyState!==s.LOADING||!A)break;m.push(new r(new Uint8Array(A)));break;case"ms-stream":if(A=f.response,f.readyState!==s.LOADING)break;var D=new _.MSStreamReader;D.onprogress=function(){D.result.byteLength>m._pos&&(m.push(new r(new Uint8Array(D.result.slice(m._pos)))),m._pos=D.result.byteLength)},D.onload=function(){m.push(null)},D.readAsArrayBuffer(A)}m._xhr.readyState===s.DONE&&m._mode!=="ms-stream"&&m.push(null)}}).call(this,t("_process"),typeof Xe!="undefined"?Xe:typeof self!="undefined"?self:typeof window!="undefined"?window:{},t("buffer").Buffer)},{"./capability":197,_process:173,"babel-runtime/core-js/promise":24,buffer:38,inherits:162,"readable-stream":188}],200:[function(t,w,v){"use strict";function l(h){if(!h)return"utf8";for(var E;;)switch(h){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 h;default:if(E)return;h=(""+h).toLowerCase(),E=!0}}function _(h){var E=l(h);if(typeof E!="string"&&(S.isEncoding===D||!D(h)))throw new Error("Unknown encoding: "+h);return E||h}function r(h){this.encoding=_(h);var E;switch(this.encoding){case"utf16le":this.text=d,this.end=m,E=4;break;case"utf8":this.fillLast=n,E=4;break;case"base64":this.text=f,this.end=A,E=3;break;default:return this.write=b,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=S.allocUnsafe(E)}function u(h){return h<=127?0:h>>5==6?2:h>>4==14?3:h>>3==30?4:h>>6==2?-1:-2}function o(h,E,O){var C=E.length-1;if(C<O)return 0;var g=u(E[C]);return g>=0?(g>0&&(h.lastNeed=g-1),g):--C<O||g===-2?0:(g=u(E[C]))>=0?(g>0&&(h.lastNeed=g-2),g):--C<O||g===-2?0:(g=u(E[C]),g>=0?(g>0&&(g===2?g=0:h.lastNeed=g-3),g):0)}function e(h,E,O){if((192&E[0])!=128)return h.lastNeed=0,"\u951F\uFFFD";if(h.lastNeed>1&&E.length>1){if((192&E[1])!=128)return h.lastNeed=1,"\u951F\uFFFD";if(h.lastNeed>2&&E.length>2&&(192&E[2])!=128)return h.lastNeed=2,"\u951F\uFFFD"}}function n(h){var E=this.lastTotal-this.lastNeed,O=e(this,h,E);return O!==void 0?O:this.lastNeed<=h.length?(h.copy(this.lastChar,E,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(h.copy(this.lastChar,E,0,h.length),void(this.lastNeed-=h.length))}function i(h,E){var O=o(this,h,E);if(!this.lastNeed)return h.toString("utf8",E);this.lastTotal=O;var C=h.length-(O-this.lastNeed);return h.copy(this.lastChar,0,C),h.toString("utf8",E,C)}function s(h){var E=h&&h.length?this.write(h):"";return this.lastNeed?E+"\u951F\uFFFD":E}function d(h,E){if((h.length-E)%2==0){var O=h.toString("utf16le",E);if(O){var C=O.charCodeAt(O.length-1);if(C>=55296&&C<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=h[h.length-2],this.lastChar[1]=h[h.length-1],O.slice(0,-1)}return O}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=h[h.length-1],h.toString("utf16le",E,h.length-1)}function m(h){var E=h&&h.length?this.write(h):"";if(this.lastNeed){var O=this.lastTotal-this.lastNeed;return E+this.lastChar.toString("utf16le",0,O)}return E}function f(h,E){var O=(h.length-E)%3;return O===0?h.toString("base64",E):(this.lastNeed=3-O,this.lastTotal=3,O===1?this.lastChar[0]=h[h.length-1]:(this.lastChar[0]=h[h.length-2],this.lastChar[1]=h[h.length-1]),h.toString("base64",E,h.length-O))}function A(h){var E=h&&h.length?this.write(h):"";return this.lastNeed?E+this.lastChar.toString("base64",0,3-this.lastNeed):E}function b(h){return h.toString(this.encoding)}function p(h){return h&&h.length?this.write(h):""}var S=t("safe-buffer").Buffer,D=S.isEncoding||function(h){switch((h=""+h)&&h.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=r,r.prototype.write=function(h){if(h.length===0)return"";var E,O;if(this.lastNeed){if((E=this.fillLast(h))===void 0)return"";O=this.lastNeed,this.lastNeed=0}else O=0;return O<h.length?E?E+this.text(h,O):this.text(h,O):E||""},r.prototype.end=s,r.prototype.text=i,r.prototype.fillLast=function(h){if(this.lastNeed<=h.length)return h.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);h.copy(this.lastChar,this.lastTotal-this.lastNeed,0,h.length),this.lastNeed-=h.length}},{"safe-buffer":193}],201:[function(t,w,v){(function(l,_){function r(s,d){this._id=s,this._clearFn=d}var u=t("process/browser.js").nextTick,o=Function.prototype.apply,e=Array.prototype.slice,n={},i=0;v.setTimeout=function(){return new r(o.call(setTimeout,window,arguments),clearTimeout)},v.setInterval=function(){return new r(o.call(setInterval,window,arguments),clearInterval)},v.clearTimeout=v.clearInterval=function(s){s.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(window,this._id)},v.enroll=function(s,d){clearTimeout(s._idleTimeoutId),s._idleTimeout=d},v.unenroll=function(s){clearTimeout(s._idleTimeoutId),s._idleTimeout=-1},v._unrefActive=v.active=function(s){clearTimeout(s._idleTimeoutId);var d=s._idleTimeout;d>=0&&(s._idleTimeoutId=setTimeout(function(){s._onTimeout&&s._onTimeout()},d))},v.setImmediate=typeof l=="function"?l:function(s){var d=i++,m=!(arguments.length<2)&&e.call(arguments,1);return n[d]=!0,u(function(){n[d]&&(m?s.apply(null,m):s.call(null),v.clearImmediate(d))}),d},v.clearImmediate=typeof _=="function"?_:function(s){delete n[s]}}).call(this,t("timers").setImmediate,t("timers").clearImmediate)},{"process/browser.js":173,timers:201}],202:[function(t,w,v){var l=t("buffer").Buffer;w.exports=function(_){if(_ instanceof Uint8Array){if(_.byteOffset===0&&_.byteLength===_.buffer.byteLength)return _.buffer;if(typeof _.buffer.slice=="function")return _.buffer.slice(_.byteOffset,_.byteOffset+_.byteLength)}if(l.isBuffer(_)){for(var r=new Uint8Array(_.length),u=_.length,o=0;o<u;o++)r[o]=_[o];return r.buffer}throw new Error("Argument must be a Buffer")}},{buffer:38}],203:[function(t,w,v){"use strict";function l(){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 _(g,M,T){if(g&&n.isObject(g)&&g instanceof l)return g;var L=new l;return L.parse(g,M,T),L}function r(g){return n.isString(g)&&(g=_(g)),g instanceof l?g.format():l.prototype.format.call(g)}function u(g,M){return _(g,!1,!0).resolve(M)}function o(g,M){return g?_(g,!1,!0).resolveObject(M):M}var e=t("punycode"),n=t("./util");v.parse=_,v.resolve=u,v.resolveObject=o,v.format=r,v.Url=l;var i=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,d=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,m=["<",">",'"',"`"," ","\r",`
|
|
|
`," "],f=["{","}","|","\\","^","`"].concat(m),A=["'"].concat(f),b=["%","/","?",";","#"].concat(A),p=["/","?","#"],S=/^[+a-z0-9A-Z_-]{0,63}$/,D=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,h={javascript:!0,"javascript:":!0},E={javascript:!0,"javascript:":!0},O={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},C=t("querystring");l.prototype.parse=function(g,M,T){if(!n.isString(g))throw new TypeError("Parameter 'url' must be a string, not "+typeof g);var L=g.indexOf("?"),j=L!==-1&&L<g.indexOf("#")?"?":"#",N=g.split(j),G=/\\/g;N[0]=N[0].replace(G,"/"),g=N.join(j);var $=g;if($=$.trim(),!T&&g.split("#").length===1){var H=d.exec($);if(H)return this.path=$,this.href=$,this.pathname=H[1],H[2]?(this.search=H[2],this.query=M?C.parse(this.search.substr(1)):this.search.substr(1)):M&&(this.search="",this.query={}),this}var F=i.exec($);if(F){F=F[0];var te=F.toLowerCase();this.protocol=te,$=$.substr(F.length)}if(T||F||$.match(/^\/\/[^@\/]+@[^@\/]+/)){var ae=$.substr(0,2)==="//";!ae||F&&E[F]||($=$.substr(2),this.slashes=!0)}if(!E[F]&&(ae||F&&!O[F])){for(var K=-1,k=0;k<p.length;k++){var I=$.indexOf(p[k]);I!==-1&&(K===-1||I<K)&&(K=I)}var z,X;X=K===-1?$.lastIndexOf("@"):$.lastIndexOf("@",K),X!==-1&&(z=$.slice(0,X),$=$.slice(X+1),this.auth=decodeURIComponent(z)),K=-1;for(var k=0;k<b.length;k++){var I=$.indexOf(b[k]);I!==-1&&(K===-1||I<K)&&(K=I)}K===-1&&(K=$.length),this.host=$.slice(0,K),$=$.slice(K),this.parseHost(),this.hostname=this.hostname||"";var Z=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!Z)for(var J=this.hostname.split(/\./),k=0,re=J.length;k<re;k++){var ee=J[k];if(ee&&!ee.match(S)){for(var se="",ue=0,q=ee.length;ue<q;ue++)ee.charCodeAt(ue)>127?se+="x":se+=ee[ue];if(!se.match(S)){var Y=J.slice(0,k),ie=J.slice(k+1),B=ee.match(D);B&&(Y.push(B[1]),ie.unshift(B[2])),ie.length&&($="/"+ie.join(".")+$),this.hostname=Y.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),Z||(this.hostname=e.toASCII(this.hostname));var W=this.port?":"+this.port:"",oe=this.hostname||"";this.host=oe+W,this.href+=this.host,Z&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),$[0]!=="/"&&($="/"+$))}if(!h[te])for(var k=0,re=A.length;k<re;k++){var ne=A[k];if($.indexOf(ne)!==-1){var me=encodeURIComponent(ne);me===ne&&(me=escape(ne)),$=$.split(ne).join(me)}}var P=$.indexOf("#");P!==-1&&(this.hash=$.substr(P),$=$.slice(0,P));var a=$.indexOf("?");if(a!==-1?(this.search=$.substr(a),this.query=$.substr(a+1),M&&(this.query=C.parse(this.query)),$=$.slice(0,a)):M&&(this.search="",this.query={}),$&&(this.pathname=$),O[te]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var W=this.pathname||"",c=this.search||"";this.path=W+c}return this.href=this.format(),this},l.prototype.format=function(){var g=this.auth||"";g&&(g=encodeURIComponent(g),g=g.replace(/%3A/i,":"),g+="@");var M=this.protocol||"",T=this.pathname||"",L=this.hash||"",j=!1,N="";this.host?j=g+this.host:this.hostname&&(j=g+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(j+=":"+this.port)),this.query&&n.isObject(this.query)&&Object.keys(this.query).length&&(N=C.stringify(this.query));var G=this.search||N&&"?"+N||"";return M&&M.substr(-1)!==":"&&(M+=":"),this.slashes||(!M||O[M])&&j!==!1?(j="//"+(j||""),T&&T.charAt(0)!=="/"&&(T="/"+T)):j||(j=""),L&&L.charAt(0)!=="#"&&(L="#"+L),G&&G.charAt(0)!=="?"&&(G="?"+G),T=T.replace(/[?#]/g,function($){return encodeURIComponent($)}),G=G.replace("#","%23"),M+j+T+G+L},l.prototype.resolve=function(g){return this.resolveObject(_(g,!1,!0)).format()},l.prototype.resolveObject=function(g){if(n.isString(g)){var M=new l;M.parse(g,!1,!0),g=M}for(var T=new l,L=Object.keys(this),j=0;j<L.length;j++){var N=L[j];T[N]=this[N]}if(T.hash=g.hash,g.href==="")return T.href=T.format(),T;if(g.slashes&&!g.protocol){for(var G=Object.keys(g),$=0;$<G.length;$++){var H=G[$];H!=="protocol"&&(T[H]=g[H])}return O[T.protocol]&&T.hostname&&!T.pathname&&(T.path=T.pathname="/"),T.href=T.format(),T}if(g.protocol&&g.protocol!==T.protocol){if(!O[g.protocol]){for(var F=Object.keys(g),te=0;te<F.length;te++){var ae=F[te];T[ae]=g[ae]}return T.href=T.format(),T}if(T.protocol=g.protocol,g.host||E[g.protocol])T.pathname=g.pathname;else{for(var re=(g.pathname||"").split("/");re.length&&!(g.host=re.shift()););g.host||(g.host=""),g.hostname||(g.hostname=""),re[0]!==""&&re.unshift(""),re.length<2&&re.unshift(""),T.pathname=re.join("/")}if(T.search=g.search,T.query=g.query,T.host=g.host||"",T.auth=g.auth,T.hostname=g.hostname||g.host,T.port=g.port,T.pathname||T.search){var K=T.pathname||"",k=T.search||"";T.path=K+k}return T.slashes=T.slashes||g.slashes,T.href=T.format(),T}var I=T.pathname&&T.pathname.charAt(0)==="/",z=g.host||g.pathname&&g.pathname.charAt(0)==="/",X=z||I||T.host&&g.pathname,Z=X,J=T.pathname&&T.pathname.split("/")||[],re=g.pathname&&g.pathname.split("/")||[],ee=T.protocol&&!O[T.protocol];if(ee&&(T.hostname="",T.port=null,T.host&&(J[0]===""?J[0]=T.host:J.unshift(T.host)),T.host="",g.protocol&&(g.hostname=null,g.port=null,g.host&&(re[0]===""?re[0]=g.host:re.unshift(g.host)),g.host=null),X=X&&(re[0]===""||J[0]==="")),z)T.host=g.host||g.host===""?g.host:T.host,T.hostname=g.hostname||g.hostname===""?g.hostname:T.hostname,T.search=g.search,T.query=g.query,J=re;else if(re.length)J||(J=[]),J.pop(),J=J.concat(re),T.search=g.search,T.query=g.query;else if(!n.isNullOrUndefined(g.search)){if(ee){T.hostname=T.host=J.shift();var se=!!(T.host&&T.host.indexOf("@")>0)&&T.host.split("@");se&&(T.auth=se.shift(),T.host=T.hostname=se.shift())}return T.search=g.search,T.query=g.query,n.isNull(T.pathname)&&n.isNull(T.search)||(T.path=(T.pathname?T.pathname:"")+(T.search?T.search:"")),T.href=T.format(),T}if(!J.length)return T.pathname=null,T.search?T.path="/"+T.search:T.path=null,T.href=T.format(),T;for(var ue=J.slice(-1)[0],q=(T.host||g.host||J.length>1)&&(ue==="."||ue==="..")||ue==="",Y=0,ie=J.length;ie>=0;ie--)ue=J[ie],ue==="."?J.splice(ie,1):ue===".."?(J.splice(ie,1),Y++):Y&&(J.splice(ie,1),Y--);if(!X&&!Z)for(;Y--;Y)J.unshift("..");!X||J[0]===""||J[0]&&J[0].charAt(0)==="/"||J.unshift(""),q&&J.join("/").substr(-1)!=="/"&&J.push("");var B=J[0]===""||J[0]&&J[0].charAt(0)==="/";if(ee){T.hostname=T.host=B?"":J.length?J.shift():"";var se=!!(T.host&&T.host.indexOf("@")>0)&&T.host.split("@");se&&(T.auth=se.shift(),T.host=T.hostname=se.shift())}return X=X||T.host&&J.length,X&&!B&&J.unshift(""),J.length?T.pathname=J.join("/"):(T.pathname=null,T.path=null),n.isNull(T.pathname)&&n.isNull(T.search)||(T.path=(T.pathname?T.pathname:"")+(T.search?T.search:"")),T.auth=g.auth||T.auth,T.slashes=T.slashes||g.slashes,T.href=T.format(),T},l.prototype.parseHost=function(){var g=this.host,M=s.exec(g);M&&(M=M[0],M!==":"&&(this.port=M.substr(1)),g=g.substr(0,g.length-M.length)),g&&(this.hostname=g)}},{"./util":204,punycode:174,querystring:177}],204:[function(t,w,v){"use strict";w.exports={isString:function(_){return typeof _=="string"},isObject:function(_){return typeof _=="object"&&_!==null},isNull:function(_){return _===null},isNullOrUndefined:function(_){return _==null}}},{}],205:[function(t,w,v){(function(l){function _(u,o){function e(){if(!n){if(r("throwDeprecation"))throw new Error(o);r("traceDeprecation")?console.trace(o):console.warn(o),n=!0}return u.apply(this,arguments)}if(r("noDeprecation"))return u;var n=!1;return e}function r(u){try{if(!l.localStorage)return!1}catch(e){return!1}var o=l.localStorage[u];return o!=null&&String(o).toLowerCase()==="true"}w.exports=_}).call(this,typeof Xe!="undefined"?Xe:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],206:[function(t,w,v){w.exports=function(l){return l&&typeof l=="object"&&typeof l.copy=="function"&&typeof l.fill=="function"&&typeof l.readUInt8=="function"}},{}],207:[function(t,w,v){(function(l,_){function r(k,I){var z={seen:[],stylize:o};return arguments.length>=3&&(z.depth=arguments[2]),arguments.length>=4&&(z.colors=arguments[3]),b(I)?z.showHidden=I:I&&v._extend(z,I),O(z.showHidden)&&(z.showHidden=!1),O(z.depth)&&(z.depth=2),O(z.colors)&&(z.colors=!1),O(z.customInspect)&&(z.customInspect=!0),z.colors&&(z.stylize=u),n(z,k,z.depth)}function u(k,I){var z=r.styles[I];return z?"["+r.colors[z][0]+"m"+k+"["+r.colors[z][1]+"m":k}function o(k,I){return k}function e(k){var I={};return k.forEach(function(z,X){I[z]=!0}),I}function n(k,I,z){if(k.customInspect&&I&&L(I.inspect)&&I.inspect!==v.inspect&&(!I.constructor||I.constructor.prototype!==I)){var X=I.inspect(z,k);return h(X)||(X=n(k,X,z)),X}var Z=i(k,I);if(Z)return Z;var J=Object.keys(I),re=e(J);if(k.showHidden&&(J=Object.getOwnPropertyNames(I)),T(I)&&(J.indexOf("message")>=0||J.indexOf("description")>=0))return s(I);if(J.length===0){if(L(I)){var ee=I.name?": "+I.name:"";return k.stylize("[Function"+ee+"]","special")}if(C(I))return k.stylize(RegExp.prototype.toString.call(I),"regexp");if(M(I))return k.stylize(Date.prototype.toString.call(I),"date");if(T(I))return s(I)}var se="",ue=!1,q=["{","}"];if((A(I)&&(ue=!0,q=["[","]"]),L(I))&&(se=" [Function"+(I.name?": "+I.name:"")+"]"),C(I)&&(se=" "+RegExp.prototype.toString.call(I)),M(I)&&(se=" "+Date.prototype.toUTCString.call(I)),T(I)&&(se=" "+s(I)),J.length===0&&(!ue||I.length==0))return q[0]+se+q[1];if(z<0)return C(I)?k.stylize(RegExp.prototype.toString.call(I),"regexp"):k.stylize("[Object]","special");k.seen.push(I);var Y;return Y=ue?d(k,I,z,re,J):J.map(function(ie){return m(k,I,z,re,ie,ue)}),k.seen.pop(),f(Y,se,q)}function i(k,I){if(O(I))return k.stylize("undefined","undefined");if(h(I)){var z="'"+JSON.stringify(I).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return k.stylize(z,"string")}return D(I)?k.stylize(""+I,"number"):b(I)?k.stylize(""+I,"boolean"):p(I)?k.stylize("null","null"):void 0}function s(k){return"["+Error.prototype.toString.call(k)+"]"}function d(k,I,z,X,Z){for(var J=[],re=0,ee=I.length;re<ee;++re)H(I,String(re))?J.push(m(k,I,z,X,String(re),!0)):J.push("");return Z.forEach(function(se){se.match(/^\d+$/)||J.push(m(k,I,z,X,se,!0))}),J}function m(k,I,z,X,Z,J){var re,ee,se;if(se=Object.getOwnPropertyDescriptor(I,Z)||{value:I[Z]},se.get?ee=se.set?k.stylize("[Getter/Setter]","special"):k.stylize("[Getter]","special"):se.set&&(ee=k.stylize("[Setter]","special")),H(X,Z)||(re="["+Z+"]"),ee||(k.seen.indexOf(se.value)<0?(ee=p(z)?n(k,se.value,null):n(k,se.value,z-1),ee.indexOf(`
|
|
|
`)>-1&&(ee=J?ee.split(`
|
|
|
`).map(function(ue){return" "+ue}).join(`
|
|
|
`).substr(2):`
|
|
|
`+ee.split(`
|
|
|
`).map(function(ue){return" "+ue}).join(`
|
|
|
`))):ee=k.stylize("[Circular]","special")),O(re)){if(J&&Z.match(/^\d+$/))return ee;re=JSON.stringify(""+Z),re.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(re=re.substr(1,re.length-2),re=k.stylize(re,"name")):(re=re.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),re=k.stylize(re,"string"))}return re+": "+ee}function f(k,I,z){var X=0;return k.reduce(function(Z,J){return X++,J.indexOf(`
|
|
|
`)>=0&&X++,Z+J.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?z[0]+(I===""?"":I+`
|
|
|
`)+" "+k.join(`,
|
|
|
`)+" "+z[1]:z[0]+I+" "+k.join(", ")+" "+z[1]}function A(k){return Array.isArray(k)}function b(k){return typeof k=="boolean"}function p(k){return k===null}function S(k){return k==null}function D(k){return typeof k=="number"}function h(k){return typeof k=="string"}function E(k){return typeof k=="symbol"}function O(k){return k===void 0}function C(k){return g(k)&&N(k)==="[object RegExp]"}function g(k){return typeof k=="object"&&k!==null}function M(k){return g(k)&&N(k)==="[object Date]"}function T(k){return g(k)&&(N(k)==="[object Error]"||k instanceof Error)}function L(k){return typeof k=="function"}function j(k){return k===null||typeof k=="boolean"||typeof k=="number"||typeof k=="string"||typeof k=="symbol"||k===void 0}function N(k){return Object.prototype.toString.call(k)}function G(k){return k<10?"0"+k.toString(10):k.toString(10)}function $(){var k=new Date,I=[G(k.getHours()),G(k.getMinutes()),G(k.getSeconds())].join(":");return[k.getDate(),K[k.getMonth()],I].join(" ")}function H(k,I){return Object.prototype.hasOwnProperty.call(k,I)}var F=/%[sdj%]/g;v.format=function(k){if(!h(k)){for(var I=[],z=0;z<arguments.length;z++)I.push(r(arguments[z]));return I.join(" ")}for(var z=1,X=arguments,Z=X.length,J=String(k).replace(F,function(se){if(se==="%%")return"%";if(z>=Z)return se;switch(se){case"%s":return String(X[z++]);case"%d":return Number(X[z++]);case"%j":try{return JSON.stringify(X[z++])}catch(ue){return"[Circular]"}default:return se}}),re=X[z];z<Z;re=X[++z])p(re)||!g(re)?J+=" "+re:J+=" "+r(re);return J},v.deprecate=function(k,I){function z(){if(!X){if(l.throwDeprecation)throw new Error(I);l.traceDeprecation?console.trace(I):console.error(I),X=!0}return k.apply(this,arguments)}if(O(_.process))return function(){return v.deprecate(k,I).apply(this,arguments)};if(l.noDeprecation===!0)return k;var X=!1;return z};var te,ae={};v.debuglog=function(k){if(O(te)&&(te=l.env.NODE_DEBUG||""),k=k.toUpperCase(),!ae[k])if(new RegExp("\\b"+k+"\\b","i").test(te)){var I=l.pid;ae[k]=function(){var z=v.format.apply(v,arguments);console.error("%s %d: %s",k,I,z)}}else ae[k]=function(){};return ae[k]},v.inspect=r,r.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]},r.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},v.isArray=A,v.isBoolean=b,v.isNull=p,v.isNullOrUndefined=S,v.isNumber=D,v.isString=h,v.isSymbol=E,v.isUndefined=O,v.isRegExp=C,v.isObject=g,v.isDate=M,v.isError=T,v.isFunction=L,v.isPrimitive=j,v.isBuffer=t("./support/isBuffer");var K=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];v.log=function(){console.log("%s - %s",$(),v.format.apply(v,arguments))},v.inherits=t("inherits"),v._extend=function(k,I){if(!I||!g(I))return k;for(var z=Object.keys(I),X=z.length;X--;)k[z[X]]=I[z[X]];return k}}).call(this,t("_process"),typeof Xe!="undefined"?Xe:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":206,_process:173,inherits:162}],208:[function(t,w,v){"use strict";(function(){v.stripBOM=function(l){return l[0]==="\uFEFF"?l.substring(1):l}}).call(void 0)},{}],209:[function(t,w,v){"use strict";function l(e){return e&&e.__esModule?e:{default:e}}var _=t("babel-runtime/helpers/typeof"),r=l(_),u=t("babel-runtime/core-js/object/keys"),o=l(u);(function(){var e,n,i,s,d,m={}.hasOwnProperty;e=t("xmlbuilder"),n=t("./defaults").defaults,s=function(A){return typeof A=="string"&&(A.indexOf("&")>=0||A.indexOf(">")>=0||A.indexOf("<")>=0)},d=function(A){return"<![CDATA["+i(A)+"]]>"},i=function(A){return A.replace("]]>","]]]]><![CDATA[>")},v.Builder=function(){function f(A){var b,p,S;this.options={},p=n[.2];for(b in p)m.call(p,b)&&(S=p[b],this.options[b]=S);for(b in A)m.call(A,b)&&(S=A[b],this.options[b]=S)}return f.prototype.buildObject=function(A){var b,p,S,D,h;return b=this.options.attrkey,p=this.options.charkey,(0,o.default)(A).length===1&&this.options.rootName===n[.2].rootName?(h=(0,o.default)(A)[0],A=A[h]):h=this.options.rootName,S=function(E){return function(O,C){var g,M,T,L,j,N;if((C===void 0?"undefined":(0,r.default)(C))!=="object")E.options.cdata&&s(C)?O.raw(d(C)):O.txt(C);else if(Array.isArray(C)){for(L in C)if(m.call(C,L)){M=C[L];for(j in M)T=M[j],O=S(O.ele(j),T).up()}}else for(j in C)if(m.call(C,j))if(M=C[j],j===b){if((M===void 0?"undefined":(0,r.default)(M))==="object")for(g in M)N=M[g],O=O.att(g,N)}else if(j===p)O=E.options.cdata&&s(M)?O.raw(d(M)):O.txt(M);else if(Array.isArray(M))for(L in M)m.call(M,L)&&(T=M[L],O=typeof T=="string"?E.options.cdata&&s(T)?O.ele(j).raw(d(T)).up():O.ele(j,T).up():S(O.ele(j),T).up());else(M===void 0?"undefined":(0,r.default)(M))==="object"?O=S(O.ele(j),M).up():typeof M=="string"&&E.options.cdata&&s(M)?O=O.ele(j).raw(d(M)).up():(M==null&&(M=""),O=O.ele(j,M.toString()).up());return O}}(this),D=e.create(h,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),S(D,A).end(this.options.renderOpts)},f}()}).call(void 0)},{"./defaults":210,"babel-runtime/core-js/object/keys":23,"babel-runtime/helpers/typeof":32,xmlbuilder:235}],210:[function(t,w,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(t,w,v){"use strict";function l(i){return i&&i.__esModule?i:{default:i}}var _=t("babel-runtime/core-js/object/get-own-property-names"),r=l(_),u=t("babel-runtime/core-js/object/keys"),o=l(u),e=t("babel-runtime/helpers/typeof"),n=l(e);(function(){var i,s,d,m,f,A,b,p,S=function(O,C){return function(){return O.apply(C,arguments)}},D=function(O,C){function g(){this.constructor=O}for(var M in C)h.call(C,M)&&(O[M]=C[M]);return g.prototype=C.prototype,O.prototype=new g,O.__super__=C.prototype,O},h={}.hasOwnProperty;b=t("sax"),d=t("events"),i=t("./bom"),A=t("./processors"),p=t("timers").setImmediate,s=t("./defaults").defaults,m=function(O){return(O===void 0?"undefined":(0,n.default)(O))==="object"&&O!=null&&(0,o.default)(O).length===0},f=function(O,C,g){var M,T,L;for(M=0,T=O.length;M<T;M++)L=O[M],C=L(C,g);return C},v.Parser=function(E){function O(C){this.parseString=S(this.parseString,this),this.reset=S(this.reset,this),this.assignOrPush=S(this.assignOrPush,this),this.processAsync=S(this.processAsync,this);var g,M,T;if(!(this instanceof v.Parser))return new v.Parser(C);this.options={},M=s[.2];for(g in M)h.call(M,g)&&(T=M[g],this.options[g]=T);for(g in C)h.call(C,g)&&(T=C[g],this.options[g]=T);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(A.normalize)),this.reset()}return D(O,E),O.prototype.processAsync=function(){var C,g;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),p(this.processAsync))}catch(M){if(g=M,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(g)}},O.prototype.assignOrPush=function(C,g,M){return g in C?(C[g]instanceof Array||(C[g]=[C[g]]),C[g].push(M)):this.options.explicitArray?C[g]=[M]:C[g]=M},O.prototype.reset=function(){var C,g,M,T;return this.removeAllListeners(),this.saxParser=b.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(L){return function(j){if(L.saxParser.resume(),!L.saxParser.errThrown)return L.saxParser.errThrown=!0,L.emit("error",j)}}(this),this.saxParser.onend=function(L){return function(){if(!L.saxParser.ended)return L.saxParser.ended=!0,L.emit("end",L.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,T=[],C=this.options.attrkey,g=this.options.charkey,this.saxParser.onopentag=function(L){return function(j){var N,G,$,H,F;if($={},$[g]="",!L.options.ignoreAttrs){F=j.attributes;for(N in F)h.call(F,N)&&(C in $||L.options.mergeAttrs||($[C]={}),G=L.options.attrValueProcessors?f(L.options.attrValueProcessors,j.attributes[N],N):j.attributes[N],H=L.options.attrNameProcessors?f(L.options.attrNameProcessors,N):N,L.options.mergeAttrs?L.assignOrPush($,H,G):$[C][H]=G)}return $["#name"]=L.options.tagNameProcessors?f(L.options.tagNameProcessors,j.name):j.name,L.options.xmlns&&($[L.options.xmlnskey]={uri:j.uri,local:j.local}),T.push($)}}(this),this.saxParser.onclosetag=function(L){return function(){var j,N,G,$,H,F,te,ae,K,k;if(F=T.pop(),H=F["#name"],L.options.explicitChildren&&L.options.preserveChildrenOrder||delete F["#name"],F.cdata===!0&&(j=F.cdata,delete F.cdata),K=T[T.length-1],F[g].match(/^\s*$/)&&!j?(N=F[g],delete F[g]):(L.options.trim&&(F[g]=F[g].trim()),L.options.normalize&&(F[g]=F[g].replace(/\s{2,}/g," ").trim()),F[g]=L.options.valueProcessors?f(L.options.valueProcessors,F[g],H):F[g],(0,o.default)(F).length===1&&g in F&&!L.EXPLICIT_CHARKEY&&(F=F[g])),m(F)&&(F=L.options.emptyTag!==""?L.options.emptyTag:N),L.options.validator!=null&&(k="/"+function(){var I,z,X;for(X=[],I=0,z=T.length;I<z;I++)$=T[I],X.push($["#name"]);return X}().concat(H).join("/"),function(){var I;try{F=L.options.validator(k,K&&K[H],F)}catch(z){return I=z,L.emit("error",I)}}()),L.options.explicitChildren&&!L.options.mergeAttrs&&(F===void 0?"undefined":(0,n.default)(F))==="object")if(L.options.preserveChildrenOrder){if(K){K[L.options.childkey]=K[L.options.childkey]||[],te={};for(G in F)h.call(F,G)&&(te[G]=F[G]);K[L.options.childkey].push(te),delete F["#name"],(0,o.default)(F).length===1&&g in F&&!L.EXPLICIT_CHARKEY&&(F=F[g])}}else $={},L.options.attrkey in F&&($[L.options.attrkey]=F[L.options.attrkey],delete F[L.options.attrkey]),!L.options.charsAsChildren&&L.options.charkey in F&&($[L.options.charkey]=F[L.options.charkey],delete F[L.options.charkey]),(0,r.default)(F).length>0&&($[L.options.childkey]=F),F=$;return T.length>0?L.assignOrPush(K,H,F):(L.options.explicitRoot&&(ae=F,F={},F[H]=ae),L.resultObject=F,L.saxParser.ended=!0,L.emit("end",L.resultObject))}}(this),M=function(L){return function(j){var N,G;if(G=T[T.length-1])return G[g]+=j,L.options.explicitChildren&&L.options.preserveChildrenOrder&&L.options.charsAsChildren&&(L.options.includeWhiteChars||j.replace(/\\n/g,"").trim()!=="")&&(G[L.options.childkey]=G[L.options.childkey]||[],N={"#name":"__text__"},N[g]=j,L.options.normalize&&(N[g]=N[g].replace(/\s{2,}/g," ").trim()),G[L.options.childkey].push(N)),G}}(this),this.saxParser.ontext=M,this.saxParser.oncdata=function(L){return function(j){var N;if(N=M(j))return N.cdata=!0}}()},O.prototype.parseString=function(C,g){var M;g!=null&&typeof g=="function"&&(this.on("end",function(T){return this.reset(),g(null,T)}),this.on("error",function(T){return this.reset(),g(T)}));try{return C=C.toString(),C.trim()===""?(this.emit("end",null),!0):(C=i.stripBOM(C),this.options.async?(this.remaining=C,p(this.processAsync),this.saxParser):this.saxParser.write(C).close())}catch(T){if(M=T,!this.saxParser.errThrown&&!this.saxParser.ended)return this.emit("error",M),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw M}},O}(d.EventEmitter),v.parseString=function(E,O,C){var g,M,T;return C!=null?(typeof C=="function"&&(g=C),(O===void 0?"undefined":(0,n.default)(O))==="object"&&(M=O)):(typeof O=="function"&&(g=O),M={}),T=new v.Parser(M),T.parseString(E,g)}}).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(t,w,v){"use strict";(function(){var l;l=new RegExp(/(?!xmlns)^.*:/),v.normalize=function(_){return _.toLowerCase()},v.firstCharLowerCase=function(_){return _.charAt(0).toLowerCase()+_.slice(1)},v.stripPrefix=function(_){return _.replace(l,"")},v.parseNumbers=function(_){return isNaN(_)||(_=_%1==0?parseInt(_,10):parseFloat(_)),_},v.parseBooleans=function(_){return/^(?:true|false)$/i.test(_)&&(_=_.toLowerCase()==="true"),_}}).call(void 0)},{}],213:[function(t,w,v){"use strict";(function(){var l,_,r,u,o=function(i,s){function d(){this.constructor=i}for(var m in s)e.call(s,m)&&(i[m]=s[m]);return d.prototype=s.prototype,i.prototype=new d,i.__super__=s.prototype,i},e={}.hasOwnProperty;_=t("./defaults"),l=t("./builder"),r=t("./parser"),u=t("./processors"),v.defaults=_.defaults,v.processors=u,v.ValidationError=function(n){function i(s){this.message=s}return o(i,n),i}(Error),v.Builder=l.Builder,v.Parser=r.Parser,v.parseString=r.parseString}).call(void 0)},{"./builder":209,"./defaults":210,"./parser":211,"./processors":212}],214:[function(t,w,v){"use strict";function l(i){return i&&i.__esModule?i:{default:i}}var _=t("babel-runtime/core-js/object/get-prototype-of"),r=l(_),u=t("babel-runtime/helpers/typeof"),o=l(u),e=t("babel-runtime/core-js/object/assign"),n=l(e);(function(){var i,s,d,m,f,A,b=[].slice,p={}.hasOwnProperty;i=function(){var D,h,E,O,C,g;if(g=arguments[0],C=2<=arguments.length?b.call(arguments,1):[],m(n.default))n.default.apply(null,arguments);else for(D=0,E=C.length;D<E;D++)if((O=C[D])!=null)for(h in O)p.call(O,h)&&(g[h]=O[h]);return g},m=function(D){return!!D&&Object.prototype.toString.call(D)==="[object Function]"},f=function(D){var h;return!!D&&((h=D===void 0?"undefined":(0,o.default)(D))==="function"||h==="object")},s=function(D){return m(Array.isArray)?Array.isArray(D):Object.prototype.toString.call(D)==="[object Array]"},d=function(D){var h;if(s(D))return!D.length;for(h in D)if(p.call(D,h))return!1;return!0},A=function(D){var h,E;return f(D)&&(E=(0,r.default)(D))&&(h=E.constructor)&&typeof h=="function"&&h instanceof h&&Function.prototype.toString.call(h)===Function.prototype.toString.call(Object)},w.exports.assign=i,w.exports.isFunction=m,w.exports.isObject=f,w.exports.isArray=s,w.exports.isEmpty=d,w.exports.isPlainObject=A}).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(t,w,v){"use strict";var l=t("babel-runtime/core-js/object/create"),_=function(r){return r&&r.__esModule?r:{default:r}}(l);(function(){w.exports=function(){function r(u,o,e){if(this.options=u.options,this.stringify=u.stringify,o==null)throw new Error("Missing attribute name of element "+u.name);if(e==null)throw new Error("Missing attribute value for attribute "+o+" of element "+u.name);this.name=this.stringify.attName(o),this.value=this.stringify.attValue(e)}return r.prototype.clone=function(){return(0,_.default)(this)},r.prototype.toString=function(u){return this.options.writer.set(u).attribute(this)},r}()}).call(void 0)},{"babel-runtime/core-js/object/create":19}],216:[function(t,w,v){"use strict";var l=t("babel-runtime/core-js/object/create"),_=function(r){return r&&r.__esModule?r:{default:r}}(l);(function(){var r,u=function(n,i){function s(){this.constructor=n}for(var d in i)o.call(i,d)&&(n[d]=i[d]);return s.prototype=i.prototype,n.prototype=new s,n.__super__=i.prototype,n},o={}.hasOwnProperty;r=t("./XMLNode"),w.exports=function(e){function n(i,s){if(n.__super__.constructor.call(this,i),s==null)throw new Error("Missing CDATA text");this.text=this.stringify.cdata(s)}return u(n,e),n.prototype.clone=function(){return(0,_.default)(this)},n.prototype.toString=function(i){return this.options.writer.set(i).cdata(this)},n}(r)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],217:[function(t,w,v){"use strict";var l=t("babel-runtime/core-js/object/create"),_=function(r){return r&&r.__esModule?r:{default:r}}(l);(function(){var r,u=function(n,i){function s(){this.constructor=n}for(var d in i)o.call(i,d)&&(n[d]=i[d]);return s.prototype=i.prototype,n.prototype=new s,n.__super__=i.prototype,n},o={}.hasOwnProperty;r=t("./XMLNode"),w.exports=function(e){function n(i,s){if(n.__super__.constructor.call(this,i),s==null)throw new Error("Missing comment text");this.text=this.stringify.comment(s)}return u(n,e),n.prototype.clone=function(){return(0,_.default)(this)},n.prototype.toString=function(i){return this.options.writer.set(i).comment(this)},n}(r)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],218:[function(t,w,v){"use strict";(function(){var l,_=function(o,e){function n(){this.constructor=o}for(var i in e)r.call(e,i)&&(o[i]=e[i]);return n.prototype=e.prototype,o.prototype=new n,o.__super__=e.prototype,o},r={}.hasOwnProperty;l=t("./XMLNode"),w.exports=function(u){function o(e,n,i,s,d,m){if(o.__super__.constructor.call(this,e),n==null)throw new Error("Missing DTD element name");if(i==null)throw new Error("Missing DTD attribute name");if(!s)throw new Error("Missing DTD attribute type");if(!d)throw new Error("Missing DTD attribute default");if(d.indexOf("#")!==0&&(d="#"+d),!d.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT");if(m&&!d.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT");this.elementName=this.stringify.eleName(n),this.attributeName=this.stringify.attName(i),this.attributeType=this.stringify.dtdAttType(s),this.defaultValue=this.stringify.dtdAttDefault(m),this.defaultValueType=d}return _(o,u),o.prototype.toString=function(e){return this.options.writer.set(e).dtdAttList(this)},o}(l)}).call(void 0)},{"./XMLNode":227}],219:[function(t,w,v){"use strict";(function(){var l,_=function(o,e){function n(){this.constructor=o}for(var i in e)r.call(e,i)&&(o[i]=e[i]);return n.prototype=e.prototype,o.prototype=new n,o.__super__=e.prototype,o},r={}.hasOwnProperty;l=t("./XMLNode"),w.exports=function(u){function o(e,n,i){if(o.__super__.constructor.call(this,e),n==null)throw new Error("Missing DTD element name");i||(i="(#PCDATA)"),Array.isArray(i)&&(i="("+i.join(",")+")"),this.name=this.stringify.eleName(n),this.value=this.stringify.dtdElementValue(i)}return _(o,u),o.prototype.toString=function(e){return this.options.writer.set(e).dtdElement(this)},o}(l)}).call(void 0)},{"./XMLNode":227}],220:[function(t,w,v){"use strict";(function(){var l,_,r=function(e,n){function i(){this.constructor=e}for(var s in n)u.call(n,s)&&(e[s]=n[s]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e},u={}.hasOwnProperty;_=t("./Utility").isObject,l=t("./XMLNode"),w.exports=function(o){function e(n,i,s,d){if(e.__super__.constructor.call(this,n),s==null)throw new Error("Missing entity name");if(d==null)throw new Error("Missing entity value");if(this.pe=!!i,this.name=this.stringify.eleName(s),_(d)){if(!d.pubID&&!d.sysID)throw new Error("Public and/or system identifiers are required for an external entity");if(d.pubID&&!d.sysID)throw new Error("System identifier is required for a public external entity");if(d.pubID!=null&&(this.pubID=this.stringify.dtdPubID(d.pubID)),d.sysID!=null&&(this.sysID=this.stringify.dtdSysID(d.sysID)),d.nData!=null&&(this.nData=this.stringify.dtdNData(d.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity")}else this.value=this.stringify.dtdEntityValue(d)}return r(e,o),e.prototype.toString=function(n){return this.options.writer.set(n).dtdEntity(this)},e}(l)}).call(void 0)},{"./Utility":214,"./XMLNode":227}],221:[function(t,w,v){"use strict";(function(){var l,_=function(o,e){function n(){this.constructor=o}for(var i in e)r.call(e,i)&&(o[i]=e[i]);return n.prototype=e.prototype,o.prototype=new n,o.__super__=e.prototype,o},r={}.hasOwnProperty;l=t("./XMLNode"),w.exports=function(u){function o(e,n,i){if(o.__super__.constructor.call(this,e),n==null)throw new Error("Missing notation name");if(!i.pubID&&!i.sysID)throw new Error("Public or system identifiers are required for an external entity");this.name=this.stringify.eleName(n),i.pubID!=null&&(this.pubID=this.stringify.dtdPubID(i.pubID)),i.sysID!=null&&(this.sysID=this.stringify.dtdSysID(i.sysID))}return _(o,u),o.prototype.toString=function(e){return this.options.writer.set(e).dtdNotation(this)},o}(l)}).call(void 0)},{"./XMLNode":227}],222:[function(t,w,v){"use strict";(function(){var l,_,r=function(e,n){function i(){this.constructor=e}for(var s in n)u.call(n,s)&&(e[s]=n[s]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e},u={}.hasOwnProperty;_=t("./Utility").isObject,l=t("./XMLNode"),w.exports=function(o){function e(n,i,s,d){var m;e.__super__.constructor.call(this,n),_(i)&&(m=i,i=m.version,s=m.encoding,d=m.standalone),i||(i="1.0"),this.version=this.stringify.xmlVersion(i),s!=null&&(this.encoding=this.stringify.xmlEncoding(s)),d!=null&&(this.standalone=this.stringify.xmlStandalone(d))}return r(e,o),e.prototype.toString=function(n){return this.options.writer.set(n).declaration(this)},e}(l)}).call(void 0)},{"./Utility":214,"./XMLNode":227}],223:[function(t,w,v){"use strict";(function(){var l,_,r,u,o,e,n=function(d,m){function f(){this.constructor=d}for(var A in m)i.call(m,A)&&(d[A]=m[A]);return f.prototype=m.prototype,d.prototype=new f,d.__super__=m.prototype,d},i={}.hasOwnProperty;e=t("./Utility").isObject,o=t("./XMLNode"),l=t("./XMLDTDAttList"),r=t("./XMLDTDEntity"),_=t("./XMLDTDElement"),u=t("./XMLDTDNotation"),w.exports=function(s){function d(m,f,A){var b,p;d.__super__.constructor.call(this,m),this.documentObject=m,e(f)&&(b=f,f=b.pubID,A=b.sysID),A==null&&(p=[f,A],A=p[0],f=p[1]),f!=null&&(this.pubID=this.stringify.dtdPubID(f)),A!=null&&(this.sysID=this.stringify.dtdSysID(A))}return n(d,s),d.prototype.element=function(m,f){var A;return A=new _(this,m,f),this.children.push(A),this},d.prototype.attList=function(m,f,A,b,p){var S;return S=new l(this,m,f,A,b,p),this.children.push(S),this},d.prototype.entity=function(m,f){var A;return A=new r(this,!1,m,f),this.children.push(A),this},d.prototype.pEntity=function(m,f){var A;return A=new r(this,!0,m,f),this.children.push(A),this},d.prototype.notation=function(m,f){var A;return A=new u(this,m,f),this.children.push(A),this},d.prototype.toString=function(m){return this.options.writer.set(m).docType(this)},d.prototype.ele=function(m,f){return this.element(m,f)},d.prototype.att=function(m,f,A,b,p){return this.attList(m,f,A,b,p)},d.prototype.ent=function(m,f){return this.entity(m,f)},d.prototype.pent=function(m,f){return this.pEntity(m,f)},d.prototype.not=function(m,f){return this.notation(m,f)},d.prototype.up=function(){return this.root()||this.documentObject},d}(o)}).call(void 0)},{"./Utility":214,"./XMLDTDAttList":218,"./XMLDTDElement":219,"./XMLDTDEntity":220,"./XMLDTDNotation":221,"./XMLNode":227}],224:[function(t,w,v){"use strict";(function(){var l,_,r,u,o=function(i,s){function d(){this.constructor=i}for(var m in s)e.call(s,m)&&(i[m]=s[m]);return d.prototype=s.prototype,i.prototype=new d,i.__super__=s.prototype,i},e={}.hasOwnProperty;u=t("./Utility").isPlainObject,l=t("./XMLNode"),r=t("./XMLStringifier"),_=t("./XMLStringWriter"),w.exports=function(n){function i(s){i.__super__.constructor.call(this,null),s||(s={}),s.writer||(s.writer=new _),this.options=s,this.stringify=new r(s),this.isDocument=!0}return o(i,n),i.prototype.end=function(s){var d;return s?u(s)&&(d=s,s=this.options.writer.set(d)):s=this.options.writer,s.document(this)},i.prototype.toString=function(s){return this.options.writer.set(s).document(this)},i}(l)}).call(void 0)},{"./Utility":214,"./XMLNode":227,"./XMLStringWriter":231,"./XMLStringifier":232}],225:[function(t,w,v){"use strict";(function(){var l,_,r,u,o,e,n,i,s,d,m,f,A,b,p,S,D,h,E,O={}.hasOwnProperty;E=t("./Utility"),D=E.isObject,S=E.isFunction,h=E.isPlainObject,d=t("./XMLElement"),_=t("./XMLCData"),r=t("./XMLComment"),f=t("./XMLRaw"),p=t("./XMLText"),m=t("./XMLProcessingInstruction"),i=t("./XMLDeclaration"),s=t("./XMLDocType"),u=t("./XMLDTDAttList"),e=t("./XMLDTDEntity"),o=t("./XMLDTDElement"),n=t("./XMLDTDNotation"),l=t("./XMLAttribute"),b=t("./XMLStringifier"),A=t("./XMLStringWriter"),w.exports=function(){function C(g,M,T){var L;g||(g={}),g.writer?h(g.writer)&&(L=g.writer,g.writer=new A(L)):g.writer=new A(g),this.options=g,this.writer=g.writer,this.stringify=new b(g),this.onDataCallback=M||function(){},this.onEndCallback=T||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return C.prototype.node=function(g,M,T){var L;if(g==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(),g=g.valueOf(),M==null&&(M={}),M=M.valueOf(),D(M)||(L=[M,T],T=L[0],M=L[1]),this.currentNode=new d(this,g,M),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,T!=null&&this.text(T),this},C.prototype.element=function(g,M,T){return this.currentNode&&this.currentNode instanceof s?this.dtdElement.apply(this,arguments):this.node(g,M,T)},C.prototype.attribute=function(g,M){var T,L;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode");if(g!=null&&(g=g.valueOf()),D(g))for(T in g)O.call(g,T)&&(L=g[T],this.attribute(T,L));else S(M)&&(M=M.apply()),this.options.skipNullAttributes&&M==null||(this.currentNode.attributes[g]=new l(this,g,M));return this},C.prototype.text=function(g){var M;return this.openCurrent(),M=new p(this,g),this.onData(this.writer.text(M,this.currentLevel+1)),this},C.prototype.cdata=function(g){var M;return this.openCurrent(),M=new _(this,g),this.onData(this.writer.cdata(M,this.currentLevel+1)),this},C.prototype.comment=function(g){var M;return this.openCurrent(),M=new r(this,g),this.onData(this.writer.comment(M,this.currentLevel+1)),this},C.prototype.raw=function(g){var M;return this.openCurrent(),M=new f(this,g),this.onData(this.writer.raw(M,this.currentLevel+1)),this},C.prototype.instruction=function(g,M){var T,L,j,N,G;if(this.openCurrent(),g!=null&&(g=g.valueOf()),M!=null&&(M=M.valueOf()),Array.isArray(g))for(T=0,N=g.length;T<N;T++)L=g[T],this.instruction(L);else if(D(g))for(L in g)O.call(g,L)&&(j=g[L],this.instruction(L,j));else S(M)&&(M=M.apply()),G=new m(this,g,M),this.onData(this.writer.processingInstruction(G,this.currentLevel+1));return this},C.prototype.declaration=function(g,M,T){var L;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node");return L=new i(this,g,M,T),this.onData(this.writer.declaration(L,this.currentLevel+1)),this},C.prototype.doctype=function(g,M,T){if(this.openCurrent(),g==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 s(this,M,T),this.currentNode.rootNodeName=g,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},C.prototype.dtdElement=function(g,M){var T;return this.openCurrent(),T=new o(this,g,M),this.onData(this.writer.dtdElement(T,this.currentLevel+1)),this},C.prototype.attList=function(g,M,T,L,j){var N;return this.openCurrent(),N=new u(this,g,M,T,L,j),this.onData(this.writer.dtdAttList(N,this.currentLevel+1)),this},C.prototype.entity=function(g,M){var T;return this.openCurrent(),T=new e(this,!1,g,M),this.onData(this.writer.dtdEntity(T,this.currentLevel+1)),this},C.prototype.pEntity=function(g,M){var T;return this.openCurrent(),T=new e(this,!0,g,M),this.onData(this.writer.dtdEntity(T,this.currentLevel+1)),this},C.prototype.notation=function(g,M){var T;return this.openCurrent(),T=new n(this,g,M),this.onData(this.writer.dtdNotation(T,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(g){if(!g.isOpen)return!this.root&&this.currentLevel===0&&g instanceof d&&(this.root=g),this.onData(this.writer.openNode(g,this.currentLevel)),g.isOpen=!0},C.prototype.closeNode=function(g){if(!g.isClosed)return this.onData(this.writer.closeNode(g,this.currentLevel)),g.isClosed=!0},C.prototype.onData=function(g){return this.documentStarted=!0,this.onDataCallback(g)},C.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},C.prototype.ele=function(){return this.element.apply(this,arguments)},C.prototype.nod=function(g,M,T){return this.node(g,M,T)},C.prototype.txt=function(g){return this.text(g)},C.prototype.dat=function(g){return this.cdata(g)},C.prototype.com=function(g){return this.comment(g)},C.prototype.ins=function(g,M){return this.instruction(g,M)},C.prototype.dec=function(g,M,T){return this.declaration(g,M,T)},C.prototype.dtd=function(g,M,T){return this.doctype(g,M,T)},C.prototype.e=function(g,M,T){return this.element(g,M,T)},C.prototype.n=function(g,M,T){return this.node(g,M,T)},C.prototype.t=function(g){return this.text(g)},C.prototype.d=function(g){return this.cdata(g)},C.prototype.c=function(g){return this.comment(g)},C.prototype.r=function(g){return this.raw(g)},C.prototype.i=function(g,M){return this.instruction(g,M)},C.prototype.att=function(){return this.currentNode&&this.currentNode instanceof s?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},C.prototype.a=function(){return this.currentNode&&this.currentNode instanceof s?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},C.prototype.ent=function(g,M){return this.entity(g,M)},C.prototype.pent=function(g,M){return this.pEntity(g,M)},C.prototype.not=function(g,M){return this.notation(g,M)},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(t,w,v){"use strict";var l=t("babel-runtime/core-js/object/create"),_=function(r){return r&&r.__esModule?r:{default:r}}(l);(function(){var r,u,o,e,n,i=function(m,f){function A(){this.constructor=m}for(var b in f)s.call(f,b)&&(m[b]=f[b]);return A.prototype=f.prototype,m.prototype=new A,m.__super__=f.prototype,m},s={}.hasOwnProperty;n=t("./Utility"),e=n.isObject,o=n.isFunction,u=t("./XMLNode"),r=t("./XMLAttribute"),w.exports=function(d){function m(f,A,b){if(m.__super__.constructor.call(this,f),A==null)throw new Error("Missing element name");this.name=this.stringify.eleName(A),this.attributes={},b!=null&&this.attribute(b),f.isDocument&&(this.isRoot=!0,this.documentObject=f,f.rootObject=this)}return i(m,d),m.prototype.clone=function(){var f,A,b,p;b=(0,_.default)(this),b.isRoot&&(b.documentObject=null),b.attributes={},p=this.attributes;for(A in p)s.call(p,A)&&(f=p[A],b.attributes[A]=f.clone());return b.children=[],this.children.forEach(function(S){var D;return D=S.clone(),D.parent=b,b.children.push(D)}),b},m.prototype.attribute=function(f,A){var b,p;if(f!=null&&(f=f.valueOf()),e(f))for(b in f)s.call(f,b)&&(p=f[b],this.attribute(b,p));else o(A)&&(A=A.apply()),this.options.skipNullAttributes&&A==null||(this.attributes[f]=new r(this,f,A));return this},m.prototype.removeAttribute=function(f){var A,b,p;if(f==null)throw new Error("Missing attribute name");if(f=f.valueOf(),Array.isArray(f))for(b=0,p=f.length;b<p;b++)A=f[b],delete this.attributes[A];else delete this.attributes[f];return this},m.prototype.toString=function(f){return this.options.writer.set(f).element(this)},m.prototype.att=function(f,A){return this.attribute(f,A)},m.prototype.a=function(f,A){return this.attribute(f,A)},m}(u)}).call(void 0)},{"./Utility":214,"./XMLAttribute":215,"./XMLNode":227,"babel-runtime/core-js/object/create":19}],227:[function(t,w,v){"use strict";(function(){var l,_,r,u,o,e,n,i,s,d,m,f,A={}.hasOwnProperty;f=t("./Utility"),m=f.isObject,d=f.isFunction,s=f.isEmpty,o=null,l=null,_=null,r=null,u=null,n=null,i=null,e=null,w.exports=function(){function b(p){this.parent=p,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.children=[],o||(o=t("./XMLElement"),l=t("./XMLCData"),_=t("./XMLComment"),r=t("./XMLDeclaration"),u=t("./XMLDocType"),n=t("./XMLRaw"),i=t("./XMLText"),e=t("./XMLProcessingInstruction"))}return b.prototype.element=function(p,S,D){var h,E,O,C,g,M,T,L,j,N;if(M=null,S==null&&(S={}),S=S.valueOf(),m(S)||(j=[S,D],D=j[0],S=j[1]),p!=null&&(p=p.valueOf()),Array.isArray(p))for(O=0,T=p.length;O<T;O++)E=p[O],M=this.element(E);else if(d(p))M=this.element(p.apply());else if(m(p)){for(g in p)if(A.call(p,g))if(N=p[g],d(N)&&(N=N.apply()),m(N)&&s(N)&&(N=null),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&g.indexOf(this.stringify.convertAttKey)===0)M=this.attribute(g.substr(this.stringify.convertAttKey.length),N);else if(!this.options.separateArrayItems&&Array.isArray(N))for(C=0,L=N.length;C<L;C++)E=N[C],h={},h[g]=E,M=this.element(h);else m(N)?(M=this.element(g),M.element(N)):M=this.element(g,N)}else M=!this.options.ignoreDecorators&&this.stringify.convertTextKey&&p.indexOf(this.stringify.convertTextKey)===0?this.text(D):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&p.indexOf(this.stringify.convertCDataKey)===0?this.cdata(D):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&p.indexOf(this.stringify.convertCommentKey)===0?this.comment(D):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&p.indexOf(this.stringify.convertRawKey)===0?this.raw(D):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&p.indexOf(this.stringify.convertPIKey)===0?this.instruction(p.substr(this.stringify.convertPIKey.length),D):this.node(p,S,D);if(M==null)throw new Error("Could not create any elements with: "+p);return M},b.prototype.insertBefore=function(p,S,D){var h,E,O;if(this.isRoot)throw new Error("Cannot insert elements at root level");return E=this.parent.children.indexOf(this),O=this.parent.children.splice(E),h=this.parent.element(p,S,D),Array.prototype.push.apply(this.parent.children,O),h},b.prototype.insertAfter=function(p,S,D){var h,E,O;if(this.isRoot)throw new Error("Cannot insert elements at root level");return E=this.parent.children.indexOf(this),O=this.parent.children.splice(E+1),h=this.parent.element(p,S,D),Array.prototype.push.apply(this.parent.children,O),h},b.prototype.remove=function(){var p;if(this.isRoot)throw new Error("Cannot remove the root element");return p=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[p,p-p+1].concat([])),this.parent},b.prototype.node=function(p,S,D){var h,E;return p!=null&&(p=p.valueOf()),S||(S={}),S=S.valueOf(),m(S)||(E=[S,D],D=E[0],S=E[1]),h=new o(this,p,S),D!=null&&h.text(D),this.children.push(h),h},b.prototype.text=function(p){var S;return S=new i(this,p),this.children.push(S),this},b.prototype.cdata=function(p){var S;return S=new l(this,p),this.children.push(S),this},b.prototype.comment=function(p){var S;return S=new _(this,p),this.children.push(S),this},b.prototype.commentBefore=function(p){var S,D;return S=this.parent.children.indexOf(this),D=this.parent.children.splice(S),this.parent.comment(p),Array.prototype.push.apply(this.parent.children,D),this},b.prototype.commentAfter=function(p){var S,D;return S=this.parent.children.indexOf(this),D=this.parent.children.splice(S+1),this.parent.comment(p),Array.prototype.push.apply(this.parent.children,D),this},b.prototype.raw=function(p){var S;return S=new n(this,p),this.children.push(S),this},b.prototype.instruction=function(p,S){var D,h,E,O,C;if(p!=null&&(p=p.valueOf()),S!=null&&(S=S.valueOf()),Array.isArray(p))for(O=0,C=p.length;O<C;O++)D=p[O],this.instruction(D);else if(m(p))for(D in p)A.call(p,D)&&(h=p[D],this.instruction(D,h));else d(S)&&(S=S.apply()),E=new e(this,p,S),this.children.push(E);return this},b.prototype.instructionBefore=function(p,S){var D,h;return D=this.parent.children.indexOf(this),h=this.parent.children.splice(D),this.parent.instruction(p,S),Array.prototype.push.apply(this.parent.children,h),this},b.prototype.instructionAfter=function(p,S){var D,h;return D=this.parent.children.indexOf(this),h=this.parent.children.splice(D+1),this.parent.instruction(p,S),Array.prototype.push.apply(this.parent.children,h),this},b.prototype.declaration=function(p,S,D){var h,E;return h=this.document(),E=new r(h,p,S,D),h.children[0]instanceof r?h.children[0]=E:h.children.unshift(E),h.root()||h},b.prototype.doctype=function(p,S){var D,h,E,O,C,g,M,T,L,j;for(h=this.document(),E=new u(h,p,S),L=h.children,O=C=0,M=L.length;C<M;O=++C)if((D=L[O])instanceof u)return h.children[O]=E,E;for(j=h.children,O=g=0,T=j.length;g<T;O=++g)if(D=j[O],D.isRoot)return h.children.splice(O,0,E),E;return h.children.push(E),E},b.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},b.prototype.root=function(){var p;for(p=this;p;){if(p.isDocument)return p.rootObject;if(p.isRoot)return p;p=p.parent}},b.prototype.document=function(){var p;for(p=this;p;){if(p.isDocument)return p;p=p.parent}},b.prototype.end=function(p){return this.document().end(p)},b.prototype.prev=function(){var p;if((p=this.parent.children.indexOf(this))<1)throw new Error("Already at the first node");return this.parent.children[p-1]},b.prototype.next=function(){var p;if((p=this.parent.children.indexOf(this))===-1||p===this.parent.children.length-1)throw new Error("Already at the last node");return this.parent.children[p+1]},b.prototype.importDocument=function(p){var S;return S=p.root().clone(),S.parent=this,S.isRoot=!1,this.children.push(S),this},b.prototype.ele=function(p,S,D){return this.element(p,S,D)},b.prototype.nod=function(p,S,D){return this.node(p,S,D)},b.prototype.txt=function(p){return this.text(p)},b.prototype.dat=function(p){return this.cdata(p)},b.prototype.com=function(p){return this.comment(p)},b.prototype.ins=function(p,S){return this.instruction(p,S)},b.prototype.doc=function(){return this.document()},b.prototype.dec=function(p,S,D){return this.declaration(p,S,D)},b.prototype.dtd=function(p,S){return this.doctype(p,S)},b.prototype.e=function(p,S,D){return this.element(p,S,D)},b.prototype.n=function(p,S,D){return this.node(p,S,D)},b.prototype.t=function(p){return this.text(p)},b.prototype.d=function(p){return this.cdata(p)},b.prototype.c=function(p){return this.comment(p)},b.prototype.r=function(p){return this.raw(p)},b.prototype.i=function(p,S){return this.instruction(p,S)},b.prototype.u=function(){return this.up()},b.prototype.importXMLBuilder=function(p){return this.importDocument(p)},b}()}).call(void 0)},{"./Utility":214,"./XMLCData":216,"./XMLComment":217,"./XMLDeclaration":222,"./XMLDocType":223,"./XMLElement":226,"./XMLProcessingInstruction":228,"./XMLRaw":229,"./XMLText":233}],228:[function(t,w,v){"use strict";var l=t("babel-runtime/core-js/object/create"),_=function(r){return r&&r.__esModule?r:{default:r}}(l);(function(){var r,u=function(n,i){function s(){this.constructor=n}for(var d in i)o.call(i,d)&&(n[d]=i[d]);return s.prototype=i.prototype,n.prototype=new s,n.__super__=i.prototype,n},o={}.hasOwnProperty;r=t("./XMLNode"),w.exports=function(e){function n(i,s,d){if(n.__super__.constructor.call(this,i),s==null)throw new Error("Missing instruction target");this.target=this.stringify.insTarget(s),d&&(this.value=this.stringify.insValue(d))}return u(n,e),n.prototype.clone=function(){return(0,_.default)(this)},n.prototype.toString=function(i){return this.options.writer.set(i).processingInstruction(this)},n}(r)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],229:[function(t,w,v){"use strict";var l=t("babel-runtime/core-js/object/create"),_=function(r){return r&&r.__esModule?r:{default:r}}(l);(function(){var r,u=function(n,i){function s(){this.constructor=n}for(var d in i)o.call(i,d)&&(n[d]=i[d]);return s.prototype=i.prototype,n.prototype=new s,n.__super__=i.prototype,n},o={}.hasOwnProperty;r=t("./XMLNode"),w.exports=function(e){function n(i,s){if(n.__super__.constructor.call(this,i),s==null)throw new Error("Missing raw text");this.value=this.stringify.raw(s)}return u(n,e),n.prototype.clone=function(){return(0,_.default)(this)},n.prototype.toString=function(i){return this.options.writer.set(i).raw(this)},n}(r)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],230:[function(t,w,v){"use strict";(function(){var l,_,r,u,o,e,n,i,s,d,m,f,A,b=function(D,h){function E(){this.constructor=D}for(var O in h)p.call(h,O)&&(D[O]=h[O]);return E.prototype=h.prototype,D.prototype=new E,D.__super__=h.prototype,D},p={}.hasOwnProperty;n=t("./XMLDeclaration"),i=t("./XMLDocType"),l=t("./XMLCData"),_=t("./XMLComment"),s=t("./XMLElement"),m=t("./XMLRaw"),f=t("./XMLText"),d=t("./XMLProcessingInstruction"),r=t("./XMLDTDAttList"),u=t("./XMLDTDElement"),o=t("./XMLDTDEntity"),e=t("./XMLDTDNotation"),A=t("./XMLWriterBase"),w.exports=function(S){function D(h,E){D.__super__.constructor.call(this,E),this.stream=h}return b(D,S),D.prototype.document=function(h){var E,O,C,g,M,T,L,j;for(T=h.children,O=0,g=T.length;O<g;O++)E=T[O],E.isLastRootNode=!1;for(h.children[h.children.length-1].isLastRootNode=!0,L=h.children,j=[],C=0,M=L.length;C<M;C++)switch(E=L[C],!1){case!(E instanceof n):j.push(this.declaration(E));break;case!(E instanceof i):j.push(this.docType(E));break;case!(E instanceof _):j.push(this.comment(E));break;case!(E instanceof d):j.push(this.processingInstruction(E));break;default:j.push(this.element(E))}return j},D.prototype.attribute=function(h){return this.stream.write(" "+h.name+'="'+h.value+'"')},D.prototype.cdata=function(h,E){return this.stream.write(this.space(E)+"<![CDATA["+h.text+"]]>"+this.endline(h))},D.prototype.comment=function(h,E){return this.stream.write(this.space(E)+"<!-- "+h.text+" -->"+this.endline(h))},D.prototype.declaration=function(h,E){return this.stream.write(this.space(E)),this.stream.write('<?xml version="'+h.version+'"'),h.encoding!=null&&this.stream.write(' encoding="'+h.encoding+'"'),h.standalone!=null&&this.stream.write(' standalone="'+h.standalone+'"'),this.stream.write(this.spacebeforeslash+"?>"),this.stream.write(this.endline(h))},D.prototype.docType=function(h,E){var O,C,g,M;if(E||(E=0),this.stream.write(this.space(E)),this.stream.write("<!DOCTYPE "+h.root().name),h.pubID&&h.sysID?this.stream.write(' PUBLIC "'+h.pubID+'" "'+h.sysID+'"'):h.sysID&&this.stream.write(' SYSTEM "'+h.sysID+'"'),h.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(h)),M=h.children,C=0,g=M.length;C<g;C++)switch(O=M[C],!1){case!(O instanceof r):this.dtdAttList(O,E+1);break;case!(O instanceof u):this.dtdElement(O,E+1);break;case!(O instanceof o):this.dtdEntity(O,E+1);break;case!(O instanceof e):this.dtdNotation(O,E+1);break;case!(O instanceof l):this.cdata(O,E+1);break;case!(O instanceof _):this.comment(O,E+1);break;case!(O instanceof d):this.processingInstruction(O,E+1);break;default:throw new Error("Unknown DTD node type: "+O.constructor.name)}this.stream.write("]")}return this.stream.write(this.spacebeforeslash+">"),this.stream.write(this.endline(h))},D.prototype.element=function(h,E){var O,C,g,M,T,L,j,N;E||(E=0),N=this.space(E),this.stream.write(N+"<"+h.name),L=h.attributes;for(T in L)p.call(L,T)&&(O=L[T],this.attribute(O));if(h.children.length===0||h.children.every(function(G){return G.value===""}))this.allowEmpty?this.stream.write("></"+h.name+">"):this.stream.write(this.spacebeforeslash+"/>");else if(this.pretty&&h.children.length===1&&h.children[0].value!=null)this.stream.write(">"),this.stream.write(h.children[0].value),this.stream.write("</"+h.name+">");else{for(this.stream.write(">"+this.newline),j=h.children,g=0,M=j.length;g<M;g++)switch(C=j[g],!1){case!(C instanceof l):this.cdata(C,E+1);break;case!(C instanceof _):this.comment(C,E+1);break;case!(C instanceof s):this.element(C,E+1);break;case!(C instanceof m):this.raw(C,E+1);break;case!(C instanceof f):this.text(C,E+1);break;case!(C instanceof d):this.processingInstruction(C,E+1);break;default:throw new Error("Unknown XML node type: "+C.constructor.name)}this.stream.write(N+"</"+h.name+">")}return this.stream.write(this.endline(h))},D.prototype.processingInstruction=function(h,E){return this.stream.write(this.space(E)+"<?"+h.target),h.value&&this.stream.write(" "+h.value),this.stream.write(this.spacebeforeslash+"?>"+this.endline(h))},D.prototype.raw=function(h,E){return this.stream.write(this.space(E)+h.value+this.endline(h))},D.prototype.text=function(h,E){return this.stream.write(this.space(E)+h.value+this.endline(h))},D.prototype.dtdAttList=function(h,E){return this.stream.write(this.space(E)+"<!ATTLIST "+h.elementName+" "+h.attributeName+" "+h.attributeType),h.defaultValueType!=="#DEFAULT"&&this.stream.write(" "+h.defaultValueType),h.defaultValue&&this.stream.write(' "'+h.defaultValue+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(h))},D.prototype.dtdElement=function(h,E){return this.stream.write(this.space(E)+"<!ELEMENT "+h.name+" "+h.value),this.stream.write(this.spacebeforeslash+">"+this.endline(h))},D.prototype.dtdEntity=function(h,E){return this.stream.write(this.space(E)+"<!ENTITY"),h.pe&&this.stream.write(" %"),this.stream.write(" "+h.name),h.value?this.stream.write(' "'+h.value+'"'):(h.pubID&&h.sysID?this.stream.write(' PUBLIC "'+h.pubID+'" "'+h.sysID+'"'):h.sysID&&this.stream.write(' SYSTEM "'+h.sysID+'"'),h.nData&&this.stream.write(" NDATA "+h.nData)),this.stream.write(this.spacebeforeslash+">"+this.endline(h))},D.prototype.dtdNotation=function(h,E){return this.stream.write(this.space(E)+"<!NOTATION "+h.name),h.pubID&&h.sysID?this.stream.write(' PUBLIC "'+h.pubID+'" "'+h.sysID+'"'):h.pubID?this.stream.write(' PUBLIC "'+h.pubID+'"'):h.sysID&&this.stream.write(' SYSTEM "'+h.sysID+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(h))},D.prototype.endline=function(h){return h.isLastRootNode?"":this.newline},D}(A)}).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(t,w,v){"use strict";(function(){var l,_,r,u,o,e,n,i,s,d,m,f,A,b=function(D,h){function E(){this.constructor=D}for(var O in h)p.call(h,O)&&(D[O]=h[O]);return E.prototype=h.prototype,D.prototype=new E,D.__super__=h.prototype,D},p={}.hasOwnProperty;n=t("./XMLDeclaration"),i=t("./XMLDocType"),l=t("./XMLCData"),_=t("./XMLComment"),s=t("./XMLElement"),m=t("./XMLRaw"),f=t("./XMLText"),d=t("./XMLProcessingInstruction"),r=t("./XMLDTDAttList"),u=t("./XMLDTDElement"),o=t("./XMLDTDEntity"),e=t("./XMLDTDNotation"),A=t("./XMLWriterBase"),w.exports=function(S){function D(h){D.__super__.constructor.call(this,h)}return b(D,S),D.prototype.document=function(h){var E,O,C,g,M;for(this.textispresent=!1,g="",M=h.children,O=0,C=M.length;O<C;O++)E=M[O],g+=function(){switch(!1){case!(E instanceof n):return this.declaration(E);case!(E instanceof i):return this.docType(E);case!(E instanceof _):return this.comment(E);case!(E instanceof d):return this.processingInstruction(E);default:return this.element(E,0)}}.call(this);return this.pretty&&g.slice(-this.newline.length)===this.newline&&(g=g.slice(0,-this.newline.length)),g},D.prototype.attribute=function(h){return" "+h.name+'="'+h.value+'"'},D.prototype.cdata=function(h,E){return this.space(E)+"<![CDATA["+h.text+"]]>"+this.newline},D.prototype.comment=function(h,E){return this.space(E)+"<!-- "+h.text+" -->"+this.newline},D.prototype.declaration=function(h,E){var O;return O=this.space(E),O+='<?xml version="'+h.version+'"',h.encoding!=null&&(O+=' encoding="'+h.encoding+'"'),h.standalone!=null&&(O+=' standalone="'+h.standalone+'"'),O+=this.spacebeforeslash+"?>",O+=this.newline},D.prototype.docType=function(h,E){var O,C,g,M,T;if(E||(E=0),M=this.space(E),M+="<!DOCTYPE "+h.root().name,h.pubID&&h.sysID?M+=' PUBLIC "'+h.pubID+'" "'+h.sysID+'"':h.sysID&&(M+=' SYSTEM "'+h.sysID+'"'),h.children.length>0){for(M+=" [",M+=this.newline,T=h.children,C=0,g=T.length;C<g;C++)O=T[C],M+=function(){switch(!1){case!(O instanceof r):return this.dtdAttList(O,E+1);case!(O instanceof u):return this.dtdElement(O,E+1);case!(O instanceof o):return this.dtdEntity(O,E+1);case!(O instanceof e):return this.dtdNotation(O,E+1);case!(O instanceof l):return this.cdata(O,E+1);case!(O instanceof _):return this.comment(O,E+1);case!(O instanceof d):return this.processingInstruction(O,E+1);default:throw new Error("Unknown DTD node type: "+O.constructor.name)}}.call(this);M+="]"}return M+=this.spacebeforeslash+">",M+=this.newline},D.prototype.element=function(h,E){var O,C,g,M,T,L,j,N,G,$,H,F,te;E||(E=0),te=!1,this.textispresent?(this.newline="",this.pretty=!1):(this.newline=this.newlinedefault,this.pretty=this.prettydefault),F=this.space(E),N="",N+=F+"<"+h.name,G=h.attributes;for(j in G)p.call(G,j)&&(O=G[j],N+=this.attribute(O));if(h.children.length===0||h.children.every(function(ae){return ae.value===""}))this.allowEmpty?N+="></"+h.name+">"+this.newline:N+=this.spacebeforeslash+"/>"+this.newline;else if(this.pretty&&h.children.length===1&&h.children[0].value!=null)N+=">",N+=h.children[0].value,N+="</"+h.name+">"+this.newline;else{if(this.dontprettytextnodes){for($=h.children,g=0,T=$.length;g<T;g++)if(C=$[g],C.value!=null){this.textispresent++,te=!0;break}}for(this.textispresent&&(this.newline="",this.pretty=!1,F=this.space(E)),N+=">"+this.newline,H=h.children,M=0,L=H.length;M<L;M++)C=H[M],N+=function(){switch(!1){case!(C instanceof l):return this.cdata(C,E+1);case!(C instanceof _):return this.comment(C,E+1);case!(C instanceof s):return this.element(C,E+1);case!(C instanceof m):return this.raw(C,E+1);case!(C instanceof f):return this.text(C,E+1);case!(C instanceof d):return this.processingInstruction(C,E+1);default:throw new Error("Unknown XML node type: "+C.constructor.name)}}.call(this);te&&this.textispresent--,this.textispresent||(this.newline=this.newlinedefault,this.pretty=this.prettydefault),N+=F+"</"+h.name+">"+this.newline}return N},D.prototype.processingInstruction=function(h,E){var O;return O=this.space(E)+"<?"+h.target,h.value&&(O+=" "+h.value),O+=this.spacebeforeslash+"?>"+this.newline},D.prototype.raw=function(h,E){return this.space(E)+h.value+this.newline},D.prototype.text=function(h,E){return this.space(E)+h.value+this.newline},D.prototype.dtdAttList=function(h,E){var O;return O=this.space(E)+"<!ATTLIST "+h.elementName+" "+h.attributeName+" "+h.attributeType,h.defaultValueType!=="#DEFAULT"&&(O+=" "+h.defaultValueType),h.defaultValue&&(O+=' "'+h.defaultValue+'"'),O+=this.spacebeforeslash+">"+this.newline},D.prototype.dtdElement=function(h,E){return this.space(E)+"<!ELEMENT "+h.name+" "+h.value+this.spacebeforeslash+">"+this.newline},D.prototype.dtdEntity=function(h,E){var O;return O=this.space(E)+"<!ENTITY",h.pe&&(O+=" %"),O+=" "+h.name,h.value?O+=' "'+h.value+'"':(h.pubID&&h.sysID?O+=' PUBLIC "'+h.pubID+'" "'+h.sysID+'"':h.sysID&&(O+=' SYSTEM "'+h.sysID+'"'),h.nData&&(O+=" NDATA "+h.nData)),O+=this.spacebeforeslash+">"+this.newline},D.prototype.dtdNotation=function(h,E){var O;return O=this.space(E)+"<!NOTATION "+h.name,h.pubID&&h.sysID?O+=' PUBLIC "'+h.pubID+'" "'+h.sysID+'"':h.pubID?O+=' PUBLIC "'+h.pubID+'"':h.sysID&&(O+=' SYSTEM "'+h.sysID+'"'),O+=this.spacebeforeslash+">"+this.newline},D.prototype.openNode=function(h,E){var O,C,g,M;if(E||(E=0),h instanceof s){g=this.space(E)+"<"+h.name,M=h.attributes;for(C in M)p.call(M,C)&&(O=M[C],g+=this.attribute(O));return g+=(h.children?">":"/>")+this.newline}return g=this.space(E)+"<!DOCTYPE "+h.rootNodeName,h.pubID&&h.sysID?g+=' PUBLIC "'+h.pubID+'" "'+h.sysID+'"':h.sysID&&(g+=' SYSTEM "'+h.sysID+'"'),g+=(h.children?" [":">")+this.newline},D.prototype.closeNode=function(h,E){switch(E||(E=0),!1){case!(h instanceof s):return this.space(E)+"</"+h.name+">"+this.newline;case!(h instanceof i):return this.space(E)+"]>"+this.newline}},D}(A)}).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(t,w,v){"use strict";(function(){var l=function(u,o){return function(){return u.apply(o,arguments)}},_={}.hasOwnProperty;w.exports=function(){function r(u){this.assertLegalChar=l(this.assertLegalChar,this);var o,e,n;u||(u={}),this.noDoubleEncoding=u.noDoubleEncoding,e=u.stringify||{};for(o in e)_.call(e,o)&&(n=e[o],this[o]=n)}return r.prototype.eleName=function(u){return u=""+u||"",this.assertLegalChar(u)},r.prototype.eleText=function(u){return u=""+u||"",this.assertLegalChar(this.elEscape(u))},r.prototype.cdata=function(u){return u=""+u||"",u=u.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(u)},r.prototype.comment=function(u){if(u=""+u||"",u.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+u);return this.assertLegalChar(u)},r.prototype.raw=function(u){return""+u||""},r.prototype.attName=function(u){return u=""+u||""},r.prototype.attValue=function(u){return u=""+u||"",this.attEscape(u)},r.prototype.insTarget=function(u){return""+u||""},r.prototype.insValue=function(u){if(u=""+u||"",u.match(/\?>/))throw new Error("Invalid processing instruction value: "+u);return u},r.prototype.xmlVersion=function(u){if(u=""+u||"",!u.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+u);return u},r.prototype.xmlEncoding=function(u){if(u=""+u||"",!u.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+u);return u},r.prototype.xmlStandalone=function(u){return u?"yes":"no"},r.prototype.dtdPubID=function(u){return""+u||""},r.prototype.dtdSysID=function(u){return""+u||""},r.prototype.dtdElementValue=function(u){return""+u||""},r.prototype.dtdAttType=function(u){return""+u||""},r.prototype.dtdAttDefault=function(u){return u!=null?""+u||"":u},r.prototype.dtdEntityValue=function(u){return""+u||""},r.prototype.dtdNData=function(u){return""+u||""},r.prototype.convertAttKey="@",r.prototype.convertPIKey="?",r.prototype.convertTextKey="#text",r.prototype.convertCDataKey="#cdata",r.prototype.convertCommentKey="#comment",r.prototype.convertRawKey="#raw",r.prototype.assertLegalChar=function(u){var o;if(o=u.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/))throw new Error("Invalid character in string: "+u+" at index "+o.index);return u},r.prototype.elEscape=function(u){var o;return o=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,u.replace(o,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
")},r.prototype.attEscape=function(u){var o;return o=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,u.replace(o,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
")},r}()}).call(void 0)},{}],233:[function(t,w,v){"use strict";var l=t("babel-runtime/core-js/object/create"),_=function(r){return r&&r.__esModule?r:{default:r}}(l);(function(){var r,u=function(n,i){function s(){this.constructor=n}for(var d in i)o.call(i,d)&&(n[d]=i[d]);return s.prototype=i.prototype,n.prototype=new s,n.__super__=i.prototype,n},o={}.hasOwnProperty;r=t("./XMLNode"),w.exports=function(e){function n(i,s){if(n.__super__.constructor.call(this,i),s==null)throw new Error("Missing element text");this.value=this.stringify.eleText(s)}return u(n,e),n.prototype.clone=function(){return(0,_.default)(this)},n.prototype.toString=function(i){return this.options.writer.set(i).text(this)},n}(r)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],234:[function(t,w,v){"use strict";(function(){var l={}.hasOwnProperty;w.exports=function(){function _(r){var u,o,e,n,i,s,d,m,f;r||(r={}),this.pretty=r.pretty||!1,this.allowEmpty=(o=r.allowEmpty)!=null&&o,this.pretty?(this.indent=(e=r.indent)!=null?e:" ",this.newline=(n=r.newline)!=null?n:`
|
|
|
`,this.offset=(i=r.offset)!=null?i:0,this.dontprettytextnodes=(s=r.dontprettytextnodes)!=null?s:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash=(d=r.spacebeforeslash)!=null?d:"",this.spacebeforeslash===!0&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,m=r.writer||{};for(u in m)l.call(m,u)&&(f=m[u],this[u]=f)}return _.prototype.set=function(r){var u,o,e;r||(r={}),"pretty"in r&&(this.pretty=r.pretty),"allowEmpty"in r&&(this.allowEmpty=r.allowEmpty),this.pretty?(this.indent="indent"in r?r.indent:" ",this.newline="newline"in r?r.newline:`
|
|
|
`,this.offset="offset"in r?r.offset:0,this.dontprettytextnodes="dontprettytextnodes"in r?r.dontprettytextnodes:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash="spacebeforeslash"in r?r.spacebeforeslash:"",this.spacebeforeslash===!0&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,o=r.writer||{};for(u in o)l.call(o,u)&&(e=o[u],this[u]=e);return this},_.prototype.space=function(r){var u;return this.pretty?(u=(r||0)+this.offset+1,u>0?new Array(u).join(this.indent):""):""},_}()}).call(void 0)},{}],235:[function(t,w,v){"use strict";(function(){var l,_,r,u,o,e,n;n=t("./Utility"),o=n.assign,e=n.isFunction,l=t("./XMLDocument"),_=t("./XMLDocumentCB"),u=t("./XMLStringWriter"),r=t("./XMLStreamWriter"),w.exports.create=function(i,s,d,m){var f,A;if(i==null)throw new Error("Root element needs a name");return m=o({},s,d,m),f=new l(m),A=f.element(i),m.headless||(f.declaration(m),m.pubID==null&&m.sysID==null||f.doctype(m)),A},w.exports.begin=function(i,s,d){var m;return e(i)&&(m=[i,s],s=m[0],d=m[1],i={}),s?new _(i,s,d):new l(i)},w.exports.stringWriter=function(i){return new u(i)},w.exports.streamWriter=function(i,s){return new r(i,s)}}).call(void 0)},{"./Utility":214,"./XMLDocument":224,"./XMLDocumentCB":225,"./XMLStreamWriter":230,"./XMLStringWriter":231}],236:[function(t,w,v){function l(){for(var r={},u=0;u<arguments.length;u++){var o=arguments[u];for(var e in o)_.call(o,e)&&(r[e]=o[e])}return r}w.exports=l;var _=Object.prototype.hasOwnProperty},{}],237:[function(t,w,v){"use strict";function l(m,f,A){u.isBuffer(f)||(f=new u(f)),u.isBuffer(A)||(A=new u(A)),f.length>s?f=m(f):f.length<s&&(f=u.concat([f,d],s));for(var b=new u(s),p=new u(s),S=0;S<s;S++)b[S]=54^f[S],p[S]=92^f[S];var D=m(u.concat([b,A]));return m(u.concat([p,D]))}function _(m,f){m=m||"sha1";var A=i[m],b=[],p=0;return A||r("algorithm:",m,"is not yet supported"),{update:function(D){return u.isBuffer(D)||(D=new u(D)),b.push(D),p+=D.length,this},digest:function(D){var h=u.concat(b),E=f?l(A,f,h):A(h);return b=null,D?E.toString(D):E}}}function r(){var m=[].slice.call(arguments).join(" ");throw new Error([m,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
|
|
|
`))}var u=t("buffer").Buffer,o=t("./sha"),e=t("./sha256"),n=t("./md5"),i={sha1:o,sha256:e,md5:n},s=64,d=new u(s);d.fill(0),v.createHash=function(m){return _(m)},v.createHmac=function(m,f){return _(m,f)},function(m,f){for(var A in m)f(m[A],A)}(["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],function(m){v[m]=function(){r("sorry,",m,"is not implemented yet")}})},{"./md5":239,"./sha":240,"./sha256":241,buffer:38}],238:[function(t,w,v){"use strict";function l(i,s){if(i.length%o!=0){var d=i.length+(o-i.length%o);i=u.concat([i,e],d)}for(var m=[],f=s?i.readInt32BE:i.readInt32LE,A=0;A<i.length;A+=o)m.push(f.call(i,A));return m}function _(i,s,d){for(var m=new u(s),f=d?m.writeInt32BE:m.writeInt32LE,A=0;A<i.length;A++)f.call(m,i[A],4*A,!0);return m}function r(i,s,d,m){return u.isBuffer(i)||(i=new u(i)),_(s(l(i,m),i.length*n),d,m)}var u=t("buffer").Buffer,o=4,e=new u(o);e.fill(0);var n=8;w.exports={hash:r}},{buffer:38}],239:[function(t,w,v){"use strict";function l(d,m){d[m>>5]|=128<<m%32,d[14+(m+64>>>9<<4)]=m;for(var f=1732584193,A=-271733879,b=-1732584194,p=271733878,S=0;S<d.length;S+=16){var D=f,h=A,E=b,O=p;f=r(f,A,b,p,d[S+0],7,-680876936),p=r(p,f,A,b,d[S+1],12,-389564586),b=r(b,p,f,A,d[S+2],17,606105819),A=r(A,b,p,f,d[S+3],22,-1044525330),f=r(f,A,b,p,d[S+4],7,-176418897),p=r(p,f,A,b,d[S+5],12,1200080426),b=r(b,p,f,A,d[S+6],17,-1473231341),A=r(A,b,p,f,d[S+7],22,-45705983),f=r(f,A,b,p,d[S+8],7,1770035416),p=r(p,f,A,b,d[S+9],12,-1958414417),b=r(b,p,f,A,d[S+10],17,-42063),A=r(A,b,p,f,d[S+11],22,-1990404162),f=r(f,A,b,p,d[S+12],7,1804603682),p=r(p,f,A,b,d[S+13],12,-40341101),b=r(b,p,f,A,d[S+14],17,-1502002290),A=r(A,b,p,f,d[S+15],22,1236535329),f=u(f,A,b,p,d[S+1],5,-165796510),p=u(p,f,A,b,d[S+6],9,-1069501632),b=u(b,p,f,A,d[S+11],14,643717713),A=u(A,b,p,f,d[S+0],20,-373897302),f=u(f,A,b,p,d[S+5],5,-701558691),p=u(p,f,A,b,d[S+10],9,38016083),b=u(b,p,f,A,d[S+15],14,-660478335),A=u(A,b,p,f,d[S+4],20,-405537848),f=u(f,A,b,p,d[S+9],5,568446438),p=u(p,f,A,b,d[S+14],9,-1019803690),b=u(b,p,f,A,d[S+3],14,-187363961),A=u(A,b,p,f,d[S+8],20,1163531501),f=u(f,A,b,p,d[S+13],5,-1444681467),p=u(p,f,A,b,d[S+2],9,-51403784),b=u(b,p,f,A,d[S+7],14,1735328473),A=u(A,b,p,f,d[S+12],20,-1926607734),f=o(f,A,b,p,d[S+5],4,-378558),p=o(p,f,A,b,d[S+8],11,-2022574463),b=o(b,p,f,A,d[S+11],16,1839030562),A=o(A,b,p,f,d[S+14],23,-35309556),f=o(f,A,b,p,d[S+1],4,-1530992060),p=o(p,f,A,b,d[S+4],11,1272893353),b=o(b,p,f,A,d[S+7],16,-155497632),A=o(A,b,p,f,d[S+10],23,-1094730640),f=o(f,A,b,p,d[S+13],4,681279174),p=o(p,f,A,b,d[S+0],11,-358537222),b=o(b,p,f,A,d[S+3],16,-722521979),A=o(A,b,p,f,d[S+6],23,76029189),f=o(f,A,b,p,d[S+9],4,-640364487),p=o(p,f,A,b,d[S+12],11,-421815835),b=o(b,p,f,A,d[S+15],16,530742520),A=o(A,b,p,f,d[S+2],23,-995338651),f=e(f,A,b,p,d[S+0],6,-198630844),p=e(p,f,A,b,d[S+7],10,1126891415),b=e(b,p,f,A,d[S+14],15,-1416354905),A=e(A,b,p,f,d[S+5],21,-57434055),f=e(f,A,b,p,d[S+12],6,1700485571),p=e(p,f,A,b,d[S+3],10,-1894986606),b=e(b,p,f,A,d[S+10],15,-1051523),A=e(A,b,p,f,d[S+1],21,-2054922799),f=e(f,A,b,p,d[S+8],6,1873313359),p=e(p,f,A,b,d[S+15],10,-30611744),b=e(b,p,f,A,d[S+6],15,-1560198380),A=e(A,b,p,f,d[S+13],21,1309151649),f=e(f,A,b,p,d[S+4],6,-145523070),p=e(p,f,A,b,d[S+11],10,-1120210379),b=e(b,p,f,A,d[S+2],15,718787259),A=e(A,b,p,f,d[S+9],21,-343485551),f=n(f,D),A=n(A,h),b=n(b,E),p=n(p,O)}return Array(f,A,b,p)}function _(d,m,f,A,b,p){return n(i(n(n(m,d),n(A,p)),b),f)}function r(d,m,f,A,b,p,S){return _(m&f|~m&A,d,m,b,p,S)}function u(d,m,f,A,b,p,S){return _(m&A|f&~A,d,m,b,p,S)}function o(d,m,f,A,b,p,S){return _(m^f^A,d,m,b,p,S)}function e(d,m,f,A,b,p,S){return _(f^(m|~A),d,m,b,p,S)}function n(d,m){var f=(65535&d)+(65535&m);return(d>>16)+(m>>16)+(f>>16)<<16|65535&f}function i(d,m){return d<<m|d>>>32-m}var s=t("./helpers");w.exports=function(d){return s.hash(d,l,16)}},{"./helpers":238}],240:[function(t,w,v){"use strict";function l(n,i){n[i>>5]|=128<<24-i%32,n[15+(i+64>>9<<4)]=i;for(var s=Array(80),d=1732584193,m=-271733879,f=-1732584194,A=271733878,b=-1009589776,p=0;p<n.length;p+=16){for(var S=d,D=m,h=f,E=A,O=b,C=0;C<80;C++){s[C]=C<16?n[p+C]:o(s[C-3]^s[C-8]^s[C-14]^s[C-16],1);var g=u(u(o(d,5),_(C,m,f,A)),u(u(b,s[C]),r(C)));b=A,A=f,f=o(m,30),m=d,d=g}d=u(d,S),m=u(m,D),f=u(f,h),A=u(A,E),b=u(b,O)}return Array(d,m,f,A,b)}function _(n,i,s,d){return n<20?i&s|~i&d:n<40?i^s^d:n<60?i&s|i&d|s&d:i^s^d}function r(n){return n<20?1518500249:n<40?1859775393:n<60?-1894007588:-899497514}function u(n,i){var s=(65535&n)+(65535&i);return(n>>16)+(i>>16)+(s>>16)<<16|65535&s}function o(n,i){return n<<i|n>>>32-i}var e=t("./helpers");w.exports=function(n){return e.hash(n,l,20,!0)}},{"./helpers":238}],241:[function(t,w,v){"use strict";var l=t("./helpers"),_=function(A,b){var p=(65535&A)+(65535&b);return(A>>16)+(b>>16)+(p>>16)<<16|65535&p},r=function(A,b){return A>>>b|A<<32-b},u=function(A,b){return A>>>b},o=function(A,b,p){return A&b^~A&p},e=function(A,b,p){return A&b^A&p^b&p},n=function(A){return r(A,2)^r(A,13)^r(A,22)},i=function(A){return r(A,6)^r(A,11)^r(A,25)},s=function(A){return r(A,7)^r(A,18)^u(A,3)},d=function(A){return r(A,17)^r(A,19)^u(A,10)},m=function(A,b){var p,S,D,h,E,O,C,g,M,T,L,j,N=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),G=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),$=new Array(64);A[b>>5]|=128<<24-b%32,A[15+(b+64>>9<<4)]=b;for(var M=0;M<A.length;M+=16){p=G[0],S=G[1],D=G[2],h=G[3],E=G[4],O=G[5],C=G[6],g=G[7];for(var T=0;T<64;T++)$[T]=T<16?A[T+M]:_(_(_(d($[T-2]),$[T-7]),s($[T-15])),$[T-16]),L=_(_(_(_(g,i(E)),o(E,O,C)),N[T]),$[T]),j=_(n(p),e(p,S,D)),g=C,C=O,O=E,E=_(h,L),h=D,D=S,S=p,p=_(L,j);G[0]=_(p,G[0]),G[1]=_(S,G[1]),G[2]=_(D,G[2]),G[3]=_(h,G[3]),G[4]=_(E,G[4]),G[5]=_(O,G[5]),G[6]=_(C,G[6]),G[7]=_(g,G[7])}return G};w.exports=function(f){return l.hash(f,m,32,!0)}},{"./helpers":238}],242:[function(t,w,v){(function(l){"use strict";function _(m){return m&&m.__esModule?m:{default:m}}var r=t("babel-runtime/core-js/object/create"),u=_(r),o=t("babel-runtime/helpers/classCallCheck"),e=_(o),n=t("babel-runtime/helpers/createClass"),i=_(n),s=t("babel-runtime/helpers/typeof"),d=_(s);!function(m){if((v===void 0?"undefined":(0,d.default)(v))==="object"&&w!==void 0)w.exports=m();else if(typeof ve=="function"&&ve.amd)ve([],m);else{var f;f=typeof window!="undefined"?window:l!==void 0?l:typeof self!="undefined"?self:this,f.mime=m()}}(function(){return function m(f,A,b){function p(h,E){if(!A[h]){if(!f[h]){var O=typeof t=="function"&&t;if(!E&&O)return O(h,!0);if(S)return S(h,!0);var C=new Error("Cannot find module '"+h+"'");throw C.code="MODULE_NOT_FOUND",C}var g=A[h]={exports:{}};f[h][0].call(g.exports,function(M){var T=f[h][1][M];return p(T||M)},g,g.exports,m,f,A,b)}return A[h].exports}for(var S=typeof t=="function"&&t,D=0;D<b.length;D++)p(b[D]);return p}({1:[function(m,f,A){var b=function(){function p(){(0,e.default)(this,p),this._types=(0,u.default)(null),this._extensions=(0,u.default)(null);for(var S=0;S<arguments.length;S++)this.define(arguments[S])}return(0,i.default)(p,[{key:"define",value:function(D,h){for(var E in D){for(var O=D[E],C=0;C<O.length;C++){var g=O[C];if(!h&&g in this._types)throw new Error('Attempt to change mapping for "'+g+'" extension from "'+this._types[g]+'" to "'+E+'". Pass `force=true` to allow this, otherwise remove "'+g+'" from the list of extensions for "'+E+'".');this._types[g]=E}!h&&this._extensions[E]||(this._extensions[E]=O[0])}}},{key:"getType",value:function(D){D=String(D);var h=D.replace(/^.*[\/\\]/,"").toLowerCase(),E=h.replace(/^.*\./,"").toLowerCase(),O=h.length<D.length;return(E.length<h.length-1||!O)&&this._types[E]||null}},{key:"getExtension",value:function(D){return(D=/^\s*([^;\s]*)/.test(D)&&RegExp.$1)&&this._extensions[D.toLowerCase()]||null}}]),p}();f.exports=b},{}],2:[function(m,f,A){var b=m("./Mime");f.exports=new b(m("./types/standard"),m("./types/other"))},{"./Mime":1,"./types/other":3,"./types/standard":4}],3:[function(m,f,A){f.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(m,f,A){f.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 Xe!="undefined"?Xe: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(t,w,v){"use strict";v.encodeURIComponent=function(l){try{return encodeURIComponent(l)}catch(_){return l}},v.escape=t("escape-html"),v.timestamp=function(l){if(l){var _=l;return typeof _=="string"&&(_=Number(_)),String(l).length===10&&(_*=1e3),new Date(_)}return Math.round(Date.now()/1e3)}},{"escape-html":157}],244:[function(t,w,v){(function(l,_){"use strict";function r(C){return C&&C.__esModule?C:{default:C}}function u(C,g){return C===void 0?g:C}function o(C,g){return function(M,T,L){if(M)return g(M);C({data:T,status:L.statusCode,headers:L.headers,res:L})}}var e,n=t("babel-runtime/core-js/json/stringify"),i=r(n),s=t("babel-runtime/helpers/typeof"),d=r(s),m=t("util"),f=t("url"),A=t("http"),b=t("https"),p=t("debug")("urllib"),S=t("humanize-ms"),D=0,h=Math.pow(2,31)-10,E=/^https?:\/\//i;v.TIMEOUTS=[S("300s"),S("300s")];var O=["json","text"];v.request=function(C,g,M){return arguments.length===2&&typeof g=="function"&&(M=g,g=null),typeof M=="function"?v.requestWithCallback(C,g,M):(e||(e=t("any-promise")),new e(function(T,L){v.requestWithCallback(C,g,o(T,L))}))},v.requestWithCallback=function(C,g,M){function T(){me&&(clearTimeout(me),me=null)}function L(){P&&(clearTimeout(P),P=null)}function j(he,Dt,ft){if(L(),!M)return console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),ae,l.pid,ee.method,C),void(he&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
|
|
|
stack: %s`,Date(),ae,l.pid,he.name,he.message,he.stack));var $t=M;M=null;var fn={};if(ft&&(x=ft.statusCode,fn=ft.headers),x===401&&fn["www-authenticate"]&&(!g.headers||!g.headers.Authorization)&&g.digestAuth){var An=fn["www-authenticate"];if(An.indexOf("Digest ")>=0)return p("Request#%d %s: got digest auth header WWW-Authenticate: %s",ae,C,An),g.headers=g.headers||{},g.headers.Authorization=digestAuthHeader(ee.method,ee.path,An,g.digestAuth),p("Request#%d %s: auth with digest header: %s",ae,C,g.headers.Authorization),ft.headers["set-cookie"]&&(g.headers.Cookie=ft.headers["set-cookie"].join(";")),v.requestWithCallback(C,g,$t)}var xn=Date.now()-I;be&&(be.contentDownload=xn),p("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",xn,y,x,ee.method,ee.host,ee.path,R,be);var tn={status:x,statusCode:x,headers:fn,size:y,aborted:Q,rt:xn,keepAliveSocket:R,data:Dt,requestUrls:g.requestUrls,timing:be,remoteAddress:V,remotePort:xe};if(he){var De="";J&&typeof J.getCurrentStatus=="function"&&(De=", agent status: "+(0,i.default)(J.getCurrentStatus())),he.message+=", "+ee.method+" "+C+" "+x+" (connected: "+c+", keepalive socket: "+R+De+`)
|
|
|
headers: `+(0,i.default)(fn),he.data=Dt,he.path=ee.path,he.status=x,he.headers=fn,he.res=tn}$t(he,Dt,g.streaming?ft:tn),g.emitter&&(K.url=C,K.socket=et&&et.connection,K.options=ee,K.size=oe,g.emitter.emit("response",{requestId:ae,error:he,ctx:g.ctx,req:K,res:tn}))}function N(he){var Dt=null;if(g.followRedirect&&statuses.redirect[he.statusCode]){g._followRedirectCount=(g._followRedirectCount||0)+1;var ft=he.headers.location;if(ft){if(!(g._followRedirectCount>g.maxRedirects)){var $t=g.formatRedirectUrl?g.formatRedirectUrl(C,ft):f.resolve(C,ft);p("Request#%d %s: `redirected` from %s to %s",ae,ee.path,C,$t),L(),g.headers&&g.headers.Host&&E.test(ft)&&(g.headers.Host=null);var fn=M;return M=null,v.requestWithCallback($t,g,fn),{redirect:!0,error:null}}Dt=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+C),Dt.name="MaxRedirectError"}else Dt=new Error("Got statusCode "+he.statusCode+" but cannot resolve next location from headers"),Dt.name="FollowRedirectError"}return{redirect:!1,error:Dt}}function G(he,Dt,ft){return ft(null,Dt,he.headers["content-encoding"])}function $(he){if(be&&(be.waiting=Date.now()-I),p("Request#%d %s `req response` event emit: status %d, headers: %j",ae,C,he.statusCode,he.headers),g.streaming){var Dt=N(he);return Dt.redirect?void he.resume():Dt.error?(he.resume(),j(Dt.error,null,he)):j(null,null,he)}if(he.on("close",function(){p("Request#%d %s: `res close` event emit, total size %d",ae,C,y)}),he.on("error",function(){p("Request#%d %s: `res error` event emit, total size %d",ae,C,y)}),he.on("aborted",function(){Q=!0,p("Request#%d %s: `res aborted` event emit, total size %d",ae,C,y)}),ce){var Dt=N(he);return Dt.redirect?void he.resume():Dt.error?(he.resume(),ce.end(),j(Dt.error,null,he)):(g.consumeWriteStream===!1?he.on("end",j.bind(null,null,null,he)):isNode010||isNode012?first([[ce,"close"],[he,"aborted"]],function(fn,An,xn){p("Request#%d %s: writeStream or res %s event emitted",ae,C,xn),j(a||null,null,he)}):ce.on("close",function(){p("Request#%d %s: writeStream close event emitted",ae,C),j(a||null,null,he)}),he.pipe(ce))}var ft=[];he.on("data",function($t){p("Request#%d %s: `res data` event emit, size %d",ae,C,$t.length),y+=$t.length,ft.push($t)}),he.on("end",function(){var $t=_.concat(ft,y);if(p("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",ae,C,y,he._dumped),a)return j(a,$t,he);var fn=N(he);if(fn.error)return j(fn.error,$t,he);fn.redirect||G(he,$t,function(An,xn,tn){if(An)return j(An,$t,he);if(!tn&&O.indexOf(g.dataType)>=0){try{xn=decodeBodyByCharset(xn,he)}catch(Ye){return p("decodeBodyByCharset error: %s",Ye),j(null,xn,he)}if(g.dataType==="json")if(y===0)xn=null;else{var De=parseJSON(xn,re);De.error?An=De.error:xn=De.data}}Q&&p("Request#%d %s: Remote socket was terminated before `response.end()` was called",ae,C),j(An,xn,he)})})}function H(){p("Response timer ticking, timeout: %d",Qe),P=setTimeout(function(){P=null;var he="Response timeout for "+Qe+"ms";a=new Error(he),a.name="ResponseTimeoutError",a.requestId=ae,p("ResponseTimeout: Request#%d %s %s: %s, connected: %s",ae,C,a.name,he,c),F()},Qe)}function F(){p("Request#%d %s abort, connected: %s",ae,C,c),et.socket||(a.noSocket=!0,j(a)),et.abort()}if(!C||typeof C!="string"&&(C===void 0?"undefined":(0,d.default)(C))!=="object"){var te=m.format("expect request url to be a string or a http request options, but got %j",C);throw new Error(te)}arguments.length===2&&typeof g=="function"&&(M=g,g=null),g=g||{},D>=h&&(D=0);var ae=++D;g.requestUrls=g.requestUrls||[];var K={requestId:ae,url:C,args:g,ctx:g.ctx};g.emitter&&g.emitter.emit("request",K),g.timeout=g.timeout||v.TIMEOUTS,g.maxRedirects=g.maxRedirects||10,g.streaming=g.streaming||g.customResponse;var k,I=Date.now();typeof C=="string"?(E.test(C)||(C="http://"+C),k=f.parse(C)):k=C;var z=(g.type||g.method||k.method||"GET").toUpperCase(),X=k.port||80,Z=A,J=u(g.agent,v.agent),re=g.fixJSONCtlChars;k.protocol==="https:"&&(Z=b,J=u(g.httpsAgent,v.httpsAgent),k.port||(X=443));var ee={host:k.hostname||k.host||"localhost",path:k.path||"/",method:z,port:X,agent:J,headers:g.headers||{},lookup:g.lookup};Array.isArray(g.timeout)?ee.requestTimeout=g.timeout[g.timeout.length-1]:g.timeout!==void 0&&(ee.requestTimeout=g.timeout);for(var se=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","secureOptions"],ue=0;ue<se.length;ue++){var q=se[ue];g.hasOwnProperty(q)&&(ee[q]=g[q])}ee.rejectUnauthorized!==!1||ee.hasOwnProperty("secureOptions")||(ee.secureOptions=t("constants").SSL_OP_NO_TLSv1_2);var Y=g.auth||k.auth;Y&&(ee.auth=Y);var ie=g.content||g.data,B=z==="GET"||z==="HEAD"||g.dataAsQueryString;if(!g.content&&ie&&typeof ie!="string"&&!_.isBuffer(ie))if(B)ie=g.nestedQuerystring?qs.stringify(ie):querystring.stringify(ie);else{var W=ee.headers["Content-Type"]||ee.headers["content-type"];W||(W=g.contentType==="json"?"application/json":"application/x-www-form-urlencoded",ee.headers["Content-Type"]=W),ie=parseContentType(W).type==="application/json"?(0,i.default)(ie):g.nestedQuerystring?qs.stringify(ie):querystring.stringify(ie)}B&&ie&&(ee.path+=(k.query?"&":"?")+ie,ie=null);var oe=0;if(ie){var ne=ie.length;_.isBuffer(ie)||(ne=_.byteLength(ie)),oe=ee.headers["Content-Length"]=ne}g.dataType==="json"&&(ee.headers.Accept="application/json"),typeof g.beforeRequest=="function"&&g.beforeRequest(ee);var me=null,P=null,a=null,c=!1,R=!1,y=0,x=-1,Q=!1,V="",xe="",be=null;g.timing&&(be={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0}),ee.headers["User-Agent"]||ee.headers["user-agent"]||(ee.headers["User-Agent"]=navigator.userAgent),g.gzip&&(ee.headers["Accept-Encoding"]||ee.headers["accept-encoding"]||(ee.headers["Accept-Encoding"]="gzip"));var ce=g.writeStream;p("Request#%d %s %s with headers %j, options.path: %s",ae,z,C,ee.headers,ee.path),g.requestUrls.push(C);var Se,Qe;Array.isArray(g.timeout)?(Se=S(g.timeout[0]),Qe=S(g.timeout[1])):Se=Qe=S(g.timeout),p("ConnectTimeout: %d, ResponseTimeout: %d",Se,Qe);var et;try{et=Z.request(ee,$)}catch(he){return j(he)}return typeof window=="undefined"?function(){p("Connect timer ticking, timeout: %d",Se),me=setTimeout(function(){me=null,x===-1&&(x=-2);var he="Connect timeout for "+Se+"ms",Dt="ConnectionTimeoutError";et.socket||(Dt="SocketAssignTimeoutError",he+=", working sockets is full"),a=new Error(he),a.name=Dt,a.requestId=ae,p("ConnectTimeout: Request#%d %s %s: %s, connected: %s",ae,C,a.name,he,c),F()},Se)}():et.on("requestTimeout",function(){x===-1&&(x=-2);var he="Connect timeout for "+Se+"ms";a=new Error(he),a.name="ConnectionTimeoutError",a.requestId=ae,F()}),be&&et.on("finish",function(){be.requestSent=Date.now()-I}),et.once("socket",function(he){be&&(be.queuing=Date.now()-I),isNode010&&he.socket&&(he=he.socket);var Dt=he.readyState;if(Dt==="opening")return he.once("lookup",function(ft,$t,fn){p("Request#%d %s lookup: %s, %s, %s",ae,C,ft,$t,fn),be&&(be.dnslookup=Date.now()-I),$t&&(V=$t)}),void he.once("connect",function(){be&&(be.connected=Date.now()-I),T(),H(),p("Request#%d %s new socket connected",ae,C),c=!0,V||(V=he.remoteAddress),xe=he.remotePort});p("Request#%d %s reuse socket connected, readyState: %s",ae,C,Dt),c=!0,R=!0,V||(V=he.remoteAddress),xe=he.remotePort,T(),H()}),et.on("error",function(he){he.name!=="Error"&&he.name!=="TypeError"||(he.name=c?"ResponseError":"RequestError"),he.message+=' (req "error")',p("Request#%d %s `req error` event emit, %s: %s",ae,C,he.name,he.message),j(a||he)}),ce&&ce.once("error",function(he){he.message+=' (writeStream "error")',a=he,p("Request#%d %s `writeStream error` event emit, %s: %s",ae,C,he.name,he.message),F()}),g.stream?(g.stream.pipe(et),g.stream.once("error",function(he){he.message+=' (stream "error")',a=he,p("Request#%d %s `readStream error` event emit, %s: %s",ae,C,he.name,he.message),F()})):et.end(ie),et.requestId=ae,et}}).call(this,t("_process"),t("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(ve){function t(v){if(w[v])return w[v].exports;var l=w[v]={i:v,l:!1,exports:{}};return ve[v].call(l.exports,l,l.exports,t),l.l=!0,l.exports}var w={};t.m=ve,t.c=w,t.d=function(v,l,_){t.o(v,l)||Object.defineProperty(v,l,{configurable:!1,enumerable:!0,get:_})},t.n=function(v){var l=v&&v.__esModule?function(){return v.default}:function(){return v};return t.d(l,"a",l),l},t.o=function(v,l){return Object.prototype.hasOwnProperty.call(v,l)},t.p="",t(t.s=12)}([function(ve,t,w){!function(v,l){ve.exports=t=l()}(0,function(){var v=v||function(l,_){var r=Object.create||function(){function b(){}return function(p){var S;return b.prototype=p,S=new b,b.prototype=null,S}}(),u={},o=u.lib={},e=o.Base=function(){return{extend:function(p){var S=r(this);return p&&S.mixIn(p),S.hasOwnProperty("init")&&this.init!==S.init||(S.init=function(){S.$super.init.apply(this,arguments)}),S.init.prototype=S,S.$super=this,S},create:function(){var p=this.extend();return p.init.apply(p,arguments),p},init:function(){},mixIn:function(p){for(var S in p)p.hasOwnProperty(S)&&(this[S]=p[S]);p.hasOwnProperty("toString")&&(this.toString=p.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),n=o.WordArray=e.extend({init:function(p,S){p=this.words=p||[],this.sigBytes=S!=null?S:4*p.length},toString:function(p){return(p||s).stringify(this)},concat:function(p){var S=this.words,D=p.words,h=this.sigBytes,E=p.sigBytes;if(this.clamp(),h%4)for(var O=0;O<E;O++){var C=D[O>>>2]>>>24-O%4*8&255;S[h+O>>>2]|=C<<24-(h+O)%4*8}else for(var O=0;O<E;O+=4)S[h+O>>>2]=D[O>>>2];return this.sigBytes+=E,this},clamp:function(){var p=this.words,S=this.sigBytes;p[S>>>2]&=4294967295<<32-S%4*8,p.length=l.ceil(S/4)},clone:function(){var p=e.clone.call(this);return p.words=this.words.slice(0),p},random:function(p){for(var S,D=[],h=0;h<p;h+=4){var E=function(O){var O=O,C=987654321,g=4294967295;return function(){C=36969*(65535&C)+(C>>16)&g,O=18e3*(65535&O)+(O>>16)&g;var M=(C<<16)+O&g;return M/=4294967296,(M+=.5)*(l.random()>.5?1:-1)}}(4294967296*(S||l.random()));S=987654071*E(),D.push(4294967296*E()|0)}return new n.init(D,p)}}),i=u.enc={},s=i.Hex={stringify:function(p){for(var S=p.words,D=p.sigBytes,h=[],E=0;E<D;E++){var O=S[E>>>2]>>>24-E%4*8&255;h.push((O>>>4).toString(16)),h.push((15&O).toString(16))}return h.join("")},parse:function(p){for(var S=p.length,D=[],h=0;h<S;h+=2)D[h>>>3]|=parseInt(p.substr(h,2),16)<<24-h%8*4;return new n.init(D,S/2)}},d=i.Latin1={stringify:function(p){for(var S=p.words,D=p.sigBytes,h=[],E=0;E<D;E++){var O=S[E>>>2]>>>24-E%4*8&255;h.push(String.fromCharCode(O))}return h.join("")},parse:function(p){for(var S=p.length,D=[],h=0;h<S;h++)D[h>>>2]|=(255&p.charCodeAt(h))<<24-h%4*8;return new n.init(D,S)}},m=i.Utf8={stringify:function(p){try{return decodeURIComponent(escape(d.stringify(p)))}catch(S){throw new Error("Malformed UTF-8 data")}},parse:function(p){return d.parse(unescape(encodeURIComponent(p)))}},f=o.BufferedBlockAlgorithm=e.extend({reset:function(){this._data=new n.init,this._nDataBytes=0},_append:function(p){typeof p=="string"&&(p=m.parse(p)),this._data.concat(p),this._nDataBytes+=p.sigBytes},_process:function(p){var S=this._data,D=S.words,h=S.sigBytes,E=this.blockSize,O=4*E,C=h/O;C=p?l.ceil(C):l.max((0|C)-this._minBufferSize,0);var g=C*E,M=l.min(4*g,h);if(g){for(var T=0;T<g;T+=E)this._doProcessBlock(D,T);var L=D.splice(0,g);S.sigBytes-=M}return new n.init(L,M)},clone:function(){var p=e.clone.call(this);return p._data=this._data.clone(),p},_minBufferSize:0}),A=(o.Hasher=f.extend({cfg:e.extend(),init:function(p){this.cfg=this.cfg.extend(p),this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(p){return this._append(p),this._process(),this},finalize:function(p){return p&&this._append(p),this._doFinalize()},blockSize:16,_createHelper:function(p){return function(S,D){return new p.init(D).finalize(S)}},_createHmacHelper:function(p){return function(S,D){return new A.HMAC.init(p,D).finalize(S)}}}),u.algo={});return u}(Math);return v})},function(ve,t,w){"use strict";function v(r,u){if(!(r instanceof u))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function r(u,o){for(var e=0;e<o.length;e++){var n=o[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(u,n.key,n)}}return function(u,o,e){return o&&r(u.prototype,o),e&&r(u,e),u}}(),_=function(){function r(){v(this,r)}return l(r,null,[{key:"detectIEVersion",value:function(){for(var o=4,e=document.createElement("div"),n=e.getElementsByTagName("i");e.innerHTML="<!--[if gt IE "+o+"]><i></i><![endif]-->",n[0];)o++;return o>4&&o}},{key:"extend",value:function(o,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&e[n]&&(o[n]=e[n])}},{key:"isArray",value:function(o){return Object.prototype.toString.call(arg)==="[object Array]"}},{key:"getFileType",value:function(o){return o=o.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(o)?"video":/.mp3|.wav|.ape|.cda|.au|.midi|.mac|.aac|.ac3|.acm|.amr|.caf|.flac|.m4a|.ra|.wma/.test(o)?"audio":/.bmp|.jpg|.jpeg|.png/.test(o)?"img":"other"}},{key:"isImage",value:function(o){return o=o.toLowerCase(),!!/.jpg|.jpeg|.png/.test(o)}},{key:"ISODateString",value:function(o){function e(n){return n<10?"0"+n:n}return o.getUTCFullYear()+"-"+e(o.getUTCMonth()+1)+"-"+e(o.getUTCDate())+"T"+e(o.getUTCHours())+":"+e(o.getUTCMinutes())+":"+e(o.getUTCSeconds())+"Z"}},{key:"isIntNum",value:function(o){return!!/^\d+$/.test(o)}}]),r}();t.default=_},function(ve,t,w){!function(v,l){ve.exports=t=l(w(0))}(0,function(v){return function(l){function _(A,b,p,S,D,h,E){var O=A+(b&p|~b&S)+D+E;return(O<<h|O>>>32-h)+b}function r(A,b,p,S,D,h,E){var O=A+(b&S|p&~S)+D+E;return(O<<h|O>>>32-h)+b}function u(A,b,p,S,D,h,E){var O=A+(b^p^S)+D+E;return(O<<h|O>>>32-h)+b}function o(A,b,p,S,D,h,E){var O=A+(p^(b|~S))+D+E;return(O<<h|O>>>32-h)+b}var e=v,n=e.lib,i=n.WordArray,s=n.Hasher,d=e.algo,m=[];!function(){for(var A=0;A<64;A++)m[A]=4294967296*l.abs(l.sin(A+1))|0}();var f=d.MD5=s.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(b,p){for(var S=0;S<16;S++){var D=p+S,h=b[D];b[D]=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8)}var E=this._hash.words,O=b[p+0],C=b[p+1],g=b[p+2],M=b[p+3],T=b[p+4],L=b[p+5],j=b[p+6],N=b[p+7],G=b[p+8],$=b[p+9],H=b[p+10],F=b[p+11],te=b[p+12],ae=b[p+13],K=b[p+14],k=b[p+15],I=E[0],z=E[1],X=E[2],Z=E[3];I=_(I,z,X,Z,O,7,m[0]),Z=_(Z,I,z,X,C,12,m[1]),X=_(X,Z,I,z,g,17,m[2]),z=_(z,X,Z,I,M,22,m[3]),I=_(I,z,X,Z,T,7,m[4]),Z=_(Z,I,z,X,L,12,m[5]),X=_(X,Z,I,z,j,17,m[6]),z=_(z,X,Z,I,N,22,m[7]),I=_(I,z,X,Z,G,7,m[8]),Z=_(Z,I,z,X,$,12,m[9]),X=_(X,Z,I,z,H,17,m[10]),z=_(z,X,Z,I,F,22,m[11]),I=_(I,z,X,Z,te,7,m[12]),Z=_(Z,I,z,X,ae,12,m[13]),X=_(X,Z,I,z,K,17,m[14]),z=_(z,X,Z,I,k,22,m[15]),I=r(I,z,X,Z,C,5,m[16]),Z=r(Z,I,z,X,j,9,m[17]),X=r(X,Z,I,z,F,14,m[18]),z=r(z,X,Z,I,O,20,m[19]),I=r(I,z,X,Z,L,5,m[20]),Z=r(Z,I,z,X,H,9,m[21]),X=r(X,Z,I,z,k,14,m[22]),z=r(z,X,Z,I,T,20,m[23]),I=r(I,z,X,Z,$,5,m[24]),Z=r(Z,I,z,X,K,9,m[25]),X=r(X,Z,I,z,M,14,m[26]),z=r(z,X,Z,I,G,20,m[27]),I=r(I,z,X,Z,ae,5,m[28]),Z=r(Z,I,z,X,g,9,m[29]),X=r(X,Z,I,z,N,14,m[30]),z=r(z,X,Z,I,te,20,m[31]),I=u(I,z,X,Z,L,4,m[32]),Z=u(Z,I,z,X,G,11,m[33]),X=u(X,Z,I,z,F,16,m[34]),z=u(z,X,Z,I,K,23,m[35]),I=u(I,z,X,Z,C,4,m[36]),Z=u(Z,I,z,X,T,11,m[37]),X=u(X,Z,I,z,N,16,m[38]),z=u(z,X,Z,I,H,23,m[39]),I=u(I,z,X,Z,ae,4,m[40]),Z=u(Z,I,z,X,O,11,m[41]),X=u(X,Z,I,z,M,16,m[42]),z=u(z,X,Z,I,j,23,m[43]),I=u(I,z,X,Z,$,4,m[44]),Z=u(Z,I,z,X,te,11,m[45]),X=u(X,Z,I,z,k,16,m[46]),z=u(z,X,Z,I,g,23,m[47]),I=o(I,z,X,Z,O,6,m[48]),Z=o(Z,I,z,X,N,10,m[49]),X=o(X,Z,I,z,K,15,m[50]),z=o(z,X,Z,I,L,21,m[51]),I=o(I,z,X,Z,te,6,m[52]),Z=o(Z,I,z,X,M,10,m[53]),X=o(X,Z,I,z,H,15,m[54]),z=o(z,X,Z,I,C,21,m[55]),I=o(I,z,X,Z,G,6,m[56]),Z=o(Z,I,z,X,k,10,m[57]),X=o(X,Z,I,z,j,15,m[58]),z=o(z,X,Z,I,ae,21,m[59]),I=o(I,z,X,Z,T,6,m[60]),Z=o(Z,I,z,X,F,10,m[61]),X=o(X,Z,I,z,g,15,m[62]),z=o(z,X,Z,I,$,21,m[63]),E[0]=E[0]+I|0,E[1]=E[1]+z|0,E[2]=E[2]+X|0,E[3]=E[3]+Z|0},_doFinalize:function(){var b=this._data,p=b.words,S=8*this._nDataBytes,D=8*b.sigBytes;p[D>>>5]|=128<<24-D%32;var h=l.floor(S/4294967296),E=S;p[15+(D+64>>>9<<4)]=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),p[14+(D+64>>>9<<4)]=16711935&(E<<8|E>>>24)|4278255360&(E<<24|E>>>8),b.sigBytes=4*(p.length+1),this._process();for(var O=this._hash,C=O.words,g=0;g<4;g++){var M=C[g];C[g]=16711935&(M<<8|M>>>24)|4278255360&(M<<24|M>>>8)}return O},clone:function(){var b=s.clone.call(this);return b._hash=this._hash.clone(),b}});e.MD5=s._createHelper(f),e.HmacMD5=s._createHmacHelper(f)}(Math),v.MD5})},function(ve,t,w){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UPLOADSTATE={INIT:"init",UPLOADING:"uploading",COMPLETE:"complete",INTERRUPT:"interrupt"},t.UPLOADSTEP={INIT:"init",PART:"part",COMPLETE:"complete"},t.UPLOADDEFAULT={PARALLEL:5,PARTSIZE:1048576}},function(ve,t,w){"use strict";function v(f){return f&&f.__esModule?f:{default:f}}function l(f,A){if(!(f instanceof A))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var _=function(){function f(A,b){for(var p=0;p<b.length;p++){var S=b[p];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(A,S.key,S)}}return function(A,b,p){return b&&f(A.prototype,b),p&&f(A,p),A}}(),r=w(5),u=v(r),o=w(25),e=v(o),n=w(6),i=v(n),s=w(7),d=v(s),m=function(){function f(A){l(this,f);var b=d.default.os.name,p=d.default.os.version||"",S=d.default.browser.name,D=d.default.browser.version||"",h=window.location.href,E="";h&&(E=d.default.getHost(h));var O="pc";d.default.os.ipad?O="pad":(d.default.os.iphone||d.default.os.android)&&(O="phone"),this._ri=u.default.create(),this.initParam={APIVersion:"0.6.0",lv:"1",av:i.default.version,pd:"upload",sm:"upload",md:"uploader",uuid:f.getUuid(),os:b,ov:p,et:S,ev:D,uat:navigator.userAgent,app_n:E,tt:O,dm:"h5",ut:""}}return _(f,[{key:"log",value:function(b,p){p&&p.ri?(this._ri=p.ri,delete p.ri):this._ri=u.default.create(),p&&p.ut&&(this.initParam.ut=p.ut,delete p.ut),this.initParam.t=new Date().getTime(),this.initParam.ll=b=="20006"?"error":"info",this.initParam.ri=this._ri,this.initParam.e=b;var S=[];if(p)for(var D in p)S.push(D+"="+p[D]);var h=S.join("&");this.initParam.args=encodeURIComponent(h==""?"0":h);var E=[];for(var D in this.initParam)E.push(D+"="+this.initParam[D]);var O=E.join("&");AliyunUpload&&AliyunUpload.__logTestCallback__?AliyunUpload.__logTestCallback__(O):new Image(0,0).src="https://videocloud.cn-hangzhou.log.aliyuncs.com/logstores/upload/track?"+O}}],[{key:"getUuid",value:function(){var b=e.default.get("p_h5_upload_u");return b||(b=u.default.create(),e.default.set("p_h5_upload_u",b,730)),b}},{key:"getClientId",value:function(){return e.default.get("p_h5_upload_clientId")}},{key:"setClientId",value:function(b){return b||(b=u.default.create()),e.default.set("p_h5_upload_clientId",b,730),b}}]),f}();t.default=m},function(ve,t,w){"use strict";function v(r,u){if(!(r instanceof u))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function r(u,o){for(var e=0;e<o.length;e++){var n=o[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(u,n.key,n)}}return function(u,o,e){return o&&r(u.prototype,o),e&&r(u,e),u}}(),_=function(){function r(){v(this,r)}return l(r,null,[{key:"create",value:function(o,e){var n,i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),s=[];if(e=e||i.length,o)for(n=0;n<o;n++)s[n]=i[0|Math.random()*e];else{var d;for(s[8]=s[13]=s[18]=s[23]="-",s[14]="4",n=0;n<36;n++)s[n]||(d=0|16*Math.random(),s[n]=i[n==19?3&d|8:d])}return s.join("")}}]),r}();t.default=_},function(ve,t,w){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var v={version:"1.5.0"};t.default=v},function(ve,t,w){"use strict";function v(n,i){if(!(n instanceof i))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function n(i,s){for(var d=0;d<s.length;d++){var m=s[d];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(i,m.key,m)}}return function(i,s,d){return s&&n(i.prototype,s),d&&n(i,d),i}}(),_=function(i){var s=navigator.userAgent,d="other";if(i.ios)return"iOS";if(i.android)return"android";if(s.indexOf("Baiduspider")>-1)return"Baiduspider";if(s.indexOf("PlayStation")>-1)return"PS4";var m=navigator.platform=="Win32"||navigator.platform=="Windows"||s.indexOf("Windows")>-1,f=navigator.platform=="Mac68K"||navigator.platform=="MacPPC"||navigator.platform=="Macintosh"||navigator.platform=="MacIntel";return f&&(d="macOS"),navigator.platform=="X11"&&!m&&!f&&(d="Unix"),String(navigator.platform).indexOf("Linux")>-1&&(d="Linux"),m?"windows":d},r=function(){var i=navigator.userAgent,s="";return(i.indexOf("Windows NT 5.0")>-1||i.indexOf("Windows 2000")>-1)&&(s="2000"),(i.indexOf("Windows NT 5.1")>-1||i.indexOf("Windows XP")>-1)&&(s="XP"),(i.indexOf("Windows NT 5.2")>-1||i.indexOf("Windows 2003")>-1)&&(s="2003"),(i.indexOf("Windows NT 6.0")>-1||i.indexOf("Windows Vista")>-1)&&(s="Vista"),(i.indexOf("Windows NT 6.1")>-1||i.indexOf("Windows 7")>-1)&&(s="7"),(i.indexOf("Windows NT 6.2")>-1||i.indexOf("Windows 8")>-1)&&(s="8"),(i.indexOf("Windows NT 6.3")>-1||i.indexOf("Windows 8.1")>-1)&&(s="8.1"),(i.indexOf("Windows NT 10")>-1||i.indexOf("Windows 10")>-1)&&(s="10"),s},u=function(i){var s=navigator.userAgent.toLowerCase();return i.chrome?"Chrome":i.firefox?"Firefox":i.safari?"Safari":i.webview?"webview":i.ie?/edge/.test(s)?"Edge":"IE":/baiduspider/.test(s)?"Baiduspider":/ucweb/.test(s)||/UCBrowser/.test(s)?"UC":/opera/.test(s)?"Opera":/ucweb/.test(s)?"UC":/360se/.test(s)?"360\u6D4F\u89C8\u5668":/bidubrowser/.test(s)?"\u767E\u5EA6\u6D4F\u89C8\u5668":/metasr/.test(s)?"\u641C\u72D7\u6D4F\u89C8\u5668":/lbbrowser/.test(s)?"\u730E\u8C79\u6D4F\u89C8\u5668":/micromessenger/.test(s)?"\u5FAE\u4FE1\u5185\u7F6E\u6D4F\u89C8\u5668":/qqbrowser/.test(s)?"QQ\u6D4F\u89C8\u5668":/playstation/.test(s)?"PS4\u6D4F\u89C8\u5668":void 0},o=function(){var n={},i={},s=navigator.userAgent,d=navigator.platform,m=s.match(/Web[kK]it[\/]{0,1}([\d.]+)/),f=s.match(/(Android);?[\s\/]+([\d.]+)?/),A=!!s.match(/\(Macintosh\; Intel /),b=s.match(/(iPad).*OS\s([\d_]+)/),p=s.match(/(iPod)(.*OS\s([\d_]+))?/),S=!b&&s.match(/(iPhone\sOS)\s([\d_]+)/),D=s.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),h=/Win\d{2}|Windows/.test(d),E=s.match(/Windows Phone ([\d.]+)/),O=D&&s.match(/TouchPad/),C=s.match(/Kindle\/([\d.]+)/),g=s.match(/Silk\/([\d._]+)/),M=s.match(/(BlackBerry).*Version\/([\d.]+)/),T=s.match(/(BB10).*Version\/([\d.]+)/),L=s.match(/(RIM\sTablet\sOS)\s([\d.]+)/),j=s.match(/PlayBook/),N=s.match(/Chrome\/([\d.]+)/)||s.match(/CriOS\/([\d.]+)/),G=s.match(/Firefox\/([\d.]+)/),$=s.match(/\((?:Mobile|Tablet); rv:([\d.]+)\).*Firefox\/[\d.]+/),H=s.match(/MSIE\s([\d.]+)/)||s.match(/Trident\/[\d](?=[^\?]+).*rv:([0-9.].)/),F=!N&&s.match(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/),te=F||s.match(/Version\/([\d.]+)([^S](Safari)|[^M]*(Mobile)[^S]*(Safari))/);if((i.webkit=!!m)&&(i.version=m[1]),f&&(n.android=!0,n.version=f[2]),S&&!p&&(n.ios=n.iphone=!0,n.version=S[2].replace(/_/g,".")),b&&(n.ios=n.ipad=!0,n.version=b[2].replace(/_/g,".")),p&&(n.ios=n.ipod=!0,n.version=p[3]?p[3].replace(/_/g,"."):null),E&&(n.wp=!0,n.version=E[1]),D&&(n.webos=!0,n.version=D[2]),O&&(n.touchpad=!0),M&&(n.blackberry=!0,n.version=M[2]),T&&(n.bb10=!0,n.version=T[2]),L&&(n.rimtabletos=!0,n.version=L[2]),j&&(i.playbook=!0),C&&(n.kindle=!0,n.version=C[1]),g&&(i.silk=!0,i.version=g[1]),!g&&n.android&&s.match(/Kindle Fire/)&&(i.silk=!0),N&&(i.chrome=!0,i.version=N[1]),G&&(i.firefox=!0,i.version=G[1]),$&&(n.firefoxos=!0,n.version=$[1]),H&&(i.ie=!0,i.version=H[1]),te&&(A||n.ios||h||f)&&(i.safari=!0,n.ios||(i.version=te[1])),F&&(i.webview=!0),A){var ae=s.match(/[\d]*_[\d]*_[\d]*/);ae&&ae.length>0&&ae[0]&&(n.version=ae[0].replace(/_/g,"."))}return n.tablet=!!(b||j||f&&!s.match(/Mobile/)||G&&s.match(/Tablet/)||H&&!s.match(/Phone/)&&s.match(/Touch/)),n.phone=!(n.tablet||n.ipod||!(f||S||D||M||T||N&&s.match(/Android/)||N&&s.match(/CriOS\/([\d.]+)/)||G&&s.match(/Mobile/)||H&&s.match(/Touch/))),n.pc=!n.tablet&&!n.phone,A?n.name="macOS":h?(n.name="windows",n.version=r()):n.name=_(n),i.name=u(i),{os:n,browser:i}}(),e=function(){function n(){v(this,n)}return l(n,null,[{key:"getHost",value:function(s){var d="";if(s===void 0||s==null||s=="")return"";var m=s.indexOf("//"),f=s;m>-1&&(f=s.substring(m+2));var d=f,A=f.split("/");return A&&A.length>0&&(d=A[0]),A=d.split(":"),A&&A.length>0&&(d=A[0]),d}},{key:"os",get:function(){return o.os}},{key:"browser",get:function(){var s=o.browser;return s.name||(s.name=u()),s}}]),n}();t.default=e},function(ve,t,w){"use strict";function v(r,u){if(!(r instanceof u))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function r(u,o){for(var e=0;e<o.length;e++){var n=o[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(u,n.key,n)}}return function(u,o,e){return o&&r(u.prototype,o),e&&r(u,e),u}}(),_=function(){function r(){v(this,r)}return l(r,null,[{key:"get",value:function(o,e,n,i,s){var d;n=n||function(){},typeof XMLHttpRequest=="undefined"&&(window.XMLHttpRequest=function(){try{return new window.ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(m){}try{return new window.ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(m){}try{return new window.ActiveXObject("Msxml2.XMLHTTP")}catch(m){}throw new Error("This browser does not support XMLHttpRequest.")}),d=new XMLHttpRequest,d.onreadystatechange=function(){d.readyState===4&&(d.status===200?e(d.responseText):n(d.responseText))};try{i===void 0&&(i=!0),d.open("GET",o,i),s&&(d.withCredentials=!0)}catch(m){return void n(m)}try{d.send()}catch(m){n(m)}}}]),r}();t.default=_},function(ve,t,w){"use strict";function v(o,e){if(!(o instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function o(e,n){for(var i=0;i<n.length;i++){var s=n[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}return function(e,n,i){return n&&o(e.prototype,n),i&&o(e,i),e}}(),_=w(27),r=w(30),u=(w(10),function(){function o(){v(this,o)}return l(o,null,[{key:"randomUUID",value:function(){for(var n=[],i="0123456789abcdef",s=0;s<36;s++)n[s]=i.substr(Math.floor(16*Math.random()),1);return n[14]="4",n[19]=i.substr(3&n[19]|8,1),n[8]=n[13]=n[18]=n[23]="-",n.join("")}},{key:"aliyunEncodeURI",value:function(n){var i=encodeURIComponent(n);return i=i.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(n,i,s){if(!n)throw new Error("PrismPlayer Error: vid should not be null!");var d=[];for(var m in n)d.push(m);for(var f=d.sort(),A="",b=f.length,m=0;m<b;m++){var p=o.aliyunEncodeURI(f[m]),S=o.aliyunEncodeURI(n[f[m]]);A==""?A=p+i+S:A+=s+p+i+S}return A}},{key:"makeChangeSiga",value:function(n,i){if(!n)throw new Error("PrismPlayer Error: vid should not be null!");return r.stringify(_("GET&"+o.aliyunEncodeURI("/")+"&"+o.aliyunEncodeURI(o.makeUTF8sort(n,"=","&")),i+"&"))}}]),o}());t.default=u},function(ve,t,w){!function(v,l){ve.exports=t=l(w(0))}(0,function(v){return v.enc.Utf8})},function(ve,t,w){!function(v,l){ve.exports=t=l(w(0))}(0,function(v){return v.enc.Hex})},function(ve,t,w){ve.exports=w(13)},function(ve,t,w){"use strict";var v,l,_=(typeof Symbol=="function"&&Symbol.iterator,w(14)),r=function(o){return o&&o.__esModule?o:{default:o}}(_),u={Vod:r.default};v=[],(l=function(){return u}.apply(t,v))!==void 0&&(ve.exports=l),window.AliyunUpload=u,Ue.exports=AliyunUpload},function(ve,t,w){"use strict";function v(T){return T&&T.__esModule?T:{default:T}}function l(T,L){if(!(T instanceof L))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var _=function(){function T(L,j){for(var N=0;N<j.length;N++){var G=j[N];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(L,G.key,G)}}return function(L,j,N){return j&&T(L.prototype,j),N&&T(L,N),L}}(),r=w(15),u=w(3),o=w(16),e=v(o),n=w(18),i=v(n),s=w(24),d=v(s),m=w(4),f=v(m),A=w(1),b=v(A),p=w(5),S=v(p),D=w(26),h=v(D),E=w(31),O=v(E),C=w(32),g=v(C),M=(w(2),function(){function T(L){l(this,T),this.options=L,this.options.partSize=this.options.partSize||u.UPLOADDEFAULT.PARTSIZE,this.options.parallel=this.options.parallel||u.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=r.VODSTATE.INIT,this._uploadList=[],this._curIndex=-1,this._ossUpload=null,this._log=new f.default,this._retryCount=0,this._retryTotal=this.options.retryCount||3,this._retryDuration=this.options.retryDuration||2,this._state=r.VODSTATE.INIT,this._uploadWay="vod",this._onbeforeunload=!1,this._invalidUserId=!1,this._initEvent()}return _(T,[{key:"init",value:function(j,N,G,$){return this._retryCount=0,!(G&&!$||!G&&$)&&!(j&&!N||!j&&N)&&(this._ossCreditor.accessKeyId=j,this._ossCreditor.accessKeySecret=N,this._ossCreditor.securityToken=G,this._ossCreditor.expireTime=$,!0)}},{key:"addFile",value:function(j,N,G,$,H,F){if(!j)return!1;if(j.size==0)try{this.options.onUploadFailed({file:j},"EmptyFile","\u6587\u4EF6\u5927\u5C0F\u4E3A0\uFF0C\u4E0D\u80FD\u4E0A\u4F20")}catch(k){console.log(k)}for(var te=(this.options,0);te<this._uploadList.length;te++)if(this._uploadList[te].file==j)return!1;var ae=new Object;if(ae.file=j,ae._endpoint=N,ae._bucket=G,ae._object=$,ae.state=r.UPLOADSTATE.INIT,ae.isImage=b.default.isImage(j.name),!ae.isImage&&this.options.enableUploadProgress){var K=this;g.default.getMd5(j,function(k){ae.fileHash=k;var I=K._getCheckoutpoint(ae);K.options.localCheckpoint||I||K._getCheckoutpointFromCloud(ae,function(z){if(z.UploadPoint){var X=JSON.parse(z.UploadPoint);X.loaded!=1&&(ae.checkpoint=X.checkpoint,ae.loaded=X.loaded,ae.videoId=z.VideoId,K._saveCheckoutpoint(ae,X.checkpoint))}},function(z){try{if((z=JSON.parse(z))&&z.Code=="InvalidParameter"&&z.Message.indexOf("UserId")>0){K._invalidUserId=!0;var X=z.Message+"\uFF0C\u6B63\u786E\u8D26\u53F7ID(userId)\u8BF7\u53C2\u8003\uFF1Ahttps://help.aliyun.com/knowledge_detail/37196.html";console.log(X)}}catch(Z){console.log(Z)}})})}H&&(ae.videoInfo=H?JSON.parse(H).Vod:{},ae.userData=i.default.encode(H)),ae.ri=S.default.create(),this._uploadList.push(ae),this._reportLog("20001",ae,{ql:this._uploadList.length});try{this.options.addFileSuccess&&this.options.addFileSuccess(ae)}catch(k){console.log(k)}return!0}},{key:"deleteFile",value:function(j){return!!this.cancelFile(j)&&(this._uploadList.splice(j,1),!0)}},{key:"cleanList",value:function(){this.stopUpload(),this._uploadList.length=0,this._curIndex=-1}},{key:"cancelFile",value:function(j){if(this.options,j<0||j>=this._uploadList.length)return!1;var N=this._uploadList[j];if(j==this._curIndex&&N.state==r.UPLOADSTATE.UPLOADING){N.state=r.UPLOADSTATE.CANCELED;var G=this._getCheckoutpoint(N);G&&G.checkpoint&&(G=G.checkpoint),G&&this._ossUpload.abort(N),this._removeCheckoutpoint(N),this.nextUpload()}else N.state!=r.UPLOADSTATE.SUCCESS&&(N.state=r.UPLOADSTATE.CANCELED);return this._reportLog("20008",N),!0}},{key:"resumeFile",value:function(j){if(this.options,j<0||j>=this._uploadList.length)return!1;var N=this._uploadList[j];return N.state==r.UPLOADSTATE.CANCELED&&(N.state=r.UPLOADSTATE.INIT,!0)}},{key:"listFiles",value:function(){return this._uploadList}},{key:"getCheckpoint",value:function(j){return this._getCheckoutpoint({file:j})}},{key:"startUpload",value:function(j){if(this._retryCount=0,this.options,this._state==r.VODSTATE.START||this._state==r.VODSTATE.EXPIRE)return void console.log("already started or expired");if(this._initState(),this._curIndex=this._findUploadIndex(),this._curIndex==-1)return void(this._state=r.VODSTATE.END);var N=this._uploadList[this._curIndex];this._ossUpload=null,this._upload(N),this._state=r.VODSTATE.START}},{key:"nextUpload",value:function(){var j=this.options;if(this._state==r.VODSTATE.START)if(this._curIndex=this._findUploadIndex(),this._curIndex!=-1){var N=this._uploadList[this._curIndex];this._ossUpload=null,this._upload(N)}else{this._state=r.VODSTATE.END;try{j.onUploadEnd&&j.onUploadEnd(N)}catch(G){console.log(G)}}}},{key:"clear",value:function(j){for(var N=this.options,G=0,$=0;$<this._uploadList.length;$++)N.uploadList[$].state==r.UPLOADSTATE.SUCCESS&&G++,this._uploadList[$].state==j&&(N.uploadList.splice($,1),$--);N.onClear&&N.onClear(N.uploadList.length,G)}},{key:"stopUpload",value:function(){if((this._state==r.VODSTATE.START||this._state==r.VODSTATE.FAILURE||this._curIndex==-1)&&this._curIndex!=-1){var j=this._uploadList[this._curIndex];this._state=r.VODSTATE.STOP,j.state=r.UPLOADSTATE.STOPED,this._changeState(j,r.UPLOADSTATE.STOPED),this._ossUpload.cancel()}}},{key:"resumeUploadWithAuth",value:function(j){var N=this;if(!j)return!1;var G=JSON.parse(i.default.decode(j));return!!(G.AccessKeyId&&G.AccessKeySecret&&G.SecurityToken&&G.Expiration)&&N.resumeUploadWithToken(G.AccessKeyId,G.AccessKeySecret,G.SecurityToken,G.Expiration)}},{key:"resumeUploadWithToken",value:function(j,N,G,$){if(this.options,!(j&&N&&G&&$))return!1;if(this._state!=r.VODSTATE.EXPIRE)return!1;if(this._curIndex==-1)return!1;var H="";return this._uploadList.length>this._curIndex&&(H=this._uploadList[this._curIndex]),H&&(this.init(j,N,G,$),this._state=r.VODSTATE.START,this._ossUpload=null,this._uploadCore(H,H.retry),H.retry=!1),!0}},{key:"resumeUploadWithSTSToken",value:function(j,N,G){if(this._curIndex==-1)return!1;if(this._state!=r.VODSTATE.EXPIRE)return!1;if(this._uploadList.length>this._curIndex){var $=this._uploadList[this._curIndex];$.object?this._refreshSTSTokenUpload($,j,N,G):this.setSTSToken($,j,N,G)}}},{key:"setSTSTokenDirectlyUpload",value:function(j,N,G,$,H){if(!(N&&G&&$&&H))return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken and expiration should not be empty."),!1;this._ut="oss";var F=j;this.init(N,G,$,H),F.endpoint=F._endpoint,F.bucket=F._bucket,F.object=F._object,this._ossUpload=null,this._uploadCore(F,j.retry),j.retry=!1}},{key:"setSTSToken",value:function(j,N,G,$){if(!N||!G||!$)return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken should not be empty."),!1;this._ut="vod",this._uploadWay="sts";var H=j.videoInfo,F={accessKeyId:N,securityToken:$,accessKeySecret:G,fileName:j.file.name,title:H.Title,requestId:j.ri,region:this.options.region};H.ImageType&&(F.imageType=H.ImageType),H.ImageExt&&(F.imageExt=H.ImageExt),H.FileSize&&(F.fileSize=H.FileSize),H.Description&&(F.description=H.Description),H.CateId&&(F.cateId=H.CateId),H.Tags&&(F.tags=H.Tags),H.TemplateGroupId&&(F.templateGroupId=H.TemplateGroupId),H.StorageLocation&&(F.storageLocation=H.StorageLocation),H.CoverURL&&(F.coverUrl=H.CoverURL),H.TransCodeMode&&(F.transCodeMode=H.TransCodeMode),H.UserData&&(F.userData=H.UserData);var te=this,ae="getUploadAuth";j.videoId?(F.videoId=j.videoId,ae="refreshUploadAuth"):j.isImage&&(ae="getImageUploadAuth"),h.default[ae](F,function(K){j.videoId=K.VideoId?K.VideoId:j.videoId,te.setUploadAuthAndAddress(j,K.UploadAuth,K.UploadAddress),te._state=r.VODSTATE.START},function(K){te._error(j,{name:K.Code,code:K.Code,message:K.Message,requestId:K.RequestId})})}},{key:"setUploadAuthAndAddress",value:function(j,N,G,$){if(!j||!N||!G)return!1;var H=JSON.parse(i.default.decode(N));if(!(H.AccessKeyId&&H.AccessKeySecret&&H.SecurityToken&&H.Expiration))return console.error("uploadauth is invalid"),!1;var F={},te=j;if(G){if(F=JSON.parse(i.default.decode(G)),!F.Endpoint||!F.Bucket||!F.FileName)return console.error("uploadAddress is invalid"),!1}else F.Endpoint=te.endpoint,F.Bucket=te.bucket,F.FileName=te.object;this._ut="vod",this._uploadWay="vod",this.options.region=H.Region||this.options.region,this.init(H.AccessKeyId,H.AccessKeySecret,H.SecurityToken,H.Expiration),te.endpoint=te._endpoint?te._endpoint:F.Endpoint,te.bucket=te._bucket?te._bucket:F.Bucket,te.object=te._object?te._object:F.FileName,te.region=this.options.region,$&&(te.videoId=$),this._ossUpload=null,this._uploadCore(te,j.retry),j.retry=!1}},{key:"_refreshSTSTokenUpload",value:function(j,N,G,$){if(!N||!G||!$)return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken should not be empty."),!1;var H={accessKeyId:N,securityToken:$,accessKeySecret:G,videoId:j.object,requestId:j.ri,region:this.options.region},F=this,te="refreshUploadAuth";j.isImage&&(te="getImageUploadAuth"),h.default[te](H,function(ae){F.setUploadAuthAndAddress(j,ae.UploadAuth,UploadAddress),F._state=r.VODSTATE.START},function(ae){F._error(j,{name:ae.Code,code:ae.Code,message:ae.Message,requestId:ae.RequestId})})}},{key:"_upload",value:function(j){var N=arguments.length>1&&arguments[1]!==void 0&&arguments[1],G=this.options;if(j.retry=N,G.onUploadstarted&&!N)try{var $=this._getCheckoutpoint(j);$&&$.state!=r.UPLOADSTATE.UPLOADING&&(j.checkpoint=$,j.videoId=$.videoId),G.onUploadstarted(j)}catch(H){console.log(H)}}},{key:"_uploadCore",value:function(j){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(j.state=r.UPLOADSTATE.UPLOADING,!this._ossUpload){j.endpoint=j.endpoint||"http://oss-cn-hangzhou.aliyuncs.com";var N=this;this._ossUpload=new e.default({bucket:j.bucket,endpoint:j.endpoint,AccessKeyId:this._ossCreditor.accessKeyId,AccessKeySecret:this._ossCreditor.accessKeySecret,SecurityToken:this._ossCreditor.securityToken,timeout:this.options.timeout,cname:this.options.cname},{onerror:function(k,I){N._error.call(N,k,I)},oncomplete:function(k,I){N._complete.call(N,k,I)},onprogress:function(k,I,z){N._progress.call(N,k,I,z)}})}var G=b.default.getFileType(j.file.name),$=this._getCheckoutpoint(j),H="",F="";$&&$.checkpoint&&(F=$.state,H=$.videoId,$=$.checkpoint),$&&H==j.videoId&&F!=r.UPLOADSTATE.UPLOADING&&($.file=j.file,j.checkpoint=$,$.uploadId);var te=this._adjustPartSize(j);this._reportLog("20002",j,{ft:G,fs:j.file.size,bu:j.bucket,ok:j.object,vid:j.videoId||"",fn:j.file.name,fw:null,fh:null,ps:te});var ae={headers:{"x-oss-notification":j.userData?j.userData:""},partSize:te,parallel:this.options.parallel};this._ossUpload.upload(j,ae)}},{key:"_findUploadIndex",value:function(){for(var j=-1,N=0;N<this._uploadList.length;N++)if(this._uploadList[N].state==r.UPLOADSTATE.INIT){j=N;break}return j}},{key:"_error",value:function(j,N){if(N.name=="cancel")try{this.options.onUploadCanceled(j,N)}catch($){console.log($)}else{if(N.message.indexOf("InvalidAccessKeyIdError")>0||N.name=="SignatureDoesNotMatchError"||N.code=="SecurityTokenExpired"||N.code=="InvalidSecurityToken.Expired"||N.code=="InvalidAccessKeyId"&&this._ossCreditor.securityToken){if(this.options.onUploadTokenExpired){this._state=r.VODSTATE.EXPIRE,j.state=r.UPLOADSTATE.FAIlURE;try{this.options.onUploadTokenExpired(j,N)}catch($){console.log($)}}return}if((N.name=="RequestTimeoutError"||N.name=="ConnectionTimeout"||N.name=="ConnectionTimeoutError")&&this._retryTotal>this._retryCount){var G=this;return setTimeout(function(){G._uploadCore(j,!0)},1e3*G._retryDuration),void this._retryCount++}N.name=="NoSuchUploadError"&&this._removeCheckoutpoint(j),this._handleError(j,N)}}},{key:"_handleError",value:function(j,N){var G=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],$=r.UPLOADSTATE.FAIlURE;if(j.state!=r.UPLOADSTATE.CANCELED&&(j.state=r.UPLOADSTATE.FAIlURE,this._state=r.VODSTATE.FAILURE,this.options.onUploadFailed&&N&&N.code&&N.message))try{this.options.onUploadFailed(j,N.code,N.message)}catch(F){console.log(F)}if(G&&this._changeState(j,$),this._reportLog("20006",j,{code:N.name,message:N.message,requestId:N.requestId,fs:j.file.size,bu:j.bucket,ok:j.object,fn:j.file.name}),this._reportLog("20004",j,{requestId:N.requestId,fs:j.file.size,bu:j.bucket,ok:j.object,fn:j.file.name}),j.ri=S.default.create(),this._findUploadIndex()!=-1){var H=this;this._state=r.VODSTATE.START,setTimeout(function(){H.nextUpload()},100)}}},{key:"_complete",value:function(j,N){if(j.state=r.UPLOADSTATE.SUCCESS,this.options.onUploadSucceed)try{this.options.onUploadSucceed(j)}catch(H){console.log(H)}var G=0;N&&N.res&&N.res.headers&&(G=N.res.headers["x-oss-request-id"]),this._removeCheckoutpoint(j);var $=this;setTimeout(function(){$.nextUpload()},100),this._retryCount=0,this._reportLog("20003",j,{requestId:G})}},{key:"_progress",value:function(j,N,G){if(this.options.onUploadProgress)try{j.loaded=N.loaded,this.options.onUploadProgress(j,N.total,N.loaded)}catch(k){console.log(k)}var $=N.checkpoint,H=0;$&&(j.checkpoint=$,this._saveCheckoutpoint(j,$,r.UPLOADSTATE.UPLOADING),H=$.uploadId),this._retryCount=0;var F=this._getPortNumber($),te=0;if(G&&G.headers&&(te=G.headers["x-oss-request-id"]),N.loaded!=0&&this._reportLog("20007",j,{pn:F,requestId:te}),N.loaded!=1&&this._reportLog("20005",j,{UploadId:H,pn:F+1,pr:j.retry?1:0,fs:j.file.size,bu:j.bucket,ok:j.object,fn:j.file.name}),!this._invalidUserId&&!j.isImage&&this._ut=="vod"&&this.options.enableUploadProgress){var ae={file:j.file,checkpoint:N,userId:this.options.userId,videoId:j.videoId,region:this.options.region,fileHash:j.fileHash};try{var K=this;O.default.upload(ae,function(){},function(k){if((k=JSON.parse(k))&&k.Code=="InvalidParameter"&&k.Message.indexOf("UserId")>0){K._invalidUserId=!0;var I=k.Message+"\uFF0C\u6B63\u786E\u8D26\u53F7ID(userId)\u8BF7\u53C2\u8003\uFF1Ahttps://help.aliyun.com/knowledge_detail/37196.html";console.log(I)}})}catch(k){console.log(k)}}}},{key:"_getPortNumber",value:function(j){if(j){var N=j.doneParts;if(N&&N.length>0)return N[N.length-1].number}return 0}},{key:"_removeCheckoutpoint",value:function(j){var N=this._getCheckoutpointKey(j);d.default.remove(N)}},{key:"_getCheckoutpoint",value:function(j){var N=this._getCheckoutpointKey(j),G=d.default.get(N);if(G)try{return JSON.parse(G)}catch($){}return""}},{key:"_saveCheckoutpoint",value:function(j,N,G){if(N){var $=this._getCheckoutpointKey(j),H=j.file,F={fileName:H.name,lastModified:H.lastModified,size:H.size,object:j.object,videoId:j.videoId,bucket:j.bucket,endpoint:j.endpoint,checkpoint:N,loaded:j.loaded,state:G};d.default.set($,JSON.stringify(F))}}},{key:"_changeState",value:function(j,N){var G=this._getCheckoutpoint(j);G&&((this._onbeforeunload=!0)&&(N=r.UPLOADSTATE.STOPED),this._saveCheckoutpoint(j,G.checkpoint,N))}},{key:"_getCheckoutpointKey",value:function(j){return"upload_"+j.file.lastModified+"_"+j.file.name+"_"+j.file.size}},{key:"_getCheckoutpointFromCloud",value:function(j,N,G){var $={userId:this.options.userId,uploadInfoList:[{FileName:j.file.name,FileSize:j.file.size,FileCreateTime:j.file.lastModified,FileHash:j.fileHash}],region:this.options.region};O.default.get($,function(H){N(H)},G)}},{key:"_reportLog",value:function(j,N,G){G||(G={}),G.ri=N.ri,this._ut&&(G.ut=this._ut),this._log.log(j,G)}},{key:"_initEvent",value:function(){var j=this;window&&(window.onbeforeunload=function(N){if(j._onbeforeunload=!0,j._curIndex!=-1&&j._uploadList.length>j._curIndex){var G=j._uploadList[j._curIndex];j._changeState(G,r.UPLOADSTATE.STOPED)}})}},{key:"_initState",value:function(){for(var j=0;j<this._uploadList.length;j++){var N=this._uploadList[j];N.state!=r.UPLOADSTATE.FAIlURE&&N.state!=r.UPLOADSTATE.STOPED||(N.state=r.UPLOADSTATE.INIT)}this._state=r.VODSTATE.INIT}},{key:"_adjustPartSize",value:function(j){return j.file.size/this.options.partSize>1e4?j.file.size/9999:this.options.partSize}}]),T}());t.default=M},function(ve,t,w){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UPLOADSTATE={INIT:"Ready",UPLOADING:"Uploading",SUCCESS:"Success",FAIlURE:"Failure",CANCELED:"Canceled",STOPED:"Stoped"},t.VODSTATE={INIT:"Init",START:"Start",STOP:"Stop",FAILURE:"Failure",EXPIRE:"Expire",END:"End"}},function(ve,t,w){"use strict";function v(n){return n&&n.__esModule?n:{default:n}}function l(n,i){if(!(n instanceof i))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var _=function(){function n(i,s){for(var d=0;d<s.length;d++){var m=s[d];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(i,m.key,m)}}return function(i,s,d){return s&&n(i.prototype,s),d&&n(i,d),i}}(),r=w(3),u=w(17),o=(v(u),w(1)),e=(v(o),function(){function n(i,s){if(l(this,n),i){this._config=i,this.create(this._config),this._uploadInfo=null,this._callback={};var d=function(){};this._callback.onerror=s.onerror||d,this._callback.oncomplete=s.oncomplete||d,this._callback.onprogress=s.onprogress||d}}return _(n,[{key:"create",value:function(s){if(s.endpoint=s.endpoint||this._config.endpoint,s.bucket=s.bucket||this._config.bucket,!(s.AccessKeyId&&s.AccessKeySecret&&s.endpoint&&s.SecurityToken))throw new Error("AccessKeyId\u3001AccessKeySecret\u3001endpoint should not be null");var d={accessKeyId:s.AccessKeyId,accessKeySecret:s.AccessKeySecret,stsToken:s.SecurityToken,endpoint:s.endpoint||this._config.endpoint,bucket:s.bucket||this._config.bucket,secure:!0,cname:s.cname};s.timeout&&(d.timeout=s.timeout),this.oss=new OSS.Wrapper(d)}},{key:"abort",value:function(s){if(s.checkpoint){var d=s.checkpoint.uploadId;this.oss.abortMultipartUpload(s.object,d)}}},{key:"getVersion",value:function(){}},{key:"cancel",value:function(){this.oss.cancel&&this.oss.cancel()}},{key:"upload",value:function(s,d){this._uploadInfo=s;var m=this,f=function(p,S,D){return function(h){m._progress(p,S,D),h()}},A={parallel:d.parallel||this._config.parallel||r.UPLOADDEFAULT.PARALLEL,partSize:d.partSize||this._config.partSize||r.UPLOADDEFAULT.PARTSIZE,progress:f};d.headers&&(A.headers=d.headers),s.checkpoint&&(A.checkpoint=s.checkpoint),s.bucket||(this.oss.options.bucket=s.bucket),s.endpoint||(this.oss.options.endpoint=s.endpoint),this.oss.multipartUpload(s.object,s.file,A).then(function(b,p){m._complete(b)}).catch(function(b){m.oss.cancel&&(m.oss&&m.oss.isCancel()?console.log("oss is cancel as error"):m.oss.cancel()),m._error(b)})}},{key:"header",value:function(s,d,m){this.oss.get(s.object).then(function(f){d(f)}).catch(function(f){m(f)})}},{key:"_progress",value:function(s,d,m){this._callback.onprogress(this._uploadInfo,{loaded:s,total:this._uploadInfo.file.size,checkpoint:d},m)}},{key:"_error",value:function(s){this._callback.onerror(this._uploadInfo,s)}},{key:"_complete",value:function(s){this._callback.oncomplete(this._uploadInfo,s)}}]),n}());t.default=e},function(ve,t,w){"use strict";function v(r,u){if(!(r instanceof u))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function r(u,o){for(var e=0;e<o.length;e++){var n=o[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(u,n.key,n)}}return function(u,o,e){return o&&r(u.prototype,o),e&&r(u,e),u}}(),_=function(){function r(){v(this,r)}return l(r,null,[{key:"format",value:function(o){if(arguments.length<2)return null;for(var e=arguments[1],n=1;n<arguments.length;n++){var i=new RegExp("\\{"+(n-1)+"\\}","gm");e=e.replace(i,arguments[n+1])}return{code:o,message:e}}},{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."}}}]),r}();t.default=_},function(ve,t,w){"use strict";(function(v){function l(u,o){if(!(u instanceof o))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var _=function(){function u(o,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(o,i.key,i)}}return function(o,e,n){return e&&u(o.prototype,e),n&&u(o,n),o}}(),r=function(){function u(){l(this,u)}return _(u,null,[{key:"encode",value:function(e){return new v(e).toString("base64")}},{key:"decode",value:function(e){return new v(e,"base64").toString()}}]),u}();t.default=r}).call(t,w(19).Buffer)},function(ve,t,w){"use strict";(function(v){function l(){return r.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function _(P,a){if(l()<a)throw new RangeError("Invalid typed array length");return r.TYPED_ARRAY_SUPPORT?(P=new Uint8Array(a),P.__proto__=r.prototype):(P===null&&(P=new r(a)),P.length=a),P}function r(P,a,c){if(!(r.TYPED_ARRAY_SUPPORT||this instanceof r))return new r(P,a,c);if(typeof P=="number"){if(typeof a=="string")throw new Error("If encoding is specified then the first argument must be a string");return n(this,P)}return u(this,P,a,c)}function u(P,a,c,R){if(typeof a=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&a instanceof ArrayBuffer?d(P,a,c,R):typeof a=="string"?i(P,a,c):m(P,a)}function o(P){if(typeof P!="number")throw new TypeError('"size" argument must be a number');if(P<0)throw new RangeError('"size" argument must not be negative')}function e(P,a,c,R){return o(a),a<=0?_(P,a):c!==void 0?typeof R=="string"?_(P,a).fill(c,R):_(P,a).fill(c):_(P,a)}function n(P,a){if(o(a),P=_(P,a<0?0:0|f(a)),!r.TYPED_ARRAY_SUPPORT)for(var c=0;c<a;++c)P[c]=0;return P}function i(P,a,c){if(typeof c=="string"&&c!==""||(c="utf8"),!r.isEncoding(c))throw new TypeError('"encoding" must be a valid string encoding');var R=0|b(a,c);P=_(P,R);var y=P.write(a,c);return y!==R&&(P=P.slice(0,y)),P}function s(P,a){var c=a.length<0?0:0|f(a.length);P=_(P,c);for(var R=0;R<c;R+=1)P[R]=255&a[R];return P}function d(P,a,c,R){if(a.byteLength,c<0||a.byteLength<c)throw new RangeError("'offset' is out of bounds");if(a.byteLength<c+(R||0))throw new RangeError("'length' is out of bounds");return a=c===void 0&&R===void 0?new Uint8Array(a):R===void 0?new Uint8Array(a,c):new Uint8Array(a,c,R),r.TYPED_ARRAY_SUPPORT?(P=a,P.__proto__=r.prototype):P=s(P,a),P}function m(P,a){if(r.isBuffer(a)){var c=0|f(a.length);return P=_(P,c),P.length===0||a.copy(P,0,0,c),P}if(a){if(typeof ArrayBuffer!="undefined"&&a.buffer instanceof ArrayBuffer||"length"in a)return typeof a.length!="number"||ie(a.length)?_(P,0):s(P,a);if(a.type==="Buffer"&&oe(a.data))return s(P,a.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function f(P){if(P>=l())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l().toString(16)+" bytes");return 0|P}function A(P){return+P!=P&&(P=0),r.alloc(+P)}function b(P,a){if(r.isBuffer(P))return P.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(P)||P instanceof ArrayBuffer))return P.byteLength;typeof P!="string"&&(P=""+P);var c=P.length;if(c===0)return 0;for(var R=!1;;)switch(a){case"ascii":case"latin1":case"binary":return c;case"utf8":case"utf-8":case void 0:return ee(P).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*c;case"hex":return c>>>1;case"base64":return q(P).length;default:if(R)return ee(P).length;a=(""+a).toLowerCase(),R=!0}}function p(P,a,c){var R=!1;if((a===void 0||a<0)&&(a=0),a>this.length)return"";if((c===void 0||c>this.length)&&(c=this.length),c<=0)return"";if(c>>>=0,a>>>=0,c<=a)return"";for(P||(P="utf8");;)switch(P){case"hex":return H(this,a,c);case"utf8":case"utf-8":return j(this,a,c);case"ascii":return G(this,a,c);case"latin1":case"binary":return $(this,a,c);case"base64":return L(this,a,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,a,c);default:if(R)throw new TypeError("Unknown encoding: "+P);P=(P+"").toLowerCase(),R=!0}}function S(P,a,c){var R=P[a];P[a]=P[c],P[c]=R}function D(P,a,c,R,y){if(P.length===0)return-1;if(typeof c=="string"?(R=c,c=0):c>2147483647?c=2147483647:c<-2147483648&&(c=-2147483648),c=+c,isNaN(c)&&(c=y?0:P.length-1),c<0&&(c=P.length+c),c>=P.length){if(y)return-1;c=P.length-1}else if(c<0){if(!y)return-1;c=0}if(typeof a=="string"&&(a=r.from(a,R)),r.isBuffer(a))return a.length===0?-1:h(P,a,c,R,y);if(typeof a=="number")return a&=255,r.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?y?Uint8Array.prototype.indexOf.call(P,a,c):Uint8Array.prototype.lastIndexOf.call(P,a,c):h(P,[a],c,R,y);throw new TypeError("val must be string, number or Buffer")}function h(P,a,c,R,y){function x(et,he){return Q===1?et[he]:et.readUInt16BE(he*Q)}var Q=1,V=P.length,xe=a.length;if(R!==void 0&&((R=String(R).toLowerCase())==="ucs2"||R==="ucs-2"||R==="utf16le"||R==="utf-16le")){if(P.length<2||a.length<2)return-1;Q=2,V/=2,xe/=2,c/=2}var be;if(y){var ce=-1;for(be=c;be<V;be++)if(x(P,be)===x(a,ce===-1?0:be-ce)){if(ce===-1&&(ce=be),be-ce+1===xe)return ce*Q}else ce!==-1&&(be-=be-ce),ce=-1}else for(c+xe>V&&(c=V-xe),be=c;be>=0;be--){for(var Se=!0,Qe=0;Qe<xe;Qe++)if(x(P,be+Qe)!==x(a,Qe)){Se=!1;break}if(Se)return be}return-1}function E(P,a,c,R){c=Number(c)||0;var y=P.length-c;R?(R=Number(R))>y&&(R=y):R=y;var x=a.length;if(x%2!=0)throw new TypeError("Invalid hex string");R>x/2&&(R=x/2);for(var Q=0;Q<R;++Q){var V=parseInt(a.substr(2*Q,2),16);if(isNaN(V))return Q;P[c+Q]=V}return Q}function O(P,a,c,R){return Y(ee(a,P.length-c),P,c,R)}function C(P,a,c,R){return Y(se(a),P,c,R)}function g(P,a,c,R){return C(P,a,c,R)}function M(P,a,c,R){return Y(q(a),P,c,R)}function T(P,a,c,R){return Y(ue(a,P.length-c),P,c,R)}function L(P,a,c){return a===0&&c===P.length?B.fromByteArray(P):B.fromByteArray(P.slice(a,c))}function j(P,a,c){c=Math.min(P.length,c);for(var R=[],y=a;y<c;){var x=P[y],Q=null,V=x>239?4:x>223?3:x>191?2:1;if(y+V<=c){var xe,be,ce,Se;switch(V){case 1:x<128&&(Q=x);break;case 2:xe=P[y+1],(192&xe)==128&&(Se=(31&x)<<6|63&xe)>127&&(Q=Se);break;case 3:xe=P[y+1],be=P[y+2],(192&xe)==128&&(192&be)==128&&(Se=(15&x)<<12|(63&xe)<<6|63&be)>2047&&(Se<55296||Se>57343)&&(Q=Se);break;case 4:xe=P[y+1],be=P[y+2],ce=P[y+3],(192&xe)==128&&(192&be)==128&&(192&ce)==128&&(Se=(15&x)<<18|(63&xe)<<12|(63&be)<<6|63&ce)>65535&&Se<1114112&&(Q=Se)}}Q===null?(Q=65533,V=1):Q>65535&&(Q-=65536,R.push(Q>>>10&1023|55296),Q=56320|1023&Q),R.push(Q),y+=V}return N(R)}function N(P){var a=P.length;if(a<=ne)return String.fromCharCode.apply(String,P);for(var c="",R=0;R<a;)c+=String.fromCharCode.apply(String,P.slice(R,R+=ne));return c}function G(P,a,c){var R="";c=Math.min(P.length,c);for(var y=a;y<c;++y)R+=String.fromCharCode(127&P[y]);return R}function $(P,a,c){var R="";c=Math.min(P.length,c);for(var y=a;y<c;++y)R+=String.fromCharCode(P[y]);return R}function H(P,a,c){var R=P.length;(!a||a<0)&&(a=0),(!c||c<0||c>R)&&(c=R);for(var y="",x=a;x<c;++x)y+=re(P[x]);return y}function F(P,a,c){for(var R=P.slice(a,c),y="",x=0;x<R.length;x+=2)y+=String.fromCharCode(R[x]+256*R[x+1]);return y}function te(P,a,c){if(P%1!=0||P<0)throw new RangeError("offset is not uint");if(P+a>c)throw new RangeError("Trying to access beyond buffer length")}function ae(P,a,c,R,y,x){if(!r.isBuffer(P))throw new TypeError('"buffer" argument must be a Buffer instance');if(a>y||a<x)throw new RangeError('"value" argument is out of bounds');if(c+R>P.length)throw new RangeError("Index out of range")}function K(P,a,c,R){a<0&&(a=65535+a+1);for(var y=0,x=Math.min(P.length-c,2);y<x;++y)P[c+y]=(a&255<<8*(R?y:1-y))>>>8*(R?y:1-y)}function k(P,a,c,R){a<0&&(a=4294967295+a+1);for(var y=0,x=Math.min(P.length-c,4);y<x;++y)P[c+y]=a>>>8*(R?y:3-y)&255}function I(P,a,c,R,y,x){if(c+R>P.length)throw new RangeError("Index out of range");if(c<0)throw new RangeError("Index out of range")}function z(P,a,c,R,y){return y||I(P,a,c,4,34028234663852886e22,-34028234663852886e22),W.write(P,a,c,R,23,4),c+4}function X(P,a,c,R,y){return y||I(P,a,c,8,17976931348623157e292,-17976931348623157e292),W.write(P,a,c,R,52,8),c+8}function Z(P){if(P=J(P).replace(me,""),P.length<2)return"";for(;P.length%4!=0;)P+="=";return P}function J(P){return P.trim?P.trim():P.replace(/^\s+|\s+$/g,"")}function re(P){return P<16?"0"+P.toString(16):P.toString(16)}function ee(P,a){a=a||1/0;for(var c,R=P.length,y=null,x=[],Q=0;Q<R;++Q){if((c=P.charCodeAt(Q))>55295&&c<57344){if(!y){if(c>56319){(a-=3)>-1&&x.push(239,191,189);continue}if(Q+1===R){(a-=3)>-1&&x.push(239,191,189);continue}y=c;continue}if(c<56320){(a-=3)>-1&&x.push(239,191,189),y=c;continue}c=65536+(y-55296<<10|c-56320)}else y&&(a-=3)>-1&&x.push(239,191,189);if(y=null,c<128){if((a-=1)<0)break;x.push(c)}else if(c<2048){if((a-=2)<0)break;x.push(c>>6|192,63&c|128)}else if(c<65536){if((a-=3)<0)break;x.push(c>>12|224,c>>6&63|128,63&c|128)}else{if(!(c<1114112))throw new Error("Invalid code point");if((a-=4)<0)break;x.push(c>>18|240,c>>12&63|128,c>>6&63|128,63&c|128)}}return x}function se(P){for(var a=[],c=0;c<P.length;++c)a.push(255&P.charCodeAt(c));return a}function ue(P,a){for(var c,R,y,x=[],Q=0;Q<P.length&&!((a-=2)<0);++Q)c=P.charCodeAt(Q),R=c>>8,y=c%256,x.push(y),x.push(R);return x}function q(P){return B.toByteArray(Z(P))}function Y(P,a,c,R){for(var y=0;y<R&&!(y+c>=a.length||y>=P.length);++y)a[y+c]=P[y];return y}function ie(P){return P!==P}/*!
|
|
|
* The buffer module from node.js, for the browser.
|
|
|
*
|
|
|
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
|
|
* @license MIT
|
|
|
*/var B=w(21),W=w(22),oe=w(23);t.Buffer=r,t.SlowBuffer=A,t.INSPECT_MAX_BYTES=50,r.TYPED_ARRAY_SUPPORT=v.TYPED_ARRAY_SUPPORT!==void 0?v.TYPED_ARRAY_SUPPORT:function(){try{var P=new Uint8Array(1);return P.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},P.foo()===42&&typeof P.subarray=="function"&&P.subarray(1,1).byteLength===0}catch(a){return!1}}(),t.kMaxLength=l(),r.poolSize=8192,r._augment=function(P){return P.__proto__=r.prototype,P},r.from=function(P,a,c){return u(null,P,a,c)},r.TYPED_ARRAY_SUPPORT&&(r.prototype.__proto__=Uint8Array.prototype,r.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&r[Symbol.species]===r&&Object.defineProperty(r,Symbol.species,{value:null,configurable:!0})),r.alloc=function(P,a,c){return e(null,P,a,c)},r.allocUnsafe=function(P){return n(null,P)},r.allocUnsafeSlow=function(P){return n(null,P)},r.isBuffer=function(P){return!(P==null||!P._isBuffer)},r.compare=function(P,a){if(!r.isBuffer(P)||!r.isBuffer(a))throw new TypeError("Arguments must be Buffers");if(P===a)return 0;for(var c=P.length,R=a.length,y=0,x=Math.min(c,R);y<x;++y)if(P[y]!==a[y]){c=P[y],R=a[y];break}return c<R?-1:R<c?1:0},r.isEncoding=function(P){switch(String(P).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}},r.concat=function(P,a){if(!oe(P))throw new TypeError('"list" argument must be an Array of Buffers');if(P.length===0)return r.alloc(0);var c;if(a===void 0)for(a=0,c=0;c<P.length;++c)a+=P[c].length;var R=r.allocUnsafe(a),y=0;for(c=0;c<P.length;++c){var x=P[c];if(!r.isBuffer(x))throw new TypeError('"list" argument must be an Array of Buffers');x.copy(R,y),y+=x.length}return R},r.byteLength=b,r.prototype._isBuffer=!0,r.prototype.swap16=function(){var P=this.length;if(P%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var a=0;a<P;a+=2)S(this,a,a+1);return this},r.prototype.swap32=function(){var P=this.length;if(P%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var a=0;a<P;a+=4)S(this,a,a+3),S(this,a+1,a+2);return this},r.prototype.swap64=function(){var P=this.length;if(P%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var a=0;a<P;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},r.prototype.toString=function(){var P=0|this.length;return P===0?"":arguments.length===0?j(this,0,P):p.apply(this,arguments)},r.prototype.equals=function(P){if(!r.isBuffer(P))throw new TypeError("Argument must be a Buffer");return this===P||r.compare(this,P)===0},r.prototype.inspect=function(){var P="",a=t.INSPECT_MAX_BYTES;return this.length>0&&(P=this.toString("hex",0,a).match(/.{2}/g).join(" "),this.length>a&&(P+=" ... ")),"<Buffer "+P+">"},r.prototype.compare=function(P,a,c,R,y){if(!r.isBuffer(P))throw new TypeError("Argument must be a Buffer");if(a===void 0&&(a=0),c===void 0&&(c=P?P.length:0),R===void 0&&(R=0),y===void 0&&(y=this.length),a<0||c>P.length||R<0||y>this.length)throw new RangeError("out of range index");if(R>=y&&a>=c)return 0;if(R>=y)return-1;if(a>=c)return 1;if(a>>>=0,c>>>=0,R>>>=0,y>>>=0,this===P)return 0;for(var x=y-R,Q=c-a,V=Math.min(x,Q),xe=this.slice(R,y),be=P.slice(a,c),ce=0;ce<V;++ce)if(xe[ce]!==be[ce]){x=xe[ce],Q=be[ce];break}return x<Q?-1:Q<x?1:0},r.prototype.includes=function(P,a,c){return this.indexOf(P,a,c)!==-1},r.prototype.indexOf=function(P,a,c){return D(this,P,a,c,!0)},r.prototype.lastIndexOf=function(P,a,c){return D(this,P,a,c,!1)},r.prototype.write=function(P,a,c,R){if(a===void 0)R="utf8",c=this.length,a=0;else if(c===void 0&&typeof a=="string")R=a,c=this.length,a=0;else{if(!isFinite(a))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");a|=0,isFinite(c)?(c|=0,R===void 0&&(R="utf8")):(R=c,c=void 0)}var y=this.length-a;if((c===void 0||c>y)&&(c=y),P.length>0&&(c<0||a<0)||a>this.length)throw new RangeError("Attempt to write outside buffer bounds");R||(R="utf8");for(var x=!1;;)switch(R){case"hex":return E(this,P,a,c);case"utf8":case"utf-8":return O(this,P,a,c);case"ascii":return C(this,P,a,c);case"latin1":case"binary":return g(this,P,a,c);case"base64":return M(this,P,a,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,P,a,c);default:if(x)throw new TypeError("Unknown encoding: "+R);R=(""+R).toLowerCase(),x=!0}},r.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ne=4096;r.prototype.slice=function(P,a){var c=this.length;P=~~P,a=a===void 0?c:~~a,P<0?(P+=c)<0&&(P=0):P>c&&(P=c),a<0?(a+=c)<0&&(a=0):a>c&&(a=c),a<P&&(a=P);var R;if(r.TYPED_ARRAY_SUPPORT)R=this.subarray(P,a),R.__proto__=r.prototype;else{var y=a-P;R=new r(y,void 0);for(var x=0;x<y;++x)R[x]=this[x+P]}return R},r.prototype.readUIntLE=function(P,a,c){P|=0,a|=0,c||te(P,a,this.length);for(var R=this[P],y=1,x=0;++x<a&&(y*=256);)R+=this[P+x]*y;return R},r.prototype.readUIntBE=function(P,a,c){P|=0,a|=0,c||te(P,a,this.length);for(var R=this[P+--a],y=1;a>0&&(y*=256);)R+=this[P+--a]*y;return R},r.prototype.readUInt8=function(P,a){return a||te(P,1,this.length),this[P]},r.prototype.readUInt16LE=function(P,a){return a||te(P,2,this.length),this[P]|this[P+1]<<8},r.prototype.readUInt16BE=function(P,a){return a||te(P,2,this.length),this[P]<<8|this[P+1]},r.prototype.readUInt32LE=function(P,a){return a||te(P,4,this.length),(this[P]|this[P+1]<<8|this[P+2]<<16)+16777216*this[P+3]},r.prototype.readUInt32BE=function(P,a){return a||te(P,4,this.length),16777216*this[P]+(this[P+1]<<16|this[P+2]<<8|this[P+3])},r.prototype.readIntLE=function(P,a,c){P|=0,a|=0,c||te(P,a,this.length);for(var R=this[P],y=1,x=0;++x<a&&(y*=256);)R+=this[P+x]*y;return y*=128,R>=y&&(R-=Math.pow(2,8*a)),R},r.prototype.readIntBE=function(P,a,c){P|=0,a|=0,c||te(P,a,this.length);for(var R=a,y=1,x=this[P+--R];R>0&&(y*=256);)x+=this[P+--R]*y;return y*=128,x>=y&&(x-=Math.pow(2,8*a)),x},r.prototype.readInt8=function(P,a){return a||te(P,1,this.length),128&this[P]?-1*(255-this[P]+1):this[P]},r.prototype.readInt16LE=function(P,a){a||te(P,2,this.length);var c=this[P]|this[P+1]<<8;return 32768&c?4294901760|c:c},r.prototype.readInt16BE=function(P,a){a||te(P,2,this.length);var c=this[P+1]|this[P]<<8;return 32768&c?4294901760|c:c},r.prototype.readInt32LE=function(P,a){return a||te(P,4,this.length),this[P]|this[P+1]<<8|this[P+2]<<16|this[P+3]<<24},r.prototype.readInt32BE=function(P,a){return a||te(P,4,this.length),this[P]<<24|this[P+1]<<16|this[P+2]<<8|this[P+3]},r.prototype.readFloatLE=function(P,a){return a||te(P,4,this.length),W.read(this,P,!0,23,4)},r.prototype.readFloatBE=function(P,a){return a||te(P,4,this.length),W.read(this,P,!1,23,4)},r.prototype.readDoubleLE=function(P,a){return a||te(P,8,this.length),W.read(this,P,!0,52,8)},r.prototype.readDoubleBE=function(P,a){return a||te(P,8,this.length),W.read(this,P,!1,52,8)},r.prototype.writeUIntLE=function(P,a,c,R){(P=+P,a|=0,c|=0,!R)&&ae(this,P,a,c,Math.pow(2,8*c)-1,0);var y=1,x=0;for(this[a]=255&P;++x<c&&(y*=256);)this[a+x]=P/y&255;return a+c},r.prototype.writeUIntBE=function(P,a,c,R){(P=+P,a|=0,c|=0,!R)&&ae(this,P,a,c,Math.pow(2,8*c)-1,0);var y=c-1,x=1;for(this[a+y]=255&P;--y>=0&&(x*=256);)this[a+y]=P/x&255;return a+c},r.prototype.writeUInt8=function(P,a,c){return P=+P,a|=0,c||ae(this,P,a,1,255,0),r.TYPED_ARRAY_SUPPORT||(P=Math.floor(P)),this[a]=255&P,a+1},r.prototype.writeUInt16LE=function(P,a,c){return P=+P,a|=0,c||ae(this,P,a,2,65535,0),r.TYPED_ARRAY_SUPPORT?(this[a]=255&P,this[a+1]=P>>>8):K(this,P,a,!0),a+2},r.prototype.writeUInt16BE=function(P,a,c){return P=+P,a|=0,c||ae(this,P,a,2,65535,0),r.TYPED_ARRAY_SUPPORT?(this[a]=P>>>8,this[a+1]=255&P):K(this,P,a,!1),a+2},r.prototype.writeUInt32LE=function(P,a,c){return P=+P,a|=0,c||ae(this,P,a,4,4294967295,0),r.TYPED_ARRAY_SUPPORT?(this[a+3]=P>>>24,this[a+2]=P>>>16,this[a+1]=P>>>8,this[a]=255&P):k(this,P,a,!0),a+4},r.prototype.writeUInt32BE=function(P,a,c){return P=+P,a|=0,c||ae(this,P,a,4,4294967295,0),r.TYPED_ARRAY_SUPPORT?(this[a]=P>>>24,this[a+1]=P>>>16,this[a+2]=P>>>8,this[a+3]=255&P):k(this,P,a,!1),a+4},r.prototype.writeIntLE=function(P,a,c,R){if(P=+P,a|=0,!R){var y=Math.pow(2,8*c-1);ae(this,P,a,c,y-1,-y)}var x=0,Q=1,V=0;for(this[a]=255&P;++x<c&&(Q*=256);)P<0&&V===0&&this[a+x-1]!==0&&(V=1),this[a+x]=(P/Q>>0)-V&255;return a+c},r.prototype.writeIntBE=function(P,a,c,R){if(P=+P,a|=0,!R){var y=Math.pow(2,8*c-1);ae(this,P,a,c,y-1,-y)}var x=c-1,Q=1,V=0;for(this[a+x]=255&P;--x>=0&&(Q*=256);)P<0&&V===0&&this[a+x+1]!==0&&(V=1),this[a+x]=(P/Q>>0)-V&255;return a+c},r.prototype.writeInt8=function(P,a,c){return P=+P,a|=0,c||ae(this,P,a,1,127,-128),r.TYPED_ARRAY_SUPPORT||(P=Math.floor(P)),P<0&&(P=255+P+1),this[a]=255&P,a+1},r.prototype.writeInt16LE=function(P,a,c){return P=+P,a|=0,c||ae(this,P,a,2,32767,-32768),r.TYPED_ARRAY_SUPPORT?(this[a]=255&P,this[a+1]=P>>>8):K(this,P,a,!0),a+2},r.prototype.writeInt16BE=function(P,a,c){return P=+P,a|=0,c||ae(this,P,a,2,32767,-32768),r.TYPED_ARRAY_SUPPORT?(this[a]=P>>>8,this[a+1]=255&P):K(this,P,a,!1),a+2},r.prototype.writeInt32LE=function(P,a,c){return P=+P,a|=0,c||ae(this,P,a,4,2147483647,-2147483648),r.TYPED_ARRAY_SUPPORT?(this[a]=255&P,this[a+1]=P>>>8,this[a+2]=P>>>16,this[a+3]=P>>>24):k(this,P,a,!0),a+4},r.prototype.writeInt32BE=function(P,a,c){return P=+P,a|=0,c||ae(this,P,a,4,2147483647,-2147483648),P<0&&(P=4294967295+P+1),r.TYPED_ARRAY_SUPPORT?(this[a]=P>>>24,this[a+1]=P>>>16,this[a+2]=P>>>8,this[a+3]=255&P):k(this,P,a,!1),a+4},r.prototype.writeFloatLE=function(P,a,c){return z(this,P,a,!0,c)},r.prototype.writeFloatBE=function(P,a,c){return z(this,P,a,!1,c)},r.prototype.writeDoubleLE=function(P,a,c){return X(this,P,a,!0,c)},r.prototype.writeDoubleBE=function(P,a,c){return X(this,P,a,!1,c)},r.prototype.copy=function(P,a,c,R){if(c||(c=0),R||R===0||(R=this.length),a>=P.length&&(a=P.length),a||(a=0),R>0&&R<c&&(R=c),R===c)return 0;if(P.length===0||this.length===0)return 0;if(a<0)throw new RangeError("targetStart out of bounds");if(c<0||c>=this.length)throw new RangeError("sourceStart out of bounds");if(R<0)throw new RangeError("sourceEnd out of bounds");R>this.length&&(R=this.length),P.length-a<R-c&&(R=P.length-a+c);var y,x=R-c;if(this===P&&c<a&&a<R)for(y=x-1;y>=0;--y)P[y+a]=this[y+c];else if(x<1e3||!r.TYPED_ARRAY_SUPPORT)for(y=0;y<x;++y)P[y+a]=this[y+c];else Uint8Array.prototype.set.call(P,this.subarray(c,c+x),a);return x},r.prototype.fill=function(P,a,c,R){if(typeof P=="string"){if(typeof a=="string"?(R=a,a=0,c=this.length):typeof c=="string"&&(R=c,c=this.length),P.length===1){var y=P.charCodeAt(0);y<256&&(P=y)}if(R!==void 0&&typeof R!="string")throw new TypeError("encoding must be a string");if(typeof R=="string"&&!r.isEncoding(R))throw new TypeError("Unknown encoding: "+R)}else typeof P=="number"&&(P&=255);if(a<0||this.length<a||this.length<c)throw new RangeError("Out of range index");if(c<=a)return this;a>>>=0,c=c===void 0?this.length:c>>>0,P||(P=0);var x;if(typeof P=="number")for(x=a;x<c;++x)this[x]=P;else{var Q=r.isBuffer(P)?P:ee(new r(P,R).toString()),V=Q.length;for(x=0;x<c-a;++x)this[x+a]=Q[x%V]}return this};var me=/[^+\/0-9A-Za-z-_]/g}).call(t,w(20))},function(ve,t){var w;w=function(){return this}();try{w=w||Function("return this")()||(0,eval)("this")}catch(v){typeof window=="object"&&(w=window)}ve.exports=w},function(ve,t,w){"use strict";function v(f){var A=f.length;if(A%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return f[A-2]==="="?2:f[A-1]==="="?1:0}function l(f){return 3*f.length/4-v(f)}function _(f){var A,b,p,S,D,h=f.length;S=v(f),D=new i(3*h/4-S),b=S>0?h-4:h;var E=0;for(A=0;A<b;A+=4)p=n[f.charCodeAt(A)]<<18|n[f.charCodeAt(A+1)]<<12|n[f.charCodeAt(A+2)]<<6|n[f.charCodeAt(A+3)],D[E++]=p>>16&255,D[E++]=p>>8&255,D[E++]=255&p;return S===2?(p=n[f.charCodeAt(A)]<<2|n[f.charCodeAt(A+1)]>>4,D[E++]=255&p):S===1&&(p=n[f.charCodeAt(A)]<<10|n[f.charCodeAt(A+1)]<<4|n[f.charCodeAt(A+2)]>>2,D[E++]=p>>8&255,D[E++]=255&p),D}function r(f){return e[f>>18&63]+e[f>>12&63]+e[f>>6&63]+e[63&f]}function u(f,A,b){for(var p,S=[],D=A;D<b;D+=3)p=(f[D]<<16)+(f[D+1]<<8)+f[D+2],S.push(r(p));return S.join("")}function o(f){for(var A,b=f.length,p=b%3,S="",D=[],h=0,E=b-p;h<E;h+=16383)D.push(u(f,h,h+16383>E?E:h+16383));return p===1?(A=f[b-1],S+=e[A>>2],S+=e[A<<4&63],S+="=="):p===2&&(A=(f[b-2]<<8)+f[b-1],S+=e[A>>10],S+=e[A>>4&63],S+=e[A<<2&63],S+="="),D.push(S),D.join("")}t.byteLength=l,t.toByteArray=_,t.fromByteArray=o;for(var e=[],n=[],i=typeof Uint8Array!="undefined"?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=0,m=s.length;d<m;++d)e[d]=s[d],n[s.charCodeAt(d)]=d;n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},function(ve,t){t.read=function(w,v,l,_,r){var u,o,e=8*r-_-1,n=(1<<e)-1,i=n>>1,s=-7,d=l?r-1:0,m=l?-1:1,f=w[v+d];for(d+=m,u=f&(1<<-s)-1,f>>=-s,s+=e;s>0;u=256*u+w[v+d],d+=m,s-=8);for(o=u&(1<<-s)-1,u>>=-s,s+=_;s>0;o=256*o+w[v+d],d+=m,s-=8);if(u===0)u=1-i;else{if(u===n)return o?NaN:1/0*(f?-1:1);o+=Math.pow(2,_),u-=i}return(f?-1:1)*o*Math.pow(2,u-_)},t.write=function(w,v,l,_,r,u){var o,e,n,i=8*u-r-1,s=(1<<i)-1,d=s>>1,m=r===23?Math.pow(2,-24)-Math.pow(2,-77):0,f=_?0:u-1,A=_?1:-1,b=v<0||v===0&&1/v<0?1:0;for(v=Math.abs(v),isNaN(v)||v===1/0?(e=isNaN(v)?1:0,o=s):(o=Math.floor(Math.log(v)/Math.LN2),v*(n=Math.pow(2,-o))<1&&(o--,n*=2),v+=o+d>=1?m/n:m*Math.pow(2,1-d),v*n>=2&&(o++,n/=2),o+d>=s?(e=0,o=s):o+d>=1?(e=(v*n-1)*Math.pow(2,r),o+=d):(e=v*Math.pow(2,d-1)*Math.pow(2,r),o=0));r>=8;w[l+f]=255&e,f+=A,e/=256,r-=8);for(o=o<<r|e,i+=r;i>0;w[l+f]=255&o,f+=A,o/=256,i-=8);w[l+f-A]|=128*b}},function(ve,t){var w={}.toString;ve.exports=Array.isArray||function(v){return w.call(v)=="[object Array]"}},function(ve,t,w){"use strict";function v(r,u){if(!(r instanceof u))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function r(u,o){for(var e=0;e<o.length;e++){var n=o[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(u,n.key,n)}}return function(u,o,e){return o&&r(u.prototype,o),e&&r(u,e),u}}(),_=function(){function r(){v(this,r)}return l(r,null,[{key:"set",value:function(o,e){try{window.localStorage&&localStorage.setItem(o,e)}catch(n){window[o+"_localStorage"]=e}}},{key:"get",value:function(o){try{if(window.localStorage)return localStorage.getItem(o)}catch(e){return window[o+"_localStorage"]}return""}},{key:"remove",value:function(o){try{window.localStorage&&localStorage.removeItem(o)}catch(e){delete window[o+"_localStorage"]}}}]),r}();t.default=_},function(ve,t,w){"use strict";function v(r,u){if(!(r instanceof u))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function r(u,o){for(var e=0;e<o.length;e++){var n=o[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(u,n.key,n)}}return function(u,o,e){return o&&r(u.prototype,o),e&&r(u,e),u}}(),_=function(){function r(){v(this,r)}return l(r,null,[{key:"get",value:function(o){for(var e=o+"",n=document.cookie.split(";"),i=0;i<n.length;i++){var s=n[i].trim();if(s.indexOf(e)==0)return unescape(s.substring(e.length+1,s.length))}return""}},{key:"set",value:function(o,e,n){var i=new Date;i.setTime(i.getTime()+24*n*60*60*1e3);var s="expires="+i.toGMTString();document.cookie=o+"="+escape(e)+"; "+s}}]),r}();t.default=_},function(ve,t,w){"use strict";function v(i){return i&&i.__esModule?i:{default:i}}function l(i,s){if(!(i instanceof s))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var _=function(){function i(s,d){for(var m=0;m<d.length;m++){var f=d[m];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(s,f.key,f)}}return function(s,d,m){return d&&i(s.prototype,d),m&&i(s,m),s}}(),r=w(8),u=v(r),o=w(9),e=v(o),n=function(){function i(){l(this,i)}return _(i,null,[{key:"refreshUploadAuth",value:function(d,m,f){var A=(e.default.randomUUID(),e.default.randomUUID()),b={AccessKeyId:d.accessKeyId,SecurityToken:d.securityToken,Action:"RefreshUploadVideo",VideoId:d.videoId,Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:A,RequestId:d.requestId},p=e.default.makeUTF8sort(b,"=","&")+"&Signature="+e.default.aliyunEncodeURI(e.default.makeChangeSiga(b,d.accessKeySecret)),S="https://vod."+d.region+".aliyuncs.com/?"+p;u.default.get(S,function(D){var D=JSON.parse(D);m&&m(D)},function(D){if(f){var h=JSON.parse(D);f(h)}})}},{key:"getUploadAuth",value:function(d,m,f){var A=(e.default.randomUUID(),e.default.randomUUID()),b={AccessKeyId:d.accessKeyId,SecurityToken:d.securityToken,Action:"CreateUploadVideo",Title:d.title,FileName:d.fileName,Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:A,RequestId:d.requestId};d.fileSize&&(b.FileSize=d.fileSize),d.description&&(b.Description=d.description),d.cateId&&(b.CateId=d.cateId),d.tags&&(b.Tags=d.tags),d.templateGroupId&&(b.TemplateGroupId=d.templateGroupId),d.storageLocation&&(b.StorageLocation=d.storageLocation),d.coverUrl&&(b.CoverURL=d.coverUrl),d.transCodeMode&&(b.TransCodeMode=d.transCodeMode),d.userData&&(b.UserData=JSON.stringify(d.userData));var p=e.default.makeUTF8sort(b,"=","&")+"&Signature="+e.default.aliyunEncodeURI(e.default.makeChangeSiga(b,d.accessKeySecret)),S="https://vod."+d.region+".aliyuncs.com/?"+p;u.default.get(S,function(D){try{D=JSON.parse(D)}catch(h){if(f)return void f({Code:"GetUploadAuthFailed",Message:"\u83B7\u53D6uploadauth\u5931\u8D25"})}m&&m(D)},function(D){if(f){var h={Code:"GetUploadAuthFailed",Message:"\u83B7\u53D6uploadauth\u5931\u8D25"};try{h=JSON.parse(D)}catch(E){}f(h)}})}},{key:"getImageUploadAuth",value:function(d,m,f){var A=(e.default.randomUUID(),e.default.randomUUID()),b={AccessKeyId:d.accessKeyId,SecurityToken:d.securityToken,Action:"CreateUploadImage",ImageType:d.imageType?d.imageType:"default",Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:A,RequestId:d.requestId};d.title&&(b.Title=d.title),d.imageExt&&(b.ImageExt=d.imageExt),d.tags&&(b.Tags=d.tags),d.storageLocation&&(b.StorageLocation=d.storageLocation);var p=e.default.makeUTF8sort(b,"=","&")+"&Signature="+e.default.aliyunEncodeURI(e.default.makeChangeSiga(b,d.accessKeySecret)),S="https://vod."+d.region+".aliyuncs.com/?"+p;u.default.get(S,function(D){D=JSON.parse(D),m&&m(D)},function(D){if(f){var h=JSON.parse(D);f(h)}})}}]),i}();t.default=n},function(ve,t,w){!function(v,l,_){ve.exports=t=l(w(0),w(28),w(29))}(0,function(v){return v.HmacSHA1})},function(ve,t,w){!function(v,l){ve.exports=t=l(w(0))}(0,function(v){return function(){var l=v,_=l.lib,r=_.WordArray,u=_.Hasher,o=l.algo,e=[],n=o.SHA1=u.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(s,d){for(var m=this._hash.words,f=m[0],A=m[1],b=m[2],p=m[3],S=m[4],D=0;D<80;D++){if(D<16)e[D]=0|s[d+D];else{var h=e[D-3]^e[D-8]^e[D-14]^e[D-16];e[D]=h<<1|h>>>31}var E=(f<<5|f>>>27)+S+e[D];E+=D<20?1518500249+(A&b|~A&p):D<40?1859775393+(A^b^p):D<60?(A&b|A&p|b&p)-1894007588:(A^b^p)-899497514,S=p,p=b,b=A<<30|A>>>2,A=f,f=E}m[0]=m[0]+f|0,m[1]=m[1]+A|0,m[2]=m[2]+b|0,m[3]=m[3]+p|0,m[4]=m[4]+S|0},_doFinalize:function(){var s=this._data,d=s.words,m=8*this._nDataBytes,f=8*s.sigBytes;return d[f>>>5]|=128<<24-f%32,d[14+(f+64>>>9<<4)]=Math.floor(m/4294967296),d[15+(f+64>>>9<<4)]=m,s.sigBytes=4*d.length,this._process(),this._hash},clone:function(){var s=u.clone.call(this);return s._hash=this._hash.clone(),s}});l.SHA1=u._createHelper(n),l.HmacSHA1=u._createHmacHelper(n)}(),v.SHA1})},function(ve,t,w){!function(v,l){ve.exports=t=l(w(0))}(0,function(v){!function(){var l=v,_=l.lib,r=_.Base,u=l.enc,o=u.Utf8,e=l.algo;e.HMAC=r.extend({init:function(i,s){i=this._hasher=new i.init,typeof s=="string"&&(s=o.parse(s));var d=i.blockSize,m=4*d;s.sigBytes>m&&(s=i.finalize(s)),s.clamp();for(var f=this._oKey=s.clone(),A=this._iKey=s.clone(),b=f.words,p=A.words,S=0;S<d;S++)b[S]^=1549556828,p[S]^=909522486;f.sigBytes=A.sigBytes=m,this.reset()},reset:function(){var i=this._hasher;i.reset(),i.update(this._iKey)},update:function(i){return this._hasher.update(i),this},finalize:function(i){var s=this._hasher,d=s.finalize(i);return s.reset(),s.finalize(this._oKey.clone().concat(d))}})}()})},function(ve,t,w){!function(v,l){ve.exports=t=l(w(0))}(0,function(v){return function(){function l(e,n,i){for(var s=[],d=0,m=0;m<n;m++)if(m%4){var f=i[e.charCodeAt(m-1)]<<m%4*2,A=i[e.charCodeAt(m)]>>>6-m%4*2;s[d>>>2]|=(f|A)<<24-d%4*8,d++}return u.create(s,d)}var _=v,r=_.lib,u=r.WordArray,o=_.enc;o.Base64={stringify:function(n){var i=n.words,s=n.sigBytes,d=this._map;n.clamp();for(var m=[],f=0;f<s;f+=3)for(var A=i[f>>>2]>>>24-f%4*8&255,b=i[f+1>>>2]>>>24-(f+1)%4*8&255,p=i[f+2>>>2]>>>24-(f+2)%4*8&255,S=A<<16|b<<8|p,D=0;D<4&&f+.75*D<s;D++)m.push(d.charAt(S>>>6*(3-D)&63));var h=d.charAt(64);if(h)for(;m.length%4;)m.push(h);return m.join("")},parse:function(n){var i=n.length,s=this._map,d=this._reverseMap;if(!d){d=this._reverseMap=[];for(var m=0;m<s.length;m++)d[s.charCodeAt(m)]=m}var f=s.charAt(64);if(f){var A=n.indexOf(f);A!==-1&&(i=A)}return l(n,i,d)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),v.enc.Base64})},function(ve,t,w){"use strict";function v(E){return E&&E.__esModule?E:{default:E}}function l(E,O){if(!(E instanceof O))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var _=function(){function E(O,C){for(var g=0;g<C.length;g++){var M=C[g];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(O,M.key,M)}}return function(O,C,g){return C&&E(O.prototype,C),g&&E(O,g),O}}(),r=w(8),u=v(r),o=w(7),e=v(o),n=w(4),i=v(n),s=w(6),d=v(s),m=w(1),f=v(m),A=w(9),b=v(A),p=w(2),S=w(11),D=w(10),h=function(){function E(){l(this,E)}return _(E,null,[{key:"getAuthInfo",value:function(C,g,M){var T=C+"|f#Ylm&^1TppeRhLg|"+M;return g&&(T=C+"|"+g+"|f#Ylm&^1TppeRhLg|"+M),p(D.parse(T)).toString(S)}},{key:"upload",value:function(C,g,M){var T=f.default.ISODateString(new Date),L=Math.floor(new Date().valueOf()/1e3),j=i.default.getClientId();j=i.default.setClientId(j);var N=E.getAuthInfo(C.userId,j,L),G=b.default.randomUUID(),$={Source:"WebSDK",BusinessType:"UploadVideo",Action:"ReportUploadProgress",TerminalType:"H5",DeviceModel:e.default.browser.name+(e.default.browser.version||""),AppVersion:d.default.version,AuthTimestamp:L,Timestamp:T,AuthInfo:N,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:G};j&&($.ClientId=j);var H=b.default.makeUTF8sort($,"=","&")+"&Signature="+b.default.aliyunEncodeURI(b.default.makeChangeSiga($,C.accessKeySecret)),F="https://vod."+C.region+".aliyuncs.com/?"+H;u.default.get(F,function(te){g&&g()},function(te){te&&(M(te),console.log(te))})}},{key:"get",value:function(C,g,M){var T=f.default.ISODateString(new Date),L=Math.floor(new Date().valueOf()/1e3),j=i.default.getClientId(),N=E.getAuthInfo(C.userId,j,L),G=b.default.randomUUID(),$={Source:"WebSDK",BusinessType:"UploadVideo",Action:"GetUploadProgress",TerminalType:"H5",DeviceModel:e.default.browser.name+(e.default.browser.version||""),AppVersion:d.default.version,AuthTimestamp:L,Timestamp:T,AuthInfo:N,UserId:C.userId,UploadInfoList:JSON.stringify(C.uploadInfoList),Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:G};j&&($.ClientId=j);var H=b.default.makeUTF8sort($,"=","&")+"&Signature="+b.default.aliyunEncodeURI(b.default.makeChangeSiga($,C.accessKeySecret)),F="https://vod."+C.region+".aliyuncs.com/?"+H;u.default.get(F,function(te){var ae={},K=j;te=te?JSON.parse(te):{},te.UploadProgress&&te.UploadProgress.UploadProgressList&&te.UploadProgress.UploadProgressList.length>0&&(ae=te.UploadProgress.UploadProgressList[0],K=ae.ClientId),i.default.setClientId(K),g&&g(ae)},function(te){te&&(M(te),console.log(te))})}}]),E}();t.default=h},function(ve,t,w){"use strict";function v(o,e){if(!(o instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function o(e,n){for(var i=0;i<n.length;i++){var s=n[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}return function(e,n,i){return n&&o(e.prototype,n),i&&o(e,i),e}}(),_=w(2),r=w(33),u=(w(11),function(){function o(){v(this,o)}return l(o,null,[{key:"getMd5",value:function(n,i,s){var d=new FileReader;d.onload=function(A){try{if(A&&A.target){var b=_(r.parse(A.target.result)),p=b.toString();i(p)}}catch(S){console.log(S)}},d.onerror=function(A){console.log(A),errorCallback(A)};var m=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice,f=m.call(n,0,1024);d.readAsBinaryString(f)}}]),o}());t.default=u},function(ve,t,w){!function(v,l){ve.exports=t=l(w(0))}(0,function(v){return v.enc.Latin1})}])}).call(this,U("yLpj"))},sBCT:function(Ue,pe,U){"use strict";var Xe=U("DZo9"),it=U("8z0m"),ve=U("+L6B"),t=U("2/Rp"),w=U("MXD1"),v=U("CFYs"),l=U("WmNS"),_=U.n(l),r=U("9og8"),u=U("2qtc"),o=U("kLXV"),e=U("miYZ"),n=U("tsqr"),i=U("y8nQ"),s=U("Vl3Y"),d=U("tJVT"),m=U("k1fw"),f=U("oBTY"),A=U("5NDa"),b=U("5rEg"),p=U("q1tI"),S=U.n(p),D=U("Ty5D"),h=U("55Ip"),E=U("9kvl"),O=U("kwm0"),C=U.n(O),g=U("Aky1"),M=U("h/US"),T=U("m3rI"),L=b.a.TextArea,j=1024,N=function(H,F){var te,ae=F.payload||{},K=ae.uploadInfo,k=K===void 0?{}:K;switch(F.type){case"addVideo":return{videoList:[].concat(Object(f.a)(H.videoList),[{name:k.file.name,size:k.file.size,type:k.file.type,fileHash:k.fileHash,state:k.state,videoId:k.videoId,loaded:k.loaded||0,title:""}])};case"removeVideo":return{videoList:H.videoList.filter(function(I){return I.name!==F.payload.name})};case"removeAll":return{videoList:[]};case"updateProgress":return{videoList:H.videoList.map(function(I){return I.name===F.payload.uploadInfo.file.name?Object(m.a)(Object(m.a)({},I),{loaded:F.payload.progressPercent,videoId:k.videoId,fileHash:k.fileHash}):I})};case"updateTitle":return{videoList:(te=H.videoList)===null||te===void 0?void 0:te.map(function(I){return I.name===F.payload.item.name?Object(m.a)(Object(m.a)({},I),{title:F.payload.title}):I})};default:return{videoList:[]}}},G=function(H){var F,te=H.user,ae=H.globalSetting,K=H.loading,k=H.dispatch,I=H.visible,z=H.editData,X=H.onCancel,Z=X===void 0?function(){}:X,J=H.onOk,re=J===void 0?function(){}:J,ee=Object(D.m)(),se=s.a.useForm(),ue=Object(d.a)(se,1),q=ue[0],Y=Object(p.useReducer)(N,{videoList:[]}),ie=Object(d.a)(Y,2),B=ie[0],W=ie[1],oe=Object(p.useState)(!1),ne=Object(d.a)(oe,2),me=ne[0],P=ne[1],a=Object(p.useRef)(),c=Object(p.useState)(),R=Object(d.a)(c,2),y=R[0],x=R[1],Q=Object(p.useState)(!1),V=Object(d.a)(Q,2),xe=V[0],be=V[1],ce=Object(p.useState)(!1),Se=Object(d.a)(ce,2),Qe=Se[0],et=Se[1],he=Object(p.useState)([]),Dt=Object(d.a)(he,2),ft=Dt[0],$t=Dt[1],fn=Object(p.useState)([]),An=Object(d.a)(fn,2),xn=An[0],tn=An[1];Object(p.useEffect)(function(){if(!z)return;be(z.is_link),x(z.link),!z.is_link&&W({type:"addVideo",payload:{uploadInfo:{file:{name:z.file_name},videoId:z.video_id,loaded:100}}}),q.setFieldsValue({name:z.name,description:z.description,attachment_id:z==null?void 0:z.attachment_id})},[z]);var De=function(){var ot=document.getElementById("fileUpload");ot.value=""},Ye=function(ot){var wt;be(!1);var Xt=ot.target.files[0];if(!Xt){De();return}var ht=Xt.name.toLowerCase();if(ht&&ht.indexOf(".avi")==-1&&ht.indexOf(".flv")==-1&&ht.indexOf(".f4v")==-1&&ht.indexOf(".m4v")==-1&&ht.indexOf(".mov")==-1&&ht.indexOf(".mp4")==-1&&ht.indexOf(".rmvb")==-1&&ht.indexOf(".swf")==-1&&ht.indexOf(".webm")==-1&&ht.indexOf(".wmv")==-1){n.b.info("\u4E0D\u652F\u6301\u7684\u89C6\u9891\u683C\u5F0F"),De();return}if(Xt.size>j*1024*1024){n.b.info("\u89C6\u9891\u5927\u5C0F\u8D85\u8FC71G"),De();return}if((wt=B.videoList)===null||wt===void 0?void 0:wt.find(function(Yt){return Yt.name===Xt.name})){n.b.info("\u4F60\u4E0D\u80FD\u4E0A\u4F20\u540C\u4E00\u4E2A\u89C6\u9891\u6587\u4EF6\u540D\u79F0\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\u3002"),De();return}at(Xt)},rn=function(ot,wt){o.a.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:S.a.createElement("div",{className:"tc"},"\u60A8\u786E\u8BA4\u8981",wt?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20","\u8BE5\u89C6\u9891\u5417\uFF1F"),onOk:function(){De(),W({type:"removeVideo",payload:{name:ot}})}})},at=function(ot){var wt,Xt='{"Vod":{}}';if(P(!0),a.current){a.current.addFile(ot,null,null,null,Xt);return}Object(g.a)((wt=te.userInfo)===null||wt===void 0?void 0:wt.login,{create:!a,addFileSuccess:function(Yt){W({type:"addVideo",payload:{uploadInfo:Yt}})},onUploadProgress:function(Yt,Zn,Rn){var Vn=Math.ceil(Rn*100);W({type:"updateProgress",payload:{uploadInfo:Yt,progressPercent:Vn}}),De()},onUploadFailed:function(Yt){n.b.info("\u89C6\u9891\u4E91\u670D\u52A1\u51FA\u73B0\u5F02\u5E38\uFF0C\u8BF7\u91CD\u65B0\u4E0A\u4F20\u3002")},onUploadEnd:function(Yt){P(!1)},onUploadSucceed:function(Yt){P(!1)},onUploadError:function(Yt){P(!1)},gotUploader:function(Yt){Yt.addFile(ot,null,null,null,Xt),a.current=Yt}})},qt=function(){var wn=Object(r.a)(_.a.mark(function ot(){var wt,Xt,ht,Yt;return _.a.wrap(function(Rn){for(;;)switch(Rn.prev=Rn.next){case 0:return Rn.next=2,q.validateFields();case 2:if(!(!xe&&!((wt=B.videoList)===null||wt===void 0?void 0:wt.length)||xe&&!y)){Rn.next=5;break}return n.b.info("\u8BF7\u5148\u4E0A\u4F20\u89C6\u9891\u6216\u8005\u6DFB\u52A0\u5916\u94FE"),Rn.abrupt("return");case 5:et(!0),ht=xe?{link:y}:{video_id:(Xt=B.videoList)===null||Xt===void 0?void 0:Xt[0].videoId};debugger;return Rn.next=10,re(Object(m.a)(Object(m.a)({},ht),{name:q.getFieldValue("name"),attachment_id:q.getFieldValue("attachment_id"),description:q.getFieldValue("description")}));case 10:Yt=Rn.sent,et(!1),Yt.id&&tt();case 13:case"end":return Rn.stop()}},ot)}));return function(){return wn.apply(this,arguments)}}(),tt=function(){q.resetFields(),W({type:"removeAll"}),x(null),be(null)},Nt=function(){Z(),tt()},jn={name:"file",multiple:!0,accept:".mkv, .flv, .f4v, .rmvb, .swf, video/mp4,video/x-m4v,video/flv,video/f4v,video/rmvb,video/swf,video/*",action:T.a.API_SERVER+"/api/attachments.json",withCredentials:!0,onRemove:function(ot){tn([])},onChange:function(ot){var wt=ot.file.status;if(wt!=="uploading",wt==="removed"&&$t(ot.fileList),wt==="done"){var Xt,ht,Yt;$t(ot==null||((Xt=ot.fileList)===null||Xt===void 0)?void 0:Xt.slice(-1)),W({type:"addVideo",payload:{uploadInfo:{videoId:ot==null||((ht=ot.fileList[0])===null||ht===void 0||((Yt=ht.response)===null||Yt===void 0))?void 0:Yt.id,loaded:100,file:Object(m.a)({},ot==null?void 0:ot.fileList[0])}}}),be(!1),n.b.success("".concat(ot.file.name," \u6587\u4EF6\u4E0A\u4F20\u6210\u529F"))}else wt==="error"&&n.b.error("".concat(ot.file.name," \u6587\u4EF6\u4E0A\u4F20\u5931\u8D25"))},beforeUpload:function(ot){var wt=ot.size/1024/1024<1e3;return wt||n.b.info("\u6587\u4EF6\u5927\u5C0F\u5FC5\u987B\u5C0F\u4E8E150MB"),wt}},on=function(){var ot,wt,Xt,ht,Yt,Zn,Rn,Vn,oa,Nn,dr,tr;return S.a.createElement(S.a.Fragment,null,!xe&&!!((ot=B.videoList)===null||ot===void 0?void 0:ot.length)&&S.a.createElement("div",{className:C.a.fileProgress},((wt=B.videoList)===null||wt===void 0||((Xt=wt[0])===null||Xt===void 0)?void 0:Xt.loaded)==100?S.a.createElement("div",{className:"".concat(C.a.videoName," font14")},(ht=B.videoList)===null||ht===void 0||((Yt=ht[0])===null||Yt===void 0)?void 0:Yt.name):S.a.createElement(v.a,{style:{width:"80%"},percent:(Zn=B.videoList)===null||Zn===void 0||((Rn=Zn[0])===null||Rn===void 0)?void 0:Rn.loaded,status:((Vn=B.videoList)===null||Vn===void 0||((oa=Vn[0])===null||oa===void 0)?void 0:oa.loaded)==100?"normal":"active"}),S.a.createElement("div",{className:C.a.fileCancel,onClick:function(){var Oa,fr,da,nr;return rn((Oa=B.videoList)===null||Oa===void 0||((fr=Oa[0])===null||fr===void 0)?void 0:fr.name,((da=B.videoList)===null||da===void 0||((nr=da[0])===null||nr===void 0)?void 0:nr.loaded)==100)}},((Nn=B.videoList)===null||Nn===void 0||((dr=Nn[0])===null||dr===void 0)?void 0:dr.loaded)===100?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20")),!((tr=B.videoList)===null||tr===void 0?void 0:tr.length)&&S.a.createElement("div",{className:C.a.uploadWrap},S.a.createElement("label",{htmlFor:"fileUpload",style:{marginRight:"30px"}},S.a.createElement(it.a,jn,S.a.createElement(t.a,{className:C.a.upload,disabled:(xn==null?void 0:xn.length)>0},S.a.createElement("i",{className:"iconfont icon-shangchuanshipin1 mr5"}),"\u4E0A\u4F20\u89C6\u9891"))),S.a.createElement("label",{className:"".concat(C.a.upload," ").concat(C.a.uploadLink),onClick:function(){return be(!0)}},S.a.createElement("i",{className:"iconfont icon-lianjie1 mr5"}),"\u6DFB\u52A0\u5916\u94FE")),xe&&S.a.createElement(b.a,{className:"mt5",placeholder:"\u8BF7\u8F93\u5165\u89C6\u9891\u94FE\u63A5",value:y,onChange:function(Oa){return x(Oa.target.value)}}))};return S.a.createElement(o.a,{centered:!0,maskClosable:!1,title:z?"\u7F16\u8F91\u89C6\u9891\u9879\u76EE":"\u65B0\u5EFA\u89C6\u9891\u9879\u76EE",width:740,className:C.a.modal,visible:I,confirmLoading:Qe,onOk:qt,onCancel:Nt},S.a.createElement(s.a,{form:q},S.a.createElement("input",{type:"file",id:"fileUpload",style:{display:"none"},onChange:Ye,accept:".mkv, .flv, .f4v, .rmvb, .swf, video/mp4,video/x-m4v,video/flv,video/f4v,video/rmvb,video/swf,video/*"}),S.a.createElement(s.a.Item,{label:"\u9879\u76EE\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\u79F0"}]},S.a.createElement(b.a,{maxLength:40,placeholder:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC740\u5B57\u7684\u9879\u76EE\u540D\u79F0"})),S.a.createElement(s.a.Item,{label:"\u9879\u76EE\u5185\u5BB9",name:"content",className:C.a.contentItem},on()),S.a.createElement(s.a.Item,{name:"attachment_id",label:"\u4E0A\u4F20\u5C01\u9762\u56FE:"},S.a.createElement(M.a,{getFileProgress:function(ot){if(ot.file.status==="uploading"){et(!0);return}ot.file.status==="done"&&et(!1)}})),S.a.createElement(s.a.Item,{label:"\u9879\u76EE\u7B80\u4ECB",name:"description",className:"ml8"},S.a.createElement(L,{rows:5,maxLength:800,placeholder:"\u8BF7\u8F93\u5165\u672C\u89C6\u9891\u7B80\u4ECB\uFF0C\u6700\u591A\u4E0D\u8D85\u8FC7800\u5B57"})),S.a.createElement("div",{className:"c-grey-999"},S.a.createElement("div",null,"\u6CE8\u610F\uFF1A"),S.a.createElement("div",null,"1\u3001\u4E0A\u4F20\u89C6\u9891\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F",S.a.createElement(h.Link,{to:"/users/".concat((F=te.userInfo)===null||F===void 0?void 0:F.login,"/videos/protocol"),target:"_blank",className:C.a.colorBlue},"\u4E0A\u4F20\u5185\u5BB9\u534F\u8BAE"),"\uFF0C\u4E0D\u5F97\u4E0A\u4F20\u672A\u7ECF\u4ED6\u4EBA\u6388\u6743\u7684\u4F5C\u54C1\uFF1B"),S.a.createElement("div",null,"2\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC71G\uFF1B"),S.a.createElement("div",null,"3\u3001\u652F\u6301\u6587\u4EF6\u683C\u5F0F\uFF1Aavi\u3001flv\u3001f4v\u3001m4v\u3001mov\u3001mp4\u3001rmvb\u3001swf\u3001webm\u3001wmv\uFF1B"),S.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"))))};pe.a=Object(E.a)(function($){var H=$.user,F=$.loading,te=$.globalSetting;return{user:H,globalSetting:te,loading:F}})(G)},uRQ9:function(Ue,pe,U){Ue.exports={flex_box_center:"flex_box_center___1iLgt",flex_space_between:"flex_space_between___3p7p-",flex_box_vertical_center:"flex_box_vertical_center___3FnaF",flex_box_center_end:"flex_box_center_end___XIPip",flex_box_column:"flex_box_column___3ji4d",certificate:"certificate___3Sn4A",actionsBtns:"actionsBtns___30qsn"}},w8Aa:function(Ue,pe,U){Ue.exports={img:"img___3e4yQ"}},wD15:function(Ue,pe,U){var Xe=U("ProS");function it(ve,t){return ve&&ve.getShallow(t)}Xe.extendChartView({type:"wordCloud",render:function(t,w,v){var l=this.group;l.removeAll();var _=t.getData(),r=t.get("gridSize");t.layoutInstance.ondraw=function(u,o,e,n){var i=_.getItemModel(e),s=i.getModel("textStyle.normal"),d=i.getModel("textStyle.emphasis"),m=new Xe.graphic.Text({style:Xe.graphic.setTextStyle({},s,{x:n.info.fillTextOffsetX,y:n.info.fillTextOffsetY+o*.5,text:u,textBaseline:"middle",textFill:_.getItemVisual(e,"color"),fontSize:o}),scale:[1/n.info.mu,1/n.info.mu],position:[(n.gx+n.info.gw/2)*r,(n.gy+n.info.gh/2)*r],rotation:n.rot});l.add(m),_.setItemGraphicEl(e,m),Xe.graphic.setHoverStyle(m,Xe.graphic.setTextStyle({},d,null,{forMerge:!0},!0))},this._model=t},remove:function(){this.group.removeAll(),this._model.layoutInstance.dispose()},dispose:function(){this._model.layoutInstance.dispose()}})},wzkS:function(Ue,pe,U){"use strict";U.d(pe,"c",function(){return w}),U.d(pe,"b",function(){return v}),U.d(pe,"d",function(){return l}),U.d(pe,"a",function(){return r}),U.d(pe,"e",function(){return u});var Xe=U("WmNS"),it=U.n(Xe),ve=U("9og8"),t=U("ErOA");function w(o){return Object(t.c)("libraries/".concat(o,".json"))}function v(){return Object(t.c)("library_tags.json")}function l(o){return _.apply(this,arguments)}function _(){return _=Object(ve.a)(it.a.mark(function o(e){var n;return it.a.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,Object(t.b)("attachments/".concat(e,".json"));case 2:return n=s.sent,s.abrupt("return",n.status===0);case 4:case"end":return s.stop()}},o)})),_.apply(this,arguments)}function r(o){return Object(t.f)("libraries.json",o)}function u(o,e){return Object(t.g)("libraries/".concat(o,".json"),e)}},"y1J/":function(Ue,pe,U){Ue.exports=U.p+"static/yz.688d901a.png"},y5JW:function(Ue,pe,U){"use strict";U.d(pe,"c",function(){return d}),U.d(pe,"a",function(){return m});var Xe=U("DZo9"),it=U("8z0m"),ve=U("+L6B"),t=U("2/Rp"),w=U("WmNS"),v=U.n(w),l=U("9og8"),_=U("k1fw"),r=U("oBTY"),u=U("miYZ"),o=U("tsqr"),e=U("q1tI"),n=U.n(e),i=U("m3rI"),s=U("wzkS"),d="\u3000\u3000";function m(f){var A=["Bytes","KB","MB","GB","TB"];if(f==0)return"0 Byte";var b=parseInt(""+Math.floor(Math.log(f)/Math.log(1024)),10);return(f/Math.pow(1024,b)).toFixed(1)+" "+A[b]}pe.b=function(f){var A=f.value,b=A===void 0?[]:A,p=f.onChange,S=f.className,D=f.maxSize,h=D===void 0?150:D,E=f.title,O=E===void 0?"\u6587\u4EF6\u4E0A\u4F20":E,C=f.accept,g=C===void 0?null:C,M={multiple:!1,fileList:b,accept:g,withCredentials:!0,beforeUpload:function(j){var N=j.size/1024/1024;return N<h?!0:(o.b.error("\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(".concat(h,"MB),\u5EFA\u8BAE\u4E0A\u4F20\u5230\u767E\u5EA6\u4E91\u7B49\u5176\u5B83\u5171\u4EAB\u5DE5\u5177\u91CC\uFF0C\u7136\u540E\u518Dtxt\u6587\u6863\u91CC\u7ED9\u51FA\u94FE\u63A5\u4EE5\u53CA\u5171\u4EAB\u5BC6\u7801\u5E76\u4E0A\u4F20")),!1)},action:"".concat(i.a.API_SERVER,"/api/attachments.json"),onChange:function(j){var N=Object(r.a)(j.fileList);N=N.map(function(G){return G.name.indexOf(d)===-1&&(G.name="".concat(G.name).concat(d).concat(m(G.size))),Object(_.a)({},G)}),p(N)},onRemove:function(){var L=Object(l.a)(v.a.mark(function N(G){var $,H;return v.a.wrap(function(te){for(;;)switch(te.prev=te.next){case 0:if($=G.response?G.response.id:G.uid,!$){te.next=8;break}return te.next=4,Object(s.d)(G.response?G.response.id:G.id);case 4:return H=te.sent,te.abrupt("return",H);case 8:return te.abrupt("return",!0);case 9:case"end":return te.stop()}},N)}));function j(N){return L.apply(this,arguments)}return j}()};function T(L){L.preventDefault(),L.stopPropagation()}return n.a.createElement("div",{className:"single-upload ".concat(S||"")},n.a.createElement(it.a,M,n.a.createElement(t.a,{type:"primary",title:b.length>0?"\u6BCF\u6B21\u53EA\u80FD\u4E0A\u4F20\u4E00\u4E2A\u8D44\u6E90\uFF0C \u5220\u9664\u4E0B\u9762\u8D44\u6E90\u53EF\u91CD\u65B0\u4E0A\u4F20 ":"",disabled:b.length>0,ghost:!0},O),n.a.createElement("span",{onClick:T,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",h,"M) ")))}}}]);
|