|
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[217,12],{"1ZF9":function(st,at,pe){st.exports=pe.p+"static/Authorize.cc9c212f.png"},"96GE":function(st,at,pe){"use strict";pe.r(at),pe.d(at,"formatQuery",function(){return Fe});var Ye=pe("T2oS"),rt=pe("W9HT"),Oe=pe("k1fw"),r=pe("PpiC"),A=pe("q1tI"),y=pe.n(A),m=pe("9kvl"),b=pe("JqQi"),i=pe.n(b),u=pe("5Dmo"),f=pe("3S7+"),s=pe("+L6B"),t=pe("2/Rp"),a=pe("pC0b"),o=pe("GzdX"),c=pe("9og8"),d=pe("tJVT"),l=pe("nUhQ"),x=pe.n(l),w=pe("2qtc"),p=pe("kLXV"),O=pe("7Kak"),S=pe("9yH6"),h=pe("miYZ"),E=pe("tsqr"),L=pe("5NDa"),P=pe("5rEg"),g=pe("Ty5D"),F=pe("sWEp"),I=pe.n(F),X=pe("qdXH");function R(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */R=function(){return he};var he={},Se=Object.prototype,Te=Se.hasOwnProperty,Pe=Object.defineProperty||function(z,j,N){z[j]=N.value},We=typeof Symbol=="function"?Symbol:{},Xe=We.iterator||"@@iterator",it=We.asyncIterator||"@@asyncIterator",$e=We.toStringTag||"@@toStringTag";function De(z,j,N){return Object.defineProperty(z,j,{value:N,enumerable:!0,configurable:!0,writable:!0}),z[j]}try{De({},"")}catch(z){De=function(N,ee,re){return N[ee]=re}}function ot(z,j,N,ee){var re=j&&j.prototype instanceof Ze?j:Ze,te=Object.create(re.prototype),de=new He(ee||[]);return Pe(te,"_invoke",{value:Ie(z,N,de)}),te}function nt(z,j,N){try{return{type:"normal",arg:z.call(j,N)}}catch(ee){return{type:"throw",arg:ee}}}he.wrap=ot;var je={};function Ze(){}function Ue(){}function ke(){}var Be={};De(Be,Xe,function(){return this});var Ve=Object.getPrototypeOf,Re=Ve&&Ve(Ve(Ke([])));Re&&Re!==Se&&Te.call(Re,Xe)&&(Be=Re);var be=ke.prototype=Ze.prototype=Object.create(Be);function Ge(z){["next","throw","return"].forEach(function(j){De(z,j,function(N){return this._invoke(j,N)})})}function Ne(z,j){function N(re,te,de,xe){var ge=nt(z[re],z,te);if(ge.type!=="throw"){var Ce=ge.arg,Me=Ce.value;return Me&&typeof Me=="object"&&Te.call(Me,"__await")?j.resolve(Me.__await).then(function(ze){N("next",ze,de,xe)},function(ze){N("throw",ze,de,xe)}):j.resolve(Me).then(function(ze){Ce.value=ze,de(Ce)},function(ze){return N("throw",ze,de,xe)})}xe(ge.arg)}var ee;Pe(this,"_invoke",{value:function(te,de){function xe(){return new j(function(ge,Ce){N(te,de,ge,Ce)})}return ee=ee?ee.then(xe,xe):xe()}})}function Ie(z,j,N){var ee="suspendedStart";return function(re,te){if(ee==="executing")throw new Error("Generator is already running");if(ee==="completed"){if(re==="throw")throw te;return tt()}for(N.method=re,N.arg=te;;){var de=N.delegate;if(de){var xe=Je(de,N);if(xe){if(xe===je)continue;return xe}}if(N.method==="next")N.sent=N._sent=N.arg;else if(N.method==="throw"){if(ee==="suspendedStart")throw ee="completed",N.arg;N.dispatchException(N.arg)}else N.method==="return"&&N.abrupt("return",N.arg);ee="executing";var ge=nt(z,j,N);if(ge.type==="normal"){if(ee=N.done?"completed":"suspendedYield",ge.arg===je)continue;return{value:ge.arg,done:N.done}}ge.type==="throw"&&(ee="completed",N.method="throw",N.arg=ge.arg)}}}function Je(z,j){var N=j.method,ee=z.iterator[N];if(ee===void 0)return j.delegate=null,N==="throw"&&z.iterator.return&&(j.method="return",j.arg=void 0,Je(z,j),j.method==="throw")||N!=="return"&&(j.method="throw",j.arg=new TypeError("The iterator does not provide a '"+N+"' method")),je;var re=nt(ee,z.iterator,j.arg);if(re.type==="throw")return j.method="throw",j.arg=re.arg,j.delegate=null,je;var te=re.arg;return te?te.done?(j[z.resultName]=te.value,j.next=z.nextLoc,j.method!=="return"&&(j.method="next",j.arg=void 0),j.delegate=null,je):te:(j.method="throw",j.arg=new TypeError("iterator result is not an object"),j.delegate=null,je)}function qe(z){var j={tryLoc:z[0]};1 in z&&(j.catchLoc=z[1]),2 in z&&(j.finallyLoc=z[2],j.afterLoc=z[3]),this.tryEntries.push(j)}function Qe(z){var j=z.completion||{};j.type="normal",delete j.arg,z.completion=j}function He(z){this.tryEntries=[{tryLoc:"root"}],z.forEach(qe,this),this.reset(!0)}function Ke(z){if(z){var j=z[Xe];if(j)return j.call(z);if(typeof z.next=="function")return z;if(!isNaN(z.length)){var N=-1,ee=function re(){for(;++N<z.length;)if(Te.call(z,N))return re.value=z[N],re.done=!1,re;return re.value=void 0,re.done=!0,re};return ee.next=ee}}return{next:tt}}function tt(){return{value:void 0,done:!0}}return Ue.prototype=ke,Pe(be,"constructor",{value:ke,configurable:!0}),Pe(ke,"constructor",{value:Ue,configurable:!0}),Ue.displayName=De(ke,$e,"GeneratorFunction"),he.isGeneratorFunction=function(z){var j=typeof z=="function"&&z.constructor;return!!j&&(j===Ue||(j.displayName||j.name)==="GeneratorFunction")},he.mark=function(z){return Object.setPrototypeOf?Object.setPrototypeOf(z,ke):(z.__proto__=ke,De(z,$e,"GeneratorFunction")),z.prototype=Object.create(be),z},he.awrap=function(z){return{__await:z}},Ge(Ne.prototype),De(Ne.prototype,it,function(){return this}),he.AsyncIterator=Ne,he.async=function(z,j,N,ee,re){re===void 0&&(re=Promise);var te=new Ne(ot(z,j,N,ee),re);return he.isGeneratorFunction(j)?te:te.next().then(function(de){return de.done?de.value:te.next()})},Ge(be),De(be,$e,"Generator"),De(be,Xe,function(){return this}),De(be,"toString",function(){return"[object Generator]"}),he.keys=function(z){var j=Object(z),N=[];for(var ee in j)N.push(ee);return N.reverse(),function re(){for(;N.length;){var te=N.pop();if(te in j)return re.value=te,re.done=!1,re}return re.done=!0,re}},he.values=Ke,He.prototype={constructor:He,reset:function(j){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(Qe),!j)for(var N in this)N.charAt(0)==="t"&&Te.call(this,N)&&!isNaN(+N.slice(1))&&(this[N]=void 0)},stop:function(){this.done=!0;var j=this.tryEntries[0].completion;if(j.type==="throw")throw j.arg;return this.rval},dispatchException:function(j){if(this.done)throw j;var N=this;function ee(Ce,Me){return de.type="throw",de.arg=j,N.next=Ce,Me&&(N.method="next",N.arg=void 0),!!Me}for(var re=this.tryEntries.length-1;re>=0;--re){var te=this.tryEntries[re],de=te.completion;if(te.tryLoc==="root")return ee("end");if(te.tryLoc<=this.prev){var xe=Te.call(te,"catchLoc"),ge=Te.call(te,"finallyLoc");if(xe&&ge){if(this.prev<te.catchLoc)return ee(te.catchLoc,!0);if(this.prev<te.finallyLoc)return ee(te.finallyLoc)}else if(xe){if(this.prev<te.catchLoc)return ee(te.catchLoc,!0)}else{if(!ge)throw new Error("try statement without catch or finally");if(this.prev<te.finallyLoc)return ee(te.finallyLoc)}}}},abrupt:function(j,N){for(var ee=this.tryEntries.length-1;ee>=0;--ee){var re=this.tryEntries[ee];if(re.tryLoc<=this.prev&&Te.call(re,"finallyLoc")&&this.prev<re.finallyLoc){var te=re;break}}te&&(j==="break"||j==="continue")&&te.tryLoc<=N&&N<=te.finallyLoc&&(te=null);var de=te?te.completion:{};return de.type=j,de.arg=N,te?(this.method="next",this.next=te.finallyLoc,je):this.complete(de)},complete:function(j,N){if(j.type==="throw")throw j.arg;return j.type==="break"||j.type==="continue"?this.next=j.arg:j.type==="return"?(this.rval=this.arg=j.arg,this.method="return",this.next="end"):j.type==="normal"&&N&&(this.next=N),je},finish:function(j){for(var N=this.tryEntries.length-1;N>=0;--N){var ee=this.tryEntries[N];if(ee.finallyLoc===j)return this.complete(ee.completion,ee.afterLoc),Qe(ee),je}},catch:function(j){for(var N=this.tryEntries.length-1;N>=0;--N){var ee=this.tryEntries[N];if(ee.tryLoc===j){var re=ee.completion;if(re.type==="throw"){var te=re.arg;Qe(ee)}return te}}throw new Error("illegal catch attempt")},delegateYield:function(j,N,ee){return this.delegate={iterator:Ke(j),resultName:N,nextLoc:ee},this.method==="next"&&(this.arg=void 0),je}},he}var V=P.a.Search,H=function(Se){var Te,Pe=Se.videoDetail,We=Se.globalSetting,Xe=Se.loading,it=Se.dispatch,$e=Object(r.a)(Se,["videoDetail","globalSetting","loading","dispatch"]),De=Object(g.m)(),ot=Object(g.l)(),nt=Object(A.useState)([]),je=Object(d.a)(nt,2),Ze=je[0],Ue=je[1],ke=Object(A.useState)(""),Be=Object(d.a)(ke,2),Ve=Be[0],Re=Be[1],be=Object(A.useState)(),Ge=Object(d.a)(be,2),Ne=Ge[0],Ie=Ge[1],Je=Object(A.useState)(!1),qe=Object(d.a)(Je,2),Qe=qe[0],He=qe[1],Ke=Object(A.useState)(!1),tt=Object(d.a)(Ke,2),z=tt[0],j=tt[1];Object(A.useEffect)(function(){Pe.actionTabs.key==="Banner-SendToClass"&&N()},[Pe.actionTabs.key]);var N=function(){var de=Object(c.a)(R().mark(function xe(){var ge,Ce;return R().wrap(function(ze){for(;;)switch(ze.prev=ze.next){case 0:return ze.next=2,Object(X.h)({});case 2:if(Ce=ze.sent,!(Ce==null||((ge=Ce.courses)===null||ge===void 0)?void 0:ge.length)){ze.next=8;break}Ue((Ce==null?void 0:Ce.courses)||[]),j(!0),ze.next=11;break;case 8:return te(),E.b.info("\u60A8\u5F53\u524D\u6CA1\u6709\u7BA1\u7406\u4EFB\u4F55\u8BFE\u5802\uFF0C\u4E0D\u53EF\u53D1\u9001"),ze.abrupt("return");case 11:case"end":return ze.stop()}},xe)}));return function(){return de.apply(this,arguments)}}(),ee=function(xe){Ue(Ze==null?void 0:Ze.map(function(ge){return Object(Oe.a)(Object(Oe.a)({},ge),{},{hide:!ge.course_name.includes(xe)})}))},re=function(){var de=Object(c.a)(R().mark(function xe(){var ge;return R().wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:if(Ne){Me.next=3;break}return He(!0),Me.abrupt("return");case 3:return Me.next=5,Object(X.n)({id:De.videoId,course_id:Ne});case 5:ge=Me.sent,(ge==null?void 0:ge.status)===0&&(E.b.success(ge.message),te(),m.c===null||m.c===void 0||m.c.replace("/classrooms/".concat(Ne,"/shixun_homework")));case 7:case"end":return Me.stop()}},xe)}));return function(){return de.apply(this,arguments)}}(),te=function(){Re(""),Ie(null),He(!1),it({type:"videoDetail/setActionTabs",payload:{}}),j(!1)};return y.a.createElement(p.a,{centered:!0,keyboard:!1,closable:!1,title:"\u53D1\u9001\u81F3\u8BFE\u5802",visible:z,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:re,onCancel:te},y.a.createElement("div",{className:I.a.wrap},y.a.createElement("div",{className:"mb10"},y.a.createElement(V,{placeholder:"\u8F93\u5165\u8BFE\u5802\u540D\u79F0\u7684\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22",value:Ve,onChange:function(xe){return Re(xe.target.value)},onSearch:function(xe){Re(xe),ee(xe)}})),y.a.createElement("div",{className:I.a.radioWrap},y.a.createElement(S.a.Group,{value:Ne,onChange:function(xe){Ie(xe.target.value),He(!1)}},Ze==null||((Te=Ze.filter(function(de){return!(de==null?void 0:de.hide)}))===null||Te===void 0)?void 0:Te.map(function(de,xe){return y.a.createElement(S.a,{className:I.a.radio,value:de.course_id,key:xe},de.course_name)}))),Qe&&y.a.createElement("div",{className:I.a.colorFF0000},"\u8BF7\u9009\u62E9\u4F60\u8981\u53D1\u9001\u7684\u8BFE\u5802"),y.a.createElement("div",{className:I.a.title},"\u6E29\u99A8\u63D0\u793A\uFF1A\u5F53\u524D\u89C6\u9891\u9879\u76EE\u5C06\u4F1A\u53D1\u9001\u5230\u6307\u5B9A\u8BFE\u5802")))},$=Object(m.a)(function(he){var Se=he.videoDetail,Te=he.loading,Pe=he.globalSetting;return{videoDetail:Se,globalSetting:Pe,loading:Te.models.index}})(H),ae=pe("sBCT"),M=pe("1vsH"),Q=pe("NLgs"),Y=pe("Awhp"),W=pe("KrTs"),D=pe("O3gP"),C=pe("lrIw"),U=pe("oBTY"),G=pe("eoI0"),J=pe.n(G),ne=pe("HBuW");function fe(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */fe=function(){return he};var he={},Se=Object.prototype,Te=Se.hasOwnProperty,Pe=Object.defineProperty||function(z,j,N){z[j]=N.value},We=typeof Symbol=="function"?Symbol:{},Xe=We.iterator||"@@iterator",it=We.asyncIterator||"@@asyncIterator",$e=We.toStringTag||"@@toStringTag";function De(z,j,N){return Object.defineProperty(z,j,{value:N,enumerable:!0,configurable:!0,writable:!0}),z[j]}try{De({},"")}catch(z){De=function(N,ee,re){return N[ee]=re}}function ot(z,j,N,ee){var re=j&&j.prototype instanceof Ze?j:Ze,te=Object.create(re.prototype),de=new He(ee||[]);return Pe(te,"_invoke",{value:Ie(z,N,de)}),te}function nt(z,j,N){try{return{type:"normal",arg:z.call(j,N)}}catch(ee){return{type:"throw",arg:ee}}}he.wrap=ot;var je={};function Ze(){}function Ue(){}function ke(){}var Be={};De(Be,Xe,function(){return this});var Ve=Object.getPrototypeOf,Re=Ve&&Ve(Ve(Ke([])));Re&&Re!==Se&&Te.call(Re,Xe)&&(Be=Re);var be=ke.prototype=Ze.prototype=Object.create(Be);function Ge(z){["next","throw","return"].forEach(function(j){De(z,j,function(N){return this._invoke(j,N)})})}function Ne(z,j){function N(re,te,de,xe){var ge=nt(z[re],z,te);if(ge.type!=="throw"){var Ce=ge.arg,Me=Ce.value;return Me&&typeof Me=="object"&&Te.call(Me,"__await")?j.resolve(Me.__await).then(function(ze){N("next",ze,de,xe)},function(ze){N("throw",ze,de,xe)}):j.resolve(Me).then(function(ze){Ce.value=ze,de(Ce)},function(ze){return N("throw",ze,de,xe)})}xe(ge.arg)}var ee;Pe(this,"_invoke",{value:function(te,de){function xe(){return new j(function(ge,Ce){N(te,de,ge,Ce)})}return ee=ee?ee.then(xe,xe):xe()}})}function Ie(z,j,N){var ee="suspendedStart";return function(re,te){if(ee==="executing")throw new Error("Generator is already running");if(ee==="completed"){if(re==="throw")throw te;return tt()}for(N.method=re,N.arg=te;;){var de=N.delegate;if(de){var xe=Je(de,N);if(xe){if(xe===je)continue;return xe}}if(N.method==="next")N.sent=N._sent=N.arg;else if(N.method==="throw"){if(ee==="suspendedStart")throw ee="completed",N.arg;N.dispatchException(N.arg)}else N.method==="return"&&N.abrupt("return",N.arg);ee="executing";var ge=nt(z,j,N);if(ge.type==="normal"){if(ee=N.done?"completed":"suspendedYield",ge.arg===je)continue;return{value:ge.arg,done:N.done}}ge.type==="throw"&&(ee="completed",N.method="throw",N.arg=ge.arg)}}}function Je(z,j){var N=j.method,ee=z.iterator[N];if(ee===void 0)return j.delegate=null,N==="throw"&&z.iterator.return&&(j.method="return",j.arg=void 0,Je(z,j),j.method==="throw")||N!=="return"&&(j.method="throw",j.arg=new TypeError("The iterator does not provide a '"+N+"' method")),je;var re=nt(ee,z.iterator,j.arg);if(re.type==="throw")return j.method="throw",j.arg=re.arg,j.delegate=null,je;var te=re.arg;return te?te.done?(j[z.resultName]=te.value,j.next=z.nextLoc,j.method!=="return"&&(j.method="next",j.arg=void 0),j.delegate=null,je):te:(j.method="throw",j.arg=new TypeError("iterator result is not an object"),j.delegate=null,je)}function qe(z){var j={tryLoc:z[0]};1 in z&&(j.catchLoc=z[1]),2 in z&&(j.finallyLoc=z[2],j.afterLoc=z[3]),this.tryEntries.push(j)}function Qe(z){var j=z.completion||{};j.type="normal",delete j.arg,z.completion=j}function He(z){this.tryEntries=[{tryLoc:"root"}],z.forEach(qe,this),this.reset(!0)}function Ke(z){if(z){var j=z[Xe];if(j)return j.call(z);if(typeof z.next=="function")return z;if(!isNaN(z.length)){var N=-1,ee=function re(){for(;++N<z.length;)if(Te.call(z,N))return re.value=z[N],re.done=!1,re;return re.value=void 0,re.done=!0,re};return ee.next=ee}}return{next:tt}}function tt(){return{value:void 0,done:!0}}return Ue.prototype=ke,Pe(be,"constructor",{value:ke,configurable:!0}),Pe(ke,"constructor",{value:Ue,configurable:!0}),Ue.displayName=De(ke,$e,"GeneratorFunction"),he.isGeneratorFunction=function(z){var j=typeof z=="function"&&z.constructor;return!!j&&(j===Ue||(j.displayName||j.name)==="GeneratorFunction")},he.mark=function(z){return Object.setPrototypeOf?Object.setPrototypeOf(z,ke):(z.__proto__=ke,De(z,$e,"GeneratorFunction")),z.prototype=Object.create(be),z},he.awrap=function(z){return{__await:z}},Ge(Ne.prototype),De(Ne.prototype,it,function(){return this}),he.AsyncIterator=Ne,he.async=function(z,j,N,ee,re){re===void 0&&(re=Promise);var te=new Ne(ot(z,j,N,ee),re);return he.isGeneratorFunction(j)?te:te.next().then(function(de){return de.done?de.value:te.next()})},Ge(be),De(be,$e,"Generator"),De(be,Xe,function(){return this}),De(be,"toString",function(){return"[object Generator]"}),he.keys=function(z){var j=Object(z),N=[];for(var ee in j)N.push(ee);return N.reverse(),function re(){for(;N.length;){var te=N.pop();if(te in j)return re.value=te,re.done=!1,re}return re.done=!0,re}},he.values=Ke,He.prototype={constructor:He,reset:function(j){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(Qe),!j)for(var N in this)N.charAt(0)==="t"&&Te.call(this,N)&&!isNaN(+N.slice(1))&&(this[N]=void 0)},stop:function(){this.done=!0;var j=this.tryEntries[0].completion;if(j.type==="throw")throw j.arg;return this.rval},dispatchException:function(j){if(this.done)throw j;var N=this;function ee(Ce,Me){return de.type="throw",de.arg=j,N.next=Ce,Me&&(N.method="next",N.arg=void 0),!!Me}for(var re=this.tryEntries.length-1;re>=0;--re){var te=this.tryEntries[re],de=te.completion;if(te.tryLoc==="root")return ee("end");if(te.tryLoc<=this.prev){var xe=Te.call(te,"catchLoc"),ge=Te.call(te,"finallyLoc");if(xe&&ge){if(this.prev<te.catchLoc)return ee(te.catchLoc,!0);if(this.prev<te.finallyLoc)return ee(te.finallyLoc)}else if(xe){if(this.prev<te.catchLoc)return ee(te.catchLoc,!0)}else{if(!ge)throw new Error("try statement without catch or finally");if(this.prev<te.finallyLoc)return ee(te.finallyLoc)}}}},abrupt:function(j,N){for(var ee=this.tryEntries.length-1;ee>=0;--ee){var re=this.tryEntries[ee];if(re.tryLoc<=this.prev&&Te.call(re,"finallyLoc")&&this.prev<re.finallyLoc){var te=re;break}}te&&(j==="break"||j==="continue")&&te.tryLoc<=N&&N<=te.finallyLoc&&(te=null);var de=te?te.completion:{};return de.type=j,de.arg=N,te?(this.method="next",this.next=te.finallyLoc,je):this.complete(de)},complete:function(j,N){if(j.type==="throw")throw j.arg;return j.type==="break"||j.type==="continue"?this.next=j.arg:j.type==="return"?(this.rval=this.arg=j.arg,this.method="return",this.next="end"):j.type==="normal"&&N&&(this.next=N),je},finish:function(j){for(var N=this.tryEntries.length-1;N>=0;--N){var ee=this.tryEntries[N];if(ee.finallyLoc===j)return this.complete(ee.completion,ee.afterLoc),Qe(ee),je}},catch:function(j){for(var N=this.tryEntries.length-1;N>=0;--N){var ee=this.tryEntries[N];if(ee.tryLoc===j){var re=ee.completion;if(re.type==="throw"){var te=re.arg;Qe(ee)}return te}}throw new Error("illegal catch attempt")},delegateYield:function(j,N,ee){return this.delegate={iterator:Ke(j),resultName:N,nextLoc:ee},this.method==="next"&&(this.arg=void 0),je}},he}var se=function(Se){var Te,Pe,We=Se.videoDetail,Xe=Se.dispatch,it=Xe===void 0?function(){}:Xe,$e=Se.visible,De=Se.onClose,ot=De===void 0?function(){}:De,nt=We.queryParams,je=We.queryParams,Ze=je.subject_id,Ue=je.videoId,ke={videoId:Ue},Be={query:nt},Ve=Object(A.useState)(0),Re=Object(d.a)(Ve,2),be=Re[0],Ge=Re[1],Ne=Object(A.useState)(""),Ie=Object(d.a)(Ne,2),Je=Ie[0],qe=Ie[1],Qe=Object(A.useState)([]),He=Object(d.a)(Qe,2),Ke=He[0],tt=He[1],z=Object(A.useState)([]),j=Object(d.a)(z,2),N=j[0],ee=j[1];Object(A.useEffect)(function(){var ge,Ce,Me=((ge=We.detail)===null||ge===void 0||((Ce=ge.video_item)===null||Ce===void 0)?void 0:Ce.schools)||[];Ge((Me==null?void 0:Me.length)?1:0),ee(Me)},[(Te=We.detail)===null||Te===void 0||((Pe=Te.video_item)===null||Pe===void 0)?void 0:Pe.schools]);var re=function(){var ge=Object(c.a)(fe().mark(function Ce(Me){var ze;return fe().wrap(function(ct){for(;;)switch(ct.prev=ct.next){case 0:return ct.next=2,Object(ne.L)({q:Me});case 2:ze=ct.sent,ze&&tt(ze.shools_name||[]);case 4:case"end":return ct.stop()}},Ce)}));return function(Me){return ge.apply(this,arguments)}}(),te=function(Ce){if(N.includes(Ce)){E.b.info("\u8BF7\u52FF\u6307\u5B9A\u76F8\u540C\u7684\u5355\u4F4D");return}qe(""),ee([].concat(Object(U.a)(N),[Ce]))},de=function(){var ge=Object(c.a)(fe().mark(function Ce(){var Me;return fe().wrap(function(ut){for(;;)switch(ut.prev=ut.next){case 0:if(!(be===1&&!(N==null?void 0:N.length))){ut.next=2;break}return ut.abrupt("return",E.b.info("\u8BF7\u9009\u62E9\u6307\u5B9A\u5355\u4F4D\u516C\u5F00"));case 2:return ut.next=4,Object(X.a)(Object(Oe.a)(Object(Oe.a)({},Fe(Be.query)),{},{id:ke.videoId,schools:be===0?[]:N}));case 4:Me=ut.sent,(Me==null?void 0:Me.status)===0&&(E.b.success("\u8BBE\u7F6E\u6210\u529F"),xe());case 6:case"end":return ut.stop()}},Ce)}));return function(){return ge.apply(this,arguments)}}(),xe=function(){ot(),it({type:"videoDetail/getVideoDetail",payload:Object(Oe.a)(Object(Oe.a)({},Fe(Be.query)),{},{id:ke.videoId})})};return y.a.createElement(p.a,{centered:!0,maskClosable:!1,title:"\u6743\u9650\u8BBE\u7F6E",width:530,className:J.a.modal,visible:$e,onOk:de,onCancel:xe},y.a.createElement(y.a.Fragment,null,y.a.createElement(S.a.Group,{value:be,onChange:function(Ce){return Ge(Ce.target.value)}},y.a.createElement(S.a,{value:0},"\u5BF9\u6240\u6709\u5355\u4F4D\u516C\u5F00",y.a.createElement("span",null,"\uFF08\u9009\u4E2D\u540E\uFF0C\u5BF9\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),y.a.createElement(S.a,{value:1},"\u5BF9\u6307\u5B9A\u5355\u4F4D\u516C\u5F00",y.a.createElement("span",null,"\uFF08\u9009\u4E2D\u540E\uFF0C\u4EC5\u5BF9\u4E0B\u65B9\u6307\u5B9A\u5355\u4F4D\u7528\u6237\u53EF\u89C1\uFF09"))),be===1&&y.a.createElement(y.a.Fragment,null,y.a.createElement("div",{className:"mt10"},y.a.createElement(C.a,{showSearch:!0,className:J.a.selectSchool,placeholder:"\u8BF7\u8F93\u5165\u5E76\u9009\u62E9\u5355\u4F4D\u540D\u79F0",value:Je,onChange:function(Ce){qe(Ce),re(Ce)},onSelect:te,options:Ke==null?void 0:Ke.map(function(ge){return{value:ge}})})),y.a.createElement("div",{className:"mt10"},N==null?void 0:N.map(function(ge,Ce){return y.a.createElement(W.a,{count:y.a.createElement("span",{className:J.a.delete,onClick:function(){return ee(N.filter(function(ze){return ze!==ge}))}},"x"),className:"mt10 mr20 current",key:Ce},y.a.createElement(t.a,{type:"primary",ghost:!0},ge))})))))},me=se;function ve(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ve=function(){return he};var he={},Se=Object.prototype,Te=Se.hasOwnProperty,Pe=Object.defineProperty||function(z,j,N){z[j]=N.value},We=typeof Symbol=="function"?Symbol:{},Xe=We.iterator||"@@iterator",it=We.asyncIterator||"@@asyncIterator",$e=We.toStringTag||"@@toStringTag";function De(z,j,N){return Object.defineProperty(z,j,{value:N,enumerable:!0,configurable:!0,writable:!0}),z[j]}try{De({},"")}catch(z){De=function(N,ee,re){return N[ee]=re}}function ot(z,j,N,ee){var re=j&&j.prototype instanceof Ze?j:Ze,te=Object.create(re.prototype),de=new He(ee||[]);return Pe(te,"_invoke",{value:Ie(z,N,de)}),te}function nt(z,j,N){try{return{type:"normal",arg:z.call(j,N)}}catch(ee){return{type:"throw",arg:ee}}}he.wrap=ot;var je={};function Ze(){}function Ue(){}function ke(){}var Be={};De(Be,Xe,function(){return this});var Ve=Object.getPrototypeOf,Re=Ve&&Ve(Ve(Ke([])));Re&&Re!==Se&&Te.call(Re,Xe)&&(Be=Re);var be=ke.prototype=Ze.prototype=Object.create(Be);function Ge(z){["next","throw","return"].forEach(function(j){De(z,j,function(N){return this._invoke(j,N)})})}function Ne(z,j){function N(re,te,de,xe){var ge=nt(z[re],z,te);if(ge.type!=="throw"){var Ce=ge.arg,Me=Ce.value;return Me&&typeof Me=="object"&&Te.call(Me,"__await")?j.resolve(Me.__await).then(function(ze){N("next",ze,de,xe)},function(ze){N("throw",ze,de,xe)}):j.resolve(Me).then(function(ze){Ce.value=ze,de(Ce)},function(ze){return N("throw",ze,de,xe)})}xe(ge.arg)}var ee;Pe(this,"_invoke",{value:function(te,de){function xe(){return new j(function(ge,Ce){N(te,de,ge,Ce)})}return ee=ee?ee.then(xe,xe):xe()}})}function Ie(z,j,N){var ee="suspendedStart";return function(re,te){if(ee==="executing")throw new Error("Generator is already running");if(ee==="completed"){if(re==="throw")throw te;return tt()}for(N.method=re,N.arg=te;;){var de=N.delegate;if(de){var xe=Je(de,N);if(xe){if(xe===je)continue;return xe}}if(N.method==="next")N.sent=N._sent=N.arg;else if(N.method==="throw"){if(ee==="suspendedStart")throw ee="completed",N.arg;N.dispatchException(N.arg)}else N.method==="return"&&N.abrupt("return",N.arg);ee="executing";var ge=nt(z,j,N);if(ge.type==="normal"){if(ee=N.done?"completed":"suspendedYield",ge.arg===je)continue;return{value:ge.arg,done:N.done}}ge.type==="throw"&&(ee="completed",N.method="throw",N.arg=ge.arg)}}}function Je(z,j){var N=j.method,ee=z.iterator[N];if(ee===void 0)return j.delegate=null,N==="throw"&&z.iterator.return&&(j.method="return",j.arg=void 0,Je(z,j),j.method==="throw")||N!=="return"&&(j.method="throw",j.arg=new TypeError("The iterator does not provide a '"+N+"' method")),je;var re=nt(ee,z.iterator,j.arg);if(re.type==="throw")return j.method="throw",j.arg=re.arg,j.delegate=null,je;var te=re.arg;return te?te.done?(j[z.resultName]=te.value,j.next=z.nextLoc,j.method!=="return"&&(j.method="next",j.arg=void 0),j.delegate=null,je):te:(j.method="throw",j.arg=new TypeError("iterator result is not an object"),j.delegate=null,je)}function qe(z){var j={tryLoc:z[0]};1 in z&&(j.catchLoc=z[1]),2 in z&&(j.finallyLoc=z[2],j.afterLoc=z[3]),this.tryEntries.push(j)}function Qe(z){var j=z.completion||{};j.type="normal",delete j.arg,z.completion=j}function He(z){this.tryEntries=[{tryLoc:"root"}],z.forEach(qe,this),this.reset(!0)}function Ke(z){if(z){var j=z[Xe];if(j)return j.call(z);if(typeof z.next=="function")return z;if(!isNaN(z.length)){var N=-1,ee=function re(){for(;++N<z.length;)if(Te.call(z,N))return re.value=z[N],re.done=!1,re;return re.value=void 0,re.done=!0,re};return ee.next=ee}}return{next:tt}}function tt(){return{value:void 0,done:!0}}return Ue.prototype=ke,Pe(be,"constructor",{value:ke,configurable:!0}),Pe(ke,"constructor",{value:Ue,configurable:!0}),Ue.displayName=De(ke,$e,"GeneratorFunction"),he.isGeneratorFunction=function(z){var j=typeof z=="function"&&z.constructor;return!!j&&(j===Ue||(j.displayName||j.name)==="GeneratorFunction")},he.mark=function(z){return Object.setPrototypeOf?Object.setPrototypeOf(z,ke):(z.__proto__=ke,De(z,$e,"GeneratorFunction")),z.prototype=Object.create(be),z},he.awrap=function(z){return{__await:z}},Ge(Ne.prototype),De(Ne.prototype,it,function(){return this}),he.AsyncIterator=Ne,he.async=function(z,j,N,ee,re){re===void 0&&(re=Promise);var te=new Ne(ot(z,j,N,ee),re);return he.isGeneratorFunction(j)?te:te.next().then(function(de){return de.done?de.value:te.next()})},Ge(be),De(be,$e,"Generator"),De(be,Xe,function(){return this}),De(be,"toString",function(){return"[object Generator]"}),he.keys=function(z){var j=Object(z),N=[];for(var ee in j)N.push(ee);return N.reverse(),function re(){for(;N.length;){var te=N.pop();if(te in j)return re.value=te,re.done=!1,re}return re.done=!0,re}},he.values=Ke,He.prototype={constructor:He,reset:function(j){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(Qe),!j)for(var N in this)N.charAt(0)==="t"&&Te.call(this,N)&&!isNaN(+N.slice(1))&&(this[N]=void 0)},stop:function(){this.done=!0;var j=this.tryEntries[0].completion;if(j.type==="throw")throw j.arg;return this.rval},dispatchException:function(j){if(this.done)throw j;var N=this;function ee(Ce,Me){return de.type="throw",de.arg=j,N.next=Ce,Me&&(N.method="next",N.arg=void 0),!!Me}for(var re=this.tryEntries.length-1;re>=0;--re){var te=this.tryEntries[re],de=te.completion;if(te.tryLoc==="root")return ee("end");if(te.tryLoc<=this.prev){var xe=Te.call(te,"catchLoc"),ge=Te.call(te,"finallyLoc");if(xe&&ge){if(this.prev<te.catchLoc)return ee(te.catchLoc,!0);if(this.prev<te.finallyLoc)return ee(te.finallyLoc)}else if(xe){if(this.prev<te.catchLoc)return ee(te.catchLoc,!0)}else{if(!ge)throw new Error("try statement without catch or finally");if(this.prev<te.finallyLoc)return ee(te.finallyLoc)}}}},abrupt:function(j,N){for(var ee=this.tryEntries.length-1;ee>=0;--ee){var re=this.tryEntries[ee];if(re.tryLoc<=this.prev&&Te.call(re,"finallyLoc")&&this.prev<re.finallyLoc){var te=re;break}}te&&(j==="break"||j==="continue")&&te.tryLoc<=N&&N<=te.finallyLoc&&(te=null);var de=te?te.completion:{};return de.type=j,de.arg=N,te?(this.method="next",this.next=te.finallyLoc,je):this.complete(de)},complete:function(j,N){if(j.type==="throw")throw j.arg;return j.type==="break"||j.type==="continue"?this.next=j.arg:j.type==="return"?(this.rval=this.arg=j.arg,this.method="return",this.next="end"):j.type==="normal"&&N&&(this.next=N),je},finish:function(j){for(var N=this.tryEntries.length-1;N>=0;--N){var ee=this.tryEntries[N];if(ee.finallyLoc===j)return this.complete(ee.completion,ee.afterLoc),Qe(ee),je}},catch:function(j){for(var N=this.tryEntries.length-1;N>=0;--N){var ee=this.tryEntries[N];if(ee.tryLoc===j){var re=ee.completion;if(re.type==="throw"){var te=re.arg;Qe(ee)}return te}}throw new Error("illegal catch attempt")},delegateYield:function(j,N,ee){return this.delegate={iterator:Ke(j),resultName:N,nextLoc:ee},this.method==="next"&&(this.arg=void 0),je}},he}var ie=function(Se){var Te=Se.user,Pe=Se.videoDetail,We=Se.globalSetting,Xe=Se.loading,it=Se.dispatch,$e=Object(r.a)(Se,["user","videoDetail","globalSetting","loading","dispatch"]),De=Pe.queryParams,ot=Pe.queryParams,nt=ot.subject_id,je=ot.videoId,Ze={videoId:je},Ue={query:De},ke=Object(A.useState)(),Be=Object(d.a)(ke,2),Ve=Be[0],Re=Be[1],be=Object(A.useState)(),Ge=Object(d.a)(be,2),Ne=Ge[0],Ie=Ge[1],Je=Object(A.useState)(!1),qe=Object(d.a)(Je,2),Qe=qe[0],He=qe[1],Ke=function(){it({type:"videoDetail/setActionTabs",payload:{key:"Banner-SendToClass"}})},tt=function(){var ee=Object(c.a)(ve().mark(function re(){var te,de,xe;return ve().wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:if(!(((te=Te.userInfo)===null||te===void 0?void 0:te.admin)||((de=Te.userInfo)===null||de===void 0?void 0:de.is_teacher)&&Object(Q.c)())){Ce.next=6;break}return Ce.next=3,Object(X.g)(Object(Oe.a)({id:Ze.videoId},Fe(Ue.query)));case 3:xe=Ce.sent,Ie(xe==null?void 0:xe.video_item),Re(!0);case 6:case"end":return Ce.stop()}},re)}));return function(){return ee.apply(this,arguments)}}(),z=function(){var ee=Object(c.a)(ve().mark(function re(te){var de;return ve().wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:return ge.next=2,Object(X.m)(Object(Oe.a)(Object(Oe.a)({},te),{},{id:Ze.videoId},Fe(Ue.query)));case 2:return de=ge.sent,(de==null?void 0:de.status)===0&&(Re(!1),it({type:"videoDetail/getVideoDetail",payload:Object(Oe.a)({id:Ze.videoId},Fe(Ue.query))})),ge.abrupt("return",de);case 5:case"end":return ge.stop()}},re)}));return function(te){return ee.apply(this,arguments)}}(),j=Pe.detail||{},N=j.video_item;return y.a.createElement("aside",{className:x.a.banner},y.a.createElement("aside",{className:x.a.wrap},y.a.createElement("p",{className:x.a.title},N==null?void 0:N.name),y.a.createElement("div",{className:x.a.contentWrap},y.a.createElement("span",{className:"font14 c-white"},y.a.createElement("span",{className:"mr10"},"\u5B66\u4E60\u4EBA\u6570\uFF1A"),y.a.createElement("span",null,(N==null?void 0:N.study_video_items_count)||0),y.a.createElement("span",{className:"ml100 mr10"},"\u5B66\u5458\u8BC4\u5206\uFF1A"),y.a.createElement(o.a,{allowHalf:!0,value:Object(M.q)(N==null?void 0:N.star),disabled:!0,className:x.a.rating})),y.a.createElement("div",null,(N==null?void 0:N.can_edit)&&y.a.createElement(t.a,{className:"".concat(x.a.button," ").concat(x.a.buttonTransparent," mr15"),onClick:function(){return He(!0)}},"\u6743\u9650\u8BBE\u7F6E"),(N==null?void 0:N.can_edit)&&y.a.createElement(t.a,{className:"".concat(x.a.button," ").concat(x.a.buttonTransparent," mr15"),onClick:tt},"\u7F16\u8F91"),y.a.createElement(f.a,{title:"\u53EF\u5C06\u672C\u89C6\u9891\u53D1\u9001\u81F3\u6211\u7684\u8BFE\u5802\u4E2D\u7684\u89C6\u9891\u680F\u76EE",placement:"bottom"},y.a.createElement(t.a,{className:"".concat(x.a.button," ").concat(x.a.buttonTransparent," mr15"),onClick:Ke},"\u53D1\u9001\u81F3"))))),y.a.createElement($,null),y.a.createElement(ae.a,{editData:Ne,visible:Ve,onCancel:function(){return Re(!1)},onOk:z}),y.a.createElement(me,{dispatch:it,videoDetail:Pe,visible:Qe,onClose:function(){return He(!1)}}))},oe=Object(m.a)(function(he){var Se=he.user,Te=he.videoDetail,Pe=he.loading,We=he.globalSetting;return{user:Se,videoDetail:Te,globalSetting:We,loading:Pe}})(ie),le=pe("sRBo"),K=pe("kaz8"),q=pe("J66h"),ce=pe("hgre"),ue=pe("9Bee"),we=pe("vZDz"),k=pe.n(we),e=pe("9VGf");function n(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */n=function(){return he};var he={},Se=Object.prototype,Te=Se.hasOwnProperty,Pe=Object.defineProperty||function(z,j,N){z[j]=N.value},We=typeof Symbol=="function"?Symbol:{},Xe=We.iterator||"@@iterator",it=We.asyncIterator||"@@asyncIterator",$e=We.toStringTag||"@@toStringTag";function De(z,j,N){return Object.defineProperty(z,j,{value:N,enumerable:!0,configurable:!0,writable:!0}),z[j]}try{De({},"")}catch(z){De=function(N,ee,re){return N[ee]=re}}function ot(z,j,N,ee){var re=j&&j.prototype instanceof Ze?j:Ze,te=Object.create(re.prototype),de=new He(ee||[]);return Pe(te,"_invoke",{value:Ie(z,N,de)}),te}function nt(z,j,N){try{return{type:"normal",arg:z.call(j,N)}}catch(ee){return{type:"throw",arg:ee}}}he.wrap=ot;var je={};function Ze(){}function Ue(){}function ke(){}var Be={};De(Be,Xe,function(){return this});var Ve=Object.getPrototypeOf,Re=Ve&&Ve(Ve(Ke([])));Re&&Re!==Se&&Te.call(Re,Xe)&&(Be=Re);var be=ke.prototype=Ze.prototype=Object.create(Be);function Ge(z){["next","throw","return"].forEach(function(j){De(z,j,function(N){return this._invoke(j,N)})})}function Ne(z,j){function N(re,te,de,xe){var ge=nt(z[re],z,te);if(ge.type!=="throw"){var Ce=ge.arg,Me=Ce.value;return Me&&typeof Me=="object"&&Te.call(Me,"__await")?j.resolve(Me.__await).then(function(ze){N("next",ze,de,xe)},function(ze){N("throw",ze,de,xe)}):j.resolve(Me).then(function(ze){Ce.value=ze,de(Ce)},function(ze){return N("throw",ze,de,xe)})}xe(ge.arg)}var ee;Pe(this,"_invoke",{value:function(te,de){function xe(){return new j(function(ge,Ce){N(te,de,ge,Ce)})}return ee=ee?ee.then(xe,xe):xe()}})}function Ie(z,j,N){var ee="suspendedStart";return function(re,te){if(ee==="executing")throw new Error("Generator is already running");if(ee==="completed"){if(re==="throw")throw te;return tt()}for(N.method=re,N.arg=te;;){var de=N.delegate;if(de){var xe=Je(de,N);if(xe){if(xe===je)continue;return xe}}if(N.method==="next")N.sent=N._sent=N.arg;else if(N.method==="throw"){if(ee==="suspendedStart")throw ee="completed",N.arg;N.dispatchException(N.arg)}else N.method==="return"&&N.abrupt("return",N.arg);ee="executing";var ge=nt(z,j,N);if(ge.type==="normal"){if(ee=N.done?"completed":"suspendedYield",ge.arg===je)continue;return{value:ge.arg,done:N.done}}ge.type==="throw"&&(ee="completed",N.method="throw",N.arg=ge.arg)}}}function Je(z,j){var N=j.method,ee=z.iterator[N];if(ee===void 0)return j.delegate=null,N==="throw"&&z.iterator.return&&(j.method="return",j.arg=void 0,Je(z,j),j.method==="throw")||N!=="return"&&(j.method="throw",j.arg=new TypeError("The iterator does not provide a '"+N+"' method")),je;var re=nt(ee,z.iterator,j.arg);if(re.type==="throw")return j.method="throw",j.arg=re.arg,j.delegate=null,je;var te=re.arg;return te?te.done?(j[z.resultName]=te.value,j.next=z.nextLoc,j.method!=="return"&&(j.method="next",j.arg=void 0),j.delegate=null,je):te:(j.method="throw",j.arg=new TypeError("iterator result is not an object"),j.delegate=null,je)}function qe(z){var j={tryLoc:z[0]};1 in z&&(j.catchLoc=z[1]),2 in z&&(j.finallyLoc=z[2],j.afterLoc=z[3]),this.tryEntries.push(j)}function Qe(z){var j=z.completion||{};j.type="normal",delete j.arg,z.completion=j}function He(z){this.tryEntries=[{tryLoc:"root"}],z.forEach(qe,this),this.reset(!0)}function Ke(z){if(z){var j=z[Xe];if(j)return j.call(z);if(typeof z.next=="function")return z;if(!isNaN(z.length)){var N=-1,ee=function re(){for(;++N<z.length;)if(Te.call(z,N))return re.value=z[N],re.done=!1,re;return re.value=void 0,re.done=!0,re};return ee.next=ee}}return{next:tt}}function tt(){return{value:void 0,done:!0}}return Ue.prototype=ke,Pe(be,"constructor",{value:ke,configurable:!0}),Pe(ke,"constructor",{value:Ue,configurable:!0}),Ue.displayName=De(ke,$e,"GeneratorFunction"),he.isGeneratorFunction=function(z){var j=typeof z=="function"&&z.constructor;return!!j&&(j===Ue||(j.displayName||j.name)==="GeneratorFunction")},he.mark=function(z){return Object.setPrototypeOf?Object.setPrototypeOf(z,ke):(z.__proto__=ke,De(z,$e,"GeneratorFunction")),z.prototype=Object.create(be),z},he.awrap=function(z){return{__await:z}},Ge(Ne.prototype),De(Ne.prototype,it,function(){return this}),he.AsyncIterator=Ne,he.async=function(z,j,N,ee,re){re===void 0&&(re=Promise);var te=new Ne(ot(z,j,N,ee),re);return he.isGeneratorFunction(j)?te:te.next().then(function(de){return de.done?de.value:te.next()})},Ge(be),De(be,$e,"Generator"),De(be,Xe,function(){return this}),De(be,"toString",function(){return"[object Generator]"}),he.keys=function(z){var j=Object(z),N=[];for(var ee in j)N.push(ee);return N.reverse(),function re(){for(;N.length;){var te=N.pop();if(te in j)return re.value=te,re.done=!1,re}return re.done=!0,re}},he.values=Ke,He.prototype={constructor:He,reset:function(j){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(Qe),!j)for(var N in this)N.charAt(0)==="t"&&Te.call(this,N)&&!isNaN(+N.slice(1))&&(this[N]=void 0)},stop:function(){this.done=!0;var j=this.tryEntries[0].completion;if(j.type==="throw")throw j.arg;return this.rval},dispatchException:function(j){if(this.done)throw j;var N=this;function ee(Ce,Me){return de.type="throw",de.arg=j,N.next=Ce,Me&&(N.method="next",N.arg=void 0),!!Me}for(var re=this.tryEntries.length-1;re>=0;--re){var te=this.tryEntries[re],de=te.completion;if(te.tryLoc==="root")return ee("end");if(te.tryLoc<=this.prev){var xe=Te.call(te,"catchLoc"),ge=Te.call(te,"finallyLoc");if(xe&&ge){if(this.prev<te.catchLoc)return ee(te.catchLoc,!0);if(this.prev<te.finallyLoc)return ee(te.finallyLoc)}else if(xe){if(this.prev<te.catchLoc)return ee(te.catchLoc,!0)}else{if(!ge)throw new Error("try statement without catch or finally");if(this.prev<te.finallyLoc)return ee(te.finallyLoc)}}}},abrupt:function(j,N){for(var ee=this.tryEntries.length-1;ee>=0;--ee){var re=this.tryEntries[ee];if(re.tryLoc<=this.prev&&Te.call(re,"finallyLoc")&&this.prev<re.finallyLoc){var te=re;break}}te&&(j==="break"||j==="continue")&&te.tryLoc<=N&&N<=te.finallyLoc&&(te=null);var de=te?te.completion:{};return de.type=j,de.arg=N,te?(this.method="next",this.next=te.finallyLoc,je):this.complete(de)},complete:function(j,N){if(j.type==="throw")throw j.arg;return j.type==="break"||j.type==="continue"?this.next=j.arg:j.type==="return"?(this.rval=this.arg=j.arg,this.method="return",this.next="end"):j.type==="normal"&&N&&(this.next=N),je},finish:function(j){for(var N=this.tryEntries.length-1;N>=0;--N){var ee=this.tryEntries[N];if(ee.finallyLoc===j)return this.complete(ee.completion,ee.afterLoc),Qe(ee),je}},catch:function(j){for(var N=this.tryEntries.length-1;N>=0;--N){var ee=this.tryEntries[N];if(ee.tryLoc===j){var re=ee.completion;if(re.type==="throw"){var te=re.arg;Qe(ee)}return te}}throw new Error("illegal catch attempt")},delegateYield:function(j,N,ee){return this.delegate={iterator:Ke(j),resultName:N,nextLoc:ee},this.method==="next"&&(this.arg=void 0),je}},he}var T=function(Se){var Te=Se.videoDetail,Pe=Se.globalSetting,We=Se.loading,Xe=Se.dispatch,it=Object(r.a)(Se,["videoDetail","globalSetting","loading","dispatch"]),$e=Te.queryParams,De=Te.selectParams,ot=Te.videoList,nt=$e.subject_id,je=$e.videoId,Ze=De.checkBoxValue,Ue=De.radioValue,ke={videoId:je},Be={query:$e},Ve=Object(A.useRef)(),Re=Object(A.useRef)(),be=Object(A.useRef)(),Ge=Object(A.useRef)(5),Ne=Te.detail||{},Ie=Ne.video_item;Object(e.a)(Object(c.a)(n().mark(function N(){return n().wrap(function(re){for(;;)switch(re.prev=re.next){case 0:if(!Re.current){re.next=5;break}return console.log("videoRef lastUpdatedTime: ",Ve.current.getLastUpdatedTime()),console.log(Ve.current),re.next=5,Je();case 5:case"end":return re.stop()}},N)})),Ge.current*1e3);var Je=function(){var ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,re=ee?{is_f:1}:{};return Object(X.o)(Object(Oe.a)(Object(Oe.a)({},re),{id:ke.videoId,point:Ve.current.getLastUpdatedTime(),total:Ve.current.getDuration()}))},qe=function(ee){return console.log("handlLogWatchHistory: ",ee),ee.ed==="1"&&(Re.current=!1,Je(!0)),!Re.current&&!ee.ed&&(Re.current=!0,Ge.current=Ve.current.getDuration()<=5?1:5,Je()),Xe({type:"userDetail/logWatchHistory",payload:ee})},Qe=function(){Re.current=!1},He=function(){Re.current=!0},Ke=function(){be.current=5,p.a.confirm({width:600,centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u8BF7\u7ED9\u672C\u89C6\u9891\u8BC4\u5206",content:y.a.createElement("div",{className:"tc font14"},y.a.createElement(o.a,{defaultValue:be.current,onChange:function(re){return be.current=re},className:k.a.modalRating})),onOk:function(){var ee=Object(c.a)(n().mark(function te(){var de;return n().wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:return ge.next=2,Object(X.l)({id:ke.videoId,star:be.current});case 2:de=ge.sent,de.status===0&&Xe({type:"videoDetail/getVideoDetail",payload:Object(Oe.a)({id:ke.videoId},Fe(Be.query))});case 4:case"end":return ge.stop()}},te)}));function re(){return ee.apply(this,arguments)}return re}()})},tt=function(ee){var re=window.filterVideoSign,te=re.findIndex(function(Me){return Me.id===je}),de=te===re.length-1;if(de)return;var xe=re[te+1].id,ge=re[te+1].can_view,Ce=re[te+1].link;if(window.checkBoxValue){if(Ce){window.open(Ce);return}if(!ge){p.a.info({centered:!0,width:400,okText:"\u77E5\u9053\u5566",icon:null,content:y.a.createElement("div",{className:"tc font14"},"\u4E0B\u4E00\u6761\u89C6\u9891\u4E3A\u521B\u5EFA\u8005\u6240\u5C5E\u5355\u4F4D\u5185\u90E8\u6559\u5B66\u8D44\u6599\uFF0C\u5916\u5355\u4F4D\u7528\u6237\u65E0\u89C2\u770B\u6743\u9650")});return}Xe({type:"videoDetail/handleList",payload:{videoId:xe}}),window.videoTimer=setTimeout(function(){ee.current.play()},2e3)}},z=function(ee,re){if(ee==="checkBox"){var te=re.target.checked;window.checkBoxValue=te,Xe({type:"videoDetail/setSelectValue",payload:{radioValue:Ue,checkBoxValue:te}});return}Xe({type:"videoDetail/setSelectValue",payload:{checkBoxValue:Ze,radioValue:re.target.value}})},j=function(){var ee=ot.findIndex(function(te){return te.id===je}),re=ee===ot.length-1;return re?y.a.createElement("div",null,"\u5F53\u524D\u5DF2\u662F\u6700\u540E\u4E00\u4E2A\u89C6\u9891"):y.a.createElement(K.a,{onChange:function(de){z("checkBox",de)},checked:Ze},"\u81EA\u52A8\u64AD\u653E\u4E0B\u4E00\u4E2A\u89C6\u9891")};return y.a.createElement("aside",{className:k.a.contentWrap},y.a.createElement("aside",{className:k.a.wrap},y.a.createElement("header",null,(Ie==null?void 0:Ie.description)&&y.a.createElement("span",{className:k.a.introName},"\u7B80\u4ECB"),Object(M.A)(Ie==null?void 0:Ie.my_star)?y.a.createElement(t.a,{type:"primary",ghost:!0,onClick:Ke},"\u8BC4\u5206"):y.a.createElement("span",null,y.a.createElement("span",{className:"ml100 mr10 font14"},"\u6211\u7684\u8BC4\u5206\uFF1A"),y.a.createElement(o.a,{value:Ie==null?void 0:Ie.my_star,disabled:!0,className:k.a.rating}))),y.a.createElement("div",{className:"mt20"},y.a.createElement(ue.a,{value:(Ie==null?void 0:Ie.description)||""})),console.log("-------",Ie),y.a.createElement(ce.a,{ref:Ve,startTime:Ie==null?void 0:Ie.last_point,src:(Ie==null?void 0:Ie.is_link)?Ie==null?void 0:Ie.link:(Ie==null?void 0:Ie.play_url)&&q.Base64.decode(Ie==null?void 0:Ie.play_url),videoId:Ie==null?void 0:Ie.video_id,logWatchHistory:qe,handlePause:Qe,handlePlay:He,videoSpeed:Ue,handlePlayEnded:tt}),y.a.createElement("div",{className:k.a.footer},y.a.createElement("div",{className:k.a.checkBox},j()),y.a.createElement("div",{className:k.a.radioGroup},y.a.createElement(S.a.Group,{onChange:function(ee){z("radio",ee)},value:Ue},y.a.createElement(S.a,{value:1},"1.0X"),y.a.createElement(S.a,{value:1.5},"1.5X"),y.a.createElement(S.a,{value:2},"2.0X"))))))},v=Object(m.a)(function(he){var Se=he.videoDetail,Te=he.loading,Pe=he.globalSetting;return{videoDetail:Se,globalSetting:Pe,loading:Te}})(T),_=pe("MRWH"),B=pe.n(_),Z=pe("m3rI");function Ee(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Ee=function(){return he};var he={},Se=Object.prototype,Te=Se.hasOwnProperty,Pe=Object.defineProperty||function(z,j,N){z[j]=N.value},We=typeof Symbol=="function"?Symbol:{},Xe=We.iterator||"@@iterator",it=We.asyncIterator||"@@asyncIterator",$e=We.toStringTag||"@@toStringTag";function De(z,j,N){return Object.defineProperty(z,j,{value:N,enumerable:!0,configurable:!0,writable:!0}),z[j]}try{De({},"")}catch(z){De=function(N,ee,re){return N[ee]=re}}function ot(z,j,N,ee){var re=j&&j.prototype instanceof Ze?j:Ze,te=Object.create(re.prototype),de=new He(ee||[]);return Pe(te,"_invoke",{value:Ie(z,N,de)}),te}function nt(z,j,N){try{return{type:"normal",arg:z.call(j,N)}}catch(ee){return{type:"throw",arg:ee}}}he.wrap=ot;var je={};function Ze(){}function Ue(){}function ke(){}var Be={};De(Be,Xe,function(){return this});var Ve=Object.getPrototypeOf,Re=Ve&&Ve(Ve(Ke([])));Re&&Re!==Se&&Te.call(Re,Xe)&&(Be=Re);var be=ke.prototype=Ze.prototype=Object.create(Be);function Ge(z){["next","throw","return"].forEach(function(j){De(z,j,function(N){return this._invoke(j,N)})})}function Ne(z,j){function N(re,te,de,xe){var ge=nt(z[re],z,te);if(ge.type!=="throw"){var Ce=ge.arg,Me=Ce.value;return Me&&typeof Me=="object"&&Te.call(Me,"__await")?j.resolve(Me.__await).then(function(ze){N("next",ze,de,xe)},function(ze){N("throw",ze,de,xe)}):j.resolve(Me).then(function(ze){Ce.value=ze,de(Ce)},function(ze){return N("throw",ze,de,xe)})}xe(ge.arg)}var ee;Pe(this,"_invoke",{value:function(te,de){function xe(){return new j(function(ge,Ce){N(te,de,ge,Ce)})}return ee=ee?ee.then(xe,xe):xe()}})}function Ie(z,j,N){var ee="suspendedStart";return function(re,te){if(ee==="executing")throw new Error("Generator is already running");if(ee==="completed"){if(re==="throw")throw te;return tt()}for(N.method=re,N.arg=te;;){var de=N.delegate;if(de){var xe=Je(de,N);if(xe){if(xe===je)continue;return xe}}if(N.method==="next")N.sent=N._sent=N.arg;else if(N.method==="throw"){if(ee==="suspendedStart")throw ee="completed",N.arg;N.dispatchException(N.arg)}else N.method==="return"&&N.abrupt("return",N.arg);ee="executing";var ge=nt(z,j,N);if(ge.type==="normal"){if(ee=N.done?"completed":"suspendedYield",ge.arg===je)continue;return{value:ge.arg,done:N.done}}ge.type==="throw"&&(ee="completed",N.method="throw",N.arg=ge.arg)}}}function Je(z,j){var N=j.method,ee=z.iterator[N];if(ee===void 0)return j.delegate=null,N==="throw"&&z.iterator.return&&(j.method="return",j.arg=void 0,Je(z,j),j.method==="throw")||N!=="return"&&(j.method="throw",j.arg=new TypeError("The iterator does not provide a '"+N+"' method")),je;var re=nt(ee,z.iterator,j.arg);if(re.type==="throw")return j.method="throw",j.arg=re.arg,j.delegate=null,je;var te=re.arg;return te?te.done?(j[z.resultName]=te.value,j.next=z.nextLoc,j.method!=="return"&&(j.method="next",j.arg=void 0),j.delegate=null,je):te:(j.method="throw",j.arg=new TypeError("iterator result is not an object"),j.delegate=null,je)}function qe(z){var j={tryLoc:z[0]};1 in z&&(j.catchLoc=z[1]),2 in z&&(j.finallyLoc=z[2],j.afterLoc=z[3]),this.tryEntries.push(j)}function Qe(z){var j=z.completion||{};j.type="normal",delete j.arg,z.completion=j}function He(z){this.tryEntries=[{tryLoc:"root"}],z.forEach(qe,this),this.reset(!0)}function Ke(z){if(z){var j=z[Xe];if(j)return j.call(z);if(typeof z.next=="function")return z;if(!isNaN(z.length)){var N=-1,ee=function re(){for(;++N<z.length;)if(Te.call(z,N))return re.value=z[N],re.done=!1,re;return re.value=void 0,re.done=!0,re};return ee.next=ee}}return{next:tt}}function tt(){return{value:void 0,done:!0}}return Ue.prototype=ke,Pe(be,"constructor",{value:ke,configurable:!0}),Pe(ke,"constructor",{value:Ue,configurable:!0}),Ue.displayName=De(ke,$e,"GeneratorFunction"),he.isGeneratorFunction=function(z){var j=typeof z=="function"&&z.constructor;return!!j&&(j===Ue||(j.displayName||j.name)==="GeneratorFunction")},he.mark=function(z){return Object.setPrototypeOf?Object.setPrototypeOf(z,ke):(z.__proto__=ke,De(z,$e,"GeneratorFunction")),z.prototype=Object.create(be),z},he.awrap=function(z){return{__await:z}},Ge(Ne.prototype),De(Ne.prototype,it,function(){return this}),he.AsyncIterator=Ne,he.async=function(z,j,N,ee,re){re===void 0&&(re=Promise);var te=new Ne(ot(z,j,N,ee),re);return he.isGeneratorFunction(j)?te:te.next().then(function(de){return de.done?de.value:te.next()})},Ge(be),De(be,$e,"Generator"),De(be,Xe,function(){return this}),De(be,"toString",function(){return"[object Generator]"}),he.keys=function(z){var j=Object(z),N=[];for(var ee in j)N.push(ee);return N.reverse(),function re(){for(;N.length;){var te=N.pop();if(te in j)return re.value=te,re.done=!1,re}return re.done=!0,re}},he.values=Ke,He.prototype={constructor:He,reset:function(j){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(Qe),!j)for(var N in this)N.charAt(0)==="t"&&Te.call(this,N)&&!isNaN(+N.slice(1))&&(this[N]=void 0)},stop:function(){this.done=!0;var j=this.tryEntries[0].completion;if(j.type==="throw")throw j.arg;return this.rval},dispatchException:function(j){if(this.done)throw j;var N=this;function ee(Ce,Me){return de.type="throw",de.arg=j,N.next=Ce,Me&&(N.method="next",N.arg=void 0),!!Me}for(var re=this.tryEntries.length-1;re>=0;--re){var te=this.tryEntries[re],de=te.completion;if(te.tryLoc==="root")return ee("end");if(te.tryLoc<=this.prev){var xe=Te.call(te,"catchLoc"),ge=Te.call(te,"finallyLoc");if(xe&&ge){if(this.prev<te.catchLoc)return ee(te.catchLoc,!0);if(this.prev<te.finallyLoc)return ee(te.finallyLoc)}else if(xe){if(this.prev<te.catchLoc)return ee(te.catchLoc,!0)}else{if(!ge)throw new Error("try statement without catch or finally");if(this.prev<te.finallyLoc)return ee(te.finallyLoc)}}}},abrupt:function(j,N){for(var ee=this.tryEntries.length-1;ee>=0;--ee){var re=this.tryEntries[ee];if(re.tryLoc<=this.prev&&Te.call(re,"finallyLoc")&&this.prev<re.finallyLoc){var te=re;break}}te&&(j==="break"||j==="continue")&&te.tryLoc<=N&&N<=te.finallyLoc&&(te=null);var de=te?te.completion:{};return de.type=j,de.arg=N,te?(this.method="next",this.next=te.finallyLoc,je):this.complete(de)},complete:function(j,N){if(j.type==="throw")throw j.arg;return j.type==="break"||j.type==="continue"?this.next=j.arg:j.type==="return"?(this.rval=this.arg=j.arg,this.method="return",this.next="end"):j.type==="normal"&&N&&(this.next=N),je},finish:function(j){for(var N=this.tryEntries.length-1;N>=0;--N){var ee=this.tryEntries[N];if(ee.finallyLoc===j)return this.complete(ee.completion,ee.afterLoc),Qe(ee),je}},catch:function(j){for(var N=this.tryEntries.length-1;N>=0;--N){var ee=this.tryEntries[N];if(ee.tryLoc===j){var re=ee.completion;if(re.type==="throw"){var te=re.arg;Qe(ee)}return te}}throw new Error("illegal catch attempt")},delegateYield:function(j,N,ee){return this.delegate={iterator:Ke(j),resultName:N,nextLoc:ee},this.method==="next"&&(this.arg=void 0),je}},he}var ye=[{name:"\u5B9E\u8DF5\u9879\u76EE",type:"Shixun",icon:y.a.createElement("i",{className:"iconfont icon-shixun2 font20"})},{name:"\u89C6\u9891\u9879\u76EE",type:"VideoItem",icon:y.a.createElement("i",{className:"iconfont icon-shipin font20"})},{name:"\u6559\u5B66\u8BFE\u4EF6",type:"Attachment",icon:y.a.createElement("i",{className:"iconfont icon-jiaoxueanli font20"})}],Ae=function(Se){var Te=Se.dispatch,Pe=Se.videoDetail,We=Se.user,Xe=Object(r.a)(Se,["dispatch","videoDetail","user"]),it=Pe.queryParams,$e=Pe.stages,De=Pe.videoList,ot=Pe.cust_seq,nt=it.subject_id,je=it.videoId;Object(A.useEffect)(function(){Te({type:"videoDetail/getStageData",payload:{subject_id:nt}})},[]);var Ze=function(){var Re=Object(c.a)(Ee().mark(function be(Ge,Ne){var Ie;return Ee().wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:if(Te({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF0C\u8BF7\u7A0D\u540E..."}}),!Ne){qe.next=7;break}return qe.next=4,Object(ne.z)({id:Ge});case 4:qe.t0=qe.sent,qe.next=10;break;case 7:return qe.next=9,Object(ne.A)({id:Ge});case 9:qe.t0=qe.sent;case 10:if(Ie=qe.t0,Te({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),!((Ie==null?void 0:Ie.game_identifier)||(Ie==null?void 0:Ie.identifier))){qe.next=15;break}return Object(M.C)(Ne?"/tasks/".concat(Ie==null?void 0:Ie.identifier,"/jupyter"):"/tasks/".concat(Ie.game_identifier)),qe.abrupt("return");case 15:case"end":return qe.stop()}},be)}));return function(Ge,Ne){return Re.apply(this,arguments)}}(),Ue=function(be){clearTimeout(window.videoTimer);var Ge=be.id,Ne=be.item_type,Ie=be.identifier,Je=be.is_jupyter,qe=be.url,Qe=be.link;if(console.log(De),Ne==="VideoItem"&&!Qe){var He,Ke;if(!((He=We.userInfo)===null||He===void 0?void 0:He.admin)&&!((Ke=We.userInfo)===null||Ke===void 0?void 0:Ke.business)&&!be.can_view){p.a.info({centered:!0,width:400,okText:"\u77E5\u9053\u5566",icon:null,content:y.a.createElement("div",{className:"tc font14"},"\u5F53\u524D\u89C6\u9891\u4E3A\u521B\u5EFA\u8005\u6240\u5C5E\u5355\u4F4D\u5185\u90E8\u6559\u5B66\u8D44\u6599\uFF0C\u5916\u5355\u4F4D\u7528\u6237\u65E0\u89C2\u770B\u6743\u9650")});return}Te({type:"videoDetail/handleList",payload:{videoId:Ge}});return}if(Ne==="VideoItem"&&!!Qe){be.link&&Object(X.o)({is_f:1,id:be.id,point:0,total:0}),window.open(Qe);return}if(Ne==="Shixun"){Ze(Ie,Je);return}window.open(Z.a.IMG_SERVER+qe)},ke=function(be){var Ge=["\u96F6","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D"],Ne=["","\u5341","\u767E","\u5343","\u4E07"];be=parseInt(be);var Ie=function(He){for(var Ke=He.toString().split("").reverse(),tt="",z=0;z<Ke.length;z++)tt=(z==0&&Ke[z]==0||z>0&&Ke[z]==0&&Ke[z-1]==0?"":Ge[Ke[z]]+(Ke[z]==0?Ne[0]:Ne[z]))+tt;return tt},Je=Math.floor(be/1e4),qe=be%1e4;return qe.toString().length<4&&(qe="0"+qe),Je?Ie(Je)+"\u4E07"+Ie(qe):Ie(be)},Be=function(be,Ge,Ne,Ie){var Je=be.name,qe=be.item_type,Qe=be.id;if(qe==="StageCatalog")return;var He="".concat(Ge+1,"-").concat(Ne+1,"-").concat(Ie+1),Ke=ye.find(function(j){return j.type===qe}).icon,tt=qe==="VideoItem"?B.a.brght:B.a.gray,z=je===Qe?"".concat(tt," ").concat(B.a.active):tt;return y.a.createElement("div",{key:He,onClick:function(){return Ue(be)},className:z,style:{paddingLeft:52}},y.a.createElement("span",{className:B.a.s1},Ke),!!ot&&y.a.createElement("span",{className:B.a.s2},He),y.a.createElement("span",{className:B.a.s3},"\u203B ",Je))},Ve=function(be,Ge,Ne){var Ie=be.name,Je=be.item_type,qe=be.id,Qe=be.children;if(Je==="StageCatalog")return;var He="".concat(Ge+1,"-").concat(Ne+1),Ke=ye.find(function(j){return j.type===Je}).icon,tt=Je==="VideoItem"?B.a.brght:B.a.gray,z=je===qe?"".concat(tt," ").concat(B.a.active):tt;return y.a.createElement(A.Fragment,{key:He},y.a.createElement("div",{onClick:function(){return Ue(be)},className:z},y.a.createElement("span",{className:B.a.s1},Ke),!!ot&&y.a.createElement("span",{className:B.a.s2},He),y.a.createElement("span",{className:B.a.s3},"\u203B ",Ie)),!!Qe.length&&Qe.map(function(j,N){return Be(j,Ge,Ne,N)}))};return y.a.createElement("aside",{className:B.a.list},$e.map(function(Re,be){var Ge=Re.stage_name,Ne=Re.shixuns_list,Ie=Ne===void 0?[]:Ne,Je=Re.items,qe=Je===void 0?[]:Je,Qe=Object(U.a)(qe);return y.a.createElement("aside",{key:be,className:B.a.box},y.a.createElement("div",{className:B.a.title},ke(be+1),"\u3001",Ge),Qe.map(function(He,Ke){return Ve(He,be,Ke)}),be!==$e.length-1&&y.a.createElement("div",{className:B.a.line}))}))},Le=Object(m.a)(function(he){var Se=he.user,Te=he.videoDetail,Pe=he.loading,We=he.globalSetting;return{user:Se,videoDetail:Te,globalSetting:We,loading:Pe}})(Ae),Fe=function(Se){var Te=Se.subject_id;return{subject_id:Te,course_id:Te}},et=function(Se){var Te=Se.videoDetail,Pe=Se.globalSetting,We=Se.loading,Xe=Se.dispatch,it=Object(r.a)(Se,["videoDetail","globalSetting","loading","dispatch"]),$e=Te.queryParams,De=$e.subject_id,ot=$e.videoId,nt={videoId:ot},je={query:$e};return Object(A.useEffect)(function(){if(!nt.videoId)return;Xe({type:"videoDetail/getVideoDetail",payload:Object(Oe.a)(Object(Oe.a)({},Fe(je.query)),{},{id:nt.videoId})})},[nt.videoId]),Object(A.useEffect)(function(){var Ze,Ue;document.title=((Ze=Te.detail)===null||Ze===void 0||((Ue=Ze.video_item)===null||Ue===void 0)?void 0:Ue.name)||"EduCoder"},[Te]),y.a.createElement(rt.a,{spinning:!1},y.a.createElement("section",{className:i.a.bg},y.a.createElement(oe,null),y.a.createElement("div",{className:i.a.container},y.a.createElement(Le,null),y.a.createElement(v,null))))},_e=at.default=Object(m.a)(function(he){var Se=he.videoDetail,Te=he.loading,Pe=he.globalSetting;return{videoDetail:Se,globalSetting:Pe,loading:Te}})(et)},"9Bee":function(st,at,pe){"use strict";var Ye=pe("q1tI"),rt=pe.n(Ye),Oe=pe("vg9a"),r=pe("tJVT"),A=pe("DlQD"),y=pe.n(A),m=pe("rUJ1");function b(H,$){var ae=H.match(/^(\s+)(?:```)/);if(ae===null)return $;var M=ae[1];return $.split(`
|
|
|
`).map(function(Q){var Y=Q.match(/^\s+/);if(Y===null)return Q;var W=Object(r.a)(Y,1),D=W[0];return D.length>=M.length?Q.slice(M.length):Q}).join(`
|
|
|
`)}var i=[],u=["<ul>"],f=new y.a.Renderer,s=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function t(){i.length=0,u=["<ul>"]}function a(H,$,ae,M){if($>=H.length||H[$].level<=ae)return $;var Q=H[$];M.push("<li><a href='#"+Q.anchor+"'>"+Q.text+"</a>"),$++;var Y=[];return $=a(H,$,Q.level,Y),Y.length>0&&(M.push("<ul>"),Y.forEach(function(W){M.push(W)}),M.push("</ul>")),M.push("</li>"),$=a(H,$,ae,M),$}function o(){return a(i,0,0,u),u.push("</ul>"),u.join("")}var c={heading:function($){var ae=s.exec($);if(ae)return{type:"heading",raw:ae[0],depth:ae[1].length,text:ae[2]}},fences:function($){var ae=this.rules.block.fences.exec($);if(ae){var M=ae[0],Q=b(M,ae[3]||""),Y=ae[2]?ae[2].trim():ae[2];if(["latex","katex","math"].indexOf(Y)>=0){var W=x(),D=Q;Q=W,w[W]={type:"block",expression:D}}return{type:"code",raw:M,lang:Y,text:Q}}}},d=/(?:\${2})([^\n`]+?)(?:\${2})/gi,l=0,x=function(){return"__special_katext_id_".concat(l++,"__")},w={};function p(){return w}function O(){l=0,w={}}function S(H){return H=H.replace(d,function($,ae){var M=x();return w[M]={type:"inline",expression:ae},M}),H}var h=f.listitem;f.listitem=function(H){return h(S(H))};var E=f.paragraph;f.paragraph=function(H){return E(S(H))};var L=f.tablecell;f.tablecell=function(H,$){return L(S(H),$)},f.code=function(H,$,ae){var M=($||"").match(/\S*/)[0];return M?["latex","katex","math"].indexOf(M)>=0?"<p class='editormd-tex'>".concat(H,"</p>"):'<pre class="prettyprint linenums"><code class="language-'.concat($,'">').concat(ae?H:Object(m.escape)(H,!0),`</code></pre>
|
|
|
`):'<pre class="prettyprint linenums"><code>'+(ae?H:Object(m.escape)(H,!0))+"</code></pre>"},f.heading=function(H,$,ae){var M=this.options.headerPrefix+ae.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return i.push({anchor:M,level:$,text:H}),"<h"+$+' id="'+M+'">'+H+"</h"+$+">"},y.a.setOptions({silent:!0,smartypants:!0,gfm:!0,pedantic:!1}),y.a.use({tokenizer:c,renderer:f});var P=y.a,g=pe("SJMd"),F=pe("m3rI"),I=pe("Oy/b"),X=/<pre[^>]*>/g;function R(H){var $=document.createElement("div");return $.innerHTML=H,$.childNodes.length===0?"":$.childNodes[0].nodeValue}var V=at.a=function(H){var $=H.value,ae=$===void 0?"":$,M=H.className,Q=H.style,Y=Q===void 0?{}:Q,W=String(ae),D=Object(Ye.useMemo)(function(){try{var G=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,J=/\"\/api\/attachments\/|\"\/attachments\/download\//g,ne=/\(\s+\/files\/uploads\/|\(\/files\/uploads\//g;W=W.replace(G,"("+F.a.API_SERVER+"/api/attachments/").replace(J,'"'+F.a.API_SERVER+"/api/attachments/").replace(ne,'"'+F.a.API_SERVER+"/files/uploads/")}catch(me){}var fe=P(W),se=p();return W.match(/\[TOC\]/)&&(fe=fe.replace("<p>[TOC]</p>",o()),t()),fe=fe.replace(/(__special_katext_id_\d+__)/g,function(me,ve){var ie=se[ve],oe=ie.type,le=ie.expression;return Object(I.renderToString)(R(le)||"",{displayMode:oe==="block",throwOnError:!1,output:"html"})}),fe=fe.replace(/▁/g,"\u2581\u2581\u2581"),O(),fe},[W]),C=Object(Ye.useRef)();function U(G){var J=G.target;if(J.tagName.toUpperCase()==="A"){var ne=J.getAttribute("href");if(ne.startsWith("#")){G.preventDefault();var fe=document.getElementById(ne.replace("#",""));fe&&fe.scrollIntoView(!0)}}}return Object(Ye.useEffect)(function(){if(C.current&&D&&(D.match(X)&&window.PR.prettyPrint()),C.current)return C.current.addEventListener("click",U),function(){C.current.removeEventListener("click",U),O(),t()}},[D,C.current,U]),rt.a.createElement("div",{ref:C,style:Y,className:"".concat(M||""," markdown-body"),dangerouslySetInnerHTML:{__html:D}})}},"9VGf":function(st,at,pe){"use strict";pe.d(at,"a",function(){return Oe});var Ye=pe("q1tI"),rt=pe.n(Ye);function Oe(r,A){var y=Object(Ye.useRef)();Object(Ye.useEffect)(function(){y.current=r}),Object(Ye.useEffect)(function(){function m(){y.current()}if(A!==null){var b=setInterval(m,A);return function(){return clearInterval(b)}}},[A])}},Aky1:function(st,at,pe){"use strict";pe.d(at,"a",function(){return b});var Ye=pe("ErOA"),rt=pe("qGJc"),Oe=pe.n(rt),r="",A;function y(i){m(i)}function m(i){A=new Oe.a.Vod({timeout:6e4,partSize:1048576,parallel:5,retryCount:3,retryDuration:2,region:"ap-southeast-1",userId:1829848226361863,enableUploadProgress:!1,addFileSuccess:function(f){console.log("addFileSuccess: "+f.file.name),i.addFileSuccess&&i.addFileSuccess(f),A.startUpload()},onUploadstarted:function(f){var s=f.file.name;if(f.videoId){var o="/api/users/".concat(r,"/video_auths.json");Object(Ye.a)(o,{method:"put",body:{video_id:f.videoId,title:s,file_name:s}}).then(function(c){if(c.status==-1){i.onUploadError&&i.onUploadError(f);return}var d=c.data,l=d.UploadAuth,x=d.UploadAddress,w=d.VideoId;A.setUploadAuthAndAddress(f,l,x)}).catch(function(c){A.deleteFile(A._curIndex),A.nextUpload(),console.log(c)})}else{var t="/api/users/".concat(r,"/video_auths.json"),a="";Object(Ye.a)(t,{method:"Post",body:{title:a+s,file_name:a+s}}).then(function(c){if(c){var d=c.data,l=d.UploadAuth,x=d.UploadAddress,w=d.VideoId;A.setUploadAuthAndAddress(f,l,x,w)}}).catch(function(c){A.deleteFile(A._curIndex),A.nextUpload(),console.log(c)}),console.log("\u6587\u4EF6\u5F00\u59CB\u4E0A\u4F20...")}},onUploadSucceed:function(f){i.onUploadSucceed&&i.onUploadSucceed(f),console.log("\u6587\u4EF6\u4E0A\u4F20\u6210\u529F!")},onUploadFailed:function(f,s,t){i.onUploadFailed&&i.onUploadFailed(f),console.log("\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25!")},onUploadCanceled:function(f,s,t){console.log("\u6587\u4EF6\u4E0A\u4F20\u5DF2\u6682\u505C!")},onUploadProgress:function(f,s,t){i.onUploadProgress&&i.onUploadProgress(f,s,t);var a=Math.ceil(t*100);console.log("\u6587\u4EF6\u4E0A\u4F20\u4E2D...")},onUploadTokenExpired:function(f){console.log("\u6587\u4EF6\u4E0A\u4F20\u8D85\u65F6!");var s="/api/users/".concat(r,"/video_auths.json");Object(Ye.a)(s,{method:"put",body:{video_id:f.videoId}}).then(function(t){var a=t.data,o=a.UploadAuth;A.resumeUploadWithAuth(o)}).catch(function(t){console.log(t)})},onUploadEnd:function(f){i.onUploadEnd&&i.onUploadEnd(f),console.log("onUploadEnd: uploaded all the files")}}),i.gotUploader&&i.gotUploader(A)}function b(i,u){i&&(r=i),y(u);debugger}},JqQi:function(st,at,pe){st.exports={bg:"bg___31owl",container:"container___2NGOo"}},MRWH:function(st,at,pe){st.exports={flex_box_center:"flex_box_center___30XbU",flex_space_between:"flex_space_between___3jfWA",flex_box_vertical_center:"flex_box_vertical_center___27kWs",flex_box_center_end:"flex_box_center_end___1RoAS",flex_box_column:"flex_box_column____3Jvr",list:"list___2NJ_T",box:"box___36KCF",title:"title___Kd2ce",gray:"gray___14ob6",brght:"brght___GgzyD",s1:"s1___IhDpz",s2:"s2___3hR0s",s3:"s3___23SCF",active:"active___2_5D5",line:"line___3Croa"}},NLgs:function(st,at,pe){"use strict";pe.d(at,"d",function(){return i}),pe.d(at,"e",function(){return u}),pe.d(at,"c",function(){return s}),pe.d(at,"b",function(){return t}),pe.d(at,"a",function(){return a});var Ye=pe("2qtc"),rt=pe("kLXV"),Oe=pe("q1tI"),r=pe.n(Oe),A=pe("9kvl"),y=pe("xKgJ"),m=pe("1vsH"),b=pe("m3rI"),i=function(c){return!!(u(c)&&f())},u=function(c){return Object(y.o)()?!0:(c({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},f=function(){var c,d=Object(A.b)()._store.getState(),l=d.user;return((c=l.userInfo)===null||c===void 0?void 0:c.profile_completed)?!0:(rt.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(){A.c.push("/account/profile/edit")}}),!1)},s=function(){var c,d=Object(A.b)()._store.getState(),l=d.user;return((c=l.userInfo)===null||c===void 0?void 0:c.professional_certification)?!0:(rt.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(m.C)("/account/certification")}}),!1)},t=function(){return Object(y.a)()?!0:(rt.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",content:r.a.createElement("div",{className:"tc"},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(y.s)()?pe("WdTA"):"".concat(b.a.IMG_SERVER,"/images/educoder/qqqun20191230.png"),width:200}),r.a.createElement("div",{className:"tc"},"\u7FA4\u53F7\uFF1A",Object(y.s)()?"693542422":"612934990")),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(m.C)("//shang.qq.com/wpa/qunwpa?idkey=2f2043d88c1bd61d182b98bf1e061c6185e23055bec832c07d8148fe11c5a6cd")}}),!1)},a=function(c){return c?!0:(rt.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",content:r.a.createElement("div",null,r.a.createElement("p",null,"\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:pe("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(m.C)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1)}},WdTA:function(st,at,pe){st.exports=pe.p+"static/studnetqun.a5754d96.png"},eoI0:function(st,at,pe){st.exports={selectSchool:"selectSchool___2Vrh7",delete:"delete___qM8Jm"}},hgre:function(st,at,pe){"use strict";var Ye=pe("9og8"),rt=pe("q1tI"),Oe=pe.n(rt),r=pe("GUcZ");function A(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */A=function(){return i};var i={},u=Object.prototype,f=u.hasOwnProperty,s=Object.defineProperty||function(M,Q,Y){M[Q]=Y.value},t=typeof Symbol=="function"?Symbol:{},a=t.iterator||"@@iterator",o=t.asyncIterator||"@@asyncIterator",c=t.toStringTag||"@@toStringTag";function d(M,Q,Y){return Object.defineProperty(M,Q,{value:Y,enumerable:!0,configurable:!0,writable:!0}),M[Q]}try{d({},"")}catch(M){d=function(Y,W,D){return Y[W]=D}}function l(M,Q,Y,W){var D=Q&&Q.prototype instanceof p?Q:p,C=Object.create(D.prototype),U=new H(W||[]);return s(C,"_invoke",{value:I(M,Y,U)}),C}function x(M,Q,Y){try{return{type:"normal",arg:M.call(Q,Y)}}catch(W){return{type:"throw",arg:W}}}i.wrap=l;var w={};function p(){}function O(){}function S(){}var h={};d(h,a,function(){return this});var E=Object.getPrototypeOf,L=E&&E(E($([])));L&&L!==u&&f.call(L,a)&&(h=L);var P=S.prototype=p.prototype=Object.create(h);function g(M){["next","throw","return"].forEach(function(Q){d(M,Q,function(Y){return this._invoke(Q,Y)})})}function F(M,Q){function Y(D,C,U,G){var J=x(M[D],M,C);if(J.type!=="throw"){var ne=J.arg,fe=ne.value;return fe&&typeof fe=="object"&&f.call(fe,"__await")?Q.resolve(fe.__await).then(function(se){Y("next",se,U,G)},function(se){Y("throw",se,U,G)}):Q.resolve(fe).then(function(se){ne.value=se,U(ne)},function(se){return Y("throw",se,U,G)})}G(J.arg)}var W;s(this,"_invoke",{value:function(C,U){function G(){return new Q(function(J,ne){Y(C,U,J,ne)})}return W=W?W.then(G,G):G()}})}function I(M,Q,Y){var W="suspendedStart";return function(D,C){if(W==="executing")throw new Error("Generator is already running");if(W==="completed"){if(D==="throw")throw C;return ae()}for(Y.method=D,Y.arg=C;;){var U=Y.delegate;if(U){var G=X(U,Y);if(G){if(G===w)continue;return G}}if(Y.method==="next")Y.sent=Y._sent=Y.arg;else if(Y.method==="throw"){if(W==="suspendedStart")throw W="completed",Y.arg;Y.dispatchException(Y.arg)}else Y.method==="return"&&Y.abrupt("return",Y.arg);W="executing";var J=x(M,Q,Y);if(J.type==="normal"){if(W=Y.done?"completed":"suspendedYield",J.arg===w)continue;return{value:J.arg,done:Y.done}}J.type==="throw"&&(W="completed",Y.method="throw",Y.arg=J.arg)}}}function X(M,Q){var Y=Q.method,W=M.iterator[Y];if(W===void 0)return Q.delegate=null,Y==="throw"&&M.iterator.return&&(Q.method="return",Q.arg=void 0,X(M,Q),Q.method==="throw")||Y!=="return"&&(Q.method="throw",Q.arg=new TypeError("The iterator does not provide a '"+Y+"' method")),w;var D=x(W,M.iterator,Q.arg);if(D.type==="throw")return Q.method="throw",Q.arg=D.arg,Q.delegate=null,w;var C=D.arg;return C?C.done?(Q[M.resultName]=C.value,Q.next=M.nextLoc,Q.method!=="return"&&(Q.method="next",Q.arg=void 0),Q.delegate=null,w):C:(Q.method="throw",Q.arg=new TypeError("iterator result is not an object"),Q.delegate=null,w)}function R(M){var Q={tryLoc:M[0]};1 in M&&(Q.catchLoc=M[1]),2 in M&&(Q.finallyLoc=M[2],Q.afterLoc=M[3]),this.tryEntries.push(Q)}function V(M){var Q=M.completion||{};Q.type="normal",delete Q.arg,M.completion=Q}function H(M){this.tryEntries=[{tryLoc:"root"}],M.forEach(R,this),this.reset(!0)}function $(M){if(M){var Q=M[a];if(Q)return Q.call(M);if(typeof M.next=="function")return M;if(!isNaN(M.length)){var Y=-1,W=function D(){for(;++Y<M.length;)if(f.call(M,Y))return D.value=M[Y],D.done=!1,D;return D.value=void 0,D.done=!0,D};return W.next=W}}return{next:ae}}function ae(){return{value:void 0,done:!0}}return O.prototype=S,s(P,"constructor",{value:S,configurable:!0}),s(S,"constructor",{value:O,configurable:!0}),O.displayName=d(S,c,"GeneratorFunction"),i.isGeneratorFunction=function(M){var Q=typeof M=="function"&&M.constructor;return!!Q&&(Q===O||(Q.displayName||Q.name)==="GeneratorFunction")},i.mark=function(M){return Object.setPrototypeOf?Object.setPrototypeOf(M,S):(M.__proto__=S,d(M,c,"GeneratorFunction")),M.prototype=Object.create(P),M},i.awrap=function(M){return{__await:M}},g(F.prototype),d(F.prototype,o,function(){return this}),i.AsyncIterator=F,i.async=function(M,Q,Y,W,D){D===void 0&&(D=Promise);var C=new F(l(M,Q,Y,W),D);return i.isGeneratorFunction(Q)?C:C.next().then(function(U){return U.done?U.value:C.next()})},g(P),d(P,c,"Generator"),d(P,a,function(){return this}),d(P,"toString",function(){return"[object Generator]"}),i.keys=function(M){var Q=Object(M),Y=[];for(var W in Q)Y.push(W);return Y.reverse(),function D(){for(;Y.length;){var C=Y.pop();if(C in Q)return D.value=C,D.done=!1,D}return D.done=!0,D}},i.values=$,H.prototype={constructor:H,reset:function(Q){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(V),!Q)for(var Y in this)Y.charAt(0)==="t"&&f.call(this,Y)&&!isNaN(+Y.slice(1))&&(this[Y]=void 0)},stop:function(){this.done=!0;var Q=this.tryEntries[0].completion;if(Q.type==="throw")throw Q.arg;return this.rval},dispatchException:function(Q){if(this.done)throw Q;var Y=this;function W(ne,fe){return U.type="throw",U.arg=Q,Y.next=ne,fe&&(Y.method="next",Y.arg=void 0),!!fe}for(var D=this.tryEntries.length-1;D>=0;--D){var C=this.tryEntries[D],U=C.completion;if(C.tryLoc==="root")return W("end");if(C.tryLoc<=this.prev){var G=f.call(C,"catchLoc"),J=f.call(C,"finallyLoc");if(G&&J){if(this.prev<C.catchLoc)return W(C.catchLoc,!0);if(this.prev<C.finallyLoc)return W(C.finallyLoc)}else if(G){if(this.prev<C.catchLoc)return W(C.catchLoc,!0)}else{if(!J)throw new Error("try statement without catch or finally");if(this.prev<C.finallyLoc)return W(C.finallyLoc)}}}},abrupt:function(Q,Y){for(var W=this.tryEntries.length-1;W>=0;--W){var D=this.tryEntries[W];if(D.tryLoc<=this.prev&&f.call(D,"finallyLoc")&&this.prev<D.finallyLoc){var C=D;break}}C&&(Q==="break"||Q==="continue")&&C.tryLoc<=Y&&Y<=C.finallyLoc&&(C=null);var U=C?C.completion:{};return U.type=Q,U.arg=Y,C?(this.method="next",this.next=C.finallyLoc,w):this.complete(U)},complete:function(Q,Y){if(Q.type==="throw")throw Q.arg;return Q.type==="break"||Q.type==="continue"?this.next=Q.arg:Q.type==="return"?(this.rval=this.arg=Q.arg,this.method="return",this.next="end"):Q.type==="normal"&&Y&&(this.next=Y),w},finish:function(Q){for(var Y=this.tryEntries.length-1;Y>=0;--Y){var W=this.tryEntries[Y];if(W.finallyLoc===Q)return this.complete(W.completion,W.afterLoc),V(W),w}},catch:function(Q){for(var Y=this.tryEntries.length-1;Y>=0;--Y){var W=this.tryEntries[Y];if(W.tryLoc===Q){var D=W.completion;if(D.type==="throw"){var C=D.arg;V(W)}return C}}throw new Error("illegal catch attempt")},delegateYield:function(Q,Y,W){return this.delegate={iterator:$(Q),resultName:Y,nextLoc:W},this.method==="next"&&(this.arg=void 0),w}},i}Object.defineProperty(HTMLMediaElement.prototype,"playing",{get:function(){return this.currentTime>0&&!this.paused&&!this.ended&&this.readyState>2}});function y(i,u){return i-u}function m(i){i.sort(y);for(var u=0,f=0;f<i.length-1;f++){var s=Math.abs(i[f+1]-i[f]);s<21&&(u+=s)}return u}var b=/(android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini)/i;at.a=Object(rt.forwardRef)(function(i,u){var f,s=i.src,t=i.videoId,a=i.logWatchHistory,o=i.courseId,c=o===void 0?null:o,d=i.startTime,l=i.handlePause,x=l===void 0?function(){}:l,w=i.handlePlay,p=w===void 0?function(){}:w,O=i.handlePlayEnded,S=O===void 0?function(){}:O,h=i.videoSpeed,E=h===void 0?1:h,L=s==null||((f=s.split("."))===null||f===void 0)?void 0:f.pop(),P=L==="flv",g=Object(rt.useRef)(),F=navigator.userAgent.toLowerCase().match(b),I=F?F[0]:"pc",X=Object(rt.useRef)(!1),R=0,V=0,H=0,$=null,ae=!1,M=20,Q=1,Y=!1,W=!1,D=[];Object(rt.useImperativeHandle)(u,function(){return{getLastUpdatedTime:function(){return g.current.currentTime},getDuration:function(){return g.current.duration}}});var C=Object(rt.useCallback)(function(U){var G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,J={point:g.current.currentTime};$?(J.log_id=$,J.watch_duration=m(D),J.total_duration=V):(c?(J.video_id=parseInt(t,10),J.course_id=parseInt(c,10)):J.video_id=t,J.duration=R,J.device=I),G&&(J.ed="1");function ne(){return fe.apply(this,arguments)}function fe(){return fe=Object(Ye.a)(A().mark(function se(){var me;return A().wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:return Y=!0,ie.next=3,a(J);case 3:me=ie.sent,$=me,Y=!1,U&&U();case 7:case"end":return ie.stop()}},se)})),fe.apply(this,arguments)}ne()},[t,c]);return Object(rt.useEffect)(function(){var U=null;return r.a.isSupported&&P?(U=r.a.createPlayer({type:"flv",volume:.8,cors:!0,url:s,muted:!1}),g.current&&(U.attachMediaElement(g.current),U.load())):g.current.setAttribute("src",s),function(){U&&(U.unload(),U.pause(),U.destroy(),U=null)}},[g,P,s]),Object(rt.useEffect)(function(){function U(){p(),d&&!X.current&&(g.current.currentTime=d),X.current=!0,D.push(g.current.currentTime),ae||(ae=!0,C())}function G(){return J.apply(this,arguments)}function J(){return J=Object(Ye.a)(A().mark(function ie(){return A().wrap(function(le){for(;;)switch(le.prev=le.next){case 0:D.push(g.current.currentTime),C(function(){$=null,H=0,ae=!1,Y=!1,W=!1,D=[],V=0,Q=1},!0);case 2:case"end":return le.stop()}},ie)})),J.apply(this,arguments)}function ne(){if(!W){var ie=g.current.currentTime,oe=ie-H;Math.abs(oe)<10?(V+=Math.abs(oe),H=ie,Y||V-Q*M>=0&&(Q++,D.push(H),C())):(H=ie,C())}}function fe(){W=!0}function se(){g.current.playing&&D.push(g.current.currentTime,H),H=g.current.currentTime,W=!1}function me(){R=g.current.duration,R<=20&&(M=R/3),g.current.addEventListener("play",U)}function ve(){x()}return g.current.addEventListener("canplay",me),g.current.addEventListener("ended",G),g.current.addEventListener("seeking",fe),g.current.addEventListener("seeked",se),g.current.addEventListener("timeupdate",ne),g.current.addEventListener("pause",ve),function(){g.current.removeEventListener("canplay",me),g.current.removeEventListener("play",U),g.current.removeEventListener("ended",G),g.current.removeEventListener("seeking",fe),g.current.removeEventListener("seeked",se),g.current.removeEventListener("timeupdate",ne),g.current.removeEventListener("pause",ve),g.current.playing&&(D.push(H,g.current.currentTime),C())}},[g,s]),Object(rt.useEffect)(function(){g.current.onended=function(){S(g)},g.current.playbackRate=E},[s,E]),Oe.a.createElement("video",{ref:g,controls:!0,autoPlay:!1,controlsList:"nodownload",muted:!1})})},kwm0:function(st,at,pe){st.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",description:"description___2XNFq",colorOrange:"colorOrange___DiWgP"}},nUhQ:function(st,at,pe){st.exports={flex_box_center:"flex_box_center___1OQ1z",flex_space_between:"flex_space_between___22uwF",flex_box_vertical_center:"flex_box_vertical_center___1xWAr",flex_box_center_end:"flex_box_center_end___1QTe3",flex_box_column:"flex_box_column___lWxZG",banner:"banner___1Hzq6",wrap:"wrap___1D5RS",title:"title___1LzGm",contentWrap:"contentWrap___19oxo",button:"button___3chJs",rating:"rating___3ODxx"}},qGJc:function(st,at,pe){(function(Ye){var rt,rt;!function(Oe){if(!0)window.OSS=Oe(),st.exports=Oe();else var r}(function(){var Oe;return function(){function r(A,y,m){function b(f,s){if(!y[f]){if(!A[f]){var t=typeof rt=="function"&&rt;if(!s&&t)return rt(f,!0);if(i)return i(f,!0);var a=new Error("Cannot find module '"+f+"'");throw a.code="MODULE_NOT_FOUND",a}var o=y[f]={exports:{}};A[f][0].call(o.exports,function(c){return b(A[f][1][c]||c)},o,o.exports,r,A,y,m)}return y[f].exports}for(var i=typeof rt=="function"&&rt,u=0;u<m.length;u++)b(m[u]);return b}return r}()({1:[function(r,A,y){"use strict";var m=r("./browser/client");m.Buffer=r("buffer").Buffer,m.co=r("co"),m.urllib=r("../shims/xhr"),m.version=r("./browser/version").version,A.exports=m},{"../shims/xhr":244,"./browser/client":2,"./browser/version":5,buffer:38,co:41}],2:[function(r,A,y){(function(m,b){"use strict";function i(W){return W&&W.__esModule?W:{default:W}}function u(W,D){return W[D]||W[D.toLowerCase()]}function f(W,D){var C=g.parse(W);if(!C.protocol){var U=D?"https://":"http://";C=g.parse(U+W)}if(C.protocol!=="http:"&&C.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return C}function s(W,D,C){var U=C?"https://":"http://",G=D?"-internal.aliyuncs.com":".aliyuncs.com";return W.substr(0,"vpc100-oss-cn-".length)==="vpc100-oss-cn-"&&(G=".aliyuncs.com"),g.parse(U+W+G)}function t(){return document&&document.location&&document.location.protocol==="https:"}function a(W,D){if(!(this instanceof a))return new a(W,D);W&&W.inited?this.options=W:this.options=a.initOptions(W),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=R,this.agent=this.options.agent||Q),this.ctx=D,this.userAgent=this._getUserAgent(),this.options.amendTimeSkewed=0}var o=r("babel-runtime/regenerator"),c=i(o),d=r("babel-runtime/core-js/object/keys"),l=i(d),x=r("debug")("ali-oss"),w=r("./../../shims/crypto/crypto.js"),p=r("path"),O=r("copy-to"),S=r("mime"),h=r("xml2js"),E=r("humanize-ms"),L=r("agentkeepalive"),P=r("merge-descriptors"),g=r("url"),F=r("is-type-of"),I=r("platform"),X=r("utility"),R=r("urllib"),V=r("./version"),H=r("dateformat"),$=r("bowser"),ae=r("../common/signUtils"),M=r("../common/utils"),Q=new L;A.exports=a,a.initOptions=function(W){if(!W||!W.accessKeyId||!W.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");var D=t(),C={region:"oss-cn-hangzhou",internal:!1,secure:D,bucket:null,endpoint:null,cname:!1};if((0,l.default)(W).forEach(function(U){W[U]!==void 0&&(C[U]=W[U])}),C.accessKeyId=C.accessKeyId.trim(),C.accessKeySecret=C.accessKeySecret.trim(),C.timeout&&(C.timeout=E(C.timeout)),C.endpoint)C.endpoint=f(C.endpoint,C.secure);else{if(!C.region)throw new Error("require options.endpoint or options.region");C.endpoint=s(C.region,C.internal,C.secure)}return C.inited=!0,C};var Y=a.prototype;P(Y,r("./object")),P(Y,r("./managed_upload")),P(Y,r("../common/multipart")),P(Y,r("../common/thunkpool.js")),a.Wrapper=r("./wrapper"),Y.signature=function(W){return x("authorization stringToSign: %s",W),ae.computeSignature(this.options.accessKeySecret,W)},Y.authorization=function(W,D,C,U){var G=ae.buildCanonicalString(W.toUpperCase(),D,{headers:U,parameters:C});return ae.authorization(this.options.accessKeyId,this.options.accessKeySecret,G)},Y.createRequest=function(W){var D={"x-oss-date":H(+new Date+this.options.amendTimeSkewed,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'"),"x-oss-user-agent":this.userAgent};this.options.stsToken&&(D["x-oss-security-token"]=this.options.stsToken),O(W.headers).to(D),u(D,"Content-Type")||(W.mime===S.default_type&&(W.mime=""),W.mime&&W.mime.indexOf("/")>0?D["Content-Type"]=W.mime:D["Content-Type"]=S.getType(W.mime||p.extname(W.object||""))||"application/octet-stream"),W.content&&(D["Content-Md5"]=w.createHash("md5").update(new b(W.content,"utf8")).digest("base64"),D["Content-Length"]||(D["Content-Length"]=W.content.length));var C=this._getResource(W);D.authorization=this.authorization(W.method,C,W.subres,D);var U=this._getReqUrl(W);x("request %s %s, with headers %j, !!stream: %s",W.method,U,D,!!W.stream);var G=W.timeout||this.options.timeout;return{url:U,params:{agent:this.agent,method:W.method,content:W.content,stream:W.stream,headers:D,timeout:G,writeStream:W.writeStream,customResponse:W.customResponse,ctx:W.ctx||this.ctx}}},Y.request=c.default.mark(function W(D){var C,U,G,J;return c.default.wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:return C=this.createRequest(D),U=void 0,G=void 0,ne.prev=3,ne.next=6,this.urllib.request(C.url,C.params);case 6:U=ne.sent,x("response %s %s, got %s, headers: %j",D.method,C.url,U.status,U.headers),ne.next=13;break;case 10:ne.prev=10,ne.t0=ne.catch(3),G=ne.t0;case 13:if(J=void 0,!U||!D.successStatuses||D.successStatuses.indexOf(U.status)!==-1){ne.next=26;break}return ne.next=17,this.requestError(U);case 17:if(J=ne.sent,J.code!=="RequestTimeTooSkewed"){ne.next=23;break}return this.options.amendTimeSkewed=+new Date(J.serverTime)-new Date,ne.next=22,this.request(D);case 22:return ne.abrupt("return",ne.sent);case 23:J.params=D,ne.next=30;break;case 26:if(!G){ne.next=30;break}return ne.next=29,this.requestError(G);case 29:J=ne.sent;case 30:if(!J){ne.next=32;break}throw J;case 32:if(!D.xmlResponse){ne.next=36;break}return ne.next=35,this.parseXML(U.data);case 35:U.data=ne.sent;case 36:return ne.abrupt("return",U);case 37:case"end":return ne.stop()}},W,this,[[3,10]])}),Y._getResource=function(W){var D="/";return W.bucket&&(D+=W.bucket+"/"),W.object&&(D+=W.object),D},Y._isIP=function(W){return M._isIP(W)},Y._escape=function(W){return X.encodeURIComponent(W).replace(/%2F/g,"/")},Y._getReqUrl=function(W){var D={};O(this.options.endpoint).to(D);var C=this._isIP(D.hostname),U=this.options.cname;!W.bucket||U||C||(D.host=W.bucket+"."+D.host);var G="/";W.bucket&&C&&(G+=W.bucket+"/"),W.object&&(G+=this._escape(W.object).replace(/\+/g,"%2B")),D.pathname=G;var J={};if(W.query&&P(J,W.query),W.subres){var ne={};F.string(W.subres)?ne[W.subres]="":F.array(W.subres)?W.subres.forEach(function(fe){ne[fe]=""}):ne=W.subres,P(J,ne)}return D.query=J,g.format(D)},Y._getUserAgent=function(){var W=m&&m.browser?"js":"nodejs",D="aliyun-sdk-"+W+"/"+V.version,C=I.description;return!C&&m&&(C="Node.js "+m.version.slice(1)+" on "+m.platform+" "+m.arch),this._checkUserAgent(D+" "+C)},Y._checkUserAgent=function(W){return W.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta")},Y.checkBrowserAndVersion=function(W,D){return $.name===W&&$.version.split(".")[0]===D},Y.parseXML=function(W){return function(D){b.isBuffer(W)&&(W=W.toString()),h.parseString(W,{explicitRoot:!1,explicitArray:!1},D)}},Y.requestError=c.default.mark(function W(D){var C,U,G,J;return c.default.wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:if(C=null,D.data&&D.data.length){ne.next=5;break}D.status===-1||D.status===-2?(C=new Error(D.message),C.name=D.name,C.status=D.status,C.code=D.name):(D.status===404?(C=new Error("Object not exists"),C.name="NoSuchKeyError",C.status=404,C.code="NoSuchKey"):D.status===412?(C=new Error("Pre condition failed"),C.name="PreconditionFailedError",C.status=412,C.code="PreconditionFailed"):(C=new Error("Unknow error, status: "+D.status),C.name="UnknowError",C.status=D.status),C.requestId=D.headers["x-oss-request-id"],C.host=""),ne.next=30;break;case 5:return U=String(D.data),x("request response error data: %s",U),G=void 0,ne.prev=8,ne.next=11,this.parseXML(U)||{};case 11:G=ne.sent,ne.next=21;break;case 14:return ne.prev=14,ne.t0=ne.catch(8),x(U),ne.t0.message+=`
|
|
|
raw xml: `+U,ne.t0.status=D.status,ne.t0.requestId=D.headers["x-oss-request-id"],ne.abrupt("return",ne.t0);case 21:J=G.Message||"unknow request error, status: "+D.status,G.Condition&&(J+=" (condition: "+G.Condition+")"),C=new Error(J),C.name=G.Code?G.Code+"Error":"UnknowError",C.status=D.status,C.code=G.Code,C.requestId=G.RequestId,C.hostId=G.HostId,C.serverTime=G.ServerTime;case 30:return x("generate error %j",C),ne.abrupt("return",C);case 32:case"end":return ne.stop()}},W,this,[[8,14]])})}).call(this,r("_process"),r("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(r,A,y){(function(m){"use strict";function b(O){return O&&O.__esModule?O:{default:O}}function i(O,S){if(!(this instanceof i))return new i(O,S);p.call(this,S),this.file=O,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}var u=r("babel-runtime/core-js/array/from"),f=b(u),s=r("babel-runtime/regenerator"),t=b(s),a=r("is-type-of"),o=r("util"),c=r("path"),d=r("mime"),l=r("copy-to"),x=y;x.multipartUpload=t.default.mark(function O(S,h,E){var L,P,g,F,I,X,R,V,H;return t.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 L=102400,E.mime||(a.file(h)?E.mime=d.getType(c.extname(h.name)):a.blob(h)?E.mime=h.type:E.mime=d.getType(c.extname(h))),E.headers=E.headers||{},this._convertMetaToHeaders(E.meta,E.headers),$.next=12,this._getFileSize(h);case 12:if(!((P=$.sent)<L)){$.next=25;break}return g=this._createStream(h,0,P),E.contentLength=P,$.next=18,this.putStream(S,g,E);case 18:if(F=$.sent,!E||!E.progress){$.next=22;break}return $.next=22,E.progress(1);case 22:return I={res:F.res,bucket:this.options.bucket,name:S,etag:F.res.headers.etag},(E.headers&&E.headers["x-oss-callback"]||E.callback)&&(I.data=F.data),$.abrupt("return",I);case 25:if(!(E.partSize&&E.partSize<L)){$.next=27;break}throw new Error("partSize must not be smaller than "+L);case 27:return $.next=29,this.initMultipartUpload(S,E);case 29:if(X=$.sent,R=X.uploadId,V=this._getPartSize(P,E.partSize),H={file:h,name:S,fileSize:P,partSize:V,uploadId:R,doneParts:[]},!E||!E.progress){$.next=36;break}return $.next=36,E.progress(0,H,X.res);case 36:return $.next=38,this._resumeMultipart(H,E);case 38:return $.abrupt("return",$.sent);case 39:case"end":return $.stop()}},O,this)}),x._resumeMultipart=t.default.mark(function O(S,h){var E,L,P,g,F,I,X,R,V,H,$,ae,M,Q,Y,W,D,C,U,G,J;return t.default.wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:if(!this.isCancel()){ne.next=2;break}throw this._makeCancelEvent();case 2:if(E=S.file,L=S.fileSize,P=S.partSize,g=S.uploadId,F=S.doneParts,I=S.name,X=[],F.length>0&&l(F).to(X),R=this._divideParts(L,P),V=R.length,H=!1,$=t.default.mark(function fe(se,me){var ve,ie,oe;return t.default.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:if(se.isCancel()){le.next=21;break}return le.prev=1,ve=R[me-1],ie={stream:se._createStream(E,ve.start,ve.end),size:ve.end-ve.start},le.next=6,se._uploadPart(I,g,me,ie);case 6:if(oe=le.sent,se.isCancel()||H){le.next=13;break}if(S.doneParts.push({number:me,etag:oe.res.headers.etag}),X.push({number:me,etag:oe.res.headers.etag}),!h||!h.progress){le.next=13;break}return le.next=13,h.progress(F.length/V,S,oe.res);case 13:le.next=21;break;case 15:if(le.prev=15,le.t0=le.catch(1),se.isCancel()){le.next=21;break}throw se.cancel(),le.t0.partNum=me,le.t0;case 21:case"end":return le.stop()}},fe,this,[[1,15]])}),ae=(0,f.default)(new Array(V),function(fe,se){return se+1}),M=X.map(function(fe){return fe.number}),Q=ae.filter(function(fe){return M.indexOf(fe)<0}),Y=5,W=h.parallel||Y,!this.checkBrowserAndVersion("Internet Explorer","10")&&W!==1){ne.next=26;break}D=0;case 16:if(!(D<Q.length)){ne.next=24;break}if(!this.isCancel()){ne.next=19;break}throw this._makeCancelEvent();case 19:return ne.next=21,$(this,Q[D]);case 21:D++,ne.next=16;break;case 24:ne.next=40;break;case 26:for(C=[],U=0;U<Q.length;U++)C.push($(this,Q[U]));return ne.next=30,this._thunkPool(C,W);case 30:if(G=ne.sent,H=!0,!(G&&G.length>0)){ne.next=37;break}throw this.resetCancelFlag(),J=G[0],J.message="Failed to upload some parts with error: "+J.toString()+" part_num: "+J.partNum,J;case 37:if(!this.isCancel()){ne.next=40;break}throw C=null,this._makeCancelEvent();case 40:return ne.next=42,this.completeMultipartUpload(I,g,X,h);case 42:return ne.abrupt("return",ne.sent);case 43:case"end":return ne.stop()}},O,this)}),a.file=function(O){return typeof File!="undefined"&&O instanceof File},a.blob=function(O){return typeof Blob!="undefined"&&O instanceof Blob},x._getFileSize=t.default.mark(function O(S){var h;return t.default.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:if(!a.buffer(S)){E.next=4;break}return E.abrupt("return",S.length);case 4:if(!a.blob(S)&&!a.file(S)){E.next=6;break}return E.abrupt("return",S.size);case 6:if(!a.string(S)){E.next=11;break}return E.next=9,this._statFile(S);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()}},O,this)});var w=r("stream"),p=w.Readable;o.inherits(i,p),i.prototype.readFileAndPush=function(O){if(this.fileBuffer)for(var S=!0;S&&this.fileBuffer&&this.start<this.fileBuffer.length;){var h=this.start,E=h+O;E=E>this.fileBuffer.length?this.fileBuffer.length:E,this.start=E,S=this.push(this.fileBuffer.slice(h,E))}},i.prototype._read=function(O){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);O=O||16384;var S=this;this.reader.onload=function(h){S.fileBuffer=new m(new Uint8Array(h.target.result)),S.file=null,S.readFileAndPush(O)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(O)},x._createStream=function(O,S,h){if(a.blob(O)||a.file(O))return new i(O.slice(S,h));throw new Error("_createStream requires File/String.")},x._getPartSize=function(O,S){return S?Math.max(Math.ceil(O/1e4),S):1048576},x._divideParts=function(O,S){for(var h=Math.ceil(O/S),E=[],L=0;L<h;L++){var P=S*L,g=Math.min(P+S,O);E.push({start:P,end:g})}return E},x._makeCancelEvent=function(){return{status:0,name:"cancel"}}}).call(this,r("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(r,A,y){"use strict";function m(S){return S&&S.__esModule?S:{default:S}}var b=r("babel-runtime/core-js/object/keys"),i=m(b),u=r("babel-runtime/regenerator"),f=m(u),s=r("debug")("ali-oss:object"),t=r("utility"),a=r("fs"),o=r("is-type-of"),c=r("url"),d=r("copy-to"),l=r("path"),x=r("mime"),w=r("../common/callback"),p=r("../common/signUtils"),O=y;O.append=f.default.mark(function S(h,E,L){var P;return f.default.wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return L=L||{},L.position===void 0&&(L.position="0"),L.subres={append:"",position:L.position},L.method="POST",g.next=6,this.put(h,E,L);case 6:return P=g.sent,P.nextAppendPosition=P.res.headers["x-oss-next-append-position"],g.abrupt("return",P);case 9:case"end":return g.stop()}},S,this)}),O.put=f.default.mark(function S(h,E,L){var P,g,F,I,X,R;return f.default.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:if(P=void 0,L=L||{},!o.buffer(E)){V.next=6;break}P=E,V.next=18;break;case 6:if(!o.blob(E)&&!o.file(E)){V.next=17;break}return L.mime||(o.file(E)?L.mime=x.getType(l.extname(E.name)):L.mime=E.type),g=this._createStream(E,0,E.size),V.next=11,this._getFileSize(E);case 11:return L.contentLength=V.sent,V.next=14,this.putStream(h,g,L);case 14:return V.abrupt("return",V.sent);case 17:throw new TypeError("Must provide Buffer/Blob for put.");case 18:return L.headers=L.headers||{},this._convertMetaToHeaders(L.meta,L.headers),F=L.method||"PUT",I=this._objectRequestParams(F,h,L),w.encodeCallback(I,L),I.mime=L.mime,I.content=P,I.successStatuses=[200],V.next=28,this.request(I);case 28:return X=V.sent,R={name:h,url:this._objectUrl(h),res:X.res},I.headers&&I.headers["x-oss-callback"]&&(R.data=JSON.parse(X.data.toString())),V.abrupt("return",R);case 32:case"end":return V.stop()}},S,this)}),O.putStream=f.default.mark(function S(h,E,L){var P,g,F,I;return f.default.wrap(function(X){for(;;)switch(X.prev=X.next){case 0:return L=L||{},L.headers=L.headers||{},L.contentLength?L.headers["Content-Length"]=L.contentLength:L.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(L.meta,L.headers),P=L.method||"PUT",g=this._objectRequestParams(P,h,L),w.encodeCallback(g,L),g.mime=L.mime,g.stream=E,g.successStatuses=[200],X.next=12,this.request(g);case 12:return F=X.sent,I={name:h,url:this._objectUrl(h),res:F.res},g.headers&&g.headers["x-oss-callback"]&&(I.data=JSON.parse(F.data.toString())),X.abrupt("return",I);case 16:case"end":return X.stop()}},S,this)}),O.head=f.default.mark(function S(h,E){var L,P,g;return f.default.wrap(function(F){for(;;)switch(F.prev=F.next){case 0:return L=this._objectRequestParams("HEAD",h,E),L.successStatuses=[200,304],F.next=4,this.request(L);case 4:return P=F.sent,g={meta:null,res:P.res,status:P.status},P.status===200&&(0,i.default)(P.headers).forEach(function(I){I.indexOf("x-oss-meta-")===0&&(g.meta||(g.meta={}),g.meta[I.substring(11)]=P.headers[I])}),F.abrupt("return",g);case 8:case"end":return F.stop()}},S,this)}),O.get=f.default.mark(function S(h,E,L){var P,g,F,I;return f.default.wrap(function(X){for(;;)switch(X.prev=X.next){case 0:return P=null,g=!1,o.writableStream(E)?P=E:o.string(E)?(P=a.createWriteStream(E),g=!0):L=E,L=L||{},L.process&&(L.subres=L.subres||{},L.subres["x-oss-process"]=L.process),F=void 0,X.prev=6,I=this._objectRequestParams("GET",h,L),I.writeStream=P,I.successStatuses=[200,206,304],X.next=12,this.request(I);case 12:F=X.sent,g&&P.destroy(),X.next=24;break;case 16:if(X.prev=16,X.t0=X.catch(6),!g){X.next=23;break}return P.destroy(),s("get error: %s, delete the exists file %s",X.t0,E),X.next=23,this._deleteFileSafe(E);case 23:throw X.t0;case 24:return X.abrupt("return",{res:F.res,content:F.data});case 25:case"end":return X.stop()}},S,this,[[6,16]])}),O.getStream=f.default.mark(function S(h,E){var L,P;return f.default.wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return E=E||{},L=this._objectRequestParams("GET",h,E),L.customResponse=!0,L.successStatuses=[200,206,304],g.next=6,this.request(L);case 6:return P=g.sent,g.abrupt("return",{stream:P.res,res:{status:P.status,headers:P.headers}});case 8:case"end":return g.stop()}},S,this)}),O.delete=f.default.mark(function S(h,E){var L,P;return f.default.wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return L=this._objectRequestParams("DELETE",h,E),L.successStatuses=[204],g.next=4,this.request(L);case 4:return P=g.sent,g.abrupt("return",{res:P.res});case 6:case"end":return g.stop()}},S,this)}),O.deleteMulti=f.default.mark(function S(h,E){var L,P,g,F,I,X;return f.default.wrap(function(R){for(;;)switch(R.prev=R.next){case 0:for(E=E||{},L=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<Delete>
|
|
|
`,E.quiet?L+=` <Quiet>true</Quiet>
|
|
|
`:L+=` <Quiet>false</Quiet>
|
|
|
`,P=0;P<h.length;P++)L+=" <Object><Key>"+t.escape(this._objectName(h[P]))+`</Key></Object>
|
|
|
`;return L+="</Delete>",s("delete multi objects: %s",L),E.subres="delete",g=this._objectRequestParams("POST","",E),g.mime="xml",g.content=L,g.xmlResponse=!0,g.successStatuses=[200],R.next=14,this.request(g);case 14:return F=R.sent,I=F.data,X=I&&I.Deleted||null,X&&(Array.isArray(X)||(X=[X]),X=X.map(function(V){return V.Key})),R.abrupt("return",{res:F.res,deleted:X});case 19:case"end":return R.stop()}},S,this)}),O.copy=f.default.mark(function S(h,E,L){var P,g,F;return f.default.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return L=L||{},L.headers=L.headers||{},(0,i.default)(L.headers).forEach(function(X){L.headers["x-oss-copy-source-"+X.toLowerCase()]=L.headers[X]}),L.meta&&(L.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(L.meta,L.headers),E=E[0]!=="/"?"/"+this.options.bucket+"/"+encodeURIComponent(E):"/"+encodeURIComponent(E.slice(1)),L.headers["x-oss-copy-source"]=E,P=this._objectRequestParams("PUT",h,L),P.xmlResponse=!0,P.successStatuses=[200,304],I.next=12,this.request(P);case 12:return g=I.sent,F=g.data,F&&(F={etag:F.ETag,lastModified:F.LastModified}),I.abrupt("return",{data:F,res:g.res});case 16:case"end":return I.stop()}},S,this)}),O.putMeta=f.default.mark(function S(h,E,L){return f.default.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.next=2,this.copy(h,h,{meta:E||{},timeout:L&&L.timeout,ctx:L&&L.ctx});case 2:return P.abrupt("return",P.sent);case 3:case"end":return P.stop()}},S,this)}),O.list=f.default.mark(function S(h,E){var L,P,g,F,I;return f.default.wrap(function(X){for(;;)switch(X.prev=X.next){case 0:return L=this._objectRequestParams("GET","",E),L.query=h,L.xmlResponse=!0,L.successStatuses=[200],X.next=6,this.request(L);case 6:return P=X.sent,g=P.data.Contents,F=this,g&&(Array.isArray(g)||(g=[g]),g=g.map(function(R){return{name:R.Key,url:F._objectUrl(R.Key),lastModified:R.LastModified,etag:R.ETag,type:R.Type,size:Number(R.Size),storageClass:R.StorageClass,owner:{id:R.Owner.ID,displayName:R.Owner.DisplayName}}})),I=P.data.CommonPrefixes||null,I&&(Array.isArray(I)||(I=[I]),I=I.map(function(R){return R.Prefix})),X.abrupt("return",{res:P.res,objects:g,prefixes:I,nextMarker:P.data.NextMarker||null,isTruncated:P.data.IsTruncated==="true"});case 13:case"end":return X.stop()}},S,this)}),O.putACL=f.default.mark(function S(h,E,L){var P,g;return f.default.wrap(function(F){for(;;)switch(F.prev=F.next){case 0:return L=L||{},L.subres="acl",L.headers=L.headers||{},L.headers["x-oss-object-acl"]=E,h=this._objectName(h),P=this._objectRequestParams("PUT",h,L),P.successStatuses=[200],F.next=9,this.request(P);case 9:return g=F.sent,F.abrupt("return",{res:g.res});case 11:case"end":return F.stop()}},S,this)}),O.getACL=f.default.mark(function S(h,E){var L,P;return f.default.wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return E=E||{},E.subres="acl",h=this._objectName(h),L=this._objectRequestParams("GET",h,E),L.successStatuses=[200],L.xmlResponse=!0,g.next=8,this.request(L);case 8:return P=g.sent,g.abrupt("return",{acl:P.data.AccessControlList.Grant,owner:{id:P.data.Owner.ID,displayName:P.data.Owner.DisplayName},res:P.res});case 10:case"end":return g.stop()}},S,this)}),O.restore=f.default.mark(function S(h,E){var L,P;return f.default.wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return E=E||{},E.subres="restore",L=this._objectRequestParams("POST",h,E),L.successStatuses=[202],g.next=6,this.request(L);case 6:return P=g.sent,g.abrupt("return",{res:P.res});case 8:case"end":return g.stop()}},S,this)}),O.signatureUrl=function(S,h){h=h||{},S=this._objectName(S),h.method=h.method||"GET";var E=t.timestamp()+(h.expires||1800),L={bucket:this.options.bucket,object:S},P=this._getResource(L);this.options.stsToken&&(h["security-token"]=this.options.stsToken);var g=p._signatureForURL(this.options.accessKeySecret,h,P,E),F=c.parse(this._getReqUrl(L));return F.query={OSSAccessKeyId:this.options.accessKeyId,Expires:E,Signature:g.Signature},d(g.subResource).to(F.query),F.format()},O.getObjectUrl=function(S,h){return h?h[h.length-1]!=="/"&&(h+="/"):h=this.options.endpoint.format(),h+this._escape(this._objectName(S))},O._objectUrl=function(S){return this._getReqUrl({bucket:this.options.bucket,object:S})},O.generateObjectUrl=function(S,h){if(h)h[h.length-1]!=="/"&&(h+="/");else{h=this.options.endpoint.format();var E=c.parse(h),L=this.options.bucket;E.hostname=L+"."+E.hostname,E.host=L+"."+E.host,h=E.format()}return h+this._escape(this._objectName(S))},O._objectRequestParams=function(S,h,E){if(!this.options.bucket)throw new Error("Please create a bucket first");E=E||{},h=this._objectName(h);var L={object:h,bucket:this.options.bucket,method:S,subres:E&&E.subres,timeout:E&&E.timeout,ctx:E&&E.ctx};return E.headers&&(L.headers={},d(E.headers).to(L.headers)),L},O._objectName=function(S){return S.replace(/^\/+/,"")},O._statFile=function(S){return function(h){a.stat(S,h)}},O._convertMetaToHeaders=function(S,h){S&&(0,i.default)(S).forEach(function(E){h["x-oss-meta-"+E]=S[E]})},O._deleteFileSafe=function(S){return function(h){a.exists(S,function(E){E?a.unlink(S,function(L){L&&s("unlink %j error: %s",S,L),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(r,A,y){"use strict";y.version="5.3.1"},{}],6:[function(r,A,y){"use strict";function m(l){return l&&l.__esModule?l:{default:l}}function b(l){return l&&typeof l.next=="function"&&typeof l.throw=="function"}function i(l){if(!l)return!1;var x=l.constructor;return!!x&&(x.name==="GeneratorFunction"||x.displayName==="GeneratorFunction"||b(x.prototype)||b(l.prototype))}function u(l,x){var w=new l(x),p=(0,o.default)(w),O=(0,o.default)((0,t.default)(w));p.concat(O).forEach(function(S){i(w[S])?this[S]=c.wrap(w[S]).bind(w):this[S]=w[S]},this)}function f(l){if(!(this instanceof f))return new f(l);u.call(this,d,l)}var s=r("babel-runtime/core-js/object/get-prototype-of"),t=m(s),a=r("babel-runtime/core-js/object/keys"),o=m(a),c=r("co"),d=r("./client");A.exports=f,f.STS=function l(x){if(!(this instanceof l))return new l(x);u.call(this,d.STS,x)}},{"./client":2,"babel-runtime/core-js/object/get-prototype-of":22,"babel-runtime/core-js/object/keys":23,co:41}],7:[function(r,A,y){(function(m){"use strict";function b(t){return t&&t.__esModule?t:{default:t}}var i=r("babel-runtime/core-js/object/keys"),u=b(i),f=r("babel-runtime/core-js/json/stringify"),s=b(f);y.encodeCallback=function(t,a){if(t.headers=t.headers||{},!Object.prototype.hasOwnProperty.call(t.headers,"x-oss-callback")&&a.callback){var o={callbackUrl:encodeURI(a.callback.url),callbackBody:a.callback.body};a.callback.host&&(o.callbackHost=a.callback.host),a.callback.contentType&&(o.callbackBodyType=a.callback.contentType);var c=new m((0,s.default)(o)).toString("base64");if(t.headers["x-oss-callback"]=c,a.callback.customValue){var d={};(0,u.default)(a.callback.customValue).forEach(function(l){d["x:"+l]=a.callback.customValue[l]}),t.headers["x-oss-callback-var"]=new m((0,s.default)(d)).toString("base64")}}}}).call(this,r("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":17,"babel-runtime/core-js/object/keys":23,buffer:38}],8:[function(r,A,y){"use strict";var m=r("babel-runtime/regenerator"),b=function(s){return s&&s.__esModule?s:{default:s}}(m),i=r("copy-to"),u=r("./callback"),f=y;f.listUploads=b.default.mark(function s(t,a){var o,c,d,l;return b.default.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return a=a||{},o={},i(a).to(o),o.subres="uploads",c=this._objectRequestParams("GET","",o),c.query=t,c.xmlResponse=!0,c.successStatuses=[200],x.next=10,this.request(c);case 10:return d=x.sent,l=d.data.Upload||[],Array.isArray(l)||(l=[l]),l=l.map(function(w){return{name:w.Key,uploadId:w.UploadId,initiated:w.Initiated}}),x.abrupt("return",{res:d.res,uploads:l,bucket:d.data.Bucket,nextKeyMarker:d.data.NextKeyMarker,nextUploadIdMarker:d.data.NextUploadIdMarker,isTruncated:d.data.IsTruncated==="true"});case 15:case"end":return x.stop()}},s,this)}),f.listParts=b.default.mark(function s(t,a,o,c){var d,l,x;return b.default.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return c=c||{},d={},i(c).to(d),d.subres={uploadId:a},l=this._objectRequestParams("GET",t,d),l.query=o,l.xmlResponse=!0,l.successStatuses=[200],w.next=10,this.request(l);case 10:return x=w.sent,w.abrupt("return",{res:x.res,uploadId:x.data.UploadId,bucket:x.data.Bucket,name:x.data.Key,partNumberMarker:x.data.PartNumberMarker,nextPartNumberMarker:x.data.NextPartNumberMarker,maxParts:x.data.MaxParts,isTruncated:x.data.IsTruncated,parts:x.data.Part||[]});case 12:case"end":return w.stop()}},s,this)}),f.abortMultipartUpload=b.default.mark(function s(t,a,o){var c,d,l;return b.default.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return this.cancel(),o=o||{},c={},i(o).to(c),c.subres={uploadId:a},d=this._objectRequestParams("DELETE",t,c),d.successStatuses=[204],x.next=9,this.request(d);case 9:return l=x.sent,x.abrupt("return",{res:l.res});case 11:case"end":return x.stop()}},s,this)}),f.initMultipartUpload=b.default.mark(function s(t,a){var o,c,d;return b.default.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return a=a||{},o={},i(a).to(o),o.headers=o.headers||{},this._convertMetaToHeaders(a.meta,o.headers),o.subres="uploads",c=this._objectRequestParams("POST",t,o),c.mime=a.mime,c.xmlResponse=!0,c.successStatuses=[200],l.next=12,this.request(c);case 12:return d=l.sent,l.abrupt("return",{res:d.res,bucket:d.data.Bucket,name:d.data.Key,uploadId:d.data.UploadId});case 14:case"end":return l.stop()}},s,this)}),f.uploadPart=b.default.mark(function s(t,a,o,c,d,l,x){var w;return b.default.wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return w={stream:this._createStream(c,d,l),size:l-d},p.next=3,this._uploadPart(t,a,o,w,x);case 3:return p.abrupt("return",p.sent);case 4:case"end":return p.stop()}},s,this)}),f.completeMultipartUpload=b.default.mark(function s(t,a,o,c){var d,l,x,w,p,O,S,h;return b.default.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:for(d=o.concat().sort(function(L,P){return L.number-P.number}).filter(function(L,P,g){return!P||L.number!==g[P-1].number}),l=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<CompleteMultipartUpload>
|
|
|
`,x=0;x<d.length;x++)w=d[x],l+=`<Part>
|
|
|
`,l+="<PartNumber>"+w.number+`</PartNumber>
|
|
|
`,l+="<ETag>"+w.etag+`</ETag>
|
|
|
`,l+=`</Part>
|
|
|
`;return l+="</CompleteMultipartUpload>",c=c||{},p={},i(c).to(p),p.subres={uploadId:a},O=this._objectRequestParams("POST",t,p),u.encodeCallback(O,p),O.mime="xml",O.content=l,O.headers&&O.headers["x-oss-callback"]||(O.xmlResponse=!0),O.successStatuses=[200],E.next=16,this.request(O);case 16:return S=E.sent,h={res:S.res,bucket:O.bucket,name:t,etag:S.res.headers.etag},O.headers&&O.headers["x-oss-callback"]&&(h.data=JSON.parse(S.data.toString())),E.abrupt("return",h);case 20:case"end":return E.stop()}},s,this)}),f._uploadPart=b.default.mark(function s(t,a,o,c,d){var l,x,w;return b.default.wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return d=d||{},l={},i(d).to(l),l.headers={"Content-Length":c.size},l.subres={partNumber:o,uploadId:a},x=this._objectRequestParams("PUT",t,l),x.mime=l.mime,x.stream=c.stream,x.successStatuses=[200],p.next=11,this.request(x);case 11:return w=p.sent,c.stream=null,x.stream=null,p.abrupt("return",{name:t,etag:w.res.headers.etag,res:w.res});case 15:case"end":return p.stop()}},s,this)})},{"./callback":7,"babel-runtime/regenerator":33,"copy-to":43}],9:[function(r,A,y){(function(m){"use strict";function b(o){return o&&o.__esModule?o:{default:o}}var i=r("babel-runtime/core-js/json/stringify"),u=b(i),f=r("babel-runtime/core-js/object/keys"),s=b(f),t=r("./../../shims/crypto/crypto.js"),a=r("is-type-of");y.buildCanonicalizedResource=function(o,c){var d=""+o,l="?";if(a.string(c)&&c.trim()!=="")d+=l+c;else if(a.array(c))c.sort(),d+=l+c.join("&");else if(c){var x=function(O,S){return O[0]>S[0]?1:O[0]<S[0]?-1:0},w=function(O){d+=l+O,c[O]&&(d+="="+c[O]),l="&"};(0,s.default)(c).sort(x).forEach(w)}return d},y.buildCanonicalString=function(o,c,d,l){d=d||{};var x=d.headers||{},w=[],p={},O=[o.toUpperCase(),x["Content-Md5"]||"",x["Content-Type"]||x["Content-Type".toLowerCase()],l||x["x-oss-date"]];return(0,s.default)(x).forEach(function(S){var h=S.toLowerCase();h.indexOf("x-oss-")===0&&(p[h]=String(x[S]).trim())}),(0,s.default)(p).sort().forEach(function(S){w.push(S+":"+p[S])}),O=O.concat(w),O.push(this.buildCanonicalizedResource(c,d.parameters)),O.join(`
|
|
|
`)},y.computeSignature=function(o,c){return t.createHmac("sha1",o).update(new m(c,"utf8")).digest("base64")},y.authorization=function(o,c,d){return"OSS "+o+":"+this.computeSignature(c,d)},y._signatureForURL=function(o,c,d,l){var x={},w={};if(c.process&&(w["x-oss-process"]=c.process),c.response&&(0,s.default)(c.response).forEach(function(h){var E="response-"+h.toLowerCase();w[E]=c.response[h]}),(0,s.default)(c).forEach(function(h){var E=h.toLowerCase(),L=c[h];E.indexOf("x-oss-")===0?x[E]=L:E.indexOf("content-md5")===0||E.indexOf("content-type")===0?x[h]=L:E!=="expires"&&E!=="response"&&E!=="process"&&E!=="method"&&(w[E]=L)}),Object.prototype.hasOwnProperty.call(c,"security-token")&&(w["security-token"]=c["security-token"]),Object.prototype.hasOwnProperty.call(c,"callback")){var p={callbackUrl:encodeURI(c.callback.url),callbackBody:c.callback.body};if(c.callback.host&&(p.callbackHost=c.callback.host),c.callback.contentType&&(p.callbackBodyType=c.callback.contentType),w.callback=new m((0,u.default)(p)).toString("base64"),c.callback.customValue){var O={};(0,s.default)(c.callback.customValue).forEach(function(h){O["x:"+h]=c.callback.customValue[h]}),w["callback-var"]=new m((0,u.default)(O)).toString("base64")}}var S=this.buildCanonicalString(c.method,d,{headers:x,parameters:w},l.toString());return{Signature:this.computeSignature(o,S),subResource:w}}}).call(this,r("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(r,A,y){"use strict";var m=r("babel-runtime/regenerator"),b=function(t){return t&&t.__esModule?t:{default:t}}(m),i=r("co"),u=r("co-priority-queue"),f=r("any-promise"),s=y;s._thunkPool=function(t,a){function o(w,p){++l===w.length&&p(x)}function c(w,p){function O(){var g;return b.default.wrap(function(F){for(;;)switch(F.prev=F.next){case 0:g=void 0;case 1:if(d.isCancel()){F.next=9;break}return F.next=4,E.next();case 4:return g=F.sent,F.next=7,g();case 7:F.next=1;break;case 9:L+=1,L===w&&(E.fns=[],E.buffer=[],p(x));case 11:case"end":return F.stop()}},h,this)}function S(g){console.error(g.stack)}for(var h=b.default.mark(O),E=new u,L=0,P=0;P<w;P++)i(O).catch(S);return function(g,F){return function(I){E.push(b.default.mark(function X(){return b.default.wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return R.prev=0,R.t0=I,R.next=4,g;case 4:R.t1=R.sent,(0,R.t0)(null,R.t1),R.next=11;break;case 8:R.prev=8,R.t2=R.catch(0),I(R.t2);case 11:case"end":return R.stop()}},X,this,[[0,8]])}),F)}}}var d=this,l=0,x=[];return new f(function(w){function p(L){return b.default.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.next=2,h(t[L]);case 2:o(t,w);case 3:case"end":return P.stop()}},S,this)}function O(L){x.push(L),o(t,w)}for(var S=b.default.mark(p),h=new c(a,w),E=0;E<t.length;E++)i(p(E)).catch(O)})},s.cancel=function(){this.options.cancelFlag=!0},s.isCancel=function(){return this.options.cancelFlag},s.resetCancelFlag=function(){this.options.cancelFlag=!1}},{"any-promise":13,"babel-runtime/regenerator":33,co:41,"co-priority-queue":40}],11:[function(r,A,y){"use strict";y._isIP=function(m){var b=/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/,i=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/;return b.test(m)||i.test(m)}},{}],12:[function(r,A,y){function m(){}A.exports=m,A.exports.HttpsAgent=m},{}],13:[function(r,A,y){A.exports=r("./register")().Promise},{"./register":15}],14:[function(r,A,y){"use strict";var m=null;A.exports=function(b,i){return function(u,f){u=u||null,f=f||{};var s=f.global!==!1;if(m===null&&s&&(m=b["@@any-promise/REGISTRATION"]||null),m!==null&&u!==null&&m.implementation!==u)throw new Error('any-promise already defined as "'+m.implementation+'". You can only register an implementation before the first call to require("any-promise") and an implementation cannot be changed');return m===null&&(m=u!==null&&f.Promise!==void 0?{Promise:f.Promise,implementation:u}:i(u),s&&(b["@@any-promise/REGISTRATION"]=m)),m}}},{}],15:[function(r,A,y){"use strict";function m(){if(window.Promise===void 0)throw new Error("any-promise browser requires a polyfill or explicit registration e.g: require('any-promise/register/bluebird')");return{Promise:window.Promise,implementation:"window.Promise"}}A.exports=r("./loader")(window,m)},{"./loader":14}],16:[function(r,A,y){A.exports={default:r("core-js/library/fn/array/from"),__esModule:!0}},{"core-js/library/fn/array/from":44}],17:[function(r,A,y){A.exports={default:r("core-js/library/fn/json/stringify"),__esModule:!0}},{"core-js/library/fn/json/stringify":45}],18:[function(r,A,y){A.exports={default:r("core-js/library/fn/object/assign"),__esModule:!0}},{"core-js/library/fn/object/assign":46}],19:[function(r,A,y){A.exports={default:r("core-js/library/fn/object/create"),__esModule:!0}},{"core-js/library/fn/object/create":47}],20:[function(r,A,y){A.exports={default:r("core-js/library/fn/object/define-property"),__esModule:!0}},{"core-js/library/fn/object/define-property":48}],21:[function(r,A,y){A.exports={default:r("core-js/library/fn/object/get-own-property-names"),__esModule:!0}},{"core-js/library/fn/object/get-own-property-names":49}],22:[function(r,A,y){A.exports={default:r("core-js/library/fn/object/get-prototype-of"),__esModule:!0}},{"core-js/library/fn/object/get-prototype-of":50}],23:[function(r,A,y){A.exports={default:r("core-js/library/fn/object/keys"),__esModule:!0}},{"core-js/library/fn/object/keys":51}],24:[function(r,A,y){A.exports={default:r("core-js/library/fn/promise"),__esModule:!0}},{"core-js/library/fn/promise":52}],25:[function(r,A,y){A.exports={default:r("core-js/library/fn/set-immediate"),__esModule:!0}},{"core-js/library/fn/set-immediate":53}],26:[function(r,A,y){A.exports={default:r("core-js/library/fn/string/from-code-point"),__esModule:!0}},{"core-js/library/fn/string/from-code-point":54}],27:[function(r,A,y){A.exports={default:r("core-js/library/fn/symbol"),__esModule:!0}},{"core-js/library/fn/symbol":56}],28:[function(r,A,y){A.exports={default:r("core-js/library/fn/symbol/has-instance"),__esModule:!0}},{"core-js/library/fn/symbol/has-instance":55}],29:[function(r,A,y){A.exports={default:r("core-js/library/fn/symbol/iterator"),__esModule:!0}},{"core-js/library/fn/symbol/iterator":57}],30:[function(r,A,y){"use strict";y.__esModule=!0,y.default=function(m,b){if(!(m instanceof b))throw new TypeError("Cannot call a class as a function")}},{}],31:[function(r,A,y){"use strict";y.__esModule=!0;var m=r("../core-js/object/define-property"),b=function(i){return i&&i.__esModule?i:{default:i}}(m);y.default=function(){function i(u,f){for(var s=0;s<f.length;s++){var t=f[s];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),(0,b.default)(u,t.key,t)}}return function(u,f,s){return f&&i(u.prototype,f),s&&i(u,s),u}}()},{"../core-js/object/define-property":20}],32:[function(r,A,y){"use strict";function m(t){return t&&t.__esModule?t:{default:t}}y.__esModule=!0;var b=r("../core-js/symbol/iterator"),i=m(b),u=r("../core-js/symbol"),f=m(u),s=typeof f.default=="function"&&typeof i.default=="symbol"?function(t){return typeof t}:function(t){return t&&typeof f.default=="function"&&t.constructor===f.default&&t!==f.default.prototype?"symbol":typeof t};y.default=typeof f.default=="function"&&s(i.default)==="symbol"?function(t){return t===void 0?"undefined":s(t)}:function(t){return t&&typeof f.default=="function"&&t.constructor===f.default&&t!==f.default.prototype?"symbol":t===void 0?"undefined":s(t)}},{"../core-js/symbol":27,"../core-js/symbol/iterator":29}],33:[function(r,A,y){A.exports=r("regenerator-runtime")},{"regenerator-runtime":191}],34:[function(r,A,y){"use strict";function m(w){var p=w.length;if(p%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var O=w.indexOf("=");return O===-1&&(O=p),[O,O===p?0:4-O%4]}function b(w){var p=m(w),O=p[0],S=p[1];return 3*(O+S)/4-S}function i(w,p,O){return 3*(p+O)/4-O}function u(w){for(var p,O=m(w),S=O[0],h=O[1],E=new c(i(w,S,h)),L=0,P=h>0?S-4:S,g=0;g<P;g+=4)p=o[w.charCodeAt(g)]<<18|o[w.charCodeAt(g+1)]<<12|o[w.charCodeAt(g+2)]<<6|o[w.charCodeAt(g+3)],E[L++]=p>>16&255,E[L++]=p>>8&255,E[L++]=255&p;return h===2&&(p=o[w.charCodeAt(g)]<<2|o[w.charCodeAt(g+1)]>>4,E[L++]=255&p),h===1&&(p=o[w.charCodeAt(g)]<<10|o[w.charCodeAt(g+1)]<<4|o[w.charCodeAt(g+2)]>>2,E[L++]=p>>8&255,E[L++]=255&p),E}function f(w){return a[w>>18&63]+a[w>>12&63]+a[w>>6&63]+a[63&w]}function s(w,p,O){for(var S,h=[],E=p;E<O;E+=3)S=(w[E]<<16&16711680)+(w[E+1]<<8&65280)+(255&w[E+2]),h.push(f(S));return h.join("")}function t(w){for(var p,O=w.length,S=O%3,h=[],E=0,L=O-S;E<L;E+=16383)h.push(s(w,E,E+16383>L?L:E+16383));return S===1?(p=w[O-1],h.push(a[p>>2]+a[p<<4&63]+"==")):S===2&&(p=(w[O-2]<<8)+w[O-1],h.push(a[p>>10]+a[p>>4&63]+a[p<<2&63]+"=")),h.join("")}y.byteLength=b,y.toByteArray=u,y.fromByteArray=t;for(var a=[],o=[],c=typeof Uint8Array!="undefined"?Uint8Array:Array,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,x=d.length;l<x;++l)a[l]=d[l],o[d.charCodeAt(l)]=l;o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},{}],35:[function(r,A,y){!function(m,b,i){A!==void 0&&A.exports?A.exports=i():typeof Oe=="function"&&Oe.amd?Oe("bowser",i):m.bowser=i()}(this,0,function(){function m(o){function c(W){var D=o.match(W);return D&&D.length>1&&D[1]||""}function d(W){var D=o.match(W);return D&&D.length>1&&D[2]||""}var l,x=c(/(ipod|iphone|ipad)/i).toLowerCase(),w=/like android/i.test(o),p=!w&&/android/i.test(o),O=/nexus\s*[0-6]\s*/i.test(o),S=!O&&/nexus\s*[0-9]+/i.test(o),h=/CrOS/.test(o),E=/silk/i.test(o),L=/sailfish/i.test(o),P=/tizen/i.test(o),g=/(web|hpw)os/i.test(o),F=/windows phone/i.test(o),I=(/SamsungBrowser/i.test(o),!F&&/windows/i.test(o)),X=!x&&!E&&/macintosh/i.test(o),R=!p&&!L&&!P&&!g&&/linux/i.test(o),V=d(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),H=c(/version\/(\d+(\.\d+)?)/i),$=/tablet/i.test(o)&&!/tablet pc/i.test(o),ae=!$&&/[^-]mobi/i.test(o),M=/xbox/i.test(o);/opera/i.test(o)?l={name:"Opera",opera:t,version:H||c(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(o)?l={name:"Opera",opera:t,version:c(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||H}:/SamsungBrowser/i.test(o)?l={name:"Samsung Internet for Android",samsungBrowser:t,version:H||c(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/coast/i.test(o)?l={name:"Opera Coast",coast:t,version:H||c(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/yabrowser/i.test(o)?l={name:"Yandex Browser",yandexbrowser:t,version:H||c(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(o)?l={name:"UC Browser",ucbrowser:t,version:c(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(o)?l={name:"Maxthon",maxthon:t,version:c(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(o)?l={name:"Epiphany",epiphany:t,version:c(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(o)?l={name:"Puffin",puffin:t,version:c(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(o)?l={name:"Sleipnir",sleipnir:t,version:c(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(o)?l={name:"K-Meleon",kMeleon:t,version:c(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:F?(l={name:"Windows Phone",osname:"Windows Phone",windowsphone:t},V?(l.msedge=t,l.version=V):(l.msie=t,l.version=c(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(o)?l={name:"Internet Explorer",msie:t,version:c(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:h?l={name:"Chrome",osname:"Chrome OS",chromeos:t,chromeBook:t,chrome:t,version:c(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(o)?l={name:"Microsoft Edge",msedge:t,version:V}:/vivaldi/i.test(o)?l={name:"Vivaldi",vivaldi:t,version:c(/vivaldi\/(\d+(\.\d+)?)/i)||H}:L?l={name:"Sailfish",osname:"Sailfish OS",sailfish:t,version:c(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(o)?l={name:"SeaMonkey",seamonkey:t,version:c(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(o)?(l={name:"Firefox",firefox:t,version:c(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(o)&&(l.firefoxos=t,l.osname="Firefox OS")):E?l={name:"Amazon Silk",silk:t,version:c(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(o)?l={name:"PhantomJS",phantom:t,version:c(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(o)?l={name:"SlimerJS",slimer:t,version:c(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(o)||/rim\stablet/i.test(o)?l={name:"BlackBerry",osname:"BlackBerry OS",blackberry:t,version:H||c(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:g?(l={name:"WebOS",osname:"WebOS",webos:t,version:H||c(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(o)&&(l.touchpad=t)):/bada/i.test(o)?l={name:"Bada",osname:"Bada",bada:t,version:c(/dolfin\/(\d+(\.\d+)?)/i)}:P?l={name:"Tizen",osname:"Tizen",tizen:t,version:c(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||H}:/qupzilla/i.test(o)?l={name:"QupZilla",qupzilla:t,version:c(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||H}:/chromium/i.test(o)?l={name:"Chromium",chromium:t,version:c(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||H}:/chrome|crios|crmo/i.test(o)?l={name:"Chrome",chrome:t,version:c(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:p?l={name:"Android",version:H}:/safari|applewebkit/i.test(o)?(l={name:"Safari",safari:t},H&&(l.version=H)):x?(l={name:x=="iphone"?"iPhone":x=="ipad"?"iPad":"iPod"},H&&(l.version=H)):l=/googlebot/i.test(o)?{name:"Googlebot",googlebot:t,version:c(/googlebot\/(\d+(\.\d+))/i)||H}:{name:c(/^(.*)\/(.*) /),version:d(/^(.*)\/(.*) /)},!l.msedge&&/(apple)?webkit/i.test(o)?(/(apple)?webkit\/537\.36/i.test(o)?(l.name=l.name||"Blink",l.blink=t):(l.name=l.name||"Webkit",l.webkit=t),!l.version&&H&&(l.version=H)):!l.opera&&/gecko\//i.test(o)&&(l.name=l.name||"Gecko",l.gecko=t,l.version=l.version||c(/gecko\/(\d+(\.\d+)?)/i)),l.windowsphone||!p&&!l.silk?!l.windowsphone&&x?(l[x]=t,l.ios=t,l.osname="iOS"):X?(l.mac=t,l.osname="macOS"):M?(l.xbox=t,l.osname="Xbox"):I?(l.windows=t,l.osname="Windows"):R&&(l.linux=t,l.osname="Linux"):(l.android=t,l.osname="Android");var Q="";l.windows?Q=function(W){switch(W){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}}(c(/Windows ((NT|XP)( \d\d?.\d)?)/i)):l.windowsphone?Q=c(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):l.mac?(Q=c(/Mac OS X (\d+([_\.\s]\d+)*)/i),Q=Q.replace(/[_\s]/g,".")):x?(Q=c(/os (\d+([_\s]\d+)*) like mac os x/i),Q=Q.replace(/[_\s]/g,".")):p?Q=c(/android[ \/-](\d+(\.\d+)*)/i):l.webos?Q=c(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):l.blackberry?Q=c(/rim\stablet\sos\s(\d+(\.\d+)*)/i):l.bada?Q=c(/bada\/(\d+(\.\d+)*)/i):l.tizen&&(Q=c(/tizen[\/\s](\d+(\.\d+)*)/i)),Q&&(l.osversion=Q);var Y=!l.windows&&Q.split(".")[0];return $||S||x=="ipad"||p&&(Y==3||Y>=4&&!ae)||l.silk?l.tablet=t:(ae||x=="iphone"||x=="ipod"||p||O||l.blackberry||l.webos||l.bada)&&(l.mobile=t),l.msedge||l.msie&&l.version>=10||l.yandexbrowser&&l.version>=15||l.vivaldi&&l.version>=1||l.chrome&&l.version>=20||l.samsungBrowser&&l.version>=4||l.firefox&&l.version>=20||l.safari&&l.version>=6||l.opera&&l.version>=10||l.ios&&l.osversion&&l.osversion.split(".")[0]>=6||l.blackberry&&l.version>=10.1||l.chromium&&l.version>=20?l.a=t:l.msie&&l.version<10||l.chrome&&l.version<20||l.firefox&&l.version<20||l.safari&&l.version<6||l.opera&&l.version<10||l.ios&&l.osversion&&l.osversion.split(".")[0]<6||l.chromium&&l.version<20?l.c=t:l.x=t,l}function b(o){return o.split(".").length}function i(o,c){var d,l=[];if(Array.prototype.map)return Array.prototype.map.call(o,c);for(d=0;d<o.length;d++)l.push(c(o[d]));return l}function u(o){for(var c=Math.max(b(o[0]),b(o[1])),d=i(o,function(l){var x=c-b(l);return l+=new Array(x+1).join(".0"),i(l.split("."),function(w){return new Array(20-w.length).join("0")+w}).reverse()});--c>=0;){if(d[0][c]>d[1][c])return 1;if(d[0][c]!==d[1][c])return-1;if(c===0)return 0}}function f(o,c,d){var l=a;typeof c=="string"&&(d=c,c=void 0),c===void 0&&(c=!1),d&&(l=m(d));var x=""+l.version;for(var w in o)if(o.hasOwnProperty(w)&&l[w]){if(typeof o[w]!="string")throw new Error("Browser version in the minVersion map should be a string: "+w+": "+String(o));return u([x,o[w]])<0}return c}function s(o,c,d){return!f(o,c,d)}var t=!0,a=m(typeof navigator!="undefined"&&navigator.userAgent||"");return a.test=function(o){for(var c=0;c<o.length;++c){var d=o[c];if(typeof d=="string"&&d in a)return!0}return!1},a.isUnsupportedBrowser=f,a.compareVersions=u,a.check=s,a._detect=m,a.detect=m,a})},{}],36:[function(r,A,y){},{}],37:[function(r,A,y){function m(a){if(a&&!s(a))throw new Error("Unknown encoding: "+a)}function b(a){return a.toString(this.encoding)}function i(a){this.charReceived=a.length%2,this.charLength=this.charReceived?2:0}function u(a){this.charReceived=a.length%3,this.charLength=this.charReceived?3:0}var f=r("buffer").Buffer,s=f.isEncoding||function(a){switch(a&&a.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}},t=y.StringDecoder=function(a){switch(this.encoding=(a||"utf8").toLowerCase().replace(/[-_]/,""),m(a),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=i;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=u;break;default:return void(this.write=b)}this.charBuffer=new f(6),this.charReceived=0,this.charLength=0};t.prototype.write=function(a){for(var o="";this.charLength;){var c=a.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:a.length;if(a.copy(this.charBuffer,this.charReceived,0,c),this.charReceived+=c,this.charReceived<this.charLength)return"";a=a.slice(c,a.length),o=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var l=o.charCodeAt(o.length-1);if(!(l>=55296&&l<=56319)){if(this.charReceived=this.charLength=0,a.length===0)return o;break}this.charLength+=this.surrogateSize,o=""}this.detectIncompleteChar(a);var d=a.length;this.charLength&&(a.copy(this.charBuffer,0,a.length-this.charReceived,d),d-=this.charReceived),o+=a.toString(this.encoding,0,d);var d=o.length-1,l=o.charCodeAt(d);if(l>=55296&&l<=56319){var x=this.surrogateSize;return this.charLength+=x,this.charReceived+=x,this.charBuffer.copy(this.charBuffer,x,0,x),a.copy(this.charBuffer,0,0,x),o.substring(0,d)}return o},t.prototype.detectIncompleteChar=function(a){for(var o=a.length>=3?3:a.length;o>0;o--){var c=a[a.length-o];if(o==1&&c>>5==6){this.charLength=2;break}if(o<=2&&c>>4==14){this.charLength=3;break}if(o<=3&&c>>3==30){this.charLength=4;break}}this.charReceived=o},t.prototype.end=function(a){var o="";if(a&&a.length&&(o=this.write(a)),this.charReceived){var c=this.charReceived,d=this.charBuffer,l=this.encoding;o+=d.slice(0,c).toString(l)}return o}},{buffer:38}],38:[function(r,A,y){(function(m){"use strict";function b(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function i(e,n){if(b()<n)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(n),e.__proto__=u.prototype):(e===null&&(e=new u(n)),e.length=n),e}function u(e,n,T){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(e,n,T);if(typeof e=="number"){if(typeof n=="string")throw new Error("If encoding is specified then the first argument must be a string");return a(this,e)}return f(this,e,n,T)}function f(e,n,T,v){if(typeof n=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&n instanceof ArrayBuffer?d(e,n,T,v):typeof n=="string"?o(e,n,T):l(e,n)}function s(e){if(typeof e!="number")throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function t(e,n,T,v){return s(n),n<=0?i(e,n):T!==void 0?typeof v=="string"?i(e,n).fill(T,v):i(e,n).fill(T):i(e,n)}function a(e,n){if(s(n),e=i(e,n<0?0:0|x(n)),!u.TYPED_ARRAY_SUPPORT)for(var T=0;T<n;++T)e[T]=0;return e}function o(e,n,T){if(typeof T=="string"&&T!==""||(T="utf8"),!u.isEncoding(T))throw new TypeError('"encoding" must be a valid string encoding');var v=0|p(n,T);e=i(e,v);var _=e.write(n,T);return _!==v&&(e=e.slice(0,_)),e}function c(e,n){var T=n.length<0?0:0|x(n.length);e=i(e,T);for(var v=0;v<T;v+=1)e[v]=255&n[v];return e}function d(e,n,T,v){if(n.byteLength,T<0||n.byteLength<T)throw new RangeError("'offset' is out of bounds");if(n.byteLength<T+(v||0))throw new RangeError("'length' is out of bounds");return n=T===void 0&&v===void 0?new Uint8Array(n):v===void 0?new Uint8Array(n,T):new Uint8Array(n,T,v),u.TYPED_ARRAY_SUPPORT?(e=n,e.__proto__=u.prototype):e=c(e,n),e}function l(e,n){if(u.isBuffer(n)){var T=0|x(n.length);return e=i(e,T),e.length===0||n.copy(e,0,0,T),e}if(n){if(typeof ArrayBuffer!="undefined"&&n.buffer instanceof ArrayBuffer||"length"in n)return typeof n.length!="number"||K(n.length)?i(e,0):c(e,n);if(n.type==="Buffer"&&ue(n.data))return c(e,n.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function x(e){if(e>=b())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+b().toString(16)+" bytes");return 0|e}function w(e){return+e!=e&&(e=0),u.alloc(+e)}function p(e,n){if(u.isBuffer(e))return e.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;typeof e!="string"&&(e=""+e);var T=e.length;if(T===0)return 0;for(var v=!1;;)switch(n){case"ascii":case"latin1":case"binary":return T;case"utf8":case"utf-8":case void 0:return me(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*T;case"hex":return T>>>1;case"base64":return oe(e).length;default:if(v)return me(e).length;n=(""+n).toLowerCase(),v=!0}}function O(e,n,T){var v=!1;if((n===void 0||n<0)&&(n=0),n>this.length)return"";if((T===void 0||T>this.length)&&(T=this.length),T<=0)return"";if(T>>>=0,n>>>=0,T<=n)return"";for(e||(e="utf8");;)switch(e){case"hex":return M(this,n,T);case"utf8":case"utf-8":return V(this,n,T);case"ascii":return $(this,n,T);case"latin1":case"binary":return ae(this,n,T);case"base64":return R(this,n,T);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Q(this,n,T);default:if(v)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),v=!0}}function S(e,n,T){var v=e[n];e[n]=e[T],e[T]=v}function h(e,n,T,v,_){if(e.length===0)return-1;if(typeof T=="string"?(v=T,T=0):T>2147483647?T=2147483647:T<-2147483648&&(T=-2147483648),T=+T,isNaN(T)&&(T=_?0:e.length-1),T<0&&(T=e.length+T),T>=e.length){if(_)return-1;T=e.length-1}else if(T<0){if(!_)return-1;T=0}if(typeof n=="string"&&(n=u.from(n,v)),u.isBuffer(n))return n.length===0?-1:E(e,n,T,v,_);if(typeof n=="number")return n&=255,u.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?_?Uint8Array.prototype.indexOf.call(e,n,T):Uint8Array.prototype.lastIndexOf.call(e,n,T):E(e,[n],T,v,_);throw new TypeError("val must be string, number or Buffer")}function E(e,n,T,v,_){function B(_e,he){return Z===1?_e[he]:_e.readUInt16BE(he*Z)}var Z=1,Ee=e.length,ye=n.length;if(v!==void 0&&((v=String(v).toLowerCase())==="ucs2"||v==="ucs-2"||v==="utf16le"||v==="utf-16le")){if(e.length<2||n.length<2)return-1;Z=2,Ee/=2,ye/=2,T/=2}var Ae;if(_){var Le=-1;for(Ae=T;Ae<Ee;Ae++)if(B(e,Ae)===B(n,Le===-1?0:Ae-Le)){if(Le===-1&&(Le=Ae),Ae-Le+1===ye)return Le*Z}else Le!==-1&&(Ae-=Ae-Le),Le=-1}else for(T+ye>Ee&&(T=Ee-ye),Ae=T;Ae>=0;Ae--){for(var Fe=!0,et=0;et<ye;et++)if(B(e,Ae+et)!==B(n,et)){Fe=!1;break}if(Fe)return Ae}return-1}function L(e,n,T,v){T=Number(T)||0;var _=e.length-T;v?(v=Number(v))>_&&(v=_):v=_;var B=n.length;if(B%2!=0)throw new TypeError("Invalid hex string");v>B/2&&(v=B/2);for(var Z=0;Z<v;++Z){var Ee=parseInt(n.substr(2*Z,2),16);if(isNaN(Ee))return Z;e[T+Z]=Ee}return Z}function P(e,n,T,v){return le(me(n,e.length-T),e,T,v)}function g(e,n,T,v){return le(ve(n),e,T,v)}function F(e,n,T,v){return g(e,n,T,v)}function I(e,n,T,v){return le(oe(n),e,T,v)}function X(e,n,T,v){return le(ie(n,e.length-T),e,T,v)}function R(e,n,T){return n===0&&T===e.length?q.fromByteArray(e):q.fromByteArray(e.slice(n,T))}function V(e,n,T){T=Math.min(e.length,T);for(var v=[],_=n;_<T;){var B=e[_],Z=null,Ee=B>239?4:B>223?3:B>191?2:1;if(_+Ee<=T){var ye,Ae,Le,Fe;switch(Ee){case 1:B<128&&(Z=B);break;case 2:ye=e[_+1],(192&ye)==128&&(Fe=(31&B)<<6|63&ye)>127&&(Z=Fe);break;case 3:ye=e[_+1],Ae=e[_+2],(192&ye)==128&&(192&Ae)==128&&(Fe=(15&B)<<12|(63&ye)<<6|63&Ae)>2047&&(Fe<55296||Fe>57343)&&(Z=Fe);break;case 4:ye=e[_+1],Ae=e[_+2],Le=e[_+3],(192&ye)==128&&(192&Ae)==128&&(192&Le)==128&&(Fe=(15&B)<<18|(63&ye)<<12|(63&Ae)<<6|63&Le)>65535&&Fe<1114112&&(Z=Fe)}}Z===null?(Z=65533,Ee=1):Z>65535&&(Z-=65536,v.push(Z>>>10&1023|55296),Z=56320|1023&Z),v.push(Z),_+=Ee}return H(v)}function H(e){var n=e.length;if(n<=we)return String.fromCharCode.apply(String,e);for(var T="",v=0;v<n;)T+=String.fromCharCode.apply(String,e.slice(v,v+=we));return T}function $(e,n,T){var v="";T=Math.min(e.length,T);for(var _=n;_<T;++_)v+=String.fromCharCode(127&e[_]);return v}function ae(e,n,T){var v="";T=Math.min(e.length,T);for(var _=n;_<T;++_)v+=String.fromCharCode(e[_]);return v}function M(e,n,T){var v=e.length;(!n||n<0)&&(n=0),(!T||T<0||T>v)&&(T=v);for(var _="",B=n;B<T;++B)_+=se(e[B]);return _}function Q(e,n,T){for(var v=e.slice(n,T),_="",B=0;B<v.length;B+=2)_+=String.fromCharCode(v[B]+256*v[B+1]);return _}function Y(e,n,T){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+n>T)throw new RangeError("Trying to access beyond buffer length")}function W(e,n,T,v,_,B){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>_||n<B)throw new RangeError('"value" argument is out of bounds');if(T+v>e.length)throw new RangeError("Index out of range")}function D(e,n,T,v){n<0&&(n=65535+n+1);for(var _=0,B=Math.min(e.length-T,2);_<B;++_)e[T+_]=(n&255<<8*(v?_:1-_))>>>8*(v?_:1-_)}function C(e,n,T,v){n<0&&(n=4294967295+n+1);for(var _=0,B=Math.min(e.length-T,4);_<B;++_)e[T+_]=n>>>8*(v?_:3-_)&255}function U(e,n,T,v,_,B){if(T+v>e.length)throw new RangeError("Index out of range");if(T<0)throw new RangeError("Index out of range")}function G(e,n,T,v,_){return _||U(e,n,T,4,34028234663852886e22,-34028234663852886e22),ce.write(e,n,T,v,23,4),T+4}function J(e,n,T,v,_){return _||U(e,n,T,8,17976931348623157e292,-17976931348623157e292),ce.write(e,n,T,v,52,8),T+8}function ne(e){if(e=fe(e).replace(k,""),e.length<2)return"";for(;e.length%4!=0;)e+="=";return e}function fe(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function se(e){return e<16?"0"+e.toString(16):e.toString(16)}function me(e,n){n=n||1/0;for(var T,v=e.length,_=null,B=[],Z=0;Z<v;++Z){if((T=e.charCodeAt(Z))>55295&&T<57344){if(!_){if(T>56319){(n-=3)>-1&&B.push(239,191,189);continue}if(Z+1===v){(n-=3)>-1&&B.push(239,191,189);continue}_=T;continue}if(T<56320){(n-=3)>-1&&B.push(239,191,189),_=T;continue}T=65536+(_-55296<<10|T-56320)}else _&&(n-=3)>-1&&B.push(239,191,189);if(_=null,T<128){if((n-=1)<0)break;B.push(T)}else if(T<2048){if((n-=2)<0)break;B.push(T>>6|192,63&T|128)}else if(T<65536){if((n-=3)<0)break;B.push(T>>12|224,T>>6&63|128,63&T|128)}else{if(!(T<1114112))throw new Error("Invalid code point");if((n-=4)<0)break;B.push(T>>18|240,T>>12&63|128,T>>6&63|128,63&T|128)}}return B}function ve(e){for(var n=[],T=0;T<e.length;++T)n.push(255&e.charCodeAt(T));return n}function ie(e,n){for(var T,v,_,B=[],Z=0;Z<e.length&&!((n-=2)<0);++Z)T=e.charCodeAt(Z),v=T>>8,_=T%256,B.push(_),B.push(v);return B}function oe(e){return q.toByteArray(ne(e))}function le(e,n,T,v){for(var _=0;_<v&&!(_+T>=n.length||_>=e.length);++_)n[_+T]=e[_];return _}function K(e){return e!==e}var q=r("base64-js"),ce=r("ieee754"),ue=r("isarray");y.Buffer=u,y.SlowBuffer=w,y.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=m.TYPED_ARRAY_SUPPORT!==void 0?m.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},e.foo()===42&&typeof e.subarray=="function"&&e.subarray(1,1).byteLength===0}catch(n){return!1}}(),y.kMaxLength=b(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,n,T){return f(null,e,n,T)},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(e,n,T){return t(null,e,n,T)},u.allocUnsafe=function(e){return a(null,e)},u.allocUnsafeSlow=function(e){return a(null,e)},u.isBuffer=function(e){return!(e==null||!e._isBuffer)},u.compare=function(e,n){if(!u.isBuffer(e)||!u.isBuffer(n))throw new TypeError("Arguments must be Buffers");if(e===n)return 0;for(var T=e.length,v=n.length,_=0,B=Math.min(T,v);_<B;++_)if(e[_]!==n[_]){T=e[_],v=n[_];break}return T<v?-1:v<T?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,n){if(!ue(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return u.alloc(0);var T;if(n===void 0)for(n=0,T=0;T<e.length;++T)n+=e[T].length;var v=u.allocUnsafe(n),_=0;for(T=0;T<e.length;++T){var B=e[T];if(!u.isBuffer(B))throw new TypeError('"list" argument must be an Array of Buffers');B.copy(v,_),_+=B.length}return v},u.byteLength=p,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var n=0;n<e;n+=2)S(this,n,n+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var n=0;n<e;n+=4)S(this,n,n+3),S(this,n+1,n+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var n=0;n<e;n+=8)S(this,n,n+7),S(this,n+1,n+6),S(this,n+2,n+5),S(this,n+3,n+4);return this},u.prototype.toString=function(){var e=0|this.length;return e===0?"":arguments.length===0?V(this,0,e):O.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||u.compare(this,e)===0},u.prototype.inspect=function(){var e="",n=y.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},u.prototype.compare=function(e,n,T,v,_){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(n===void 0&&(n=0),T===void 0&&(T=e?e.length:0),v===void 0&&(v=0),_===void 0&&(_=this.length),n<0||T>e.length||v<0||_>this.length)throw new RangeError("out of range index");if(v>=_&&n>=T)return 0;if(v>=_)return-1;if(n>=T)return 1;if(n>>>=0,T>>>=0,v>>>=0,_>>>=0,this===e)return 0;for(var B=_-v,Z=T-n,Ee=Math.min(B,Z),ye=this.slice(v,_),Ae=e.slice(n,T),Le=0;Le<Ee;++Le)if(ye[Le]!==Ae[Le]){B=ye[Le],Z=Ae[Le];break}return B<Z?-1:Z<B?1:0},u.prototype.includes=function(e,n,T){return this.indexOf(e,n,T)!==-1},u.prototype.indexOf=function(e,n,T){return h(this,e,n,T,!0)},u.prototype.lastIndexOf=function(e,n,T){return h(this,e,n,T,!1)},u.prototype.write=function(e,n,T,v){if(n===void 0)v="utf8",T=this.length,n=0;else if(T===void 0&&typeof n=="string")v=n,T=this.length,n=0;else{if(!isFinite(n))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");n|=0,isFinite(T)?(T|=0,v===void 0&&(v="utf8")):(v=T,T=void 0)}var _=this.length-n;if((T===void 0||T>_)&&(T=_),e.length>0&&(T<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");v||(v="utf8");for(var B=!1;;)switch(v){case"hex":return L(this,e,n,T);case"utf8":case"utf-8":return P(this,e,n,T);case"ascii":return g(this,e,n,T);case"latin1":case"binary":return F(this,e,n,T);case"base64":return I(this,e,n,T);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return X(this,e,n,T);default:if(B)throw new TypeError("Unknown encoding: "+v);v=(""+v).toLowerCase(),B=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var we=4096;u.prototype.slice=function(e,n){var T=this.length;e=~~e,n=n===void 0?T:~~n,e<0?(e+=T)<0&&(e=0):e>T&&(e=T),n<0?(n+=T)<0&&(n=0):n>T&&(n=T),n<e&&(n=e);var v;if(u.TYPED_ARRAY_SUPPORT)v=this.subarray(e,n),v.__proto__=u.prototype;else{var _=n-e;v=new u(_,void 0);for(var B=0;B<_;++B)v[B]=this[B+e]}return v},u.prototype.readUIntLE=function(e,n,T){e|=0,n|=0,T||Y(e,n,this.length);for(var v=this[e],_=1,B=0;++B<n&&(_*=256);)v+=this[e+B]*_;return v},u.prototype.readUIntBE=function(e,n,T){e|=0,n|=0,T||Y(e,n,this.length);for(var v=this[e+--n],_=1;n>0&&(_*=256);)v+=this[e+--n]*_;return v},u.prototype.readUInt8=function(e,n){return n||Y(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,n){return n||Y(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,n){return n||Y(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,n){return n||Y(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,n){return n||Y(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,n,T){e|=0,n|=0,T||Y(e,n,this.length);for(var v=this[e],_=1,B=0;++B<n&&(_*=256);)v+=this[e+B]*_;return _*=128,v>=_&&(v-=Math.pow(2,8*n)),v},u.prototype.readIntBE=function(e,n,T){e|=0,n|=0,T||Y(e,n,this.length);for(var v=n,_=1,B=this[e+--v];v>0&&(_*=256);)B+=this[e+--v]*_;return _*=128,B>=_&&(B-=Math.pow(2,8*n)),B},u.prototype.readInt8=function(e,n){return n||Y(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,n){n||Y(e,2,this.length);var T=this[e]|this[e+1]<<8;return 32768&T?4294901760|T:T},u.prototype.readInt16BE=function(e,n){n||Y(e,2,this.length);var T=this[e+1]|this[e]<<8;return 32768&T?4294901760|T:T},u.prototype.readInt32LE=function(e,n){return n||Y(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,n){return n||Y(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,n){return n||Y(e,4,this.length),ce.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,n){return n||Y(e,4,this.length),ce.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,n){return n||Y(e,8,this.length),ce.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,n){return n||Y(e,8,this.length),ce.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,n,T,v){(e=+e,n|=0,T|=0,!v)&&W(this,e,n,T,Math.pow(2,8*T)-1,0);var _=1,B=0;for(this[n]=255&e;++B<T&&(_*=256);)this[n+B]=e/_&255;return n+T},u.prototype.writeUIntBE=function(e,n,T,v){(e=+e,n|=0,T|=0,!v)&&W(this,e,n,T,Math.pow(2,8*T)-1,0);var _=T-1,B=1;for(this[n+_]=255&e;--_>=0&&(B*=256);)this[n+_]=e/B&255;return n+T},u.prototype.writeUInt8=function(e,n,T){return e=+e,n|=0,T||W(this,e,n,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[n]=255&e,n+1},u.prototype.writeUInt16LE=function(e,n,T){return e=+e,n|=0,T||W(this,e,n,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[n]=255&e,this[n+1]=e>>>8):D(this,e,n,!0),n+2},u.prototype.writeUInt16BE=function(e,n,T){return e=+e,n|=0,T||W(this,e,n,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[n]=e>>>8,this[n+1]=255&e):D(this,e,n,!1),n+2},u.prototype.writeUInt32LE=function(e,n,T){return e=+e,n|=0,T||W(this,e,n,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[n+3]=e>>>24,this[n+2]=e>>>16,this[n+1]=e>>>8,this[n]=255&e):C(this,e,n,!0),n+4},u.prototype.writeUInt32BE=function(e,n,T){return e=+e,n|=0,T||W(this,e,n,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=255&e):C(this,e,n,!1),n+4},u.prototype.writeIntLE=function(e,n,T,v){if(e=+e,n|=0,!v){var _=Math.pow(2,8*T-1);W(this,e,n,T,_-1,-_)}var B=0,Z=1,Ee=0;for(this[n]=255&e;++B<T&&(Z*=256);)e<0&&Ee===0&&this[n+B-1]!==0&&(Ee=1),this[n+B]=(e/Z>>0)-Ee&255;return n+T},u.prototype.writeIntBE=function(e,n,T,v){if(e=+e,n|=0,!v){var _=Math.pow(2,8*T-1);W(this,e,n,T,_-1,-_)}var B=T-1,Z=1,Ee=0;for(this[n+B]=255&e;--B>=0&&(Z*=256);)e<0&&Ee===0&&this[n+B+1]!==0&&(Ee=1),this[n+B]=(e/Z>>0)-Ee&255;return n+T},u.prototype.writeInt8=function(e,n,T){return e=+e,n|=0,T||W(this,e,n,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[n]=255&e,n+1},u.prototype.writeInt16LE=function(e,n,T){return e=+e,n|=0,T||W(this,e,n,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[n]=255&e,this[n+1]=e>>>8):D(this,e,n,!0),n+2},u.prototype.writeInt16BE=function(e,n,T){return e=+e,n|=0,T||W(this,e,n,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[n]=e>>>8,this[n+1]=255&e):D(this,e,n,!1),n+2},u.prototype.writeInt32LE=function(e,n,T){return e=+e,n|=0,T||W(this,e,n,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[n]=255&e,this[n+1]=e>>>8,this[n+2]=e>>>16,this[n+3]=e>>>24):C(this,e,n,!0),n+4},u.prototype.writeInt32BE=function(e,n,T){return e=+e,n|=0,T||W(this,e,n,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=255&e):C(this,e,n,!1),n+4},u.prototype.writeFloatLE=function(e,n,T){return G(this,e,n,!0,T)},u.prototype.writeFloatBE=function(e,n,T){return G(this,e,n,!1,T)},u.prototype.writeDoubleLE=function(e,n,T){return J(this,e,n,!0,T)},u.prototype.writeDoubleBE=function(e,n,T){return J(this,e,n,!1,T)},u.prototype.copy=function(e,n,T,v){if(T||(T=0),v||v===0||(v=this.length),n>=e.length&&(n=e.length),n||(n=0),v>0&&v<T&&(v=T),v===T)return 0;if(e.length===0||this.length===0)return 0;if(n<0)throw new RangeError("targetStart out of bounds");if(T<0||T>=this.length)throw new RangeError("sourceStart out of bounds");if(v<0)throw new RangeError("sourceEnd out of bounds");v>this.length&&(v=this.length),e.length-n<v-T&&(v=e.length-n+T);var _,B=v-T;if(this===e&&T<n&&n<v)for(_=B-1;_>=0;--_)e[_+n]=this[_+T];else if(B<1e3||!u.TYPED_ARRAY_SUPPORT)for(_=0;_<B;++_)e[_+n]=this[_+T];else Uint8Array.prototype.set.call(e,this.subarray(T,T+B),n);return B},u.prototype.fill=function(e,n,T,v){if(typeof e=="string"){if(typeof n=="string"?(v=n,n=0,T=this.length):typeof T=="string"&&(v=T,T=this.length),e.length===1){var _=e.charCodeAt(0);_<256&&(e=_)}if(v!==void 0&&typeof v!="string")throw new TypeError("encoding must be a string");if(typeof v=="string"&&!u.isEncoding(v))throw new TypeError("Unknown encoding: "+v)}else typeof e=="number"&&(e&=255);if(n<0||this.length<n||this.length<T)throw new RangeError("Out of range index");if(T<=n)return this;n>>>=0,T=T===void 0?this.length:T>>>0,e||(e=0);var B;if(typeof e=="number")for(B=n;B<T;++B)this[B]=e;else{var Z=u.isBuffer(e)?e:me(new u(e,v).toString()),Ee=Z.length;for(B=0;B<T-n;++B)this[B+n]=Z[B%Ee]}return this};var k=/[^+\/0-9A-Za-z-_]/g}).call(this,typeof Ye!="undefined"?Ye:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"base64-js":34,ieee754:161,isarray:166}],39:[function(r,A,y){A.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],40:[function(r,A,y){"use strict";var m=function(){this.buffer=[],this.fns=[]};m.prototype.push=function(i,u){if(this.fns.length)return this.fns.shift()(null,i);var f={data:i,priority:u},s=b(this.buffer,f,function(t){return t.priority});this.buffer.splice(s,0,f)},m.prototype.next=function(){var i=this;return function(u){if(i.buffer.length)return u(null,i.buffer.pop().data);i.fns.push(u)}};var b=function(u,f,s){f=s(f);for(var t=0,a=u?u.length:t;t<a;){var o=t+a>>>1;s(u[o])<f?t=o+1:a=o}return t};A.exports=m},{}],41:[function(r,A,y){function m(d){var l=this,x=c.call(arguments,1);return new Promise(function(w,p){function O(E){var L;try{L=d.next(E)}catch(P){return p(P)}h(L)}function S(E){var L;try{L=d.throw(E)}catch(P){return p(P)}h(L)}function h(E){if(E.done)return w(E.value);var L=b.call(l,E.value);return L&&s(L)?L.then(O,S):S(new TypeError('You may only yield a function, promise, generator, array, or object, but the following object was passed: "'+String(E.value)+'"'))}if(typeof d=="function"&&(d=d.apply(l,x)),!d||typeof d.next!="function")return w(d);O()})}function b(d){return d&&(s(d)?d:a(d)||t(d)?m.call(this,d):typeof d=="function"?i.call(this,d):Array.isArray(d)?u.call(this,d):o(d)?f.call(this,d):d)}function i(d){var l=this;return new Promise(function(x,w){d.call(l,function(p,O){if(p)return w(p);arguments.length>2&&(O=c.call(arguments,1)),x(O)})})}function u(d){return Promise.all(d.map(b,this))}function f(d){for(var l=new d.constructor,x=Object.keys(d),w=[],p=0;p<x.length;p++){var O=x[p],S=b.call(this,d[O]);S&&s(S)?function(h,E){l[E]=void 0,w.push(h.then(function(L){l[E]=L}))}(S,O):l[O]=d[O]}return Promise.all(w).then(function(){return l})}function s(d){return typeof d.then=="function"}function t(d){return typeof d.next=="function"&&typeof d.throw=="function"}function a(d){var l=d.constructor;return!!l&&(l.name==="GeneratorFunction"||l.displayName==="GeneratorFunction"||t(l.prototype))}function o(d){return Object==d.constructor}var c=Array.prototype.slice;A.exports=m.default=m.co=m,m.wrap=function(d){function l(){return m.call(this,d.apply(this,arguments))}return l.__generatorFunction__=d,l}},{}],42:[function(r,A,y){A.exports={O_RDONLY:0,O_WRONLY:1,O_RDWR:2,S_IFMT:61440,S_IFREG:32768,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960,S_IFSOCK:49152,O_CREAT:512,O_EXCL:2048,O_NOCTTY:131072,O_TRUNC:1024,O_APPEND:8,O_DIRECTORY:1048576,O_NOFOLLOW:256,O_SYNC:128,O_SYMLINK:2097152,O_NONBLOCK:4,S_IRWXU:448,S_IRUSR:256,S_IWUSR:128,S_IXUSR:64,S_IRWXG:56,S_IRGRP:32,S_IWGRP:16,S_IXGRP:8,S_IRWXO:7,S_IROTH:4,S_IWOTH:2,S_IXOTH:1,E2BIG:7,EACCES:13,EADDRINUSE:48,EADDRNOTAVAIL:49,EAFNOSUPPORT:47,EAGAIN:35,EALREADY:37,EBADF:9,EBADMSG:94,EBUSY:16,ECANCELED:89,ECHILD:10,ECONNABORTED:53,ECONNREFUSED:61,ECONNRESET:54,EDEADLK:11,EDESTADDRREQ:39,EDOM:33,EDQUOT:69,EEXIST:17,EFAULT:14,EFBIG:27,EHOSTUNREACH:65,EIDRM:90,EILSEQ:92,EINPROGRESS:36,EINTR:4,EINVAL:22,EIO:5,EISCONN:56,EISDIR:21,ELOOP:62,EMFILE:24,EMLINK:31,EMSGSIZE:40,EMULTIHOP:95,ENAMETOOLONG:63,ENETDOWN:50,ENETRESET:52,ENETUNREACH:51,ENFILE:23,ENOBUFS:55,ENODATA:96,ENODEV:19,ENOENT:2,ENOEXEC:8,ENOLCK:77,ENOLINK:97,ENOMEM:12,ENOMSG:91,ENOPROTOOPT:42,ENOSPC:28,ENOSR:98,ENOSTR:99,ENOSYS:78,ENOTCONN:57,ENOTDIR:20,ENOTEMPTY:66,ENOTSOCK:38,ENOTSUP:45,ENOTTY:25,ENXIO:6,EOPNOTSUPP:102,EOVERFLOW:84,EPERM:1,EPIPE:32,EPROTO:100,EPROTONOSUPPORT:43,EPROTOTYPE:41,ERANGE:34,EROFS:30,ESPIPE:29,ESRCH:3,ESTALE:70,ETIME:101,ETIMEDOUT:60,ETXTBSY:26,EWOULDBLOCK:35,EXDEV:18,SIGHUP:1,SIGINT:2,SIGQUIT:3,SIGILL:4,SIGTRAP:5,SIGABRT:6,SIGIOT:6,SIGBUS:10,SIGFPE:8,SIGKILL:9,SIGUSR1:30,SIGSEGV:11,SIGUSR2:31,SIGPIPE:13,SIGALRM:14,SIGTERM:15,SIGCHLD:20,SIGCONT:19,SIGSTOP:17,SIGTSTP:18,SIGTTIN:21,SIGTTOU:22,SIGURG:16,SIGXCPU:24,SIGXFSZ:25,SIGVTALRM:26,SIGPROF:27,SIGWINCH:28,SIGIO:23,SIGSYS:12,SSL_OP_ALL:2147486719,SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION:262144,SSL_OP_CIPHER_SERVER_PREFERENCE:4194304,SSL_OP_CISCO_ANYCONNECT:32768,SSL_OP_COOKIE_EXCHANGE:8192,SSL_OP_CRYPTOPRO_TLSEXT_BUG:2147483648,SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS:2048,SSL_OP_EPHEMERAL_RSA:0,SSL_OP_LEGACY_SERVER_CONNECT:4,SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER:32,SSL_OP_MICROSOFT_SESS_ID_BUG:1,SSL_OP_MSIE_SSLV2_RSA_PADDING:0,SSL_OP_NETSCAPE_CA_DN_BUG:536870912,SSL_OP_NETSCAPE_CHALLENGE_BUG:2,SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG:1073741824,SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG:8,SSL_OP_NO_COMPRESSION:131072,SSL_OP_NO_QUERY_MTU:4096,SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION:65536,SSL_OP_NO_SSLv2:16777216,SSL_OP_NO_SSLv3:33554432,SSL_OP_NO_TICKET:16384,SSL_OP_NO_TLSv1:67108864,SSL_OP_NO_TLSv1_1:268435456,SSL_OP_NO_TLSv1_2:134217728,SSL_OP_PKCS1_CHECK_1:0,SSL_OP_PKCS1_CHECK_2:0,SSL_OP_SINGLE_DH_USE:1048576,SSL_OP_SINGLE_ECDH_USE:524288,SSL_OP_SSLEAY_080_CLIENT_DH_BUG:128,SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG:0,SSL_OP_TLS_BLOCK_PADDING_BUG:512,SSL_OP_TLS_D5_BUG:256,SSL_OP_TLS_ROLLBACK_BUG:8388608,ENGINE_METHOD_DSA:2,ENGINE_METHOD_DH:4,ENGINE_METHOD_RAND:8,ENGINE_METHOD_ECDH:16,ENGINE_METHOD_ECDSA:32,ENGINE_METHOD_CIPHERS:64,ENGINE_METHOD_DIGESTS:128,ENGINE_METHOD_STORE:256,ENGINE_METHOD_PKEY_METHS:512,ENGINE_METHOD_PKEY_ASN1_METHS:1024,ENGINE_METHOD_ALL:65535,ENGINE_METHOD_NONE:0,DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6,F_OK:0,R_OK:4,W_OK:2,X_OK:1,UV_UDP_REUSEADDR:4}},{}],43:[function(r,A,y){"use strict";function m(u,f){if(!(this instanceof m))return new m(u,f);this.src=u,this._withAccess=f}function b(u,f){return u[f]===void 0&&u.__lookupGetter__(f)===void 0&&u.__lookupSetter__(f)===void 0}var i=Array.prototype.slice;A.exports=m,m.prototype.withAccess=function(u){return this._withAccess=u!==!1,this},m.prototype.pick=function(u){return Array.isArray(u)||(u=i.call(arguments)),u.length&&(this.keys=u),this},m.prototype.to=function(u){if(u=u||{},!this.src)return u;var f=this.keys||Object.keys(this.src);if(!this._withAccess){for(var s=0;s<f.length;s++)t=f[s],u[t]===void 0&&(u[t]=this.src[t]);return u}for(var s=0;s<f.length;s++){var t=f[s];if(b(u,t)){var a=this.src.__lookupGetter__(t),o=this.src.__lookupSetter__(t);a&&u.__defineGetter__(t,a),o&&u.__defineSetter__(t,o),a||o||(u[t]=this.src[t])}}return u},m.prototype.toCover=function(u){for(var f=this.keys||Object.keys(this.src),s=0;s<f.length;s++){var t=f[s];delete u[t];var a=this.src.__lookupGetter__(t),o=this.src.__lookupSetter__(t);a&&u.__defineGetter__(t,a),o&&u.__defineSetter__(t,o),a||o||(u[t]=this.src[t])}},m.prototype.override=m.prototype.toCover,m.prototype.and=function(u){var f={};return this.to(f),this.src=u,this.to(f),this.src=f,this}},{}],44:[function(r,A,y){r("../../modules/es6.string.iterator"),r("../../modules/es6.array.from"),A.exports=r("../../modules/_core").Array.from},{"../../modules/_core":65,"../../modules/es6.array.from":133,"../../modules/es6.string.iterator":145}],45:[function(r,A,y){var m=r("../../modules/_core"),b=m.JSON||(m.JSON={stringify:JSON.stringify});A.exports=function(i){return b.stringify.apply(b,arguments)}},{"../../modules/_core":65}],46:[function(r,A,y){r("../../modules/es6.object.assign"),A.exports=r("../../modules/_core").Object.assign},{"../../modules/_core":65,"../../modules/es6.object.assign":136}],47:[function(r,A,y){r("../../modules/es6.object.create");var m=r("../../modules/_core").Object;A.exports=function(b,i){return m.create(b,i)}},{"../../modules/_core":65,"../../modules/es6.object.create":137}],48:[function(r,A,y){r("../../modules/es6.object.define-property");var m=r("../../modules/_core").Object;A.exports=function(b,i,u){return m.defineProperty(b,i,u)}},{"../../modules/_core":65,"../../modules/es6.object.define-property":138}],49:[function(r,A,y){r("../../modules/es6.object.get-own-property-names");var m=r("../../modules/_core").Object;A.exports=function(b){return m.getOwnPropertyNames(b)}},{"../../modules/_core":65,"../../modules/es6.object.get-own-property-names":139}],50:[function(r,A,y){r("../../modules/es6.object.get-prototype-of"),A.exports=r("../../modules/_core").Object.getPrototypeOf},{"../../modules/_core":65,"../../modules/es6.object.get-prototype-of":140}],51:[function(r,A,y){r("../../modules/es6.object.keys"),A.exports=r("../../modules/_core").Object.keys},{"../../modules/_core":65,"../../modules/es6.object.keys":141}],52:[function(r,A,y){r("../modules/es6.object.to-string"),r("../modules/es6.string.iterator"),r("../modules/web.dom.iterable"),r("../modules/es6.promise"),r("../modules/es7.promise.finally"),r("../modules/es7.promise.try"),A.exports=r("../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(r,A,y){r("../modules/web.immediate"),A.exports=r("../modules/_core").setImmediate},{"../modules/_core":65,"../modules/web.immediate":152}],54:[function(r,A,y){r("../../modules/es6.string.from-code-point"),A.exports=r("../../modules/_core").String.fromCodePoint},{"../../modules/_core":65,"../../modules/es6.string.from-code-point":144}],55:[function(r,A,y){r("../../modules/es6.function.has-instance"),A.exports=r("../../modules/_wks-ext").f("hasInstance")},{"../../modules/_wks-ext":130,"../../modules/es6.function.has-instance":135}],56:[function(r,A,y){r("../../modules/es6.symbol"),r("../../modules/es6.object.to-string"),r("../../modules/es7.symbol.async-iterator"),r("../../modules/es7.symbol.observable"),A.exports=r("../../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(r,A,y){r("../../modules/es6.string.iterator"),r("../../modules/web.dom.iterable"),A.exports=r("../../modules/_wks-ext").f("iterator")},{"../../modules/_wks-ext":130,"../../modules/es6.string.iterator":145,"../../modules/web.dom.iterable":151}],58:[function(r,A,y){A.exports=function(m){if(typeof m!="function")throw TypeError(m+" is not a function!");return m}},{}],59:[function(r,A,y){A.exports=function(){}},{}],60:[function(r,A,y){A.exports=function(m,b,i,u){if(!(m instanceof b)||u!==void 0&&u in m)throw TypeError(i+": incorrect invocation!");return m}},{}],61:[function(r,A,y){var m=r("./_is-object");A.exports=function(b){if(!m(b))throw TypeError(b+" is not an object!");return b}},{"./_is-object":85}],62:[function(r,A,y){var m=r("./_to-iobject"),b=r("./_to-length"),i=r("./_to-absolute-index");A.exports=function(u){return function(f,s,t){var a,o=m(f),c=b(o.length),d=i(t,c);if(u&&s!=s){for(;c>d;)if((a=o[d++])!=a)return!0}else for(;c>d;d++)if((u||d in o)&&o[d]===s)return u||d||0;return!u&&-1}}},{"./_to-absolute-index":121,"./_to-iobject":123,"./_to-length":124}],63:[function(r,A,y){var m=r("./_cof"),b=r("./_wks")("toStringTag"),i=m(function(){return arguments}())=="Arguments",u=function(s,t){try{return s[t]}catch(a){}};A.exports=function(f){var s,t,a;return f===void 0?"Undefined":f===null?"Null":typeof(t=u(s=Object(f),b))=="string"?t:i?m(s):(a=m(s))=="Object"&&typeof s.callee=="function"?"Arguments":a}},{"./_cof":64,"./_wks":131}],64:[function(r,A,y){var m={}.toString;A.exports=function(b){return m.call(b).slice(8,-1)}},{}],65:[function(r,A,y){var m=A.exports={version:"2.5.7"};typeof __e=="number"&&(__e=m)},{}],66:[function(r,A,y){"use strict";var m=r("./_object-dp"),b=r("./_property-desc");A.exports=function(i,u,f){u in i?m.f(i,u,b(0,f)):i[u]=f}},{"./_object-dp":98,"./_property-desc":111}],67:[function(r,A,y){var m=r("./_a-function");A.exports=function(b,i,u){if(m(b),i===void 0)return b;switch(u){case 1:return function(f){return b.call(i,f)};case 2:return function(f,s){return b.call(i,f,s)};case 3:return function(f,s,t){return b.call(i,f,s,t)}}return function(){return b.apply(i,arguments)}}},{"./_a-function":58}],68:[function(r,A,y){A.exports=function(m){if(m==null)throw TypeError("Can't call method on "+m);return m}},{}],69:[function(r,A,y){A.exports=!r("./_fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./_fails":74}],70:[function(r,A,y){var m=r("./_is-object"),b=r("./_global").document,i=m(b)&&m(b.createElement);A.exports=function(u){return i?b.createElement(u):{}}},{"./_global":76,"./_is-object":85}],71:[function(r,A,y){A.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],72:[function(r,A,y){var m=r("./_object-keys"),b=r("./_object-gops"),i=r("./_object-pie");A.exports=function(u){var f=m(u),s=b.f;if(s)for(var t,a=s(u),o=i.f,c=0;a.length>c;)o.call(u,t=a[c++])&&f.push(t);return f}},{"./_object-gops":103,"./_object-keys":106,"./_object-pie":107}],73:[function(r,A,y){var m=r("./_global"),b=r("./_core"),i=r("./_ctx"),u=r("./_hide"),f=r("./_has"),s=function t(a,o,c){var d,l,x,w=a&t.F,p=a&t.G,O=a&t.S,S=a&t.P,h=a&t.B,E=a&t.W,L=p?b:b[o]||(b[o]={}),P=L.prototype,g=p?m:O?m[o]:(m[o]||{}).prototype;p&&(c=o);for(d in c)(l=!w&&g&&g[d]!==void 0)&&f(L,d)||(x=l?g[d]:c[d],L[d]=p&&typeof g[d]!="function"?c[d]:h&&l?i(x,m):E&&g[d]==x?function(F){var I=function(R,V,H){if(this instanceof F){switch(arguments.length){case 0:return new F;case 1:return new F(R);case 2:return new F(R,V)}return new F(R,V,H)}return F.apply(this,arguments)};return I.prototype=F.prototype,I}(x):S&&typeof x=="function"?i(Function.call,x):x,S&&((L.virtual||(L.virtual={}))[d]=x,a&t.R&&P&&!P[d]&&u(P,d,x)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,A.exports=s},{"./_core":65,"./_ctx":67,"./_global":76,"./_has":77,"./_hide":78}],74:[function(r,A,y){A.exports=function(m){try{return!!m()}catch(b){return!0}}},{}],75:[function(r,A,y){var m=r("./_ctx"),b=r("./_iter-call"),i=r("./_is-array-iter"),u=r("./_an-object"),f=r("./_to-length"),s=r("./core.get-iterator-method"),t={},a={},y=A.exports=function(o,c,d,l,x){var w,p,O,S,h=x?function(){return o}:s(o),E=m(d,l,c?2:1),L=0;if(typeof h!="function")throw TypeError(o+" is not iterable!");if(i(h)){for(w=f(o.length);w>L;L++)if((S=c?E(u(p=o[L])[0],p[1]):E(o[L]))===t||S===a)return S}else for(O=h.call(o);!(p=O.next()).done;)if((S=b(O,E,p.value,c))===t||S===a)return S};y.BREAK=t,y.RETURN=a},{"./_an-object":61,"./_ctx":67,"./_is-array-iter":83,"./_iter-call":86,"./_to-length":124,"./core.get-iterator-method":132}],76:[function(r,A,y){var m=A.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=m)},{}],77:[function(r,A,y){var m={}.hasOwnProperty;A.exports=function(b,i){return m.call(b,i)}},{}],78:[function(r,A,y){var m=r("./_object-dp"),b=r("./_property-desc");A.exports=r("./_descriptors")?function(i,u,f){return m.f(i,u,b(1,f))}:function(i,u,f){return i[u]=f,i}},{"./_descriptors":69,"./_object-dp":98,"./_property-desc":111}],79:[function(r,A,y){var m=r("./_global").document;A.exports=m&&m.documentElement},{"./_global":76}],80:[function(r,A,y){A.exports=!r("./_descriptors")&&!r("./_fails")(function(){return Object.defineProperty(r("./_dom-create")("div"),"a",{get:function(){return 7}}).a!=7})},{"./_descriptors":69,"./_dom-create":70,"./_fails":74}],81:[function(r,A,y){A.exports=function(m,b,i){var u=i===void 0;switch(b.length){case 0:return u?m():m.call(i);case 1:return u?m(b[0]):m.call(i,b[0]);case 2:return u?m(b[0],b[1]):m.call(i,b[0],b[1]);case 3:return u?m(b[0],b[1],b[2]):m.call(i,b[0],b[1],b[2]);case 4:return u?m(b[0],b[1],b[2],b[3]):m.call(i,b[0],b[1],b[2],b[3])}return m.apply(i,b)}},{}],82:[function(r,A,y){var m=r("./_cof");A.exports=Object("z").propertyIsEnumerable(0)?Object:function(b){return m(b)=="String"?b.split(""):Object(b)}},{"./_cof":64}],83:[function(r,A,y){var m=r("./_iterators"),b=r("./_wks")("iterator"),i=Array.prototype;A.exports=function(u){return u!==void 0&&(m.Array===u||i[b]===u)}},{"./_iterators":91,"./_wks":131}],84:[function(r,A,y){var m=r("./_cof");A.exports=Array.isArray||function(b){return m(b)=="Array"}},{"./_cof":64}],85:[function(r,A,y){A.exports=function(m){return typeof m=="object"?m!==null:typeof m=="function"}},{}],86:[function(r,A,y){var m=r("./_an-object");A.exports=function(b,i,u,f){try{return f?i(m(u)[0],u[1]):i(u)}catch(t){var s=b.return;throw s!==void 0&&m(s.call(b)),t}}},{"./_an-object":61}],87:[function(r,A,y){"use strict";var m=r("./_object-create"),b=r("./_property-desc"),i=r("./_set-to-string-tag"),u={};r("./_hide")(u,r("./_wks")("iterator"),function(){return this}),A.exports=function(f,s,t){f.prototype=m(u,{next:b(1,t)}),i(f,s+" Iterator")}},{"./_hide":78,"./_object-create":97,"./_property-desc":111,"./_set-to-string-tag":115,"./_wks":131}],88:[function(r,A,y){"use strict";var m=r("./_library"),b=r("./_export"),i=r("./_redefine"),u=r("./_hide"),f=r("./_iterators"),s=r("./_iter-create"),t=r("./_set-to-string-tag"),a=r("./_object-gpo"),o=r("./_wks")("iterator"),c=!([].keys&&"next"in[].keys()),d=function(){return this};A.exports=function(l,x,w,p,O,S,h){s(w,x,p);var E,L,P,g=function(Q){if(!c&&Q in R)return R[Q];switch(Q){case"keys":case"values":return function(){return new w(this,Q)}}return function(){return new w(this,Q)}},F=x+" Iterator",I=O=="values",X=!1,R=l.prototype,V=R[o]||R["@@iterator"]||O&&R[O],H=V||g(O),$=O?I?g("entries"):H:void 0,ae=x=="Array"&&R.entries||V;if(ae&&(P=a(ae.call(new l)))!==Object.prototype&&P.next&&(t(P,F,!0),m||typeof P[o]=="function"||u(P,o,d)),I&&V&&V.name!=="values"&&(X=!0,H=function(){return V.call(this)}),m&&!h||!c&&!X&&R[o]||u(R,o,H),f[x]=H,f[F]=d,O)if(E={values:I?H:g("values"),keys:S?H:g("keys"),entries:$},h)for(L in E)L in R||i(R,L,E[L]);else b(b.P+b.F*(c||X),x,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(r,A,y){var m=r("./_wks")("iterator"),b=!1;try{var i=[7][m]();i.return=function(){b=!0},Array.from(i,function(){throw 2})}catch(u){}A.exports=function(u,f){if(!f&&!b)return!1;var s=!1;try{var t=[7],a=t[m]();a.next=function(){return{done:s=!0}},t[m]=function(){return a},u(t)}catch(o){}return s}},{"./_wks":131}],90:[function(r,A,y){A.exports=function(m,b){return{value:b,done:!!m}}},{}],91:[function(r,A,y){A.exports={}},{}],92:[function(r,A,y){A.exports=!0},{}],93:[function(r,A,y){var m=r("./_uid")("meta"),b=r("./_is-object"),i=r("./_has"),u=r("./_object-dp").f,f=0,s=Object.isExtensible||function(){return!0},t=!r("./_fails")(function(){return s(Object.preventExtensions({}))}),a=function(w){u(w,m,{value:{i:"O"+ ++f,w:{}}})},o=function(w,p){if(!b(w))return typeof w=="symbol"?w:(typeof w=="string"?"S":"P")+w;if(!i(w,m)){if(!s(w))return"F";if(!p)return"E";a(w)}return w[m].i},c=function(w,p){if(!i(w,m)){if(!s(w))return!0;if(!p)return!1;a(w)}return w[m].w},d=function(w){return t&&l.NEED&&s(w)&&!i(w,m)&&a(w),w},l=A.exports={KEY:m,NEED:!1,fastKey:o,getWeak:c,onFreeze:d}},{"./_fails":74,"./_has":77,"./_is-object":85,"./_object-dp":98,"./_uid":127}],94:[function(r,A,y){var m=r("./_global"),b=r("./_task").set,i=m.MutationObserver||m.WebKitMutationObserver,u=m.process,f=m.Promise,s=r("./_cof")(u)=="process";A.exports=function(){var t,a,o,c=function(){var p,O;for(s&&(p=u.domain)&&p.exit();t;){O=t.fn,t=t.next;try{O()}catch(S){throw t?o():a=void 0,S}}a=void 0,p&&p.enter()};if(s)o=function(){u.nextTick(c)};else if(!i||m.navigator&&m.navigator.standalone)if(f&&f.resolve){var d=f.resolve(void 0);o=function(){d.then(c)}}else o=function(){b.call(m,c)};else{var l=!0,x=document.createTextNode("");new i(c).observe(x,{characterData:!0}),o=function(){x.data=l=!l}}return function(w){var p={fn:w,next:void 0};a&&(a.next=p),t||(t=p,o()),a=p}}},{"./_cof":64,"./_global":76,"./_task":120}],95:[function(r,A,y){"use strict";function m(i){var u,f;this.promise=new i(function(s,t){if(u!==void 0||f!==void 0)throw TypeError("Bad Promise constructor");u=s,f=t}),this.resolve=b(u),this.reject=b(f)}var b=r("./_a-function");A.exports.f=function(i){return new m(i)}},{"./_a-function":58}],96:[function(r,A,y){"use strict";var m=r("./_object-keys"),b=r("./_object-gops"),i=r("./_object-pie"),u=r("./_to-object"),f=r("./_iobject"),s=Object.assign;A.exports=!s||r("./_fails")(function(){var t={},a={},o=Symbol(),c="abcdefghijklmnopqrst";return t[o]=7,c.split("").forEach(function(d){a[d]=d}),s({},t)[o]!=7||Object.keys(s({},a)).join("")!=c})?function(t,a){for(var o=u(t),c=arguments.length,d=1,l=b.f,x=i.f;c>d;)for(var w,p=f(arguments[d++]),O=l?m(p).concat(l(p)):m(p),S=O.length,h=0;S>h;)x.call(p,w=O[h++])&&(o[w]=p[w]);return o}:s},{"./_fails":74,"./_iobject":82,"./_object-gops":103,"./_object-keys":106,"./_object-pie":107,"./_to-object":125}],97:[function(r,A,y){var m=r("./_an-object"),b=r("./_object-dps"),i=r("./_enum-bug-keys"),u=r("./_shared-key")("IE_PROTO"),f=function(){},s=function(){var a,o=r("./_dom-create")("iframe"),c=i.length;for(o.style.display="none",r("./_html").appendChild(o),o.src="javascript:",a=o.contentWindow.document,a.open(),a.write("<script>document.F=Object</script>"),a.close(),s=a.F;c--;)delete s.prototype[i[c]];return s()};A.exports=Object.create||function(t,a){var o;return t!==null?(f.prototype=m(t),o=new f,f.prototype=null,o[u]=t):o=s(),a===void 0?o:b(o,a)}},{"./_an-object":61,"./_dom-create":70,"./_enum-bug-keys":71,"./_html":79,"./_object-dps":99,"./_shared-key":116}],98:[function(r,A,y){var m=r("./_an-object"),b=r("./_ie8-dom-define"),i=r("./_to-primitive"),u=Object.defineProperty;y.f=r("./_descriptors")?Object.defineProperty:function(f,s,t){if(m(f),s=i(s,!0),m(t),b)try{return u(f,s,t)}catch(a){}if("get"in t||"set"in t)throw TypeError("Accessors not supported!");return"value"in t&&(f[s]=t.value),f}},{"./_an-object":61,"./_descriptors":69,"./_ie8-dom-define":80,"./_to-primitive":126}],99:[function(r,A,y){var m=r("./_object-dp"),b=r("./_an-object"),i=r("./_object-keys");A.exports=r("./_descriptors")?Object.defineProperties:function(u,f){b(u);for(var s,t=i(f),a=t.length,o=0;a>o;)m.f(u,s=t[o++],f[s]);return u}},{"./_an-object":61,"./_descriptors":69,"./_object-dp":98,"./_object-keys":106}],100:[function(r,A,y){var m=r("./_object-pie"),b=r("./_property-desc"),i=r("./_to-iobject"),u=r("./_to-primitive"),f=r("./_has"),s=r("./_ie8-dom-define"),t=Object.getOwnPropertyDescriptor;y.f=r("./_descriptors")?t:function(a,o){if(a=i(a),o=u(o,!0),s)try{return t(a,o)}catch(c){}if(f(a,o))return b(!m.f.call(a,o),a[o])}},{"./_descriptors":69,"./_has":77,"./_ie8-dom-define":80,"./_object-pie":107,"./_property-desc":111,"./_to-iobject":123,"./_to-primitive":126}],101:[function(r,A,y){var m=r("./_to-iobject"),b=r("./_object-gopn").f,i={}.toString,u=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],f=function(t){try{return b(t)}catch(a){return u.slice()}};A.exports.f=function(s){return u&&i.call(s)=="[object Window]"?f(s):b(m(s))}},{"./_object-gopn":102,"./_to-iobject":123}],102:[function(r,A,y){var m=r("./_object-keys-internal"),b=r("./_enum-bug-keys").concat("length","prototype");y.f=Object.getOwnPropertyNames||function(i){return m(i,b)}},{"./_enum-bug-keys":71,"./_object-keys-internal":105}],103:[function(r,A,y){y.f=Object.getOwnPropertySymbols},{}],104:[function(r,A,y){var m=r("./_has"),b=r("./_to-object"),i=r("./_shared-key")("IE_PROTO"),u=Object.prototype;A.exports=Object.getPrototypeOf||function(f){return f=b(f),m(f,i)?f[i]:typeof f.constructor=="function"&&f instanceof f.constructor?f.constructor.prototype:f instanceof Object?u:null}},{"./_has":77,"./_shared-key":116,"./_to-object":125}],105:[function(r,A,y){var m=r("./_has"),b=r("./_to-iobject"),i=r("./_array-includes")(!1),u=r("./_shared-key")("IE_PROTO");A.exports=function(f,s){var t,a=b(f),o=0,c=[];for(t in a)t!=u&&m(a,t)&&c.push(t);for(;s.length>o;)m(a,t=s[o++])&&(~i(c,t)||c.push(t));return c}},{"./_array-includes":62,"./_has":77,"./_shared-key":116,"./_to-iobject":123}],106:[function(r,A,y){var m=r("./_object-keys-internal"),b=r("./_enum-bug-keys");A.exports=Object.keys||function(i){return m(i,b)}},{"./_enum-bug-keys":71,"./_object-keys-internal":105}],107:[function(r,A,y){y.f={}.propertyIsEnumerable},{}],108:[function(r,A,y){var m=r("./_export"),b=r("./_core"),i=r("./_fails");A.exports=function(u,f){var s=(b.Object||{})[u]||Object[u],t={};t[u]=f(s),m(m.S+m.F*i(function(){s(1)}),"Object",t)}},{"./_core":65,"./_export":73,"./_fails":74}],109:[function(r,A,y){A.exports=function(m){try{return{e:!1,v:m()}}catch(b){return{e:!0,v:b}}}},{}],110:[function(r,A,y){var m=r("./_an-object"),b=r("./_is-object"),i=r("./_new-promise-capability");A.exports=function(u,f){if(m(u),b(f)&&f.constructor===u)return f;var s=i.f(u);return(0,s.resolve)(f),s.promise}},{"./_an-object":61,"./_is-object":85,"./_new-promise-capability":95}],111:[function(r,A,y){A.exports=function(m,b){return{enumerable:!(1&m),configurable:!(2&m),writable:!(4&m),value:b}}},{}],112:[function(r,A,y){var m=r("./_hide");A.exports=function(b,i,u){for(var f in i)u&&b[f]?b[f]=i[f]:m(b,f,i[f]);return b}},{"./_hide":78}],113:[function(r,A,y){A.exports=r("./_hide")},{"./_hide":78}],114:[function(r,A,y){"use strict";var m=r("./_global"),b=r("./_core"),i=r("./_object-dp"),u=r("./_descriptors"),f=r("./_wks")("species");A.exports=function(s){var t=typeof b[s]=="function"?b[s]:m[s];u&&t&&!t[f]&&i.f(t,f,{configurable:!0,get:function(){return this}})}},{"./_core":65,"./_descriptors":69,"./_global":76,"./_object-dp":98,"./_wks":131}],115:[function(r,A,y){var m=r("./_object-dp").f,b=r("./_has"),i=r("./_wks")("toStringTag");A.exports=function(u,f,s){u&&!b(u=s?u:u.prototype,i)&&m(u,i,{configurable:!0,value:f})}},{"./_has":77,"./_object-dp":98,"./_wks":131}],116:[function(r,A,y){var m=r("./_shared")("keys"),b=r("./_uid");A.exports=function(i){return m[i]||(m[i]=b(i))}},{"./_shared":117,"./_uid":127}],117:[function(r,A,y){var m=r("./_core"),b=r("./_global"),i=b["__core-js_shared__"]||(b["__core-js_shared__"]={});(A.exports=function(u,f){return i[u]||(i[u]=f!==void 0?f:{})})("versions",[]).push({version:m.version,mode:r("./_library")?"pure":"global",copyright:"\u6F0F 2018 Denis Pushkarev (zloirock.ru)"})},{"./_core":65,"./_global":76,"./_library":92}],118:[function(r,A,y){var m=r("./_an-object"),b=r("./_a-function"),i=r("./_wks")("species");A.exports=function(u,f){var s,t=m(u).constructor;return t===void 0||(s=m(t)[i])==null?f:b(s)}},{"./_a-function":58,"./_an-object":61,"./_wks":131}],119:[function(r,A,y){var m=r("./_to-integer"),b=r("./_defined");A.exports=function(i){return function(u,f){var s,t,a=String(b(u)),o=m(f),c=a.length;return o<0||o>=c?i?"":void 0:(s=a.charCodeAt(o),s<55296||s>56319||o+1===c||(t=a.charCodeAt(o+1))<56320||t>57343?i?a.charAt(o):s:i?a.slice(o,o+2):t-56320+(s-55296<<10)+65536)}}},{"./_defined":68,"./_to-integer":122}],120:[function(r,A,y){var m,b,i,u=r("./_ctx"),f=r("./_invoke"),s=r("./_html"),t=r("./_dom-create"),a=r("./_global"),o=a.process,c=a.setImmediate,d=a.clearImmediate,l=a.MessageChannel,x=a.Dispatch,w=0,p={},O=function(){var E=+this;if(p.hasOwnProperty(E)){var L=p[E];delete p[E],L()}},S=function(E){O.call(E.data)};c&&d||(c=function(E){for(var L=[],P=1;arguments.length>P;)L.push(arguments[P++]);return p[++w]=function(){f(typeof E=="function"?E:Function(E),L)},m(w),w},d=function(E){delete p[E]},r("./_cof")(o)=="process"?m=function(E){o.nextTick(u(O,E,1))}:x&&x.now?m=function(E){x.now(u(O,E,1))}:l?(b=new l,i=b.port2,b.port1.onmessage=S,m=u(i.postMessage,i,1)):a.addEventListener&&typeof postMessage=="function"&&!a.importScripts?(m=function(E){a.postMessage(E+"","*")},a.addEventListener("message",S,!1)):m="onreadystatechange"in t("script")?function(h){s.appendChild(t("script")).onreadystatechange=function(){s.removeChild(this),O.call(h)}}:function(h){setTimeout(u(O,h,1),0)}),A.exports={set:c,clear:d}},{"./_cof":64,"./_ctx":67,"./_dom-create":70,"./_global":76,"./_html":79,"./_invoke":81}],121:[function(r,A,y){var m=r("./_to-integer"),b=Math.max,i=Math.min;A.exports=function(u,f){return u=m(u),u<0?b(u+f,0):i(u,f)}},{"./_to-integer":122}],122:[function(r,A,y){var m=Math.ceil,b=Math.floor;A.exports=function(i){return isNaN(i=+i)?0:(i>0?b:m)(i)}},{}],123:[function(r,A,y){var m=r("./_iobject"),b=r("./_defined");A.exports=function(i){return m(b(i))}},{"./_defined":68,"./_iobject":82}],124:[function(r,A,y){var m=r("./_to-integer"),b=Math.min;A.exports=function(i){return i>0?b(m(i),9007199254740991):0}},{"./_to-integer":122}],125:[function(r,A,y){var m=r("./_defined");A.exports=function(b){return Object(m(b))}},{"./_defined":68}],126:[function(r,A,y){var m=r("./_is-object");A.exports=function(b,i){if(!m(b))return b;var u,f;if(i&&typeof(u=b.toString)=="function"&&!m(f=u.call(b)))return f;if(typeof(u=b.valueOf)=="function"&&!m(f=u.call(b)))return f;if(!i&&typeof(u=b.toString)=="function"&&!m(f=u.call(b)))return f;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":85}],127:[function(r,A,y){var m=0,b=Math.random();A.exports=function(i){return"Symbol(".concat(i===void 0?"":i,")_",(++m+b).toString(36))}},{}],128:[function(r,A,y){var m=r("./_global"),b=m.navigator;A.exports=b&&b.userAgent||""},{"./_global":76}],129:[function(r,A,y){var m=r("./_global"),b=r("./_core"),i=r("./_library"),u=r("./_wks-ext"),f=r("./_object-dp").f;A.exports=function(s){var t=b.Symbol||(b.Symbol=i?{}:m.Symbol||{});s.charAt(0)=="_"||s in t||f(t,s,{value:u.f(s)})}},{"./_core":65,"./_global":76,"./_library":92,"./_object-dp":98,"./_wks-ext":130}],130:[function(r,A,y){y.f=r("./_wks")},{"./_wks":131}],131:[function(r,A,y){var m=r("./_shared")("wks"),b=r("./_uid"),i=r("./_global").Symbol,u=typeof i=="function";(A.exports=function(f){return m[f]||(m[f]=u&&i[f]||(u?i:b)("Symbol."+f))}).store=m},{"./_global":76,"./_shared":117,"./_uid":127}],132:[function(r,A,y){var m=r("./_classof"),b=r("./_wks")("iterator"),i=r("./_iterators");A.exports=r("./_core").getIteratorMethod=function(u){if(u!=null)return u[b]||u["@@iterator"]||i[m(u)]}},{"./_classof":63,"./_core":65,"./_iterators":91,"./_wks":131}],133:[function(r,A,y){"use strict";var m=r("./_ctx"),b=r("./_export"),i=r("./_to-object"),u=r("./_iter-call"),f=r("./_is-array-iter"),s=r("./_to-length"),t=r("./_create-property"),a=r("./core.get-iterator-method");b(b.S+b.F*!r("./_iter-detect")(function(o){Array.from(o)}),"Array",{from:function(c){var d,l,x,w,p=i(c),O=typeof this=="function"?this:Array,S=arguments.length,h=S>1?arguments[1]:void 0,E=h!==void 0,L=0,P=a(p);if(E&&(h=m(h,S>2?arguments[2]:void 0,2)),P==null||O==Array&&f(P))for(d=s(p.length),l=new O(d);d>L;L++)t(l,L,E?h(p[L],L):p[L]);else for(w=P.call(p),l=new O;!(x=w.next()).done;L++)t(l,L,E?u(w,h,[x.value,L],!0):x.value);return l.length=L,l}})},{"./_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(r,A,y){"use strict";var m=r("./_add-to-unscopables"),b=r("./_iter-step"),i=r("./_iterators"),u=r("./_to-iobject");A.exports=r("./_iter-define")(Array,"Array",function(f,s){this._t=u(f),this._i=0,this._k=s},function(){var f=this._t,s=this._k,t=this._i++;return!f||t>=f.length?(this._t=void 0,b(1)):s=="keys"?b(0,t):s=="values"?b(0,f[t]):b(0,[t,f[t]])},"values"),i.Arguments=i.Array,m("keys"),m("values"),m("entries")},{"./_add-to-unscopables":59,"./_iter-define":88,"./_iter-step":90,"./_iterators":91,"./_to-iobject":123}],135:[function(r,A,y){"use strict";var m=r("./_is-object"),b=r("./_object-gpo"),i=r("./_wks")("hasInstance"),u=Function.prototype;i in u||r("./_object-dp").f(u,i,{value:function(s){if(typeof this!="function"||!m(s))return!1;if(!m(this.prototype))return s instanceof this;for(;s=b(s);)if(this.prototype===s)return!0;return!1}})},{"./_is-object":85,"./_object-dp":98,"./_object-gpo":104,"./_wks":131}],136:[function(r,A,y){var m=r("./_export");m(m.S+m.F,"Object",{assign:r("./_object-assign")})},{"./_export":73,"./_object-assign":96}],137:[function(r,A,y){var m=r("./_export");m(m.S,"Object",{create:r("./_object-create")})},{"./_export":73,"./_object-create":97}],138:[function(r,A,y){var m=r("./_export");m(m.S+m.F*!r("./_descriptors"),"Object",{defineProperty:r("./_object-dp").f})},{"./_descriptors":69,"./_export":73,"./_object-dp":98}],139:[function(r,A,y){r("./_object-sap")("getOwnPropertyNames",function(){return r("./_object-gopn-ext").f})},{"./_object-gopn-ext":101,"./_object-sap":108}],140:[function(r,A,y){var m=r("./_to-object"),b=r("./_object-gpo");r("./_object-sap")("getPrototypeOf",function(){return function(i){return b(m(i))}})},{"./_object-gpo":104,"./_object-sap":108,"./_to-object":125}],141:[function(r,A,y){var m=r("./_to-object"),b=r("./_object-keys");r("./_object-sap")("keys",function(){return function(i){return b(m(i))}})},{"./_object-keys":106,"./_object-sap":108,"./_to-object":125}],142:[function(r,A,y){arguments[4][36][0].apply(y,arguments)},{dup:36}],143:[function(r,A,y){"use strict";var m,b,i,u,f=r("./_library"),s=r("./_global"),t=r("./_ctx"),a=r("./_classof"),o=r("./_export"),c=r("./_is-object"),d=r("./_a-function"),l=r("./_an-instance"),x=r("./_for-of"),w=r("./_species-constructor"),p=r("./_task").set,O=r("./_microtask")(),S=r("./_new-promise-capability"),h=r("./_perform"),E=r("./_user-agent"),L=r("./_promise-resolve"),P=s.TypeError,g=s.process,F=g&&g.versions,I=F&&F.v8||"",X=s.Promise,R=a(g)=="process",V=function(){},H=b=S.f,$=!!function(){try{var U=X.resolve(1),G=(U.constructor={})[r("./_wks")("species")]=function(J){J(V,V)};return(R||typeof PromiseRejectionEvent=="function")&&U.then(V)instanceof G&&I.indexOf("6.6")!==0&&E.indexOf("Chrome/66")===-1}catch(J){}}(),ae=function(G){var J;return!(!c(G)||typeof(J=G.then)!="function")&&J},M=function(G,J){if(!G._n){G._n=!0;var ne=G._c;O(function(){for(var fe=G._v,se=G._s==1,me=0;ne.length>me;)!function(ve){var ie,oe,le,K=se?ve.ok:ve.fail,q=ve.resolve,ce=ve.reject,ue=ve.domain;try{K?(se||(G._h==2&&W(G),G._h=1),K===!0?ie=fe:(ue&&ue.enter(),ie=K(fe),ue&&(ue.exit(),le=!0)),ie===ve.promise?ce(P("Promise-chain cycle")):(oe=ae(ie))?oe.call(ie,q,ce):q(ie)):ce(fe)}catch(we){ue&&!le&&ue.exit(),ce(we)}}(ne[me++]);G._c=[],G._n=!1,J&&!G._h&&Q(G)})}},Q=function(G){p.call(s,function(){var J,ne,fe,se=G._v,me=Y(G);if(me&&(J=h(function(){R?g.emit("unhandledRejection",se,G):(ne=s.onunhandledrejection)?ne({promise:G,reason:se}):(fe=s.console)&&fe.error&&fe.error("Unhandled promise rejection",se)}),G._h=R||Y(G)?2:1),G._a=void 0,me&&J.e)throw J.v})},Y=function(G){return G._h!==1&&(G._a||G._c).length===0},W=function(G){p.call(s,function(){var J;R?g.emit("rejectionHandled",G):(J=s.onrejectionhandled)&&J({promise:G,reason:G._v})})},D=function(G){var J=this;J._d||(J._d=!0,J=J._w||J,J._v=G,J._s=2,J._a||(J._a=J._c.slice()),M(J,!0))},C=function U(G){var J,ne=this;if(!ne._d){ne._d=!0,ne=ne._w||ne;try{if(ne===G)throw P("Promise can't be resolved itself");(J=ae(G))?O(function(){var fe={_w:ne,_d:!1};try{J.call(G,t(U,fe,1),t(D,fe,1))}catch(se){D.call(fe,se)}}):(ne._v=G,ne._s=1,M(ne,!1))}catch(fe){D.call({_w:ne,_d:!1},fe)}}};$||(X=function(G){l(this,X,"Promise","_h"),d(G),m.call(this);try{G(t(C,this,1),t(D,this,1))}catch(J){D.call(this,J)}},m=function(G){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},m.prototype=r("./_redefine-all")(X.prototype,{then:function(G,J){var ne=H(w(this,X));return ne.ok=typeof G!="function"||G,ne.fail=typeof J=="function"&&J,ne.domain=R?g.domain:void 0,this._c.push(ne),this._a&&this._a.push(ne),this._s&&M(this,!1),ne.promise},catch:function(G){return this.then(void 0,G)}}),i=function(){var G=new m;this.promise=G,this.resolve=t(C,G,1),this.reject=t(D,G,1)},S.f=H=function(G){return G===X||G===u?new i(G):b(G)}),o(o.G+o.W+o.F*!$,{Promise:X}),r("./_set-to-string-tag")(X,"Promise"),r("./_set-species")("Promise"),u=r("./_core").Promise,o(o.S+o.F*!$,"Promise",{reject:function(G){var J=H(this);return(0,J.reject)(G),J.promise}}),o(o.S+o.F*(f||!$),"Promise",{resolve:function(G){return L(f&&this===u?X:this,G)}}),o(o.S+o.F*!($&&r("./_iter-detect")(function(U){X.all(U).catch(V)})),"Promise",{all:function(G){var J=this,ne=H(J),fe=ne.resolve,se=ne.reject,me=h(function(){var ve=[],ie=0,oe=1;x(G,!1,function(le){var K=ie++,q=!1;ve.push(void 0),oe++,J.resolve(le).then(function(ce){q||(q=!0,ve[K]=ce,--oe||fe(ve))},se)}),--oe||fe(ve)});return me.e&&se(me.v),ne.promise},race:function(G){var J=this,ne=H(J),fe=ne.reject,se=h(function(){x(G,!1,function(me){J.resolve(me).then(ne.resolve,fe)})});return se.e&&fe(se.v),ne.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(r,A,y){var m=r("./_export"),b=r("./_to-absolute-index"),i=String.fromCharCode,u=String.fromCodePoint;m(m.S+m.F*(!!u&&u.length!=1),"String",{fromCodePoint:function(s){for(var t,a=[],o=arguments.length,c=0;o>c;){if(t=+arguments[c++],b(t,1114111)!==t)throw RangeError(t+" is not a valid code point");a.push(t<65536?i(t):i(55296+((t-=65536)>>10),t%1024+56320))}return a.join("")}})},{"./_export":73,"./_to-absolute-index":121}],145:[function(r,A,y){"use strict";var m=r("./_string-at")(!0);r("./_iter-define")(String,"String",function(b){this._t=String(b),this._i=0},function(){var b,i=this._t,u=this._i;return u>=i.length?{value:void 0,done:!0}:(b=m(i,u),this._i+=b.length,{value:b,done:!1})})},{"./_iter-define":88,"./_string-at":119}],146:[function(r,A,y){"use strict";var m=r("./_global"),b=r("./_has"),i=r("./_descriptors"),u=r("./_export"),f=r("./_redefine"),s=r("./_meta").KEY,t=r("./_fails"),a=r("./_shared"),o=r("./_set-to-string-tag"),c=r("./_uid"),d=r("./_wks"),l=r("./_wks-ext"),x=r("./_wks-define"),w=r("./_enum-keys"),p=r("./_is-array"),O=r("./_an-object"),S=r("./_is-object"),h=r("./_to-iobject"),E=r("./_to-primitive"),L=r("./_property-desc"),P=r("./_object-create"),g=r("./_object-gopn-ext"),F=r("./_object-gopd"),I=r("./_object-dp"),X=r("./_object-keys"),R=F.f,V=I.f,H=g.f,$=m.Symbol,ae=m.JSON,M=ae&&ae.stringify,Q=d("_hidden"),Y=d("toPrimitive"),W={}.propertyIsEnumerable,D=a("symbol-registry"),C=a("symbols"),U=a("op-symbols"),G=Object.prototype,J=typeof $=="function",ne=m.QObject,fe=!ne||!ne.prototype||!ne.prototype.findChild,se=i&&t(function(){return P(V({},"a",{get:function(){return V(this,"a",{value:7}).a}})).a!=7})?function(T,v,_){var B=R(G,v);B&&delete G[v],V(T,v,_),B&&T!==G&&V(G,v,B)}:V,me=function(v){var _=C[v]=P($.prototype);return _._k=v,_},ve=J&&typeof $.iterator=="symbol"?function(T){return typeof T=="symbol"}:function(T){return T instanceof $},ie=function T(v,_,B){return v===G&&T(U,_,B),O(v),_=E(_,!0),O(B),b(C,_)?(B.enumerable?(b(v,Q)&&v[Q][_]&&(v[Q][_]=!1),B=P(B,{enumerable:L(0,!1)})):(b(v,Q)||V(v,Q,L(1,{})),v[Q][_]=!0),se(v,_,B)):V(v,_,B)},oe=function(v,_){O(v);for(var B,Z=w(_=h(_)),Ee=0,ye=Z.length;ye>Ee;)ie(v,B=Z[Ee++],_[B]);return v},le=function(v,_){return _===void 0?P(v):oe(P(v),_)},K=function(v){var _=W.call(this,v=E(v,!0));return!(this===G&&b(C,v)&&!b(U,v))&&(!(_||!b(this,v)||!b(C,v)||b(this,Q)&&this[Q][v])||_)},q=function(v,_){if(v=h(v),_=E(_,!0),v!==G||!b(C,_)||b(U,_)){var B=R(v,_);return!B||!b(C,_)||b(v,Q)&&v[Q][_]||(B.enumerable=!0),B}},ce=function(v){for(var _,B=H(h(v)),Z=[],Ee=0;B.length>Ee;)b(C,_=B[Ee++])||_==Q||_==s||Z.push(_);return Z},ue=function(v){for(var _,B=v===G,Z=H(B?U:h(v)),Ee=[],ye=0;Z.length>ye;)!b(C,_=Z[ye++])||B&&!b(G,_)||Ee.push(C[_]);return Ee};J||($=function(){if(this instanceof $)throw TypeError("Symbol is not a constructor!");var v=c(arguments.length>0?arguments[0]:void 0),_=function B(Z){this===G&&B.call(U,Z),b(this,Q)&&b(this[Q],v)&&(this[Q][v]=!1),se(this,v,L(1,Z))};return i&&fe&&se(G,v,{configurable:!0,set:_}),me(v)},f($.prototype,"toString",function(){return this._k}),F.f=q,I.f=ie,r("./_object-gopn").f=g.f=ce,r("./_object-pie").f=K,r("./_object-gops").f=ue,i&&!r("./_library")&&f(G,"propertyIsEnumerable",K,!0),l.f=function(T){return me(d(T))}),u(u.G+u.W+u.F*!J,{Symbol:$});for(var we="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),k=0;we.length>k;)d(we[k++]);for(var e=X(d.store),n=0;e.length>n;)x(e[n++]);u(u.S+u.F*!J,"Symbol",{for:function(v){return b(D,v+="")?D[v]:D[v]=$(v)},keyFor:function(v){if(!ve(v))throw TypeError(v+" is not a symbol!");for(var _ in D)if(D[_]===v)return _},useSetter:function(){fe=!0},useSimple:function(){fe=!1}}),u(u.S+u.F*!J,"Object",{create:le,defineProperty:ie,defineProperties:oe,getOwnPropertyDescriptor:q,getOwnPropertyNames:ce,getOwnPropertySymbols:ue}),ae&&u(u.S+u.F*(!J||t(function(){var T=$();return M([T])!="[null]"||M({a:T})!="{}"||M(Object(T))!="{}"})),"JSON",{stringify:function(v){for(var _,B,Z=[v],Ee=1;arguments.length>Ee;)Z.push(arguments[Ee++]);if(B=_=Z[1],(S(_)||v!==void 0)&&!ve(v))return p(_)||(_=function(Ae,Le){if(typeof B=="function"&&(Le=B.call(this,Ae,Le)),!ve(Le))return Le}),Z[1]=_,M.apply(ae,Z)}}),$.prototype[Y]||r("./_hide")($.prototype,Y,$.prototype.valueOf),o($,"Symbol"),o(Math,"Math",!0),o(m.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(r,A,y){"use strict";var m=r("./_export"),b=r("./_core"),i=r("./_global"),u=r("./_species-constructor"),f=r("./_promise-resolve");m(m.P+m.R,"Promise",{finally:function(t){var a=u(this,b.Promise||i.Promise),o=typeof t=="function";return this.then(o?function(c){return f(a,t()).then(function(){return c})}:t,o?function(c){return f(a,t()).then(function(){throw c})}:t)}})},{"./_core":65,"./_export":73,"./_global":76,"./_promise-resolve":110,"./_species-constructor":118}],148:[function(r,A,y){"use strict";var m=r("./_export"),b=r("./_new-promise-capability"),i=r("./_perform");m(m.S,"Promise",{try:function(f){var s=b.f(this),t=i(f);return(t.e?s.reject:s.resolve)(t.v),s.promise}})},{"./_export":73,"./_new-promise-capability":95,"./_perform":109}],149:[function(r,A,y){r("./_wks-define")("asyncIterator")},{"./_wks-define":129}],150:[function(r,A,y){r("./_wks-define")("observable")},{"./_wks-define":129}],151:[function(r,A,y){r("./es6.array.iterator");for(var m=r("./_global"),b=r("./_hide"),i=r("./_iterators"),u=r("./_wks")("toStringTag"),f="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(","),s=0;s<f.length;s++){var t=f[s],a=m[t],o=a&&a.prototype;o&&!o[u]&&b(o,u,t),i[t]=i.Array}},{"./_global":76,"./_hide":78,"./_iterators":91,"./_wks":131,"./es6.array.iterator":134}],152:[function(r,A,y){var m=r("./_export"),b=r("./_task");m(m.G+m.B,{setImmediate:b.set,clearImmediate:b.clear})},{"./_export":73,"./_task":120}],153:[function(r,A,y){(function(m){"use strict";function b(E){return Array.isArray?Array.isArray(E):O(E)==="[object Array]"}function i(E){return typeof E=="boolean"}function u(E){return E===null}function f(E){return E==null}function s(E){return typeof E=="number"}function t(E){return typeof E=="string"}function a(E){return(E===void 0?"undefined":(0,h.default)(E))==="symbol"}function o(E){return E===void 0}function c(E){return O(E)==="[object RegExp]"}function d(E){return(E===void 0?"undefined":(0,h.default)(E))==="object"&&E!==null}function l(E){return O(E)==="[object Date]"}function x(E){return O(E)==="[object Error]"||E instanceof Error}function w(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 O(E){return Object.prototype.toString.call(E)}var S=r("babel-runtime/helpers/typeof"),h=function(E){return E&&E.__esModule?E:{default:E}}(S);y.isArray=b,y.isBoolean=i,y.isNull=u,y.isNullOrUndefined=f,y.isNumber=s,y.isString=t,y.isSymbol=a,y.isUndefined=o,y.isRegExp=c,y.isObject=d,y.isDate=l,y.isError=x,y.isFunction=w,y.isPrimitive=p,y.isBuffer=m.isBuffer}).call(this,{isBuffer:r("../../is-buffer/index.js")})},{"../../is-buffer/index.js":163,"babel-runtime/helpers/typeof":32}],154:[function(r,A,y){"use strict";var m=r("babel-runtime/helpers/typeof"),b=function(i){return i&&i.__esModule?i:{default:i}}(m);!function(i){function u(o,c){for(o=String(o),c=c||2;o.length<c;)o="0"+o;return o}function f(o){var c=new Date(o.getFullYear(),o.getMonth(),o.getDate());c.setDate(c.getDate()-(c.getDay()+6)%7+3);var d=new Date(c.getFullYear(),0,4);d.setDate(d.getDate()-(d.getDay()+6)%7+3);var l=c.getTimezoneOffset()-d.getTimezoneOffset();c.setHours(c.getHours()-l);var x=(c-d)/6048e5;return 1+Math.floor(x)}function s(o){var c=o.getDay();return c===0&&(c=7),c}function t(o){return o===null?"null":o===void 0?"undefined":(o===void 0?"undefined":(0,b.default)(o))!=="object"?o===void 0?"undefined":(0,b.default)(o):Array.isArray(o)?"array":{}.toString.call(o).slice(8,-1).toLowerCase()}var a=function(){var o=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,c=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,d=/[^-+\dA-Z]/g;return function(l,x,w,p){if(arguments.length!==1||t(l)!=="string"||/\d/.test(l)||(x=l,l=void 0),l=l||new Date,l instanceof Date||(l=new Date(l)),isNaN(l))throw TypeError("Invalid date");x=String(a.masks[x]||x||a.masks.default);var O=x.slice(0,4);O!=="UTC:"&&O!=="GMT:"||(x=x.slice(4),w=!0,O==="GMT:"&&(p=!0));var S=w?"getUTC":"get",h=l[S+"Date"](),E=l[S+"Day"](),L=l[S+"Month"](),P=l[S+"FullYear"](),g=l[S+"Hours"](),F=l[S+"Minutes"](),I=l[S+"Seconds"](),X=l[S+"Milliseconds"](),R=w?0:l.getTimezoneOffset(),V=f(l),H=s(l),$={d:h,dd:u(h),ddd:a.i18n.dayNames[E],dddd:a.i18n.dayNames[E+7],m:L+1,mm:u(L+1),mmm:a.i18n.monthNames[L],mmmm:a.i18n.monthNames[L+12],yy:String(P).slice(2),yyyy:P,h:g%12||12,hh:u(g%12||12),H:g,HH:u(g),M:F,MM:u(F),s:I,ss:u(I),l:u(X,3),L:u(Math.round(X/10)),t:g<12?"a":"p",tt:g<12?"am":"pm",T:g<12?"A":"P",TT:g<12?"AM":"PM",Z:p?"GMT":w?"UTC":(String(l).match(c)||[""]).pop().replace(d,""),o:(R>0?"-":"+")+u(100*Math.floor(Math.abs(R)/60)+Math.abs(R)%60,4),S:["th","st","nd","rd"][h%10>3?0:(h%100-h%10!=10)*h%10],W:V,N:H};return x.replace(o,function(ae){return ae in $?$[ae]:ae.slice(1,ae.length-1)})}}();a.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"},a.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 Oe=="function"&&Oe.amd?Oe(function(){return a}):(y===void 0?"undefined":(0,b.default)(y))==="object"?A.exports=a:i.dateFormat=a}(void 0)},{"babel-runtime/helpers/typeof":32}],155:[function(r,A,y){(function(m){function b(){return!(typeof window=="undefined"||!window.process||window.process.type!=="renderer")||typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function i(t){var a=this.useColors;if(t[0]=(a?"%c":"")+this.namespace+(a?" %c":" ")+t[0]+(a?"%c ":" ")+"+"+y.humanize(this.diff),a){var o="color: "+this.color;t.splice(1,0,o,"color: inherit");var c=0,d=0;t[0].replace(/%[a-zA-Z%]/g,function(l){l!=="%%"&&(c++,l==="%c"&&(d=c))}),t.splice(d,0,o)}}function u(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function f(t){try{t==null?y.storage.removeItem("debug"):y.storage.debug=t}catch(a){}}function s(){var t;try{t=y.storage.debug}catch(a){}return!t&&m!==void 0&&"env"in m&&(t=m.env.DEBUG),t}y=A.exports=r("./debug"),y.log=u,y.formatArgs=i,y.save=f,y.load=s,y.useColors=b,y.storage=typeof chrome!="undefined"&&chrome.storage!==void 0?chrome.storage.local:function(){try{return window.localStorage}catch(t){}}(),y.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],y.formatters.j=function(t){try{return JSON.stringify(t)}catch(a){return"[UnexpectedJSONParseError]: "+a.message}},y.enable(s())}).call(this,r("_process"))},{"./debug":156,_process:173}],156:[function(r,A,y){function m(a){var o,c=0;for(o in a)c=(c<<5)-c+a.charCodeAt(o),c|=0;return y.colors[Math.abs(c)%y.colors.length]}function b(a){function o(){if(o.enabled){var c=o,d=+new Date,l=d-(t||d);c.diff=l,c.prev=t,c.curr=d,t=d;for(var x=new Array(arguments.length),w=0;w<x.length;w++)x[w]=arguments[w];x[0]=y.coerce(x[0]),typeof x[0]!="string"&&x.unshift("%O");var p=0;x[0]=x[0].replace(/%([a-zA-Z%])/g,function(O,S){if(O==="%%")return O;p++;var h=y.formatters[S];if(typeof h=="function"){var E=x[p];O=h.call(c,E),x.splice(p,1),p--}return O}),y.formatArgs.call(c,x),(o.log||y.log||console.log.bind(console)).apply(c,x)}}return o.namespace=a,o.enabled=y.enabled(a),o.useColors=y.useColors(),o.color=m(a),typeof y.init=="function"&&y.init(o),o}function i(a){y.save(a),y.names=[],y.skips=[];for(var o=(typeof a=="string"?a:"").split(/[\s,]+/),c=o.length,d=0;d<c;d++)o[d]&&(a=o[d].replace(/\*/g,".*?"),a[0]==="-"?y.skips.push(new RegExp("^"+a.substr(1)+"$")):y.names.push(new RegExp("^"+a+"$")))}function u(){y.enable("")}function f(a){var o,c;for(o=0,c=y.skips.length;o<c;o++)if(y.skips[o].test(a))return!1;for(o=0,c=y.names.length;o<c;o++)if(y.names[o].test(a))return!0;return!1}function s(a){return a instanceof Error?a.stack||a.message:a}y=A.exports=b.debug=b.default=b,y.coerce=s,y.disable=u,y.enable=i,y.enabled=f,y.humanize=r("ms"),y.names=[],y.skips=[],y.formatters={};var t},{ms:169}],157:[function(r,A,y){"use strict";function m(i){var u=""+i,f=b.exec(u);if(!f)return u;var s,t="",a=0,o=0;for(a=f.index;a<u.length;a++){switch(u.charCodeAt(a)){case 34:s=""";break;case 38:s="&";break;case 39:s="'";break;case 60:s="<";break;case 62:s=">";break;default:continue}o!==a&&(t+=u.substring(o,a)),o=a+1,t+=s}return o!==a?t+u.substring(o,a):t}var b=/["'&<>]/;A.exports=m},{}],158:[function(r,A,y){function m(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function b(s){return typeof s=="function"}function i(s){return typeof s=="number"}function u(s){return typeof s=="object"&&s!==null}function f(s){return s===void 0}A.exports=m,m.EventEmitter=m,m.prototype._events=void 0,m.prototype._maxListeners=void 0,m.defaultMaxListeners=10,m.prototype.setMaxListeners=function(s){if(!i(s)||s<0||isNaN(s))throw TypeError("n must be a positive number");return this._maxListeners=s,this},m.prototype.emit=function(s){var t,a,o,c,d,l;if(this._events||(this._events={}),s==="error"&&(!this._events.error||u(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var x=new Error('Uncaught, unspecified "error" event. ('+t+")");throw x.context=t,x}if(a=this._events[s],f(a))return!1;if(b(a))switch(arguments.length){case 1:a.call(this);break;case 2:a.call(this,arguments[1]);break;case 3:a.call(this,arguments[1],arguments[2]);break;default:c=Array.prototype.slice.call(arguments,1),a.apply(this,c)}else if(u(a))for(c=Array.prototype.slice.call(arguments,1),l=a.slice(),o=l.length,d=0;d<o;d++)l[d].apply(this,c);return!0},m.prototype.addListener=function(s,t){var a;if(!b(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",s,b(t.listener)?t.listener:t),this._events[s]?u(this._events[s])?this._events[s].push(t):this._events[s]=[this._events[s],t]:this._events[s]=t,u(this._events[s])&&!this._events[s].warned&&(a=f(this._maxListeners)?m.defaultMaxListeners:this._maxListeners)&&a>0&&this._events[s].length>a&&(this._events[s].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[s].length),typeof console.trace=="function"&&console.trace()),this},m.prototype.on=m.prototype.addListener,m.prototype.once=function(s,t){function a(){this.removeListener(s,a),o||(o=!0,t.apply(this,arguments))}if(!b(t))throw TypeError("listener must be a function");var o=!1;return a.listener=t,this.on(s,a),this},m.prototype.removeListener=function(s,t){var a,o,c,d;if(!b(t))throw TypeError("listener must be a function");if(!this._events||!this._events[s])return this;if(a=this._events[s],c=a.length,o=-1,a===t||b(a.listener)&&a.listener===t)delete this._events[s],this._events.removeListener&&this.emit("removeListener",s,t);else if(u(a)){for(d=c;d-- >0;)if(a[d]===t||a[d].listener&&a[d].listener===t){o=d;break}if(o<0)return this;a.length===1?(a.length=0,delete this._events[s]):a.splice(o,1),this._events.removeListener&&this.emit("removeListener",s,t)}return this},m.prototype.removeAllListeners=function(s){var t,a;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[s]&&delete this._events[s],this;if(arguments.length===0){for(t in this._events)t!=="removeListener"&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(a=this._events[s],b(a))this.removeListener(s,a);else if(a)for(;a.length;)this.removeListener(s,a[a.length-1]);return delete this._events[s],this},m.prototype.listeners=function(s){return this._events&&this._events[s]?b(this._events[s])?[this._events[s]]:this._events[s].slice():[]},m.prototype.listenerCount=function(s){if(this._events){var t=this._events[s];if(b(t))return 1;if(t)return t.length}return 0},m.listenerCount=function(s,t){return s.listenerCount(t)}},{}],159:[function(r,A,y){var m=r("http"),b=A.exports;for(var i in m)m.hasOwnProperty(i)&&(b[i]=m[i]);b.request=function(u,f){return u||(u={}),u.scheme="https",u.protocol="https:",m.request.call(this,u,f)}},{http:196}],160:[function(r,A,y){"use strict";var m=r("util"),b=r("ms");A.exports=function(i){if(typeof i=="number")return i;var u=b(i);if(u===void 0){var f=new Error(m.format("humanize-ms(%j) result undefined",i));console.warn(f.stack)}return u}},{ms:169,util:207}],161:[function(r,A,y){y.read=function(m,b,i,u,f){var s,t,a=8*f-u-1,o=(1<<a)-1,c=o>>1,d=-7,l=i?f-1:0,x=i?-1:1,w=m[b+l];for(l+=x,s=w&(1<<-d)-1,w>>=-d,d+=a;d>0;s=256*s+m[b+l],l+=x,d-=8);for(t=s&(1<<-d)-1,s>>=-d,d+=u;d>0;t=256*t+m[b+l],l+=x,d-=8);if(s===0)s=1-c;else{if(s===o)return t?NaN:1/0*(w?-1:1);t+=Math.pow(2,u),s-=c}return(w?-1:1)*t*Math.pow(2,s-u)},y.write=function(m,b,i,u,f,s){var t,a,o,c=8*s-f-1,d=(1<<c)-1,l=d>>1,x=f===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=u?0:s-1,p=u?1:-1,O=b<0||b===0&&1/b<0?1:0;for(b=Math.abs(b),isNaN(b)||b===1/0?(a=isNaN(b)?1:0,t=d):(t=Math.floor(Math.log(b)/Math.LN2),b*(o=Math.pow(2,-t))<1&&(t--,o*=2),b+=t+l>=1?x/o:x*Math.pow(2,1-l),b*o>=2&&(t++,o/=2),t+l>=d?(a=0,t=d):t+l>=1?(a=(b*o-1)*Math.pow(2,f),t+=l):(a=b*Math.pow(2,l-1)*Math.pow(2,f),t=0));f>=8;m[i+w]=255&a,w+=p,a/=256,f-=8);for(t=t<<f|a,c+=f;c>0;m[i+w]=255&t,w+=p,t/=256,c-=8);m[i+w-p]|=128*O}},{}],162:[function(r,A,y){typeof Object.create=="function"?A.exports=function(m,b){m.super_=b,m.prototype=Object.create(b.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}})}:A.exports=function(m,b){m.super_=b;var i=function(){};i.prototype=b.prototype,m.prototype=new i,m.prototype.constructor=m}},{}],163:[function(r,A,y){function m(i){return!!i.constructor&&typeof i.constructor.isBuffer=="function"&&i.constructor.isBuffer(i)}function b(i){return typeof i.readFloatLE=="function"&&typeof i.slice=="function"&&m(i.slice(0,0))}A.exports=function(i){return i!=null&&(m(i)||b(i)||!!i._isBuffer)}},{}],164:[function(r,A,y){!function(m){function b(f){return u.call(f).replace(/^[^{]*{\s*/,"").replace(/\s*}[^}]*$/,"")}function i(f){return typeof f=="function"&&(/^class(\s|\{\}$)/.test(u.call(f))||/^.*classCallCheck\(/.test(b(f)))}var u=Function.prototype.toString;y!==void 0?(A!==void 0&&A.exports&&(y=A.exports=i),y.isClass=i):typeof Oe=="function"&&Oe.amd?Oe([],function(){return i}):m.isClass=i}(this)},{}],165:[function(r,A,y){"use strict";function m(s){var t=s.slice(2);return t=t[0].toLowerCase()+t.slice(1)}var b=r("core-util-is"),i=r("isstream"),u=r("is-class");Object.keys(b).map(function(s){y[m(s)]=b[s]}),y.stream=i,y.readableStream=i.isReadable,y.writableStream=i.isWritable,y.duplexStream=i.isDuplex,y.class=u,y.finite=function(s){return Number.isFinite(s)},y.NaN=function(s){return Number.isNaN(s)},y.generator=function(s){return s&&typeof s.next=="function"&&typeof s.throw=="function"},y.generatorFunction=function(s){return s&&s.constructor&&s.constructor.name==="GeneratorFunction"},y.asyncFunction=function(s){return s&&s.constructor&&s.constructor.name==="AsyncFunction"},y.promise=function(s){return s&&typeof s.then=="function"};var f=Math.pow(2,31);y.int=function(s){return b.isNumber(s)&&s%1==0},y.int32=function(s){return y.int(s)&&s<f&&s>=-f},y.long=function(s){return y.int(s)&&(s>=f||s<-f)},y.Long=function(s){return y.object(s)&&y.number(s.high)&&y.number(s.low)},y.double=function(s){return b.isNumber(s)&&!isNaN(s)&&s%1!=0},y.date=function(s){return s instanceof Date},y.regExp=function(s){return s instanceof RegExp},y.regexp=y.regExp,y.error=function(s){return s instanceof Error},y.array=function(s){return Array.isArray(s)}},{"core-util-is":153,"is-class":164,isstream:167}],166:[function(r,A,y){var m={}.toString;A.exports=Array.isArray||function(b){return m.call(b)=="[object Array]"}},{}],167:[function(r,A,y){function m(s){return s instanceof f.Stream}function b(s){return m(s)&&typeof s._read=="function"&&typeof s._readableState=="object"}function i(s){return m(s)&&typeof s._write=="function"&&typeof s._writableState=="object"}function u(s){return b(s)&&i(s)}var f=r("stream");A.exports=m,A.exports.isReadable=b,A.exports.isWritable=i,A.exports.isDuplex=u},{stream:195}],168:[function(r,A,y){"use strict";function m(i,u,f){if(!i)throw new TypeError("argument dest is required");if(!u)throw new TypeError("argument src is required");return f===void 0&&(f=!0),Object.getOwnPropertyNames(u).forEach(function(s){if(f||!b.call(i,s)){var t=Object.getOwnPropertyDescriptor(u,s);Object.defineProperty(i,s,t)}}),i}A.exports=m;var b=Object.prototype.hasOwnProperty},{}],169:[function(r,A,y){function m(c){if(c=String(c),!(c.length>100)){var d=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(c);if(d){var l=parseFloat(d[1]);switch((d[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return l*o;case"days":case"day":case"d":return l*a;case"hours":case"hour":case"hrs":case"hr":case"h":return l*t;case"minutes":case"minute":case"mins":case"min":case"m":return l*s;case"seconds":case"second":case"secs":case"sec":case"s":return l*f;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:return}}}}function b(c){return c>=a?Math.round(c/a)+"d":c>=t?Math.round(c/t)+"h":c>=s?Math.round(c/s)+"m":c>=f?Math.round(c/f)+"s":c+"ms"}function i(c){return u(c,a,"day")||u(c,t,"hour")||u(c,s,"minute")||u(c,f,"second")||c+" ms"}function u(c,d,l){if(!(c<d))return c<1.5*d?Math.floor(c/d)+" "+l:Math.ceil(c/d)+" "+l+"s"}var f=1e3,s=60*f,t=60*s,a=24*t,o=365.25*a;A.exports=function(c,d){d=d||{};var l=typeof c;if(l==="string"&&c.length>0)return m(c);if(l==="number"&&isNaN(c)===!1)return d.long?i(c):b(c);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(c))}},{}],170:[function(r,A,y){(function(m){function b(s,t){for(var a=0,o=s.length-1;o>=0;o--){var c=s[o];c==="."?s.splice(o,1):c===".."?(s.splice(o,1),a++):a&&(s.splice(o,1),a--)}if(t)for(;a--;a)s.unshift("..");return s}function i(s){typeof s!="string"&&(s+="");var t,a=0,o=-1,c=!0;for(t=s.length-1;t>=0;--t)if(s.charCodeAt(t)===47){if(!c){a=t+1;break}}else o===-1&&(c=!1,o=t+1);return o===-1?"":s.slice(a,o)}function u(s,t){if(s.filter)return s.filter(t);for(var a=[],o=0;o<s.length;o++)t(s[o],o,s)&&a.push(s[o]);return a}y.resolve=function(){for(var s="",t=!1,a=arguments.length-1;a>=-1&&!t;a--){var o=a>=0?arguments[a]:m.cwd();if(typeof o!="string")throw new TypeError("Arguments to path.resolve must be strings");o&&(s=o+"/"+s,t=o.charAt(0)==="/")}return s=b(u(s.split("/"),function(c){return!!c}),!t).join("/"),(t?"/":"")+s||"."},y.normalize=function(s){var t=y.isAbsolute(s),a=f(s,-1)==="/";return s=b(u(s.split("/"),function(o){return!!o}),!t).join("/"),s||t||(s="."),s&&a&&(s+="/"),(t?"/":"")+s},y.isAbsolute=function(s){return s.charAt(0)==="/"},y.join=function(){var s=Array.prototype.slice.call(arguments,0);return y.normalize(u(s,function(t,a){if(typeof t!="string")throw new TypeError("Arguments to path.join must be strings");return t}).join("/"))},y.relative=function(s,t){function a(p){for(var O=0;O<p.length&&p[O]==="";O++);for(var S=p.length-1;S>=0&&p[S]==="";S--);return O>S?[]:p.slice(O,S-O+1)}s=y.resolve(s).substr(1),t=y.resolve(t).substr(1);for(var o=a(s.split("/")),c=a(t.split("/")),d=Math.min(o.length,c.length),l=d,x=0;x<d;x++)if(o[x]!==c[x]){l=x;break}for(var w=[],x=l;x<o.length;x++)w.push("..");return w=w.concat(c.slice(l)),w.join("/")},y.sep="/",y.delimiter=":",y.dirname=function(s){if(typeof s!="string"&&(s+=""),s.length===0)return".";for(var t=s.charCodeAt(0),a=t===47,o=-1,c=!0,d=s.length-1;d>=1;--d)if((t=s.charCodeAt(d))===47){if(!c){o=d;break}}else c=!1;return o===-1?a?"/":".":a&&o===1?"/":s.slice(0,o)},y.basename=function(s,t){var a=i(s);return t&&a.substr(-1*t.length)===t&&(a=a.substr(0,a.length-t.length)),a},y.extname=function(s){typeof s!="string"&&(s+="");for(var t=-1,a=0,o=-1,c=!0,d=0,l=s.length-1;l>=0;--l){var x=s.charCodeAt(l);if(x!==47)o===-1&&(c=!1,o=l+1),x===46?t===-1?t=l:d!==1&&(d=1):t!==-1&&(d=-1);else if(!c){a=l+1;break}}return t===-1||o===-1||d===0||d===1&&t===o-1&&t===a+1?"":s.slice(t,o)};var f="ab".substr(-1)==="b"?function(s,t,a){return s.substr(t,a)}:function(s,t,a){return t<0&&(t=s.length+t),s.substr(t,a)}}).call(this,r("_process"))},{_process:173}],171:[function(r,A,y){(function(m){(function(){"use strict";function b(I){return I=String(I),I.charAt(0).toUpperCase()+I.slice(1)}function i(I,X,R){var V={"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 X&&R&&/^Win/i.test(I)&&!/^Windows Phone /i.test(I)&&(V=V[/[\d.]+$/.exec(I)])&&(I="Windows "+V),I=String(I),X&&R&&(I=I.replace(RegExp(X,"i"),R)),I=f(I.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(I,X){var R=-1,V=I?I.length:0;if(typeof V=="number"&&V>-1&&V<=h)for(;++R<V;)X(I[R],R,I);else s(I,X)}function f(I){return I=d(I),/^(?:webOS|i(?:OS|P))/.test(I)?I:b(I)}function s(I,X){for(var R in I)P.call(I,R)&&X(I[R],R,I)}function t(I){return I==null?b(I):g.call(I).slice(8,-1)}function a(I,X){var R=I!=null?typeof I[X]:"number";return!(/^(?:boolean|number|string|undefined)$/.test(R)||R=="object"&&!I[X])}function o(I){return String(I).replace(/([ -])(?!$)/g,"$1?")}function c(I,X){var R=null;return u(I,function(V,H){R=X(R,V,H,I)}),R}function d(I){return String(I).replace(/^ +| +$/g,"")}function l(I){function X(T){return c(T,function(v,_){var B=_.pattern||o(_);return!v&&(v=RegExp("\\b"+B+" *\\d+[.\\w_]*","i").exec(I)||RegExp("\\b"+B+" *\\w+-[\\w]*","i").exec(I)||RegExp("\\b"+B+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(I))&&((v=String(_.label&&!RegExp(B,"i").test(_.label)?_.label:v).split("/"))[1]&&!/[\d.]+/.test(v[0])&&(v[0]+=" "+v[1]),_=_.label||_,v=f(v[0].replace(RegExp(B,"i"),_).replace(RegExp("; *(?:"+_+"[_-])?","i")," ").replace(RegExp("("+_+")[-_.]?(\\w)","i"),"$1 $2"))),v})}function R(){return this.description||""}var V=w,H=I&&typeof I=="object"&&t(I)!="String";H&&(V=I,I=null);var $=V.navigator||{},ae=$.userAgent||"";I||(I=ae);var M,Q,Y=H?!!$.likeChrome:/\bChrome\b/.test(I)&&!/internal|\n/i.test(g.toString()),W=H?"Object":"ScriptBridgingProxyObject",D=H?"Object":"Environment",C=H&&V.java?"JavaPackage":t(V.java),U=H?"Object":"RuntimeObject",G=/\bJava/.test(C)&&V.java,J=G&&t(V.environment)==D,ne=G?"a":"\u4F2A",fe=G?"b":"\u5C3E",se=V.document||{},me=V.operamini||V.opera,ve=E.test(ve=H&&me?me["[[Class]]"]:t(me))?ve:me=null,ie=I,oe=[],le=null,K=I==ae,q=K&&me&&typeof me.version=="function"&&me.version(),ce=function(T){return c(T,function(v,_){return v||RegExp("\\b"+(_.pattern||o(_))+"\\b","i").exec(I)&&(_.label||_)})}([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),ue=function(T){return c(T,function(v,_){return v||RegExp("\\b"+(_.pattern||o(_))+"\\b","i").exec(I)&&(_.label||_)})}(["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"]),we=X([{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"]),k=function(T){return c(T,function(v,_,B){return v||(_[we]||_[/^[a-z]+(?: +[a-z]+\b)*/i.exec(we)]||RegExp("\\b"+o(B)+"(?:\\b|\\w*\\d)","i").exec(I))&&B})}({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}}),e=function(T){return c(T,function(v,_){var B=_.pattern||o(_);return!v&&(v=RegExp("\\b"+B+"(?:/[\\d.]+|[ \\w.]*)","i").exec(I))&&(v=i(v,B,_.label||_)),v})}(["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(ce&&(ce=[ce]),k&&!we&&(we=X([k])),(M=/\bGoogle TV\b/.exec(we))&&(we=M[0]),/\bSimulator\b/i.test(I)&&(we=(we?we+" ":"")+"Simulator"),ue=="Opera Mini"&&/\bOPiOS\b/.test(I)&&oe.push("running in Turbo/Uncompressed mode"),ue=="IE"&&/\blike iPhone OS\b/.test(I)?(M=l(I.replace(/like iPhone OS/,"")),k=M.manufacturer,we=M.product):/^iP/.test(we)?(ue||(ue="Safari"),e="iOS"+((M=/ OS ([\d_]+)/i.exec(I))?" "+M[1].replace(/_/g,"."):"")):ue!="Konqueror"||/buntu/i.test(e)?k&&k!="Google"&&(/Chrome/.test(ue)&&!/\bMobile Safari\b/i.test(I)||/\bVita\b/.test(we))||/\bAndroid\b/.test(e)&&/^Chrome/.test(ue)&&/\bVersion\//i.test(I)?(ue="Android Browser",e=/\bAndroid\b/.test(e)?e:"Android"):ue=="Silk"?(/\bMobi/i.test(I)||(e="Android",oe.unshift("desktop mode")),/Accelerated *= *true/i.test(I)&&oe.unshift("accelerated")):ue=="PaleMoon"&&(M=/\bFirefox\/([\d.]+)\b/.exec(I))?oe.push("identifying as Firefox "+M[1]):ue=="Firefox"&&(M=/\b(Mobile|Tablet|TV)\b/i.exec(I))?(e||(e="Firefox OS"),we||(we=M[1])):!ue||(M=!/\bMinefield\b/i.test(I)&&/\b(?:Firefox|Safari)\b/.exec(ue))?(ue&&!we&&/[\/,]|^[^(]+?\)/.test(I.slice(I.indexOf(M+"/")+8))&&(ue=null),(M=we||k||e)&&(we||k||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(e))&&(ue=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(e)?e:M)+" Browser")):ue=="Electron"&&(M=(/\bChrome\/([\d.]+)\b/.exec(I)||0)[1])&&oe.push("Chromium "+M):e="Kubuntu",q||(q=function(T){return c(T,function(v,_){return v||(RegExp(_+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(I)||0)[1]||null})}(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",o(ue),"(?:Firefox|Minefield|NetFront)"])),(M=ce=="iCab"&&parseFloat(q)>3&&"WebKit"||/\bOpera\b/.test(ue)&&(/\bOPR\b/.test(I)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(I)&&!/^(?:Trident|EdgeHTML)$/.test(ce)&&"WebKit"||!ce&&/\bMSIE\b/i.test(I)&&(e=="Mac OS"?"Tasman":"Trident")||ce=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(ue)&&"NetFront")&&(ce=[M]),ue=="IE"&&(M=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(I)||0)[1])?(ue+=" Mobile",e="Windows Phone "+(/\+$/.test(M)?M:M+".x"),oe.unshift("desktop mode")):/\bWPDesktop\b/i.test(I)?(ue="IE Mobile",e="Windows Phone 8.x",oe.unshift("desktop mode"),q||(q=(/\brv:([\d.]+)/.exec(I)||0)[1])):ue!="IE"&&ce=="Trident"&&(M=/\brv:([\d.]+)/.exec(I))&&(ue&&oe.push("identifying as "+ue+(q?" "+q:"")),ue="IE",q=M[1]),K){if(a(V,"global"))if(G&&(M=G.lang.System,ie=M.getProperty("os.arch"),e=e||M.getProperty("os.name")+" "+M.getProperty("os.version")),J){try{q=V.require("ringo/engine").version.join("."),ue="RingoJS"}catch(T){(M=V.system)&&M.global.system==V.system&&(ue="Narwhal",e||(e=M[0].os||null))}ue||(ue="Rhino")}else typeof V.process=="object"&&!V.process.browser&&(M=V.process)&&(typeof M.versions=="object"&&(typeof M.versions.electron=="string"?(oe.push("Node "+M.versions.node),ue="Electron",q=M.versions.electron):typeof M.versions.nw=="string"&&(oe.push("Chromium "+q,"Node "+M.versions.node),ue="NW.js",q=M.versions.nw)),ue||(ue="Node.js",ie=M.arch,e=M.platform,q=/[\d.]+/.exec(M.version),q=q?q[0]:null));else t(M=V.runtime)==W?(ue="Adobe AIR",e=M.flash.system.Capabilities.os):t(M=V.phantom)==U?(ue="PhantomJS",q=(M=M.version||null)&&M.major+"."+M.minor+"."+M.patch):typeof se.documentMode=="number"&&(M=/\bTrident\/(\d+)/i.exec(I))?(q=[q,se.documentMode],(M=+M[1]+4)!=q[1]&&(oe.push("IE "+q[1]+" mode"),ce&&(ce[1]=""),q[1]=M),q=ue=="IE"?String(q[1].toFixed(1)):q[0]):typeof se.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(ue)&&(oe.push("masking as "+ue+" "+q),ue="IE",q="11.0",ce=["Trident"],e="Windows");e=e&&f(e)}if(q&&(M=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(q)||/(?:alpha|beta)(?: ?\d)?/i.exec(I+";"+(K&&$.appMinorVersion))||/\bMinefield\b/i.test(I)&&"a")&&(le=/b/i.test(M)?"beta":"alpha",q=q.replace(RegExp(M+"\\+?$"),"")+(le=="beta"?fe:ne)+(/\d+\+?/.exec(M)||"")),ue=="Fennec"||ue=="Firefox"&&/\b(?:Android|Firefox OS)\b/.test(e))ue="Firefox Mobile";else if(ue=="Maxthon"&&q)q=q.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(we))we=="Xbox 360"&&(e=null),we=="Xbox 360"&&/\bIEMobile\b/.test(I)&&oe.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(ue)&&(!ue||we||/Browser|Mobi/.test(ue))||e!="Windows CE"&&!/Mobi/i.test(I))if(ue=="IE"&&K)try{V.external===null&&oe.unshift("platform preview")}catch(T){oe.unshift("embedded")}else(/\bBlackBerry\b/.test(we)||/\bBB10\b/.test(I))&&(M=(RegExp(we.replace(/ +/g," *")+"/([.\\d]+)","i").exec(I)||0)[1]||q)?(M=[M,/BB10/.test(I)],e=(M[1]?(we=null,k="BlackBerry"):"Device Software")+" "+M[0],q=null):this!=s&&we!="Wii"&&(K&&me||/Opera/.test(ue)&&/\b(?:MSIE|Firefox)\b/i.test(I)||ue=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(e)||ue=="IE"&&(e&&!/^Win/.test(e)&&q>5.5||/\bWindows XP\b/.test(e)&&q>8||q==8&&!/\bTrident\b/.test(I)))&&!E.test(M=l.call(s,I.replace(E,"")+";"))&&M.name&&(M="ing as "+M.name+((M=M.version)?" "+M:""),E.test(ue)?(/\bIE\b/.test(M)&&e=="Mac OS"&&(e=null),M="identify"+M):(M="mask"+M,ue=ve?f(ve.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(M)&&(e=null),K||(q=null)),ce=["Presto"],oe.push(M));else ue+=" Mobile";(M=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(I)||0)[1])&&(M=[parseFloat(M.replace(/\.(\d)$/,".0$1")),M],ue=="Safari"&&M[1].slice(-1)=="+"?(ue="WebKit Nightly",le="alpha",q=M[1].slice(0,-1)):q!=M[1]&&q!=(M[2]=(/\bSafari\/([\d.]+\+?)/i.exec(I)||0)[1])||(q=null),M[1]=(/\bChrome\/([\d.]+)/i.exec(I)||0)[1],M[0]==537.36&&M[2]==537.36&&parseFloat(M[1])>=28&&ce=="WebKit"&&(ce=["Blink"]),K&&(Y||M[1])?(ce&&(ce[1]="like Chrome"),M=M[1]||(M=M[0],M<530?1:M<532?2:M<532.05?3:M<533?4:M<534.03?5:M<534.07?6:M<534.1?7:M<534.13?8:M<534.16?9:M<534.24?10:M<534.3?11:M<535.01?12:M<535.02?"13+":M<535.07?15:M<535.11?16:M<535.19?17:M<536.05?18:M<536.1?19:M<537.01?20:M<537.11?"21+":M<537.13?23:M<537.18?24:M<537.24?25:M<537.36?26:ce!="Blink"?"27":"28")):(ce&&(ce[1]="like Safari"),M=M[0],M=M<400?1:M<500?2:M<526?3:M<533?4:M<534?"4+":M<535?5:M<537?6:M<538?7:M<601?8:"8"),ce&&(ce[1]+=" "+(M+=typeof M=="number"?".x":/[.+]/.test(M)?"":"+")),ue=="Safari"&&(!q||parseInt(q)>45)&&(q=M)),ue=="Opera"&&(M=/\bzbov|zvav$/.exec(e))?(ue+=" ",oe.unshift("desktop mode"),M=="zvav"?(ue+="Mini",q=null):ue+="Mobile",e=e.replace(RegExp(" *"+M+"$"),"")):ue=="Safari"&&/\bChrome\b/.exec(ce&&ce[1])&&(oe.unshift("desktop mode"),ue="Chrome Mobile",q=null,/\bOS X\b/.test(e)?(k="Apple",e="iOS 4.3+"):e=null),q&&q.indexOf(M=/[\d.]+$/.exec(e))==0&&I.indexOf("/"+M+"-")>-1&&(e=d(e.replace(M,""))),ce&&!/\b(?:Avant|Nook)\b/.test(ue)&&(/Browser|Lunascape|Maxthon/.test(ue)||ue!="Safari"&&/^iOS/.test(e)&&/\bSafari\b/.test(ce[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(ue)&&ce[1])&&(M=ce[ce.length-1])&&oe.push(M),oe.length&&(oe=["("+oe.join("; ")+")"]),k&&we&&we.indexOf(k)<0&&oe.push("on "+k),we&&oe.push((/^on /.test(oe[oe.length-1])?"":"on ")+we),e&&(M=/ ([\d.+]+)$/.exec(e),Q=M&&e.charAt(e.length-M[0].length-1)=="/",e={architecture:32,family:M&&!Q?e.replace(M[0],""):e,version:M?M[1]:null,toString:function(){var v=this.version;return this.family+(v&&!Q?" "+v:"")+(this.architecture==64?" 64-bit":"")}}),(M=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(ie))&&!/\bi686\b/i.test(ie)?(e&&(e.architecture=64,e.family=e.family.replace(RegExp(" *"+M),"")),ue&&(/\bWOW64\b/i.test(I)||K&&/\w(?:86|32)$/.test($.cpuClass||$.platform)&&!/\bWin64; x64\b/i.test(I))&&oe.unshift("32-bit")):e&&/^OS X/.test(e.family)&&ue=="Chrome"&&parseFloat(q)>=39&&(e.architecture=64),I||(I=null);var n={};return n.description=I,n.layout=ce&&ce[0],n.manufacturer=k,n.name=ue,n.prerelease=le,n.product=we,n.ua=I,n.version=ue&&q,n.os=e||{architecture:null,family:null,version:null,toString:function(){return"null"}},n.parse=l,n.toString=R,n.version&&oe.unshift(q),n.name&&oe.unshift(ue),e&&ue&&(e!=String(e).split(" ")[0]||e!=ue.split(" ")[0]&&!we)&&oe.push(we?"("+e+")":"on "+e),oe.length&&(n.description=oe.join(" ")),n}var x={function:!0,object:!0},w=x[typeof window]&&window||this,p=x[typeof y]&&y,O=x[typeof A]&&A&&!A.nodeType&&A,S=p&&O&&typeof m=="object"&&m;!S||S.global!==S&&S.window!==S&&S.self!==S||(w=S);var h=Math.pow(2,53)-1,E=/\bOpera/,L=Object.prototype,P=L.hasOwnProperty,g=L.toString,F=l();typeof Oe=="function"&&typeof Oe.amd=="object"&&Oe.amd?(w.platform=F,Oe(function(){return F})):p&&O?s(F,function(I,X){p[X]=I}):w.platform=F}).call(this)}).call(this,typeof Ye!="undefined"?Ye:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],172:[function(r,A,y){(function(m){"use strict";function b(i,u,f,s){if(typeof i!="function")throw new TypeError('"callback" argument must be a function');var t,a,o=arguments.length;switch(o){case 0:case 1:return m.nextTick(i);case 2:return m.nextTick(function(){i.call(null,u)});case 3:return m.nextTick(function(){i.call(null,u,f)});case 4:return m.nextTick(function(){i.call(null,u,f,s)});default:for(t=new Array(o-1),a=0;a<t.length;)t[a++]=arguments[a];return m.nextTick(function(){i.apply(null,t)})}}!m.version||m.version.indexOf("v0.")===0||m.version.indexOf("v1.")===0&&m.version.indexOf("v1.8.")!==0?A.exports={nextTick:b}:A.exports=m}).call(this,r("_process"))},{_process:173}],173:[function(r,A,y){function m(){throw new Error("setTimeout has not been defined")}function b(){throw new Error("clearTimeout has not been defined")}function i(O){if(o===setTimeout)return setTimeout(O,0);if((o===m||!o)&&setTimeout)return o=setTimeout,setTimeout(O,0);try{return o(O,0)}catch(S){try{return o.call(null,O,0)}catch(h){return o.call(this,O,0)}}}function u(O){if(c===clearTimeout)return clearTimeout(O);if((c===b||!c)&&clearTimeout)return c=clearTimeout,clearTimeout(O);try{return c(O)}catch(S){try{return c.call(null,O)}catch(h){return c.call(this,O)}}}function f(){w&&l&&(w=!1,l.length?x=l.concat(x):p=-1,x.length&&s())}function s(){if(!w){var O=i(f);w=!0;for(var S=x.length;S;){for(l=x,x=[];++p<S;)l&&l[p].run();p=-1,S=x.length}l=null,w=!1,u(O)}}function t(O,S){this.fun=O,this.array=S}function a(){}var o,c,d=A.exports={};!function(){try{o=typeof setTimeout=="function"?setTimeout:m}catch(O){o=m}try{c=typeof clearTimeout=="function"?clearTimeout:b}catch(O){c=b}}();var l,x=[],w=!1,p=-1;d.nextTick=function(O){var S=new Array(arguments.length-1);if(arguments.length>1)for(var h=1;h<arguments.length;h++)S[h-1]=arguments[h];x.push(new t(O,S)),x.length!==1||w||i(s)},t.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=a,d.addListener=a,d.once=a,d.off=a,d.removeListener=a,d.removeAllListeners=a,d.emit=a,d.prependListener=a,d.prependOnceListener=a,d.listeners=function(O){return[]},d.binding=function(O){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(O){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},{}],174:[function(r,A,y){(function(m){!function(b){function i(C){throw new RangeError(Q[C])}function u(C,U){for(var G=C.length,J=[];G--;)J[G]=U(C[G]);return J}function f(C,U){var G=C.split("@"),J="";return G.length>1&&(J=G[0]+"@",C=G[1]),C=C.replace(M,"."),J+u(C.split("."),U).join(".")}function s(C){for(var U,G,J=[],ne=0,fe=C.length;ne<fe;)U=C.charCodeAt(ne++),U>=55296&&U<=56319&&ne<fe?(G=C.charCodeAt(ne++),(64512&G)==56320?J.push(((1023&U)<<10)+(1023&G)+65536):(J.push(U),ne--)):J.push(U);return J}function t(C){return u(C,function(U){var G="";return U>65535&&(U-=65536,G+=D(U>>>10&1023|55296),U=56320|1023&U),G+=D(U)}).join("")}function a(C){return C-48<10?C-22:C-65<26?C-65:C-97<26?C-97:P}function o(C,U){return C+22+75*(C<26)-((U!=0)<<5)}function c(C,U,G){var J=0;for(C=G?W(C/X):C>>1,C+=W(C/U);C>Y*F>>1;J+=P)C=W(C/Y);return W(J+(Y+1)*C/(C+I))}function d(C){var U,G,J,ne,fe,se,me,ve,ie,oe,le=[],K=C.length,q=0,ce=V,ue=R;for(G=C.lastIndexOf(H),G<0&&(G=0),J=0;J<G;++J)C.charCodeAt(J)>=128&&i("not-basic"),le.push(C.charCodeAt(J));for(ne=G>0?G+1:0;ne<K;){for(fe=q,se=1,me=P;ne>=K&&i("invalid-input"),ve=a(C.charCodeAt(ne++)),(ve>=P||ve>W((L-q)/se))&&i("overflow"),q+=ve*se,ie=me<=ue?g:me>=ue+F?F:me-ue,!(ve<ie);me+=P)oe=P-ie,se>W(L/oe)&&i("overflow"),se*=oe;U=le.length+1,ue=c(q-fe,U,fe==0),W(q/U)>L-ce&&i("overflow"),ce+=W(q/U),q%=U,le.splice(q++,0,ce)}return t(le)}function l(C){var U,G,J,ne,fe,se,me,ve,ie,oe,le,K,q,ce,ue,we=[];for(C=s(C),K=C.length,U=V,G=0,fe=R,se=0;se<K;++se)(le=C[se])<128&&we.push(D(le));for(J=ne=we.length,ne&&we.push(H);J<K;){for(me=L,se=0;se<K;++se)(le=C[se])>=U&&le<me&&(me=le);for(q=J+1,me-U>W((L-G)/q)&&i("overflow"),G+=(me-U)*q,U=me,se=0;se<K;++se)if(le=C[se],le<U&&++G>L&&i("overflow"),le==U){for(ve=G,ie=P;oe=ie<=fe?g:ie>=fe+F?F:ie-fe,!(ve<oe);ie+=P)ue=ve-oe,ce=P-oe,we.push(D(o(oe+ue%ce,0))),ve=W(ue/ce);we.push(D(o(ve,0))),fe=c(G,q,J==ne),G=0,++J}++G,++U}return we.join("")}function x(C){return f(C,function(U){return $.test(U)?d(U.slice(4).toLowerCase()):U})}function w(C){return f(C,function(U){return ae.test(U)?"xn--"+l(U):U})}var p=typeof y=="object"&&y&&!y.nodeType&&y,O=typeof A=="object"&&A&&!A.nodeType&&A,S=typeof m=="object"&&m;S.global!==S&&S.window!==S&&S.self!==S||(b=S);var h,E,L=2147483647,P=36,g=1,F=26,I=38,X=700,R=72,V=128,H="-",$=/^xn--/,ae=/[^\x20-\x7E]/,M=/[\x2E\u3002\uFF0E\uFF61]/g,Q={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Y=P-g,W=Math.floor,D=String.fromCharCode;if(h={version:"1.4.1",ucs2:{decode:s,encode:t},decode:d,encode:l,toASCII:w,toUnicode:x},typeof Oe=="function"&&typeof Oe.amd=="object"&&Oe.amd)Oe("punycode",function(){return h});else if(p&&O)if(A.exports==p)O.exports=h;else for(E in h)h.hasOwnProperty(E)&&(p[E]=h[E]);else b.punycode=h}(this)}).call(this,typeof Ye!="undefined"?Ye:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],175:[function(r,A,y){"use strict";function m(i,u){return Object.prototype.hasOwnProperty.call(i,u)}A.exports=function(i,u,f,s){u=u||"&",f=f||"=";var t={};if(typeof i!="string"||i.length===0)return t;var a=/\+/g;i=i.split(u);var o=1e3;s&&typeof s.maxKeys=="number"&&(o=s.maxKeys);var c=i.length;o>0&&c>o&&(c=o);for(var d=0;d<c;++d){var l,x,w,p,O=i[d].replace(a,"%20"),S=O.indexOf(f);S>=0?(l=O.substr(0,S),x=O.substr(S+1)):(l=O,x=""),w=decodeURIComponent(l),p=decodeURIComponent(x),m(t,w)?b(t[w])?t[w].push(p):t[w]=[t[w],p]:t[w]=p}return t};var b=Array.isArray||function(i){return Object.prototype.toString.call(i)==="[object Array]"}},{}],176:[function(r,A,y){"use strict";function m(f,s){if(f.map)return f.map(s);for(var t=[],a=0;a<f.length;a++)t.push(s(f[a],a));return t}var b=function(s){switch(typeof s){case"string":return s;case"boolean":return s?"true":"false";case"number":return isFinite(s)?s:"";default:return""}};A.exports=function(f,s,t,a){return s=s||"&",t=t||"=",f===null&&(f=void 0),typeof f=="object"?m(u(f),function(o){var c=encodeURIComponent(b(o))+t;return i(f[o])?m(f[o],function(d){return c+encodeURIComponent(b(d))}).join(s):c+encodeURIComponent(b(f[o]))}).join(s):a?encodeURIComponent(b(a))+t+encodeURIComponent(b(f)):""};var i=Array.isArray||function(f){return Object.prototype.toString.call(f)==="[object Array]"},u=Object.keys||function(f){var s=[];for(var t in f)Object.prototype.hasOwnProperty.call(f,t)&&s.push(t);return s}},{}],177:[function(r,A,y){"use strict";y.decode=y.parse=r("./decode"),y.encode=y.stringify=r("./encode")},{"./decode":175,"./encode":176}],178:[function(r,A,y){A.exports=r("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":179}],179:[function(r,A,y){"use strict";function m(w){if(!(this instanceof m))return new m(w);o.call(this,w),c.call(this,w),w&&w.readable===!1&&(this.readable=!1),w&&w.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,w&&w.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",b)}function b(){this.allowHalfOpen||this._writableState.ended||s.nextTick(i,this)}function i(w){w.end()}var u=r("babel-runtime/core-js/object/keys"),f=function(w){return w&&w.__esModule?w:{default:w}}(u),s=r("process-nextick-args"),t=f.default||function(w){var p=[];for(var O in w)p.push(O);return p};A.exports=m;var a=r("core-util-is");a.inherits=r("inherits");var o=r("./_stream_readable"),c=r("./_stream_writable");a.inherits(m,o);for(var d=t(c.prototype),l=0;l<d.length;l++){var x=d[l];m.prototype[x]||(m.prototype[x]=c.prototype[x])}Object.defineProperty(m.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(m.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)}}),m.prototype._destroy=function(w,p){this.push(null),this.end(),s.nextTick(p,w)}},{"./_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(r,A,y){"use strict";function m(u){if(!(this instanceof m))return new m(u);b.call(this,u)}A.exports=m;var b=r("./_stream_transform"),i=r("core-util-is");i.inherits=r("inherits"),i.inherits(m,b),m.prototype._transform=function(u,f,s){s(null,u)}},{"./_stream_transform":182,"core-util-is":153,inherits:162}],181:[function(r,A,y){(function(m,b){"use strict";function i(K){return G.from(K)}function u(K){return G.isBuffer(K)||K instanceof J}function f(K,q,ce){if(typeof K.prependListener=="function")return K.prependListener(q,ce);K._events&&K._events[q]?D(K._events[q])?K._events[q].unshift(ce):K._events[q]=[ce,K._events[q]]:K.on(q,ce)}function s(K,q){W=W||r("./_stream_duplex"),K=K||{};var ce=q instanceof W;this.objectMode=!!K.objectMode,ce&&(this.objectMode=this.objectMode||!!K.readableObjectMode);var ue=K.highWaterMark,we=K.readableHighWaterMark,k=this.objectMode?16:16384;this.highWaterMark=ue||ue===0?ue:ce&&(we||we===0)?we:k,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new ve,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=K.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,K.encoding&&(me||(me=r("string_decoder/").StringDecoder),this.decoder=new me(K.encoding),this.encoding=K.encoding)}function t(K){if(W=W||r("./_stream_duplex"),!(this instanceof t))return new t(K);this._readableState=new s(K,this),this.readable=!0,K&&(typeof K.read=="function"&&(this._read=K.read),typeof K.destroy=="function"&&(this._destroy=K.destroy)),U.call(this)}function a(K,q,ce,ue,we){var k=K._readableState;if(q===null)k.reading=!1,w(K,k);else{var e;we||(e=c(k,q)),e?K.emit("error",e):k.objectMode||q&&q.length>0?(typeof q=="string"||k.objectMode||(0,Q.default)(q)===G.prototype||(q=i(q)),ue?k.endEmitted?K.emit("error",new Error("stream.unshift() after end event")):o(K,k,q,!0):k.ended?K.emit("error",new Error("stream.push() after EOF")):(k.reading=!1,k.decoder&&!ce?(q=k.decoder.write(q),k.objectMode||q.length!==0?o(K,k,q,!1):S(K,k)):o(K,k,q,!1))):ue||(k.reading=!1)}return d(k)}function o(K,q,ce,ue){q.flowing&&q.length===0&&!q.sync?(K.emit("data",ce),K.read(0)):(q.length+=q.objectMode?1:ce.length,ue?q.buffer.unshift(ce):q.buffer.push(ce),q.needReadable&&p(K)),S(K,q)}function c(K,q){var ce;return u(q)||typeof q=="string"||q===void 0||K.objectMode||(ce=new TypeError("Invalid non-string/buffer chunk")),ce}function d(K){return!K.ended&&(K.needReadable||K.length<K.highWaterMark||K.length===0)}function l(K){return K>=le?K=le:(K--,K|=K>>>1,K|=K>>>2,K|=K>>>4,K|=K>>>8,K|=K>>>16,K++),K}function x(K,q){return K<=0||q.length===0&&q.ended?0:q.objectMode?1:K!==K?q.flowing&&q.length?q.buffer.head.data.length:q.length:(K>q.highWaterMark&&(q.highWaterMark=l(K)),K<=q.length?K:q.ended?q.length:(q.needReadable=!0,0))}function w(K,q){if(!q.ended){if(q.decoder){var ce=q.decoder.end();ce&&ce.length&&(q.buffer.push(ce),q.length+=q.objectMode?1:ce.length)}q.ended=!0,p(K)}}function p(K){var q=K._readableState;q.needReadable=!1,q.emittedReadable||(se("emitReadable",q.flowing),q.emittedReadable=!0,q.sync?Y.nextTick(O,K):O(K))}function O(K){se("emit readable"),K.emit("readable"),F(K)}function S(K,q){q.readingMore||(q.readingMore=!0,Y.nextTick(h,K,q))}function h(K,q){for(var ce=q.length;!q.reading&&!q.flowing&&!q.ended&&q.length<q.highWaterMark&&(se("maybeReadMore read 0"),K.read(0),ce!==q.length);)ce=q.length;q.readingMore=!1}function E(K){return function(){var q=K._readableState;se("pipeOnDrain",q.awaitDrain),q.awaitDrain&&q.awaitDrain--,q.awaitDrain===0&&C(K,"data")&&(q.flowing=!0,F(K))}}function L(K){se("readable nexttick read 0"),K.read(0)}function P(K,q){q.resumeScheduled||(q.resumeScheduled=!0,Y.nextTick(g,K,q))}function g(K,q){q.reading||(se("resume read 0"),K.read(0)),q.resumeScheduled=!1,q.awaitDrain=0,K.emit("resume"),F(K),q.flowing&&!q.reading&&K.read(0)}function F(K){var q=K._readableState;for(se("flow",q.flowing);q.flowing&&K.read()!==null;);}function I(K,q){if(q.length===0)return null;var ce;return q.objectMode?ce=q.buffer.shift():!K||K>=q.length?(ce=q.decoder?q.buffer.join(""):q.buffer.length===1?q.buffer.head.data:q.buffer.concat(q.length),q.buffer.clear()):ce=X(K,q.buffer,q.decoder),ce}function X(K,q,ce){var ue;return K<q.head.data.length?(ue=q.head.data.slice(0,K),q.head.data=q.head.data.slice(K)):ue=K===q.head.data.length?q.shift():ce?R(K,q):V(K,q),ue}function R(K,q){var ce=q.head,ue=1,we=ce.data;for(K-=we.length;ce=ce.next;){var k=ce.data,e=K>k.length?k.length:K;if(e===k.length?we+=k:we+=k.slice(0,K),(K-=e)===0){e===k.length?(++ue,ce.next?q.head=ce.next:q.head=q.tail=null):(q.head=ce,ce.data=k.slice(e));break}++ue}return q.length-=ue,we}function V(K,q){var ce=G.allocUnsafe(K),ue=q.head,we=1;for(ue.data.copy(ce),K-=ue.data.length;ue=ue.next;){var k=ue.data,e=K>k.length?k.length:K;if(k.copy(ce,ce.length-K,0,e),(K-=e)===0){e===k.length?(++we,ue.next?q.head=ue.next:q.head=q.tail=null):(q.head=ue,ue.data=k.slice(e));break}++we}return q.length-=we,ce}function H(K){var q=K._readableState;if(q.length>0)throw new Error('"endReadable()" called on non-empty stream');q.endEmitted||(q.ended=!0,Y.nextTick($,q,K))}function $(K,q){K.endEmitted||K.length!==0||(K.endEmitted=!0,q.readable=!1,q.emit("end"))}function ae(K,q){for(var ce=0,ue=K.length;ce<ue;ce++)if(K[ce]===q)return ce;return-1}var M=r("babel-runtime/core-js/object/get-prototype-of"),Q=function(K){return K&&K.__esModule?K:{default:K}}(M),Y=r("process-nextick-args");A.exports=t;var W,D=r("isarray");t.ReadableState=s;var C=(r("events").EventEmitter,function(K,q){return K.listeners(q).length}),U=r("./internal/streams/stream"),G=r("safe-buffer").Buffer,J=b.Uint8Array||function(){},ne=r("core-util-is");ne.inherits=r("inherits");var fe=r("util"),se=void 0;se=fe&&fe.debuglog?fe.debuglog("stream"):function(){};var me,ve=r("./internal/streams/BufferList"),ie=r("./internal/streams/destroy");ne.inherits(t,U);var oe=["error","close","destroy","pause","resume"];Object.defineProperty(t.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(q){this._readableState&&(this._readableState.destroyed=q)}}),t.prototype.destroy=ie.destroy,t.prototype._undestroy=ie.undestroy,t.prototype._destroy=function(K,q){this.push(null),q(K)},t.prototype.push=function(K,q){var ce,ue=this._readableState;return ue.objectMode?ce=!0:typeof K=="string"&&(q=q||ue.defaultEncoding,q!==ue.encoding&&(K=G.from(K,q),q=""),ce=!0),a(this,K,q,!1,ce)},t.prototype.unshift=function(K){return a(this,K,null,!0,!1)},t.prototype.isPaused=function(){return this._readableState.flowing===!1},t.prototype.setEncoding=function(K){return me||(me=r("string_decoder/").StringDecoder),this._readableState.decoder=new me(K),this._readableState.encoding=K,this};var le=8388608;t.prototype.read=function(K){se("read",K),K=parseInt(K,10);var q=this._readableState,ce=K;if(K!==0&&(q.emittedReadable=!1),K===0&&q.needReadable&&(q.length>=q.highWaterMark||q.ended))return se("read: emitReadable",q.length,q.ended),q.length===0&&q.ended?H(this):p(this),null;if((K=x(K,q))===0&&q.ended)return q.length===0&&H(this),null;var ue=q.needReadable;se("need readable",ue),(q.length===0||q.length-K<q.highWaterMark)&&(ue=!0,se("length less than watermark",ue)),q.ended||q.reading?(ue=!1,se("reading or ended",ue)):ue&&(se("do read"),q.reading=!0,q.sync=!0,q.length===0&&(q.needReadable=!0),this._read(q.highWaterMark),q.sync=!1,q.reading||(K=x(ce,q)));var we;return we=K>0?I(K,q):null,we===null?(q.needReadable=!0,K=0):q.length-=K,q.length===0&&(q.ended||(q.needReadable=!0),ce!==K&&q.ended&&H(this)),we!==null&&this.emit("data",we),we},t.prototype._read=function(K){this.emit("error",new Error("_read() is not implemented"))},t.prototype.pipe=function(K,q){function ce(Fe,et){se("onunpipe"),Fe===_&&et&&et.hasUnpiped===!1&&(et.hasUnpiped=!0,we())}function ue(){se("onend"),K.end()}function we(){se("cleanup"),K.removeListener("close",n),K.removeListener("finish",T),K.removeListener("drain",ye),K.removeListener("error",e),K.removeListener("unpipe",ce),_.removeListener("end",ue),_.removeListener("end",v),_.removeListener("data",k),Ae=!0,!B.awaitDrain||K._writableState&&!K._writableState.needDrain||ye()}function k(Fe){se("ondata"),Le=!1,K.write(Fe)!==!1||Le||((B.pipesCount===1&&B.pipes===K||B.pipesCount>1&&ae(B.pipes,K)!==-1)&&!Ae&&(se("false write response, pause",_._readableState.awaitDrain),_._readableState.awaitDrain++,Le=!0),_.pause())}function e(Fe){se("onerror",Fe),v(),K.removeListener("error",e),C(K,"error")===0&&K.emit("error",Fe)}function n(){K.removeListener("finish",T),v()}function T(){se("onfinish"),K.removeListener("close",n),v()}function v(){se("unpipe"),_.unpipe(K)}var _=this,B=this._readableState;switch(B.pipesCount){case 0:B.pipes=K;break;case 1:B.pipes=[B.pipes,K];break;default:B.pipes.push(K)}B.pipesCount+=1,se("pipe count=%d opts=%j",B.pipesCount,q);var Z=(!q||q.end!==!1)&&K!==m.stdout&&K!==m.stderr,Ee=Z?ue:v;B.endEmitted?Y.nextTick(Ee):_.once("end",Ee),K.on("unpipe",ce);var ye=E(_);K.on("drain",ye);var Ae=!1,Le=!1;return _.on("data",k),f(K,"error",e),K.once("close",n),K.once("finish",T),K.emit("pipe",_),B.flowing||(se("pipe resume"),_.resume()),K},t.prototype.unpipe=function(K){var q=this._readableState,ce={hasUnpiped:!1};if(q.pipesCount===0)return this;if(q.pipesCount===1)return K&&K!==q.pipes?this:(K||(K=q.pipes),q.pipes=null,q.pipesCount=0,q.flowing=!1,K&&K.emit("unpipe",this,ce),this);if(!K){var ue=q.pipes,we=q.pipesCount;q.pipes=null,q.pipesCount=0,q.flowing=!1;for(var k=0;k<we;k++)ue[k].emit("unpipe",this,ce);return this}var e=ae(q.pipes,K);return e===-1?this:(q.pipes.splice(e,1),q.pipesCount-=1,q.pipesCount===1&&(q.pipes=q.pipes[0]),K.emit("unpipe",this,ce),this)},t.prototype.on=function(K,q){var ce=U.prototype.on.call(this,K,q);if(K==="data")this._readableState.flowing!==!1&&this.resume();else if(K==="readable"){var ue=this._readableState;ue.endEmitted||ue.readableListening||(ue.readableListening=ue.needReadable=!0,ue.emittedReadable=!1,ue.reading?ue.length&&p(this):Y.nextTick(L,this))}return ce},t.prototype.addListener=t.prototype.on,t.prototype.resume=function(){var K=this._readableState;return K.flowing||(se("resume"),K.flowing=!0,P(this,K)),this},t.prototype.pause=function(){return se("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(se("pause"),this._readableState.flowing=!1,this.emit("pause")),this},t.prototype.wrap=function(K){var q=this,ce=this._readableState,ue=!1;K.on("end",function(){if(se("wrapped end"),ce.decoder&&!ce.ended){var e=ce.decoder.end();e&&e.length&&q.push(e)}q.push(null)}),K.on("data",function(e){(se("wrapped data"),ce.decoder&&(e=ce.decoder.write(e)),(!ce.objectMode||e!=null)&&(ce.objectMode||e&&e.length))&&(q.push(e)||(ue=!0,K.pause()))});for(var we in K)this[we]===void 0&&typeof K[we]=="function"&&(this[we]=function(e){return function(){return K[e].apply(K,arguments)}}(we));for(var k=0;k<oe.length;k++)K.on(oe[k],this.emit.bind(this,oe[k]));return this._read=function(e){se("wrapped _read",e),ue&&(ue=!1,K.resume())},this},Object.defineProperty(t.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),t._fromList=I}).call(this,r("_process"),typeof Ye!="undefined"?Ye: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(r,A,y){"use strict";function m(t,a){var o=this._transformState;o.transforming=!1;var c=o.writecb;if(!c)return this.emit("error",new Error("write callback called multiple times"));o.writechunk=null,o.writecb=null,a!=null&&this.push(a),c(t);var d=this._readableState;d.reading=!1,(d.needReadable||d.length<d.highWaterMark)&&this._read(d.highWaterMark)}function b(t){if(!(this instanceof b))return new b(t);f.call(this,t),this._transformState={afterTransform:m.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",i)}function i(){var t=this;typeof this._flush=="function"?this._flush(function(a,o){u(t,a,o)}):u(this,null,null)}function u(t,a,o){if(a)return t.emit("error",a);if(o!=null&&t.push(o),t._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}A.exports=b;var f=r("./_stream_duplex"),s=r("core-util-is");s.inherits=r("inherits"),s.inherits(b,f),b.prototype.push=function(t,a){return this._transformState.needTransform=!1,f.prototype.push.call(this,t,a)},b.prototype._transform=function(t,a,o){throw new Error("_transform() is not implemented")},b.prototype._write=function(t,a,o){var c=this._transformState;if(c.writecb=o,c.writechunk=t,c.writeencoding=a,!c.transforming){var d=this._readableState;(c.needTransform||d.needReadable||d.length<d.highWaterMark)&&this._read(d.highWaterMark)}},b.prototype._read=function(t){var a=this._transformState;a.writechunk!==null&&a.writecb&&!a.transforming?(a.transforming=!0,this._transform(a.writechunk,a.writeencoding,a.afterTransform)):a.needTransform=!0},b.prototype._destroy=function(t,a){var o=this;f.prototype._destroy.call(this,t,function(c){a(c),o.emit("close")})}},{"./_stream_duplex":179,"core-util-is":153,inherits:162}],183:[function(r,A,y){(function(m,b){"use strict";function i(ie){return ie&&ie.__esModule?ie:{default:ie}}function u(ie){var oe=this;this.next=null,this.entry=null,this.finish=function(){R(oe,ie)}}function f(ie){return fe.from(ie)}function s(ie){return fe.isBuffer(ie)||ie instanceof se}function t(){}function a(ie,oe){C=C||r("./_stream_duplex"),ie=ie||{};var le=oe instanceof C;this.objectMode=!!ie.objectMode,le&&(this.objectMode=this.objectMode||!!ie.writableObjectMode);var K=ie.highWaterMark,q=ie.writableHighWaterMark,ce=this.objectMode?16:16384;this.highWaterMark=K||K===0?K:le&&(q||q===0)?q:ce,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 ue=ie.decodeStrings===!1;this.decodeStrings=!ue,this.defaultEncoding=ie.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(we){S(oe,we)},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 o(ie){if(C=C||r("./_stream_duplex"),!(ve.call(o,this)||this instanceof C))return new o(ie);this._writableState=new a(ie,this),this.writable=!0,ie&&(typeof ie.write=="function"&&(this._write=ie.write),typeof ie.writev=="function"&&(this._writev=ie.writev),typeof ie.destroy=="function"&&(this._destroy=ie.destroy),typeof ie.final=="function"&&(this._final=ie.final)),ne.call(this)}function c(ie,oe){var le=new Error("write after end");ie.emit("error",le),D.nextTick(oe,le)}function d(ie,oe,le,K){var q=!0,ce=!1;return le===null?ce=new TypeError("May not write null values to stream"):typeof le=="string"||le===void 0||oe.objectMode||(ce=new TypeError("Invalid non-string/buffer chunk")),ce&&(ie.emit("error",ce),D.nextTick(K,ce),q=!1),q}function l(ie,oe,le){return ie.objectMode||ie.decodeStrings===!1||typeof oe!="string"||(oe=fe.from(oe,le)),oe}function x(ie,oe,le,K,q,ce){if(!le){var ue=l(oe,K,q);K!==ue&&(le=!0,q="buffer",K=ue)}var we=oe.objectMode?1:K.length;oe.length+=we;var k=oe.length<oe.highWaterMark;if(k||(oe.needDrain=!0),oe.writing||oe.corked){var e=oe.lastBufferedRequest;oe.lastBufferedRequest={chunk:K,encoding:q,isBuf:le,callback:ce,next:null},e?e.next=oe.lastBufferedRequest:oe.bufferedRequest=oe.lastBufferedRequest,oe.bufferedRequestCount+=1}else w(ie,oe,!1,we,K,q,ce);return k}function w(ie,oe,le,K,q,ce,ue){oe.writelen=K,oe.writecb=ue,oe.writing=!0,oe.sync=!0,le?ie._writev(q,oe.onwrite):ie._write(q,ce,oe.onwrite),oe.sync=!1}function p(ie,oe,le,K,q){--oe.pendingcb,le?(D.nextTick(q,K),D.nextTick(I,ie,oe),ie._writableState.errorEmitted=!0,ie.emit("error",K)):(q(K),ie._writableState.errorEmitted=!0,ie.emit("error",K),I(ie,oe))}function O(ie){ie.writing=!1,ie.writecb=null,ie.length-=ie.writelen,ie.writelen=0}function S(ie,oe){var le=ie._writableState,K=le.sync,q=le.writecb;if(O(le),oe)p(ie,le,K,oe,q);else{var ce=P(le);ce||le.corked||le.bufferProcessing||!le.bufferedRequest||L(ie,le),K?U(h,ie,le,ce,q):h(ie,le,ce,q)}}function h(ie,oe,le,K){le||E(ie,oe),oe.pendingcb--,K(),I(ie,oe)}function E(ie,oe){oe.length===0&&oe.needDrain&&(oe.needDrain=!1,ie.emit("drain"))}function L(ie,oe){oe.bufferProcessing=!0;var le=oe.bufferedRequest;if(ie._writev&&le&&le.next){var K=oe.bufferedRequestCount,q=new Array(K),ce=oe.corkedRequestsFree;ce.entry=le;for(var ue=0,we=!0;le;)q[ue]=le,le.isBuf||(we=!1),le=le.next,ue+=1;q.allBuffers=we,w(ie,oe,!0,oe.length,q,"",ce.finish),oe.pendingcb++,oe.lastBufferedRequest=null,ce.next?(oe.corkedRequestsFree=ce.next,ce.next=null):oe.corkedRequestsFree=new u(oe),oe.bufferedRequestCount=0}else{for(;le;){var k=le.chunk,e=le.encoding,n=le.callback;if(w(ie,oe,!1,oe.objectMode?1:k.length,k,e,n),le=le.next,oe.bufferedRequestCount--,oe.writing)break}le===null&&(oe.lastBufferedRequest=null)}oe.bufferedRequest=le,oe.bufferProcessing=!1}function P(ie){return ie.ending&&ie.length===0&&ie.bufferedRequest===null&&!ie.finished&&!ie.writing}function g(ie,oe){ie._final(function(le){oe.pendingcb--,le&&ie.emit("error",le),oe.prefinished=!0,ie.emit("prefinish"),I(ie,oe)})}function F(ie,oe){oe.prefinished||oe.finalCalled||(typeof ie._final=="function"?(oe.pendingcb++,oe.finalCalled=!0,D.nextTick(g,ie,oe)):(oe.prefinished=!0,ie.emit("prefinish")))}function I(ie,oe){var le=P(oe);return le&&(F(ie,oe),oe.pendingcb===0&&(oe.finished=!0,ie.emit("finish"))),le}function X(ie,oe,le){oe.ending=!0,I(ie,oe),le&&(oe.finished?D.nextTick(le):ie.once("finish",le)),oe.ended=!0,ie.writable=!1}function R(ie,oe,le){var K=ie.entry;for(ie.entry=null;K;){var q=K.callback;oe.pendingcb--,q(le),K=K.next}oe.corkedRequestsFree?oe.corkedRequestsFree.next=ie:oe.corkedRequestsFree=ie}var V=r("babel-runtime/core-js/object/define-property"),H=i(V),$=r("babel-runtime/core-js/symbol/has-instance"),ae=i($),M=r("babel-runtime/core-js/symbol"),Q=i(M),Y=r("babel-runtime/core-js/set-immediate"),W=i(Y),D=r("process-nextick-args");A.exports=o;var C,U=!m.browser&&["v0.10","v0.9."].indexOf(m.version.slice(0,5))>-1?W.default:D.nextTick;o.WritableState=a;var G=r("core-util-is");G.inherits=r("inherits");var J={deprecate:r("util-deprecate")},ne=r("./internal/streams/stream"),fe=r("safe-buffer").Buffer,se=b.Uint8Array||function(){},me=r("./internal/streams/destroy");G.inherits(o,ne),a.prototype.getBuffer=function(){for(var ie=this.bufferedRequest,oe=[];ie;)oe.push(ie),ie=ie.next;return oe},function(){try{Object.defineProperty(a.prototype,"buffer",{get:J.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(ie){}}();var ve;typeof Q.default=="function"&&ae.default&&typeof Function.prototype[ae.default]=="function"?(ve=Function.prototype[ae.default],(0,H.default)(o,ae.default,{value:function(oe){return!!ve.call(this,oe)||this===o&&oe&&oe._writableState instanceof a}})):ve=function(oe){return oe instanceof this},o.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},o.prototype.write=function(ie,oe,le){var K=this._writableState,q=!1,ce=!K.objectMode&&s(ie);return ce&&!fe.isBuffer(ie)&&(ie=f(ie)),typeof oe=="function"&&(le=oe,oe=null),ce?oe="buffer":oe||(oe=K.defaultEncoding),typeof le!="function"&&(le=t),K.ended?c(this,le):(ce||d(this,K,ie,le))&&(K.pendingcb++,q=x(this,K,ce,ie,oe,le)),q},o.prototype.cork=function(){this._writableState.corked++},o.prototype.uncork=function(){var ie=this._writableState;ie.corked&&(ie.corked--,ie.writing||ie.corked||ie.finished||ie.bufferProcessing||!ie.bufferedRequest||L(this,ie))},o.prototype.setDefaultEncoding=function(ie){if(typeof ie=="string"&&(ie=ie.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((ie+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+ie);return this._writableState.defaultEncoding=ie,this},Object.defineProperty(o.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),o.prototype._write=function(ie,oe,le){le(new Error("_write() is not implemented"))},o.prototype._writev=null,o.prototype.end=function(ie,oe,le){var K=this._writableState;typeof ie=="function"?(le=ie,ie=null,oe=null):typeof oe=="function"&&(le=oe,oe=null),ie!=null&&this.write(ie,oe),K.corked&&(K.corked=1,this.uncork()),K.ending||K.finished||X(this,K,le)},Object.defineProperty(o.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(oe){this._writableState&&(this._writableState.destroyed=oe)}}),o.prototype.destroy=me.destroy,o.prototype._undestroy=me.undestroy,o.prototype._destroy=function(ie,oe){this.end(),oe(ie)}}).call(this,r("_process"),typeof Ye!="undefined"?Ye: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(r,A,y){"use strict";function m(f,s){if(!(f instanceof s))throw new TypeError("Cannot call a class as a function")}function b(f,s,t){f.copy(s,t)}var i=r("safe-buffer").Buffer,u=r("util");A.exports=function(){function f(){m(this,f),this.head=null,this.tail=null,this.length=0}return f.prototype.push=function(s){var t={data:s,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},f.prototype.unshift=function(s){var t={data:s,next:this.head};this.length===0&&(this.tail=t),this.head=t,++this.length},f.prototype.shift=function(){if(this.length!==0){var s=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,s}},f.prototype.clear=function(){this.head=this.tail=null,this.length=0},f.prototype.join=function(s){if(this.length===0)return"";for(var t=this.head,a=""+t.data;t=t.next;)a+=s+t.data;return a},f.prototype.concat=function(s){if(this.length===0)return i.alloc(0);if(this.length===1)return this.head.data;for(var t=i.allocUnsafe(s>>>0),a=this.head,o=0;a;)b(a.data,t,o),o+=a.data.length,a=a.next;return t},f}(),u&&u.inspect&&u.inspect.custom&&(A.exports.prototype[u.inspect.custom]=function(){var f=u.inspect({length:this.length});return this.constructor.name+" "+f})},{"safe-buffer":193,util:36}],185:[function(r,A,y){"use strict";function m(f,s){var t=this,a=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return a||o?(s?s(f):!f||this._writableState&&this._writableState.errorEmitted||u.nextTick(i,this,f),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(f||null,function(c){!s&&c?(u.nextTick(i,t,c),t._writableState&&(t._writableState.errorEmitted=!0)):s&&s(c)}),this)}function b(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function i(f,s){f.emit("error",s)}var u=r("process-nextick-args");A.exports={destroy:m,undestroy:b}},{"process-nextick-args":172}],186:[function(r,A,y){"use strict";A.exports=r("events").EventEmitter},{events:158}],187:[function(r,A,y){A.exports=r("./readable").PassThrough},{"./readable":188}],188:[function(r,A,y){y=A.exports=r("./lib/_stream_readable.js"),y.Stream=y,y.Readable=y,y.Writable=r("./lib/_stream_writable.js"),y.Duplex=r("./lib/_stream_duplex.js"),y.Transform=r("./lib/_stream_transform.js"),y.PassThrough=r("./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(r,A,y){A.exports=r("./readable").Transform},{"./readable":188}],190:[function(r,A,y){A.exports=r("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":183}],191:[function(r,A,y){var m=function(){return this}()||Function("return this")(),b=m.regeneratorRuntime&&Object.getOwnPropertyNames(m).indexOf("regeneratorRuntime")>=0,i=b&&m.regeneratorRuntime;if(m.regeneratorRuntime=void 0,A.exports=r("./runtime"),b)m.regeneratorRuntime=i;else try{delete m.regeneratorRuntime}catch(u){m.regeneratorRuntime=void 0}},{"./runtime":192}],192:[function(r,A,y){!function(m){"use strict";function b(W,D,C,U){var G=D&&D.prototype instanceof u?D:u,J=Object.create(G.prototype),ne=new x(U||[]);return J._invoke=o(W,C,ne),J}function i(W,D,C){try{return{type:"normal",arg:W.call(D,C)}}catch(U){return{type:"throw",arg:U}}}function u(){}function f(){}function s(){}function t(W){["next","throw","return"].forEach(function(D){W[D]=function(C){return this._invoke(D,C)}})}function a(W){function D(G,J,ne,fe){var se=i(W[G],W,J);if(se.type!=="throw"){var me=se.arg,ve=me.value;return ve&&typeof ve=="object"&&h.call(ve,"__await")?Promise.resolve(ve.__await).then(function(ie){D("next",ie,ne,fe)},function(ie){D("throw",ie,ne,fe)}):Promise.resolve(ve).then(function(ie){me.value=ie,ne(me)},fe)}fe(se.arg)}function C(G,J){function ne(){return new Promise(function(fe,se){D(G,J,fe,se)})}return U=U?U.then(ne,ne):ne()}var U;this._invoke=C}function o(W,D,C){var U=X;return function(G,J){if(U===V)throw new Error("Generator is already running");if(U===H){if(G==="throw")throw J;return p()}for(C.method=G,C.arg=J;;){var ne=C.delegate;if(ne){var fe=c(ne,C);if(fe){if(fe===$)continue;return fe}}if(C.method==="next")C.sent=C._sent=C.arg;else if(C.method==="throw"){if(U===X)throw U=H,C.arg;C.dispatchException(C.arg)}else C.method==="return"&&C.abrupt("return",C.arg);U=V;var se=i(W,D,C);if(se.type==="normal"){if(U=C.done?H:R,se.arg===$)continue;return{value:se.arg,done:C.done}}se.type==="throw"&&(U=H,C.method="throw",C.arg=se.arg)}}}function c(W,D){var C=W.iterator[D.method];if(C===O){if(D.delegate=null,D.method==="throw"){if(W.iterator.return&&(D.method="return",D.arg=O,c(W,D),D.method==="throw"))return $;D.method="throw",D.arg=new TypeError("The iterator does not provide a 'throw' method")}return $}var U=i(C,W.iterator,D.arg);if(U.type==="throw")return D.method="throw",D.arg=U.arg,D.delegate=null,$;var G=U.arg;return G?G.done?(D[W.resultName]=G.value,D.next=W.nextLoc,D.method!=="return"&&(D.method="next",D.arg=O),D.delegate=null,$):G:(D.method="throw",D.arg=new TypeError("iterator result is not an object"),D.delegate=null,$)}function d(W){var D={tryLoc:W[0]};1 in W&&(D.catchLoc=W[1]),2 in W&&(D.finallyLoc=W[2],D.afterLoc=W[3]),this.tryEntries.push(D)}function l(W){var D=W.completion||{};D.type="normal",delete D.arg,W.completion=D}function x(W){this.tryEntries=[{tryLoc:"root"}],W.forEach(d,this),this.reset(!0)}function w(W){if(W){var D=W[L];if(D)return D.call(W);if(typeof W.next=="function")return W;if(!isNaN(W.length)){var C=-1,U=function G(){for(;++C<W.length;)if(h.call(W,C))return G.value=W[C],G.done=!1,G;return G.value=O,G.done=!0,G};return U.next=U}}return{next:p}}function p(){return{value:O,done:!0}}var O,S=Object.prototype,h=S.hasOwnProperty,E=typeof Symbol=="function"?Symbol:{},L=E.iterator||"@@iterator",P=E.asyncIterator||"@@asyncIterator",g=E.toStringTag||"@@toStringTag",F=typeof A=="object",I=m.regeneratorRuntime;if(I)return void(F&&(A.exports=I));I=m.regeneratorRuntime=F?A.exports:{},I.wrap=b;var X="suspendedStart",R="suspendedYield",V="executing",H="completed",$={},ae={};ae[L]=function(){return this};var M=Object.getPrototypeOf,Q=M&&M(M(w([])));Q&&Q!==S&&h.call(Q,L)&&(ae=Q);var Y=s.prototype=u.prototype=Object.create(ae);f.prototype=Y.constructor=s,s.constructor=f,s[g]=f.displayName="GeneratorFunction",I.isGeneratorFunction=function(W){var D=typeof W=="function"&&W.constructor;return!!D&&(D===f||(D.displayName||D.name)==="GeneratorFunction")},I.mark=function(W){return Object.setPrototypeOf?Object.setPrototypeOf(W,s):(W.__proto__=s,g in W||(W[g]="GeneratorFunction")),W.prototype=Object.create(Y),W},I.awrap=function(W){return{__await:W}},t(a.prototype),a.prototype[P]=function(){return this},I.AsyncIterator=a,I.async=function(W,D,C,U){var G=new a(b(W,D,C,U));return I.isGeneratorFunction(D)?G:G.next().then(function(J){return J.done?J.value:G.next()})},t(Y),Y[g]="Generator",Y[L]=function(){return this},Y.toString=function(){return"[object Generator]"},I.keys=function(W){var D=[];for(var C in W)D.push(C);return D.reverse(),function U(){for(;D.length;){var G=D.pop();if(G in W)return U.value=G,U.done=!1,U}return U.done=!0,U}},I.values=w,x.prototype={constructor:x,reset:function(D){if(this.prev=0,this.next=0,this.sent=this._sent=O,this.done=!1,this.delegate=null,this.method="next",this.arg=O,this.tryEntries.forEach(l),!D)for(var C in this)C.charAt(0)==="t"&&h.call(this,C)&&!isNaN(+C.slice(1))&&(this[C]=O)},stop:function(){this.done=!0;var D=this.tryEntries[0],C=D.completion;if(C.type==="throw")throw C.arg;return this.rval},dispatchException:function(D){function C(me,ve){return ne.type="throw",ne.arg=D,U.next=me,ve&&(U.method="next",U.arg=O),!!ve}if(this.done)throw D;for(var U=this,G=this.tryEntries.length-1;G>=0;--G){var J=this.tryEntries[G],ne=J.completion;if(J.tryLoc==="root")return C("end");if(J.tryLoc<=this.prev){var fe=h.call(J,"catchLoc"),se=h.call(J,"finallyLoc");if(fe&&se){if(this.prev<J.catchLoc)return C(J.catchLoc,!0);if(this.prev<J.finallyLoc)return C(J.finallyLoc)}else if(fe){if(this.prev<J.catchLoc)return C(J.catchLoc,!0)}else{if(!se)throw new Error("try statement without catch or finally");if(this.prev<J.finallyLoc)return C(J.finallyLoc)}}}},abrupt:function(D,C){for(var U=this.tryEntries.length-1;U>=0;--U){var G=this.tryEntries[U];if(G.tryLoc<=this.prev&&h.call(G,"finallyLoc")&&this.prev<G.finallyLoc){var J=G;break}}J&&(D==="break"||D==="continue")&&J.tryLoc<=C&&C<=J.finallyLoc&&(J=null);var ne=J?J.completion:{};return ne.type=D,ne.arg=C,J?(this.method="next",this.next=J.finallyLoc,$):this.complete(ne)},complete:function(D,C){if(D.type==="throw")throw D.arg;return D.type==="break"||D.type==="continue"?this.next=D.arg:D.type==="return"?(this.rval=this.arg=D.arg,this.method="return",this.next="end"):D.type==="normal"&&C&&(this.next=C),$},finish:function(D){for(var C=this.tryEntries.length-1;C>=0;--C){var U=this.tryEntries[C];if(U.finallyLoc===D)return this.complete(U.completion,U.afterLoc),l(U),$}},catch:function(D){for(var C=this.tryEntries.length-1;C>=0;--C){var U=this.tryEntries[C];if(U.tryLoc===D){var G=U.completion;if(G.type==="throw"){var J=G.arg;l(U)}return J}}throw new Error("illegal catch attempt")},delegateYield:function(D,C,U){return this.delegate={iterator:w(D),resultName:C,nextLoc:U},this.method==="next"&&(this.arg=O),$}}}(function(){return this}()||Function("return this")())},{}],193:[function(r,A,y){function m(f,s){for(var t in f)s[t]=f[t]}function b(f,s,t){return u(f,s,t)}var i=r("buffer"),u=i.Buffer;u.from&&u.alloc&&u.allocUnsafe&&u.allocUnsafeSlow?A.exports=i:(m(i,y),y.Buffer=b),m(u,b),b.from=function(f,s,t){if(typeof f=="number")throw new TypeError("Argument must not be a number");return u(f,s,t)},b.alloc=function(f,s,t){if(typeof f!="number")throw new TypeError("Argument must be a number");var a=u(f);return s!==void 0?typeof t=="string"?a.fill(s,t):a.fill(s):a.fill(0),a},b.allocUnsafe=function(f){if(typeof f!="number")throw new TypeError("Argument must be a number");return u(f)},b.allocUnsafeSlow=function(f){if(typeof f!="number")throw new TypeError("Argument must be a number");return i.SlowBuffer(f)}},{buffer:38}],194:[function(r,A,y){(function(m){"use strict";function b(p){return p&&p.__esModule?p:{default:p}}var i=r("babel-runtime/core-js/string/from-code-point"),u=b(i),f=r("babel-runtime/core-js/json/stringify"),s=b(f),t=r("babel-runtime/helpers/typeof"),a=b(t),o=r("babel-runtime/core-js/object/define-property"),c=b(o),d=r("babel-runtime/core-js/object/keys"),l=b(d),x=r("babel-runtime/core-js/object/create"),w=b(x);!function(p){function O(v,_){if(!(this instanceof O))return new O(v,_);var B=this;h(B),B.q=B.c="",B.bufferCheckPosition=p.MAX_BUFFER_LENGTH,B.opt=_||{},B.opt.lowercase=B.opt.lowercase||B.opt.lowercasetags,B.looseCase=B.opt.lowercase?"toLowerCase":"toUpperCase",B.tags=[],B.closed=B.closedRoot=B.sawRoot=!1,B.tag=B.error=null,B.strict=!!v,B.noscript=!(!v&&!B.opt.noscript),B.state=n.BEGIN,B.strictEntities=B.opt.strictEntities,B.ENTITIES=B.strictEntities?(0,w.default)(p.XML_ENTITIES):(0,w.default)(p.ENTITIES),B.attribList=[],B.opt.xmlns&&(B.ns=(0,w.default)(ce)),B.trackPosition=B.opt.position!==!1,B.trackPosition&&(B.position=B.line=B.column=0),V(B,"onready")}function S(v){for(var _=Math.max(p.MAX_BUFFER_LENGTH,10),B=0,Z=0,Ee=me.length;Z<Ee;Z++){var ye=v[me[Z]].length;if(ye>_)switch(me[Z]){case"textNode":$(v);break;case"cdata":H(v,"oncdata",v.cdata),v.cdata="";break;case"script":H(v,"onscript",v.script),v.script="";break;default:M(v,"Max buffer length exceeded: "+me[Z])}B=Math.max(B,ye)}var Ae=p.MAX_BUFFER_LENGTH-B;v.bufferCheckPosition=Ae+v.position}function h(v){for(var _=0,B=me.length;_<B;_++)v[me[_]]=""}function E(v){$(v),v.cdata!==""&&(H(v,"oncdata",v.cdata),v.cdata=""),v.script!==""&&(H(v,"onscript",v.script),v.script="")}function L(v,_){return new P(v,_)}function P(v,_){if(!(this instanceof P))return new P(v,_);ve.apply(this),this._parser=new O(v,_),this.writable=!0,this.readable=!0;var B=this;this._parser.onend=function(){B.emit("end")},this._parser.onerror=function(Z){B.emit("error",Z),B._parser.error=null},this._decoder=null,ie.forEach(function(Z){(0,c.default)(B,"on"+Z,{get:function(){return B._parser["on"+Z]},set:function(ye){if(!ye)return B.removeAllListeners(Z),B._parser["on"+Z]=ye,ye;B.on(Z,ye)},enumerable:!0,configurable:!1})})}function g(v){return v===" "||v===`
|
|
|
`||v==="\r"||v===" "}function F(v){return v==='"'||v==="'"}function I(v){return v===">"||g(v)}function X(v,_){return v.test(_)}function R(v,_){return!X(v,_)}function V(v,_,B){v[_]&&v[_](B)}function H(v,_,B){v.textNode&&$(v),V(v,_,B)}function $(v){v.textNode=ae(v.opt,v.textNode),v.textNode&&V(v,"ontext",v.textNode),v.textNode=""}function ae(v,_){return v.trim&&(_=_.trim()),v.normalize&&(_=_.replace(/\s+/g," ")),_}function M(v,_){return $(v),v.trackPosition&&(_+=`
|
|
|
Line: `+v.line+`
|
|
|
Column: `+v.column+`
|
|
|
Char: `+v.c),_=new Error(_),v.error=_,V(v,"onerror",_),v}function Q(v){return v.sawRoot&&!v.closedRoot&&Y(v,"Unclosed root tag"),v.state!==n.BEGIN&&v.state!==n.BEGIN_WHITESPACE&&v.state!==n.TEXT&&M(v,"Unexpected end"),$(v),v.c="",v.closed=!0,V(v,"onend"),O.call(v,v.strict,v.opt),v}function Y(v,_){if((v===void 0?"undefined":(0,a.default)(v))!=="object"||!(v instanceof O))throw new Error("bad call to strictFail");v.strict&&M(v,_)}function W(v){v.strict||(v.tagName=v.tagName[v.looseCase]());var _=v.tags[v.tags.length-1]||v,B=v.tag={name:v.tagName,attributes:{}};v.opt.xmlns&&(B.ns=_.ns),v.attribList.length=0,H(v,"onopentagstart",B)}function D(v,_){var B=v.indexOf(":"),Z=B<0?["",v]:v.split(":"),Ee=Z[0],ye=Z[1];return _&&v==="xmlns"&&(Ee="xmlns",ye=""),{prefix:Ee,local:ye}}function C(v){if(v.strict||(v.attribName=v.attribName[v.looseCase]()),v.attribList.indexOf(v.attribName)!==-1||v.tag.attributes.hasOwnProperty(v.attribName))return void(v.attribName=v.attribValue="");if(v.opt.xmlns){var _=D(v.attribName,!0),B=_.prefix,Z=_.local;if(B==="xmlns")if(Z==="xml"&&v.attribValue!==K)Y(v,"xml: prefix must be bound to "+K+`
|
|
|
Actual: `+v.attribValue);else if(Z==="xmlns"&&v.attribValue!==q)Y(v,"xmlns: prefix must be bound to "+q+`
|
|
|
Actual: `+v.attribValue);else{var Ee=v.tag,ye=v.tags[v.tags.length-1]||v;Ee.ns===ye.ns&&(Ee.ns=(0,w.default)(ye.ns)),Ee.ns[Z]=v.attribValue}v.attribList.push([v.attribName,v.attribValue])}else v.tag.attributes[v.attribName]=v.attribValue,H(v,"onattribute",{name:v.attribName,value:v.attribValue});v.attribName=v.attribValue=""}function U(v,_){if(v.opt.xmlns){var B=v.tag,Z=D(v.tagName);B.prefix=Z.prefix,B.local=Z.local,B.uri=B.ns[Z.prefix]||"",B.prefix&&!B.uri&&(Y(v,"Unbound namespace prefix: "+(0,s.default)(v.tagName)),B.uri=Z.prefix);var Ee=v.tags[v.tags.length-1]||v;B.ns&&Ee.ns!==B.ns&&(0,l.default)(B.ns).forEach(function(We){H(v,"onopennamespace",{prefix:We,uri:B.ns[We]})});for(var ye=0,Ae=v.attribList.length;ye<Ae;ye++){var Le=v.attribList[ye],Fe=Le[0],et=Le[1],_e=D(Fe,!0),he=_e.prefix,Se=_e.local,Te=he===""?"":B.ns[he]||"",Pe={name:Fe,value:et,prefix:he,local:Se,uri:Te};he&&he!=="xmlns"&&!Te&&(Y(v,"Unbound namespace prefix: "+(0,s.default)(he)),Pe.uri=he),v.tag.attributes[Fe]=Pe,H(v,"onattribute",Pe)}v.attribList.length=0}v.tag.isSelfClosing=!!_,v.sawRoot=!0,v.tags.push(v.tag),H(v,"onopentag",v.tag),_||(v.noscript||v.tagName.toLowerCase()!=="script"?v.state=n.TEXT:v.state=n.SCRIPT,v.tag=null,v.tagName=""),v.attribName=v.attribValue="",v.attribList.length=0}function G(v){if(!v.tagName)return Y(v,"Weird empty close tag."),v.textNode+="</>",void(v.state=n.TEXT);if(v.script){if(v.tagName!=="script")return v.script+="</"+v.tagName+">",v.tagName="",void(v.state=n.SCRIPT);H(v,"onscript",v.script),v.script=""}var _=v.tags.length,B=v.tagName;v.strict||(B=B[v.looseCase]());for(var Z=B;_--&&!(v.tags[_].name===Z);)Y(v,"Unexpected close tag");if(_<0)return Y(v,"Unmatched closing tag: "+v.tagName),v.textNode+="</"+v.tagName+">",void(v.state=n.TEXT);v.tagName=B;for(var Ee=v.tags.length;Ee-- >_;){var ye=v.tag=v.tags.pop();v.tagName=v.tag.name,H(v,"onclosetag",v.tagName);var Ae={};for(var Le in ye.ns)Ae[Le]=ye.ns[Le];var Fe=v.tags[v.tags.length-1]||v;v.opt.xmlns&&ye.ns!==Fe.ns&&(0,l.default)(ye.ns).forEach(function(et){var _e=ye.ns[et];H(v,"onclosenamespace",{prefix:et,uri:_e})})}_===0&&(v.closedRoot=!0),v.tagName=v.attribValue=v.attribName="",v.attribList.length=0,v.state=n.TEXT}function J(v){var _,B=v.entity,Z=B.toLowerCase(),Ee="";return v.ENTITIES[B]?v.ENTITIES[B]:v.ENTITIES[Z]?v.ENTITIES[Z]:(B=Z,B.charAt(0)==="#"&&(B.charAt(1)==="x"?(B=B.slice(2),_=parseInt(B,16),Ee=_.toString(16)):(B=B.slice(1),_=parseInt(B,10),Ee=_.toString(10))),B=B.replace(/^0+/,""),isNaN(_)||Ee.toLowerCase()!==B?(Y(v,"Invalid character entity"),"&"+v.entity+";"):(0,u.default)(_))}function ne(v,_){_==="<"?(v.state=n.OPEN_WAKA,v.startTagPosition=v.position):g(_)||(Y(v,"Non-whitespace before first tag."),v.textNode=_,v.state=n.TEXT)}function fe(v,_){var B="";return _<v.length&&(B=v.charAt(_)),B}function se(v){var _=this;if(this.error)throw this.error;if(_.closed)return M(_,"Cannot write after close. Assign an onready handler.");if(v===null)return Q(_);(v===void 0?"undefined":(0,a.default)(v))==="object"&&(v=v.toString());for(var B=0,Z="";!(Z=fe(v,B++),_.c=Z,!Z);)switch(_.trackPosition&&(_.position++,Z===`
|
|
|
`?(_.line++,_.column=0):_.column++),_.state){case n.BEGIN:if(_.state=n.BEGIN_WHITESPACE,Z==="\uFEFF")continue;ne(_,Z);continue;case n.BEGIN_WHITESPACE:ne(_,Z);continue;case n.TEXT:if(_.sawRoot&&!_.closedRoot){for(var Ee=B-1;Z&&Z!=="<"&&Z!=="&";)(Z=fe(v,B++))&&_.trackPosition&&(_.position++,Z===`
|
|
|
`?(_.line++,_.column=0):_.column++);_.textNode+=v.substring(Ee,B-1)}Z!=="<"||_.sawRoot&&_.closedRoot&&!_.strict?(g(Z)||_.sawRoot&&!_.closedRoot||Y(_,"Text data outside of root node."),Z==="&"?_.state=n.TEXT_ENTITY:_.textNode+=Z):(_.state=n.OPEN_WAKA,_.startTagPosition=_.position);continue;case n.SCRIPT:Z==="<"?_.state=n.SCRIPT_ENDING:_.script+=Z;continue;case n.SCRIPT_ENDING:Z==="/"?_.state=n.CLOSE_TAG:(_.script+="<"+Z,_.state=n.SCRIPT);continue;case n.OPEN_WAKA:if(Z==="!")_.state=n.SGML_DECL,_.sgmlDecl="";else if(!g(Z))if(X(ue,Z))_.state=n.OPEN_TAG,_.tagName=Z;else if(Z==="/")_.state=n.CLOSE_TAG,_.tagName="";else if(Z==="?")_.state=n.PROC_INST,_.procInstName=_.procInstBody="";else{if(Y(_,"Unencoded <"),_.startTagPosition+1<_.position){var ye=_.position-_.startTagPosition;Z=new Array(ye).join(" ")+Z}_.textNode+="<"+Z,_.state=n.TEXT}continue;case n.SGML_DECL:(_.sgmlDecl+Z).toUpperCase()===oe?(H(_,"onopencdata"),_.state=n.CDATA,_.sgmlDecl="",_.cdata=""):_.sgmlDecl+Z==="--"?(_.state=n.COMMENT,_.comment="",_.sgmlDecl=""):(_.sgmlDecl+Z).toUpperCase()===le?(_.state=n.DOCTYPE,(_.doctype||_.sawRoot)&&Y(_,"Inappropriately located doctype declaration"),_.doctype="",_.sgmlDecl=""):Z===">"?(H(_,"onsgmldeclaration",_.sgmlDecl),_.sgmlDecl="",_.state=n.TEXT):(F(Z)&&(_.state=n.SGML_DECL_QUOTED),_.sgmlDecl+=Z);continue;case n.SGML_DECL_QUOTED:Z===_.q&&(_.state=n.SGML_DECL,_.q=""),_.sgmlDecl+=Z;continue;case n.DOCTYPE:Z===">"?(_.state=n.TEXT,H(_,"ondoctype",_.doctype),_.doctype=!0):(_.doctype+=Z,Z==="["?_.state=n.DOCTYPE_DTD:F(Z)&&(_.state=n.DOCTYPE_QUOTED,_.q=Z));continue;case n.DOCTYPE_QUOTED:_.doctype+=Z,Z===_.q&&(_.q="",_.state=n.DOCTYPE);continue;case n.DOCTYPE_DTD:_.doctype+=Z,Z==="]"?_.state=n.DOCTYPE:F(Z)&&(_.state=n.DOCTYPE_DTD_QUOTED,_.q=Z);continue;case n.DOCTYPE_DTD_QUOTED:_.doctype+=Z,Z===_.q&&(_.state=n.DOCTYPE_DTD,_.q="");continue;case n.COMMENT:Z==="-"?_.state=n.COMMENT_ENDING:_.comment+=Z;continue;case n.COMMENT_ENDING:Z==="-"?(_.state=n.COMMENT_ENDED,_.comment=ae(_.opt,_.comment),_.comment&&H(_,"oncomment",_.comment),_.comment=""):(_.comment+="-"+Z,_.state=n.COMMENT);continue;case n.COMMENT_ENDED:Z!==">"?(Y(_,"Malformed comment"),_.comment+="--"+Z,_.state=n.COMMENT):_.state=n.TEXT;continue;case n.CDATA:Z==="]"?_.state=n.CDATA_ENDING:_.cdata+=Z;continue;case n.CDATA_ENDING:Z==="]"?_.state=n.CDATA_ENDING_2:(_.cdata+="]"+Z,_.state=n.CDATA);continue;case n.CDATA_ENDING_2:Z===">"?(_.cdata&&H(_,"oncdata",_.cdata),H(_,"onclosecdata"),_.cdata="",_.state=n.TEXT):Z==="]"?_.cdata+="]":(_.cdata+="]]"+Z,_.state=n.CDATA);continue;case n.PROC_INST:Z==="?"?_.state=n.PROC_INST_ENDING:g(Z)?_.state=n.PROC_INST_BODY:_.procInstName+=Z;continue;case n.PROC_INST_BODY:if(!_.procInstBody&&g(Z))continue;Z==="?"?_.state=n.PROC_INST_ENDING:_.procInstBody+=Z;continue;case n.PROC_INST_ENDING:Z===">"?(H(_,"onprocessinginstruction",{name:_.procInstName,body:_.procInstBody}),_.procInstName=_.procInstBody="",_.state=n.TEXT):(_.procInstBody+="?"+Z,_.state=n.PROC_INST_BODY);continue;case n.OPEN_TAG:X(we,Z)?_.tagName+=Z:(W(_),Z===">"?U(_):Z==="/"?_.state=n.OPEN_TAG_SLASH:(g(Z)||Y(_,"Invalid character in tag name"),_.state=n.ATTRIB));continue;case n.OPEN_TAG_SLASH:Z===">"?(U(_,!0),G(_)):(Y(_,"Forward-slash in opening tag not followed by >"),_.state=n.ATTRIB);continue;case n.ATTRIB:if(g(Z))continue;Z===">"?U(_):Z==="/"?_.state=n.OPEN_TAG_SLASH:X(ue,Z)?(_.attribName=Z,_.attribValue="",_.state=n.ATTRIB_NAME):Y(_,"Invalid attribute name");continue;case n.ATTRIB_NAME:Z==="="?_.state=n.ATTRIB_VALUE:Z===">"?(Y(_,"Attribute without value"),_.attribValue=_.attribName,C(_),U(_)):g(Z)?_.state=n.ATTRIB_NAME_SAW_WHITE:X(we,Z)?_.attribName+=Z:Y(_,"Invalid attribute name");continue;case n.ATTRIB_NAME_SAW_WHITE:if(Z==="=")_.state=n.ATTRIB_VALUE;else{if(g(Z))continue;Y(_,"Attribute without value"),_.tag.attributes[_.attribName]="",_.attribValue="",H(_,"onattribute",{name:_.attribName,value:""}),_.attribName="",Z===">"?U(_):X(ue,Z)?(_.attribName=Z,_.state=n.ATTRIB_NAME):(Y(_,"Invalid attribute name"),_.state=n.ATTRIB)}continue;case n.ATTRIB_VALUE:if(g(Z))continue;F(Z)?(_.q=Z,_.state=n.ATTRIB_VALUE_QUOTED):(Y(_,"Unquoted attribute value"),_.state=n.ATTRIB_VALUE_UNQUOTED,_.attribValue=Z);continue;case n.ATTRIB_VALUE_QUOTED:if(Z!==_.q){Z==="&"?_.state=n.ATTRIB_VALUE_ENTITY_Q:_.attribValue+=Z;continue}C(_),_.q="",_.state=n.ATTRIB_VALUE_CLOSED;continue;case n.ATTRIB_VALUE_CLOSED:g(Z)?_.state=n.ATTRIB:Z===">"?U(_):Z==="/"?_.state=n.OPEN_TAG_SLASH:X(ue,Z)?(Y(_,"No whitespace between attributes"),_.attribName=Z,_.attribValue="",_.state=n.ATTRIB_NAME):Y(_,"Invalid attribute name");continue;case n.ATTRIB_VALUE_UNQUOTED:if(!I(Z)){Z==="&"?_.state=n.ATTRIB_VALUE_ENTITY_U:_.attribValue+=Z;continue}C(_),Z===">"?U(_):_.state=n.ATTRIB;continue;case n.CLOSE_TAG:if(_.tagName)Z===">"?G(_):X(we,Z)?_.tagName+=Z:_.script?(_.script+="</"+_.tagName,_.tagName="",_.state=n.SCRIPT):(g(Z)||Y(_,"Invalid tagname in closing tag"),_.state=n.CLOSE_TAG_SAW_WHITE);else{if(g(Z))continue;R(ue,Z)?_.script?(_.script+="</"+Z,_.state=n.SCRIPT):Y(_,"Invalid tagname in closing tag."):_.tagName=Z}continue;case n.CLOSE_TAG_SAW_WHITE:if(g(Z))continue;Z===">"?G(_):Y(_,"Invalid characters in closing tag");continue;case n.TEXT_ENTITY:case n.ATTRIB_VALUE_ENTITY_Q:case n.ATTRIB_VALUE_ENTITY_U:var Ae,Le;switch(_.state){case n.TEXT_ENTITY:Ae=n.TEXT,Le="textNode";break;case n.ATTRIB_VALUE_ENTITY_Q:Ae=n.ATTRIB_VALUE_QUOTED,Le="attribValue";break;case n.ATTRIB_VALUE_ENTITY_U:Ae=n.ATTRIB_VALUE_UNQUOTED,Le="attribValue"}Z===";"?(_[Le]+=J(_),_.entity="",_.state=Ae):X(_.entity.length?e:k,Z)?_.entity+=Z:(Y(_,"Invalid character in entity name"),_[Le]+="&"+_.entity+Z,_.entity="",_.state=Ae);continue;default:throw new Error(_,"Unknown state: "+_.state)}return _.position>=_.bufferCheckPosition&&S(_),_}p.parser=function(v,_){return new O(v,_)},p.SAXParser=O,p.SAXStream=P,p.createStream=L,p.MAX_BUFFER_LENGTH=65536;var me=["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"],w.default||(Object.create=function(v){function _(){}return _.prototype=v,new _}),l.default||(Object.keys=function(v){var _=[];for(var B in v)v.hasOwnProperty(B)&&_.push(B);return _}),O.prototype={end:function(){Q(this)},write:se,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){E(this)}};var ve;try{ve=r("stream").Stream}catch(v){ve=function(){}}var ie=p.EVENTS.filter(function(v){return v!=="error"&&v!=="end"});P.prototype=(0,w.default)(ve.prototype,{constructor:{value:P}}),P.prototype.write=function(v){if(typeof m=="function"&&typeof m.isBuffer=="function"&&m.isBuffer(v)){if(!this._decoder){var _=r("string_decoder").StringDecoder;this._decoder=new _("utf8")}v=this._decoder.write(v)}return this._parser.write(v.toString()),this.emit("data",v),!0},P.prototype.end=function(v){return v&&v.length&&this.write(v),this._parser.end(),!0},P.prototype.on=function(v,_){var B=this;return B._parser["on"+v]||ie.indexOf(v)===-1||(B._parser["on"+v]=function(){var Z=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);Z.splice(0,0,v),B.emit.apply(B,Z)}),ve.prototype.on.call(B,v,_)};var oe="[CDATA[",le="DOCTYPE",K="http://www.w3.org/XML/1998/namespace",q="http://www.w3.org/2000/xmlns/",ce={xml:K,xmlns:q},ue=/[:_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]/,we=/[:_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-]/,k=/[#:_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]/,e=/[#:_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-]/,n=0;p.STATE={BEGIN:n++,BEGIN_WHITESPACE:n++,TEXT:n++,TEXT_ENTITY:n++,OPEN_WAKA:n++,SGML_DECL:n++,SGML_DECL_QUOTED:n++,DOCTYPE:n++,DOCTYPE_QUOTED:n++,DOCTYPE_DTD:n++,DOCTYPE_DTD_QUOTED:n++,COMMENT_STARTING:n++,COMMENT:n++,COMMENT_ENDING:n++,COMMENT_ENDED:n++,CDATA:n++,CDATA_ENDING:n++,CDATA_ENDING_2:n++,PROC_INST:n++,PROC_INST_BODY:n++,PROC_INST_ENDING:n++,OPEN_TAG:n++,OPEN_TAG_SLASH:n++,ATTRIB:n++,ATTRIB_NAME:n++,ATTRIB_NAME_SAW_WHITE:n++,ATTRIB_VALUE:n++,ATTRIB_VALUE_QUOTED:n++,ATTRIB_VALUE_CLOSED:n++,ATTRIB_VALUE_UNQUOTED:n++,ATTRIB_VALUE_ENTITY_Q:n++,ATTRIB_VALUE_ENTITY_U:n++,CLOSE_TAG:n++,CLOSE_TAG_SAW_WHITE:n++,SCRIPT:n++,SCRIPT_ENDING:n++},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,l.default)(p.ENTITIES).forEach(function(v){var _=p.ENTITIES[v],B=typeof _=="number"?String.fromCharCode(_):_;p.ENTITIES[v]=B});for(var T in p.STATE)p.STATE[p.STATE[T]]=T;n=p.STATE,u.default||function(){var v=String.fromCharCode,_=Math.floor,B=function(){var Ee,ye,Ae=[],Le=-1,Fe=arguments.length;if(!Fe)return"";for(var et="";++Le<Fe;){var _e=Number(arguments[Le]);if(!isFinite(_e)||_e<0||_e>1114111||_(_e)!==_e)throw RangeError("Invalid code point: "+_e);_e<=65535?Ae.push(_e):(_e-=65536,Ee=55296+(_e>>10),ye=_e%1024+56320,Ae.push(Ee,ye)),(Le+1===Fe||Ae.length>16384)&&(et+=v.apply(null,Ae),Ae.length=0)}return et};c.default?Object.defineProperty(String,"fromCodePoint",{value:B,configurable:!0,writable:!0}):String.fromCodePoint=B}()}(y===void 0?(void 0).sax={}:y)}).call(this,r("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(r,A,y){function m(){b.call(this)}A.exports=m;var b=r("events").EventEmitter;r("inherits")(m,b),m.Readable=r("readable-stream/readable.js"),m.Writable=r("readable-stream/writable.js"),m.Duplex=r("readable-stream/duplex.js"),m.Transform=r("readable-stream/transform.js"),m.PassThrough=r("readable-stream/passthrough.js"),m.Stream=m,m.prototype.pipe=function(i,u){function f(x){i.writable&&i.write(x)===!1&&d.pause&&d.pause()}function s(){d.readable&&d.resume&&d.resume()}function t(){l||(l=!0,i.end())}function a(){l||(l=!0,typeof i.destroy=="function"&&i.destroy())}function o(x){if(c(),b.listenerCount(this,"error")===0)throw x}function c(){d.removeListener("data",f),i.removeListener("drain",s),d.removeListener("end",t),d.removeListener("close",a),d.removeListener("error",o),i.removeListener("error",o),d.removeListener("end",c),d.removeListener("close",c),i.removeListener("close",c)}var d=this;d.on("data",f),i.on("drain",s),i._isStdio||u&&u.end===!1||(d.on("end",t),d.on("close",a));var l=!1;return d.on("error",o),i.on("error",o),d.on("end",c),d.on("close",c),i.on("close",c),i.emit("pipe",d),i}},{events:158,inherits:162,"readable-stream/duplex.js":178,"readable-stream/passthrough.js":187,"readable-stream/readable.js":188,"readable-stream/transform.js":189,"readable-stream/writable.js":190}],196:[function(r,A,y){(function(m){var b=r("./lib/request"),i=r("./lib/response"),u=r("xtend"),f=r("builtin-status-codes"),s=r("url"),t=y;t.request=function(a,o){a=typeof a=="string"?s.parse(a):u(a);var c=m.location.protocol.search(/^https?:$/)===-1?"http:":"",d=a.protocol||c,l=a.hostname||a.host,x=a.port,w=a.path||"/";l&&l.indexOf(":")!==-1&&(l="["+l+"]"),a.url=(l?d+"//"+l:"")+(x?":"+x:"")+w,a.method=(a.method||"GET").toUpperCase(),a.headers=a.headers||{};var p=new b(a);return o&&p.on("response",o),p},t.get=function(a,o){var c=t.request(a,o);return c.end(),c},t.ClientRequest=b,t.IncomingMessage=i.IncomingMessage,t.Agent=function(){},t.Agent.defaultMaxSockets=4,t.globalAgent=new t.Agent,t.STATUS_CODES=f,t.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 Ye!="undefined"?Ye:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./lib/request":198,"./lib/response":199,"builtin-status-codes":39,url:203,xtend:236}],197:[function(r,A,y){(function(m){"use strict";function b(){if(f!==void 0)return f;if(m.XMLHttpRequest){f=new m.XMLHttpRequest;try{f.open("GET",m.XDomainRequest?"/":"https://example.com")}catch(a){f=null}}else f=null;return f}function i(a){var o=b();if(!o)return!1;try{return o.responseType=a,o.responseType===a}catch(c){}return!1}function u(a){return typeof a=="function"}y.fetch=u(m.fetch)&&u(m.ReadableStream),y.writableStream=u(m.WritableStream),y.abortController=u(m.AbortController),y.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),y.blobConstructor=!0}catch(a){}var f,s=m.ArrayBuffer!==void 0,t=s&&u(m.ArrayBuffer.prototype.slice);y.arraybuffer=y.fetch||s&&i("arraybuffer"),y.msstream=!y.fetch&&t&&i("ms-stream"),y.mozchunkedarraybuffer=!y.fetch&&s&&i("moz-chunked-arraybuffer"),y.overrideMimeType=y.fetch||!!b()&&u(b().overrideMimeType),y.vbArray=u(m.VBArray),f=null}).call(this,typeof Ye!="undefined"?Ye:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],198:[function(r,A,y){(function(m,b,i){"use strict";function u(S,h){return a.fetch&&h?"fetch":a.mozchunkedarraybuffer?"moz-chunked-arraybuffer":a.msstream?"ms-stream":a.arraybuffer&&S?"arraybuffer":a.vbArray&&S?"text:vbarray":"text"}function f(S){try{var h=S.status;return h!==null&&h!==0}catch(E){return!1}}var s=r("babel-runtime/core-js/object/keys"),t=function(S){return S&&S.__esModule?S:{default:S}}(s),a=r("./capability"),o=r("inherits"),c=r("./response"),d=r("readable-stream"),l=r("to-arraybuffer"),x=c.IncomingMessage,w=c.readyStates,p=A.exports=function(S){var h=this;d.Writable.call(h),h._opts=S,h._body=[],h._headers={},S.auth&&h.setHeader("Authorization","Basic "+new i(S.auth).toString("base64")),(0,t.default)(S.headers).forEach(function(P){h.setHeader(P,S.headers[P])});var E,L=!0;if(S.mode==="disable-fetch"||"requestTimeout"in S&&!a.abortController)L=!1,E=!0;else if(S.mode==="prefer-streaming")E=!1;else if(S.mode==="allow-wrong-content-type")E=!a.overrideMimeType;else{if(S.mode&&S.mode!=="default"&&S.mode!=="prefer-fast")throw new Error("Invalid value for opts.mode");E=!0}h._mode=u(E,L),h._fetchTimer=null,h.on("finish",function(){h._onFinish()})};o(p,d.Writable),p.prototype.setHeader=function(S,h){var E=this,L=S.toLowerCase();O.indexOf(L)===-1&&(E._headers[L]={name:S,value:h})},p.prototype.getHeader=function(S){var h=this._headers[S.toLowerCase()];return h?h.value:null},p.prototype.removeHeader=function(S){delete this._headers[S.toLowerCase()]},p.prototype._onFinish=function(){var S=this;if(!S._destroyed){var h=S._opts,E=S._headers,L=null;h.method!=="GET"&&h.method!=="HEAD"&&(L=a.arraybuffer?l(i.concat(S._body)):a.blobConstructor?new b.Blob(S._body.map(function(X){return l(X)}),{type:(E["content-type"]||{}).value||""}):i.concat(S._body).toString());var P=[];if((0,t.default)(E).forEach(function(X){var R=E[X].name,V=E[X].value;Array.isArray(V)?V.forEach(function(H){P.push([R,H])}):P.push([R,V])}),S._mode==="fetch"){var g=null;if(a.abortController){var F=new AbortController;g=F.signal,S._fetchAbortController=F,"requestTimeout"in h&&h.requestTimeout!==0&&(S._fetchTimer=b.setTimeout(function(){S.emit("requestTimeout"),S._fetchAbortController&&S._fetchAbortController.abort()},h.requestTimeout))}b.fetch(S._opts.url,{method:S._opts.method,headers:P,body:L||void 0,mode:"cors",credentials:h.withCredentials?"include":"same-origin",signal:g}).then(function(X){S._fetchResponse=X,S._connect()},function(X){b.clearTimeout(S._fetchTimer),S._destroyed||S.emit("error",X)})}else{var I=S._xhr=new b.XMLHttpRequest;try{I.open(S._opts.method,S._opts.url,!0)}catch(X){return void m.nextTick(function(){S.emit("error",X)})}"responseType"in I&&(I.responseType=S._mode.split(":")[0]),"withCredentials"in I&&(I.withCredentials=!!h.withCredentials),S._mode==="text"&&"overrideMimeType"in I&&I.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in h&&(I.timeout=h.requestTimeout,I.ontimeout=function(){S.emit("requestTimeout")}),P.forEach(function(X){I.setRequestHeader(X[0],X[1])}),S._response=null,I.onreadystatechange=function(){switch(I.readyState){case w.LOADING:case w.DONE:S._onXHRProgress()}},S._mode==="moz-chunked-arraybuffer"&&(I.onprogress=function(){S._onXHRProgress()}),I.onerror=function(){S._destroyed||S.emit("error",new Error("XHR error"))};try{I.send(L)}catch(X){return void m.nextTick(function(){S.emit("error",X)})}}}},p.prototype._onXHRProgress=function(){var S=this;f(S._xhr)&&!S._destroyed&&(S._response||S._connect(),S._response._onXHRProgress())},p.prototype._connect=function(){var S=this;S._destroyed||(S._response=new x(S._xhr,S._fetchResponse,S._mode,S._fetchTimer),S._response.on("error",function(h){S.emit("error",h)}),S.emit("response",S._response))},p.prototype._write=function(S,h,E){this._body.push(S),E()},p.prototype.abort=p.prototype.destroy=function(){var S=this;S._destroyed=!0,b.clearTimeout(S._fetchTimer),S._response&&(S._response._destroyed=!0),S._xhr?S._xhr.abort():S._fetchAbortController&&S._fetchAbortController.abort()},p.prototype.end=function(S,h,E){var L=this;typeof S=="function"&&(E=S,S=void 0),d.Writable.prototype.end.call(L,S,h,E)},p.prototype.flushHeaders=function(){},p.prototype.setTimeout=function(){},p.prototype.setNoDelay=function(){},p.prototype.setSocketKeepAlive=function(){};var O=["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,r("_process"),typeof Ye!="undefined"?Ye:typeof self!="undefined"?self:typeof window!="undefined"?window:{},r("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(r,A,y){(function(m,b,i){"use strict";var u=r("babel-runtime/core-js/promise"),f=function(d){return d&&d.__esModule?d:{default:d}}(u),s=r("./capability"),t=r("inherits"),a=r("readable-stream"),o=y.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},c=y.IncomingMessage=function(d,l,x,w){var p=this;if(a.Readable.call(p),p._mode=x,p.headers={},p.rawHeaders=[],p.trailers={},p.rawTrailers=[],p.on("end",function(){m.nextTick(function(){p.emit("close")})}),x==="fetch"){if(p._fetchResponse=l,p.url=l.url,p.statusCode=l.status,p.statusMessage=l.statusText,l.headers.forEach(function(L,P){p.headers[P.toLowerCase()]=L,p.rawHeaders.push(P,L)}),s.writableStream){var O=new WritableStream({write:function(P){return new f.default(function(g,F){p._destroyed?F():p.push(new i(P))?g():p._resumeFetch=g})},close:function(){b.clearTimeout(w),p._destroyed||p.push(null)},abort:function(P){p._destroyed||p.emit("error",P)}});try{return void l.body.pipeTo(O).catch(function(L){b.clearTimeout(w),p._destroyed||p.emit("error",L)})}catch(L){}}var S=l.body.getReader();!function L(){S.read().then(function(P){if(!p._destroyed){if(P.done)return b.clearTimeout(w),void p.push(null);p.push(new i(P.value)),L()}}).catch(function(P){b.clearTimeout(w),p._destroyed||p.emit("error",P)})}()}else if(p._xhr=d,p._pos=0,p.url=d.responseURL,p.statusCode=d.status,p.statusMessage=d.statusText,d.getAllResponseHeaders().split(/\r?\n/).forEach(function(L){var P=L.match(/^([^:]+):\s*(.*)/);if(P){var g=P[1].toLowerCase();g==="set-cookie"?(p.headers[g]===void 0&&(p.headers[g]=[]),p.headers[g].push(P[2])):p.headers[g]!==void 0?p.headers[g]+=", "+P[2]:p.headers[g]=P[2],p.rawHeaders.push(P[1],P[2])}}),p._charset="x-user-defined",!s.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")}};t(c,a.Readable),c.prototype._read=function(){var d=this,l=d._resumeFetch;l&&(d._resumeFetch=null,l())},c.prototype._onXHRProgress=function(){var d=this,l=d._xhr,x=null;switch(d._mode){case"text:vbarray":if(l.readyState!==o.DONE)break;try{x=new b.VBArray(l.responseBody).toArray()}catch(h){}if(x!==null){d.push(new i(x));break}case"text":try{x=l.responseText}catch(h){d._mode="text:vbarray";break}if(x.length>d._pos){var w=x.substr(d._pos);if(d._charset==="x-user-defined"){for(var p=new i(w.length),O=0;O<w.length;O++)p[O]=255&w.charCodeAt(O);d.push(p)}else d.push(w,d._charset);d._pos=x.length}break;case"arraybuffer":if(l.readyState!==o.DONE||!l.response)break;x=l.response,d.push(new i(new Uint8Array(x)));break;case"moz-chunked-arraybuffer":if(x=l.response,l.readyState!==o.LOADING||!x)break;d.push(new i(new Uint8Array(x)));break;case"ms-stream":if(x=l.response,l.readyState!==o.LOADING)break;var S=new b.MSStreamReader;S.onprogress=function(){S.result.byteLength>d._pos&&(d.push(new i(new Uint8Array(S.result.slice(d._pos)))),d._pos=S.result.byteLength)},S.onload=function(){d.push(null)},S.readAsArrayBuffer(x)}d._xhr.readyState===o.DONE&&d._mode!=="ms-stream"&&d.push(null)}}).call(this,r("_process"),typeof Ye!="undefined"?Ye:typeof self!="undefined"?self:typeof window!="undefined"?window:{},r("buffer").Buffer)},{"./capability":197,_process:173,"babel-runtime/core-js/promise":24,buffer:38,inherits:162,"readable-stream":188}],200:[function(r,A,y){"use strict";function m(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 b(h){var E=m(h);if(typeof E!="string"&&(O.isEncoding===S||!S(h)))throw new Error("Unknown encoding: "+h);return E||h}function i(h){this.encoding=b(h);var E;switch(this.encoding){case"utf16le":this.text=c,this.end=d,E=4;break;case"utf8":this.fillLast=t,E=4;break;case"base64":this.text=l,this.end=x,E=3;break;default:return this.write=w,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=O.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 f(h,E,L){var P=E.length-1;if(P<L)return 0;var g=u(E[P]);return g>=0?(g>0&&(h.lastNeed=g-1),g):--P<L||g===-2?0:(g=u(E[P]))>=0?(g>0&&(h.lastNeed=g-2),g):--P<L||g===-2?0:(g=u(E[P]),g>=0?(g>0&&(g===2?g=0:h.lastNeed=g-3),g):0)}function s(h,E,L){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 t(h){var E=this.lastTotal-this.lastNeed,L=s(this,h,E);return L!==void 0?L: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 a(h,E){var L=f(this,h,E);if(!this.lastNeed)return h.toString("utf8",E);this.lastTotal=L;var P=h.length-(L-this.lastNeed);return h.copy(this.lastChar,0,P),h.toString("utf8",E,P)}function o(h){var E=h&&h.length?this.write(h):"";return this.lastNeed?E+"\u951F\uFFFD":E}function c(h,E){if((h.length-E)%2==0){var L=h.toString("utf16le",E);if(L){var P=L.charCodeAt(L.length-1);if(P>=55296&&P<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=h[h.length-2],this.lastChar[1]=h[h.length-1],L.slice(0,-1)}return L}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=h[h.length-1],h.toString("utf16le",E,h.length-1)}function d(h){var E=h&&h.length?this.write(h):"";if(this.lastNeed){var L=this.lastTotal-this.lastNeed;return E+this.lastChar.toString("utf16le",0,L)}return E}function l(h,E){var L=(h.length-E)%3;return L===0?h.toString("base64",E):(this.lastNeed=3-L,this.lastTotal=3,L===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-L))}function x(h){var E=h&&h.length?this.write(h):"";return this.lastNeed?E+this.lastChar.toString("base64",0,3-this.lastNeed):E}function w(h){return h.toString(this.encoding)}function p(h){return h&&h.length?this.write(h):""}var O=r("safe-buffer").Buffer,S=O.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}};y.StringDecoder=i,i.prototype.write=function(h){if(h.length===0)return"";var E,L;if(this.lastNeed){if((E=this.fillLast(h))===void 0)return"";L=this.lastNeed,this.lastNeed=0}else L=0;return L<h.length?E?E+this.text(h,L):this.text(h,L):E||""},i.prototype.end=o,i.prototype.text=a,i.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(r,A,y){(function(m,b){function i(o,c){this._id=o,this._clearFn=c}var u=r("process/browser.js").nextTick,f=Function.prototype.apply,s=Array.prototype.slice,t={},a=0;y.setTimeout=function(){return new i(f.call(setTimeout,window,arguments),clearTimeout)},y.setInterval=function(){return new i(f.call(setInterval,window,arguments),clearInterval)},y.clearTimeout=y.clearInterval=function(o){o.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(window,this._id)},y.enroll=function(o,c){clearTimeout(o._idleTimeoutId),o._idleTimeout=c},y.unenroll=function(o){clearTimeout(o._idleTimeoutId),o._idleTimeout=-1},y._unrefActive=y.active=function(o){clearTimeout(o._idleTimeoutId);var c=o._idleTimeout;c>=0&&(o._idleTimeoutId=setTimeout(function(){o._onTimeout&&o._onTimeout()},c))},y.setImmediate=typeof m=="function"?m:function(o){var c=a++,d=!(arguments.length<2)&&s.call(arguments,1);return t[c]=!0,u(function(){t[c]&&(d?o.apply(null,d):o.call(null),y.clearImmediate(c))}),c},y.clearImmediate=typeof b=="function"?b:function(o){delete t[o]}}).call(this,r("timers").setImmediate,r("timers").clearImmediate)},{"process/browser.js":173,timers:201}],202:[function(r,A,y){var m=r("buffer").Buffer;A.exports=function(b){if(b instanceof Uint8Array){if(b.byteOffset===0&&b.byteLength===b.buffer.byteLength)return b.buffer;if(typeof b.buffer.slice=="function")return b.buffer.slice(b.byteOffset,b.byteOffset+b.byteLength)}if(m.isBuffer(b)){for(var i=new Uint8Array(b.length),u=b.length,f=0;f<u;f++)i[f]=b[f];return i.buffer}throw new Error("Argument must be a Buffer")}},{buffer:38}],203:[function(r,A,y){"use strict";function m(){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 b(g,F,I){if(g&&t.isObject(g)&&g instanceof m)return g;var X=new m;return X.parse(g,F,I),X}function i(g){return t.isString(g)&&(g=b(g)),g instanceof m?g.format():m.prototype.format.call(g)}function u(g,F){return b(g,!1,!0).resolve(F)}function f(g,F){return g?b(g,!1,!0).resolveObject(F):F}var s=r("punycode"),t=r("./util");y.parse=b,y.resolve=u,y.resolveObject=f,y.format=i,y.Url=m;var a=/^([a-z0-9.+-]+:)/i,o=/:[0-9]*$/,c=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,d=["<",">",'"',"`"," ","\r",`
|
|
|
`," "],l=["{","}","|","\\","^","`"].concat(d),x=["'"].concat(l),w=["%","/","?",";","#"].concat(x),p=["/","?","#"],O=/^[+a-z0-9A-Z_-]{0,63}$/,S=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,h={javascript:!0,"javascript:":!0},E={javascript:!0,"javascript:":!0},L={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},P=r("querystring");m.prototype.parse=function(g,F,I){if(!t.isString(g))throw new TypeError("Parameter 'url' must be a string, not "+typeof g);var X=g.indexOf("?"),R=X!==-1&&X<g.indexOf("#")?"?":"#",V=g.split(R),H=/\\/g;V[0]=V[0].replace(H,"/"),g=V.join(R);var $=g;if($=$.trim(),!I&&g.split("#").length===1){var ae=c.exec($);if(ae)return this.path=$,this.href=$,this.pathname=ae[1],ae[2]?(this.search=ae[2],this.query=F?P.parse(this.search.substr(1)):this.search.substr(1)):F&&(this.search="",this.query={}),this}var M=a.exec($);if(M){M=M[0];var Q=M.toLowerCase();this.protocol=Q,$=$.substr(M.length)}if(I||M||$.match(/^\/\/[^@\/]+@[^@\/]+/)){var Y=$.substr(0,2)==="//";!Y||M&&E[M]||($=$.substr(2),this.slashes=!0)}if(!E[M]&&(Y||M&&!L[M])){for(var W=-1,D=0;D<p.length;D++){var C=$.indexOf(p[D]);C!==-1&&(W===-1||C<W)&&(W=C)}var U,G;G=W===-1?$.lastIndexOf("@"):$.lastIndexOf("@",W),G!==-1&&(U=$.slice(0,G),$=$.slice(G+1),this.auth=decodeURIComponent(U)),W=-1;for(var D=0;D<w.length;D++){var C=$.indexOf(w[D]);C!==-1&&(W===-1||C<W)&&(W=C)}W===-1&&(W=$.length),this.host=$.slice(0,W),$=$.slice(W),this.parseHost(),this.hostname=this.hostname||"";var J=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!J)for(var ne=this.hostname.split(/\./),D=0,fe=ne.length;D<fe;D++){var se=ne[D];if(se&&!se.match(O)){for(var me="",ve=0,ie=se.length;ve<ie;ve++)se.charCodeAt(ve)>127?me+="x":me+=se[ve];if(!me.match(O)){var oe=ne.slice(0,D),le=ne.slice(D+1),K=se.match(S);K&&(oe.push(K[1]),le.unshift(K[2])),le.length&&($="/"+le.join(".")+$),this.hostname=oe.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),J||(this.hostname=s.toASCII(this.hostname));var q=this.port?":"+this.port:"",ce=this.hostname||"";this.host=ce+q,this.href+=this.host,J&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),$[0]!=="/"&&($="/"+$))}if(!h[Q])for(var D=0,fe=x.length;D<fe;D++){var ue=x[D];if($.indexOf(ue)!==-1){var we=encodeURIComponent(ue);we===ue&&(we=escape(ue)),$=$.split(ue).join(we)}}var k=$.indexOf("#");k!==-1&&(this.hash=$.substr(k),$=$.slice(0,k));var e=$.indexOf("?");if(e!==-1?(this.search=$.substr(e),this.query=$.substr(e+1),F&&(this.query=P.parse(this.query)),$=$.slice(0,e)):F&&(this.search="",this.query={}),$&&(this.pathname=$),L[Q]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var q=this.pathname||"",n=this.search||"";this.path=q+n}return this.href=this.format(),this},m.prototype.format=function(){var g=this.auth||"";g&&(g=encodeURIComponent(g),g=g.replace(/%3A/i,":"),g+="@");var F=this.protocol||"",I=this.pathname||"",X=this.hash||"",R=!1,V="";this.host?R=g+this.host:this.hostname&&(R=g+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(R+=":"+this.port)),this.query&&t.isObject(this.query)&&Object.keys(this.query).length&&(V=P.stringify(this.query));var H=this.search||V&&"?"+V||"";return F&&F.substr(-1)!==":"&&(F+=":"),this.slashes||(!F||L[F])&&R!==!1?(R="//"+(R||""),I&&I.charAt(0)!=="/"&&(I="/"+I)):R||(R=""),X&&X.charAt(0)!=="#"&&(X="#"+X),H&&H.charAt(0)!=="?"&&(H="?"+H),I=I.replace(/[?#]/g,function($){return encodeURIComponent($)}),H=H.replace("#","%23"),F+R+I+H+X},m.prototype.resolve=function(g){return this.resolveObject(b(g,!1,!0)).format()},m.prototype.resolveObject=function(g){if(t.isString(g)){var F=new m;F.parse(g,!1,!0),g=F}for(var I=new m,X=Object.keys(this),R=0;R<X.length;R++){var V=X[R];I[V]=this[V]}if(I.hash=g.hash,g.href==="")return I.href=I.format(),I;if(g.slashes&&!g.protocol){for(var H=Object.keys(g),$=0;$<H.length;$++){var ae=H[$];ae!=="protocol"&&(I[ae]=g[ae])}return L[I.protocol]&&I.hostname&&!I.pathname&&(I.path=I.pathname="/"),I.href=I.format(),I}if(g.protocol&&g.protocol!==I.protocol){if(!L[g.protocol]){for(var M=Object.keys(g),Q=0;Q<M.length;Q++){var Y=M[Q];I[Y]=g[Y]}return I.href=I.format(),I}if(I.protocol=g.protocol,g.host||E[g.protocol])I.pathname=g.pathname;else{for(var fe=(g.pathname||"").split("/");fe.length&&!(g.host=fe.shift()););g.host||(g.host=""),g.hostname||(g.hostname=""),fe[0]!==""&&fe.unshift(""),fe.length<2&&fe.unshift(""),I.pathname=fe.join("/")}if(I.search=g.search,I.query=g.query,I.host=g.host||"",I.auth=g.auth,I.hostname=g.hostname||g.host,I.port=g.port,I.pathname||I.search){var W=I.pathname||"",D=I.search||"";I.path=W+D}return I.slashes=I.slashes||g.slashes,I.href=I.format(),I}var C=I.pathname&&I.pathname.charAt(0)==="/",U=g.host||g.pathname&&g.pathname.charAt(0)==="/",G=U||C||I.host&&g.pathname,J=G,ne=I.pathname&&I.pathname.split("/")||[],fe=g.pathname&&g.pathname.split("/")||[],se=I.protocol&&!L[I.protocol];if(se&&(I.hostname="",I.port=null,I.host&&(ne[0]===""?ne[0]=I.host:ne.unshift(I.host)),I.host="",g.protocol&&(g.hostname=null,g.port=null,g.host&&(fe[0]===""?fe[0]=g.host:fe.unshift(g.host)),g.host=null),G=G&&(fe[0]===""||ne[0]==="")),U)I.host=g.host||g.host===""?g.host:I.host,I.hostname=g.hostname||g.hostname===""?g.hostname:I.hostname,I.search=g.search,I.query=g.query,ne=fe;else if(fe.length)ne||(ne=[]),ne.pop(),ne=ne.concat(fe),I.search=g.search,I.query=g.query;else if(!t.isNullOrUndefined(g.search)){if(se){I.hostname=I.host=ne.shift();var me=!!(I.host&&I.host.indexOf("@")>0)&&I.host.split("@");me&&(I.auth=me.shift(),I.host=I.hostname=me.shift())}return I.search=g.search,I.query=g.query,t.isNull(I.pathname)&&t.isNull(I.search)||(I.path=(I.pathname?I.pathname:"")+(I.search?I.search:"")),I.href=I.format(),I}if(!ne.length)return I.pathname=null,I.search?I.path="/"+I.search:I.path=null,I.href=I.format(),I;for(var ve=ne.slice(-1)[0],ie=(I.host||g.host||ne.length>1)&&(ve==="."||ve==="..")||ve==="",oe=0,le=ne.length;le>=0;le--)ve=ne[le],ve==="."?ne.splice(le,1):ve===".."?(ne.splice(le,1),oe++):oe&&(ne.splice(le,1),oe--);if(!G&&!J)for(;oe--;oe)ne.unshift("..");!G||ne[0]===""||ne[0]&&ne[0].charAt(0)==="/"||ne.unshift(""),ie&&ne.join("/").substr(-1)!=="/"&&ne.push("");var K=ne[0]===""||ne[0]&&ne[0].charAt(0)==="/";if(se){I.hostname=I.host=K?"":ne.length?ne.shift():"";var me=!!(I.host&&I.host.indexOf("@")>0)&&I.host.split("@");me&&(I.auth=me.shift(),I.host=I.hostname=me.shift())}return G=G||I.host&&ne.length,G&&!K&&ne.unshift(""),ne.length?I.pathname=ne.join("/"):(I.pathname=null,I.path=null),t.isNull(I.pathname)&&t.isNull(I.search)||(I.path=(I.pathname?I.pathname:"")+(I.search?I.search:"")),I.auth=g.auth||I.auth,I.slashes=I.slashes||g.slashes,I.href=I.format(),I},m.prototype.parseHost=function(){var g=this.host,F=o.exec(g);F&&(F=F[0],F!==":"&&(this.port=F.substr(1)),g=g.substr(0,g.length-F.length)),g&&(this.hostname=g)}},{"./util":204,punycode:174,querystring:177}],204:[function(r,A,y){"use strict";A.exports={isString:function(b){return typeof b=="string"},isObject:function(b){return typeof b=="object"&&b!==null},isNull:function(b){return b===null},isNullOrUndefined:function(b){return b==null}}},{}],205:[function(r,A,y){(function(m){function b(u,f){function s(){if(!t){if(i("throwDeprecation"))throw new Error(f);i("traceDeprecation")?console.trace(f):console.warn(f),t=!0}return u.apply(this,arguments)}if(i("noDeprecation"))return u;var t=!1;return s}function i(u){try{if(!m.localStorage)return!1}catch(s){return!1}var f=m.localStorage[u];return f!=null&&String(f).toLowerCase()==="true"}A.exports=b}).call(this,typeof Ye!="undefined"?Ye:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],206:[function(r,A,y){A.exports=function(m){return m&&typeof m=="object"&&typeof m.copy=="function"&&typeof m.fill=="function"&&typeof m.readUInt8=="function"}},{}],207:[function(r,A,y){(function(m,b){function i(D,C){var U={seen:[],stylize:f};return arguments.length>=3&&(U.depth=arguments[2]),arguments.length>=4&&(U.colors=arguments[3]),w(C)?U.showHidden=C:C&&y._extend(U,C),L(U.showHidden)&&(U.showHidden=!1),L(U.depth)&&(U.depth=2),L(U.colors)&&(U.colors=!1),L(U.customInspect)&&(U.customInspect=!0),U.colors&&(U.stylize=u),t(U,D,U.depth)}function u(D,C){var U=i.styles[C];return U?"["+i.colors[U][0]+"m"+D+"["+i.colors[U][1]+"m":D}function f(D,C){return D}function s(D){var C={};return D.forEach(function(U,G){C[U]=!0}),C}function t(D,C,U){if(D.customInspect&&C&&X(C.inspect)&&C.inspect!==y.inspect&&(!C.constructor||C.constructor.prototype!==C)){var G=C.inspect(U,D);return h(G)||(G=t(D,G,U)),G}var J=a(D,C);if(J)return J;var ne=Object.keys(C),fe=s(ne);if(D.showHidden&&(ne=Object.getOwnPropertyNames(C)),I(C)&&(ne.indexOf("message")>=0||ne.indexOf("description")>=0))return o(C);if(ne.length===0){if(X(C)){var se=C.name?": "+C.name:"";return D.stylize("[Function"+se+"]","special")}if(P(C))return D.stylize(RegExp.prototype.toString.call(C),"regexp");if(F(C))return D.stylize(Date.prototype.toString.call(C),"date");if(I(C))return o(C)}var me="",ve=!1,ie=["{","}"];if((x(C)&&(ve=!0,ie=["[","]"]),X(C))&&(me=" [Function"+(C.name?": "+C.name:"")+"]"),P(C)&&(me=" "+RegExp.prototype.toString.call(C)),F(C)&&(me=" "+Date.prototype.toUTCString.call(C)),I(C)&&(me=" "+o(C)),ne.length===0&&(!ve||C.length==0))return ie[0]+me+ie[1];if(U<0)return P(C)?D.stylize(RegExp.prototype.toString.call(C),"regexp"):D.stylize("[Object]","special");D.seen.push(C);var oe;return oe=ve?c(D,C,U,fe,ne):ne.map(function(le){return d(D,C,U,fe,le,ve)}),D.seen.pop(),l(oe,me,ie)}function a(D,C){if(L(C))return D.stylize("undefined","undefined");if(h(C)){var U="'"+JSON.stringify(C).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return D.stylize(U,"string")}return S(C)?D.stylize(""+C,"number"):w(C)?D.stylize(""+C,"boolean"):p(C)?D.stylize("null","null"):void 0}function o(D){return"["+Error.prototype.toString.call(D)+"]"}function c(D,C,U,G,J){for(var ne=[],fe=0,se=C.length;fe<se;++fe)ae(C,String(fe))?ne.push(d(D,C,U,G,String(fe),!0)):ne.push("");return J.forEach(function(me){me.match(/^\d+$/)||ne.push(d(D,C,U,G,me,!0))}),ne}function d(D,C,U,G,J,ne){var fe,se,me;if(me=Object.getOwnPropertyDescriptor(C,J)||{value:C[J]},me.get?se=me.set?D.stylize("[Getter/Setter]","special"):D.stylize("[Getter]","special"):me.set&&(se=D.stylize("[Setter]","special")),ae(G,J)||(fe="["+J+"]"),se||(D.seen.indexOf(me.value)<0?(se=p(U)?t(D,me.value,null):t(D,me.value,U-1),se.indexOf(`
|
|
|
`)>-1&&(se=ne?se.split(`
|
|
|
`).map(function(ve){return" "+ve}).join(`
|
|
|
`).substr(2):`
|
|
|
`+se.split(`
|
|
|
`).map(function(ve){return" "+ve}).join(`
|
|
|
`))):se=D.stylize("[Circular]","special")),L(fe)){if(ne&&J.match(/^\d+$/))return se;fe=JSON.stringify(""+J),fe.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(fe=fe.substr(1,fe.length-2),fe=D.stylize(fe,"name")):(fe=fe.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),fe=D.stylize(fe,"string"))}return fe+": "+se}function l(D,C,U){var G=0;return D.reduce(function(J,ne){return G++,ne.indexOf(`
|
|
|
`)>=0&&G++,J+ne.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?U[0]+(C===""?"":C+`
|
|
|
`)+" "+D.join(`,
|
|
|
`)+" "+U[1]:U[0]+C+" "+D.join(", ")+" "+U[1]}function x(D){return Array.isArray(D)}function w(D){return typeof D=="boolean"}function p(D){return D===null}function O(D){return D==null}function S(D){return typeof D=="number"}function h(D){return typeof D=="string"}function E(D){return typeof D=="symbol"}function L(D){return D===void 0}function P(D){return g(D)&&V(D)==="[object RegExp]"}function g(D){return typeof D=="object"&&D!==null}function F(D){return g(D)&&V(D)==="[object Date]"}function I(D){return g(D)&&(V(D)==="[object Error]"||D instanceof Error)}function X(D){return typeof D=="function"}function R(D){return D===null||typeof D=="boolean"||typeof D=="number"||typeof D=="string"||typeof D=="symbol"||D===void 0}function V(D){return Object.prototype.toString.call(D)}function H(D){return D<10?"0"+D.toString(10):D.toString(10)}function $(){var D=new Date,C=[H(D.getHours()),H(D.getMinutes()),H(D.getSeconds())].join(":");return[D.getDate(),W[D.getMonth()],C].join(" ")}function ae(D,C){return Object.prototype.hasOwnProperty.call(D,C)}var M=/%[sdj%]/g;y.format=function(D){if(!h(D)){for(var C=[],U=0;U<arguments.length;U++)C.push(i(arguments[U]));return C.join(" ")}for(var U=1,G=arguments,J=G.length,ne=String(D).replace(M,function(me){if(me==="%%")return"%";if(U>=J)return me;switch(me){case"%s":return String(G[U++]);case"%d":return Number(G[U++]);case"%j":try{return JSON.stringify(G[U++])}catch(ve){return"[Circular]"}default:return me}}),fe=G[U];U<J;fe=G[++U])p(fe)||!g(fe)?ne+=" "+fe:ne+=" "+i(fe);return ne},y.deprecate=function(D,C){function U(){if(!G){if(m.throwDeprecation)throw new Error(C);m.traceDeprecation?console.trace(C):console.error(C),G=!0}return D.apply(this,arguments)}if(L(b.process))return function(){return y.deprecate(D,C).apply(this,arguments)};if(m.noDeprecation===!0)return D;var G=!1;return U};var Q,Y={};y.debuglog=function(D){if(L(Q)&&(Q=m.env.NODE_DEBUG||""),D=D.toUpperCase(),!Y[D])if(new RegExp("\\b"+D+"\\b","i").test(Q)){var C=m.pid;Y[D]=function(){var U=y.format.apply(y,arguments);console.error("%s %d: %s",D,C,U)}}else Y[D]=function(){};return Y[D]},y.inspect=i,i.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},i.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},y.isArray=x,y.isBoolean=w,y.isNull=p,y.isNullOrUndefined=O,y.isNumber=S,y.isString=h,y.isSymbol=E,y.isUndefined=L,y.isRegExp=P,y.isObject=g,y.isDate=F,y.isError=I,y.isFunction=X,y.isPrimitive=R,y.isBuffer=r("./support/isBuffer");var W=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];y.log=function(){console.log("%s - %s",$(),y.format.apply(y,arguments))},y.inherits=r("inherits"),y._extend=function(D,C){if(!C||!g(C))return D;for(var U=Object.keys(C),G=U.length;G--;)D[U[G]]=C[U[G]];return D}}).call(this,r("_process"),typeof Ye!="undefined"?Ye:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":206,_process:173,inherits:162}],208:[function(r,A,y){"use strict";(function(){y.stripBOM=function(m){return m[0]==="\uFEFF"?m.substring(1):m}}).call(void 0)},{}],209:[function(r,A,y){"use strict";function m(s){return s&&s.__esModule?s:{default:s}}var b=r("babel-runtime/helpers/typeof"),i=m(b),u=r("babel-runtime/core-js/object/keys"),f=m(u);(function(){var s,t,a,o,c,d={}.hasOwnProperty;s=r("xmlbuilder"),t=r("./defaults").defaults,o=function(x){return typeof x=="string"&&(x.indexOf("&")>=0||x.indexOf(">")>=0||x.indexOf("<")>=0)},c=function(x){return"<![CDATA["+a(x)+"]]>"},a=function(x){return x.replace("]]>","]]]]><![CDATA[>")},y.Builder=function(){function l(x){var w,p,O;this.options={},p=t[.2];for(w in p)d.call(p,w)&&(O=p[w],this.options[w]=O);for(w in x)d.call(x,w)&&(O=x[w],this.options[w]=O)}return l.prototype.buildObject=function(x){var w,p,O,S,h;return w=this.options.attrkey,p=this.options.charkey,(0,f.default)(x).length===1&&this.options.rootName===t[.2].rootName?(h=(0,f.default)(x)[0],x=x[h]):h=this.options.rootName,O=function(E){return function(L,P){var g,F,I,X,R,V;if((P===void 0?"undefined":(0,i.default)(P))!=="object")E.options.cdata&&o(P)?L.raw(c(P)):L.txt(P);else if(Array.isArray(P)){for(X in P)if(d.call(P,X)){F=P[X];for(R in F)I=F[R],L=O(L.ele(R),I).up()}}else for(R in P)if(d.call(P,R))if(F=P[R],R===w){if((F===void 0?"undefined":(0,i.default)(F))==="object")for(g in F)V=F[g],L=L.att(g,V)}else if(R===p)L=E.options.cdata&&o(F)?L.raw(c(F)):L.txt(F);else if(Array.isArray(F))for(X in F)d.call(F,X)&&(I=F[X],L=typeof I=="string"?E.options.cdata&&o(I)?L.ele(R).raw(c(I)).up():L.ele(R,I).up():O(L.ele(R),I).up());else(F===void 0?"undefined":(0,i.default)(F))==="object"?L=O(L.ele(R),F).up():typeof F=="string"&&E.options.cdata&&o(F)?L=L.ele(R).raw(c(F)).up():(F==null&&(F=""),L=L.ele(R,F.toString()).up());return L}}(this),S=s.create(h,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),O(S,x).end(this.options.renderOpts)},l}()}).call(void 0)},{"./defaults":210,"babel-runtime/core-js/object/keys":23,"babel-runtime/helpers/typeof":32,xmlbuilder:235}],210:[function(r,A,y){"use strict";(function(){y.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(r,A,y){"use strict";function m(a){return a&&a.__esModule?a:{default:a}}var b=r("babel-runtime/core-js/object/get-own-property-names"),i=m(b),u=r("babel-runtime/core-js/object/keys"),f=m(u),s=r("babel-runtime/helpers/typeof"),t=m(s);(function(){var a,o,c,d,l,x,w,p,O=function(L,P){return function(){return L.apply(P,arguments)}},S=function(L,P){function g(){this.constructor=L}for(var F in P)h.call(P,F)&&(L[F]=P[F]);return g.prototype=P.prototype,L.prototype=new g,L.__super__=P.prototype,L},h={}.hasOwnProperty;w=r("sax"),c=r("events"),a=r("./bom"),x=r("./processors"),p=r("timers").setImmediate,o=r("./defaults").defaults,d=function(L){return(L===void 0?"undefined":(0,t.default)(L))==="object"&&L!=null&&(0,f.default)(L).length===0},l=function(L,P,g){var F,I,X;for(F=0,I=L.length;F<I;F++)X=L[F],P=X(P,g);return P},y.Parser=function(E){function L(P){this.parseString=O(this.parseString,this),this.reset=O(this.reset,this),this.assignOrPush=O(this.assignOrPush,this),this.processAsync=O(this.processAsync,this);var g,F,I;if(!(this instanceof y.Parser))return new y.Parser(P);this.options={},F=o[.2];for(g in F)h.call(F,g)&&(I=F[g],this.options[g]=I);for(g in P)h.call(P,g)&&(I=P[g],this.options[g]=I);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(x.normalize)),this.reset()}return S(L,E),L.prototype.processAsync=function(){var P,g;try{return this.remaining.length<=this.options.chunkSize?(P=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(P),this.saxParser.close()):(P=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(P),p(this.processAsync))}catch(F){if(g=F,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(g)}},L.prototype.assignOrPush=function(P,g,F){return g in P?(P[g]instanceof Array||(P[g]=[P[g]]),P[g].push(F)):this.options.explicitArray?P[g]=[F]:P[g]=F},L.prototype.reset=function(){var P,g,F,I;return this.removeAllListeners(),this.saxParser=w.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(X){return function(R){if(X.saxParser.resume(),!X.saxParser.errThrown)return X.saxParser.errThrown=!0,X.emit("error",R)}}(this),this.saxParser.onend=function(X){return function(){if(!X.saxParser.ended)return X.saxParser.ended=!0,X.emit("end",X.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,I=[],P=this.options.attrkey,g=this.options.charkey,this.saxParser.onopentag=function(X){return function(R){var V,H,$,ae,M;if($={},$[g]="",!X.options.ignoreAttrs){M=R.attributes;for(V in M)h.call(M,V)&&(P in $||X.options.mergeAttrs||($[P]={}),H=X.options.attrValueProcessors?l(X.options.attrValueProcessors,R.attributes[V],V):R.attributes[V],ae=X.options.attrNameProcessors?l(X.options.attrNameProcessors,V):V,X.options.mergeAttrs?X.assignOrPush($,ae,H):$[P][ae]=H)}return $["#name"]=X.options.tagNameProcessors?l(X.options.tagNameProcessors,R.name):R.name,X.options.xmlns&&($[X.options.xmlnskey]={uri:R.uri,local:R.local}),I.push($)}}(this),this.saxParser.onclosetag=function(X){return function(){var R,V,H,$,ae,M,Q,Y,W,D;if(M=I.pop(),ae=M["#name"],X.options.explicitChildren&&X.options.preserveChildrenOrder||delete M["#name"],M.cdata===!0&&(R=M.cdata,delete M.cdata),W=I[I.length-1],M[g].match(/^\s*$/)&&!R?(V=M[g],delete M[g]):(X.options.trim&&(M[g]=M[g].trim()),X.options.normalize&&(M[g]=M[g].replace(/\s{2,}/g," ").trim()),M[g]=X.options.valueProcessors?l(X.options.valueProcessors,M[g],ae):M[g],(0,f.default)(M).length===1&&g in M&&!X.EXPLICIT_CHARKEY&&(M=M[g])),d(M)&&(M=X.options.emptyTag!==""?X.options.emptyTag:V),X.options.validator!=null&&(D="/"+function(){var C,U,G;for(G=[],C=0,U=I.length;C<U;C++)$=I[C],G.push($["#name"]);return G}().concat(ae).join("/"),function(){var C;try{M=X.options.validator(D,W&&W[ae],M)}catch(U){return C=U,X.emit("error",C)}}()),X.options.explicitChildren&&!X.options.mergeAttrs&&(M===void 0?"undefined":(0,t.default)(M))==="object")if(X.options.preserveChildrenOrder){if(W){W[X.options.childkey]=W[X.options.childkey]||[],Q={};for(H in M)h.call(M,H)&&(Q[H]=M[H]);W[X.options.childkey].push(Q),delete M["#name"],(0,f.default)(M).length===1&&g in M&&!X.EXPLICIT_CHARKEY&&(M=M[g])}}else $={},X.options.attrkey in M&&($[X.options.attrkey]=M[X.options.attrkey],delete M[X.options.attrkey]),!X.options.charsAsChildren&&X.options.charkey in M&&($[X.options.charkey]=M[X.options.charkey],delete M[X.options.charkey]),(0,i.default)(M).length>0&&($[X.options.childkey]=M),M=$;return I.length>0?X.assignOrPush(W,ae,M):(X.options.explicitRoot&&(Y=M,M={},M[ae]=Y),X.resultObject=M,X.saxParser.ended=!0,X.emit("end",X.resultObject))}}(this),F=function(X){return function(R){var V,H;if(H=I[I.length-1])return H[g]+=R,X.options.explicitChildren&&X.options.preserveChildrenOrder&&X.options.charsAsChildren&&(X.options.includeWhiteChars||R.replace(/\\n/g,"").trim()!=="")&&(H[X.options.childkey]=H[X.options.childkey]||[],V={"#name":"__text__"},V[g]=R,X.options.normalize&&(V[g]=V[g].replace(/\s{2,}/g," ").trim()),H[X.options.childkey].push(V)),H}}(this),this.saxParser.ontext=F,this.saxParser.oncdata=function(X){return function(R){var V;if(V=F(R))return V.cdata=!0}}()},L.prototype.parseString=function(P,g){var F;g!=null&&typeof g=="function"&&(this.on("end",function(I){return this.reset(),g(null,I)}),this.on("error",function(I){return this.reset(),g(I)}));try{return P=P.toString(),P.trim()===""?(this.emit("end",null),!0):(P=a.stripBOM(P),this.options.async?(this.remaining=P,p(this.processAsync),this.saxParser):this.saxParser.write(P).close())}catch(I){if(F=I,!this.saxParser.errThrown&&!this.saxParser.ended)return this.emit("error",F),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw F}},L}(c.EventEmitter),y.parseString=function(E,L,P){var g,F,I;return P!=null?(typeof P=="function"&&(g=P),(L===void 0?"undefined":(0,t.default)(L))==="object"&&(F=L)):(typeof L=="function"&&(g=L),F={}),I=new y.Parser(F),I.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(r,A,y){"use strict";(function(){var m;m=new RegExp(/(?!xmlns)^.*:/),y.normalize=function(b){return b.toLowerCase()},y.firstCharLowerCase=function(b){return b.charAt(0).toLowerCase()+b.slice(1)},y.stripPrefix=function(b){return b.replace(m,"")},y.parseNumbers=function(b){return isNaN(b)||(b=b%1==0?parseInt(b,10):parseFloat(b)),b},y.parseBooleans=function(b){return/^(?:true|false)$/i.test(b)&&(b=b.toLowerCase()==="true"),b}}).call(void 0)},{}],213:[function(r,A,y){"use strict";(function(){var m,b,i,u,f=function(a,o){function c(){this.constructor=a}for(var d in o)s.call(o,d)&&(a[d]=o[d]);return c.prototype=o.prototype,a.prototype=new c,a.__super__=o.prototype,a},s={}.hasOwnProperty;b=r("./defaults"),m=r("./builder"),i=r("./parser"),u=r("./processors"),y.defaults=b.defaults,y.processors=u,y.ValidationError=function(t){function a(o){this.message=o}return f(a,t),a}(Error),y.Builder=m.Builder,y.Parser=i.Parser,y.parseString=i.parseString}).call(void 0)},{"./builder":209,"./defaults":210,"./parser":211,"./processors":212}],214:[function(r,A,y){"use strict";function m(a){return a&&a.__esModule?a:{default:a}}var b=r("babel-runtime/core-js/object/get-prototype-of"),i=m(b),u=r("babel-runtime/helpers/typeof"),f=m(u),s=r("babel-runtime/core-js/object/assign"),t=m(s);(function(){var a,o,c,d,l,x,w=[].slice,p={}.hasOwnProperty;a=function(){var S,h,E,L,P,g;if(g=arguments[0],P=2<=arguments.length?w.call(arguments,1):[],d(t.default))t.default.apply(null,arguments);else for(S=0,E=P.length;S<E;S++)if((L=P[S])!=null)for(h in L)p.call(L,h)&&(g[h]=L[h]);return g},d=function(S){return!!S&&Object.prototype.toString.call(S)==="[object Function]"},l=function(S){var h;return!!S&&((h=S===void 0?"undefined":(0,f.default)(S))==="function"||h==="object")},o=function(S){return d(Array.isArray)?Array.isArray(S):Object.prototype.toString.call(S)==="[object Array]"},c=function(S){var h;if(o(S))return!S.length;for(h in S)if(p.call(S,h))return!1;return!0},x=function(S){var h,E;return l(S)&&(E=(0,i.default)(S))&&(h=E.constructor)&&typeof h=="function"&&h instanceof h&&Function.prototype.toString.call(h)===Function.prototype.toString.call(Object)},A.exports.assign=a,A.exports.isFunction=d,A.exports.isObject=l,A.exports.isArray=o,A.exports.isEmpty=c,A.exports.isPlainObject=x}).call(void 0)},{"babel-runtime/core-js/object/assign":18,"babel-runtime/core-js/object/get-prototype-of":22,"babel-runtime/helpers/typeof":32}],215:[function(r,A,y){"use strict";var m=r("babel-runtime/core-js/object/create"),b=function(i){return i&&i.__esModule?i:{default:i}}(m);(function(){A.exports=function(){function i(u,f,s){if(this.options=u.options,this.stringify=u.stringify,f==null)throw new Error("Missing attribute name of element "+u.name);if(s==null)throw new Error("Missing attribute value for attribute "+f+" of element "+u.name);this.name=this.stringify.attName(f),this.value=this.stringify.attValue(s)}return i.prototype.clone=function(){return(0,b.default)(this)},i.prototype.toString=function(u){return this.options.writer.set(u).attribute(this)},i}()}).call(void 0)},{"babel-runtime/core-js/object/create":19}],216:[function(r,A,y){"use strict";var m=r("babel-runtime/core-js/object/create"),b=function(i){return i&&i.__esModule?i:{default:i}}(m);(function(){var i,u=function(t,a){function o(){this.constructor=t}for(var c in a)f.call(a,c)&&(t[c]=a[c]);return o.prototype=a.prototype,t.prototype=new o,t.__super__=a.prototype,t},f={}.hasOwnProperty;i=r("./XMLNode"),A.exports=function(s){function t(a,o){if(t.__super__.constructor.call(this,a),o==null)throw new Error("Missing CDATA text");this.text=this.stringify.cdata(o)}return u(t,s),t.prototype.clone=function(){return(0,b.default)(this)},t.prototype.toString=function(a){return this.options.writer.set(a).cdata(this)},t}(i)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],217:[function(r,A,y){"use strict";var m=r("babel-runtime/core-js/object/create"),b=function(i){return i&&i.__esModule?i:{default:i}}(m);(function(){var i,u=function(t,a){function o(){this.constructor=t}for(var c in a)f.call(a,c)&&(t[c]=a[c]);return o.prototype=a.prototype,t.prototype=new o,t.__super__=a.prototype,t},f={}.hasOwnProperty;i=r("./XMLNode"),A.exports=function(s){function t(a,o){if(t.__super__.constructor.call(this,a),o==null)throw new Error("Missing comment text");this.text=this.stringify.comment(o)}return u(t,s),t.prototype.clone=function(){return(0,b.default)(this)},t.prototype.toString=function(a){return this.options.writer.set(a).comment(this)},t}(i)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],218:[function(r,A,y){"use strict";(function(){var m,b=function(f,s){function t(){this.constructor=f}for(var a in s)i.call(s,a)&&(f[a]=s[a]);return t.prototype=s.prototype,f.prototype=new t,f.__super__=s.prototype,f},i={}.hasOwnProperty;m=r("./XMLNode"),A.exports=function(u){function f(s,t,a,o,c,d){if(f.__super__.constructor.call(this,s),t==null)throw new Error("Missing DTD element name");if(a==null)throw new Error("Missing DTD attribute name");if(!o)throw new Error("Missing DTD attribute type");if(!c)throw new Error("Missing DTD attribute default");if(c.indexOf("#")!==0&&(c="#"+c),!c.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT");if(d&&!c.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT");this.elementName=this.stringify.eleName(t),this.attributeName=this.stringify.attName(a),this.attributeType=this.stringify.dtdAttType(o),this.defaultValue=this.stringify.dtdAttDefault(d),this.defaultValueType=c}return b(f,u),f.prototype.toString=function(s){return this.options.writer.set(s).dtdAttList(this)},f}(m)}).call(void 0)},{"./XMLNode":227}],219:[function(r,A,y){"use strict";(function(){var m,b=function(f,s){function t(){this.constructor=f}for(var a in s)i.call(s,a)&&(f[a]=s[a]);return t.prototype=s.prototype,f.prototype=new t,f.__super__=s.prototype,f},i={}.hasOwnProperty;m=r("./XMLNode"),A.exports=function(u){function f(s,t,a){if(f.__super__.constructor.call(this,s),t==null)throw new Error("Missing DTD element name");a||(a="(#PCDATA)"),Array.isArray(a)&&(a="("+a.join(",")+")"),this.name=this.stringify.eleName(t),this.value=this.stringify.dtdElementValue(a)}return b(f,u),f.prototype.toString=function(s){return this.options.writer.set(s).dtdElement(this)},f}(m)}).call(void 0)},{"./XMLNode":227}],220:[function(r,A,y){"use strict";(function(){var m,b,i=function(s,t){function a(){this.constructor=s}for(var o in t)u.call(t,o)&&(s[o]=t[o]);return a.prototype=t.prototype,s.prototype=new a,s.__super__=t.prototype,s},u={}.hasOwnProperty;b=r("./Utility").isObject,m=r("./XMLNode"),A.exports=function(f){function s(t,a,o,c){if(s.__super__.constructor.call(this,t),o==null)throw new Error("Missing entity name");if(c==null)throw new Error("Missing entity value");if(this.pe=!!a,this.name=this.stringify.eleName(o),b(c)){if(!c.pubID&&!c.sysID)throw new Error("Public and/or system identifiers are required for an external entity");if(c.pubID&&!c.sysID)throw new Error("System identifier is required for a public external entity");if(c.pubID!=null&&(this.pubID=this.stringify.dtdPubID(c.pubID)),c.sysID!=null&&(this.sysID=this.stringify.dtdSysID(c.sysID)),c.nData!=null&&(this.nData=this.stringify.dtdNData(c.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity")}else this.value=this.stringify.dtdEntityValue(c)}return i(s,f),s.prototype.toString=function(t){return this.options.writer.set(t).dtdEntity(this)},s}(m)}).call(void 0)},{"./Utility":214,"./XMLNode":227}],221:[function(r,A,y){"use strict";(function(){var m,b=function(f,s){function t(){this.constructor=f}for(var a in s)i.call(s,a)&&(f[a]=s[a]);return t.prototype=s.prototype,f.prototype=new t,f.__super__=s.prototype,f},i={}.hasOwnProperty;m=r("./XMLNode"),A.exports=function(u){function f(s,t,a){if(f.__super__.constructor.call(this,s),t==null)throw new Error("Missing notation name");if(!a.pubID&&!a.sysID)throw new Error("Public or system identifiers are required for an external entity");this.name=this.stringify.eleName(t),a.pubID!=null&&(this.pubID=this.stringify.dtdPubID(a.pubID)),a.sysID!=null&&(this.sysID=this.stringify.dtdSysID(a.sysID))}return b(f,u),f.prototype.toString=function(s){return this.options.writer.set(s).dtdNotation(this)},f}(m)}).call(void 0)},{"./XMLNode":227}],222:[function(r,A,y){"use strict";(function(){var m,b,i=function(s,t){function a(){this.constructor=s}for(var o in t)u.call(t,o)&&(s[o]=t[o]);return a.prototype=t.prototype,s.prototype=new a,s.__super__=t.prototype,s},u={}.hasOwnProperty;b=r("./Utility").isObject,m=r("./XMLNode"),A.exports=function(f){function s(t,a,o,c){var d;s.__super__.constructor.call(this,t),b(a)&&(d=a,a=d.version,o=d.encoding,c=d.standalone),a||(a="1.0"),this.version=this.stringify.xmlVersion(a),o!=null&&(this.encoding=this.stringify.xmlEncoding(o)),c!=null&&(this.standalone=this.stringify.xmlStandalone(c))}return i(s,f),s.prototype.toString=function(t){return this.options.writer.set(t).declaration(this)},s}(m)}).call(void 0)},{"./Utility":214,"./XMLNode":227}],223:[function(r,A,y){"use strict";(function(){var m,b,i,u,f,s,t=function(c,d){function l(){this.constructor=c}for(var x in d)a.call(d,x)&&(c[x]=d[x]);return l.prototype=d.prototype,c.prototype=new l,c.__super__=d.prototype,c},a={}.hasOwnProperty;s=r("./Utility").isObject,f=r("./XMLNode"),m=r("./XMLDTDAttList"),i=r("./XMLDTDEntity"),b=r("./XMLDTDElement"),u=r("./XMLDTDNotation"),A.exports=function(o){function c(d,l,x){var w,p;c.__super__.constructor.call(this,d),this.documentObject=d,s(l)&&(w=l,l=w.pubID,x=w.sysID),x==null&&(p=[l,x],x=p[0],l=p[1]),l!=null&&(this.pubID=this.stringify.dtdPubID(l)),x!=null&&(this.sysID=this.stringify.dtdSysID(x))}return t(c,o),c.prototype.element=function(d,l){var x;return x=new b(this,d,l),this.children.push(x),this},c.prototype.attList=function(d,l,x,w,p){var O;return O=new m(this,d,l,x,w,p),this.children.push(O),this},c.prototype.entity=function(d,l){var x;return x=new i(this,!1,d,l),this.children.push(x),this},c.prototype.pEntity=function(d,l){var x;return x=new i(this,!0,d,l),this.children.push(x),this},c.prototype.notation=function(d,l){var x;return x=new u(this,d,l),this.children.push(x),this},c.prototype.toString=function(d){return this.options.writer.set(d).docType(this)},c.prototype.ele=function(d,l){return this.element(d,l)},c.prototype.att=function(d,l,x,w,p){return this.attList(d,l,x,w,p)},c.prototype.ent=function(d,l){return this.entity(d,l)},c.prototype.pent=function(d,l){return this.pEntity(d,l)},c.prototype.not=function(d,l){return this.notation(d,l)},c.prototype.up=function(){return this.root()||this.documentObject},c}(f)}).call(void 0)},{"./Utility":214,"./XMLDTDAttList":218,"./XMLDTDElement":219,"./XMLDTDEntity":220,"./XMLDTDNotation":221,"./XMLNode":227}],224:[function(r,A,y){"use strict";(function(){var m,b,i,u,f=function(a,o){function c(){this.constructor=a}for(var d in o)s.call(o,d)&&(a[d]=o[d]);return c.prototype=o.prototype,a.prototype=new c,a.__super__=o.prototype,a},s={}.hasOwnProperty;u=r("./Utility").isPlainObject,m=r("./XMLNode"),i=r("./XMLStringifier"),b=r("./XMLStringWriter"),A.exports=function(t){function a(o){a.__super__.constructor.call(this,null),o||(o={}),o.writer||(o.writer=new b),this.options=o,this.stringify=new i(o),this.isDocument=!0}return f(a,t),a.prototype.end=function(o){var c;return o?u(o)&&(c=o,o=this.options.writer.set(c)):o=this.options.writer,o.document(this)},a.prototype.toString=function(o){return this.options.writer.set(o).document(this)},a}(m)}).call(void 0)},{"./Utility":214,"./XMLNode":227,"./XMLStringWriter":231,"./XMLStringifier":232}],225:[function(r,A,y){"use strict";(function(){var m,b,i,u,f,s,t,a,o,c,d,l,x,w,p,O,S,h,E,L={}.hasOwnProperty;E=r("./Utility"),S=E.isObject,O=E.isFunction,h=E.isPlainObject,c=r("./XMLElement"),b=r("./XMLCData"),i=r("./XMLComment"),l=r("./XMLRaw"),p=r("./XMLText"),d=r("./XMLProcessingInstruction"),a=r("./XMLDeclaration"),o=r("./XMLDocType"),u=r("./XMLDTDAttList"),s=r("./XMLDTDEntity"),f=r("./XMLDTDElement"),t=r("./XMLDTDNotation"),m=r("./XMLAttribute"),w=r("./XMLStringifier"),x=r("./XMLStringWriter"),A.exports=function(){function P(g,F,I){var X;g||(g={}),g.writer?h(g.writer)&&(X=g.writer,g.writer=new x(X)):g.writer=new x(g),this.options=g,this.writer=g.writer,this.stringify=new w(g),this.onDataCallback=F||function(){},this.onEndCallback=I||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return P.prototype.node=function(g,F,I){var X;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(),F==null&&(F={}),F=F.valueOf(),S(F)||(X=[F,I],I=X[0],F=X[1]),this.currentNode=new c(this,g,F),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,I!=null&&this.text(I),this},P.prototype.element=function(g,F,I){return this.currentNode&&this.currentNode instanceof o?this.dtdElement.apply(this,arguments):this.node(g,F,I)},P.prototype.attribute=function(g,F){var I,X;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()),S(g))for(I in g)L.call(g,I)&&(X=g[I],this.attribute(I,X));else O(F)&&(F=F.apply()),this.options.skipNullAttributes&&F==null||(this.currentNode.attributes[g]=new m(this,g,F));return this},P.prototype.text=function(g){var F;return this.openCurrent(),F=new p(this,g),this.onData(this.writer.text(F,this.currentLevel+1)),this},P.prototype.cdata=function(g){var F;return this.openCurrent(),F=new b(this,g),this.onData(this.writer.cdata(F,this.currentLevel+1)),this},P.prototype.comment=function(g){var F;return this.openCurrent(),F=new i(this,g),this.onData(this.writer.comment(F,this.currentLevel+1)),this},P.prototype.raw=function(g){var F;return this.openCurrent(),F=new l(this,g),this.onData(this.writer.raw(F,this.currentLevel+1)),this},P.prototype.instruction=function(g,F){var I,X,R,V,H;if(this.openCurrent(),g!=null&&(g=g.valueOf()),F!=null&&(F=F.valueOf()),Array.isArray(g))for(I=0,V=g.length;I<V;I++)X=g[I],this.instruction(X);else if(S(g))for(X in g)L.call(g,X)&&(R=g[X],this.instruction(X,R));else O(F)&&(F=F.apply()),H=new d(this,g,F),this.onData(this.writer.processingInstruction(H,this.currentLevel+1));return this},P.prototype.declaration=function(g,F,I){var X;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node");return X=new a(this,g,F,I),this.onData(this.writer.declaration(X,this.currentLevel+1)),this},P.prototype.doctype=function(g,F,I){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 o(this,F,I),this.currentNode.rootNodeName=g,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},P.prototype.dtdElement=function(g,F){var I;return this.openCurrent(),I=new f(this,g,F),this.onData(this.writer.dtdElement(I,this.currentLevel+1)),this},P.prototype.attList=function(g,F,I,X,R){var V;return this.openCurrent(),V=new u(this,g,F,I,X,R),this.onData(this.writer.dtdAttList(V,this.currentLevel+1)),this},P.prototype.entity=function(g,F){var I;return this.openCurrent(),I=new s(this,!1,g,F),this.onData(this.writer.dtdEntity(I,this.currentLevel+1)),this},P.prototype.pEntity=function(g,F){var I;return this.openCurrent(),I=new s(this,!0,g,F),this.onData(this.writer.dtdEntity(I,this.currentLevel+1)),this},P.prototype.notation=function(g,F){var I;return this.openCurrent(),I=new t(this,g,F),this.onData(this.writer.dtdNotation(I,this.currentLevel+1)),this},P.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},P.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},P.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},P.prototype.openNode=function(g){if(!g.isOpen)return!this.root&&this.currentLevel===0&&g instanceof c&&(this.root=g),this.onData(this.writer.openNode(g,this.currentLevel)),g.isOpen=!0},P.prototype.closeNode=function(g){if(!g.isClosed)return this.onData(this.writer.closeNode(g,this.currentLevel)),g.isClosed=!0},P.prototype.onData=function(g){return this.documentStarted=!0,this.onDataCallback(g)},P.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},P.prototype.ele=function(){return this.element.apply(this,arguments)},P.prototype.nod=function(g,F,I){return this.node(g,F,I)},P.prototype.txt=function(g){return this.text(g)},P.prototype.dat=function(g){return this.cdata(g)},P.prototype.com=function(g){return this.comment(g)},P.prototype.ins=function(g,F){return this.instruction(g,F)},P.prototype.dec=function(g,F,I){return this.declaration(g,F,I)},P.prototype.dtd=function(g,F,I){return this.doctype(g,F,I)},P.prototype.e=function(g,F,I){return this.element(g,F,I)},P.prototype.n=function(g,F,I){return this.node(g,F,I)},P.prototype.t=function(g){return this.text(g)},P.prototype.d=function(g){return this.cdata(g)},P.prototype.c=function(g){return this.comment(g)},P.prototype.r=function(g){return this.raw(g)},P.prototype.i=function(g,F){return this.instruction(g,F)},P.prototype.att=function(){return this.currentNode&&this.currentNode instanceof o?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},P.prototype.a=function(){return this.currentNode&&this.currentNode instanceof o?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},P.prototype.ent=function(g,F){return this.entity(g,F)},P.prototype.pent=function(g,F){return this.pEntity(g,F)},P.prototype.not=function(g,F){return this.notation(g,F)},P}()}).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(r,A,y){"use strict";var m=r("babel-runtime/core-js/object/create"),b=function(i){return i&&i.__esModule?i:{default:i}}(m);(function(){var i,u,f,s,t,a=function(d,l){function x(){this.constructor=d}for(var w in l)o.call(l,w)&&(d[w]=l[w]);return x.prototype=l.prototype,d.prototype=new x,d.__super__=l.prototype,d},o={}.hasOwnProperty;t=r("./Utility"),s=t.isObject,f=t.isFunction,u=r("./XMLNode"),i=r("./XMLAttribute"),A.exports=function(c){function d(l,x,w){if(d.__super__.constructor.call(this,l),x==null)throw new Error("Missing element name");this.name=this.stringify.eleName(x),this.attributes={},w!=null&&this.attribute(w),l.isDocument&&(this.isRoot=!0,this.documentObject=l,l.rootObject=this)}return a(d,c),d.prototype.clone=function(){var l,x,w,p;w=(0,b.default)(this),w.isRoot&&(w.documentObject=null),w.attributes={},p=this.attributes;for(x in p)o.call(p,x)&&(l=p[x],w.attributes[x]=l.clone());return w.children=[],this.children.forEach(function(O){var S;return S=O.clone(),S.parent=w,w.children.push(S)}),w},d.prototype.attribute=function(l,x){var w,p;if(l!=null&&(l=l.valueOf()),s(l))for(w in l)o.call(l,w)&&(p=l[w],this.attribute(w,p));else f(x)&&(x=x.apply()),this.options.skipNullAttributes&&x==null||(this.attributes[l]=new i(this,l,x));return this},d.prototype.removeAttribute=function(l){var x,w,p;if(l==null)throw new Error("Missing attribute name");if(l=l.valueOf(),Array.isArray(l))for(w=0,p=l.length;w<p;w++)x=l[w],delete this.attributes[x];else delete this.attributes[l];return this},d.prototype.toString=function(l){return this.options.writer.set(l).element(this)},d.prototype.att=function(l,x){return this.attribute(l,x)},d.prototype.a=function(l,x){return this.attribute(l,x)},d}(u)}).call(void 0)},{"./Utility":214,"./XMLAttribute":215,"./XMLNode":227,"babel-runtime/core-js/object/create":19}],227:[function(r,A,y){"use strict";(function(){var m,b,i,u,f,s,t,a,o,c,d,l,x={}.hasOwnProperty;l=r("./Utility"),d=l.isObject,c=l.isFunction,o=l.isEmpty,f=null,m=null,b=null,i=null,u=null,t=null,a=null,s=null,A.exports=function(){function w(p){this.parent=p,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.children=[],f||(f=r("./XMLElement"),m=r("./XMLCData"),b=r("./XMLComment"),i=r("./XMLDeclaration"),u=r("./XMLDocType"),t=r("./XMLRaw"),a=r("./XMLText"),s=r("./XMLProcessingInstruction"))}return w.prototype.element=function(p,O,S){var h,E,L,P,g,F,I,X,R,V;if(F=null,O==null&&(O={}),O=O.valueOf(),d(O)||(R=[O,S],S=R[0],O=R[1]),p!=null&&(p=p.valueOf()),Array.isArray(p))for(L=0,I=p.length;L<I;L++)E=p[L],F=this.element(E);else if(c(p))F=this.element(p.apply());else if(d(p)){for(g in p)if(x.call(p,g))if(V=p[g],c(V)&&(V=V.apply()),d(V)&&o(V)&&(V=null),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&g.indexOf(this.stringify.convertAttKey)===0)F=this.attribute(g.substr(this.stringify.convertAttKey.length),V);else if(!this.options.separateArrayItems&&Array.isArray(V))for(P=0,X=V.length;P<X;P++)E=V[P],h={},h[g]=E,F=this.element(h);else d(V)?(F=this.element(g),F.element(V)):F=this.element(g,V)}else F=!this.options.ignoreDecorators&&this.stringify.convertTextKey&&p.indexOf(this.stringify.convertTextKey)===0?this.text(S):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&p.indexOf(this.stringify.convertCDataKey)===0?this.cdata(S):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&p.indexOf(this.stringify.convertCommentKey)===0?this.comment(S):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&p.indexOf(this.stringify.convertRawKey)===0?this.raw(S):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&p.indexOf(this.stringify.convertPIKey)===0?this.instruction(p.substr(this.stringify.convertPIKey.length),S):this.node(p,O,S);if(F==null)throw new Error("Could not create any elements with: "+p);return F},w.prototype.insertBefore=function(p,O,S){var h,E,L;if(this.isRoot)throw new Error("Cannot insert elements at root level");return E=this.parent.children.indexOf(this),L=this.parent.children.splice(E),h=this.parent.element(p,O,S),Array.prototype.push.apply(this.parent.children,L),h},w.prototype.insertAfter=function(p,O,S){var h,E,L;if(this.isRoot)throw new Error("Cannot insert elements at root level");return E=this.parent.children.indexOf(this),L=this.parent.children.splice(E+1),h=this.parent.element(p,O,S),Array.prototype.push.apply(this.parent.children,L),h},w.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},w.prototype.node=function(p,O,S){var h,E;return p!=null&&(p=p.valueOf()),O||(O={}),O=O.valueOf(),d(O)||(E=[O,S],S=E[0],O=E[1]),h=new f(this,p,O),S!=null&&h.text(S),this.children.push(h),h},w.prototype.text=function(p){var O;return O=new a(this,p),this.children.push(O),this},w.prototype.cdata=function(p){var O;return O=new m(this,p),this.children.push(O),this},w.prototype.comment=function(p){var O;return O=new b(this,p),this.children.push(O),this},w.prototype.commentBefore=function(p){var O,S;return O=this.parent.children.indexOf(this),S=this.parent.children.splice(O),this.parent.comment(p),Array.prototype.push.apply(this.parent.children,S),this},w.prototype.commentAfter=function(p){var O,S;return O=this.parent.children.indexOf(this),S=this.parent.children.splice(O+1),this.parent.comment(p),Array.prototype.push.apply(this.parent.children,S),this},w.prototype.raw=function(p){var O;return O=new t(this,p),this.children.push(O),this},w.prototype.instruction=function(p,O){var S,h,E,L,P;if(p!=null&&(p=p.valueOf()),O!=null&&(O=O.valueOf()),Array.isArray(p))for(L=0,P=p.length;L<P;L++)S=p[L],this.instruction(S);else if(d(p))for(S in p)x.call(p,S)&&(h=p[S],this.instruction(S,h));else c(O)&&(O=O.apply()),E=new s(this,p,O),this.children.push(E);return this},w.prototype.instructionBefore=function(p,O){var S,h;return S=this.parent.children.indexOf(this),h=this.parent.children.splice(S),this.parent.instruction(p,O),Array.prototype.push.apply(this.parent.children,h),this},w.prototype.instructionAfter=function(p,O){var S,h;return S=this.parent.children.indexOf(this),h=this.parent.children.splice(S+1),this.parent.instruction(p,O),Array.prototype.push.apply(this.parent.children,h),this},w.prototype.declaration=function(p,O,S){var h,E;return h=this.document(),E=new i(h,p,O,S),h.children[0]instanceof i?h.children[0]=E:h.children.unshift(E),h.root()||h},w.prototype.doctype=function(p,O){var S,h,E,L,P,g,F,I,X,R;for(h=this.document(),E=new u(h,p,O),X=h.children,L=P=0,F=X.length;P<F;L=++P)if((S=X[L])instanceof u)return h.children[L]=E,E;for(R=h.children,L=g=0,I=R.length;g<I;L=++g)if(S=R[L],S.isRoot)return h.children.splice(L,0,E),E;return h.children.push(E),E},w.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},w.prototype.root=function(){var p;for(p=this;p;){if(p.isDocument)return p.rootObject;if(p.isRoot)return p;p=p.parent}},w.prototype.document=function(){var p;for(p=this;p;){if(p.isDocument)return p;p=p.parent}},w.prototype.end=function(p){return this.document().end(p)},w.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]},w.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]},w.prototype.importDocument=function(p){var O;return O=p.root().clone(),O.parent=this,O.isRoot=!1,this.children.push(O),this},w.prototype.ele=function(p,O,S){return this.element(p,O,S)},w.prototype.nod=function(p,O,S){return this.node(p,O,S)},w.prototype.txt=function(p){return this.text(p)},w.prototype.dat=function(p){return this.cdata(p)},w.prototype.com=function(p){return this.comment(p)},w.prototype.ins=function(p,O){return this.instruction(p,O)},w.prototype.doc=function(){return this.document()},w.prototype.dec=function(p,O,S){return this.declaration(p,O,S)},w.prototype.dtd=function(p,O){return this.doctype(p,O)},w.prototype.e=function(p,O,S){return this.element(p,O,S)},w.prototype.n=function(p,O,S){return this.node(p,O,S)},w.prototype.t=function(p){return this.text(p)},w.prototype.d=function(p){return this.cdata(p)},w.prototype.c=function(p){return this.comment(p)},w.prototype.r=function(p){return this.raw(p)},w.prototype.i=function(p,O){return this.instruction(p,O)},w.prototype.u=function(){return this.up()},w.prototype.importXMLBuilder=function(p){return this.importDocument(p)},w}()}).call(void 0)},{"./Utility":214,"./XMLCData":216,"./XMLComment":217,"./XMLDeclaration":222,"./XMLDocType":223,"./XMLElement":226,"./XMLProcessingInstruction":228,"./XMLRaw":229,"./XMLText":233}],228:[function(r,A,y){"use strict";var m=r("babel-runtime/core-js/object/create"),b=function(i){return i&&i.__esModule?i:{default:i}}(m);(function(){var i,u=function(t,a){function o(){this.constructor=t}for(var c in a)f.call(a,c)&&(t[c]=a[c]);return o.prototype=a.prototype,t.prototype=new o,t.__super__=a.prototype,t},f={}.hasOwnProperty;i=r("./XMLNode"),A.exports=function(s){function t(a,o,c){if(t.__super__.constructor.call(this,a),o==null)throw new Error("Missing instruction target");this.target=this.stringify.insTarget(o),c&&(this.value=this.stringify.insValue(c))}return u(t,s),t.prototype.clone=function(){return(0,b.default)(this)},t.prototype.toString=function(a){return this.options.writer.set(a).processingInstruction(this)},t}(i)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],229:[function(r,A,y){"use strict";var m=r("babel-runtime/core-js/object/create"),b=function(i){return i&&i.__esModule?i:{default:i}}(m);(function(){var i,u=function(t,a){function o(){this.constructor=t}for(var c in a)f.call(a,c)&&(t[c]=a[c]);return o.prototype=a.prototype,t.prototype=new o,t.__super__=a.prototype,t},f={}.hasOwnProperty;i=r("./XMLNode"),A.exports=function(s){function t(a,o){if(t.__super__.constructor.call(this,a),o==null)throw new Error("Missing raw text");this.value=this.stringify.raw(o)}return u(t,s),t.prototype.clone=function(){return(0,b.default)(this)},t.prototype.toString=function(a){return this.options.writer.set(a).raw(this)},t}(i)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],230:[function(r,A,y){"use strict";(function(){var m,b,i,u,f,s,t,a,o,c,d,l,x,w=function(S,h){function E(){this.constructor=S}for(var L in h)p.call(h,L)&&(S[L]=h[L]);return E.prototype=h.prototype,S.prototype=new E,S.__super__=h.prototype,S},p={}.hasOwnProperty;t=r("./XMLDeclaration"),a=r("./XMLDocType"),m=r("./XMLCData"),b=r("./XMLComment"),o=r("./XMLElement"),d=r("./XMLRaw"),l=r("./XMLText"),c=r("./XMLProcessingInstruction"),i=r("./XMLDTDAttList"),u=r("./XMLDTDElement"),f=r("./XMLDTDEntity"),s=r("./XMLDTDNotation"),x=r("./XMLWriterBase"),A.exports=function(O){function S(h,E){S.__super__.constructor.call(this,E),this.stream=h}return w(S,O),S.prototype.document=function(h){var E,L,P,g,F,I,X,R;for(I=h.children,L=0,g=I.length;L<g;L++)E=I[L],E.isLastRootNode=!1;for(h.children[h.children.length-1].isLastRootNode=!0,X=h.children,R=[],P=0,F=X.length;P<F;P++)switch(E=X[P],!1){case!(E instanceof t):R.push(this.declaration(E));break;case!(E instanceof a):R.push(this.docType(E));break;case!(E instanceof b):R.push(this.comment(E));break;case!(E instanceof c):R.push(this.processingInstruction(E));break;default:R.push(this.element(E))}return R},S.prototype.attribute=function(h){return this.stream.write(" "+h.name+'="'+h.value+'"')},S.prototype.cdata=function(h,E){return this.stream.write(this.space(E)+"<![CDATA["+h.text+"]]>"+this.endline(h))},S.prototype.comment=function(h,E){return this.stream.write(this.space(E)+"<!-- "+h.text+" -->"+this.endline(h))},S.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))},S.prototype.docType=function(h,E){var L,P,g,F;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)),F=h.children,P=0,g=F.length;P<g;P++)switch(L=F[P],!1){case!(L instanceof i):this.dtdAttList(L,E+1);break;case!(L instanceof u):this.dtdElement(L,E+1);break;case!(L instanceof f):this.dtdEntity(L,E+1);break;case!(L instanceof s):this.dtdNotation(L,E+1);break;case!(L instanceof m):this.cdata(L,E+1);break;case!(L instanceof b):this.comment(L,E+1);break;case!(L instanceof c):this.processingInstruction(L,E+1);break;default:throw new Error("Unknown DTD node type: "+L.constructor.name)}this.stream.write("]")}return this.stream.write(this.spacebeforeslash+">"),this.stream.write(this.endline(h))},S.prototype.element=function(h,E){var L,P,g,F,I,X,R,V;E||(E=0),V=this.space(E),this.stream.write(V+"<"+h.name),X=h.attributes;for(I in X)p.call(X,I)&&(L=X[I],this.attribute(L));if(h.children.length===0||h.children.every(function(H){return H.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),R=h.children,g=0,F=R.length;g<F;g++)switch(P=R[g],!1){case!(P instanceof m):this.cdata(P,E+1);break;case!(P instanceof b):this.comment(P,E+1);break;case!(P instanceof o):this.element(P,E+1);break;case!(P instanceof d):this.raw(P,E+1);break;case!(P instanceof l):this.text(P,E+1);break;case!(P instanceof c):this.processingInstruction(P,E+1);break;default:throw new Error("Unknown XML node type: "+P.constructor.name)}this.stream.write(V+"</"+h.name+">")}return this.stream.write(this.endline(h))},S.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))},S.prototype.raw=function(h,E){return this.stream.write(this.space(E)+h.value+this.endline(h))},S.prototype.text=function(h,E){return this.stream.write(this.space(E)+h.value+this.endline(h))},S.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))},S.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))},S.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))},S.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))},S.prototype.endline=function(h){return h.isLastRootNode?"":this.newline},S}(x)}).call(void 0)},{"./XMLCData":216,"./XMLComment":217,"./XMLDTDAttList":218,"./XMLDTDElement":219,"./XMLDTDEntity":220,"./XMLDTDNotation":221,"./XMLDeclaration":222,"./XMLDocType":223,"./XMLElement":226,"./XMLProcessingInstruction":228,"./XMLRaw":229,"./XMLText":233,"./XMLWriterBase":234}],231:[function(r,A,y){"use strict";(function(){var m,b,i,u,f,s,t,a,o,c,d,l,x,w=function(S,h){function E(){this.constructor=S}for(var L in h)p.call(h,L)&&(S[L]=h[L]);return E.prototype=h.prototype,S.prototype=new E,S.__super__=h.prototype,S},p={}.hasOwnProperty;t=r("./XMLDeclaration"),a=r("./XMLDocType"),m=r("./XMLCData"),b=r("./XMLComment"),o=r("./XMLElement"),d=r("./XMLRaw"),l=r("./XMLText"),c=r("./XMLProcessingInstruction"),i=r("./XMLDTDAttList"),u=r("./XMLDTDElement"),f=r("./XMLDTDEntity"),s=r("./XMLDTDNotation"),x=r("./XMLWriterBase"),A.exports=function(O){function S(h){S.__super__.constructor.call(this,h)}return w(S,O),S.prototype.document=function(h){var E,L,P,g,F;for(this.textispresent=!1,g="",F=h.children,L=0,P=F.length;L<P;L++)E=F[L],g+=function(){switch(!1){case!(E instanceof t):return this.declaration(E);case!(E instanceof a):return this.docType(E);case!(E instanceof b):return this.comment(E);case!(E instanceof c):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},S.prototype.attribute=function(h){return" "+h.name+'="'+h.value+'"'},S.prototype.cdata=function(h,E){return this.space(E)+"<![CDATA["+h.text+"]]>"+this.newline},S.prototype.comment=function(h,E){return this.space(E)+"<!-- "+h.text+" -->"+this.newline},S.prototype.declaration=function(h,E){var L;return L=this.space(E),L+='<?xml version="'+h.version+'"',h.encoding!=null&&(L+=' encoding="'+h.encoding+'"'),h.standalone!=null&&(L+=' standalone="'+h.standalone+'"'),L+=this.spacebeforeslash+"?>",L+=this.newline},S.prototype.docType=function(h,E){var L,P,g,F,I;if(E||(E=0),F=this.space(E),F+="<!DOCTYPE "+h.root().name,h.pubID&&h.sysID?F+=' PUBLIC "'+h.pubID+'" "'+h.sysID+'"':h.sysID&&(F+=' SYSTEM "'+h.sysID+'"'),h.children.length>0){for(F+=" [",F+=this.newline,I=h.children,P=0,g=I.length;P<g;P++)L=I[P],F+=function(){switch(!1){case!(L instanceof i):return this.dtdAttList(L,E+1);case!(L instanceof u):return this.dtdElement(L,E+1);case!(L instanceof f):return this.dtdEntity(L,E+1);case!(L instanceof s):return this.dtdNotation(L,E+1);case!(L instanceof m):return this.cdata(L,E+1);case!(L instanceof b):return this.comment(L,E+1);case!(L instanceof c):return this.processingInstruction(L,E+1);default:throw new Error("Unknown DTD node type: "+L.constructor.name)}}.call(this);F+="]"}return F+=this.spacebeforeslash+">",F+=this.newline},S.prototype.element=function(h,E){var L,P,g,F,I,X,R,V,H,$,ae,M,Q;E||(E=0),Q=!1,this.textispresent?(this.newline="",this.pretty=!1):(this.newline=this.newlinedefault,this.pretty=this.prettydefault),M=this.space(E),V="",V+=M+"<"+h.name,H=h.attributes;for(R in H)p.call(H,R)&&(L=H[R],V+=this.attribute(L));if(h.children.length===0||h.children.every(function(Y){return Y.value===""}))this.allowEmpty?V+="></"+h.name+">"+this.newline:V+=this.spacebeforeslash+"/>"+this.newline;else if(this.pretty&&h.children.length===1&&h.children[0].value!=null)V+=">",V+=h.children[0].value,V+="</"+h.name+">"+this.newline;else{if(this.dontprettytextnodes){for($=h.children,g=0,I=$.length;g<I;g++)if(P=$[g],P.value!=null){this.textispresent++,Q=!0;break}}for(this.textispresent&&(this.newline="",this.pretty=!1,M=this.space(E)),V+=">"+this.newline,ae=h.children,F=0,X=ae.length;F<X;F++)P=ae[F],V+=function(){switch(!1){case!(P instanceof m):return this.cdata(P,E+1);case!(P instanceof b):return this.comment(P,E+1);case!(P instanceof o):return this.element(P,E+1);case!(P instanceof d):return this.raw(P,E+1);case!(P instanceof l):return this.text(P,E+1);case!(P instanceof c):return this.processingInstruction(P,E+1);default:throw new Error("Unknown XML node type: "+P.constructor.name)}}.call(this);Q&&this.textispresent--,this.textispresent||(this.newline=this.newlinedefault,this.pretty=this.prettydefault),V+=M+"</"+h.name+">"+this.newline}return V},S.prototype.processingInstruction=function(h,E){var L;return L=this.space(E)+"<?"+h.target,h.value&&(L+=" "+h.value),L+=this.spacebeforeslash+"?>"+this.newline},S.prototype.raw=function(h,E){return this.space(E)+h.value+this.newline},S.prototype.text=function(h,E){return this.space(E)+h.value+this.newline},S.prototype.dtdAttList=function(h,E){var L;return L=this.space(E)+"<!ATTLIST "+h.elementName+" "+h.attributeName+" "+h.attributeType,h.defaultValueType!=="#DEFAULT"&&(L+=" "+h.defaultValueType),h.defaultValue&&(L+=' "'+h.defaultValue+'"'),L+=this.spacebeforeslash+">"+this.newline},S.prototype.dtdElement=function(h,E){return this.space(E)+"<!ELEMENT "+h.name+" "+h.value+this.spacebeforeslash+">"+this.newline},S.prototype.dtdEntity=function(h,E){var L;return L=this.space(E)+"<!ENTITY",h.pe&&(L+=" %"),L+=" "+h.name,h.value?L+=' "'+h.value+'"':(h.pubID&&h.sysID?L+=' PUBLIC "'+h.pubID+'" "'+h.sysID+'"':h.sysID&&(L+=' SYSTEM "'+h.sysID+'"'),h.nData&&(L+=" NDATA "+h.nData)),L+=this.spacebeforeslash+">"+this.newline},S.prototype.dtdNotation=function(h,E){var L;return L=this.space(E)+"<!NOTATION "+h.name,h.pubID&&h.sysID?L+=' PUBLIC "'+h.pubID+'" "'+h.sysID+'"':h.pubID?L+=' PUBLIC "'+h.pubID+'"':h.sysID&&(L+=' SYSTEM "'+h.sysID+'"'),L+=this.spacebeforeslash+">"+this.newline},S.prototype.openNode=function(h,E){var L,P,g,F;if(E||(E=0),h instanceof o){g=this.space(E)+"<"+h.name,F=h.attributes;for(P in F)p.call(F,P)&&(L=F[P],g+=this.attribute(L));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},S.prototype.closeNode=function(h,E){switch(E||(E=0),!1){case!(h instanceof o):return this.space(E)+"</"+h.name+">"+this.newline;case!(h instanceof a):return this.space(E)+"]>"+this.newline}},S}(x)}).call(void 0)},{"./XMLCData":216,"./XMLComment":217,"./XMLDTDAttList":218,"./XMLDTDElement":219,"./XMLDTDEntity":220,"./XMLDTDNotation":221,"./XMLDeclaration":222,"./XMLDocType":223,"./XMLElement":226,"./XMLProcessingInstruction":228,"./XMLRaw":229,"./XMLText":233,"./XMLWriterBase":234}],232:[function(r,A,y){"use strict";(function(){var m=function(u,f){return function(){return u.apply(f,arguments)}},b={}.hasOwnProperty;A.exports=function(){function i(u){this.assertLegalChar=m(this.assertLegalChar,this);var f,s,t;u||(u={}),this.noDoubleEncoding=u.noDoubleEncoding,s=u.stringify||{};for(f in s)b.call(s,f)&&(t=s[f],this[f]=t)}return i.prototype.eleName=function(u){return u=""+u||"",this.assertLegalChar(u)},i.prototype.eleText=function(u){return u=""+u||"",this.assertLegalChar(this.elEscape(u))},i.prototype.cdata=function(u){return u=""+u||"",u=u.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(u)},i.prototype.comment=function(u){if(u=""+u||"",u.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+u);return this.assertLegalChar(u)},i.prototype.raw=function(u){return""+u||""},i.prototype.attName=function(u){return u=""+u||""},i.prototype.attValue=function(u){return u=""+u||"",this.attEscape(u)},i.prototype.insTarget=function(u){return""+u||""},i.prototype.insValue=function(u){if(u=""+u||"",u.match(/\?>/))throw new Error("Invalid processing instruction value: "+u);return u},i.prototype.xmlVersion=function(u){if(u=""+u||"",!u.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+u);return u},i.prototype.xmlEncoding=function(u){if(u=""+u||"",!u.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+u);return u},i.prototype.xmlStandalone=function(u){return u?"yes":"no"},i.prototype.dtdPubID=function(u){return""+u||""},i.prototype.dtdSysID=function(u){return""+u||""},i.prototype.dtdElementValue=function(u){return""+u||""},i.prototype.dtdAttType=function(u){return""+u||""},i.prototype.dtdAttDefault=function(u){return u!=null?""+u||"":u},i.prototype.dtdEntityValue=function(u){return""+u||""},i.prototype.dtdNData=function(u){return""+u||""},i.prototype.convertAttKey="@",i.prototype.convertPIKey="?",i.prototype.convertTextKey="#text",i.prototype.convertCDataKey="#cdata",i.prototype.convertCommentKey="#comment",i.prototype.convertRawKey="#raw",i.prototype.assertLegalChar=function(u){var f;if(f=u.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/))throw new Error("Invalid character in string: "+u+" at index "+f.index);return u},i.prototype.elEscape=function(u){var f;return f=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,u.replace(f,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
")},i.prototype.attEscape=function(u){var f;return f=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,u.replace(f,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
")},i}()}).call(void 0)},{}],233:[function(r,A,y){"use strict";var m=r("babel-runtime/core-js/object/create"),b=function(i){return i&&i.__esModule?i:{default:i}}(m);(function(){var i,u=function(t,a){function o(){this.constructor=t}for(var c in a)f.call(a,c)&&(t[c]=a[c]);return o.prototype=a.prototype,t.prototype=new o,t.__super__=a.prototype,t},f={}.hasOwnProperty;i=r("./XMLNode"),A.exports=function(s){function t(a,o){if(t.__super__.constructor.call(this,a),o==null)throw new Error("Missing element text");this.value=this.stringify.eleText(o)}return u(t,s),t.prototype.clone=function(){return(0,b.default)(this)},t.prototype.toString=function(a){return this.options.writer.set(a).text(this)},t}(i)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],234:[function(r,A,y){"use strict";(function(){var m={}.hasOwnProperty;A.exports=function(){function b(i){var u,f,s,t,a,o,c,d,l;i||(i={}),this.pretty=i.pretty||!1,this.allowEmpty=(f=i.allowEmpty)!=null&&f,this.pretty?(this.indent=(s=i.indent)!=null?s:" ",this.newline=(t=i.newline)!=null?t:`
|
|
|
`,this.offset=(a=i.offset)!=null?a:0,this.dontprettytextnodes=(o=i.dontprettytextnodes)!=null?o:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash=(c=i.spacebeforeslash)!=null?c:"",this.spacebeforeslash===!0&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,d=i.writer||{};for(u in d)m.call(d,u)&&(l=d[u],this[u]=l)}return b.prototype.set=function(i){var u,f,s;i||(i={}),"pretty"in i&&(this.pretty=i.pretty),"allowEmpty"in i&&(this.allowEmpty=i.allowEmpty),this.pretty?(this.indent="indent"in i?i.indent:" ",this.newline="newline"in i?i.newline:`
|
|
|
`,this.offset="offset"in i?i.offset:0,this.dontprettytextnodes="dontprettytextnodes"in i?i.dontprettytextnodes:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash="spacebeforeslash"in i?i.spacebeforeslash:"",this.spacebeforeslash===!0&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,f=i.writer||{};for(u in f)m.call(f,u)&&(s=f[u],this[u]=s);return this},b.prototype.space=function(i){var u;return this.pretty?(u=(i||0)+this.offset+1,u>0?new Array(u).join(this.indent):""):""},b}()}).call(void 0)},{}],235:[function(r,A,y){"use strict";(function(){var m,b,i,u,f,s,t;t=r("./Utility"),f=t.assign,s=t.isFunction,m=r("./XMLDocument"),b=r("./XMLDocumentCB"),u=r("./XMLStringWriter"),i=r("./XMLStreamWriter"),A.exports.create=function(a,o,c,d){var l,x;if(a==null)throw new Error("Root element needs a name");return d=f({},o,c,d),l=new m(d),x=l.element(a),d.headless||(l.declaration(d),d.pubID==null&&d.sysID==null||l.doctype(d)),x},A.exports.begin=function(a,o,c){var d;return s(a)&&(d=[a,o],o=d[0],c=d[1],a={}),o?new b(a,o,c):new m(a)},A.exports.stringWriter=function(a){return new u(a)},A.exports.streamWriter=function(a,o){return new i(a,o)}}).call(void 0)},{"./Utility":214,"./XMLDocument":224,"./XMLDocumentCB":225,"./XMLStreamWriter":230,"./XMLStringWriter":231}],236:[function(r,A,y){function m(){for(var i={},u=0;u<arguments.length;u++){var f=arguments[u];for(var s in f)b.call(f,s)&&(i[s]=f[s])}return i}A.exports=m;var b=Object.prototype.hasOwnProperty},{}],237:[function(r,A,y){"use strict";function m(d,l,x){u.isBuffer(l)||(l=new u(l)),u.isBuffer(x)||(x=new u(x)),l.length>o?l=d(l):l.length<o&&(l=u.concat([l,c],o));for(var w=new u(o),p=new u(o),O=0;O<o;O++)w[O]=54^l[O],p[O]=92^l[O];var S=d(u.concat([w,x]));return d(u.concat([p,S]))}function b(d,l){d=d||"sha1";var x=a[d],w=[],p=0;return x||i("algorithm:",d,"is not yet supported"),{update:function(S){return u.isBuffer(S)||(S=new u(S)),w.push(S),p+=S.length,this},digest:function(S){var h=u.concat(w),E=l?m(x,l,h):x(h);return w=null,S?E.toString(S):E}}}function i(){var d=[].slice.call(arguments).join(" ");throw new Error([d,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
|
|
|
`))}var u=r("buffer").Buffer,f=r("./sha"),s=r("./sha256"),t=r("./md5"),a={sha1:f,sha256:s,md5:t},o=64,c=new u(o);c.fill(0),y.createHash=function(d){return b(d)},y.createHmac=function(d,l){return b(d,l)},function(d,l){for(var x in d)l(d[x],x)}(["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],function(d){y[d]=function(){i("sorry,",d,"is not implemented yet")}})},{"./md5":239,"./sha":240,"./sha256":241,buffer:38}],238:[function(r,A,y){"use strict";function m(a,o){if(a.length%f!=0){var c=a.length+(f-a.length%f);a=u.concat([a,s],c)}for(var d=[],l=o?a.readInt32BE:a.readInt32LE,x=0;x<a.length;x+=f)d.push(l.call(a,x));return d}function b(a,o,c){for(var d=new u(o),l=c?d.writeInt32BE:d.writeInt32LE,x=0;x<a.length;x++)l.call(d,a[x],4*x,!0);return d}function i(a,o,c,d){return u.isBuffer(a)||(a=new u(a)),b(o(m(a,d),a.length*t),c,d)}var u=r("buffer").Buffer,f=4,s=new u(f);s.fill(0);var t=8;A.exports={hash:i}},{buffer:38}],239:[function(r,A,y){"use strict";function m(c,d){c[d>>5]|=128<<d%32,c[14+(d+64>>>9<<4)]=d;for(var l=1732584193,x=-271733879,w=-1732584194,p=271733878,O=0;O<c.length;O+=16){var S=l,h=x,E=w,L=p;l=i(l,x,w,p,c[O+0],7,-680876936),p=i(p,l,x,w,c[O+1],12,-389564586),w=i(w,p,l,x,c[O+2],17,606105819),x=i(x,w,p,l,c[O+3],22,-1044525330),l=i(l,x,w,p,c[O+4],7,-176418897),p=i(p,l,x,w,c[O+5],12,1200080426),w=i(w,p,l,x,c[O+6],17,-1473231341),x=i(x,w,p,l,c[O+7],22,-45705983),l=i(l,x,w,p,c[O+8],7,1770035416),p=i(p,l,x,w,c[O+9],12,-1958414417),w=i(w,p,l,x,c[O+10],17,-42063),x=i(x,w,p,l,c[O+11],22,-1990404162),l=i(l,x,w,p,c[O+12],7,1804603682),p=i(p,l,x,w,c[O+13],12,-40341101),w=i(w,p,l,x,c[O+14],17,-1502002290),x=i(x,w,p,l,c[O+15],22,1236535329),l=u(l,x,w,p,c[O+1],5,-165796510),p=u(p,l,x,w,c[O+6],9,-1069501632),w=u(w,p,l,x,c[O+11],14,643717713),x=u(x,w,p,l,c[O+0],20,-373897302),l=u(l,x,w,p,c[O+5],5,-701558691),p=u(p,l,x,w,c[O+10],9,38016083),w=u(w,p,l,x,c[O+15],14,-660478335),x=u(x,w,p,l,c[O+4],20,-405537848),l=u(l,x,w,p,c[O+9],5,568446438),p=u(p,l,x,w,c[O+14],9,-1019803690),w=u(w,p,l,x,c[O+3],14,-187363961),x=u(x,w,p,l,c[O+8],20,1163531501),l=u(l,x,w,p,c[O+13],5,-1444681467),p=u(p,l,x,w,c[O+2],9,-51403784),w=u(w,p,l,x,c[O+7],14,1735328473),x=u(x,w,p,l,c[O+12],20,-1926607734),l=f(l,x,w,p,c[O+5],4,-378558),p=f(p,l,x,w,c[O+8],11,-2022574463),w=f(w,p,l,x,c[O+11],16,1839030562),x=f(x,w,p,l,c[O+14],23,-35309556),l=f(l,x,w,p,c[O+1],4,-1530992060),p=f(p,l,x,w,c[O+4],11,1272893353),w=f(w,p,l,x,c[O+7],16,-155497632),x=f(x,w,p,l,c[O+10],23,-1094730640),l=f(l,x,w,p,c[O+13],4,681279174),p=f(p,l,x,w,c[O+0],11,-358537222),w=f(w,p,l,x,c[O+3],16,-722521979),x=f(x,w,p,l,c[O+6],23,76029189),l=f(l,x,w,p,c[O+9],4,-640364487),p=f(p,l,x,w,c[O+12],11,-421815835),w=f(w,p,l,x,c[O+15],16,530742520),x=f(x,w,p,l,c[O+2],23,-995338651),l=s(l,x,w,p,c[O+0],6,-198630844),p=s(p,l,x,w,c[O+7],10,1126891415),w=s(w,p,l,x,c[O+14],15,-1416354905),x=s(x,w,p,l,c[O+5],21,-57434055),l=s(l,x,w,p,c[O+12],6,1700485571),p=s(p,l,x,w,c[O+3],10,-1894986606),w=s(w,p,l,x,c[O+10],15,-1051523),x=s(x,w,p,l,c[O+1],21,-2054922799),l=s(l,x,w,p,c[O+8],6,1873313359),p=s(p,l,x,w,c[O+15],10,-30611744),w=s(w,p,l,x,c[O+6],15,-1560198380),x=s(x,w,p,l,c[O+13],21,1309151649),l=s(l,x,w,p,c[O+4],6,-145523070),p=s(p,l,x,w,c[O+11],10,-1120210379),w=s(w,p,l,x,c[O+2],15,718787259),x=s(x,w,p,l,c[O+9],21,-343485551),l=t(l,S),x=t(x,h),w=t(w,E),p=t(p,L)}return Array(l,x,w,p)}function b(c,d,l,x,w,p){return t(a(t(t(d,c),t(x,p)),w),l)}function i(c,d,l,x,w,p,O){return b(d&l|~d&x,c,d,w,p,O)}function u(c,d,l,x,w,p,O){return b(d&x|l&~x,c,d,w,p,O)}function f(c,d,l,x,w,p,O){return b(d^l^x,c,d,w,p,O)}function s(c,d,l,x,w,p,O){return b(l^(d|~x),c,d,w,p,O)}function t(c,d){var l=(65535&c)+(65535&d);return(c>>16)+(d>>16)+(l>>16)<<16|65535&l}function a(c,d){return c<<d|c>>>32-d}var o=r("./helpers");A.exports=function(c){return o.hash(c,m,16)}},{"./helpers":238}],240:[function(r,A,y){"use strict";function m(t,a){t[a>>5]|=128<<24-a%32,t[15+(a+64>>9<<4)]=a;for(var o=Array(80),c=1732584193,d=-271733879,l=-1732584194,x=271733878,w=-1009589776,p=0;p<t.length;p+=16){for(var O=c,S=d,h=l,E=x,L=w,P=0;P<80;P++){o[P]=P<16?t[p+P]:f(o[P-3]^o[P-8]^o[P-14]^o[P-16],1);var g=u(u(f(c,5),b(P,d,l,x)),u(u(w,o[P]),i(P)));w=x,x=l,l=f(d,30),d=c,c=g}c=u(c,O),d=u(d,S),l=u(l,h),x=u(x,E),w=u(w,L)}return Array(c,d,l,x,w)}function b(t,a,o,c){return t<20?a&o|~a&c:t<40?a^o^c:t<60?a&o|a&c|o&c:a^o^c}function i(t){return t<20?1518500249:t<40?1859775393:t<60?-1894007588:-899497514}function u(t,a){var o=(65535&t)+(65535&a);return(t>>16)+(a>>16)+(o>>16)<<16|65535&o}function f(t,a){return t<<a|t>>>32-a}var s=r("./helpers");A.exports=function(t){return s.hash(t,m,20,!0)}},{"./helpers":238}],241:[function(r,A,y){"use strict";var m=r("./helpers"),b=function(x,w){var p=(65535&x)+(65535&w);return(x>>16)+(w>>16)+(p>>16)<<16|65535&p},i=function(x,w){return x>>>w|x<<32-w},u=function(x,w){return x>>>w},f=function(x,w,p){return x&w^~x&p},s=function(x,w,p){return x&w^x&p^w&p},t=function(x){return i(x,2)^i(x,13)^i(x,22)},a=function(x){return i(x,6)^i(x,11)^i(x,25)},o=function(x){return i(x,7)^i(x,18)^u(x,3)},c=function(x){return i(x,17)^i(x,19)^u(x,10)},d=function(x,w){var p,O,S,h,E,L,P,g,F,I,X,R,V=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),H=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),$=new Array(64);x[w>>5]|=128<<24-w%32,x[15+(w+64>>9<<4)]=w;for(var F=0;F<x.length;F+=16){p=H[0],O=H[1],S=H[2],h=H[3],E=H[4],L=H[5],P=H[6],g=H[7];for(var I=0;I<64;I++)$[I]=I<16?x[I+F]:b(b(b(c($[I-2]),$[I-7]),o($[I-15])),$[I-16]),X=b(b(b(b(g,a(E)),f(E,L,P)),V[I]),$[I]),R=b(t(p),s(p,O,S)),g=P,P=L,L=E,E=b(h,X),h=S,S=O,O=p,p=b(X,R);H[0]=b(p,H[0]),H[1]=b(O,H[1]),H[2]=b(S,H[2]),H[3]=b(h,H[3]),H[4]=b(E,H[4]),H[5]=b(L,H[5]),H[6]=b(P,H[6]),H[7]=b(g,H[7])}return H};A.exports=function(l){return m.hash(l,d,32,!0)}},{"./helpers":238}],242:[function(r,A,y){(function(m){"use strict";function b(d){return d&&d.__esModule?d:{default:d}}var i=r("babel-runtime/core-js/object/create"),u=b(i),f=r("babel-runtime/helpers/classCallCheck"),s=b(f),t=r("babel-runtime/helpers/createClass"),a=b(t),o=r("babel-runtime/helpers/typeof"),c=b(o);!function(d){if((y===void 0?"undefined":(0,c.default)(y))==="object"&&A!==void 0)A.exports=d();else if(typeof Oe=="function"&&Oe.amd)Oe([],d);else{var l;l=typeof window!="undefined"?window:m!==void 0?m:typeof self!="undefined"?self:this,l.mime=d()}}(function(){return function d(l,x,w){function p(h,E){if(!x[h]){if(!l[h]){var L=typeof r=="function"&&r;if(!E&&L)return L(h,!0);if(O)return O(h,!0);var P=new Error("Cannot find module '"+h+"'");throw P.code="MODULE_NOT_FOUND",P}var g=x[h]={exports:{}};l[h][0].call(g.exports,function(F){var I=l[h][1][F];return p(I||F)},g,g.exports,d,l,x,w)}return x[h].exports}for(var O=typeof r=="function"&&r,S=0;S<w.length;S++)p(w[S]);return p}({1:[function(d,l,x){var w=function(){function p(){(0,s.default)(this,p),this._types=(0,u.default)(null),this._extensions=(0,u.default)(null);for(var O=0;O<arguments.length;O++)this.define(arguments[O])}return(0,a.default)(p,[{key:"define",value:function(S,h){for(var E in S){for(var L=S[E],P=0;P<L.length;P++){var g=L[P];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]=L[0])}}},{key:"getType",value:function(S){S=String(S);var h=S.replace(/^.*[\/\\]/,"").toLowerCase(),E=h.replace(/^.*\./,"").toLowerCase(),L=h.length<S.length;return(E.length<h.length-1||!L)&&this._types[E]||null}},{key:"getExtension",value:function(S){return(S=/^\s*([^;\s]*)/.test(S)&&RegExp.$1)&&this._extensions[S.toLowerCase()]||null}}]),p}();l.exports=w},{}],2:[function(d,l,x){var w=d("./Mime");l.exports=new w(d("./types/standard"),d("./types/other"))},{"./Mime":1,"./types/other":3,"./types/standard":4}],3:[function(d,l,x){l.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(d,l,x){l.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 Ye!="undefined"?Ye: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(r,A,y){"use strict";y.encodeURIComponent=function(m){try{return encodeURIComponent(m)}catch(b){return m}},y.escape=r("escape-html"),y.timestamp=function(m){if(m){var b=m;return typeof b=="string"&&(b=Number(b)),String(m).length===10&&(b*=1e3),new Date(b)}return Math.round(Date.now()/1e3)}},{"escape-html":157}],244:[function(r,A,y){(function(m,b){"use strict";function i(P){return P&&P.__esModule?P:{default:P}}function u(P,g){return P===void 0?g:P}function f(P,g){return function(F,I,X){if(F)return g(F);P({data:I,status:X.statusCode,headers:X.headers,res:X})}}var s,t=r("babel-runtime/core-js/json/stringify"),a=i(t),o=r("babel-runtime/helpers/typeof"),c=i(o),d=r("util"),l=r("url"),x=r("http"),w=r("https"),p=r("debug")("urllib"),O=r("humanize-ms"),S=0,h=Math.pow(2,31)-10,E=/^https?:\/\//i;y.TIMEOUTS=[O("300s"),O("300s")];var L=["json","text"];y.request=function(P,g,F){return arguments.length===2&&typeof g=="function"&&(F=g,g=null),typeof F=="function"?y.requestWithCallback(P,g,F):(s||(s=r("any-promise")),new s(function(I,X){y.requestWithCallback(P,g,f(I,X))}))},y.requestWithCallback=function(P,g,F){function I(){we&&(clearTimeout(we),we=null)}function X(){k&&(clearTimeout(k),k=null)}function R(_e,he,Se){if(X(),!F)return console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),Y,m.pid,se.method,P),void(_e&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
|
|
|
stack: %s`,Date(),Y,m.pid,_e.name,_e.message,_e.stack));var Te=F;F=null;var Pe={};if(Se&&(_=Se.statusCode,Pe=Se.headers),_===401&&Pe["www-authenticate"]&&(!g.headers||!g.headers.Authorization)&&g.digestAuth){var We=Pe["www-authenticate"];if(We.indexOf("Digest ")>=0)return p("Request#%d %s: got digest auth header WWW-Authenticate: %s",Y,P,We),g.headers=g.headers||{},g.headers.Authorization=digestAuthHeader(se.method,se.path,We,g.digestAuth),p("Request#%d %s: auth with digest header: %s",Y,P,g.headers.Authorization),Se.headers["set-cookie"]&&(g.headers.Cookie=Se.headers["set-cookie"].join(";")),y.requestWithCallback(P,g,Te)}var Xe=Date.now()-C;ye&&(ye.contentDownload=Xe),p("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",Xe,v,_,se.method,se.host,se.path,T,ye);var it={status:_,statusCode:_,headers:Pe,size:v,aborted:B,rt:Xe,keepAliveSocket:T,data:he,requestUrls:g.requestUrls,timing:ye,remoteAddress:Z,remotePort:Ee};if(_e){var $e="";ne&&typeof ne.getCurrentStatus=="function"&&($e=", agent status: "+(0,a.default)(ne.getCurrentStatus())),_e.message+=", "+se.method+" "+P+" "+_+" (connected: "+n+", keepalive socket: "+T+$e+`)
|
|
|
headers: `+(0,a.default)(Pe),_e.data=he,_e.path=se.path,_e.status=_,_e.headers=Pe,_e.res=it}Te(_e,he,g.streaming?Se:it),g.emitter&&(W.url=P,W.socket=et&&et.connection,W.options=se,W.size=ce,g.emitter.emit("response",{requestId:Y,error:_e,ctx:g.ctx,req:W,res:it}))}function V(_e){var he=null;if(g.followRedirect&&statuses.redirect[_e.statusCode]){g._followRedirectCount=(g._followRedirectCount||0)+1;var Se=_e.headers.location;if(Se){if(!(g._followRedirectCount>g.maxRedirects)){var Te=g.formatRedirectUrl?g.formatRedirectUrl(P,Se):l.resolve(P,Se);p("Request#%d %s: `redirected` from %s to %s",Y,se.path,P,Te),X(),g.headers&&g.headers.Host&&E.test(Se)&&(g.headers.Host=null);var Pe=F;return F=null,y.requestWithCallback(Te,g,Pe),{redirect:!0,error:null}}he=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+P),he.name="MaxRedirectError"}else he=new Error("Got statusCode "+_e.statusCode+" but cannot resolve next location from headers"),he.name="FollowRedirectError"}return{redirect:!1,error:he}}function H(_e,he,Se){return Se(null,he,_e.headers["content-encoding"])}function $(_e){if(ye&&(ye.waiting=Date.now()-C),p("Request#%d %s `req response` event emit: status %d, headers: %j",Y,P,_e.statusCode,_e.headers),g.streaming){var he=V(_e);return he.redirect?void _e.resume():he.error?(_e.resume(),R(he.error,null,_e)):R(null,null,_e)}if(_e.on("close",function(){p("Request#%d %s: `res close` event emit, total size %d",Y,P,v)}),_e.on("error",function(){p("Request#%d %s: `res error` event emit, total size %d",Y,P,v)}),_e.on("aborted",function(){B=!0,p("Request#%d %s: `res aborted` event emit, total size %d",Y,P,v)}),Ae){var he=V(_e);return he.redirect?void _e.resume():he.error?(_e.resume(),Ae.end(),R(he.error,null,_e)):(g.consumeWriteStream===!1?_e.on("end",R.bind(null,null,null,_e)):isNode010||isNode012?first([[Ae,"close"],[_e,"aborted"]],function(Pe,We,Xe){p("Request#%d %s: writeStream or res %s event emitted",Y,P,Xe),R(e||null,null,_e)}):Ae.on("close",function(){p("Request#%d %s: writeStream close event emitted",Y,P),R(e||null,null,_e)}),_e.pipe(Ae))}var Se=[];_e.on("data",function(Te){p("Request#%d %s: `res data` event emit, size %d",Y,P,Te.length),v+=Te.length,Se.push(Te)}),_e.on("end",function(){var Te=b.concat(Se,v);if(p("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",Y,P,v,_e._dumped),e)return R(e,Te,_e);var Pe=V(_e);if(Pe.error)return R(Pe.error,Te,_e);Pe.redirect||H(_e,Te,function(We,Xe,it){if(We)return R(We,Te,_e);if(!it&&L.indexOf(g.dataType)>=0){try{Xe=decodeBodyByCharset(Xe,_e)}catch(De){return p("decodeBodyByCharset error: %s",De),R(null,Xe,_e)}if(g.dataType==="json")if(v===0)Xe=null;else{var $e=parseJSON(Xe,fe);$e.error?We=$e.error:Xe=$e.data}}B&&p("Request#%d %s: Remote socket was terminated before `response.end()` was called",Y,P),R(We,Xe,_e)})})}function ae(){p("Response timer ticking, timeout: %d",Fe),k=setTimeout(function(){k=null;var _e="Response timeout for "+Fe+"ms";e=new Error(_e),e.name="ResponseTimeoutError",e.requestId=Y,p("ResponseTimeout: Request#%d %s %s: %s, connected: %s",Y,P,e.name,_e,n),M()},Fe)}function M(){p("Request#%d %s abort, connected: %s",Y,P,n),et.socket||(e.noSocket=!0,R(e)),et.abort()}if(!P||typeof P!="string"&&(P===void 0?"undefined":(0,c.default)(P))!=="object"){var Q=d.format("expect request url to be a string or a http request options, but got %j",P);throw new Error(Q)}arguments.length===2&&typeof g=="function"&&(F=g,g=null),g=g||{},S>=h&&(S=0);var Y=++S;g.requestUrls=g.requestUrls||[];var W={requestId:Y,url:P,args:g,ctx:g.ctx};g.emitter&&g.emitter.emit("request",W),g.timeout=g.timeout||y.TIMEOUTS,g.maxRedirects=g.maxRedirects||10,g.streaming=g.streaming||g.customResponse;var D,C=Date.now();typeof P=="string"?(E.test(P)||(P="http://"+P),D=l.parse(P)):D=P;var U=(g.type||g.method||D.method||"GET").toUpperCase(),G=D.port||80,J=x,ne=u(g.agent,y.agent),fe=g.fixJSONCtlChars;D.protocol==="https:"&&(J=w,ne=u(g.httpsAgent,y.httpsAgent),D.port||(G=443));var se={host:D.hostname||D.host||"localhost",path:D.path||"/",method:U,port:G,agent:ne,headers:g.headers||{},lookup:g.lookup};Array.isArray(g.timeout)?se.requestTimeout=g.timeout[g.timeout.length-1]:g.timeout!==void 0&&(se.requestTimeout=g.timeout);for(var me=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","secureOptions"],ve=0;ve<me.length;ve++){var ie=me[ve];g.hasOwnProperty(ie)&&(se[ie]=g[ie])}se.rejectUnauthorized!==!1||se.hasOwnProperty("secureOptions")||(se.secureOptions=r("constants").SSL_OP_NO_TLSv1_2);var oe=g.auth||D.auth;oe&&(se.auth=oe);var le=g.content||g.data,K=U==="GET"||U==="HEAD"||g.dataAsQueryString;if(!g.content&&le&&typeof le!="string"&&!b.isBuffer(le))if(K)le=g.nestedQuerystring?qs.stringify(le):querystring.stringify(le);else{var q=se.headers["Content-Type"]||se.headers["content-type"];q||(q=g.contentType==="json"?"application/json":"application/x-www-form-urlencoded",se.headers["Content-Type"]=q),le=parseContentType(q).type==="application/json"?(0,a.default)(le):g.nestedQuerystring?qs.stringify(le):querystring.stringify(le)}K&&le&&(se.path+=(D.query?"&":"?")+le,le=null);var ce=0;if(le){var ue=le.length;b.isBuffer(le)||(ue=b.byteLength(le)),ce=se.headers["Content-Length"]=ue}g.dataType==="json"&&(se.headers.Accept="application/json"),typeof g.beforeRequest=="function"&&g.beforeRequest(se);var we=null,k=null,e=null,n=!1,T=!1,v=0,_=-1,B=!1,Z="",Ee="",ye=null;g.timing&&(ye={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0}),se.headers["User-Agent"]||se.headers["user-agent"]||(se.headers["User-Agent"]=navigator.userAgent),g.gzip&&(se.headers["Accept-Encoding"]||se.headers["accept-encoding"]||(se.headers["Accept-Encoding"]="gzip"));var Ae=g.writeStream;p("Request#%d %s %s with headers %j, options.path: %s",Y,U,P,se.headers,se.path),g.requestUrls.push(P);var Le,Fe;Array.isArray(g.timeout)?(Le=O(g.timeout[0]),Fe=O(g.timeout[1])):Le=Fe=O(g.timeout),p("ConnectTimeout: %d, ResponseTimeout: %d",Le,Fe);var et;try{et=J.request(se,$)}catch(_e){return R(_e)}return typeof window=="undefined"?function(){p("Connect timer ticking, timeout: %d",Le),we=setTimeout(function(){we=null,_===-1&&(_=-2);var _e="Connect timeout for "+Le+"ms",he="ConnectionTimeoutError";et.socket||(he="SocketAssignTimeoutError",_e+=", working sockets is full"),e=new Error(_e),e.name=he,e.requestId=Y,p("ConnectTimeout: Request#%d %s %s: %s, connected: %s",Y,P,e.name,_e,n),M()},Le)}():et.on("requestTimeout",function(){_===-1&&(_=-2);var _e="Connect timeout for "+Le+"ms";e=new Error(_e),e.name="ConnectionTimeoutError",e.requestId=Y,M()}),ye&&et.on("finish",function(){ye.requestSent=Date.now()-C}),et.once("socket",function(_e){ye&&(ye.queuing=Date.now()-C),isNode010&&_e.socket&&(_e=_e.socket);var he=_e.readyState;if(he==="opening")return _e.once("lookup",function(Se,Te,Pe){p("Request#%d %s lookup: %s, %s, %s",Y,P,Se,Te,Pe),ye&&(ye.dnslookup=Date.now()-C),Te&&(Z=Te)}),void _e.once("connect",function(){ye&&(ye.connected=Date.now()-C),I(),ae(),p("Request#%d %s new socket connected",Y,P),n=!0,Z||(Z=_e.remoteAddress),Ee=_e.remotePort});p("Request#%d %s reuse socket connected, readyState: %s",Y,P,he),n=!0,T=!0,Z||(Z=_e.remoteAddress),Ee=_e.remotePort,I(),ae()}),et.on("error",function(_e){_e.name!=="Error"&&_e.name!=="TypeError"||(_e.name=n?"ResponseError":"RequestError"),_e.message+=' (req "error")',p("Request#%d %s `req error` event emit, %s: %s",Y,P,_e.name,_e.message),R(e||_e)}),Ae&&Ae.once("error",function(_e){_e.message+=' (writeStream "error")',e=_e,p("Request#%d %s `writeStream error` event emit, %s: %s",Y,P,_e.name,_e.message),M()}),g.stream?(g.stream.pipe(et),g.stream.once("error",function(_e){_e.message+=' (stream "error")',e=_e,p("Request#%d %s `readStream error` event emit, %s: %s",Y,P,_e.name,_e.message),M()})):et.end(le),et.requestId=Y,et}}).call(this,r("_process"),r("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(Oe){function r(y){if(A[y])return A[y].exports;var m=A[y]={i:y,l:!1,exports:{}};return Oe[y].call(m.exports,m,m.exports,r),m.l=!0,m.exports}var A={};r.m=Oe,r.c=A,r.d=function(y,m,b){r.o(y,m)||Object.defineProperty(y,m,{configurable:!1,enumerable:!0,get:b})},r.n=function(y){var m=y&&y.__esModule?function(){return y.default}:function(){return y};return r.d(m,"a",m),m},r.o=function(y,m){return Object.prototype.hasOwnProperty.call(y,m)},r.p="",r(r.s=12)}([function(Oe,r,A){!function(y,m){Oe.exports=r=m()}(0,function(){var y=y||function(m,b){var i=Object.create||function(){function w(){}return function(p){var O;return w.prototype=p,O=new w,w.prototype=null,O}}(),u={},f=u.lib={},s=f.Base=function(){return{extend:function(p){var O=i(this);return p&&O.mixIn(p),O.hasOwnProperty("init")&&this.init!==O.init||(O.init=function(){O.$super.init.apply(this,arguments)}),O.init.prototype=O,O.$super=this,O},create:function(){var p=this.extend();return p.init.apply(p,arguments),p},init:function(){},mixIn:function(p){for(var O in p)p.hasOwnProperty(O)&&(this[O]=p[O]);p.hasOwnProperty("toString")&&(this.toString=p.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),t=f.WordArray=s.extend({init:function(p,O){p=this.words=p||[],this.sigBytes=O!=null?O:4*p.length},toString:function(p){return(p||o).stringify(this)},concat:function(p){var O=this.words,S=p.words,h=this.sigBytes,E=p.sigBytes;if(this.clamp(),h%4)for(var L=0;L<E;L++){var P=S[L>>>2]>>>24-L%4*8&255;O[h+L>>>2]|=P<<24-(h+L)%4*8}else for(var L=0;L<E;L+=4)O[h+L>>>2]=S[L>>>2];return this.sigBytes+=E,this},clamp:function(){var p=this.words,O=this.sigBytes;p[O>>>2]&=4294967295<<32-O%4*8,p.length=m.ceil(O/4)},clone:function(){var p=s.clone.call(this);return p.words=this.words.slice(0),p},random:function(p){for(var O,S=[],h=0;h<p;h+=4){var E=function(L){var L=L,P=987654321,g=4294967295;return function(){P=36969*(65535&P)+(P>>16)&g,L=18e3*(65535&L)+(L>>16)&g;var F=(P<<16)+L&g;return F/=4294967296,(F+=.5)*(m.random()>.5?1:-1)}}(4294967296*(O||m.random()));O=987654071*E(),S.push(4294967296*E()|0)}return new t.init(S,p)}}),a=u.enc={},o=a.Hex={stringify:function(p){for(var O=p.words,S=p.sigBytes,h=[],E=0;E<S;E++){var L=O[E>>>2]>>>24-E%4*8&255;h.push((L>>>4).toString(16)),h.push((15&L).toString(16))}return h.join("")},parse:function(p){for(var O=p.length,S=[],h=0;h<O;h+=2)S[h>>>3]|=parseInt(p.substr(h,2),16)<<24-h%8*4;return new t.init(S,O/2)}},c=a.Latin1={stringify:function(p){for(var O=p.words,S=p.sigBytes,h=[],E=0;E<S;E++){var L=O[E>>>2]>>>24-E%4*8&255;h.push(String.fromCharCode(L))}return h.join("")},parse:function(p){for(var O=p.length,S=[],h=0;h<O;h++)S[h>>>2]|=(255&p.charCodeAt(h))<<24-h%4*8;return new t.init(S,O)}},d=a.Utf8={stringify:function(p){try{return decodeURIComponent(escape(c.stringify(p)))}catch(O){throw new Error("Malformed UTF-8 data")}},parse:function(p){return c.parse(unescape(encodeURIComponent(p)))}},l=f.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new t.init,this._nDataBytes=0},_append:function(p){typeof p=="string"&&(p=d.parse(p)),this._data.concat(p),this._nDataBytes+=p.sigBytes},_process:function(p){var O=this._data,S=O.words,h=O.sigBytes,E=this.blockSize,L=4*E,P=h/L;P=p?m.ceil(P):m.max((0|P)-this._minBufferSize,0);var g=P*E,F=m.min(4*g,h);if(g){for(var I=0;I<g;I+=E)this._doProcessBlock(S,I);var X=S.splice(0,g);O.sigBytes-=F}return new t.init(X,F)},clone:function(){var p=s.clone.call(this);return p._data=this._data.clone(),p},_minBufferSize:0}),x=(f.Hasher=l.extend({cfg:s.extend(),init:function(p){this.cfg=this.cfg.extend(p),this.reset()},reset:function(){l.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(O,S){return new p.init(S).finalize(O)}},_createHmacHelper:function(p){return function(O,S){return new x.HMAC.init(p,S).finalize(O)}}}),u.algo={});return u}(Math);return y})},function(Oe,r,A){"use strict";function y(i,u){if(!(i instanceof u))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(r,"__esModule",{value:!0});var m=function(){function i(u,f){for(var s=0;s<f.length;s++){var t=f[s];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(u,t.key,t)}}return function(u,f,s){return f&&i(u.prototype,f),s&&i(u,s),u}}(),b=function(){function i(){y(this,i)}return m(i,null,[{key:"detectIEVersion",value:function(){for(var f=4,s=document.createElement("div"),t=s.getElementsByTagName("i");s.innerHTML="<!--[if gt IE "+f+"]><i></i><![endif]-->",t[0];)f++;return f>4&&f}},{key:"extend",value:function(f,s){for(var t in s)Object.prototype.hasOwnProperty.call(s,t)&&s[t]&&(f[t]=s[t])}},{key:"isArray",value:function(f){return Object.prototype.toString.call(arg)==="[object Array]"}},{key:"getFileType",value:function(f){return f=f.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(f)?"video":/.mp3|.wav|.ape|.cda|.au|.midi|.mac|.aac|.ac3|.acm|.amr|.caf|.flac|.m4a|.ra|.wma/.test(f)?"audio":/.bmp|.jpg|.jpeg|.png/.test(f)?"img":"other"}},{key:"isImage",value:function(f){return f=f.toLowerCase(),!!/.jpg|.jpeg|.png/.test(f)}},{key:"ISODateString",value:function(f){function s(t){return t<10?"0"+t:t}return f.getUTCFullYear()+"-"+s(f.getUTCMonth()+1)+"-"+s(f.getUTCDate())+"T"+s(f.getUTCHours())+":"+s(f.getUTCMinutes())+":"+s(f.getUTCSeconds())+"Z"}},{key:"isIntNum",value:function(f){return!!/^\d+$/.test(f)}}]),i}();r.default=b},function(Oe,r,A){!function(y,m){Oe.exports=r=m(A(0))}(0,function(y){return function(m){function b(x,w,p,O,S,h,E){var L=x+(w&p|~w&O)+S+E;return(L<<h|L>>>32-h)+w}function i(x,w,p,O,S,h,E){var L=x+(w&O|p&~O)+S+E;return(L<<h|L>>>32-h)+w}function u(x,w,p,O,S,h,E){var L=x+(w^p^O)+S+E;return(L<<h|L>>>32-h)+w}function f(x,w,p,O,S,h,E){var L=x+(p^(w|~O))+S+E;return(L<<h|L>>>32-h)+w}var s=y,t=s.lib,a=t.WordArray,o=t.Hasher,c=s.algo,d=[];!function(){for(var x=0;x<64;x++)d[x]=4294967296*m.abs(m.sin(x+1))|0}();var l=c.MD5=o.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(w,p){for(var O=0;O<16;O++){var S=p+O,h=w[S];w[S]=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8)}var E=this._hash.words,L=w[p+0],P=w[p+1],g=w[p+2],F=w[p+3],I=w[p+4],X=w[p+5],R=w[p+6],V=w[p+7],H=w[p+8],$=w[p+9],ae=w[p+10],M=w[p+11],Q=w[p+12],Y=w[p+13],W=w[p+14],D=w[p+15],C=E[0],U=E[1],G=E[2],J=E[3];C=b(C,U,G,J,L,7,d[0]),J=b(J,C,U,G,P,12,d[1]),G=b(G,J,C,U,g,17,d[2]),U=b(U,G,J,C,F,22,d[3]),C=b(C,U,G,J,I,7,d[4]),J=b(J,C,U,G,X,12,d[5]),G=b(G,J,C,U,R,17,d[6]),U=b(U,G,J,C,V,22,d[7]),C=b(C,U,G,J,H,7,d[8]),J=b(J,C,U,G,$,12,d[9]),G=b(G,J,C,U,ae,17,d[10]),U=b(U,G,J,C,M,22,d[11]),C=b(C,U,G,J,Q,7,d[12]),J=b(J,C,U,G,Y,12,d[13]),G=b(G,J,C,U,W,17,d[14]),U=b(U,G,J,C,D,22,d[15]),C=i(C,U,G,J,P,5,d[16]),J=i(J,C,U,G,R,9,d[17]),G=i(G,J,C,U,M,14,d[18]),U=i(U,G,J,C,L,20,d[19]),C=i(C,U,G,J,X,5,d[20]),J=i(J,C,U,G,ae,9,d[21]),G=i(G,J,C,U,D,14,d[22]),U=i(U,G,J,C,I,20,d[23]),C=i(C,U,G,J,$,5,d[24]),J=i(J,C,U,G,W,9,d[25]),G=i(G,J,C,U,F,14,d[26]),U=i(U,G,J,C,H,20,d[27]),C=i(C,U,G,J,Y,5,d[28]),J=i(J,C,U,G,g,9,d[29]),G=i(G,J,C,U,V,14,d[30]),U=i(U,G,J,C,Q,20,d[31]),C=u(C,U,G,J,X,4,d[32]),J=u(J,C,U,G,H,11,d[33]),G=u(G,J,C,U,M,16,d[34]),U=u(U,G,J,C,W,23,d[35]),C=u(C,U,G,J,P,4,d[36]),J=u(J,C,U,G,I,11,d[37]),G=u(G,J,C,U,V,16,d[38]),U=u(U,G,J,C,ae,23,d[39]),C=u(C,U,G,J,Y,4,d[40]),J=u(J,C,U,G,L,11,d[41]),G=u(G,J,C,U,F,16,d[42]),U=u(U,G,J,C,R,23,d[43]),C=u(C,U,G,J,$,4,d[44]),J=u(J,C,U,G,Q,11,d[45]),G=u(G,J,C,U,D,16,d[46]),U=u(U,G,J,C,g,23,d[47]),C=f(C,U,G,J,L,6,d[48]),J=f(J,C,U,G,V,10,d[49]),G=f(G,J,C,U,W,15,d[50]),U=f(U,G,J,C,X,21,d[51]),C=f(C,U,G,J,Q,6,d[52]),J=f(J,C,U,G,F,10,d[53]),G=f(G,J,C,U,ae,15,d[54]),U=f(U,G,J,C,P,21,d[55]),C=f(C,U,G,J,H,6,d[56]),J=f(J,C,U,G,D,10,d[57]),G=f(G,J,C,U,R,15,d[58]),U=f(U,G,J,C,Y,21,d[59]),C=f(C,U,G,J,I,6,d[60]),J=f(J,C,U,G,M,10,d[61]),G=f(G,J,C,U,g,15,d[62]),U=f(U,G,J,C,$,21,d[63]),E[0]=E[0]+C|0,E[1]=E[1]+U|0,E[2]=E[2]+G|0,E[3]=E[3]+J|0},_doFinalize:function(){var w=this._data,p=w.words,O=8*this._nDataBytes,S=8*w.sigBytes;p[S>>>5]|=128<<24-S%32;var h=m.floor(O/4294967296),E=O;p[15+(S+64>>>9<<4)]=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),p[14+(S+64>>>9<<4)]=16711935&(E<<8|E>>>24)|4278255360&(E<<24|E>>>8),w.sigBytes=4*(p.length+1),this._process();for(var L=this._hash,P=L.words,g=0;g<4;g++){var F=P[g];P[g]=16711935&(F<<8|F>>>24)|4278255360&(F<<24|F>>>8)}return L},clone:function(){var w=o.clone.call(this);return w._hash=this._hash.clone(),w}});s.MD5=o._createHelper(l),s.HmacMD5=o._createHmacHelper(l)}(Math),y.MD5})},function(Oe,r,A){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.UPLOADSTATE={INIT:"init",UPLOADING:"uploading",COMPLETE:"complete",INTERRUPT:"interrupt"},r.UPLOADSTEP={INIT:"init",PART:"part",COMPLETE:"complete"},r.UPLOADDEFAULT={PARALLEL:5,PARTSIZE:1048576}},function(Oe,r,A){"use strict";function y(l){return l&&l.__esModule?l:{default:l}}function m(l,x){if(!(l instanceof x))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(r,"__esModule",{value:!0});var b=function(){function l(x,w){for(var p=0;p<w.length;p++){var O=w[p];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(x,O.key,O)}}return function(x,w,p){return w&&l(x.prototype,w),p&&l(x,p),x}}(),i=A(5),u=y(i),f=A(25),s=y(f),t=A(6),a=y(t),o=A(7),c=y(o),d=function(){function l(x){m(this,l);var w=c.default.os.name,p=c.default.os.version||"",O=c.default.browser.name,S=c.default.browser.version||"",h=window.location.href,E="";h&&(E=c.default.getHost(h));var L="pc";c.default.os.ipad?L="pad":(c.default.os.iphone||c.default.os.android)&&(L="phone"),this._ri=u.default.create(),this.initParam={APIVersion:"0.6.0",lv:"1",av:a.default.version,pd:"upload",sm:"upload",md:"uploader",uuid:l.getUuid(),os:w,ov:p,et:O,ev:S,uat:navigator.userAgent,app_n:E,tt:L,dm:"h5",ut:""}}return b(l,[{key:"log",value:function(w,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=w=="20006"?"error":"info",this.initParam.ri=this._ri,this.initParam.e=w;var O=[];if(p)for(var S in p)O.push(S+"="+p[S]);var h=O.join("&");this.initParam.args=encodeURIComponent(h==""?"0":h);var E=[];for(var S in this.initParam)E.push(S+"="+this.initParam[S]);var L=E.join("&");AliyunUpload&&AliyunUpload.__logTestCallback__?AliyunUpload.__logTestCallback__(L):new Image(0,0).src="https://videocloud.cn-hangzhou.log.aliyuncs.com/logstores/upload/track?"+L}}],[{key:"getUuid",value:function(){var w=s.default.get("p_h5_upload_u");return w||(w=u.default.create(),s.default.set("p_h5_upload_u",w,730)),w}},{key:"getClientId",value:function(){return s.default.get("p_h5_upload_clientId")}},{key:"setClientId",value:function(w){return w||(w=u.default.create()),s.default.set("p_h5_upload_clientId",w,730),w}}]),l}();r.default=d},function(Oe,r,A){"use strict";function y(i,u){if(!(i instanceof u))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(r,"__esModule",{value:!0});var m=function(){function i(u,f){for(var s=0;s<f.length;s++){var t=f[s];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(u,t.key,t)}}return function(u,f,s){return f&&i(u.prototype,f),s&&i(u,s),u}}(),b=function(){function i(){y(this,i)}return m(i,null,[{key:"create",value:function(f,s){var t,a="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),o=[];if(s=s||a.length,f)for(t=0;t<f;t++)o[t]=a[0|Math.random()*s];else{var c;for(o[8]=o[13]=o[18]=o[23]="-",o[14]="4",t=0;t<36;t++)o[t]||(c=0|16*Math.random(),o[t]=a[t==19?3&c|8:c])}return o.join("")}}]),i}();r.default=b},function(Oe,r,A){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var y={version:"1.5.0"};r.default=y},function(Oe,r,A){"use strict";function y(t,a){if(!(t instanceof a))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(r,"__esModule",{value:!0});var m=function(){function t(a,o){for(var c=0;c<o.length;c++){var d=o[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}return function(a,o,c){return o&&t(a.prototype,o),c&&t(a,c),a}}(),b=function(a){var o=navigator.userAgent,c="other";if(a.ios)return"iOS";if(a.android)return"android";if(o.indexOf("Baiduspider")>-1)return"Baiduspider";if(o.indexOf("PlayStation")>-1)return"PS4";var d=navigator.platform=="Win32"||navigator.platform=="Windows"||o.indexOf("Windows")>-1,l=navigator.platform=="Mac68K"||navigator.platform=="MacPPC"||navigator.platform=="Macintosh"||navigator.platform=="MacIntel";return l&&(c="macOS"),navigator.platform=="X11"&&!d&&!l&&(c="Unix"),String(navigator.platform).indexOf("Linux")>-1&&(c="Linux"),d?"windows":c},i=function(){var a=navigator.userAgent,o="";return(a.indexOf("Windows NT 5.0")>-1||a.indexOf("Windows 2000")>-1)&&(o="2000"),(a.indexOf("Windows NT 5.1")>-1||a.indexOf("Windows XP")>-1)&&(o="XP"),(a.indexOf("Windows NT 5.2")>-1||a.indexOf("Windows 2003")>-1)&&(o="2003"),(a.indexOf("Windows NT 6.0")>-1||a.indexOf("Windows Vista")>-1)&&(o="Vista"),(a.indexOf("Windows NT 6.1")>-1||a.indexOf("Windows 7")>-1)&&(o="7"),(a.indexOf("Windows NT 6.2")>-1||a.indexOf("Windows 8")>-1)&&(o="8"),(a.indexOf("Windows NT 6.3")>-1||a.indexOf("Windows 8.1")>-1)&&(o="8.1"),(a.indexOf("Windows NT 10")>-1||a.indexOf("Windows 10")>-1)&&(o="10"),o},u=function(a){var o=navigator.userAgent.toLowerCase();return a.chrome?"Chrome":a.firefox?"Firefox":a.safari?"Safari":a.webview?"webview":a.ie?/edge/.test(o)?"Edge":"IE":/baiduspider/.test(o)?"Baiduspider":/ucweb/.test(o)||/UCBrowser/.test(o)?"UC":/opera/.test(o)?"Opera":/ucweb/.test(o)?"UC":/360se/.test(o)?"360\u6D4F\u89C8\u5668":/bidubrowser/.test(o)?"\u767E\u5EA6\u6D4F\u89C8\u5668":/metasr/.test(o)?"\u641C\u72D7\u6D4F\u89C8\u5668":/lbbrowser/.test(o)?"\u730E\u8C79\u6D4F\u89C8\u5668":/micromessenger/.test(o)?"\u5FAE\u4FE1\u5185\u7F6E\u6D4F\u89C8\u5668":/qqbrowser/.test(o)?"QQ\u6D4F\u89C8\u5668":/playstation/.test(o)?"PS4\u6D4F\u89C8\u5668":void 0},f=function(){var t={},a={},o=navigator.userAgent,c=navigator.platform,d=o.match(/Web[kK]it[\/]{0,1}([\d.]+)/),l=o.match(/(Android);?[\s\/]+([\d.]+)?/),x=!!o.match(/\(Macintosh\; Intel /),w=o.match(/(iPad).*OS\s([\d_]+)/),p=o.match(/(iPod)(.*OS\s([\d_]+))?/),O=!w&&o.match(/(iPhone\sOS)\s([\d_]+)/),S=o.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),h=/Win\d{2}|Windows/.test(c),E=o.match(/Windows Phone ([\d.]+)/),L=S&&o.match(/TouchPad/),P=o.match(/Kindle\/([\d.]+)/),g=o.match(/Silk\/([\d._]+)/),F=o.match(/(BlackBerry).*Version\/([\d.]+)/),I=o.match(/(BB10).*Version\/([\d.]+)/),X=o.match(/(RIM\sTablet\sOS)\s([\d.]+)/),R=o.match(/PlayBook/),V=o.match(/Chrome\/([\d.]+)/)||o.match(/CriOS\/([\d.]+)/),H=o.match(/Firefox\/([\d.]+)/),$=o.match(/\((?:Mobile|Tablet); rv:([\d.]+)\).*Firefox\/[\d.]+/),ae=o.match(/MSIE\s([\d.]+)/)||o.match(/Trident\/[\d](?=[^\?]+).*rv:([0-9.].)/),M=!V&&o.match(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/),Q=M||o.match(/Version\/([\d.]+)([^S](Safari)|[^M]*(Mobile)[^S]*(Safari))/);if((a.webkit=!!d)&&(a.version=d[1]),l&&(t.android=!0,t.version=l[2]),O&&!p&&(t.ios=t.iphone=!0,t.version=O[2].replace(/_/g,".")),w&&(t.ios=t.ipad=!0,t.version=w[2].replace(/_/g,".")),p&&(t.ios=t.ipod=!0,t.version=p[3]?p[3].replace(/_/g,"."):null),E&&(t.wp=!0,t.version=E[1]),S&&(t.webos=!0,t.version=S[2]),L&&(t.touchpad=!0),F&&(t.blackberry=!0,t.version=F[2]),I&&(t.bb10=!0,t.version=I[2]),X&&(t.rimtabletos=!0,t.version=X[2]),R&&(a.playbook=!0),P&&(t.kindle=!0,t.version=P[1]),g&&(a.silk=!0,a.version=g[1]),!g&&t.android&&o.match(/Kindle Fire/)&&(a.silk=!0),V&&(a.chrome=!0,a.version=V[1]),H&&(a.firefox=!0,a.version=H[1]),$&&(t.firefoxos=!0,t.version=$[1]),ae&&(a.ie=!0,a.version=ae[1]),Q&&(x||t.ios||h||l)&&(a.safari=!0,t.ios||(a.version=Q[1])),M&&(a.webview=!0),x){var Y=o.match(/[\d]*_[\d]*_[\d]*/);Y&&Y.length>0&&Y[0]&&(t.version=Y[0].replace(/_/g,"."))}return t.tablet=!!(w||R||l&&!o.match(/Mobile/)||H&&o.match(/Tablet/)||ae&&!o.match(/Phone/)&&o.match(/Touch/)),t.phone=!(t.tablet||t.ipod||!(l||O||S||F||I||V&&o.match(/Android/)||V&&o.match(/CriOS\/([\d.]+)/)||H&&o.match(/Mobile/)||ae&&o.match(/Touch/))),t.pc=!t.tablet&&!t.phone,x?t.name="macOS":h?(t.name="windows",t.version=i()):t.name=b(t),a.name=u(a),{os:t,browser:a}}(),s=function(){function t(){y(this,t)}return m(t,null,[{key:"getHost",value:function(o){var c="";if(o===void 0||o==null||o=="")return"";var d=o.indexOf("//"),l=o;d>-1&&(l=o.substring(d+2));var c=l,x=l.split("/");return x&&x.length>0&&(c=x[0]),x=c.split(":"),x&&x.length>0&&(c=x[0]),c}},{key:"os",get:function(){return f.os}},{key:"browser",get:function(){var o=f.browser;return o.name||(o.name=u()),o}}]),t}();r.default=s},function(Oe,r,A){"use strict";function y(i,u){if(!(i instanceof u))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(r,"__esModule",{value:!0});var m=function(){function i(u,f){for(var s=0;s<f.length;s++){var t=f[s];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(u,t.key,t)}}return function(u,f,s){return f&&i(u.prototype,f),s&&i(u,s),u}}(),b=function(){function i(){y(this,i)}return m(i,null,[{key:"get",value:function(f,s,t,a,o){var c;t=t||function(){},typeof XMLHttpRequest=="undefined"&&(window.XMLHttpRequest=function(){try{return new window.ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(d){}try{return new window.ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(d){}try{return new window.ActiveXObject("Msxml2.XMLHTTP")}catch(d){}throw new Error("This browser does not support XMLHttpRequest.")}),c=new XMLHttpRequest,c.onreadystatechange=function(){c.readyState===4&&(c.status===200?s(c.responseText):t(c.responseText))};try{a===void 0&&(a=!0),c.open("GET",f,a),o&&(c.withCredentials=!0)}catch(d){return void t(d)}try{c.send()}catch(d){t(d)}}}]),i}();r.default=b},function(Oe,r,A){"use strict";function y(f,s){if(!(f instanceof s))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(r,"__esModule",{value:!0});var m=function(){function f(s,t){for(var a=0;a<t.length;a++){var o=t[a];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(s,o.key,o)}}return function(s,t,a){return t&&f(s.prototype,t),a&&f(s,a),s}}(),b=A(27),i=A(30),u=(A(10),function(){function f(){y(this,f)}return m(f,null,[{key:"randomUUID",value:function(){for(var t=[],a="0123456789abcdef",o=0;o<36;o++)t[o]=a.substr(Math.floor(16*Math.random()),1);return t[14]="4",t[19]=a.substr(3&t[19]|8,1),t[8]=t[13]=t[18]=t[23]="-",t.join("")}},{key:"aliyunEncodeURI",value:function(t){var a=encodeURIComponent(t);return a=a.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(t,a,o){if(!t)throw new Error("PrismPlayer Error: vid should not be null!");var c=[];for(var d in t)c.push(d);for(var l=c.sort(),x="",w=l.length,d=0;d<w;d++){var p=f.aliyunEncodeURI(l[d]),O=f.aliyunEncodeURI(t[l[d]]);x==""?x=p+a+O:x+=o+p+a+O}return x}},{key:"makeChangeSiga",value:function(t,a){if(!t)throw new Error("PrismPlayer Error: vid should not be null!");return i.stringify(b("GET&"+f.aliyunEncodeURI("/")+"&"+f.aliyunEncodeURI(f.makeUTF8sort(t,"=","&")),a+"&"))}}]),f}());r.default=u},function(Oe,r,A){!function(y,m){Oe.exports=r=m(A(0))}(0,function(y){return y.enc.Utf8})},function(Oe,r,A){!function(y,m){Oe.exports=r=m(A(0))}(0,function(y){return y.enc.Hex})},function(Oe,r,A){Oe.exports=A(13)},function(Oe,r,A){"use strict";var y,m,b=(typeof Symbol=="function"&&Symbol.iterator,A(14)),i=function(f){return f&&f.__esModule?f:{default:f}}(b),u={Vod:i.default};y=[],(m=function(){return u}.apply(r,y))!==void 0&&(Oe.exports=m),window.AliyunUpload=u,st.exports=AliyunUpload},function(Oe,r,A){"use strict";function y(I){return I&&I.__esModule?I:{default:I}}function m(I,X){if(!(I instanceof X))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(r,"__esModule",{value:!0});var b=function(){function I(X,R){for(var V=0;V<R.length;V++){var H=R[V];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(X,H.key,H)}}return function(X,R,V){return R&&I(X.prototype,R),V&&I(X,V),X}}(),i=A(15),u=A(3),f=A(16),s=y(f),t=A(18),a=y(t),o=A(24),c=y(o),d=A(4),l=y(d),x=A(1),w=y(x),p=A(5),O=y(p),S=A(26),h=y(S),E=A(31),L=y(E),P=A(32),g=y(P),F=(A(2),function(){function I(X){m(this,I),this.options=X,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=i.VODSTATE.INIT,this._uploadList=[],this._curIndex=-1,this._ossUpload=null,this._log=new l.default,this._retryCount=0,this._retryTotal=this.options.retryCount||3,this._retryDuration=this.options.retryDuration||2,this._state=i.VODSTATE.INIT,this._uploadWay="vod",this._onbeforeunload=!1,this._invalidUserId=!1,this._initEvent()}return b(I,[{key:"init",value:function(R,V,H,$){return this._retryCount=0,!(H&&!$||!H&&$)&&!(R&&!V||!R&&V)&&(this._ossCreditor.accessKeyId=R,this._ossCreditor.accessKeySecret=V,this._ossCreditor.securityToken=H,this._ossCreditor.expireTime=$,!0)}},{key:"addFile",value:function(R,V,H,$,ae,M){if(!R)return!1;if(R.size==0)try{this.options.onUploadFailed({file:R},"EmptyFile","\u6587\u4EF6\u5927\u5C0F\u4E3A0\uFF0C\u4E0D\u80FD\u4E0A\u4F20")}catch(D){console.log(D)}for(var Q=(this.options,0);Q<this._uploadList.length;Q++)if(this._uploadList[Q].file==R)return!1;var Y=new Object;if(Y.file=R,Y._endpoint=V,Y._bucket=H,Y._object=$,Y.state=i.UPLOADSTATE.INIT,Y.isImage=w.default.isImage(R.name),!Y.isImage&&this.options.enableUploadProgress){var W=this;g.default.getMd5(R,function(D){Y.fileHash=D;var C=W._getCheckoutpoint(Y);W.options.localCheckpoint||C||W._getCheckoutpointFromCloud(Y,function(U){if(U.UploadPoint){var G=JSON.parse(U.UploadPoint);G.loaded!=1&&(Y.checkpoint=G.checkpoint,Y.loaded=G.loaded,Y.videoId=U.VideoId,W._saveCheckoutpoint(Y,G.checkpoint))}},function(U){try{if((U=JSON.parse(U))&&U.Code=="InvalidParameter"&&U.Message.indexOf("UserId")>0){W._invalidUserId=!0;var G=U.Message+"\uFF0C\u6B63\u786E\u8D26\u53F7ID(userId)\u8BF7\u53C2\u8003\uFF1Ahttps://help.aliyun.com/knowledge_detail/37196.html";console.log(G)}}catch(J){console.log(J)}})})}ae&&(Y.videoInfo=ae?JSON.parse(ae).Vod:{},Y.userData=a.default.encode(ae)),Y.ri=O.default.create(),this._uploadList.push(Y),this._reportLog("20001",Y,{ql:this._uploadList.length});try{this.options.addFileSuccess&&this.options.addFileSuccess(Y)}catch(D){console.log(D)}return!0}},{key:"deleteFile",value:function(R){return!!this.cancelFile(R)&&(this._uploadList.splice(R,1),!0)}},{key:"cleanList",value:function(){this.stopUpload(),this._uploadList.length=0,this._curIndex=-1}},{key:"cancelFile",value:function(R){if(this.options,R<0||R>=this._uploadList.length)return!1;var V=this._uploadList[R];if(R==this._curIndex&&V.state==i.UPLOADSTATE.UPLOADING){V.state=i.UPLOADSTATE.CANCELED;var H=this._getCheckoutpoint(V);H&&H.checkpoint&&(H=H.checkpoint),H&&this._ossUpload.abort(V),this._removeCheckoutpoint(V),this.nextUpload()}else V.state!=i.UPLOADSTATE.SUCCESS&&(V.state=i.UPLOADSTATE.CANCELED);return this._reportLog("20008",V),!0}},{key:"resumeFile",value:function(R){if(this.options,R<0||R>=this._uploadList.length)return!1;var V=this._uploadList[R];return V.state==i.UPLOADSTATE.CANCELED&&(V.state=i.UPLOADSTATE.INIT,!0)}},{key:"listFiles",value:function(){return this._uploadList}},{key:"getCheckpoint",value:function(R){return this._getCheckoutpoint({file:R})}},{key:"startUpload",value:function(R){if(this._retryCount=0,this.options,this._state==i.VODSTATE.START||this._state==i.VODSTATE.EXPIRE)return void console.log("already started or expired");if(this._initState(),this._curIndex=this._findUploadIndex(),this._curIndex==-1)return void(this._state=i.VODSTATE.END);var V=this._uploadList[this._curIndex];this._ossUpload=null,this._upload(V),this._state=i.VODSTATE.START}},{key:"nextUpload",value:function(){var R=this.options;if(this._state==i.VODSTATE.START)if(this._curIndex=this._findUploadIndex(),this._curIndex!=-1){var V=this._uploadList[this._curIndex];this._ossUpload=null,this._upload(V)}else{this._state=i.VODSTATE.END;try{R.onUploadEnd&&R.onUploadEnd(V)}catch(H){console.log(H)}}}},{key:"clear",value:function(R){for(var V=this.options,H=0,$=0;$<this._uploadList.length;$++)V.uploadList[$].state==i.UPLOADSTATE.SUCCESS&&H++,this._uploadList[$].state==R&&(V.uploadList.splice($,1),$--);V.onClear&&V.onClear(V.uploadList.length,H)}},{key:"stopUpload",value:function(){if((this._state==i.VODSTATE.START||this._state==i.VODSTATE.FAILURE||this._curIndex==-1)&&this._curIndex!=-1){var R=this._uploadList[this._curIndex];this._state=i.VODSTATE.STOP,R.state=i.UPLOADSTATE.STOPED,this._changeState(R,i.UPLOADSTATE.STOPED),this._ossUpload.cancel()}}},{key:"resumeUploadWithAuth",value:function(R){var V=this;if(!R)return!1;var H=JSON.parse(a.default.decode(R));return!!(H.AccessKeyId&&H.AccessKeySecret&&H.SecurityToken&&H.Expiration)&&V.resumeUploadWithToken(H.AccessKeyId,H.AccessKeySecret,H.SecurityToken,H.Expiration)}},{key:"resumeUploadWithToken",value:function(R,V,H,$){if(this.options,!(R&&V&&H&&$))return!1;if(this._state!=i.VODSTATE.EXPIRE)return!1;if(this._curIndex==-1)return!1;var ae="";return this._uploadList.length>this._curIndex&&(ae=this._uploadList[this._curIndex]),ae&&(this.init(R,V,H,$),this._state=i.VODSTATE.START,this._ossUpload=null,this._uploadCore(ae,ae.retry),ae.retry=!1),!0}},{key:"resumeUploadWithSTSToken",value:function(R,V,H){if(this._curIndex==-1)return!1;if(this._state!=i.VODSTATE.EXPIRE)return!1;if(this._uploadList.length>this._curIndex){var $=this._uploadList[this._curIndex];$.object?this._refreshSTSTokenUpload($,R,V,H):this.setSTSToken($,R,V,H)}}},{key:"setSTSTokenDirectlyUpload",value:function(R,V,H,$,ae){if(!(V&&H&&$&&ae))return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken and expiration should not be empty."),!1;this._ut="oss";var M=R;this.init(V,H,$,ae),M.endpoint=M._endpoint,M.bucket=M._bucket,M.object=M._object,this._ossUpload=null,this._uploadCore(M,R.retry),R.retry=!1}},{key:"setSTSToken",value:function(R,V,H,$){if(!V||!H||!$)return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken should not be empty."),!1;this._ut="vod",this._uploadWay="sts";var ae=R.videoInfo,M={accessKeyId:V,securityToken:$,accessKeySecret:H,fileName:R.file.name,title:ae.Title,requestId:R.ri,region:this.options.region};ae.ImageType&&(M.imageType=ae.ImageType),ae.ImageExt&&(M.imageExt=ae.ImageExt),ae.FileSize&&(M.fileSize=ae.FileSize),ae.Description&&(M.description=ae.Description),ae.CateId&&(M.cateId=ae.CateId),ae.Tags&&(M.tags=ae.Tags),ae.TemplateGroupId&&(M.templateGroupId=ae.TemplateGroupId),ae.StorageLocation&&(M.storageLocation=ae.StorageLocation),ae.CoverURL&&(M.coverUrl=ae.CoverURL),ae.TransCodeMode&&(M.transCodeMode=ae.TransCodeMode),ae.UserData&&(M.userData=ae.UserData);var Q=this,Y="getUploadAuth";R.videoId?(M.videoId=R.videoId,Y="refreshUploadAuth"):R.isImage&&(Y="getImageUploadAuth"),h.default[Y](M,function(W){R.videoId=W.VideoId?W.VideoId:R.videoId,Q.setUploadAuthAndAddress(R,W.UploadAuth,W.UploadAddress),Q._state=i.VODSTATE.START},function(W){Q._error(R,{name:W.Code,code:W.Code,message:W.Message,requestId:W.RequestId})})}},{key:"setUploadAuthAndAddress",value:function(R,V,H,$){if(!R||!V||!H)return!1;var ae=JSON.parse(a.default.decode(V));if(!(ae.AccessKeyId&&ae.AccessKeySecret&&ae.SecurityToken&&ae.Expiration))return console.error("uploadauth is invalid"),!1;var M={},Q=R;if(H){if(M=JSON.parse(a.default.decode(H)),!M.Endpoint||!M.Bucket||!M.FileName)return console.error("uploadAddress is invalid"),!1}else M.Endpoint=Q.endpoint,M.Bucket=Q.bucket,M.FileName=Q.object;this._ut="vod",this._uploadWay="vod",this.options.region=ae.Region||this.options.region,this.init(ae.AccessKeyId,ae.AccessKeySecret,ae.SecurityToken,ae.Expiration),Q.endpoint=Q._endpoint?Q._endpoint:M.Endpoint,Q.bucket=Q._bucket?Q._bucket:M.Bucket,Q.object=Q._object?Q._object:M.FileName,Q.region=this.options.region,$&&(Q.videoId=$),this._ossUpload=null,this._uploadCore(Q,R.retry),R.retry=!1}},{key:"_refreshSTSTokenUpload",value:function(R,V,H,$){if(!V||!H||!$)return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken should not be empty."),!1;var ae={accessKeyId:V,securityToken:$,accessKeySecret:H,videoId:R.object,requestId:R.ri,region:this.options.region},M=this,Q="refreshUploadAuth";R.isImage&&(Q="getImageUploadAuth"),h.default[Q](ae,function(Y){M.setUploadAuthAndAddress(R,Y.UploadAuth,UploadAddress),M._state=i.VODSTATE.START},function(Y){M._error(R,{name:Y.Code,code:Y.Code,message:Y.Message,requestId:Y.RequestId})})}},{key:"_upload",value:function(R){var V=arguments.length>1&&arguments[1]!==void 0&&arguments[1],H=this.options;if(R.retry=V,H.onUploadstarted&&!V)try{var $=this._getCheckoutpoint(R);$&&$.state!=i.UPLOADSTATE.UPLOADING&&(R.checkpoint=$,R.videoId=$.videoId),H.onUploadstarted(R)}catch(ae){console.log(ae)}}},{key:"_uploadCore",value:function(R){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(R.state=i.UPLOADSTATE.UPLOADING,!this._ossUpload){R.endpoint=R.endpoint||"http://oss-cn-hangzhou.aliyuncs.com";var V=this;this._ossUpload=new s.default({bucket:R.bucket,endpoint:R.endpoint,AccessKeyId:this._ossCreditor.accessKeyId,AccessKeySecret:this._ossCreditor.accessKeySecret,SecurityToken:this._ossCreditor.securityToken,timeout:this.options.timeout,cname:this.options.cname},{onerror:function(D,C){V._error.call(V,D,C)},oncomplete:function(D,C){V._complete.call(V,D,C)},onprogress:function(D,C,U){V._progress.call(V,D,C,U)}})}var H=w.default.getFileType(R.file.name),$=this._getCheckoutpoint(R),ae="",M="";$&&$.checkpoint&&(M=$.state,ae=$.videoId,$=$.checkpoint),$&&ae==R.videoId&&M!=i.UPLOADSTATE.UPLOADING&&($.file=R.file,R.checkpoint=$,$.uploadId);var Q=this._adjustPartSize(R);this._reportLog("20002",R,{ft:H,fs:R.file.size,bu:R.bucket,ok:R.object,vid:R.videoId||"",fn:R.file.name,fw:null,fh:null,ps:Q});var Y={headers:{"x-oss-notification":R.userData?R.userData:""},partSize:Q,parallel:this.options.parallel};this._ossUpload.upload(R,Y)}},{key:"_findUploadIndex",value:function(){for(var R=-1,V=0;V<this._uploadList.length;V++)if(this._uploadList[V].state==i.UPLOADSTATE.INIT){R=V;break}return R}},{key:"_error",value:function(R,V){if(V.name=="cancel")try{this.options.onUploadCanceled(R,V)}catch($){console.log($)}else{if(V.message.indexOf("InvalidAccessKeyIdError")>0||V.name=="SignatureDoesNotMatchError"||V.code=="SecurityTokenExpired"||V.code=="InvalidSecurityToken.Expired"||V.code=="InvalidAccessKeyId"&&this._ossCreditor.securityToken){if(this.options.onUploadTokenExpired){this._state=i.VODSTATE.EXPIRE,R.state=i.UPLOADSTATE.FAIlURE;try{this.options.onUploadTokenExpired(R,V)}catch($){console.log($)}}return}if((V.name=="RequestTimeoutError"||V.name=="ConnectionTimeout"||V.name=="ConnectionTimeoutError")&&this._retryTotal>this._retryCount){var H=this;return setTimeout(function(){H._uploadCore(R,!0)},1e3*H._retryDuration),void this._retryCount++}V.name=="NoSuchUploadError"&&this._removeCheckoutpoint(R),this._handleError(R,V)}}},{key:"_handleError",value:function(R,V){var H=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],$=i.UPLOADSTATE.FAIlURE;if(R.state!=i.UPLOADSTATE.CANCELED&&(R.state=i.UPLOADSTATE.FAIlURE,this._state=i.VODSTATE.FAILURE,this.options.onUploadFailed&&V&&V.code&&V.message))try{this.options.onUploadFailed(R,V.code,V.message)}catch(M){console.log(M)}if(H&&this._changeState(R,$),this._reportLog("20006",R,{code:V.name,message:V.message,requestId:V.requestId,fs:R.file.size,bu:R.bucket,ok:R.object,fn:R.file.name}),this._reportLog("20004",R,{requestId:V.requestId,fs:R.file.size,bu:R.bucket,ok:R.object,fn:R.file.name}),R.ri=O.default.create(),this._findUploadIndex()!=-1){var ae=this;this._state=i.VODSTATE.START,setTimeout(function(){ae.nextUpload()},100)}}},{key:"_complete",value:function(R,V){if(R.state=i.UPLOADSTATE.SUCCESS,this.options.onUploadSucceed)try{this.options.onUploadSucceed(R)}catch(ae){console.log(ae)}var H=0;V&&V.res&&V.res.headers&&(H=V.res.headers["x-oss-request-id"]),this._removeCheckoutpoint(R);var $=this;setTimeout(function(){$.nextUpload()},100),this._retryCount=0,this._reportLog("20003",R,{requestId:H})}},{key:"_progress",value:function(R,V,H){if(this.options.onUploadProgress)try{R.loaded=V.loaded,this.options.onUploadProgress(R,V.total,V.loaded)}catch(D){console.log(D)}var $=V.checkpoint,ae=0;$&&(R.checkpoint=$,this._saveCheckoutpoint(R,$,i.UPLOADSTATE.UPLOADING),ae=$.uploadId),this._retryCount=0;var M=this._getPortNumber($),Q=0;if(H&&H.headers&&(Q=H.headers["x-oss-request-id"]),V.loaded!=0&&this._reportLog("20007",R,{pn:M,requestId:Q}),V.loaded!=1&&this._reportLog("20005",R,{UploadId:ae,pn:M+1,pr:R.retry?1:0,fs:R.file.size,bu:R.bucket,ok:R.object,fn:R.file.name}),!this._invalidUserId&&!R.isImage&&this._ut=="vod"&&this.options.enableUploadProgress){var Y={file:R.file,checkpoint:V,userId:this.options.userId,videoId:R.videoId,region:this.options.region,fileHash:R.fileHash};try{var W=this;L.default.upload(Y,function(){},function(D){if((D=JSON.parse(D))&&D.Code=="InvalidParameter"&&D.Message.indexOf("UserId")>0){W._invalidUserId=!0;var C=D.Message+"\uFF0C\u6B63\u786E\u8D26\u53F7ID(userId)\u8BF7\u53C2\u8003\uFF1Ahttps://help.aliyun.com/knowledge_detail/37196.html";console.log(C)}})}catch(D){console.log(D)}}}},{key:"_getPortNumber",value:function(R){if(R){var V=R.doneParts;if(V&&V.length>0)return V[V.length-1].number}return 0}},{key:"_removeCheckoutpoint",value:function(R){var V=this._getCheckoutpointKey(R);c.default.remove(V)}},{key:"_getCheckoutpoint",value:function(R){var V=this._getCheckoutpointKey(R),H=c.default.get(V);if(H)try{return JSON.parse(H)}catch($){}return""}},{key:"_saveCheckoutpoint",value:function(R,V,H){if(V){var $=this._getCheckoutpointKey(R),ae=R.file,M={fileName:ae.name,lastModified:ae.lastModified,size:ae.size,object:R.object,videoId:R.videoId,bucket:R.bucket,endpoint:R.endpoint,checkpoint:V,loaded:R.loaded,state:H};c.default.set($,JSON.stringify(M))}}},{key:"_changeState",value:function(R,V){var H=this._getCheckoutpoint(R);H&&((this._onbeforeunload=!0)&&(V=i.UPLOADSTATE.STOPED),this._saveCheckoutpoint(R,H.checkpoint,V))}},{key:"_getCheckoutpointKey",value:function(R){return"upload_"+R.file.lastModified+"_"+R.file.name+"_"+R.file.size}},{key:"_getCheckoutpointFromCloud",value:function(R,V,H){var $={userId:this.options.userId,uploadInfoList:[{FileName:R.file.name,FileSize:R.file.size,FileCreateTime:R.file.lastModified,FileHash:R.fileHash}],region:this.options.region};L.default.get($,function(ae){V(ae)},H)}},{key:"_reportLog",value:function(R,V,H){H||(H={}),H.ri=V.ri,this._ut&&(H.ut=this._ut),this._log.log(R,H)}},{key:"_initEvent",value:function(){var R=this;window&&(window.onbeforeunload=function(V){if(R._onbeforeunload=!0,R._curIndex!=-1&&R._uploadList.length>R._curIndex){var H=R._uploadList[R._curIndex];R._changeState(H,i.UPLOADSTATE.STOPED)}})}},{key:"_initState",value:function(){for(var R=0;R<this._uploadList.length;R++){var V=this._uploadList[R];V.state!=i.UPLOADSTATE.FAIlURE&&V.state!=i.UPLOADSTATE.STOPED||(V.state=i.UPLOADSTATE.INIT)}this._state=i.VODSTATE.INIT}},{key:"_adjustPartSize",value:function(R){return R.file.size/this.options.partSize>1e4?R.file.size/9999:this.options.partSize}}]),I}());r.default=F},function(Oe,r,A){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.UPLOADSTATE={INIT:"Ready",UPLOADING:"Uploading",SUCCESS:"Success",FAIlURE:"Failure",CANCELED:"Canceled",STOPED:"Stoped"},r.VODSTATE={INIT:"Init",START:"Start",STOP:"Stop",FAILURE:"Failure",EXPIRE:"Expire",END:"End"}},function(Oe,r,A){"use strict";function y(t){return t&&t.__esModule?t:{default:t}}function m(t,a){if(!(t instanceof a))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(r,"__esModule",{value:!0});var b=function(){function t(a,o){for(var c=0;c<o.length;c++){var d=o[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}return function(a,o,c){return o&&t(a.prototype,o),c&&t(a,c),a}}(),i=A(3),u=A(17),f=(y(u),A(1)),s=(y(f),function(){function t(a,o){if(m(this,t),a){this._config=a,this.create(this._config),this._uploadInfo=null,this._callback={};var c=function(){};this._callback.onerror=o.onerror||c,this._callback.oncomplete=o.oncomplete||c,this._callback.onprogress=o.onprogress||c}}return b(t,[{key:"create",value:function(o){if(o.endpoint=o.endpoint||this._config.endpoint,o.bucket=o.bucket||this._config.bucket,!(o.AccessKeyId&&o.AccessKeySecret&&o.endpoint&&o.SecurityToken))throw new Error("AccessKeyId\u3001AccessKeySecret\u3001endpoint should not be null");var c={accessKeyId:o.AccessKeyId,accessKeySecret:o.AccessKeySecret,stsToken:o.SecurityToken,endpoint:o.endpoint||this._config.endpoint,bucket:o.bucket||this._config.bucket,secure:!0,cname:o.cname};o.timeout&&(c.timeout=o.timeout),this.oss=new OSS.Wrapper(c)}},{key:"abort",value:function(o){if(o.checkpoint){var c=o.checkpoint.uploadId;this.oss.abortMultipartUpload(o.object,c)}}},{key:"getVersion",value:function(){}},{key:"cancel",value:function(){this.oss.cancel&&this.oss.cancel()}},{key:"upload",value:function(o,c){this._uploadInfo=o;var d=this,l=function(p,O,S){return function(h){d._progress(p,O,S),h()}},x={parallel:c.parallel||this._config.parallel||i.UPLOADDEFAULT.PARALLEL,partSize:c.partSize||this._config.partSize||i.UPLOADDEFAULT.PARTSIZE,progress:l};c.headers&&(x.headers=c.headers),o.checkpoint&&(x.checkpoint=o.checkpoint),o.bucket||(this.oss.options.bucket=o.bucket),o.endpoint||(this.oss.options.endpoint=o.endpoint),this.oss.multipartUpload(o.object,o.file,x).then(function(w,p){d._complete(w)}).catch(function(w){d.oss.cancel&&(d.oss&&d.oss.isCancel()?console.log("oss is cancel as error"):d.oss.cancel()),d._error(w)})}},{key:"header",value:function(o,c,d){this.oss.get(o.object).then(function(l){c(l)}).catch(function(l){d(l)})}},{key:"_progress",value:function(o,c,d){this._callback.onprogress(this._uploadInfo,{loaded:o,total:this._uploadInfo.file.size,checkpoint:c},d)}},{key:"_error",value:function(o){this._callback.onerror(this._uploadInfo,o)}},{key:"_complete",value:function(o){this._callback.oncomplete(this._uploadInfo,o)}}]),t}());r.default=s},function(Oe,r,A){"use strict";function y(i,u){if(!(i instanceof u))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(r,"__esModule",{value:!0});var m=function(){function i(u,f){for(var s=0;s<f.length;s++){var t=f[s];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(u,t.key,t)}}return function(u,f,s){return f&&i(u.prototype,f),s&&i(u,s),u}}(),b=function(){function i(){y(this,i)}return m(i,null,[{key:"format",value:function(f){if(arguments.length<2)return null;for(var s=arguments[1],t=1;t<arguments.length;t++){var a=new RegExp("\\{"+(t-1)+"\\}","gm");s=s.replace(a,arguments[t+1])}return{code:f,message:s}}},{key:"CODE",get:function(){return{SUCCESS:"Successful",EmptyValue:"InvalidParameter.EmptyValue",STSInvalid:"InvalidParameter.TokenInvalid",ReadFileError:"ReadFileError",FILEDUPLICATION:"FileDuplication",UploadALEADRYSTARTED:"UploadAlearyStarted"}}},{key:"MESSAGE",get:function(){return{SUCCESS:"Successful",EmptyValue:"\u53C2\u6570 {0} \u4E0D\u80FD\u4E3A\u7A7A\u3002",STSInvalid:"STS\u53C2\u6570\u975E\u6CD5\uFF0C accessKeyId\u3001accessKeySecret\u3001secretToken\u3001expireTime\u90FD\u4E0D\u80FD\u4E3A\u7A7A\u3002",ReadFileError:"\u8BFB\u53D6\u6587\u4EF6{0}{1}\u5931\u8D25.",FILEDUPLICATION:"\u6587\u4EF6\u91CD\u590D\u6DFB\u52A0 {0}",UploadALEADRYSTARTED:"\u91CD\u590D\u5F00\u59CB."}}}]),i}();r.default=b},function(Oe,r,A){"use strict";(function(y){function m(u,f){if(!(u instanceof f))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(r,"__esModule",{value:!0});var b=function(){function u(f,s){for(var t=0;t<s.length;t++){var a=s[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(f,a.key,a)}}return function(f,s,t){return s&&u(f.prototype,s),t&&u(f,t),f}}(),i=function(){function u(){m(this,u)}return b(u,null,[{key:"encode",value:function(s){return new y(s).toString("base64")}},{key:"decode",value:function(s){return new y(s,"base64").toString()}}]),u}();r.default=i}).call(r,A(19).Buffer)},function(Oe,r,A){"use strict";(function(y){function m(){return i.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function b(k,e){if(m()<e)throw new RangeError("Invalid typed array length");return i.TYPED_ARRAY_SUPPORT?(k=new Uint8Array(e),k.__proto__=i.prototype):(k===null&&(k=new i(e)),k.length=e),k}function i(k,e,n){if(!(i.TYPED_ARRAY_SUPPORT||this instanceof i))return new i(k,e,n);if(typeof k=="number"){if(typeof e=="string")throw new Error("If encoding is specified then the first argument must be a string");return t(this,k)}return u(this,k,e,n)}function u(k,e,n,T){if(typeof e=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&e instanceof ArrayBuffer?c(k,e,n,T):typeof e=="string"?a(k,e,n):d(k,e)}function f(k){if(typeof k!="number")throw new TypeError('"size" argument must be a number');if(k<0)throw new RangeError('"size" argument must not be negative')}function s(k,e,n,T){return f(e),e<=0?b(k,e):n!==void 0?typeof T=="string"?b(k,e).fill(n,T):b(k,e).fill(n):b(k,e)}function t(k,e){if(f(e),k=b(k,e<0?0:0|l(e)),!i.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)k[n]=0;return k}function a(k,e,n){if(typeof n=="string"&&n!==""||(n="utf8"),!i.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var T=0|w(e,n);k=b(k,T);var v=k.write(e,n);return v!==T&&(k=k.slice(0,v)),k}function o(k,e){var n=e.length<0?0:0|l(e.length);k=b(k,n);for(var T=0;T<n;T+=1)k[T]=255&e[T];return k}function c(k,e,n,T){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(T||0))throw new RangeError("'length' is out of bounds");return e=n===void 0&&T===void 0?new Uint8Array(e):T===void 0?new Uint8Array(e,n):new Uint8Array(e,n,T),i.TYPED_ARRAY_SUPPORT?(k=e,k.__proto__=i.prototype):k=o(k,e),k}function d(k,e){if(i.isBuffer(e)){var n=0|l(e.length);return k=b(k,n),k.length===0||e.copy(k,0,0,n),k}if(e){if(typeof ArrayBuffer!="undefined"&&e.buffer instanceof ArrayBuffer||"length"in e)return typeof e.length!="number"||le(e.length)?b(k,0):o(k,e);if(e.type==="Buffer"&&ce(e.data))return o(k,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function l(k){if(k>=m())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+m().toString(16)+" bytes");return 0|k}function x(k){return+k!=k&&(k=0),i.alloc(+k)}function w(k,e){if(i.isBuffer(k))return k.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(k)||k instanceof ArrayBuffer))return k.byteLength;typeof k!="string"&&(k=""+k);var n=k.length;if(n===0)return 0;for(var T=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return se(k).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return ie(k).length;default:if(T)return se(k).length;e=(""+e).toLowerCase(),T=!0}}function p(k,e,n){var T=!1;if((e===void 0||e<0)&&(e=0),e>this.length)return"";if((n===void 0||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,e>>>=0,n<=e)return"";for(k||(k="utf8");;)switch(k){case"hex":return ae(this,e,n);case"utf8":case"utf-8":return R(this,e,n);case"ascii":return H(this,e,n);case"latin1":case"binary":return $(this,e,n);case"base64":return X(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,e,n);default:if(T)throw new TypeError("Unknown encoding: "+k);k=(k+"").toLowerCase(),T=!0}}function O(k,e,n){var T=k[e];k[e]=k[n],k[n]=T}function S(k,e,n,T,v){if(k.length===0)return-1;if(typeof n=="string"?(T=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=v?0:k.length-1),n<0&&(n=k.length+n),n>=k.length){if(v)return-1;n=k.length-1}else if(n<0){if(!v)return-1;n=0}if(typeof e=="string"&&(e=i.from(e,T)),i.isBuffer(e))return e.length===0?-1:h(k,e,n,T,v);if(typeof e=="number")return e&=255,i.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?v?Uint8Array.prototype.indexOf.call(k,e,n):Uint8Array.prototype.lastIndexOf.call(k,e,n):h(k,[e],n,T,v);throw new TypeError("val must be string, number or Buffer")}function h(k,e,n,T,v){function _(et,_e){return B===1?et[_e]:et.readUInt16BE(_e*B)}var B=1,Z=k.length,Ee=e.length;if(T!==void 0&&((T=String(T).toLowerCase())==="ucs2"||T==="ucs-2"||T==="utf16le"||T==="utf-16le")){if(k.length<2||e.length<2)return-1;B=2,Z/=2,Ee/=2,n/=2}var ye;if(v){var Ae=-1;for(ye=n;ye<Z;ye++)if(_(k,ye)===_(e,Ae===-1?0:ye-Ae)){if(Ae===-1&&(Ae=ye),ye-Ae+1===Ee)return Ae*B}else Ae!==-1&&(ye-=ye-Ae),Ae=-1}else for(n+Ee>Z&&(n=Z-Ee),ye=n;ye>=0;ye--){for(var Le=!0,Fe=0;Fe<Ee;Fe++)if(_(k,ye+Fe)!==_(e,Fe)){Le=!1;break}if(Le)return ye}return-1}function E(k,e,n,T){n=Number(n)||0;var v=k.length-n;T?(T=Number(T))>v&&(T=v):T=v;var _=e.length;if(_%2!=0)throw new TypeError("Invalid hex string");T>_/2&&(T=_/2);for(var B=0;B<T;++B){var Z=parseInt(e.substr(2*B,2),16);if(isNaN(Z))return B;k[n+B]=Z}return B}function L(k,e,n,T){return oe(se(e,k.length-n),k,n,T)}function P(k,e,n,T){return oe(me(e),k,n,T)}function g(k,e,n,T){return P(k,e,n,T)}function F(k,e,n,T){return oe(ie(e),k,n,T)}function I(k,e,n,T){return oe(ve(e,k.length-n),k,n,T)}function X(k,e,n){return e===0&&n===k.length?K.fromByteArray(k):K.fromByteArray(k.slice(e,n))}function R(k,e,n){n=Math.min(k.length,n);for(var T=[],v=e;v<n;){var _=k[v],B=null,Z=_>239?4:_>223?3:_>191?2:1;if(v+Z<=n){var Ee,ye,Ae,Le;switch(Z){case 1:_<128&&(B=_);break;case 2:Ee=k[v+1],(192&Ee)==128&&(Le=(31&_)<<6|63&Ee)>127&&(B=Le);break;case 3:Ee=k[v+1],ye=k[v+2],(192&Ee)==128&&(192&ye)==128&&(Le=(15&_)<<12|(63&Ee)<<6|63&ye)>2047&&(Le<55296||Le>57343)&&(B=Le);break;case 4:Ee=k[v+1],ye=k[v+2],Ae=k[v+3],(192&Ee)==128&&(192&ye)==128&&(192&Ae)==128&&(Le=(15&_)<<18|(63&Ee)<<12|(63&ye)<<6|63&Ae)>65535&&Le<1114112&&(B=Le)}}B===null?(B=65533,Z=1):B>65535&&(B-=65536,T.push(B>>>10&1023|55296),B=56320|1023&B),T.push(B),v+=Z}return V(T)}function V(k){var e=k.length;if(e<=ue)return String.fromCharCode.apply(String,k);for(var n="",T=0;T<e;)n+=String.fromCharCode.apply(String,k.slice(T,T+=ue));return n}function H(k,e,n){var T="";n=Math.min(k.length,n);for(var v=e;v<n;++v)T+=String.fromCharCode(127&k[v]);return T}function $(k,e,n){var T="";n=Math.min(k.length,n);for(var v=e;v<n;++v)T+=String.fromCharCode(k[v]);return T}function ae(k,e,n){var T=k.length;(!e||e<0)&&(e=0),(!n||n<0||n>T)&&(n=T);for(var v="",_=e;_<n;++_)v+=fe(k[_]);return v}function M(k,e,n){for(var T=k.slice(e,n),v="",_=0;_<T.length;_+=2)v+=String.fromCharCode(T[_]+256*T[_+1]);return v}function Q(k,e,n){if(k%1!=0||k<0)throw new RangeError("offset is not uint");if(k+e>n)throw new RangeError("Trying to access beyond buffer length")}function Y(k,e,n,T,v,_){if(!i.isBuffer(k))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>v||e<_)throw new RangeError('"value" argument is out of bounds');if(n+T>k.length)throw new RangeError("Index out of range")}function W(k,e,n,T){e<0&&(e=65535+e+1);for(var v=0,_=Math.min(k.length-n,2);v<_;++v)k[n+v]=(e&255<<8*(T?v:1-v))>>>8*(T?v:1-v)}function D(k,e,n,T){e<0&&(e=4294967295+e+1);for(var v=0,_=Math.min(k.length-n,4);v<_;++v)k[n+v]=e>>>8*(T?v:3-v)&255}function C(k,e,n,T,v,_){if(n+T>k.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function U(k,e,n,T,v){return v||C(k,e,n,4,34028234663852886e22,-34028234663852886e22),q.write(k,e,n,T,23,4),n+4}function G(k,e,n,T,v){return v||C(k,e,n,8,17976931348623157e292,-17976931348623157e292),q.write(k,e,n,T,52,8),n+8}function J(k){if(k=ne(k).replace(we,""),k.length<2)return"";for(;k.length%4!=0;)k+="=";return k}function ne(k){return k.trim?k.trim():k.replace(/^\s+|\s+$/g,"")}function fe(k){return k<16?"0"+k.toString(16):k.toString(16)}function se(k,e){e=e||1/0;for(var n,T=k.length,v=null,_=[],B=0;B<T;++B){if((n=k.charCodeAt(B))>55295&&n<57344){if(!v){if(n>56319){(e-=3)>-1&&_.push(239,191,189);continue}if(B+1===T){(e-=3)>-1&&_.push(239,191,189);continue}v=n;continue}if(n<56320){(e-=3)>-1&&_.push(239,191,189),v=n;continue}n=65536+(v-55296<<10|n-56320)}else v&&(e-=3)>-1&&_.push(239,191,189);if(v=null,n<128){if((e-=1)<0)break;_.push(n)}else if(n<2048){if((e-=2)<0)break;_.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;_.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;_.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return _}function me(k){for(var e=[],n=0;n<k.length;++n)e.push(255&k.charCodeAt(n));return e}function ve(k,e){for(var n,T,v,_=[],B=0;B<k.length&&!((e-=2)<0);++B)n=k.charCodeAt(B),T=n>>8,v=n%256,_.push(v),_.push(T);return _}function ie(k){return K.toByteArray(J(k))}function oe(k,e,n,T){for(var v=0;v<T&&!(v+n>=e.length||v>=k.length);++v)e[v+n]=k[v];return v}function le(k){return k!==k}/*!
|
|
|
* The buffer module from node.js, for the browser.
|
|
|
*
|
|
|
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
|
|
* @license MIT
|
|
|
*/var K=A(21),q=A(22),ce=A(23);r.Buffer=i,r.SlowBuffer=x,r.INSPECT_MAX_BYTES=50,i.TYPED_ARRAY_SUPPORT=y.TYPED_ARRAY_SUPPORT!==void 0?y.TYPED_ARRAY_SUPPORT:function(){try{var k=new Uint8Array(1);return k.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},k.foo()===42&&typeof k.subarray=="function"&&k.subarray(1,1).byteLength===0}catch(e){return!1}}(),r.kMaxLength=m(),i.poolSize=8192,i._augment=function(k){return k.__proto__=i.prototype,k},i.from=function(k,e,n){return u(null,k,e,n)},i.TYPED_ARRAY_SUPPORT&&(i.prototype.__proto__=Uint8Array.prototype,i.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&i[Symbol.species]===i&&Object.defineProperty(i,Symbol.species,{value:null,configurable:!0})),i.alloc=function(k,e,n){return s(null,k,e,n)},i.allocUnsafe=function(k){return t(null,k)},i.allocUnsafeSlow=function(k){return t(null,k)},i.isBuffer=function(k){return!(k==null||!k._isBuffer)},i.compare=function(k,e){if(!i.isBuffer(k)||!i.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(k===e)return 0;for(var n=k.length,T=e.length,v=0,_=Math.min(n,T);v<_;++v)if(k[v]!==e[v]){n=k[v],T=e[v];break}return n<T?-1:T<n?1:0},i.isEncoding=function(k){switch(String(k).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},i.concat=function(k,e){if(!ce(k))throw new TypeError('"list" argument must be an Array of Buffers');if(k.length===0)return i.alloc(0);var n;if(e===void 0)for(e=0,n=0;n<k.length;++n)e+=k[n].length;var T=i.allocUnsafe(e),v=0;for(n=0;n<k.length;++n){var _=k[n];if(!i.isBuffer(_))throw new TypeError('"list" argument must be an Array of Buffers');_.copy(T,v),v+=_.length}return T},i.byteLength=w,i.prototype._isBuffer=!0,i.prototype.swap16=function(){var k=this.length;if(k%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<k;e+=2)O(this,e,e+1);return this},i.prototype.swap32=function(){var k=this.length;if(k%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<k;e+=4)O(this,e,e+3),O(this,e+1,e+2);return this},i.prototype.swap64=function(){var k=this.length;if(k%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<k;e+=8)O(this,e,e+7),O(this,e+1,e+6),O(this,e+2,e+5),O(this,e+3,e+4);return this},i.prototype.toString=function(){var k=0|this.length;return k===0?"":arguments.length===0?R(this,0,k):p.apply(this,arguments)},i.prototype.equals=function(k){if(!i.isBuffer(k))throw new TypeError("Argument must be a Buffer");return this===k||i.compare(this,k)===0},i.prototype.inspect=function(){var k="",e=r.INSPECT_MAX_BYTES;return this.length>0&&(k=this.toString("hex",0,e).match(/.{2}/g).join(" "),this.length>e&&(k+=" ... ")),"<Buffer "+k+">"},i.prototype.compare=function(k,e,n,T,v){if(!i.isBuffer(k))throw new TypeError("Argument must be a Buffer");if(e===void 0&&(e=0),n===void 0&&(n=k?k.length:0),T===void 0&&(T=0),v===void 0&&(v=this.length),e<0||n>k.length||T<0||v>this.length)throw new RangeError("out of range index");if(T>=v&&e>=n)return 0;if(T>=v)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,T>>>=0,v>>>=0,this===k)return 0;for(var _=v-T,B=n-e,Z=Math.min(_,B),Ee=this.slice(T,v),ye=k.slice(e,n),Ae=0;Ae<Z;++Ae)if(Ee[Ae]!==ye[Ae]){_=Ee[Ae],B=ye[Ae];break}return _<B?-1:B<_?1:0},i.prototype.includes=function(k,e,n){return this.indexOf(k,e,n)!==-1},i.prototype.indexOf=function(k,e,n){return S(this,k,e,n,!0)},i.prototype.lastIndexOf=function(k,e,n){return S(this,k,e,n,!1)},i.prototype.write=function(k,e,n,T){if(e===void 0)T="utf8",n=this.length,e=0;else if(n===void 0&&typeof e=="string")T=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,T===void 0&&(T="utf8")):(T=n,n=void 0)}var v=this.length-e;if((n===void 0||n>v)&&(n=v),k.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");T||(T="utf8");for(var _=!1;;)switch(T){case"hex":return E(this,k,e,n);case"utf8":case"utf-8":return L(this,k,e,n);case"ascii":return P(this,k,e,n);case"latin1":case"binary":return g(this,k,e,n);case"base64":return F(this,k,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,k,e,n);default:if(_)throw new TypeError("Unknown encoding: "+T);T=(""+T).toLowerCase(),_=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ue=4096;i.prototype.slice=function(k,e){var n=this.length;k=~~k,e=e===void 0?n:~~e,k<0?(k+=n)<0&&(k=0):k>n&&(k=n),e<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<k&&(e=k);var T;if(i.TYPED_ARRAY_SUPPORT)T=this.subarray(k,e),T.__proto__=i.prototype;else{var v=e-k;T=new i(v,void 0);for(var _=0;_<v;++_)T[_]=this[_+k]}return T},i.prototype.readUIntLE=function(k,e,n){k|=0,e|=0,n||Q(k,e,this.length);for(var T=this[k],v=1,_=0;++_<e&&(v*=256);)T+=this[k+_]*v;return T},i.prototype.readUIntBE=function(k,e,n){k|=0,e|=0,n||Q(k,e,this.length);for(var T=this[k+--e],v=1;e>0&&(v*=256);)T+=this[k+--e]*v;return T},i.prototype.readUInt8=function(k,e){return e||Q(k,1,this.length),this[k]},i.prototype.readUInt16LE=function(k,e){return e||Q(k,2,this.length),this[k]|this[k+1]<<8},i.prototype.readUInt16BE=function(k,e){return e||Q(k,2,this.length),this[k]<<8|this[k+1]},i.prototype.readUInt32LE=function(k,e){return e||Q(k,4,this.length),(this[k]|this[k+1]<<8|this[k+2]<<16)+16777216*this[k+3]},i.prototype.readUInt32BE=function(k,e){return e||Q(k,4,this.length),16777216*this[k]+(this[k+1]<<16|this[k+2]<<8|this[k+3])},i.prototype.readIntLE=function(k,e,n){k|=0,e|=0,n||Q(k,e,this.length);for(var T=this[k],v=1,_=0;++_<e&&(v*=256);)T+=this[k+_]*v;return v*=128,T>=v&&(T-=Math.pow(2,8*e)),T},i.prototype.readIntBE=function(k,e,n){k|=0,e|=0,n||Q(k,e,this.length);for(var T=e,v=1,_=this[k+--T];T>0&&(v*=256);)_+=this[k+--T]*v;return v*=128,_>=v&&(_-=Math.pow(2,8*e)),_},i.prototype.readInt8=function(k,e){return e||Q(k,1,this.length),128&this[k]?-1*(255-this[k]+1):this[k]},i.prototype.readInt16LE=function(k,e){e||Q(k,2,this.length);var n=this[k]|this[k+1]<<8;return 32768&n?4294901760|n:n},i.prototype.readInt16BE=function(k,e){e||Q(k,2,this.length);var n=this[k+1]|this[k]<<8;return 32768&n?4294901760|n:n},i.prototype.readInt32LE=function(k,e){return e||Q(k,4,this.length),this[k]|this[k+1]<<8|this[k+2]<<16|this[k+3]<<24},i.prototype.readInt32BE=function(k,e){return e||Q(k,4,this.length),this[k]<<24|this[k+1]<<16|this[k+2]<<8|this[k+3]},i.prototype.readFloatLE=function(k,e){return e||Q(k,4,this.length),q.read(this,k,!0,23,4)},i.prototype.readFloatBE=function(k,e){return e||Q(k,4,this.length),q.read(this,k,!1,23,4)},i.prototype.readDoubleLE=function(k,e){return e||Q(k,8,this.length),q.read(this,k,!0,52,8)},i.prototype.readDoubleBE=function(k,e){return e||Q(k,8,this.length),q.read(this,k,!1,52,8)},i.prototype.writeUIntLE=function(k,e,n,T){(k=+k,e|=0,n|=0,!T)&&Y(this,k,e,n,Math.pow(2,8*n)-1,0);var v=1,_=0;for(this[e]=255&k;++_<n&&(v*=256);)this[e+_]=k/v&255;return e+n},i.prototype.writeUIntBE=function(k,e,n,T){(k=+k,e|=0,n|=0,!T)&&Y(this,k,e,n,Math.pow(2,8*n)-1,0);var v=n-1,_=1;for(this[e+v]=255&k;--v>=0&&(_*=256);)this[e+v]=k/_&255;return e+n},i.prototype.writeUInt8=function(k,e,n){return k=+k,e|=0,n||Y(this,k,e,1,255,0),i.TYPED_ARRAY_SUPPORT||(k=Math.floor(k)),this[e]=255&k,e+1},i.prototype.writeUInt16LE=function(k,e,n){return k=+k,e|=0,n||Y(this,k,e,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[e]=255&k,this[e+1]=k>>>8):W(this,k,e,!0),e+2},i.prototype.writeUInt16BE=function(k,e,n){return k=+k,e|=0,n||Y(this,k,e,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[e]=k>>>8,this[e+1]=255&k):W(this,k,e,!1),e+2},i.prototype.writeUInt32LE=function(k,e,n){return k=+k,e|=0,n||Y(this,k,e,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[e+3]=k>>>24,this[e+2]=k>>>16,this[e+1]=k>>>8,this[e]=255&k):D(this,k,e,!0),e+4},i.prototype.writeUInt32BE=function(k,e,n){return k=+k,e|=0,n||Y(this,k,e,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[e]=k>>>24,this[e+1]=k>>>16,this[e+2]=k>>>8,this[e+3]=255&k):D(this,k,e,!1),e+4},i.prototype.writeIntLE=function(k,e,n,T){if(k=+k,e|=0,!T){var v=Math.pow(2,8*n-1);Y(this,k,e,n,v-1,-v)}var _=0,B=1,Z=0;for(this[e]=255&k;++_<n&&(B*=256);)k<0&&Z===0&&this[e+_-1]!==0&&(Z=1),this[e+_]=(k/B>>0)-Z&255;return e+n},i.prototype.writeIntBE=function(k,e,n,T){if(k=+k,e|=0,!T){var v=Math.pow(2,8*n-1);Y(this,k,e,n,v-1,-v)}var _=n-1,B=1,Z=0;for(this[e+_]=255&k;--_>=0&&(B*=256);)k<0&&Z===0&&this[e+_+1]!==0&&(Z=1),this[e+_]=(k/B>>0)-Z&255;return e+n},i.prototype.writeInt8=function(k,e,n){return k=+k,e|=0,n||Y(this,k,e,1,127,-128),i.TYPED_ARRAY_SUPPORT||(k=Math.floor(k)),k<0&&(k=255+k+1),this[e]=255&k,e+1},i.prototype.writeInt16LE=function(k,e,n){return k=+k,e|=0,n||Y(this,k,e,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[e]=255&k,this[e+1]=k>>>8):W(this,k,e,!0),e+2},i.prototype.writeInt16BE=function(k,e,n){return k=+k,e|=0,n||Y(this,k,e,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[e]=k>>>8,this[e+1]=255&k):W(this,k,e,!1),e+2},i.prototype.writeInt32LE=function(k,e,n){return k=+k,e|=0,n||Y(this,k,e,4,2147483647,-2147483648),i.TYPED_ARRAY_SUPPORT?(this[e]=255&k,this[e+1]=k>>>8,this[e+2]=k>>>16,this[e+3]=k>>>24):D(this,k,e,!0),e+4},i.prototype.writeInt32BE=function(k,e,n){return k=+k,e|=0,n||Y(this,k,e,4,2147483647,-2147483648),k<0&&(k=4294967295+k+1),i.TYPED_ARRAY_SUPPORT?(this[e]=k>>>24,this[e+1]=k>>>16,this[e+2]=k>>>8,this[e+3]=255&k):D(this,k,e,!1),e+4},i.prototype.writeFloatLE=function(k,e,n){return U(this,k,e,!0,n)},i.prototype.writeFloatBE=function(k,e,n){return U(this,k,e,!1,n)},i.prototype.writeDoubleLE=function(k,e,n){return G(this,k,e,!0,n)},i.prototype.writeDoubleBE=function(k,e,n){return G(this,k,e,!1,n)},i.prototype.copy=function(k,e,n,T){if(n||(n=0),T||T===0||(T=this.length),e>=k.length&&(e=k.length),e||(e=0),T>0&&T<n&&(T=n),T===n)return 0;if(k.length===0||this.length===0)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(T<0)throw new RangeError("sourceEnd out of bounds");T>this.length&&(T=this.length),k.length-e<T-n&&(T=k.length-e+n);var v,_=T-n;if(this===k&&n<e&&e<T)for(v=_-1;v>=0;--v)k[v+e]=this[v+n];else if(_<1e3||!i.TYPED_ARRAY_SUPPORT)for(v=0;v<_;++v)k[v+e]=this[v+n];else Uint8Array.prototype.set.call(k,this.subarray(n,n+_),e);return _},i.prototype.fill=function(k,e,n,T){if(typeof k=="string"){if(typeof e=="string"?(T=e,e=0,n=this.length):typeof n=="string"&&(T=n,n=this.length),k.length===1){var v=k.charCodeAt(0);v<256&&(k=v)}if(T!==void 0&&typeof T!="string")throw new TypeError("encoding must be a string");if(typeof T=="string"&&!i.isEncoding(T))throw new TypeError("Unknown encoding: "+T)}else typeof k=="number"&&(k&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;e>>>=0,n=n===void 0?this.length:n>>>0,k||(k=0);var _;if(typeof k=="number")for(_=e;_<n;++_)this[_]=k;else{var B=i.isBuffer(k)?k:se(new i(k,T).toString()),Z=B.length;for(_=0;_<n-e;++_)this[_+e]=B[_%Z]}return this};var we=/[^+\/0-9A-Za-z-_]/g}).call(r,A(20))},function(Oe,r){var A;A=function(){return this}();try{A=A||Function("return this")()||(0,eval)("this")}catch(y){typeof window=="object"&&(A=window)}Oe.exports=A},function(Oe,r,A){"use strict";function y(l){var x=l.length;if(x%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return l[x-2]==="="?2:l[x-1]==="="?1:0}function m(l){return 3*l.length/4-y(l)}function b(l){var x,w,p,O,S,h=l.length;O=y(l),S=new a(3*h/4-O),w=O>0?h-4:h;var E=0;for(x=0;x<w;x+=4)p=t[l.charCodeAt(x)]<<18|t[l.charCodeAt(x+1)]<<12|t[l.charCodeAt(x+2)]<<6|t[l.charCodeAt(x+3)],S[E++]=p>>16&255,S[E++]=p>>8&255,S[E++]=255&p;return O===2?(p=t[l.charCodeAt(x)]<<2|t[l.charCodeAt(x+1)]>>4,S[E++]=255&p):O===1&&(p=t[l.charCodeAt(x)]<<10|t[l.charCodeAt(x+1)]<<4|t[l.charCodeAt(x+2)]>>2,S[E++]=p>>8&255,S[E++]=255&p),S}function i(l){return s[l>>18&63]+s[l>>12&63]+s[l>>6&63]+s[63&l]}function u(l,x,w){for(var p,O=[],S=x;S<w;S+=3)p=(l[S]<<16)+(l[S+1]<<8)+l[S+2],O.push(i(p));return O.join("")}function f(l){for(var x,w=l.length,p=w%3,O="",S=[],h=0,E=w-p;h<E;h+=16383)S.push(u(l,h,h+16383>E?E:h+16383));return p===1?(x=l[w-1],O+=s[x>>2],O+=s[x<<4&63],O+="=="):p===2&&(x=(l[w-2]<<8)+l[w-1],O+=s[x>>10],O+=s[x>>4&63],O+=s[x<<2&63],O+="="),S.push(O),S.join("")}r.byteLength=m,r.toByteArray=b,r.fromByteArray=f;for(var s=[],t=[],a=typeof Uint8Array!="undefined"?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,d=o.length;c<d;++c)s[c]=o[c],t[o.charCodeAt(c)]=c;t["-".charCodeAt(0)]=62,t["_".charCodeAt(0)]=63},function(Oe,r){r.read=function(A,y,m,b,i){var u,f,s=8*i-b-1,t=(1<<s)-1,a=t>>1,o=-7,c=m?i-1:0,d=m?-1:1,l=A[y+c];for(c+=d,u=l&(1<<-o)-1,l>>=-o,o+=s;o>0;u=256*u+A[y+c],c+=d,o-=8);for(f=u&(1<<-o)-1,u>>=-o,o+=b;o>0;f=256*f+A[y+c],c+=d,o-=8);if(u===0)u=1-a;else{if(u===t)return f?NaN:1/0*(l?-1:1);f+=Math.pow(2,b),u-=a}return(l?-1:1)*f*Math.pow(2,u-b)},r.write=function(A,y,m,b,i,u){var f,s,t,a=8*u-i-1,o=(1<<a)-1,c=o>>1,d=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,l=b?0:u-1,x=b?1:-1,w=y<0||y===0&&1/y<0?1:0;for(y=Math.abs(y),isNaN(y)||y===1/0?(s=isNaN(y)?1:0,f=o):(f=Math.floor(Math.log(y)/Math.LN2),y*(t=Math.pow(2,-f))<1&&(f--,t*=2),y+=f+c>=1?d/t:d*Math.pow(2,1-c),y*t>=2&&(f++,t/=2),f+c>=o?(s=0,f=o):f+c>=1?(s=(y*t-1)*Math.pow(2,i),f+=c):(s=y*Math.pow(2,c-1)*Math.pow(2,i),f=0));i>=8;A[m+l]=255&s,l+=x,s/=256,i-=8);for(f=f<<i|s,a+=i;a>0;A[m+l]=255&f,l+=x,f/=256,a-=8);A[m+l-x]|=128*w}},function(Oe,r){var A={}.toString;Oe.exports=Array.isArray||function(y){return A.call(y)=="[object Array]"}},function(Oe,r,A){"use strict";function y(i,u){if(!(i instanceof u))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(r,"__esModule",{value:!0});var m=function(){function i(u,f){for(var s=0;s<f.length;s++){var t=f[s];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(u,t.key,t)}}return function(u,f,s){return f&&i(u.prototype,f),s&&i(u,s),u}}(),b=function(){function i(){y(this,i)}return m(i,null,[{key:"set",value:function(f,s){try{window.localStorage&&localStorage.setItem(f,s)}catch(t){window[f+"_localStorage"]=s}}},{key:"get",value:function(f){try{if(window.localStorage)return localStorage.getItem(f)}catch(s){return window[f+"_localStorage"]}return""}},{key:"remove",value:function(f){try{window.localStorage&&localStorage.removeItem(f)}catch(s){delete window[f+"_localStorage"]}}}]),i}();r.default=b},function(Oe,r,A){"use strict";function y(i,u){if(!(i instanceof u))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(r,"__esModule",{value:!0});var m=function(){function i(u,f){for(var s=0;s<f.length;s++){var t=f[s];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(u,t.key,t)}}return function(u,f,s){return f&&i(u.prototype,f),s&&i(u,s),u}}(),b=function(){function i(){y(this,i)}return m(i,null,[{key:"get",value:function(f){for(var s=f+"",t=document.cookie.split(";"),a=0;a<t.length;a++){var o=t[a].trim();if(o.indexOf(s)==0)return unescape(o.substring(s.length+1,o.length))}return""}},{key:"set",value:function(f,s,t){var a=new Date;a.setTime(a.getTime()+24*t*60*60*1e3);var o="expires="+a.toGMTString();document.cookie=f+"="+escape(s)+"; "+o}}]),i}();r.default=b},function(Oe,r,A){"use strict";function y(a){return a&&a.__esModule?a:{default:a}}function m(a,o){if(!(a instanceof o))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(r,"__esModule",{value:!0});var b=function(){function a(o,c){for(var d=0;d<c.length;d++){var l=c[d];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(o,l.key,l)}}return function(o,c,d){return c&&a(o.prototype,c),d&&a(o,d),o}}(),i=A(8),u=y(i),f=A(9),s=y(f),t=function(){function a(){m(this,a)}return b(a,null,[{key:"refreshUploadAuth",value:function(c,d,l){var x=(s.default.randomUUID(),s.default.randomUUID()),w={AccessKeyId:c.accessKeyId,SecurityToken:c.securityToken,Action:"RefreshUploadVideo",VideoId:c.videoId,Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:x,RequestId:c.requestId},p=s.default.makeUTF8sort(w,"=","&")+"&Signature="+s.default.aliyunEncodeURI(s.default.makeChangeSiga(w,c.accessKeySecret)),O="https://vod."+c.region+".aliyuncs.com/?"+p;u.default.get(O,function(S){var S=JSON.parse(S);d&&d(S)},function(S){if(l){var h=JSON.parse(S);l(h)}})}},{key:"getUploadAuth",value:function(c,d,l){var x=(s.default.randomUUID(),s.default.randomUUID()),w={AccessKeyId:c.accessKeyId,SecurityToken:c.securityToken,Action:"CreateUploadVideo",Title:c.title,FileName:c.fileName,Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:x,RequestId:c.requestId};c.fileSize&&(w.FileSize=c.fileSize),c.description&&(w.Description=c.description),c.cateId&&(w.CateId=c.cateId),c.tags&&(w.Tags=c.tags),c.templateGroupId&&(w.TemplateGroupId=c.templateGroupId),c.storageLocation&&(w.StorageLocation=c.storageLocation),c.coverUrl&&(w.CoverURL=c.coverUrl),c.transCodeMode&&(w.TransCodeMode=c.transCodeMode),c.userData&&(w.UserData=JSON.stringify(c.userData));var p=s.default.makeUTF8sort(w,"=","&")+"&Signature="+s.default.aliyunEncodeURI(s.default.makeChangeSiga(w,c.accessKeySecret)),O="https://vod."+c.region+".aliyuncs.com/?"+p;u.default.get(O,function(S){try{S=JSON.parse(S)}catch(h){if(l)return void l({Code:"GetUploadAuthFailed",Message:"\u83B7\u53D6uploadauth\u5931\u8D25"})}d&&d(S)},function(S){if(l){var h={Code:"GetUploadAuthFailed",Message:"\u83B7\u53D6uploadauth\u5931\u8D25"};try{h=JSON.parse(S)}catch(E){}l(h)}})}},{key:"getImageUploadAuth",value:function(c,d,l){var x=(s.default.randomUUID(),s.default.randomUUID()),w={AccessKeyId:c.accessKeyId,SecurityToken:c.securityToken,Action:"CreateUploadImage",ImageType:c.imageType?c.imageType:"default",Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:x,RequestId:c.requestId};c.title&&(w.Title=c.title),c.imageExt&&(w.ImageExt=c.imageExt),c.tags&&(w.Tags=c.tags),c.storageLocation&&(w.StorageLocation=c.storageLocation);var p=s.default.makeUTF8sort(w,"=","&")+"&Signature="+s.default.aliyunEncodeURI(s.default.makeChangeSiga(w,c.accessKeySecret)),O="https://vod."+c.region+".aliyuncs.com/?"+p;u.default.get(O,function(S){S=JSON.parse(S),d&&d(S)},function(S){if(l){var h=JSON.parse(S);l(h)}})}}]),a}();r.default=t},function(Oe,r,A){!function(y,m,b){Oe.exports=r=m(A(0),A(28),A(29))}(0,function(y){return y.HmacSHA1})},function(Oe,r,A){!function(y,m){Oe.exports=r=m(A(0))}(0,function(y){return function(){var m=y,b=m.lib,i=b.WordArray,u=b.Hasher,f=m.algo,s=[],t=f.SHA1=u.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(o,c){for(var d=this._hash.words,l=d[0],x=d[1],w=d[2],p=d[3],O=d[4],S=0;S<80;S++){if(S<16)s[S]=0|o[c+S];else{var h=s[S-3]^s[S-8]^s[S-14]^s[S-16];s[S]=h<<1|h>>>31}var E=(l<<5|l>>>27)+O+s[S];E+=S<20?1518500249+(x&w|~x&p):S<40?1859775393+(x^w^p):S<60?(x&w|x&p|w&p)-1894007588:(x^w^p)-899497514,O=p,p=w,w=x<<30|x>>>2,x=l,l=E}d[0]=d[0]+l|0,d[1]=d[1]+x|0,d[2]=d[2]+w|0,d[3]=d[3]+p|0,d[4]=d[4]+O|0},_doFinalize:function(){var o=this._data,c=o.words,d=8*this._nDataBytes,l=8*o.sigBytes;return c[l>>>5]|=128<<24-l%32,c[14+(l+64>>>9<<4)]=Math.floor(d/4294967296),c[15+(l+64>>>9<<4)]=d,o.sigBytes=4*c.length,this._process(),this._hash},clone:function(){var o=u.clone.call(this);return o._hash=this._hash.clone(),o}});m.SHA1=u._createHelper(t),m.HmacSHA1=u._createHmacHelper(t)}(),y.SHA1})},function(Oe,r,A){!function(y,m){Oe.exports=r=m(A(0))}(0,function(y){!function(){var m=y,b=m.lib,i=b.Base,u=m.enc,f=u.Utf8,s=m.algo;s.HMAC=i.extend({init:function(a,o){a=this._hasher=new a.init,typeof o=="string"&&(o=f.parse(o));var c=a.blockSize,d=4*c;o.sigBytes>d&&(o=a.finalize(o)),o.clamp();for(var l=this._oKey=o.clone(),x=this._iKey=o.clone(),w=l.words,p=x.words,O=0;O<c;O++)w[O]^=1549556828,p[O]^=909522486;l.sigBytes=x.sigBytes=d,this.reset()},reset:function(){var a=this._hasher;a.reset(),a.update(this._iKey)},update:function(a){return this._hasher.update(a),this},finalize:function(a){var o=this._hasher,c=o.finalize(a);return o.reset(),o.finalize(this._oKey.clone().concat(c))}})}()})},function(Oe,r,A){!function(y,m){Oe.exports=r=m(A(0))}(0,function(y){return function(){function m(s,t,a){for(var o=[],c=0,d=0;d<t;d++)if(d%4){var l=a[s.charCodeAt(d-1)]<<d%4*2,x=a[s.charCodeAt(d)]>>>6-d%4*2;o[c>>>2]|=(l|x)<<24-c%4*8,c++}return u.create(o,c)}var b=y,i=b.lib,u=i.WordArray,f=b.enc;f.Base64={stringify:function(t){var a=t.words,o=t.sigBytes,c=this._map;t.clamp();for(var d=[],l=0;l<o;l+=3)for(var x=a[l>>>2]>>>24-l%4*8&255,w=a[l+1>>>2]>>>24-(l+1)%4*8&255,p=a[l+2>>>2]>>>24-(l+2)%4*8&255,O=x<<16|w<<8|p,S=0;S<4&&l+.75*S<o;S++)d.push(c.charAt(O>>>6*(3-S)&63));var h=c.charAt(64);if(h)for(;d.length%4;)d.push(h);return d.join("")},parse:function(t){var a=t.length,o=this._map,c=this._reverseMap;if(!c){c=this._reverseMap=[];for(var d=0;d<o.length;d++)c[o.charCodeAt(d)]=d}var l=o.charAt(64);if(l){var x=t.indexOf(l);x!==-1&&(a=x)}return m(t,a,c)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),y.enc.Base64})},function(Oe,r,A){"use strict";function y(E){return E&&E.__esModule?E:{default:E}}function m(E,L){if(!(E instanceof L))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(r,"__esModule",{value:!0});var b=function(){function E(L,P){for(var g=0;g<P.length;g++){var F=P[g];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(L,F.key,F)}}return function(L,P,g){return P&&E(L.prototype,P),g&&E(L,g),L}}(),i=A(8),u=y(i),f=A(7),s=y(f),t=A(4),a=y(t),o=A(6),c=y(o),d=A(1),l=y(d),x=A(9),w=y(x),p=A(2),O=A(11),S=A(10),h=function(){function E(){m(this,E)}return b(E,null,[{key:"getAuthInfo",value:function(P,g,F){var I=P+"|f#Ylm&^1TppeRhLg|"+F;return g&&(I=P+"|"+g+"|f#Ylm&^1TppeRhLg|"+F),p(S.parse(I)).toString(O)}},{key:"upload",value:function(P,g,F){var I=l.default.ISODateString(new Date),X=Math.floor(new Date().valueOf()/1e3),R=a.default.getClientId();R=a.default.setClientId(R);var V=E.getAuthInfo(P.userId,R,X),H=w.default.randomUUID(),$={Source:"WebSDK",BusinessType:"UploadVideo",Action:"ReportUploadProgress",TerminalType:"H5",DeviceModel:s.default.browser.name+(s.default.browser.version||""),AppVersion:c.default.version,AuthTimestamp:X,Timestamp:I,AuthInfo:V,FileName:P.file.name,FileSize:P.file.size,FileCreateTime:P.file.lastModified,FileHash:P.fileHash,UploadId:P.checkpoint.checkpoint.uploadId,PartSize:P.checkpoint.checkpoint.partSize,DonePartsCount:P.checkpoint.checkpoint.doneParts.length,UploadPoint:JSON.stringify(P.checkpoint),UploadRatio:P.checkpoint.loaded,UserId:P.userId,VideoId:P.videoId,Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:H};R&&($.ClientId=R);var ae=w.default.makeUTF8sort($,"=","&")+"&Signature="+w.default.aliyunEncodeURI(w.default.makeChangeSiga($,P.accessKeySecret)),M="https://vod."+P.region+".aliyuncs.com/?"+ae;u.default.get(M,function(Q){g&&g()},function(Q){Q&&(F(Q),console.log(Q))})}},{key:"get",value:function(P,g,F){var I=l.default.ISODateString(new Date),X=Math.floor(new Date().valueOf()/1e3),R=a.default.getClientId(),V=E.getAuthInfo(P.userId,R,X),H=w.default.randomUUID(),$={Source:"WebSDK",BusinessType:"UploadVideo",Action:"GetUploadProgress",TerminalType:"H5",DeviceModel:s.default.browser.name+(s.default.browser.version||""),AppVersion:c.default.version,AuthTimestamp:X,Timestamp:I,AuthInfo:V,UserId:P.userId,UploadInfoList:JSON.stringify(P.uploadInfoList),Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:H};R&&($.ClientId=R);var ae=w.default.makeUTF8sort($,"=","&")+"&Signature="+w.default.aliyunEncodeURI(w.default.makeChangeSiga($,P.accessKeySecret)),M="https://vod."+P.region+".aliyuncs.com/?"+ae;u.default.get(M,function(Q){var Y={},W=R;Q=Q?JSON.parse(Q):{},Q.UploadProgress&&Q.UploadProgress.UploadProgressList&&Q.UploadProgress.UploadProgressList.length>0&&(Y=Q.UploadProgress.UploadProgressList[0],W=Y.ClientId),a.default.setClientId(W),g&&g(Y)},function(Q){Q&&(F(Q),console.log(Q))})}}]),E}();r.default=h},function(Oe,r,A){"use strict";function y(f,s){if(!(f instanceof s))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(r,"__esModule",{value:!0});var m=function(){function f(s,t){for(var a=0;a<t.length;a++){var o=t[a];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(s,o.key,o)}}return function(s,t,a){return t&&f(s.prototype,t),a&&f(s,a),s}}(),b=A(2),i=A(33),u=(A(11),function(){function f(){y(this,f)}return m(f,null,[{key:"getMd5",value:function(t,a,o){var c=new FileReader;c.onload=function(x){try{if(x&&x.target){var w=b(i.parse(x.target.result)),p=w.toString();a(p)}}catch(O){console.log(O)}},c.onerror=function(x){console.log(x),errorCallback(x)};var d=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice,l=d.call(t,0,1024);c.readAsBinaryString(l)}}]),f}());r.default=u},function(Oe,r,A){!function(y,m){Oe.exports=r=m(A(0))}(0,function(y){return y.enc.Latin1})}])}).call(this,pe("yLpj"))},sBCT:function(st,at,pe){"use strict";var Ye=pe("DZo9"),rt=pe("8z0m"),Oe=pe("+L6B"),r=pe("2/Rp"),A=pe("MXD1"),y=pe("CFYs"),m=pe("9og8"),b=pe("2qtc"),i=pe("kLXV"),u=pe("miYZ"),f=pe("tsqr"),s=pe("y8nQ"),t=pe("Vl3Y"),a=pe("tJVT"),o=pe("k1fw"),c=pe("oBTY"),d=pe("5NDa"),l=pe("5rEg"),x=pe("q1tI"),w=pe.n(x),p=pe("Ty5D"),O=pe("9kvl"),S=pe("kwm0"),h=pe.n(S),E=pe("Aky1"),L=pe("m3rI");function P(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */P=function(){return R};var R={},V=Object.prototype,H=V.hasOwnProperty,$=Object.defineProperty||function(e,n,T){e[n]=T.value},ae=typeof Symbol=="function"?Symbol:{},M=ae.iterator||"@@iterator",Q=ae.asyncIterator||"@@asyncIterator",Y=ae.toStringTag||"@@toStringTag";function W(e,n,T){return Object.defineProperty(e,n,{value:T,enumerable:!0,configurable:!0,writable:!0}),e[n]}try{W({},"")}catch(e){W=function(T,v,_){return T[v]=_}}function D(e,n,T,v){var _=n&&n.prototype instanceof G?n:G,B=Object.create(_.prototype),Z=new ue(v||[]);return $(B,"_invoke",{value:le(e,T,Z)}),B}function C(e,n,T){try{return{type:"normal",arg:e.call(n,T)}}catch(v){return{type:"throw",arg:v}}}R.wrap=D;var U={};function G(){}function J(){}function ne(){}var fe={};W(fe,M,function(){return this});var se=Object.getPrototypeOf,me=se&&se(se(we([])));me&&me!==V&&H.call(me,M)&&(fe=me);var ve=ne.prototype=G.prototype=Object.create(fe);function ie(e){["next","throw","return"].forEach(function(n){W(e,n,function(T){return this._invoke(n,T)})})}function oe(e,n){function T(_,B,Z,Ee){var ye=C(e[_],e,B);if(ye.type!=="throw"){var Ae=ye.arg,Le=Ae.value;return Le&&typeof Le=="object"&&H.call(Le,"__await")?n.resolve(Le.__await).then(function(Fe){T("next",Fe,Z,Ee)},function(Fe){T("throw",Fe,Z,Ee)}):n.resolve(Le).then(function(Fe){Ae.value=Fe,Z(Ae)},function(Fe){return T("throw",Fe,Z,Ee)})}Ee(ye.arg)}var v;$(this,"_invoke",{value:function(B,Z){function Ee(){return new n(function(ye,Ae){T(B,Z,ye,Ae)})}return v=v?v.then(Ee,Ee):Ee()}})}function le(e,n,T){var v="suspendedStart";return function(_,B){if(v==="executing")throw new Error("Generator is already running");if(v==="completed"){if(_==="throw")throw B;return k()}for(T.method=_,T.arg=B;;){var Z=T.delegate;if(Z){var Ee=K(Z,T);if(Ee){if(Ee===U)continue;return Ee}}if(T.method==="next")T.sent=T._sent=T.arg;else if(T.method==="throw"){if(v==="suspendedStart")throw v="completed",T.arg;T.dispatchException(T.arg)}else T.method==="return"&&T.abrupt("return",T.arg);v="executing";var ye=C(e,n,T);if(ye.type==="normal"){if(v=T.done?"completed":"suspendedYield",ye.arg===U)continue;return{value:ye.arg,done:T.done}}ye.type==="throw"&&(v="completed",T.method="throw",T.arg=ye.arg)}}}function K(e,n){var T=n.method,v=e.iterator[T];if(v===void 0)return n.delegate=null,T==="throw"&&e.iterator.return&&(n.method="return",n.arg=void 0,K(e,n),n.method==="throw")||T!=="return"&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+T+"' method")),U;var _=C(v,e.iterator,n.arg);if(_.type==="throw")return n.method="throw",n.arg=_.arg,n.delegate=null,U;var B=_.arg;return B?B.done?(n[e.resultName]=B.value,n.next=e.nextLoc,n.method!=="return"&&(n.method="next",n.arg=void 0),n.delegate=null,U):B:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,U)}function q(e){var n={tryLoc:e[0]};1 in e&&(n.catchLoc=e[1]),2 in e&&(n.finallyLoc=e[2],n.afterLoc=e[3]),this.tryEntries.push(n)}function ce(e){var n=e.completion||{};n.type="normal",delete n.arg,e.completion=n}function ue(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(q,this),this.reset(!0)}function we(e){if(e){var n=e[M];if(n)return n.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length)){var T=-1,v=function _(){for(;++T<e.length;)if(H.call(e,T))return _.value=e[T],_.done=!1,_;return _.value=void 0,_.done=!0,_};return v.next=v}}return{next:k}}function k(){return{value:void 0,done:!0}}return J.prototype=ne,$(ve,"constructor",{value:ne,configurable:!0}),$(ne,"constructor",{value:J,configurable:!0}),J.displayName=W(ne,Y,"GeneratorFunction"),R.isGeneratorFunction=function(e){var n=typeof e=="function"&&e.constructor;return!!n&&(n===J||(n.displayName||n.name)==="GeneratorFunction")},R.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,ne):(e.__proto__=ne,W(e,Y,"GeneratorFunction")),e.prototype=Object.create(ve),e},R.awrap=function(e){return{__await:e}},ie(oe.prototype),W(oe.prototype,Q,function(){return this}),R.AsyncIterator=oe,R.async=function(e,n,T,v,_){_===void 0&&(_=Promise);var B=new oe(D(e,n,T,v),_);return R.isGeneratorFunction(n)?B:B.next().then(function(Z){return Z.done?Z.value:B.next()})},ie(ve),W(ve,Y,"Generator"),W(ve,M,function(){return this}),W(ve,"toString",function(){return"[object Generator]"}),R.keys=function(e){var n=Object(e),T=[];for(var v in n)T.push(v);return T.reverse(),function _(){for(;T.length;){var B=T.pop();if(B in n)return _.value=B,_.done=!1,_}return _.done=!0,_}},R.values=we,ue.prototype={constructor:ue,reset:function(n){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(ce),!n)for(var T in this)T.charAt(0)==="t"&&H.call(this,T)&&!isNaN(+T.slice(1))&&(this[T]=void 0)},stop:function(){this.done=!0;var n=this.tryEntries[0].completion;if(n.type==="throw")throw n.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var T=this;function v(Ae,Le){return Z.type="throw",Z.arg=n,T.next=Ae,Le&&(T.method="next",T.arg=void 0),!!Le}for(var _=this.tryEntries.length-1;_>=0;--_){var B=this.tryEntries[_],Z=B.completion;if(B.tryLoc==="root")return v("end");if(B.tryLoc<=this.prev){var Ee=H.call(B,"catchLoc"),ye=H.call(B,"finallyLoc");if(Ee&&ye){if(this.prev<B.catchLoc)return v(B.catchLoc,!0);if(this.prev<B.finallyLoc)return v(B.finallyLoc)}else if(Ee){if(this.prev<B.catchLoc)return v(B.catchLoc,!0)}else{if(!ye)throw new Error("try statement without catch or finally");if(this.prev<B.finallyLoc)return v(B.finallyLoc)}}}},abrupt:function(n,T){for(var v=this.tryEntries.length-1;v>=0;--v){var _=this.tryEntries[v];if(_.tryLoc<=this.prev&&H.call(_,"finallyLoc")&&this.prev<_.finallyLoc){var B=_;break}}B&&(n==="break"||n==="continue")&&B.tryLoc<=T&&T<=B.finallyLoc&&(B=null);var Z=B?B.completion:{};return Z.type=n,Z.arg=T,B?(this.method="next",this.next=B.finallyLoc,U):this.complete(Z)},complete:function(n,T){if(n.type==="throw")throw n.arg;return n.type==="break"||n.type==="continue"?this.next=n.arg:n.type==="return"?(this.rval=this.arg=n.arg,this.method="return",this.next="end"):n.type==="normal"&&T&&(this.next=T),U},finish:function(n){for(var T=this.tryEntries.length-1;T>=0;--T){var v=this.tryEntries[T];if(v.finallyLoc===n)return this.complete(v.completion,v.afterLoc),ce(v),U}},catch:function(n){for(var T=this.tryEntries.length-1;T>=0;--T){var v=this.tryEntries[T];if(v.tryLoc===n){var _=v.completion;if(_.type==="throw"){var B=_.arg;ce(v)}return B}}throw new Error("illegal catch attempt")},delegateYield:function(n,T,v){return this.delegate={iterator:we(n),resultName:T,nextLoc:v},this.method==="next"&&(this.arg=void 0),U}},R}var g=l.a.TextArea,F=500,I=function(V,H){var $,ae=H.payload||{},M=ae.uploadInfo,Q=M===void 0?{}:M;switch(H.type){case"addVideo":return{videoList:[].concat(Object(c.a)(V.videoList),[{name:Q.file.name,size:Q.file.size,type:Q.file.type,fileHash:Q.fileHash,state:Q.state,videoId:Q.videoId,loaded:Q.loaded||0,title:""}])};case"removeVideo":return{videoList:V.videoList.filter(function(Y){return Y.name!==H.payload.name})};case"removeAll":return{videoList:[]};case"updateProgress":return{videoList:V.videoList.map(function(Y){return Y.name===H.payload.uploadInfo.file.name?Object(o.a)(Object(o.a)({},Y),{loaded:H.payload.progressPercent,videoId:Q.videoId,fileHash:Q.fileHash}):Y})};case"updateTitle":return{videoList:($=V.videoList)===null||$===void 0?void 0:$.map(function(Y){return Y.name===H.payload.item.name?Object(o.a)(Object(o.a)({},Y),{title:H.payload.title}):Y})};default:return{videoList:[]}}},X=function(V){var H=V.user,$=V.globalSetting,ae=V.loading,M=V.dispatch,Q=V.visible,Y=V.editData,W=V.onCancel,D=W===void 0?function(){}:W,C=V.onOk,U=C===void 0?function(){}:C,G=Object(p.m)(),J=t.a.useForm(),ne=Object(a.a)(J,1),fe=ne[0],se=Object(x.useReducer)(I,{videoList:[]}),me=Object(a.a)(se,2),ve=me[0],ie=me[1],oe=Object(x.useState)(!1),le=Object(a.a)(oe,2),K=le[0],q=le[1],ce=Object(x.useRef)(),ue=Object(x.useState)(),we=Object(a.a)(ue,2),k=we[0],e=we[1],n=Object(x.useState)(!1),T=Object(a.a)(n,2),v=T[0],_=T[1],B=Object(x.useState)(!1),Z=Object(a.a)(B,2),Ee=Z[0],ye=Z[1],Ae=Object(x.useState)([]),Le=Object(a.a)(Ae,2),Fe=Le[0],et=Le[1],_e=Object(x.useState)([]),he=Object(a.a)(_e,2),Se=he[0],Te=he[1];Object(x.useEffect)(function(){if(!Y)return;_(Y.is_link),e(Y.link),!Y.is_link&&ie({type:"addVideo",payload:{uploadInfo:{file:{name:Y.file_name},videoId:Y.video_id,loaded:100}}}),fe.setFieldsValue({name:Y.name,description:Y.description})},[Y]);var Pe=function(){var ke=document.getElementById("fileUpload");ke.value=""},We=function(ke){var Be,Ve,Re;_(!1);var be=ke.target.files[0];if(!be){Pe();return}var Ge=be.name.toLowerCase();if(Ge&&Ge.indexOf(".avi")==-1&&Ge.indexOf(".flv")==-1&&Ge.indexOf(".f4v")==-1&&Ge.indexOf(".m4v")==-1&&Ge.indexOf(".mov")==-1&&Ge.indexOf(".mp4")==-1&&Ge.indexOf(".rmvb")==-1&&Ge.indexOf(".swf")==-1&&Ge.indexOf(".webm")==-1&&Ge.indexOf(".wmv")==-1){f.b.info("\u4E0D\u652F\u6301\u7684\u89C6\u9891\u683C\u5F0F"),Pe();return}if(!(((Be=H.userInfo)===null||Be===void 0?void 0:Be.admin)||((Ve=H.userInfo)===null||Ve===void 0?void 0:Ve.business))&&be.size>F*1024*1024){f.b.info("\u89C6\u9891\u5927\u5C0F\u8D85\u8FC7".concat(F,"M")),Pe();return}if((Re=ve.videoList)===null||Re===void 0?void 0:Re.find(function(Ne){return Ne.name===be.name})){f.b.info("\u4F60\u4E0D\u80FD\u4E0A\u4F20\u540C\u4E00\u4E2A\u89C6\u9891\u6587\u4EF6\u540D\u79F0\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\u3002"),Pe();return}it(be)},Xe=function(ke,Be){i.a.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:w.a.createElement("div",{className:"tc"},"\u60A8\u786E\u8BA4\u8981",Be?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20","\u8BE5\u89C6\u9891\u5417\uFF1F"),onOk:function(){Pe(),ie({type:"removeVideo",payload:{name:ke}})}})},it=function(ke){var Be,Ve='{"Vod":{}}';if(q(!0),ce.current){ce.current.addFile(ke,null,null,null,Ve);return}Object(E.a)((Be=H.userInfo)===null||Be===void 0?void 0:Be.login,{create:!ce,addFileSuccess:function(be){ie({type:"addVideo",payload:{uploadInfo:be}})},onUploadProgress:function(be,Ge,Ne){var Ie=Math.ceil(Ne*100);ie({type:"updateProgress",payload:{uploadInfo:be,progressPercent:Ie}}),Pe()},onUploadFailed:function(be){f.b.info("\u89C6\u9891\u4E91\u670D\u52A1\u51FA\u73B0\u5F02\u5E38\uFF0C\u8BF7\u91CD\u65B0\u4E0A\u4F20\u3002")},onUploadEnd:function(be){q(!1)},onUploadSucceed:function(be){q(!1)},onUploadError:function(be){q(!1)},gotUploader:function(be){be.addFile(ke,null,null,null,Ve),ce.current=be}})},$e=function(){var Ue=Object(m.a)(P().mark(function ke(){var Be,Ve;return P().wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return be.next=2,fe.validateFields();case 2:if(!(Se&&(Se==null?void 0:Se.length)>0||v&&k)){be.next=12;break}return ye(!0),Be=v?{link:k}:{video_id:Se==null?void 0:Se[0].attachment_id,video_name:Se==null?void 0:Se[0].name,filesize:Se==null?void 0:Se[0].filesize,duration:Se==null?void 0:Se[0].duration},be.next=7,U(Object(o.a)(Object(o.a)({},Be),{name:fe.getFieldValue("name"),description:fe.getFieldValue("description")}));case 7:Ve=be.sent,ye(!1),Ve.id&&De(),be.next=13;break;case 12:f.b.info("\u8BF7\u5148\u4E0A\u4F20\u89C6\u9891\u6216\u8005\u6DFB\u52A0\u5916\u94FE");case 13:case"end":return be.stop()}},ke)}));return function(){return Ue.apply(this,arguments)}}(),De=function(){fe.resetFields(),ie({type:"removeAll"}),e(null),_(null),Te([])},ot=function(){D(),De()},nt={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:L.a.API_SERVER+"/api/attachments.json",data:function(ke){return ke.newfilename=encodeURIComponent(ke.name),ke},withCredentials:!0,onRemove:function(ke){Te([])},onChange:function(ke){var Be=ke.file.status;if(Be!=="uploading",Be==="removed"&&et(ke.fileList),Be==="done"){var Ve;et(ke==null||((Ve=ke.fileList)===null||Ve===void 0)?void 0:Ve.slice(-1)),je(ke.file),_(!1),f.b.success("".concat(ke.file.name," \u6587\u4EF6\u4E0A\u4F20\u6210\u529F"))}else Be==="error"&&f.b.error("".concat(ke.file.name," \u6587\u4EF6\u4E0A\u4F20\u5931\u8D25"))},beforeUpload:function(ke){var Be=ke.size/1024/1024<1e3;return Be||f.b.info("\u6587\u4EF6\u5927\u5C0F\u5FC5\u987B\u5C0F\u4E8E150MB"),Be}};function je(Ue){var ke=URL.createObjectURL(Ue.originFileObj),Be=new Audio(ke);Be.addEventListener("loadedmetadata",function(Ve){var Re,be,Ge=Be.duration,Ne={};Ne.name=Ue.name,Ne.duration=Math.floor(Ge),Ne.filesize=Ue.size,Ne.attachment_id=Ue==null?void 0:Ue.response.id,Ne.course_id=G.coursesId,Ne.category_id=(Re=Location)===null||Re===void 0||((be=Re.query)===null||be===void 0)?void 0:be.categoryId,Se.push(Ne),Te(Object(c.a)(Se))})}var Ze=function(){var ke,Be,Ve,Re,be,Ge,Ne,Ie,Je,qe,Qe,He;return w.a.createElement(w.a.Fragment,null,!v&&!!((ke=ve.videoList)===null||ke===void 0?void 0:ke.length)&&w.a.createElement("div",{className:h.a.fileProgress},((Be=ve.videoList)===null||Be===void 0||((Ve=Be[0])===null||Ve===void 0)?void 0:Ve.loaded)==100?w.a.createElement("div",{className:"".concat(h.a.videoName," font14")},(Re=ve.videoList)===null||Re===void 0||((be=Re[0])===null||be===void 0)?void 0:be.name):w.a.createElement(y.a,{style:{width:"80%"},percent:(Ge=ve.videoList)===null||Ge===void 0||((Ne=Ge[0])===null||Ne===void 0)?void 0:Ne.loaded,status:((Ie=ve.videoList)===null||Ie===void 0||((Je=Ie[0])===null||Je===void 0)?void 0:Je.loaded)==100?"normal":"active"}),w.a.createElement("div",{className:h.a.fileCancel,onClick:function(){var tt,z,j,N;return Xe((tt=ve.videoList)===null||tt===void 0||((z=tt[0])===null||z===void 0)?void 0:z.name,((j=ve.videoList)===null||j===void 0||((N=j[0])===null||N===void 0)?void 0:N.loaded)==100)}},((qe=ve.videoList)===null||qe===void 0||((Qe=qe[0])===null||Qe===void 0)?void 0:Qe.loaded)===100?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20")),!((He=ve.videoList)===null||He===void 0?void 0:He.length)&&w.a.createElement("div",{className:h.a.uploadWrap},w.a.createElement("label",{htmlFor:"fileUpload",style:{marginRight:"30px"}},w.a.createElement(rt.a,nt,w.a.createElement(r.a,{className:h.a.upload,disabled:(Se==null?void 0:Se.length)>0},w.a.createElement("i",{className:"iconfont icon-shangchuanshipin1 mr5"}),"\u4E0A\u4F20\u89C6\u9891"))),w.a.createElement("label",{className:"".concat(h.a.upload," ").concat(h.a.uploadLink),style:{display:(Fe==null?void 0:Fe.length)>0?"none":""},onClick:function(){return _(!0)}},w.a.createElement("i",{className:"iconfont icon-lianjie1 mr5"}),"\u6DFB\u52A0\u5916\u94FE")),v&&w.a.createElement(l.a,{className:"mt5",placeholder:"\u8BF7\u8F93\u5165\u89C6\u9891\u94FE\u63A5",value:k,onChange:function(tt){return e(tt.target.value)}}))};return w.a.createElement(i.a,{centered:!0,maskClosable:!1,title:Y?"\u7F16\u8F91\u89C6\u9891\u9879\u76EE":"\u65B0\u5EFA\u89C6\u9891\u9879\u76EE",width:740,className:h.a.modal,visible:Q,confirmLoading:Ee,onOk:$e,onCancel:ot},w.a.createElement(t.a,{form:fe},w.a.createElement("input",{type:"file",id:"fileUpload",style:{display:"none"},onChange:We,accept:".mkv, .flv, .f4v, .rmvb, .swf, video/mp4,video/x-m4v,video/flv,video/f4v,video/rmvb,video/swf,video/*"}),w.a.createElement(t.a.Item,{label:"\u9879\u76EE\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\u79F0"}]},w.a.createElement(l.a,{maxLength:40,placeholder:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC740\u5B57\u7684\u9879\u76EE\u540D\u79F0"})),w.a.createElement(t.a.Item,{label:"\u9879\u76EE\u5185\u5BB9",name:"content",className:h.a.contentItem},Ze()),w.a.createElement(t.a.Item,{label:"\u9879\u76EE\u7B80\u4ECB",name:"description",className:"ml8"},w.a.createElement(g,{rows:5,maxLength:800,placeholder:"\u8BF7\u8F93\u5165\u672C\u89C6\u9891\u7B80\u4ECB\uFF0C\u6700\u591A\u4E0D\u8D85\u8FC7800\u5B57"})),w.a.createElement("div",{className:h.a.description},w.a.createElement("span",null,""),w.a.createElement("div",null,"\u4E0A\u4F20\u8BF4\u660E\uFF1A\u76EE\u524D\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u5355\u4E2A\u89C6\u9891\u6587\u4EF6\u6700\u5927\u9650\u52361000M"),w.a.createElement("div",null,"\u89C6\u9891\u89C4\u683C\uFF1Amp4(h264) "),w.a.createElement("div",null,"\u6E29\u99A8\u63D0\u793A\uFF1A",w.a.createElement("span",{className:h.a.colorOrange},"\u5982\u679C\u4E0A\u4F20\u5230\u5E73\u53F0\u540E\uFF0C\u89C6\u9891\u64AD\u653E\u53EA\u6709\u58F0\u97F3\u6CA1\u6709\u753B\u9762\u3002\u53EF\u4EE5\u4F7F\u7528\u683C\u5F0F\u5DE5\u5382\u8F6C\u6362\u89C6\u9891\u683C\u5F0F\uFF0Cmp4\u7684\u89C6\u9891\u7F16\u7801\u6709\u4E09\u79CD\uFF1AMPEG4(DivX),MPEG4(Xvid),AVC(H264)\uFF0C\u8F6C\u6362\u6210AVC(H264)\u7F16\u7801\uFF0C\u5C31\u80FD\u6B63\u5E38\u64AD\u653E")))))};at.a=Object(O.a)(function(R){var V=R.user,H=R.loading,$=R.globalSetting;return{user:V,globalSetting:$,loading:H}})(X)},sWEp:function(st,at,pe){st.exports={wrap:"wrap___3nJXB",title:"title___3AYM5",radioWrap:"radioWrap___dbSML",radio:"radio___3h-_z",colorFF0000:"colorFF0000___2d_ZE",pagination:"pagination___3WP6s"}},vZDz:function(st,at,pe){st.exports={contentWrap:"contentWrap___3Fc2r",footer:"footer___4nxVN",radioGroup:"radioGroup___359yE",wrap:"wrap___1OqR3",introName:"introName___3saG-",rating:"rating___3X95K",modalRating:"modalRating___A4qeN"}}}]);
|