You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/p__Video__Detail__id.7d146f...

134 lines
759 KiB

This file contains invisible Unicode characters!

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

(window.webpackJsonp=window.webpackJsonp||[]).push([[261,6,7],{"0r65":function(rt,Ze){var de=arguments[3],ke=arguments[4],De=arguments[5],Re=JSON.stringify;rt.exports=function(r,O){for(var p,c=Object.keys(De),d=0,s=c.length;d<s;d++){var i=c[d],h=De[i].exports;if(h===r||h&&h.default===r){p=i;break}}if(!p){p=Math.floor(Math.pow(16,8)*Math.random()).toString(16);for(var o={},d=0,s=c.length;d<s;d++){var i=c[d];o[i]=i}ke[p]=["function(require,module,exports){"+r+"(self); }",o]}var t=Math.floor(Math.pow(16,8)*Math.random()).toString(16),a={};a[p]=p,ke[t]=["function(require,module,exports){var f = require("+Re(p)+");(f.default ? f.default : f)(self);}",a];var l={};f(t);function f(x){l[x]=!0;for(var k in ke[x][1]){var g=ke[x][1][k];l[g]||f(g)}}var v="("+de+")({"+Object.keys(l).map(function(x){return Re(x)+":["+ke[x][0]+","+Re(ke[x][1])+"]"}).join(",")+"},{},["+Re(t)+"])",u=window.URL||window.webkitURL||window.mozURL||window.msURL,w=new Blob([v],{type:"text/javascript"});if(O&&O.bare)return w;var A=u.createObjectURL(w),E=new Worker(A);return E.objectURL=A,E}},"1ZF9":function(rt,Ze,de){rt.exports=de.p+"static/Authorize.cc9c212f.png"},"4xil":function(rt,Ze,de){rt.exports={watermark:"watermark___2DVjg",videovideo:"videovideo___3jScv",animate__loop:"animate__loop___36IZ1",upDown:"upDown___3FGkz",container:"container___GV_Ds","video-container":"video-container___35tqx","video-controls":"video-controls___u99fM",hide:"hide___2GDit","video-progress":"video-progress___2LKQJ",seek:"seek___3b-US","seek-tooltip":"seek-tooltip___bZ9sZ","bottom-controls":"bottom-controls___74sQw","left-controls":"left-controls___2kBb3","volume-controls":"volume-controls___QLaWH","fullscreen-button":"fullscreen-button___2nHzc","pip-button":"pip-button___18qQG","playback-animation":"playback-animation___gCL6X",volume:"volume___10eUe",hidden:"hidden___2JBJW"}},"55Ip":function(rt,Ze,de){"use strict";de.d(Ze,"a",function(){return w});var ke=de("Ty5D"),De=de("dI71"),Re=de("q1tI"),r=de.n(Re),O=de("YS25"),p=de("17x9"),c=de.n(p),d=de("wx14"),s=de("zLVn"),i=de("9R94"),h=function(L){Object(De.a)(_,L);function _(){for(var M,P=arguments.length,F=new Array(P),$=0;$<P;$++)F[$]=arguments[$];return M=L.call.apply(L,[this].concat(F))||this,M.history=Object(O.a)(M.props),M}var z=_.prototype;return z.render=function(){return r.a.createElement(ke.c,{history:this.history,children:this.props.children})},_}(r.a.Component),o=function(L){Object(De.a)(_,L);function _(){for(var M,P=arguments.length,F=new Array(P),$=0;$<P;$++)F[$]=arguments[$];return M=L.call.apply(L,[this].concat(F))||this,M.history=Object(O.b)(M.props),M}var z=_.prototype;return z.render=function(){return r.a.createElement(ke.c,{history:this.history,children:this.props.children})},_}(r.a.Component),t=function(_,z){return typeof _=="function"?_(z):_},a=function(_,z){return typeof _=="string"?Object(O.c)(_,null,null,z):_},l=function(_){return _},f=r.a.forwardRef;typeof f=="undefined"&&(f=l);function v(L){return!!(L.metaKey||L.altKey||L.ctrlKey||L.shiftKey)}var u=f(function(L,_){var z=L.innerRef,M=L.navigate,P=L.onClick,F=Object(s.a)(L,["innerRef","navigate","onClick"]),$=F.target,Z=Object(d.a)({},F,{onClick:function(re){try{P&&P(re)}catch(N){throw re.preventDefault(),N}!re.defaultPrevented&&re.button===0&&(!$||$==="_self")&&!v(re)&&(re.preventDefault(),M())}});return l!==f?Z.ref=_||z:Z.ref=z,r.a.createElement("a",Z)}),w=f(function(L,_){var z=L.component,M=z===void 0?u:z,P=L.replace,F=L.to,$=L.innerRef,Z=Object(s.a)(L,["component","replace","to","innerRef"]);return r.a.createElement(ke.e.Consumer,null,function(Q){Q||Object(i.a)(!1);var re=Q.history,N=a(t(F,Q.location),Q.location),ue=N?re.createHref(N):"",G=Object(d.a)({},Z,{href:ue,navigate:function(){var T=t(F,Q.location),U=P?re.replace:re.push;U(T)}});return l!==f?G.ref=_||$:G.innerRef=$,r.a.createElement(M,G)})});if(!1)var A,E;var x=function(_){return _},k=r.a.forwardRef;typeof k=="undefined"&&(k=x);function g(){for(var L=arguments.length,_=new Array(L),z=0;z<L;z++)_[z]=arguments[z];return _.filter(function(M){return M}).join(" ")}var y=k(function(L,_){var z=L["aria-current"],M=z===void 0?"page":z,P=L.activeClassName,F=P===void 0?"active":P,$=L.activeStyle,Z=L.className,Q=L.exact,re=L.isActive,N=L.location,ue=L.sensitive,G=L.strict,V=L.style,T=L.to,U=L.innerRef,H=Object(s.a)(L,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return r.a.createElement(ke.e.Consumer,null,function(K){K||Object(i.a)(!1);var be=N||K.location,ae=a(t(T,be),be),_e=ae.pathname,se=_e&&_e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),ve=se?Object(ke.f)(be.pathname,{path:se,exact:Q,sensitive:ue,strict:G}):null,te=!!(re?re(ve,be):ve),J=te?g(Z,F):Z,q=te?Object(d.a)({},V,{},$):V,he=Object(d.a)({"aria-current":te&&M||null,className:J,style:q,to:ae},H);return x!==k?he.ref=_||U:he.innerRef=U,r.a.createElement(w,he)})});if(!1)var j},"7ixt":function(rt,Ze,de){"use strict";de.d(Ze,"a",function(){return Re});var ke={adjustX:1,adjustY:1},De=[0,0],Re={left:{points:["cr","cl"],overflow:ke,offset:[-4,0],targetOffset:De},right:{points:["cl","cr"],overflow:ke,offset:[4,0],targetOffset:De},top:{points:["bc","tc"],overflow:ke,offset:[0,-4],targetOffset:De},bottom:{points:["tc","bc"],overflow:ke,offset:[0,4],targetOffset:De},topLeft:{points:["bl","tl"],overflow:ke,offset:[0,-4],targetOffset:De},leftTop:{points:["tr","tl"],overflow:ke,offset:[-4,0],targetOffset:De},topRight:{points:["br","tr"],overflow:ke,offset:[0,-4],targetOffset:De},rightTop:{points:["tl","tr"],overflow:ke,offset:[4,0],targetOffset:De},bottomRight:{points:["tr","br"],overflow:ke,offset:[0,4],targetOffset:De},rightBottom:{points:["bl","br"],overflow:ke,offset:[4,0],targetOffset:De},bottomLeft:{points:["tl","bl"],overflow:ke,offset:[0,4],targetOffset:De},leftBottom:{points:["br","bl"],overflow:ke,offset:[-4,0],targetOffset:De}},r=Re},"8mKB":function(rt,Ze,de){"use strict";var ke=de("rePB"),De=de("1OyB"),Re=de("vuIU"),r=de("Ji7U"),O=de("md7G"),p=de("foSv"),c=de("q1tI"),d=de.n(c),s=de("m+aA"),i=de("TSYQ"),h=de.n(i),o=de("4IlW");function t(L){var _=L.pageXOffset,z="scrollLeft";if(typeof _!="number"){var M=L.document;_=M.documentElement[z],typeof _!="number"&&(_=M.body[z])}return _}function a(L){var _,z,M=L.ownerDocument,P=M.body,F=M&&M.documentElement,$=L.getBoundingClientRect();return _=$.left,z=$.top,_-=F.clientLeft||P.clientLeft||0,z-=F.clientTop||P.clientTop||0,{left:_,top:z}}function l(L){var _=a(L),z=L.ownerDocument,M=z.defaultView||z.parentWindow;return _.left+=t(M),_.left}function f(L){var _=v();return function(){var M=Object(p.a)(L),P;if(_){var F=Object(p.a)(this).constructor;P=Reflect.construct(M,arguments,F)}else P=M.apply(this,arguments);return Object(O.a)(this,P)}}function v(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(L){return!1}}var u=function(L){Object(r.a)(z,L);var _=f(z);function z(){var M;return Object(De.a)(this,z),M=_.apply(this,arguments),M.onHover=function(P){var F=M.props,$=F.onHover,Z=F.index;$(P,Z)},M.onClick=function(P){var F=M.props,$=F.onClick,Z=F.index;$(P,Z)},M.onKeyDown=function(P){var F=M.props,$=F.onClick,Z=F.index;P.keyCode===13&&$(P,Z)},M}return Object(Re.a)(z,[{key:"getClassName",value:function(){var P=this.props,F=P.prefixCls,$=P.index,Z=P.value,Q=P.allowHalf,re=P.focused,N=$+1,ue=F;return Z===0&&$===0&&re?ue+=" ".concat(F,"-focused"):Q&&Z+.5>=N&&Z<N?(ue+=" ".concat(F,"-half ").concat(F,"-active"),re&&(ue+=" ".concat(F,"-focused"))):(ue+=N<=Z?" ".concat(F,"-full"):" ".concat(F,"-zero"),N===Z&&re&&(ue+=" ".concat(F,"-focused"))),ue}},{key:"render",value:function(){var P=this.onHover,F=this.onClick,$=this.onKeyDown,Z=this.props,Q=Z.disabled,re=Z.prefixCls,N=Z.character,ue=Z.characterRender,G=Z.index,V=Z.count,T=Z.value,U=typeof N=="function"?N(this.props):N,H=d.a.createElement("li",{className:this.getClassName()},d.a.createElement("div",{onClick:Q?null:F,onKeyDown:Q?null:$,onMouseMove:Q?null:P,role:"radio","aria-checked":T>G?"true":"false","aria-posinset":G+1,"aria-setsize":V,tabIndex:Q?-1:0},d.a.createElement("div",{className:"".concat(re,"-first")},U),d.a.createElement("div",{className:"".concat(re,"-second")},U)));return ue&&(H=ue(H,this.props)),H}}]),z}(d.a.Component);function w(L,_){var z=Object.keys(L);if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(L);_&&(M=M.filter(function(P){return Object.getOwnPropertyDescriptor(L,P).enumerable})),z.push.apply(z,M)}return z}function A(L){for(var _=1;_<arguments.length;_++){var z=arguments[_]!=null?arguments[_]:{};_%2?w(Object(z),!0).forEach(function(M){Object(ke.a)(L,M,z[M])}):Object.getOwnPropertyDescriptors?Object.defineProperties(L,Object.getOwnPropertyDescriptors(z)):w(Object(z)).forEach(function(M){Object.defineProperty(L,M,Object.getOwnPropertyDescriptor(z,M))})}return L}function E(L){var _=x();return function(){var M=Object(p.a)(L),P;if(_){var F=Object(p.a)(this).constructor;P=Reflect.construct(M,arguments,F)}else P=M.apply(this,arguments);return Object(O.a)(this,P)}}function x(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(L){return!1}}function k(){}var g=function(L){Object(r.a)(z,L);var _=E(z);function z(M){var P;Object(De.a)(this,z),P=_.call(this,M),P.onHover=function($,Z){var Q=P.props.onHoverChange,re=P.getStarValue(Z,$.pageX),N=P.state.cleanedValue;re!==N&&P.setState({hoverValue:re,cleanedValue:null}),Q(re)},P.onMouseLeave=function(){var $=P.props.onHoverChange;P.setState({hoverValue:void 0,cleanedValue:null}),$(void 0)},P.onClick=function($,Z){var Q=P.props.allowClear,re=P.state.value,N=P.getStarValue(Z,$.pageX),ue=!1;Q&&(ue=N===re),P.onMouseLeave(),P.changeValue(ue?0:N),P.setState({cleanedValue:ue?N:null})},P.onFocus=function(){var $=P.props.onFocus;P.setState({focused:!0}),$&&$()},P.onBlur=function(){var $=P.props.onBlur;P.setState({focused:!1}),$&&$()},P.onKeyDown=function($){var Z=$.keyCode,Q=P.props,re=Q.count,N=Q.allowHalf,ue=Q.onKeyDown,G=Q.direction,V=G==="rtl",T=P.state.value;Z===o.a.RIGHT&&T<re&&!V?(N?T+=.5:T+=1,P.changeValue(T),$.preventDefault()):Z===o.a.LEFT&&T>0&&!V||Z===o.a.RIGHT&&T>0&&V?(N?T-=.5:T-=1,P.changeValue(T),$.preventDefault()):Z===o.a.LEFT&&T<re&&V&&(N?T+=.5:T+=1,P.changeValue(T),$.preventDefault()),ue&&ue($)},P.saveRef=function($){return function(Z){P.stars[$]=Z}},P.saveRate=function($){P.rate=$};var F=M.value;return F===void 0&&(F=M.defaultValue),P.stars={},P.state={value:F,focused:!1,cleanedValue:null},P}return Object(Re.a)(z,[{key:"componentDidMount",value:function(){var P=this.props,F=P.autoFocus,$=P.disabled;F&&!$&&this.focus()}},{key:"getStarDOM",value:function(P){return Object(s.a)(this.stars[P])}},{key:"getStarValue",value:function(P,F){var $=this.props,Z=$.allowHalf,Q=$.direction,re=Q==="rtl",N=P+1;if(Z){var ue=this.getStarDOM(P),G=l(ue),V=ue.clientWidth;(re&&F-G>V/2||!re&&F-G<V/2)&&(N-=.5)}return N}},{key:"focus",value:function(){var P=this.props.disabled;P||this.rate.focus()}},{key:"blur",value:function(){var P=this.props.disabled;P||this.rate.blur()}},{key:"changeValue",value:function(P){var F=this.props.onChange;"value"in this.props||this.setState({value:P}),F(P)}},{key:"render",value:function(){for(var P=this.props,F=P.count,$=P.allowHalf,Z=P.style,Q=P.prefixCls,re=P.disabled,N=P.className,ue=P.character,G=P.characterRender,V=P.tabIndex,T=P.direction,U=this.state,H=U.value,K=U.hoverValue,be=U.focused,ae=[],_e=re?"".concat(Q,"-disabled"):"",se=0;se<F;se+=1)ae.push(d.a.createElement(u,{ref:this.saveRef(se),index:se,count:F,disabled:re,prefixCls:"".concat(Q,"-star"),allowHalf:$,value:K===void 0?H:K,onClick:this.onClick,onHover:this.onHover,key:se,character:ue,characterRender:G,focused:be}));var ve=h()(Q,_e,N,Object(ke.a)({},"".concat(Q,"-rtl"),T==="rtl"));return d.a.createElement("ul",{className:ve,style:Z,onMouseLeave:re?null:this.onMouseLeave,tabIndex:re?-1:V,onFocus:re?null:this.onFocus,onBlur:re?null:this.onBlur,onKeyDown:re?null:this.onKeyDown,ref:this.saveRate,role:"radiogroup"},ae)}}],[{key:"getDerivedStateFromProps",value:function(P,F){return"value"in P&&P.value!==void 0?A(A({},F),{},{value:P.value}):F}}]),z}(d.a.Component);g.defaultProps={defaultValue:0,count:5,allowHalf:!1,allowClear:!0,style:{},prefixCls:"rc-rate",onChange:k,character:"\u2605",onHoverChange:k,tabIndex:0,direction:"ltr"};var y=g,j=Ze.a=y},"96GE":function(rt,Ze,de){"use strict";de.r(Ze),de.d(Ze,"formatQuery",function(){return lt});var ke=de("T2oS"),De=de("W9HT"),Re=de("k1fw"),r=de("PpiC"),O=de("q1tI"),p=de.n(O),c=de("9kvl"),d=de("JqQi"),s=de.n(d),i=de("5Dmo"),h=de("3S7+"),o=de("+L6B"),t=de("2/Rp"),a=de("pC0b"),l=de("GzdX"),f=de("9og8"),v=de("tJVT"),u=de("WmNS"),w=de.n(u),A=de("nUhQ"),E=de.n(A),x=de("2qtc"),k=de("kLXV"),g=de("7Kak"),y=de("9yH6"),j=de("miYZ"),L=de("tsqr"),_=de("5NDa"),z=de("5rEg"),M=de("Ty5D"),P=de("sWEp"),F=de.n(P),$=de("qdXH"),Z=z.a.Search,Q=function(Ye){var He,Xe=Ye.videoDetail,Ge=Ye.globalSetting,at=Ye.loading,ut=Ye.dispatch,nt=Object(r.a)(Ye,["videoDetail","globalSetting","loading","dispatch"]),ft=Object(M.i)(),yt=Object(M.h)(),st=Object(O.useState)([]),gt=Object(v.a)(st,2),xt=gt[0],_t=gt[1],wt=Object(O.useState)(""),oe=Object(v.a)(wt,2),X=oe[0],m=oe[1],R=Object(O.useState)(),D=Object(v.a)(R,2),B=D[0],ne=D[1],we=Object(O.useState)(!1),Se=Object(v.a)(we,2),Ue=Se[0],Fe=Se[1],Ne=Object(O.useState)(!1),Qe=Object(v.a)(Ne,2),$e=Qe[0],je=Qe[1];Object(O.useEffect)(function(){Xe.actionTabs.key==="Banner-SendToClass"&&et()},[Xe.actionTabs.key]);var et=function(){var tt=Object(f.a)(w.a.mark(function it(){var Je,ot;return w.a.wrap(function(pt){for(;;)switch(pt.prev=pt.next){case 0:return pt.next=2,Object($.h)({});case 2:if(ot=pt.sent,!(ot!=null&&(Je=ot.courses)!==null&&Je!==void 0&&Je.length)){pt.next=8;break}_t((ot==null?void 0:ot.courses)||[]),je(!0),pt.next=11;break;case 8:return ze(),L.b.info("\u60A8\u5F53\u524D\u6CA1\u6709\u7BA1\u7406\u4EFB\u4F55\u8BFE\u5802\uFF0C\u4E0D\u53EF\u53D1\u9001"),pt.abrupt("return");case 11:case"end":return pt.stop()}},it)}));return function(){return tt.apply(this,arguments)}}(),We=function(it){_t(xt==null?void 0:xt.map(function(Je){return Object(Re.a)(Object(Re.a)({},Je),{},{hide:!Je.course_name.includes(it)})}))},Ve=function(){var tt=Object(f.a)(w.a.mark(function it(){var Je;return w.a.wrap(function(ht){for(;;)switch(ht.prev=ht.next){case 0:if(B){ht.next=3;break}return Fe(!0),ht.abrupt("return");case 3:return ht.next=5,Object($.m)({id:ft.videoId,course_id:B});case 5:Je=ht.sent,(Je==null?void 0:Je.status)===0&&(L.b.success("\u53D1\u9001\u6210\u529F"),ze(),c.d===null||c.d===void 0||c.d.replace("/classrooms/".concat(B,"/shixun_homework")));case 7:case"end":return ht.stop()}},it)}));return function(){return tt.apply(this,arguments)}}(),ze=function(){m(""),ne(null),Fe(!1),ut({type:"videoDetail/setActionTabs",payload:{}}),je(!1)};return p.a.createElement(k.a,{centered:!0,keyboard:!1,closable:!1,title:"\u53D1\u9001\u81F3\u8BFE\u5802",visible:$e,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:Ve,onCancel:ze},p.a.createElement("div",{className:F.a.wrap},p.a.createElement("div",{className:"mb10"},p.a.createElement(Z,{placeholder:"\u8F93\u5165\u8BFE\u5802\u540D\u79F0\u7684\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22",value:X,onChange:function(it){return m(it.target.value)},onSearch:function(it){m(it),We(it)}})),p.a.createElement("div",{className:F.a.radioWrap},p.a.createElement(y.a.Group,{value:B,onChange:function(it){ne(it.target.value),Fe(!1)}},xt==null||((He=xt.filter(function(tt){return!(tt!=null&&tt.hide)}))===null||He===void 0)?void 0:He.map(function(tt,it){return p.a.createElement(y.a,{className:F.a.radio,value:tt.course_id,key:it},tt.course_name)}))),Ue&&p.a.createElement("div",{className:F.a.colorFF0000},"\u8BF7\u9009\u62E9\u4F60\u8981\u53D1\u9001\u7684\u8BFE\u5802"),p.a.createElement("div",{className:F.a.title},"\u6E29\u99A8\u63D0\u793A\uFF1A\u5F53\u524D\u89C6\u9891\u9879\u76EE\u5C06\u4F1A\u53D1\u9001\u5230\u6307\u5B9A\u8BFE\u5802")))},re=Object(c.a)(function(ct){var Ye=ct.videoDetail,He=ct.loading,Xe=ct.globalSetting;return{videoDetail:Ye,globalSetting:Xe,loading:He.models.index}})(Q),N=de("sBCT"),ue=de("Mgx3"),G=de("1vsH"),V=de("NLgs"),T=de("Awhp"),U=de("KrTs"),H=de("O3gP"),K=de("lrIw"),be=de("oBTY"),ae=de("eoI0"),_e=de.n(ae),se=de("HBuW"),ve=function(Ye){var He,Xe,Ge=Ye.videoDetail,at=Ye.dispatch,ut=at===void 0?function(){}:at,nt=Ye.visible,ft=Ye.onClose,yt=ft===void 0?function(){}:ft,st=Ge.queryParams,gt=Ge.queryParams,xt=gt.subject_id,_t=gt.videoId,wt={videoId:_t},oe=Object(O.useState)(0),X=Object(v.a)(oe,2),m=X[0],R=X[1],D=Object(O.useState)(""),B=Object(v.a)(D,2),ne=B[0],we=B[1],Se=Object(O.useState)([]),Ue=Object(v.a)(Se,2),Fe=Ue[0],Ne=Ue[1],Qe=Object(O.useState)([]),$e=Object(v.a)(Qe,2),je=$e[0],et=$e[1];Object(O.useEffect)(function(){var it,Je,ot=((it=Ge.detail)===null||it===void 0||((Je=it.video_item)===null||Je===void 0)?void 0:Je.schools)||[];R(ot!=null&&ot.length?1:0),et(ot)},[(He=Ge.detail)===null||He===void 0||((Xe=He.video_item)===null||Xe===void 0)?void 0:Xe.schools]);var We=function(){var it=Object(f.a)(w.a.mark(function Je(ot){var ht;return w.a.wrap(function(vt){for(;;)switch(vt.prev=vt.next){case 0:return vt.next=2,Object(se.L)({q:ot});case 2:ht=vt.sent,ht&&Ne(ht.shools_name||[]);case 4:case"end":return vt.stop()}},Je)}));return function(ot){return it.apply(this,arguments)}}(),Ve=function(Je){if(je.includes(Je)){L.b.info("\u8BF7\u52FF\u6307\u5B9A\u76F8\u540C\u7684\u5355\u4F4D");return}we(""),et([].concat(Object(be.a)(je),[Je]))},ze=function(){var it=Object(f.a)(w.a.mark(function Je(){var ot;return w.a.wrap(function(pt){for(;;)switch(pt.prev=pt.next){case 0:if(!(m===1&&!(je!=null&&je.length))){pt.next=2;break}return pt.abrupt("return",L.b.info("\u8BF7\u9009\u62E9\u6307\u5B9A\u5355\u4F4D\u516C\u5F00"));case 2:return pt.next=4,Object($.a)(Object(Re.a)(Object(Re.a)({},st),{},{id:wt.videoId,schools:m===0?[]:je,is_public:!(m===2)}));case 4:ot=pt.sent,(ot==null?void 0:ot.status)===0&&(L.b.success("\u8BBE\u7F6E\u6210\u529F"),tt());case 6:case"end":return pt.stop()}},Je)}));return function(){return it.apply(this,arguments)}}(),tt=function(){yt(),ut({type:"videoDetail/getVideoDetail",payload:Object(Re.a)(Object(Re.a)({},st),{},{id:wt.videoId})})};return p.a.createElement(k.a,{centered:!0,maskClosable:!1,title:"\u6743\u9650\u8BBE\u7F6E",width:530,className:_e.a.modal,visible:nt,onOk:ze,onCancel:tt},p.a.createElement(p.a.Fragment,null,p.a.createElement(y.a.Group,{value:m,onChange:function(Je){return R(Je.target.value)}},p.a.createElement(y.a,{value:0},"\u5BF9\u6240\u6709\u5355\u4F4D\u516C\u5F00",p.a.createElement("span",null,"\uFF08\u9009\u4E2D\u540E\uFF0C\u5BF9\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),p.a.createElement(y.a,{value:1},"\u5BF9\u6307\u5B9A\u5355\u4F4D\u516C\u5F00",p.a.createElement("span",null,"\uFF08\u9009\u4E2D\u540E\uFF0C\u4EC5\u5BF9\u4E0B\u65B9\u6307\u5B9A\u5355\u4F4D\u7528\u6237\u53EF\u89C1\uFF09")),p.a.createElement(y.a,{value:2},"\u4E0D\u516C\u5F00",p.a.createElement("span",null,"\uFF08\u9009\u4E2D\u540E\uFF0C\u5BF9\u6240\u6709\u7528\u6237\u4E0D\u53EF\u89C1\uFF09"))),m===1&&p.a.createElement(p.a.Fragment,null,p.a.createElement("div",{className:"mt10"},p.a.createElement(K.a,{showSearch:!0,className:_e.a.selectSchool,placeholder:"\u8BF7\u8F93\u5165\u5E76\u9009\u62E9\u5355\u4F4D\u540D\u79F0",value:ne,onChange:function(Je){we(Je),We(Je)},onSelect:Ve,options:Fe==null?void 0:Fe.map(function(it){return{value:it}})})),p.a.createElement("div",{className:"mt10"},je==null?void 0:je.map(function(it,Je){return p.a.createElement(U.a,{count:p.a.createElement("span",{className:_e.a.delete,onClick:function(){return et(je.filter(function(ht){return ht!==it}))}},"x"),className:"mt10 mr20 current",key:Je},p.a.createElement(t.a,{type:"primary",ghost:!0},it))})))))},te=ve,J=function(Ye){var He=Ye.user,Xe=Ye.videoDetail,Ge=Ye.globalSetting,at=Ye.loading,ut=Ye.dispatch,nt=Object(r.a)(Ye,["user","videoDetail","globalSetting","loading","dispatch"]),ft=Xe.queryParams,yt=Xe.queryParams,st=yt.subject_id,gt=yt.videoId,xt={videoId:gt},_t=Object(O.useState)(),wt=Object(v.a)(_t,2),oe=wt[0],X=wt[1],m=Object(O.useState)(),R=Object(v.a)(m,2),D=R[0],B=R[1],ne=Object(O.useState)(!1),we=Object(v.a)(ne,2),Se=we[0],Ue=we[1],Fe=Xe.detail||{},Ne=Fe.video_item,Qe=Xe||{},$e=Qe.stages,je=function(){ut({type:"videoDetail/setActionTabs",payload:{key:"Banner-SendToClass"}})},et=function(){var Ve=Object(f.a)(w.a.mark(function ze(){var tt,it,Je,ot,ht,pt;return w.a.wrap(function(Et){for(;;)switch(Et.prev=Et.next){case 0:if(!((tt=He.userInfo)!==null&&tt!==void 0&&tt.admin||(it=He.userInfo)!==null&&it!==void 0&&it.is_teacher&&Object(V.d)())){Et.next=9;break}return ot=[],$e.map(function(At){At.items.map(function(bt){ot.push(bt)})}),ht=ot.filter(function(At){return At.id===Ne.id}),Et.next=6,Object($.g)(Object(Re.a)({id:ht==null||((Je=ht[0])===null||Je===void 0)?void 0:Je.stage_item_id},ft));case 6:pt=Et.sent,B(pt),X(!0);case 9:case"end":return Et.stop()}},ze)}));return function(){return Ve.apply(this,arguments)}}(),We=function(){var Ve=Object(f.a)(w.a.mark(function ze(tt){var it,Je,ot;return w.a.wrap(function(pt){for(;;)switch(pt.prev=pt.next){case 0:return pt.next=2,Object(ue.S)(Object(Re.a)(Object(Re.a)({id:D==null?void 0:D.id},tt),{},{video_id:(tt==null?void 0:tt.video_id)||(D==null||((it=D.video_item)===null||it===void 0)?void 0:it.video_id),link:(tt==null?void 0:tt.link)||(D==null||((Je=D.video_item)===null||Je===void 0)?void 0:Je.link)}));case 2:return ot=pt.sent,ot&&(X(!1),ut({type:"videoDetail/getVideoDetail",payload:Object(Re.a)({id:xt.videoId},ft)})),pt.abrupt("return",ot);case 5:case"end":return pt.stop()}},ze)}));return function(tt){return Ve.apply(this,arguments)}}();return p.a.createElement("aside",{className:E.a.banner},p.a.createElement("aside",{className:E.a.wrap},p.a.createElement("p",{className:E.a.title},Ne==null?void 0:Ne.name),p.a.createElement("div",{className:E.a.contentWrap},p.a.createElement("span",{className:"font14 c-white"},p.a.createElement("span",{className:"mr10"},"\u5B66\u4E60\u4EBA\u6570\uFF1A"),p.a.createElement("span",null,(Ne==null?void 0:Ne.study_video_items_count)||0),p.a.createElement("span",{className:"ml100 mr10"},"\u5B66\u5458\u8BC4\u5206\uFF1A"),p.a.createElement(l.a,{allowHalf:!0,value:Object(G.B)(Ne==null?void 0:Ne.star),disabled:!0,className:E.a.rating})),p.a.createElement("div",null,(Ne==null?void 0:Ne.can_edit)&&p.a.createElement(t.a,{className:"".concat(E.a.button," ").concat(E.a.buttonTransparent," mr15"),onClick:function(){return Ue(!0)}},"\u6743\u9650\u8BBE\u7F6E"),(Ne==null?void 0:Ne.can_edit)&&p.a.createElement(t.a,{className:"".concat(E.a.button," ").concat(E.a.buttonTransparent," mr15"),onClick:et},"\u7F16\u8F91"),p.a.createElement(h.a,{title:"\u53EF\u5C06\u672C\u89C6\u9891\u53D1\u9001\u81F3\u6211\u7684\u8BFE\u5802\u4E2D\u7684\u89C6\u9891\u680F\u76EE",placement:"bottom"},p.a.createElement(t.a,{className:"".concat(E.a.button," ").concat(E.a.buttonTransparent," mr15"),onClick:je},"\u53D1\u9001\u81F3"))))),p.a.createElement(re,null),p.a.createElement(N.a,{editData:D,visible:oe,onCancel:function(){return X(!1)},onOk:We}),p.a.createElement(te,{dispatch:ut,videoDetail:Xe,visible:Se,onClose:function(){return Ue(!1)}}))},q=Object(c.a)(function(ct){var Ye=ct.user,He=ct.videoDetail,Xe=ct.loading,Ge=ct.globalSetting;return{user:Ye,videoDetail:He,globalSetting:Ge,loading:Xe}})(J),he=de("R9oj"),Y=de("ECub"),W=de("sRBo"),me=de("kaz8"),ge=de("J66h"),Ae=de("hgre"),I=de("9Bee"),e=de("vZDz"),n=de.n(e),C=de("9VGf"),b=function(Ye){var He=Ye.videoDetail,Xe=Ye.globalSetting,Ge=Ye.loading,at=Ye.dispatch,ut=Object(r.a)(Ye,["videoDetail","globalSetting","loading","dispatch"]),nt=He.queryParams,ft=He.selectParams,yt=He.videoList,st=nt.subject_id,gt=nt.videoId,xt=ft.checkBoxValue,_t=ft.radioValue,wt={videoId:gt},oe={query:nt},X=Object(O.useRef)(),m=Object(O.useRef)(),R=Object(O.useRef)(),D=Object(O.useRef)(5),B=He.detail||{},ne=B.video_item;Object(C.a)(Object(f.a)(w.a.mark(function et(){return w.a.wrap(function(Ve){for(;;)switch(Ve.prev=Ve.next){case 0:if(!m.current){Ve.next=5;break}return console.log("videoRef lastUpdatedTime: ",X.current.getLastUpdatedTime()),console.log(X.current),Ve.next=5,we();case 5:case"end":return Ve.stop()}},et)})),D.current*1e3);var we=function(){var We=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Ve=We?{is_f:1}:{};return Object($.n)(Object(Re.a)(Object(Re.a)({},Ve),{id:wt.videoId,point:X.current.getLastUpdatedTime(),total:X.current.getDuration()}))},Se=function(We){return console.log("handlLogWatchHistory: ",We),We.ed==="1"&&(m.current=!1,we(!0)),!m.current&&!We.ed&&(m.current=!0,D.current=X.current.getDuration()<=5?1:5,we()),at({type:"userDetail/logWatchHistory",payload:We})},Ue=function(){m.current=!1},Fe=function(){m.current=!0},Ne=function(){R.current=5,k.a.confirm({width:600,centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u8BF7\u7ED9\u672C\u89C6\u9891\u8BC4\u5206",content:p.a.createElement("div",{className:"tc font14"},p.a.createElement(l.a,{defaultValue:R.current,onChange:function(Ve){return R.current=Ve},className:n.a.modalRating})),onOk:function(){var We=Object(f.a)(w.a.mark(function ze(){var tt;return w.a.wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:return Je.next=2,Object($.l)({id:wt.videoId,star:R.current});case 2:tt=Je.sent,tt.status===0&&at({type:"videoDetail/getVideoDetail",payload:Object(Re.a)({id:wt.videoId},lt(oe.query))});case 4:case"end":return Je.stop()}},ze)}));function Ve(){return We.apply(this,arguments)}return Ve}()})},Qe=function(We){var Ve=window.filterVideoSign,ze=Ve.findIndex(function(pt){return pt.id===gt}),tt=ze===Ve.length-1;if(tt)return;var it=Ve[ze+1].id,Je=Ve[ze+1].can_view,ot=Ve[ze+1].link,ht=Ve[ze+1].is_public;if(window.checkBoxValue){if(ot){window.open(ot);return}if(!Je){k.a.info({centered:!0,width:400,okText:"\u77E5\u9053\u5566",icon:null,content:p.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}if(!ht){k.a.info({centered:!0,width:400,okText:"\u77E5\u9053\u5566",icon:null,content:p.a.createElement("div",{className:"tc font14"},"\u4E0B\u4E00\u6761\u89C6\u9891\u6682\u672A\u516C\u5F00\uFF0C\u656C\u8BF7\u671F\u5F85")});return}at({type:"videoDetail/handleList",payload:{videoId:it}}),window.videoTimer=setTimeout(function(){We.current.play()},2e3)}},$e=function(We,Ve){if(We==="checkBox"){var ze=Ve.target.checked;window.checkBoxValue=ze,at({type:"videoDetail/setSelectValue",payload:{radioValue:_t,checkBoxValue:ze}});return}at({type:"videoDetail/setSelectValue",payload:{checkBoxValue:xt,radioValue:Ve.target.value}})},je=function(){var We=yt.findIndex(function(ze){return ze.id===gt}),Ve=We===yt.length-1;return Ve?p.a.createElement("div",null,"\u5F53\u524D\u5DF2\u662F\u6700\u540E\u4E00\u4E2A\u89C6\u9891"):p.a.createElement(me.a,{onChange:function(tt){$e("checkBox",tt)},checked:xt},"\u81EA\u52A8\u64AD\u653E\u4E0B\u4E00\u4E2A\u89C6\u9891")};return p.a.createElement("aside",{className:n.a.contentWrap},p.a.createElement("aside",{className:n.a.wrap},p.a.createElement("header",null,(ne==null?void 0:ne.description)&&p.a.createElement("span",{className:n.a.introName},"\u7B80\u4ECB"),Object(G.N)(ne==null?void 0:ne.my_star)?p.a.createElement(t.a,{type:"primary",ghost:!0,onClick:Ne},"\u8BC4\u5206"):p.a.createElement("span",null,p.a.createElement("span",{className:"ml100 mr10 font14"},"\u6211\u7684\u8BC4\u5206\uFF1A"),p.a.createElement(l.a,{value:ne==null?void 0:ne.my_star,disabled:!0,className:n.a.rating}))),p.a.createElement("div",{className:"mt20"},p.a.createElement(I.a,{value:(ne==null?void 0:ne.description)||""})),!(ne!=null&&ne.can_edit)&&!(ne!=null&&ne.is_public)?p.a.createElement(Y.a,{description:"\u5F53\u524D\u89C6\u9891\u6682\u672A\u516C\u5F00\uFF0C\u656C\u8BF7\u671F\u5F85"}):p.a.createElement(Ae.a,{ref:X,startTime:ne==null?void 0:ne.last_point,src:ne!=null&&ne.is_link?ne==null?void 0:ne.link:(ne==null?void 0:ne.play_url)&&ge.Base64.decode(ne==null?void 0:ne.play_url),videoId:ne==null?void 0:ne.video_id,logWatchHistory:Se,handlePause:Ue,handlePlay:Fe,videoSpeed:_t,handlePlayEnded:Qe}),!(ne!=null&&ne.can_edit)&&!(ne!=null&&ne.is_public)?null:p.a.createElement("div",{className:n.a.footer},p.a.createElement("div",{className:n.a.checkBox},je()),p.a.createElement("div",{className:n.a.radioGroup},p.a.createElement(y.a.Group,{onChange:function(We){$e("radio",We)},value:_t},p.a.createElement(y.a,{value:1},"1.0X"),p.a.createElement(y.a,{value:1.5},"1.5X"),p.a.createElement(y.a,{value:2},"2.0X"))))))},S=Object(c.a)(function(ct){var Ye=ct.videoDetail,He=ct.loading,Xe=ct.globalSetting;return{videoDetail:Ye,globalSetting:Xe,loading:He}})(b),ee=de("MRWH"),fe=de.n(ee),Me=de("V0Rq"),Oe=de("m3rI"),Le=[{name:"\u5B9E\u8DF5\u9879\u76EE",type:"Shixun",icon:p.a.createElement("i",{className:"iconfont icon-shixun2 font20"})},{name:"\u89C6\u9891\u9879\u76EE",type:"VideoItem",icon:p.a.createElement("i",{className:"iconfont icon-shipin font20"})},{name:"\u6559\u5B66\u8BFE\u4EF6",type:"Attachment",icon:p.a.createElement("i",{className:"iconfont icon-jiaoxueanli font20"})},{name:"\u7A7A\u76EE\u5F55",type:"StageCatalog",icon:p.a.createElement("i",{className:"iconfont icon-kongbai font20"})}],Be=function(Ye){var He=Ye.dispatch,Xe=Ye.videoDetail,Ge=Ye.user,at=Object(r.a)(Ye,["dispatch","videoDetail","user"]),ut=Xe.queryParams,nt=Xe.stages,ft=Xe.videoList,yt=Xe.cust_seq,st=ut.subject_id,gt=ut.videoId,xt=ut.course_id;Object(O.useEffect)(function(){He(st?{type:"videoDetail/getStageData",payload:{subject_id:st}}:{type:"videoDetail/getCourseStageData",payload:{coursesId:xt}})},[]);var _t=function(){var we=Object(f.a)(w.a.mark(function Se(Ue,Fe){var Ne;return w.a.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:if(He({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF0C\u8BF7\u7A0D\u540E..."}}),!Fe){$e.next=7;break}return $e.next=4,Object(se.z)({id:Ue});case 4:$e.t0=$e.sent,$e.next=10;break;case 7:return $e.next=9,Object(se.A)({id:Ue});case 9:$e.t0=$e.sent;case 10:if(Ne=$e.t0,He({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),!(Ne!=null&&Ne.game_identifier||Ne!=null&&Ne.identifier)){$e.next=15;break}return Object(G.Q)(Fe?"/tasks/".concat(Ne==null?void 0:Ne.identifier,"/jupyter"):"/tasks/".concat(Ne.game_identifier)),$e.abrupt("return");case 15:(Ne==null?void 0:Ne.status)===2?oe(Ne==null?void 0:Ne.message):(Ne==null?void 0:Ne.status)===3&&wt(Ne==null?void 0:Ne.message);case 16:case"end":return $e.stop()}},Se)}));return function(Ue,Fe){return we.apply(this,arguments)}}(),wt=function(Se){k.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:p.a.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",Se,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},oe=function we(Se){var Ue;Se=(Ue=Se)!==null&&Ue!==void 0&&Ue.includes(".json")?Se:"".concat(Se,".json"),k.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:p.a.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:function(){var Fe=Object(f.a)(w.a.mark(function Qe(){var $e,je;return w.a.wrap(function(We){for(;;)switch(We.prev=We.next){case 0:return We.next=2,Object(Me.S)({url:Se});case 2:if($e=We.sent,$e){We.next=5;break}return We.abrupt("return");case 5:return L.b.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF01"),We.next=8,Object(se.A)({id:$e.shixun_identifier});case 8:if(je=We.sent,!(je!=null&&je.game_identifier)){We.next=12;break}return Object(G.Q)("/tasks/".concat(je.game_identifier)),We.abrupt("return");case 12:(je==null?void 0:je.status)===2?we(je==null?void 0:je.message):(je==null?void 0:je.status)===3&&wt(je==null?void 0:je.message);case 13:case"end":return We.stop()}},Qe)}));function Ne(){return Fe.apply(this,arguments)}return Ne}()})},X=Xe.detail||{},m=X.video_item,R=function(Se){if((Se==null?void 0:Se.item_type)==="StageCatalog")return;clearTimeout(window.videoTimer);var Ue=Se.id,Fe=Se.item_type,Ne=Se.identifier,Qe=Se.is_jupyter,$e=Se.url,je=Se.link;if(Fe==="VideoItem"&&!je){var et,We;if(!((et=Ge.userInfo)!==null&&et!==void 0&&et.admin)&&!((We=Ge.userInfo)!==null&&We!==void 0&&We.business)&&!Se.can_view){k.a.info({centered:!0,width:400,okText:"\u77E5\u9053\u5566",icon:null,content:p.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}He({type:"videoDetail/getVideoDetail",payload:Object(Re.a)(Object(Re.a)({id:Ue},ut),{},{videoId:Ue}),callback:function(ze){if(ze&&ze.video_item&&!ze.video_item.can_edit&&!Se.is_public){k.a.info({centered:!0,width:400,okText:"\u77E5\u9053\u5566",icon:null,content:p.a.createElement("div",{className:"tc font14"},"\u5F53\u524D\u89C6\u9891\u6682\u672A\u516C\u5F00\uFF0C\u656C\u8BF7\u671F\u5F85")});return}He({type:"videoDetail/handleList",payload:{videoId:Ue}})}});return}if(Fe==="VideoItem"&&!!je){Se.link&&Object($.n)({is_f:1,id:Se.id,point:0,total:0}),window.open(je);return}if(Fe==="Shixun"){_t(Ne,Qe);return}if(Fe==="Attachment"){Object(G.t)(Se.name,Oe.a.API_SERVER+Se.url);return}window.open(Oe.a.IMG_SERVER+$e)},D=function(Se){var Ue=["\u96F6","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D"],Fe=["","\u5341","\u767E","\u5343","\u4E07"];Se=parseInt(Se);var Ne=function(et){for(var We=et.toString().split("").reverse(),Ve="",ze=0;ze<We.length;ze++)Ve=(ze==0&&We[ze]==0||ze>0&&We[ze]==0&&We[ze-1]==0?"":Ue[We[ze]]+(We[ze]==0?Fe[0]:Fe[ze]))+Ve;return Ve},Qe=Math.floor(Se/1e4),$e=Se%1e4;return $e.toString().length<4&&($e="0"+$e),Qe?Ne(Qe)+"\u4E07"+Ne($e):Ne(Se)},B=function(Se,Ue,Fe,Ne){var Qe=Se.name,$e=Se.item_type,je=Se.id,et="".concat(Ue+1,"-").concat(Fe+1,"-").concat(Ne+1),We=Le.find(function(tt){return tt.type===$e}).icon,Ve=fe.a.brght,ze=gt===je?"".concat(Ve," ").concat(fe.a.active):Ve;return p.a.createElement("div",{key:et,onClick:function(){return R(Se)},className:ze,style:{paddingLeft:52}},p.a.createElement("span",{className:fe.a.s1},We),!!yt&&p.a.createElement("span",{className:fe.a.s2},et),p.a.createElement("span",{className:fe.a.s3},"\u203B ",Qe))},ne=function(Se,Ue,Fe){var Ne=Se.name,Qe=Se.item_type,$e=Se.id,je=Se.children,et="".concat(Ue+1,"-").concat(Fe+1),We=Le.find(function(tt){return tt.type===Qe}).icon,Ve=fe.a.brght,ze=gt===$e?"".concat(Ve," ").concat(fe.a.active):Ve;return p.a.createElement(O.Fragment,{key:et},p.a.createElement("div",{onClick:function(){return R(Se)},className:ze},p.a.createElement("span",{className:fe.a.s1},We),!!yt&&p.a.createElement("span",{className:fe.a.s2},et),p.a.createElement("span",{className:fe.a.s3},"\u203B ",Ne)),!!je.length&&je.map(function(tt,it){return B(tt,Ue,Fe,it)}))};return p.a.createElement("aside",{className:fe.a.list},nt.map(function(we,Se){var Ue=we.stage_name,Fe=we.shixuns_list,Ne=Fe===void 0?[]:Fe,Qe=we.items,$e=Qe===void 0?[]:Qe,je=Object(be.a)($e);return p.a.createElement("aside",{key:Se,className:fe.a.box},p.a.createElement("div",{className:fe.a.title},D(Se+1),"\u3001",Ue),je.map(function(et,We){return ne(et,Se,We)}),Se!==nt.length-1&&p.a.createElement("div",{className:fe.a.line}))}))},Ke=Object(c.a)(function(ct){var Ye=ct.user,He=ct.videoDetail,Xe=ct.loading,Ge=ct.globalSetting;return{user:Ye,videoDetail:He,globalSetting:Ge,loading:Xe}})(Be),Pe=de("lppi"),Te=de.n(Pe),ye=de("fWQN"),xe=function ct(){var Ye=this;Object(ye.a)(this,ct),this.conversion_getDPI=function(){var He=new Array;if(window.screen.deviceXDPI)He[0]=window.screen.deviceXDPI,He[1]=window.screen.deviceXDPI;else{var Xe=document.createElement("DIV");Xe.style.cssText="width:1in;height:1in;position:absolute;left:0px;top:0px;z-index:99;visibility:hidden",document.body.appendChild(Xe),He[0]=parseInt(String(Xe.offsetWidth)),He[1]=parseInt(String(Xe.offsetHeight)),Xe.parentNode.removeChild(Xe)}return He},this.pxConversionMm=function(He){var Xe=He/Ye.conversion_getDPI()[0],Ge=Xe*25.4;return Ge},this.mmConversionPx=function(He){var Xe=He/25.4,Ge=Xe*Ye.conversion_getDPI()[0];return Ge}},Ee=new xe,ie=Ee.mmConversionPx(297),ce=function(Ye){var He=Ye.url,Xe=Object(O.useState)(""),Ge=Object(v.a)(Xe,2),at=Ge[0],ut=Ge[1],nt=Object(O.useState)(!0),ft=Object(v.a)(nt,2),yt=ft[0],st=ft[1];return Object(O.useEffect)(function(){var gt="".concat(Oe.a.API_SERVER).concat(He);at!==gt&&(st(!1),setTimeout(function(){st(!0)},500)),ut(gt)},[He]),at?p.a.createElement("div",{className:Te.a.pdfContainer},p.a.createElement("div",{className:Te.a.loading},p.a.createElement(De.a,{tip:"\u6B63\u5728\u52A0\u8F7D"})),yt&&p.a.createElement("embed",{src:at,height:ie,width:"100%"})):p.a.createElement(p.a.Fragment,null)},pe=ce,le=de("b57q"),Ce=de.n(le),Ie=function(Ye){var He=Ye.name,Xe=Ye.url;return p.a.createElement("div",{className:Ce.a.officeContainer},p.a.createElement(t.a,{type:"primary",onClick:function(){Object(G.t)(He,Xe)}},"\u70B9\u51FB\u4E0B\u8F7D\u6587\u4EF6"))},qe=Ie,lt=function(Ye){var He=Ye.subject_id;return{subject_id:He,course_id:He}},mt=function(Ye){var He=Ye.videoDetail,Xe=Ye.globalSetting,Ge=Ye.loading,at=Ye.dispatch,ut=Object(r.a)(Ye,["videoDetail","globalSetting","loading","dispatch"]),nt=He.queryParams,ft=He.videoList,yt=He.attachmentList,st=He.active,gt=nt.subject_id,xt=nt.videoId,_t={videoId:xt};Object(O.useEffect)(function(){if(st){var oe=st.item_type,X=st.id;oe==="VideoItem"&&at({type:"videoDetail/getVideoDetail",payload:Object(Re.a)(Object(Re.a)({},nt),{},{id:X})})}},[st.id]),Object(O.useEffect)(function(){var oe,X;Object(G.V)((oe=He.detail)===null||oe===void 0||((X=oe.video_item)===null||X===void 0)?void 0:X.name)},[He]);var wt={width:1200};return st&&st.item_type==="Attachment"&&st.content_type==="application/pdf"&&(wt={width:1250,marginLeft:(document.body.clientWidth-1200)/2}),console.log("active:",st),p.a.createElement(De.a,{spinning:!1},p.a.createElement("section",{className:s.a.bg},p.a.createElement(q,null),p.a.createElement("div",{className:s.a.container,style:wt},p.a.createElement(Ke,null),st&&st.item_type==="VideoItem"&&p.a.createElement(S,null),st&&st.item_type==="Attachment"&&st.content_type==="application/pdf"&&st.url&&p.a.createElement(pe,{url:st.url}),st&&st.item_type==="Attachment"&&["application/msword","application/vnd.ms-excel","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.openxmlformats-officedocument.wordprocessingml.document"].includes(st.content_type)&&st.url&&p.a.createElement(qe,{url:st.url,name:st.name}))))},dt=Ze.default=Object(c.a)(function(ct){var Ye=ct.videoDetail,He=ct.loading,Xe=ct.globalSetting;return{videoDetail:Ye,globalSetting:Xe,loading:He}})(mt)},"9Bee":function(rt,Ze,de){"use strict";var ke=de("k1fw"),De=de("tJVT"),Re=de("q1tI"),r=de.n(Re),O=de("vg9a"),p=de("DlQD"),c=de.n(p),d=de("rUJ1");function s(G,V){var T=G.match(/^(\s+)(?:```)/);if(T===null)return V;var U=T[1];return V.split(`
`).map(function(H){var K=H.match(/^\s+/);if(K===null)return H;var be=Object(De.a)(K,1),ae=be[0];return ae.length>=U.length?H.slice(U.length):H}).join(`
`)}var i=[],h=["<ul>"],o=new c.a.Renderer,t=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function a(){i.length=0,h=["<ul>"]}var l={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function f(G,V,T,U){if(V>=G.length||G[V].level<=T)return V;var H=G[V];U.push("<li><a href='#"+H.anchor+"'>"+H.text+"</a>"),V++;var K=[];return V=f(G,V,H.level,K),K.length>0&&(U.push("<ul>"),K.forEach(function(be){U.push(be)}),U.push("</ul>")),U.push("</li>"),V=f(G,V,T,U),V}function v(){return f(i,0,0,h),h.push("</ul>"),h.join("")}var u={heading:function(V){var T=t.exec(V);if(T)return{type:"heading",raw:T[0],depth:T[1].length,text:T[2]}},fences:function(V){var T=this.rules.block.fences.exec(V);if(T){var U=T[0],H=s(U,T[3]||""),K=T[2]?T[2].trim():T[2];if(["latex","katex","math"].indexOf(K)>=0){var be=E(),ae=H;H=be,x[be]={type:"block",expression:ae}}return{type:"code",raw:U,lang:K,text:H}}}},w=/(?:\${2})([^\n`]+?)(?:\${2})/gi,A=0,E=function(){return"__special_katext_id_".concat(A++,"__")},x={};function k(){return x}function g(){A=0,x={}}function y(G){return G=G.replace(w,function(V,T){var U=E();return x[U]={type:"inline",expression:T},U}),G}var j=o.listitem;o.listitem=function(G){return j(y(G))};var L=o.paragraph;o.paragraph=function(G){return L(y(G))};var _=o.tablecell;o.tablecell=function(G,V){return _(y(G),V)},o.code=function(G,V,T){var U=(V||"").match(/\S*/)[0];return U?["latex","katex","math"].indexOf(U)>=0?"<p class='editormd-tex'>".concat(G,"</p>"):'<pre class="prettyprint linenums"><code class="language-'.concat(V,'">').concat(T?G:Object(d.escape)(G,!0),`</code></pre>
`):'<pre class="prettyprint linenums"><code>'+(T?G:Object(d.escape)(G,!0))+"</code></pre>"},o.heading=function(G,V,T){var U=this.options.headerPrefix+T.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return i.push({anchor:U,level:V,text:G}),"<h"+V+' id="'+U+'">'+G+"</h"+V+">"},c.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),c.a.use({tokenizer:u,renderer:o});var z=c.a,M=de("SJMd"),P=de("ulZh"),F=de.n(P),$=de("m3rI"),Z=de("Oy/b"),Q=de("p5ED"),re=/<pre[^>]*>/g;function N(G){var V=document.createElement("div");return V.innerHTML=G,V.childNodes.length===0?"":V.childNodes[0].nodeValue}var ue=Ze.a=function(G){var V=G.value,T=V===void 0?"":V,U=G.className,H=G.showTextOnly,K=G.showLines,be=G.style,ae=be===void 0?{}:be,_e=G.stylesPrev,se=_e===void 0?{}:_e,ve=String(T),te=Object(Re.useState)(""),J=Object(De.a)(te,2),q=J[0],he=J[1],Y=Object(Re.useMemo)(function(){try{var Ae=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,I=/\"\/api\/attachments\/|\"\/attachments\/download\//g,e=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;ve=ve.replace(Ae,"("+$.a.API_SERVER+"/api/attachments/").replace(I,'"'+$.a.API_SERVER+"/api/attachments/").replace(e,'"'+$.a.API_SERVER+"/files/uploads/").replace(/\r\n/g,`
`),ve=ve.replace(new RegExp("(?<!\\n)\\n(?!\\n)","g"),`
`)}catch(S){}var n=z(ve),C=k();if(ve.match(/\[TOC\]/)&&(n=n.replace("<p>[TOC]</p>",v()),a()),n=n.replace(/(__special_katext_id_\d+__)/g,function(S,ee){var fe=C[ee],Me=fe.type,Oe=fe.expression;return Object(Z.renderToString)(N(Oe)||"",{displayMode:Me==="block",throwOnError:!1,output:"html"})}),n=n.replace(/▁/g,"\u2581\u2581\u2581"),g(),H){var b=document.createElement("div");return b.innerHTML=n,b.innerText}return setTimeout(function(){return ge()},500),n},[ve]),W=Object(Re.useRef)();l.WebkitLineClamp=K,K&&(ae=Object(ke.a)(Object(ke.a)({},ae),l));function me(Ae){var I=Ae.target;if(I.tagName.toUpperCase()==="A"){var e=I.getAttribute("href");if(e.indexOf("office")>-1)Ae.preventDefault(),he(e);else if(e.startsWith("#")){Ae.preventDefault();var n=document.getElementById(e.replace("#",""));n&&n.scrollIntoView(!0)}}}var ge=function(){var I,e=(I=W.current)===null||I===void 0?void 0:I.querySelectorAll("video");e==null||e.forEach(function(n){if(n.oncontextmenu=function(){return!1},n.src.indexOf(".m3u8")>-1&&!n.canPlayType("application/vnd.apple.mpegurl")){if(F.a.isSupported()){var C=new F.a;C.loadSource(n.src),C.attachMedia(n)}}})};return Object(Re.useEffect)(function(){if(W.current&&Y&&(Y.match(re)&&window.PR.prettyPrint()),W.current)return W.current.addEventListener("click",me),function(){W.current.removeEventListener("click",me),g(),a()}},[Y,W.current,me]),r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{ref:W,style:Object(ke.a)({},ae),className:"".concat(U||""," markdown-body "),dangerouslySetInnerHTML:{__html:Y}}),r.a.createElement(Q.a,{close:!0,data:q,type:q!=null&&q.length?"office":"",style:Object(ke.a)({},se),onClose:function(){return he("")}}))}},"9VGf":function(rt,Ze,de){"use strict";de.d(Ze,"a",function(){return Re});var ke=de("q1tI"),De=de.n(ke);function Re(r,O){var p=Object(ke.useRef)();Object(ke.useEffect)(function(){p.current=r}),Object(ke.useEffect)(function(){function c(){p.current()}if(O!==null){var d=setInterval(c,O);return function(){return clearInterval(d)}}},[O])}},Aky1:function(rt,Ze,de){"use strict";de.d(Ze,"a",function(){return s});var ke=de("ErOA"),De=de("ppsT"),Re=de.n(De),r="",O,p="";function c(i){d(i)}function d(i){O=new Re.a.Vod({timeout:6e4,partSize:1048576,parallel:5,retryCount:3,retryDuration:2,region:"ap-southeast-1",userId:1829848226361863,enableUploadProgress:!1,addFileSuccess:function(o){console.log("addFileSuccess: "+o.file.name),i.addFileSuccess&&i.addFileSuccess(o),O.startUpload()},onUploadstarted:function(o){var t=o.file.name;if(o.videoId){var f="/api/users/".concat(r,"/video_auths.json");Object(ke.a)(f,{method:"put",body:{video_id:o.videoId,title:t,file_name:t,virtual_classroom_id:p}}).then(function(v){if(v.status==-1){i.onUploadError&&i.onUploadError(o);return}var u=v.data,w=u.UploadAuth,A=u.UploadAddress,E=u.VideoId;O.setUploadAuthAndAddress(o,w,A)}).catch(function(v){O.deleteFile(O._curIndex),O.nextUpload(),console.log(v)})}else{var a="/api/users/".concat(r,"/video_auths.json"),l="";Object(ke.a)(a,{method:"Post",body:{title:l+t,file_name:l+t,virtual_classroom_id:p}}).then(function(v){if(v){var u=v.data,w=u.UploadAuth,A=u.UploadAddress,E=u.VideoId;O.setUploadAuthAndAddress(o,w,A,E)}}).catch(function(v){O.deleteFile(O._curIndex),O.nextUpload(),console.log(v)}),console.log("\u6587\u4EF6\u5F00\u59CB\u4E0A\u4F20...")}},onUploadSucceed:function(o){i.onUploadSucceed&&i.onUploadSucceed(o),console.log("\u6587\u4EF6\u4E0A\u4F20\u6210\u529F!")},onUploadFailed:function(o,t,a){i.onUploadFailed&&i.onUploadFailed(o),console.log("\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25!")},onUploadCanceled:function(o,t,a){console.log("\u6587\u4EF6\u4E0A\u4F20\u5DF2\u6682\u505C!")},onUploadProgress:function(o,t,a){i.onUploadProgress&&i.onUploadProgress(o,t,a);var l=Math.ceil(a*100);console.log("\u6587\u4EF6\u4E0A\u4F20\u4E2D...")},onUploadTokenExpired:function(o){console.log("\u6587\u4EF6\u4E0A\u4F20\u8D85\u65F6!");var t="/api/users/".concat(r,"/video_auths.json");Object(ke.a)(t,{method:"put",body:{video_id:o.videoId}}).then(function(a){var l=a.data,f=l.UploadAuth;O.resumeUploadWithAuth(f)}).catch(function(a){console.log(a)})},onUploadEnd:function(o){i.onUploadEnd&&i.onUploadEnd(o),console.log("onUploadEnd: uploaded all the files")}}),i.gotUploader&&i.gotUploader(O)}function s(i,h,o){i&&(r=i),h&&(p=h),c(o)}},DlQD:function(rt,Ze,de){(function(ke,De){rt.exports=De()})(this,function(){"use strict";function ke(ye,xe){for(var Ee=0;Ee<xe.length;Ee++){var ie=xe[Ee];ie.enumerable=ie.enumerable||!1,ie.configurable=!0,"value"in ie&&(ie.writable=!0),Object.defineProperty(ye,ie.key,ie)}}function De(ye,xe,Ee){return xe&&ke(ye.prototype,xe),Ee&&ke(ye,Ee),ye}function Re(ye,xe){if(!ye)return;if(typeof ye=="string")return r(ye,xe);var Ee=Object.prototype.toString.call(ye).slice(8,-1);if(Ee==="Object"&&ye.constructor&&(Ee=ye.constructor.name),Ee==="Map"||Ee==="Set")return Array.from(ye);if(Ee==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ee))return r(ye,xe)}function r(ye,xe){(xe==null||xe>ye.length)&&(xe=ye.length);for(var Ee=0,ie=new Array(xe);Ee<xe;Ee++)ie[Ee]=ye[Ee];return ie}function O(ye,xe){var Ee;if(typeof Symbol=="undefined"||ye[Symbol.iterator]==null){if(Array.isArray(ye)||(Ee=Re(ye))||xe&&ye&&typeof ye.length=="number"){Ee&&(ye=Ee);var ie=0;return function(){return ie>=ye.length?{done:!0}:{done:!1,value:ye[ie++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return Ee=ye[Symbol.iterator](),Ee.next.bind(Ee)}function p(ye,xe){return xe={exports:{}},ye(xe,xe.exports),xe.exports}var c=p(function(ye){function xe(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function Ee(ie){ye.exports.defaults=ie}ye.exports={defaults:xe(),getDefaults:xe,changeDefaults:Ee}}),d=c.defaults,s=c.getDefaults,i=c.changeDefaults,h=/[&<>"']/,o=/[&<>"']/g,t=/[<>"']|&(?!#?\w+;)/,a=/[<>"']|&(?!#?\w+;)/g,l={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},f=function(xe){return l[xe]};function v(ye,xe){if(xe){if(h.test(ye))return ye.replace(o,f)}else if(t.test(ye))return ye.replace(a,f);return ye}var u=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function w(ye){return ye.replace(u,function(xe,Ee){return Ee=Ee.toLowerCase(),Ee==="colon"?":":Ee.charAt(0)==="#"?Ee.charAt(1)==="x"?String.fromCharCode(parseInt(Ee.substring(2),16)):String.fromCharCode(+Ee.substring(1)):""})}var A=/(^|[^\[])\^/g;function E(ye,xe){ye=ye.source||ye,xe=xe||"";var Ee={replace:function(ce,pe){return pe=pe.source||pe,pe=pe.replace(A,"$1"),ye=ye.replace(ce,pe),Ee},getRegex:function(){return new RegExp(ye,xe)}};return Ee}var x=/[^\w:]/g,k=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function g(ye,xe,Ee){if(ye){var ie;try{ie=decodeURIComponent(w(Ee)).replace(x,"").toLowerCase()}catch(ce){return null}if(ie.indexOf("javascript:")===0||ie.indexOf("vbscript:")===0||ie.indexOf("data:")===0)return null}xe&&!k.test(Ee)&&(Ee=z(xe,Ee));try{Ee=encodeURI(Ee).replace(/%25/g,"%")}catch(ce){return null}return Ee}var y={},j=/^[^:]+:\/*[^/]*$/,L=/^([^:]+:)[\s\S]*$/,_=/^([^:]+:\/*[^/]*)[\s\S]*$/;function z(ye,xe){y[" "+ye]||(j.test(ye)?y[" "+ye]=ye+"/":y[" "+ye]=$(ye,"/",!0)),ye=y[" "+ye];var Ee=ye.indexOf(":")===-1;return xe.substring(0,2)==="//"?Ee?xe:ye.replace(L,"$1")+xe:xe.charAt(0)==="/"?Ee?xe:ye.replace(_,"$1")+xe:ye+xe}var M={exec:function(){}};function P(ye){for(var xe=1,Ee,ie;xe<arguments.length;xe++){Ee=arguments[xe];for(ie in Ee)Object.prototype.hasOwnProperty.call(Ee,ie)&&(ye[ie]=Ee[ie])}return ye}function F(ye,xe){var Ee=ye.replace(/\|/g,function(pe,le,Ce){for(var Ie=!1,qe=le;--qe>=0&&Ce[qe]==="\\";)Ie=!Ie;return Ie?"|":" |"}),ie=Ee.split(/ \|/),ce=0;if(ie.length>xe)ie.splice(xe);else for(;ie.length<xe;)ie.push("");for(;ce<ie.length;ce++)ie[ce]=ie[ce].trim().replace(/\\\|/g,"|");return ie}function $(ye,xe,Ee){var ie=ye.length;if(ie===0)return"";for(var ce=0;ce<ie;){var pe=ye.charAt(ie-ce-1);if(pe===xe&&!Ee)ce++;else if(pe!==xe&&Ee)ce++;else break}return ye.substr(0,ie-ce)}function Z(ye,xe){if(ye.indexOf(xe[1])===-1)return-1;for(var Ee=ye.length,ie=0,ce=0;ce<Ee;ce++)if(ye[ce]==="\\")ce++;else if(ye[ce]===xe[0])ie++;else if(ye[ce]===xe[1]&&(ie--,ie<0))return ce;return-1}function Q(ye){ye&&ye.sanitize&&!ye.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}var re={escape:v,unescape:w,edit:E,cleanUrl:g,resolveUrl:z,noopTest:M,merge:P,splitCells:F,rtrim:$,findClosingBracket:Z,checkSanitizeDeprecation:Q},N=c.defaults,ue=re.rtrim,G=re.splitCells,V=re.escape,T=re.findClosingBracket;function U(ye,xe,Ee){var ie=xe.href,ce=xe.title?V(xe.title):null,pe=ye[1].replace(/\\([\[\]])/g,"$1");return ye[0].charAt(0)!=="!"?{type:"link",raw:Ee,href:ie,title:ce,text:pe}:{type:"image",raw:Ee,href:ie,title:ce,text:V(pe)}}function H(ye,xe){var Ee=ye.match(/^(\s+)(?:```)/);if(Ee===null)return xe;var ie=Ee[1];return xe.split(`
`).map(function(ce){var pe=ce.match(/^\s+/);if(pe===null)return ce;var le=pe[0];return le.length>=ie.length?ce.slice(ie.length):ce}).join(`
`)}var K=function(){function ye(Ee){this.options=Ee||N}var xe=ye.prototype;return xe.space=function(ie){var ce=this.rules.block.newline.exec(ie);if(ce)return ce[0].length>1?{type:"space",raw:ce[0]}:{raw:`
`}},xe.code=function(ie,ce){var pe=this.rules.block.code.exec(ie);if(pe){var le=ce[ce.length-1];if(le&&le.type==="paragraph")return{raw:pe[0],text:pe[0].trimRight()};var Ce=pe[0].replace(/^ {4}/gm,"");return{type:"code",raw:pe[0],codeBlockStyle:"indented",text:this.options.pedantic?Ce:ue(Ce,`
`)}}},xe.fences=function(ie){var ce=this.rules.block.fences.exec(ie);if(ce){var pe=ce[0],le=H(pe,ce[3]||"");return{type:"code",raw:pe,lang:ce[2]?ce[2].trim():ce[2],text:le}}},xe.heading=function(ie){var ce=this.rules.block.heading.exec(ie);if(ce)return{type:"heading",raw:ce[0],depth:ce[1].length,text:ce[2]}},xe.nptable=function(ie){var ce=this.rules.block.nptable.exec(ie);if(ce){var pe={type:"table",header:G(ce[1].replace(/^ *| *\| *$/g,"")),align:ce[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:ce[3]?ce[3].replace(/\n$/,"").split(`
`):[],raw:ce[0]};if(pe.header.length===pe.align.length){var le=pe.align.length,Ce;for(Ce=0;Ce<le;Ce++)/^ *-+: *$/.test(pe.align[Ce])?pe.align[Ce]="right":/^ *:-+: *$/.test(pe.align[Ce])?pe.align[Ce]="center":/^ *:-+ *$/.test(pe.align[Ce])?pe.align[Ce]="left":pe.align[Ce]=null;for(le=pe.cells.length,Ce=0;Ce<le;Ce++)pe.cells[Ce]=G(pe.cells[Ce],pe.header.length);return pe}}},xe.hr=function(ie){var ce=this.rules.block.hr.exec(ie);if(ce)return{type:"hr",raw:ce[0]}},xe.blockquote=function(ie){var ce=this.rules.block.blockquote.exec(ie);if(ce){var pe=ce[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:ce[0],text:pe}}},xe.list=function(ie){var ce=this.rules.block.list.exec(ie);if(ce){for(var pe=ce[0],le=ce[2],Ce=le.length>1,Ie=le[le.length-1]===")",qe={type:"list",raw:pe,ordered:Ce,start:Ce?+le.slice(0,-1):"",loose:!1,items:[]},lt=ce[0].match(this.rules.block.item),mt=!1,dt,ct,Ye,He,Xe,Ge,at,ut=lt.length,nt=0;nt<ut;nt++)dt=lt[nt],pe=dt,ct=dt.length,dt=dt.replace(/^ *([*+-]|\d+[.)]) */,""),~dt.indexOf(`
`)&&(ct-=dt.length,dt=this.options.pedantic?dt.replace(/^ {1,4}/gm,""):dt.replace(new RegExp("^ {1,"+ct+"}","gm"),"")),nt!==ut-1&&(Ye=this.rules.block.bullet.exec(lt[nt+1])[0],(Ce?Ye.length===1||!Ie&&Ye[Ye.length-1]===")":Ye.length>1||this.options.smartLists&&Ye!==le)&&(He=lt.slice(nt+1).join(`
`),qe.raw=qe.raw.substring(0,qe.raw.length-He.length),nt=ut-1)),Xe=mt||/\n\n(?!\s*$)/.test(dt),nt!==ut-1&&(mt=dt.charAt(dt.length-1)===`
`,Xe||(Xe=mt)),Xe&&(qe.loose=!0),Ge=/^\[[ xX]\] /.test(dt),at=void 0,Ge&&(at=dt[1]!==" ",dt=dt.replace(/^\[[ xX]\] +/,"")),qe.items.push({type:"list_item",raw:pe,task:Ge,checked:at,loose:Xe,text:dt});return qe}},xe.html=function(ie){var ce=this.rules.block.html.exec(ie);if(ce)return{type:this.options.sanitize?"paragraph":"html",raw:ce[0],pre:!this.options.sanitizer&&(ce[1]==="pre"||ce[1]==="script"||ce[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(ce[0]):V(ce[0]):ce[0]}},xe.def=function(ie){var ce=this.rules.block.def.exec(ie);if(ce){ce[3]&&(ce[3]=ce[3].substring(1,ce[3].length-1));var pe=ce[1].toLowerCase().replace(/\s+/g," ");return{tag:pe,raw:ce[0],href:ce[2],title:ce[3]}}},xe.table=function(ie){var ce=this.rules.block.table.exec(ie);if(ce){var pe={type:"table",header:G(ce[1].replace(/^ *| *\| *$/g,"")),align:ce[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:ce[3]?ce[3].replace(/\n$/,"").split(`
`):[]};if(pe.header.length===pe.align.length){pe.raw=ce[0];var le=pe.align.length,Ce;for(Ce=0;Ce<le;Ce++)/^ *-+: *$/.test(pe.align[Ce])?pe.align[Ce]="right":/^ *:-+: *$/.test(pe.align[Ce])?pe.align[Ce]="center":/^ *:-+ *$/.test(pe.align[Ce])?pe.align[Ce]="left":pe.align[Ce]=null;for(le=pe.cells.length,Ce=0;Ce<le;Ce++)pe.cells[Ce]=G(pe.cells[Ce].replace(/^ *\| *| *\| *$/g,""),pe.header.length);return pe}}},xe.lheading=function(ie){var ce=this.rules.block.lheading.exec(ie);if(ce)return{type:"heading",raw:ce[0],depth:ce[2].charAt(0)==="="?1:2,text:ce[1]}},xe.paragraph=function(ie){var ce=this.rules.block.paragraph.exec(ie);if(ce)return{type:"paragraph",raw:ce[0],text:ce[1].charAt(ce[1].length-1)===`
`?ce[1].slice(0,-1):ce[1]}},xe.text=function(ie,ce){var pe=this.rules.block.text.exec(ie);if(pe){var le=ce[ce.length-1];return le&&le.type==="text"?{raw:pe[0],text:pe[0]}:{type:"text",raw:pe[0],text:pe[0]}}},xe.escape=function(ie){var ce=this.rules.inline.escape.exec(ie);if(ce)return{type:"escape",raw:ce[0],text:V(ce[1])}},xe.tag=function(ie,ce,pe){var le=this.rules.inline.tag.exec(ie);if(le)return!ce&&/^<a /i.test(le[0])?ce=!0:ce&&/^<\/a>/i.test(le[0])&&(ce=!1),!pe&&/^<(pre|code|kbd|script)(\s|>)/i.test(le[0])?pe=!0:pe&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(le[0])&&(pe=!1),{type:this.options.sanitize?"text":"html",raw:le[0],inLink:ce,inRawBlock:pe,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(le[0]):V(le[0]):le[0]}},xe.link=function(ie){var ce=this.rules.inline.link.exec(ie);if(ce){var pe=T(ce[2],"()");if(pe>-1){var le=ce[0].indexOf("!")===0?5:4,Ce=le+ce[1].length+pe;ce[2]=ce[2].substring(0,pe),ce[0]=ce[0].substring(0,Ce).trim(),ce[3]=""}var Ie=ce[2],qe="";if(this.options.pedantic){var lt=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Ie);lt?(Ie=lt[1],qe=lt[3]):qe=""}else qe=ce[3]?ce[3].slice(1,-1):"";Ie=Ie.trim().replace(/^<([\s\S]*)>$/,"$1");var mt=U(ce,{href:Ie&&Ie.replace(this.rules.inline._escapes,"$1"),title:qe&&qe.replace(this.rules.inline._escapes,"$1")},ce[0]);return mt}},xe.reflink=function(ie,ce){var pe;if((pe=this.rules.inline.reflink.exec(ie))||(pe=this.rules.inline.nolink.exec(ie))){var le=(pe[2]||pe[1]).replace(/\s+/g," ");if(le=ce[le.toLowerCase()],!le||!le.href){var Ce=pe[0].charAt(0);return{type:"text",raw:Ce,text:Ce}}var Ie=U(pe,le,pe[0]);return Ie}},xe.strong=function(ie,ce,pe){pe===void 0&&(pe="");var le=this.rules.inline.strong.start.exec(ie);if(le&&(!le[1]||le[1]&&(pe===""||this.rules.inline.punctuation.exec(pe)))){ce=ce.slice(-1*ie.length);var Ce=le[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;Ce.lastIndex=0;for(var Ie;(le=Ce.exec(ce))!=null;)if(Ie=this.rules.inline.strong.middle.exec(ce.slice(0,le.index+3)),Ie)return{type:"strong",raw:ie.slice(0,Ie[0].length),text:ie.slice(2,Ie[0].length-2)}}},xe.em=function(ie,ce,pe){pe===void 0&&(pe="");var le=this.rules.inline.em.start.exec(ie);if(le&&(!le[1]||le[1]&&(pe===""||this.rules.inline.punctuation.exec(pe)))){ce=ce.slice(-1*ie.length);var Ce=le[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;Ce.lastIndex=0;for(var Ie;(le=Ce.exec(ce))!=null;)if(Ie=this.rules.inline.em.middle.exec(ce.slice(0,le.index+2)),Ie)return{type:"em",raw:ie.slice(0,Ie[0].length),text:ie.slice(1,Ie[0].length-1)}}},xe.codespan=function(ie){var ce=this.rules.inline.code.exec(ie);if(ce){var pe=ce[2].replace(/\n/g," "),le=/[^ ]/.test(pe),Ce=pe.startsWith(" ")&&pe.endsWith(" ");return le&&Ce&&(pe=pe.substring(1,pe.length-1)),pe=V(pe,!0),{type:"codespan",raw:ce[0],text:pe}}},xe.br=function(ie){var ce=this.rules.inline.br.exec(ie);if(ce)return{type:"br",raw:ce[0]}},xe.del=function(ie){var ce=this.rules.inline.del.exec(ie);if(ce)return{type:"del",raw:ce[0],text:ce[1]}},xe.autolink=function(ie,ce){var pe=this.rules.inline.autolink.exec(ie);if(pe){var le,Ce;return pe[2]==="@"?(le=V(this.options.mangle?ce(pe[1]):pe[1]),Ce="mailto:"+le):(le=V(pe[1]),Ce=le),{type:"link",raw:pe[0],text:le,href:Ce,tokens:[{type:"text",raw:le,text:le}]}}},xe.url=function(ie,ce){var pe;if(pe=this.rules.inline.url.exec(ie)){var le,Ce;if(pe[2]==="@")le=V(this.options.mangle?ce(pe[0]):pe[0]),Ce="mailto:"+le;else{var Ie;do Ie=pe[0],pe[0]=this.rules.inline._backpedal.exec(pe[0])[0];while(Ie!==pe[0]);le=V(pe[0]),pe[1]==="www."?Ce="http://"+le:Ce=le}return{type:"link",raw:pe[0],text:le,href:Ce,tokens:[{type:"text",raw:le,text:le}]}}},xe.inlineText=function(ie,ce,pe){var le=this.rules.inline.text.exec(ie);if(le){var Ce;return ce?Ce=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(le[0]):V(le[0]):le[0]:Ce=V(this.options.smartypants?pe(le[0]):le[0]),{type:"text",raw:le[0],text:Ce}}},ye}(),be=re.noopTest,ae=re.edit,_e=re.merge,se={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|<![A-Z][\\s\\S]*?>\\n*|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>\\n*|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:be,table:be,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};se._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,se._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,se.def=ae(se.def).replace("label",se._label).replace("title",se._title).getRegex(),se.bullet=/(?:[*+-]|\d{1,9}[.)])/,se.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,se.item=ae(se.item,"gm").replace(/bull/g,se.bullet).getRegex(),se.list=ae(se.list).replace(/bull/g,se.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+se.def.source+")").getRegex(),se._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",se._comment=/<!--(?!-?>)[\s\S]*?-->/,se.html=ae(se.html,"i").replace("comment",se._comment).replace("tag",se._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),se.paragraph=ae(se._paragraph).replace("hr",se.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",se._tag).getRegex(),se.blockquote=ae(se.blockquote).replace("paragraph",se.paragraph).getRegex(),se.normal=_e({},se),se.gfm=_e({},se.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n *([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n *\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),se.gfm.nptable=ae(se.gfm.nptable).replace("hr",se.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",se._tag).getRegex(),se.gfm.table=ae(se.gfm.table).replace("hr",se.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",se._tag).getRegex(),se.pedantic=_e({},se.normal,{html:ae(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",se._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:be,paragraph:ae(se.normal._paragraph).replace("hr",se.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",se.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var ve={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:be,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",strong:{start:/^(?:(\*\*(?=[*punctuation]))|\*\*)(?![\s])|__/,middle:/^\*\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*\*$|^__(?![\s])((?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?)__$/,endAst:/[^punctuation\s]\*\*(?!\*)|[punctuation]\*\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]__(?!_)(?:(?=[punctuation\s])|$)/},em:{start:/^(?:(\*(?=[punctuation]))|\*)(?![*\s])|_/,middle:/^\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*$|^_(?![_\s])(?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?_$/,endAst:/[^punctuation\s]\*(?!\*)|[punctuation]\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]_(?!_)(?:(?=[punctuation\s])|$)/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:be,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/,punctuation:/^([\s*punctuation])/};ve._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",ve.punctuation=ae(ve.punctuation).replace(/punctuation/g,ve._punctuation).getRegex(),ve._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",ve._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",ve.em.start=ae(ve.em.start).replace(/punctuation/g,ve._punctuation).getRegex(),ve.em.middle=ae(ve.em.middle).replace(/punctuation/g,ve._punctuation).replace(/overlapSkip/g,ve._overlapSkip).getRegex(),ve.em.endAst=ae(ve.em.endAst,"g").replace(/punctuation/g,ve._punctuation).getRegex(),ve.em.endUnd=ae(ve.em.endUnd,"g").replace(/punctuation/g,ve._punctuation).getRegex(),ve.strong.start=ae(ve.strong.start).replace(/punctuation/g,ve._punctuation).getRegex(),ve.strong.middle=ae(ve.strong.middle).replace(/punctuation/g,ve._punctuation).replace(/blockSkip/g,ve._blockSkip).getRegex(),ve.strong.endAst=ae(ve.strong.endAst,"g").replace(/punctuation/g,ve._punctuation).getRegex(),ve.strong.endUnd=ae(ve.strong.endUnd,"g").replace(/punctuation/g,ve._punctuation).getRegex(),ve.blockSkip=ae(ve._blockSkip,"g").getRegex(),ve.overlapSkip=ae(ve._overlapSkip,"g").getRegex(),ve._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,ve._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,ve._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,ve.autolink=ae(ve.autolink).replace("scheme",ve._scheme).replace("email",ve._email).getRegex(),ve._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,ve.tag=ae(ve.tag).replace("comment",se._comment).replace("attribute",ve._attribute).getRegex(),ve._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,ve._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,ve._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,ve.link=ae(ve.link).replace("label",ve._label).replace("href",ve._href).replace("title",ve._title).getRegex(),ve.reflink=ae(ve.reflink).replace("label",ve._label).getRegex(),ve.reflinkSearch=ae(ve.reflinkSearch,"g").replace("reflink",ve.reflink).replace("nolink",ve.nolink).getRegex(),ve.normal=_e({},ve),ve.pedantic=_e({},ve.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:ae(/^!?\[(label)\]\((.*?)\)/).replace("label",ve._label).getRegex(),reflink:ae(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ve._label).getRegex()}),ve.gfm=_e({},ve.normal,{escape:ae(ve.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*~]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?= {2,}\n|[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/}),ve.gfm.url=ae(ve.gfm.url,"i").replace("email",ve.gfm._extended_email).getRegex(),ve.breaks=_e({},ve.gfm,{br:ae(ve.br).replace("{2,}","*").getRegex(),text:ae(ve.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var te={block:se,inline:ve},J=c.defaults,q=te.block,he=te.inline;function Y(ye){return ye.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201C").replace(/"/g,"\u201D").replace(/\.{3}/g,"\u2026")}function W(ye){var xe="",Ee,ie,ce=ye.length;for(Ee=0;Ee<ce;Ee++)ie=ye.charCodeAt(Ee),Math.random()>.5&&(ie="x"+ie.toString(16)),xe+="&#"+ie+";";return xe}var me=function(){function ye(Ee){this.tokens=[],this.tokens.links=Object.create(null),this.options=Ee||J,this.options.tokenizer=this.options.tokenizer||new K,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var ie={block:q.normal,inline:he.normal};this.options.pedantic?(ie.block=q.pedantic,ie.inline=he.pedantic):this.options.gfm&&(ie.block=q.gfm,this.options.breaks?ie.inline=he.breaks:ie.inline=he.gfm),this.tokenizer.rules=ie}ye.lex=function(ie,ce){var pe=new ye(ce);return pe.lex(ie)};var xe=ye.prototype;return xe.lex=function(ie){return ie=ie.replace(/\r\n|\r/g,`
`).replace(/\t/g," "),this.blockTokens(ie,this.tokens,!0),this.inline(this.tokens),this.tokens},xe.blockTokens=function(ie,ce,pe){ce===void 0&&(ce=[]),pe===void 0&&(pe=!0),ie=ie.replace(/^ +$/gm,"");for(var le,Ce,Ie,qe;ie;){if(le=this.tokenizer.space(ie)){ie=ie.substring(le.raw.length),le.type&&ce.push(le);continue}if(le=this.tokenizer.code(ie,ce)){ie=ie.substring(le.raw.length),le.type?ce.push(le):(qe=ce[ce.length-1],qe.raw+=`
`+le.raw,qe.text+=`
`+le.text);continue}if(le=this.tokenizer.fences(ie)){ie=ie.substring(le.raw.length),ce.push(le);continue}if(le=this.tokenizer.heading(ie)){ie=ie.substring(le.raw.length),ce.push(le);continue}if(le=this.tokenizer.nptable(ie)){ie=ie.substring(le.raw.length),ce.push(le);continue}if(le=this.tokenizer.hr(ie)){ie=ie.substring(le.raw.length),ce.push(le);continue}if(le=this.tokenizer.blockquote(ie)){ie=ie.substring(le.raw.length),le.tokens=this.blockTokens(le.text,[],pe),ce.push(le);continue}if(le=this.tokenizer.list(ie)){for(ie=ie.substring(le.raw.length),Ie=le.items.length,Ce=0;Ce<Ie;Ce++)le.items[Ce].tokens=this.blockTokens(le.items[Ce].text,[],!1);ce.push(le);continue}if(le=this.tokenizer.html(ie)){ie=ie.substring(le.raw.length),ce.push(le);continue}if(pe&&(le=this.tokenizer.def(ie))){ie=ie.substring(le.raw.length),this.tokens.links[le.tag]||(this.tokens.links[le.tag]={href:le.href,title:le.title});continue}if(le=this.tokenizer.table(ie)){ie=ie.substring(le.raw.length),ce.push(le);continue}if(le=this.tokenizer.lheading(ie)){ie=ie.substring(le.raw.length),ce.push(le);continue}if(pe&&(le=this.tokenizer.paragraph(ie))){ie=ie.substring(le.raw.length),ce.push(le);continue}if(le=this.tokenizer.text(ie,ce)){ie=ie.substring(le.raw.length),le.type?ce.push(le):(qe=ce[ce.length-1],qe.raw+=`
`+le.raw,qe.text+=`
`+le.text);continue}if(ie){var lt="Infinite loop on byte: "+ie.charCodeAt(0);if(this.options.silent){console.error(lt);break}else throw new Error(lt)}}return ce},xe.inline=function(ie){var ce,pe,le,Ce,Ie,qe,lt=ie.length;for(ce=0;ce<lt;ce++){qe=ie[ce];switch(qe.type){case"paragraph":case"text":case"heading":{qe.tokens=[],this.inlineTokens(qe.text,qe.tokens);break}case"table":{for(qe.tokens={header:[],cells:[]},Ce=qe.header.length,pe=0;pe<Ce;pe++)qe.tokens.header[pe]=[],this.inlineTokens(qe.header[pe],qe.tokens.header[pe]);for(Ce=qe.cells.length,pe=0;pe<Ce;pe++)for(Ie=qe.cells[pe],qe.tokens.cells[pe]=[],le=0;le<Ie.length;le++)qe.tokens.cells[pe][le]=[],this.inlineTokens(Ie[le],qe.tokens.cells[pe][le]);break}case"blockquote":{this.inline(qe.tokens);break}case"list":{for(Ce=qe.items.length,pe=0;pe<Ce;pe++)this.inline(qe.items[pe].tokens);break}}}return ie},xe.inlineTokens=function(ie,ce,pe,le,Ce){ce===void 0&&(ce=[]),pe===void 0&&(pe=!1),le===void 0&&(le=!1),Ce===void 0&&(Ce="");var Ie,qe=ie,lt;if(this.tokens.links){var mt=Object.keys(this.tokens.links);if(mt.length>0)for(;(lt=this.tokenizer.rules.inline.reflinkSearch.exec(qe))!=null;)mt.includes(lt[0].slice(lt[0].lastIndexOf("[")+1,-1))&&(qe=qe.slice(0,lt.index)+"["+"a".repeat(lt[0].length-2)+"]"+qe.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(lt=this.tokenizer.rules.inline.blockSkip.exec(qe))!=null;)qe=qe.slice(0,lt.index)+"["+"a".repeat(lt[0].length-2)+"]"+qe.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;ie;){if(Ie=this.tokenizer.escape(ie)){ie=ie.substring(Ie.raw.length),ce.push(Ie);continue}if(Ie=this.tokenizer.tag(ie,pe,le)){ie=ie.substring(Ie.raw.length),pe=Ie.inLink,le=Ie.inRawBlock,ce.push(Ie);continue}if(Ie=this.tokenizer.link(ie)){ie=ie.substring(Ie.raw.length),Ie.type==="link"&&(Ie.tokens=this.inlineTokens(Ie.text,[],!0,le)),ce.push(Ie);continue}if(Ie=this.tokenizer.reflink(ie,this.tokens.links)){ie=ie.substring(Ie.raw.length),Ie.type==="link"&&(Ie.tokens=this.inlineTokens(Ie.text,[],!0,le)),ce.push(Ie);continue}if(Ie=this.tokenizer.strong(ie,qe,Ce)){ie=ie.substring(Ie.raw.length),Ie.tokens=this.inlineTokens(Ie.text,[],pe,le),ce.push(Ie);continue}if(Ie=this.tokenizer.em(ie,qe,Ce)){ie=ie.substring(Ie.raw.length),Ie.tokens=this.inlineTokens(Ie.text,[],pe,le),ce.push(Ie);continue}if(Ie=this.tokenizer.codespan(ie)){ie=ie.substring(Ie.raw.length),ce.push(Ie);continue}if(Ie=this.tokenizer.br(ie)){ie=ie.substring(Ie.raw.length),ce.push(Ie);continue}if(Ie=this.tokenizer.del(ie)){ie=ie.substring(Ie.raw.length),Ie.tokens=this.inlineTokens(Ie.text,[],pe,le),ce.push(Ie);continue}if(Ie=this.tokenizer.autolink(ie,W)){ie=ie.substring(Ie.raw.length),ce.push(Ie);continue}if(!pe&&(Ie=this.tokenizer.url(ie,W))){ie=ie.substring(Ie.raw.length),ce.push(Ie);continue}if(Ie=this.tokenizer.inlineText(ie,le,Y)){ie=ie.substring(Ie.raw.length),Ce=Ie.raw.slice(-1),ce.push(Ie);continue}if(ie){var dt="Infinite loop on byte: "+ie.charCodeAt(0);if(this.options.silent){console.error(dt);break}else throw new Error(dt)}}return ce},De(ye,null,[{key:"rules",get:function(){return{block:q,inline:he}}}]),ye}(),ge=c.defaults,Ae=re.cleanUrl,I=re.escape,e=function(){function ye(Ee){this.options=Ee||ge}var xe=ye.prototype;return xe.code=function(ie,ce,pe){var le=(ce||"").match(/\S*/)[0];if(this.options.highlight){var Ce=this.options.highlight(ie,le);Ce!=null&&Ce!==ie&&(pe=!0,ie=Ce)}return le?'<pre><code class="'+this.options.langPrefix+I(le,!0)+'">'+(pe?ie:I(ie,!0))+`</code></pre>
`:"<pre><code>"+(pe?ie:I(ie,!0))+`</code></pre>
`},xe.blockquote=function(ie){return`<blockquote>
`+ie+`</blockquote>
`},xe.html=function(ie){return ie},xe.heading=function(ie,ce,pe,le){return this.options.headerIds?"<h"+ce+' id="'+this.options.headerPrefix+le.slug(pe)+'">'+ie+"</h"+ce+`>
`:"<h"+ce+">"+ie+"</h"+ce+`>
`},xe.hr=function(){return this.options.xhtml?`<hr/>
`:`<hr>
`},xe.list=function(ie,ce,pe){var le=ce?"ol":"ul",Ce=ce&&pe!==1?' start="'+pe+'"':"";return"<"+le+Ce+`>
`+ie+"</"+le+`>
`},xe.listitem=function(ie){return"<li>"+ie+`</li>
`},xe.checkbox=function(ie){return"<input "+(ie?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},xe.paragraph=function(ie){return"<p>"+ie+`</p>
`},xe.table=function(ie,ce){return ce&&(ce="<tbody>"+ce+"</tbody>"),`<table>
<thead>
`+ie+`</thead>
`+ce+`</table>
`},xe.tablerow=function(ie){return`<tr>
`+ie+`</tr>
`},xe.tablecell=function(ie,ce){var pe=ce.header?"th":"td",le=ce.align?"<"+pe+' align="'+ce.align+'">':"<"+pe+">";return le+ie+"</"+pe+`>
`},xe.strong=function(ie){return"<strong>"+ie+"</strong>"},xe.em=function(ie){return"<em>"+ie+"</em>"},xe.codespan=function(ie){return"<code>"+ie+"</code>"},xe.br=function(){return this.options.xhtml?"<br/>":"<br>"},xe.del=function(ie){return"<del>"+ie+"</del>"},xe.link=function(ie,ce,pe){if(ie=Ae(this.options.sanitize,this.options.baseUrl,ie),ie===null)return pe;var le='<a href="'+I(ie)+'"';return ce&&(le+=' title="'+ce+'"'),le+=">"+pe+"</a>",le},xe.image=function(ie,ce,pe){if(ie=Ae(this.options.sanitize,this.options.baseUrl,ie),ie===null)return pe;var le='<img src="'+ie+'" alt="'+pe+'"';return ce&&(le+=' title="'+ce+'"'),le+=this.options.xhtml?"/>":">",le},xe.text=function(ie){return ie},ye}(),n=function(){function ye(){}var xe=ye.prototype;return xe.strong=function(ie){return ie},xe.em=function(ie){return ie},xe.codespan=function(ie){return ie},xe.del=function(ie){return ie},xe.html=function(ie){return ie},xe.text=function(ie){return ie},xe.link=function(ie,ce,pe){return""+pe},xe.image=function(ie,ce,pe){return""+pe},xe.br=function(){return""},ye}(),C=function(){function ye(){this.seen={}}var xe=ye.prototype;return xe.slug=function(ie){var ce=ie.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(ce)){var pe=ce;do this.seen[pe]++,ce=pe+"-"+this.seen[pe];while(this.seen.hasOwnProperty(ce))}return this.seen[ce]=0,ce},ye}(),b=c.defaults,S=re.unescape,ee=function(){function ye(Ee){this.options=Ee||b,this.options.renderer=this.options.renderer||new e,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new n,this.slugger=new C}ye.parse=function(ie,ce){var pe=new ye(ce);return pe.parse(ie)};var xe=ye.prototype;return xe.parse=function(ie,ce){ce===void 0&&(ce=!0);var pe="",le,Ce,Ie,qe,lt,mt,dt,ct,Ye,He,Xe,Ge,at,ut,nt,ft,yt,st,gt=ie.length;for(le=0;le<gt;le++){He=ie[le];switch(He.type){case"space":continue;case"hr":{pe+=this.renderer.hr();continue}case"heading":{pe+=this.renderer.heading(this.parseInline(He.tokens),He.depth,S(this.parseInline(He.tokens,this.textRenderer)),this.slugger);continue}case"code":{pe+=this.renderer.code(He.text,He.lang,He.escaped);continue}case"table":{for(ct="",dt="",qe=He.header.length,Ce=0;Ce<qe;Ce++)dt+=this.renderer.tablecell(this.parseInline(He.tokens.header[Ce]),{header:!0,align:He.align[Ce]});for(ct+=this.renderer.tablerow(dt),Ye="",qe=He.cells.length,Ce=0;Ce<qe;Ce++){for(mt=He.tokens.cells[Ce],dt="",lt=mt.length,Ie=0;Ie<lt;Ie++)dt+=this.renderer.tablecell(this.parseInline(mt[Ie]),{header:!1,align:He.align[Ie]});Ye+=this.renderer.tablerow(dt)}pe+=this.renderer.table(ct,Ye);continue}case"blockquote":{Ye=this.parse(He.tokens),pe+=this.renderer.blockquote(Ye);continue}case"list":{for(Xe=He.ordered,Ge=He.start,at=He.loose,qe=He.items.length,Ye="",Ce=0;Ce<qe;Ce++)nt=He.items[Ce],ft=nt.checked,yt=nt.task,ut="",nt.task&&(st=this.renderer.checkbox(ft),at?nt.tokens.length>0&&nt.tokens[0].type==="text"?(nt.tokens[0].text=st+" "+nt.tokens[0].text,nt.tokens[0].tokens&&nt.tokens[0].tokens.length>0&&nt.tokens[0].tokens[0].type==="text"&&(nt.tokens[0].tokens[0].text=st+" "+nt.tokens[0].tokens[0].text)):nt.tokens.unshift({type:"text",text:st}):ut+=st),ut+=this.parse(nt.tokens,at),Ye+=this.renderer.listitem(ut,yt,ft);pe+=this.renderer.list(Ye,Xe,Ge);continue}case"html":{pe+=this.renderer.html(He.text);continue}case"paragraph":{pe+=this.renderer.paragraph(this.parseInline(He.tokens));continue}case"text":{for(Ye=He.tokens?this.parseInline(He.tokens):He.text;le+1<gt&&ie[le+1].type==="text";)He=ie[++le],Ye+=`
`+(He.tokens?this.parseInline(He.tokens):He.text);pe+=ce?this.renderer.paragraph(Ye):Ye;continue}default:{var xt='Token with "'+He.type+'" type was not found.';if(this.options.silent){console.error(xt);return}else throw new Error(xt)}}}return pe},xe.parseInline=function(ie,ce){ce=ce||this.renderer;var pe="",le,Ce,Ie=ie.length;for(le=0;le<Ie;le++){Ce=ie[le];switch(Ce.type){case"escape":{pe+=ce.text(Ce.text);break}case"html":{pe+=ce.html(Ce.text);break}case"link":{pe+=ce.link(Ce.href,Ce.title,this.parseInline(Ce.tokens,ce));break}case"image":{pe+=ce.image(Ce.href,Ce.title,Ce.text);break}case"strong":{pe+=ce.strong(this.parseInline(Ce.tokens,ce));break}case"em":{pe+=ce.em(this.parseInline(Ce.tokens,ce));break}case"codespan":{pe+=ce.codespan(Ce.text);break}case"br":{pe+=ce.br();break}case"del":{pe+=ce.del(this.parseInline(Ce.tokens,ce));break}case"text":{pe+=ce.text(Ce.text);break}default:{var qe='Token with "'+Ce.type+'" type was not found.';if(this.options.silent){console.error(qe);return}else throw new Error(qe)}}}return pe},ye}(),fe=re.merge,Me=re.checkSanitizeDeprecation,Oe=re.escape,Le=c.getDefaults,Be=c.changeDefaults,Ke=c.defaults;function Pe(ye,xe,Ee){if(typeof ye=="undefined"||ye===null)throw new Error("marked(): input parameter is undefined or null");if(typeof ye!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(ye)+", string expected");if(typeof xe=="function"&&(Ee=xe,xe=null),xe=fe({},Pe.defaults,xe||{}),Me(xe),Ee){var ie=xe.highlight,ce;try{ce=me.lex(ye,xe)}catch(Ie){return Ee(Ie)}var pe=function(qe){var lt;if(!qe)try{lt=ee.parse(ce,xe)}catch(mt){qe=mt}return xe.highlight=ie,qe?Ee(qe):Ee(null,lt)};if(!ie||ie.length<3)return pe();if(delete xe.highlight,!ce.length)return pe();var le=0;Pe.walkTokens(ce,function(Ie){Ie.type==="code"&&(le++,setTimeout(function(){ie(Ie.text,Ie.lang,function(qe,lt){if(qe)return pe(qe);lt!=null&&lt!==Ie.text&&(Ie.text=lt,Ie.escaped=!0),le--,le===0&&pe()})},0))}),le===0&&pe();return}try{var Ce=me.lex(ye,xe);return xe.walkTokens&&Pe.walkTokens(Ce,xe.walkTokens),ee.parse(Ce,xe)}catch(Ie){if(Ie.message+=`
Please report this to https://github.com/markedjs/marked.`,xe.silent)return"<p>An error occurred:</p><pre>"+Oe(Ie.message+"",!0)+"</pre>";throw Ie}}Pe.options=Pe.setOptions=function(ye){return fe(Pe.defaults,ye),Be(Pe.defaults),Pe},Pe.getDefaults=Le,Pe.defaults=Ke,Pe.use=function(ye){var xe=fe({},ye);if(ye.renderer&&function(){var ie=Pe.defaults.renderer||new e,ce=function(Ce){var Ie=ie[Ce];ie[Ce]=function(){for(var qe=arguments.length,lt=new Array(qe),mt=0;mt<qe;mt++)lt[mt]=arguments[mt];var dt=ye.renderer[Ce].apply(ie,lt);return dt===!1&&(dt=Ie.apply(ie,lt)),dt}};for(var pe in ye.renderer)ce(pe);xe.renderer=ie}(),ye.tokenizer&&function(){var ie=Pe.defaults.tokenizer||new K,ce=function(Ce){var Ie=ie[Ce];ie[Ce]=function(){for(var qe=arguments.length,lt=new Array(qe),mt=0;mt<qe;mt++)lt[mt]=arguments[mt];var dt=ye.tokenizer[Ce].apply(ie,lt);return dt===!1&&(dt=Ie.apply(ie,lt)),dt}};for(var pe in ye.tokenizer)ce(pe);xe.tokenizer=ie}(),ye.walkTokens){var Ee=Pe.defaults.walkTokens;xe.walkTokens=function(ie){ye.walkTokens(ie),Ee&&Ee(ie)}}Pe.setOptions(xe)},Pe.walkTokens=function(ye,xe){for(var Ee=O(ye),ie;!(ie=Ee()).done;){var ce=ie.value;xe(ce);switch(ce.type){case"table":{for(var pe=O(ce.tokens.header),le;!(le=pe()).done;){var Ce=le.value;Pe.walkTokens(Ce,xe)}for(var Ie=O(ce.tokens.cells),qe;!(qe=Ie()).done;)for(var lt=qe.value,mt=O(lt),dt;!(dt=mt()).done;){var ct=dt.value;Pe.walkTokens(ct,xe)}break}case"list":{Pe.walkTokens(ce.items,xe);break}default:ce.tokens&&Pe.walkTokens(ce.tokens,xe)}}},Pe.Parser=ee,Pe.parser=ee.parse,Pe.Renderer=e,Pe.TextRenderer=n,Pe.Lexer=me,Pe.lexer=me.lex,Pe.Tokenizer=K,Pe.Slugger=C,Pe.parse=Pe;var Te=Pe;return Te})},E2g8:function(rt,Ze,de){(function(ke,De){/*!
* @overview es6-promise - a tiny implementation of Promises/A+.
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
* @license Licensed under MIT license
* See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
* @version v4.2.8+1e68dce6
*/(function(Re,r){rt.exports=r()})(this,function(){"use strict";function Re(e){var n=typeof e;return e!==null&&(n==="object"||n==="function")}function r(e){return typeof e=="function"}var O=void 0;Array.isArray?O=Array.isArray:O=function(e){return Object.prototype.toString.call(e)==="[object Array]"};var p=O,c=0,d=void 0,s=void 0,i=function(n,C){k[c]=n,k[c+1]=C,c+=2,c===2&&(s?s(g):j())};function h(e){s=e}function o(e){i=e}var t=typeof window!="undefined"?window:void 0,a=t||{},l=a.MutationObserver||a.WebKitMutationObserver,f=typeof self=="undefined"&&typeof ke!="undefined"&&{}.toString.call(ke)==="[object process]",v=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function u(){return function(){return ke.nextTick(g)}}function w(){return typeof d!="undefined"?function(){d(g)}:x()}function A(){var e=0,n=new l(g),C=document.createTextNode("");return n.observe(C,{characterData:!0}),function(){C.data=e=++e%2}}function E(){var e=new MessageChannel;return e.port1.onmessage=g,function(){return e.port2.postMessage(0)}}function x(){var e=setTimeout;return function(){return e(g,1)}}var k=new Array(1e3);function g(){for(var e=0;e<c;e+=2){var n=k[e],C=k[e+1];n(C),k[e]=void 0,k[e+1]=void 0}c=0}function y(){try{var e=Function("return this")().require("vertx");return d=e.runOnLoop||e.runOnContext,w()}catch(n){return x()}}var j=void 0;f?j=u():l?j=A():v?j=E():t===void 0&&!0?j=y():j=x();function L(e,n){var C=this,b=new this.constructor(M);b[z]===void 0&&te(b);var S=C._state;if(S){var ee=arguments[S-1];i(function(){return ae(S,b,ee,C._result)})}else K(C,b,e,n);return b}function _(e){var n=this;if(e&&typeof e=="object"&&e.constructor===n)return e;var C=new n(M);return V(C,e),C}var z=Math.random().toString(36).substring(2);function M(){}var P=void 0,F=1,$=2;function Z(){return new TypeError("You cannot resolve a promise with itself")}function Q(){return new TypeError("A promises callback cannot return that same promise.")}function re(e,n,C,b){try{e.call(n,C,b)}catch(S){return S}}function N(e,n,C){i(function(b){var S=!1,ee=re(C,n,function(fe){if(S)return;S=!0,n!==fe?V(b,fe):U(b,fe)},function(fe){if(S)return;S=!0,H(b,fe)},"Settle: "+(b._label||" unknown promise"));!S&&ee&&(S=!0,H(b,ee))},e)}function ue(e,n){n._state===F?U(e,n._result):n._state===$?H(e,n._result):K(n,void 0,function(C){return V(e,C)},function(C){return H(e,C)})}function G(e,n,C){n.constructor===e.constructor&&C===L&&n.constructor.resolve===_?ue(e,n):C===void 0?U(e,n):r(C)?N(e,n,C):U(e,n)}function V(e,n){if(e===n)H(e,Z());else if(Re(n)){var C=void 0;try{C=n.then}catch(b){H(e,b);return}G(e,n,C)}else U(e,n)}function T(e){e._onerror&&e._onerror(e._result),be(e)}function U(e,n){if(e._state!==P)return;e._result=n,e._state=F,e._subscribers.length!==0&&i(be,e)}function H(e,n){if(e._state!==P)return;e._state=$,e._result=n,i(T,e)}function K(e,n,C,b){var S=e._subscribers,ee=S.length;e._onerror=null,S[ee]=n,S[ee+F]=C,S[ee+$]=b,ee===0&&e._state&&i(be,e)}function be(e){var n=e._subscribers,C=e._state;if(n.length===0)return;for(var b=void 0,S=void 0,ee=e._result,fe=0;fe<n.length;fe+=3)b=n[fe],S=n[fe+C],b?ae(C,b,S,ee):S(ee);e._subscribers.length=0}function ae(e,n,C,b){var S=r(C),ee=void 0,fe=void 0,Me=!0;if(S){try{ee=C(b)}catch(Oe){Me=!1,fe=Oe}if(n===ee){H(n,Q());return}}else ee=b;n._state!==P||(S&&Me?V(n,ee):Me===!1?H(n,fe):e===F?U(n,ee):e===$&&H(n,ee))}function _e(e,n){try{n(function(b){V(e,b)},function(b){H(e,b)})}catch(C){H(e,C)}}var se=0;function ve(){return se++}function te(e){e[z]=se++,e._state=void 0,e._result=void 0,e._subscribers=[]}function J(){return new Error("Array Methods must be provided an Array")}var q=function(){function e(n,C){this._instanceConstructor=n,this.promise=new n(M),this.promise[z]||te(this.promise),p(C)?(this.length=C.length,this._remaining=C.length,this._result=new Array(this.length),this.length===0?U(this.promise,this._result):(this.length=this.length||0,this._enumerate(C),this._remaining===0&&U(this.promise,this._result))):H(this.promise,J())}return e.prototype._enumerate=function(C){for(var b=0;this._state===P&&b<C.length;b++)this._eachEntry(C[b],b)},e.prototype._eachEntry=function(C,b){var S=this._instanceConstructor,ee=S.resolve;if(ee===_){var fe=void 0,Me=void 0,Oe=!1;try{fe=C.then}catch(Be){Oe=!0,Me=Be}if(fe===L&&C._state!==P)this._settledAt(C._state,b,C._result);else if(typeof fe!="function")this._remaining--,this._result[b]=C;else if(S===Ae){var Le=new S(M);Oe?H(Le,Me):G(Le,C,fe),this._willSettleAt(Le,b)}else this._willSettleAt(new S(function(Be){return Be(C)}),b)}else this._willSettleAt(ee(C),b)},e.prototype._settledAt=function(C,b,S){var ee=this.promise;ee._state===P&&(this._remaining--,C===$?H(ee,S):this._result[b]=S),this._remaining===0&&U(ee,this._result)},e.prototype._willSettleAt=function(C,b){var S=this;K(C,void 0,function(ee){return S._settledAt(F,b,ee)},function(ee){return S._settledAt($,b,ee)})},e}();function he(e){return new q(this,e).promise}function Y(e){var n=this;return p(e)?new n(function(C,b){for(var S=e.length,ee=0;ee<S;ee++)n.resolve(e[ee]).then(C,b)}):new n(function(C,b){return b(new TypeError("You must pass an array to race."))})}function W(e){var n=this,C=new n(M);return H(C,e),C}function me(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function ge(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var Ae=function(){function e(n){this[z]=ve(),this._result=this._state=void 0,this._subscribers=[],M!==n&&(typeof n!="function"&&me(),this instanceof e?_e(this,n):ge())}return e.prototype.catch=function(C){return this.then(null,C)},e.prototype.finally=function(C){var b=this,S=b.constructor;return r(C)?b.then(function(ee){return S.resolve(C()).then(function(){return ee})},function(ee){return S.resolve(C()).then(function(){throw ee})}):b.then(C,C)},e}();Ae.prototype.then=L,Ae.all=he,Ae.race=Y,Ae.resolve=_,Ae.reject=W,Ae._setScheduler=h,Ae._setAsap=o,Ae._asap=i;function I(){var e=void 0;if(typeof De!="undefined")e=De;else if(typeof self!="undefined")e=self;else try{e=Function("return this")()}catch(b){throw new Error("polyfill failed because global object is unavailable in this environment")}var n=e.Promise;if(n){var C=null;try{C=Object.prototype.toString.call(n.resolve())}catch(b){}if(C==="[object Promise]"&&!n.cast)return}e.Promise=Ae}return Ae.polyfill=I,Ae.Promise=Ae,Ae})}).call(this,de("Q2Ig"),de("IyRk"))},GUcZ:function(rt,Ze,de){"use strict";var ke=de("fWQN"),De=de("mtLc"),Re=function(){function oe(){Object(ke.a)(this,oe)}return Object(De.a)(oe,null,[{key:"install",value:function(){Object.setPrototypeOf=Object.setPrototypeOf||function(m,R){return m.__proto__=R,m},Object.assign=Object.assign||function(m){if(m==null)throw new TypeError("Cannot convert undefined or null to object");for(var R=Object(m),D=1;D<arguments.length;D++){var B=arguments[D];if(B!=null)for(var ne in B)B.hasOwnProperty(ne)&&(R[ne]=B[ne])}return R},typeof self.Promise!="function"&&de("E2g8").polyfill()}}]),oe}();Re.install();var r=Re,O=de("+qE3"),p=de.n(O),c=function(){function oe(){Object(ke.a)(this,oe)}return Object(De.a)(oe,null,[{key:"e",value:function(m,R){(!m||oe.FORCE_GLOBAL_TAG)&&(m=oe.GLOBAL_TAG);var D="[".concat(m,"] > ").concat(R);if(oe.ENABLE_CALLBACK&&oe.emitter.emit("log","error",D),!oe.ENABLE_ERROR)return;console.error?console.error(D):console.warn?console.warn(D):console.log(D)}},{key:"i",value:function(m,R){(!m||oe.FORCE_GLOBAL_TAG)&&(m=oe.GLOBAL_TAG);var D="[".concat(m,"] > ").concat(R);if(oe.ENABLE_CALLBACK&&oe.emitter.emit("log","info",D),!oe.ENABLE_INFO)return;console.info?console.info(D):console.log(D)}},{key:"w",value:function(m,R){(!m||oe.FORCE_GLOBAL_TAG)&&(m=oe.GLOBAL_TAG);var D="[".concat(m,"] > ").concat(R);if(oe.ENABLE_CALLBACK&&oe.emitter.emit("log","warn",D),!oe.ENABLE_WARN)return;console.warn?console.warn(D):console.log(D)}},{key:"d",value:function(m,R){(!m||oe.FORCE_GLOBAL_TAG)&&(m=oe.GLOBAL_TAG);var D="[".concat(m,"] > ").concat(R);if(oe.ENABLE_CALLBACK&&oe.emitter.emit("log","debug",D),!oe.ENABLE_DEBUG)return;console.debug?console.debug(D):console.log(D)}},{key:"v",value:function(m,R){(!m||oe.FORCE_GLOBAL_TAG)&&(m=oe.GLOBAL_TAG);var D="[".concat(m,"] > ").concat(R);if(oe.ENABLE_CALLBACK&&oe.emitter.emit("log","verbose",D),!oe.ENABLE_VERBOSE)return;console.log(D)}}]),oe}();c.GLOBAL_TAG="flv.js",c.FORCE_GLOBAL_TAG=!1,c.ENABLE_ERROR=!0,c.ENABLE_INFO=!0,c.ENABLE_WARN=!0,c.ENABLE_DEBUG=!0,c.ENABLE_VERBOSE=!0,c.ENABLE_CALLBACK=!1,c.emitter=new p.a;var d=c,s=function(){function oe(){Object(ke.a)(this,oe),this._firstCheckpoint=0,this._lastCheckpoint=0,this._intervalBytes=0,this._totalBytes=0,this._lastSecondBytes=0,self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now}return Object(De.a)(oe,[{key:"reset",value:function(){this._firstCheckpoint=this._lastCheckpoint=0,this._totalBytes=this._intervalBytes=0,this._lastSecondBytes=0}},{key:"addBytes",value:function(m){this._firstCheckpoint===0?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=m,this._totalBytes+=m):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=m,this._totalBytes+=m):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=m,this._totalBytes+=m,this._lastCheckpoint=this._now())}},{key:"currentKBps",get:function(){this.addBytes(0);var m=(this._now()-this._lastCheckpoint)/1e3;return m==0&&(m=1),this._intervalBytes/m/1024}},{key:"lastSecondKBps",get:function(){return this.addBytes(0),this._lastSecondBytes!==0?this._lastSecondBytes/1024:this._now()-this._lastCheckpoint>=500?this.currentKBps:0}},{key:"averageKBps",get:function(){var m=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/m/1024}}]),oe}(),i=s,h=de("yKVA"),o=de("879j"),t=function(){function oe(X){Object(ke.a)(this,oe),this._message=X}return Object(De.a)(oe,[{key:"name",get:function(){return"RuntimeException"}},{key:"message",get:function(){return this._message}},{key:"toString",value:function(){return this.name+": "+this.message}}]),oe}(),a=function(oe){Object(h.a)(m,oe);var X=Object(o.a)(m);function m(R){return Object(ke.a)(this,m),X.call(this,R)}return Object(De.a)(m,[{key:"name",get:function(){return"IllegalStateException"}}]),m}(t),l=function(oe){Object(h.a)(m,oe);var X=Object(o.a)(m);function m(R){return Object(ke.a)(this,m),X.call(this,R)}return Object(De.a)(m,[{key:"name",get:function(){return"InvalidArgumentException"}}]),m}(t),f=function(oe){Object(h.a)(m,oe);var X=Object(o.a)(m);function m(R){return Object(ke.a)(this,m),X.call(this,R)}return Object(De.a)(m,[{key:"name",get:function(){return"NotImplementedException"}}]),m}(t),v={kIdle:0,kConnecting:1,kBuffering:2,kError:3,kComplete:4},u={OK:"OK",EXCEPTION:"Exception",HTTP_STATUS_CODE_INVALID:"HttpStatusCodeInvalid",CONNECTING_TIMEOUT:"ConnectingTimeout",EARLY_EOF:"EarlyEof",UNRECOVERABLE_EARLY_EOF:"UnrecoverableEarlyEof"},w=function(){function oe(X){Object(ke.a)(this,oe),this._type=X||"undefined",this._status=v.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}return Object(De.a)(oe,[{key:"destroy",value:function(){this._status=v.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}},{key:"isWorking",value:function(){return this._status===v.kConnecting||this._status===v.kBuffering}},{key:"type",get:function(){return this._type}},{key:"status",get:function(){return this._status}},{key:"needStashBuffer",get:function(){return this._needStash}},{key:"onContentLengthKnown",get:function(){return this._onContentLengthKnown},set:function(m){this._onContentLengthKnown=m}},{key:"onURLRedirect",get:function(){return this._onURLRedirect},set:function(m){this._onURLRedirect=m}},{key:"onDataArrival",get:function(){return this._onDataArrival},set:function(m){this._onDataArrival=m}},{key:"onError",get:function(){return this._onError},set:function(m){this._onError=m}},{key:"onComplete",get:function(){return this._onComplete},set:function(m){this._onComplete=m}},{key:"open",value:function(m,R){throw new f("Unimplemented abstract function!")}},{key:"abort",value:function(){throw new f("Unimplemented abstract function!")}}]),oe}(),A=de("oZsa");function E(oe,X){for(;!Object.prototype.hasOwnProperty.call(oe,X)&&!(oe=Object(A.a)(oe),oe===null););return oe}function x(oe,X,m){return typeof Reflect!="undefined"&&Reflect.get?x=Reflect.get:x=function(D,B,ne){var we=E(D,B);if(!we)return;var Se=Object.getOwnPropertyDescriptor(we,B);return Se.get?Se.get.call(ne):Se.value},x(oe,X,m||oe)}var k={};function g(){var oe=self.navigator.userAgent.toLowerCase(),X=/(edge)\/([\w.]+)/.exec(oe)||/(opr)[\/]([\w.]+)/.exec(oe)||/(chrome)[ \/]([\w.]+)/.exec(oe)||/(iemobile)[\/]([\w.]+)/.exec(oe)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(oe)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(oe)||/(webkit)[ \/]([\w.]+)/.exec(oe)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(oe)||/(msie) ([\w.]+)/.exec(oe)||oe.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(oe)||oe.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(oe)||[],m=/(ipad)/.exec(oe)||/(ipod)/.exec(oe)||/(windows phone)/.exec(oe)||/(iphone)/.exec(oe)||/(kindle)/.exec(oe)||/(android)/.exec(oe)||/(windows)/.exec(oe)||/(mac)/.exec(oe)||/(linux)/.exec(oe)||/(cros)/.exec(oe)||[],R={browser:X[5]||X[3]||X[1]||"",version:X[2]||X[4]||"0",majorVersion:X[4]||X[2]||"0",platform:m[0]||""},D={};if(R.browser){D[R.browser]=!0;var B=R.majorVersion.split(".");D.version={major:parseInt(R.majorVersion,10),string:R.version},B.length>1&&(D.version.minor=parseInt(B[1],10)),B.length>2&&(D.version.build=parseInt(B[2],10))}if(R.platform&&(D[R.platform]=!0),(D.chrome||D.opr||D.safari)&&(D.webkit=!0),D.rv||D.iemobile){D.rv&&delete D.rv;var ne="msie";R.browser=ne,D[ne]=!0}if(D.edge){delete D.edge;var we="msedge";R.browser=we,D[we]=!0}if(D.opr){var Se="opera";R.browser=Se,D[Se]=!0}if(D.safari&&D.android){var Ue="android";R.browser=Ue,D[Ue]=!0}D.name=R.browser,D.platform=R.platform;for(var Fe in k)k.hasOwnProperty(Fe)&&delete k[Fe];Object.assign(k,D)}g();var y=k,j=function(oe){Object(h.a)(m,oe);var X=Object(o.a)(m);function m(R,D){var B;return Object(ke.a)(this,m),B=X.call(this,"fetch-stream-loader"),B.TAG="FetchStreamLoader",B._seekHandler=R,B._config=D,B._needStash=!0,B._requestAbort=!1,B._contentLength=null,B._receivedLength=0,B}return Object(De.a)(m,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),x(Object(A.a)(m.prototype),"destroy",this).call(this)}},{key:"open",value:function(D,B){var ne=this;this._dataSource=D,this._range=B;var we=D.url;this._config.reuseRedirectedURL&&D.redirectedURL!=null&&(we=D.redirectedURL);var Se=this._seekHandler.getConfig(we,B),Ue=new self.Headers;if(typeof Se.headers=="object"){var Fe=Se.headers;for(var Ne in Fe)Fe.hasOwnProperty(Ne)&&Ue.append(Ne,Fe[Ne])}var Qe={method:"GET",headers:Ue,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(var $e in this._config.headers)Ue.append($e,this._config.headers[$e]);D.cors===!1&&(Qe.mode="same-origin"),D.withCredentials&&(Qe.credentials="include"),D.referrerPolicy&&(Qe.referrerPolicy=D.referrerPolicy),this._status=v.kConnecting,self.fetch(Se.url,Qe).then(function(je){if(ne._requestAbort){ne._requestAbort=!1,ne._status=v.kIdle;return}if(je.ok&&je.status>=200&&je.status<=299){if(je.url!==Se.url&&ne._onURLRedirect){var et=ne._seekHandler.removeURLParameters(je.url);ne._onURLRedirect(et)}var We=je.headers.get("Content-Length");return We!=null&&(ne._contentLength=parseInt(We),ne._contentLength!==0&&(ne._onContentLengthKnown&&ne._onContentLengthKnown(ne._contentLength))),ne._pump.call(ne,je.body.getReader())}else if(ne._status=v.kError,ne._onError)ne._onError(u.HTTP_STATUS_CODE_INVALID,{code:je.status,msg:je.statusText});else throw new t("FetchStreamLoader: Http code invalid, "+je.status+" "+je.statusText)}).catch(function(je){if(ne._status=v.kError,ne._onError)ne._onError(u.EXCEPTION,{code:-1,msg:je.message});else throw je})}},{key:"abort",value:function(){this._requestAbort=!0}},{key:"_pump",value:function(D){var B=this;return D.read().then(function(ne){if(ne.done)if(B._contentLength!==null&&B._receivedLength<B._contentLength){B._status=v.kError;var we=u.EARLY_EOF,Se={code:-1,msg:"Fetch stream meet Early-EOF"};if(B._onError)B._onError(we,Se);else throw new t(Se.msg)}else B._status=v.kComplete,B._onComplete&&B._onComplete(B._range.from,B._range.from+B._receivedLength-1);else{if(B._requestAbort===!0)return B._requestAbort=!1,B._status=v.kComplete,D.cancel();B._status=v.kBuffering;var Ue=ne.value.buffer,Fe=B._range.from+B._receivedLength;B._receivedLength+=Ue.byteLength,B._onDataArrival&&B._onDataArrival(Ue,Fe,B._receivedLength),B._pump(D)}}).catch(function(ne){if(ne.code===11&&y.msedge)return;B._status=v.kError;var we=0,Se=null;if((ne.code===19||ne.message==="network error")&&(B._contentLength===null||B._contentLength!==null&&B._receivedLength<B._contentLength)?(we=u.EARLY_EOF,Se={code:ne.code,msg:"Fetch stream meet Early-EOF"}):(we=u.EXCEPTION,Se={code:ne.code,msg:ne.message}),B._onError)B._onError(we,Se);else throw new t(Se.msg)})}}],[{key:"isSupported",value:function(){try{var D=y.msedge&&y.version.minor>=15048,B=y.msedge?D:!0;return self.fetch&&self.ReadableStream&&B}catch(ne){return!1}}}]),m}(w),L=j,_=function(oe){Object(h.a)(m,oe);var X=Object(o.a)(m);function m(R,D){var B;return Object(ke.a)(this,m),B=X.call(this,"xhr-moz-chunked-loader"),B.TAG="MozChunkedLoader",B._seekHandler=R,B._config=D,B._needStash=!0,B._xhr=null,B._requestAbort=!1,B._contentLength=null,B._receivedLength=0,B}return Object(De.a)(m,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onloadend=null,this._xhr.onerror=null,this._xhr=null),x(Object(A.a)(m.prototype),"destroy",this).call(this)}},{key:"open",value:function(D,B){this._dataSource=D,this._range=B;var ne=D.url;this._config.reuseRedirectedURL&&D.redirectedURL!=null&&(ne=D.redirectedURL);var we=this._seekHandler.getConfig(ne,B);this._requestURL=we.url;var Se=this._xhr=new XMLHttpRequest;if(Se.open("GET",we.url,!0),Se.responseType="moz-chunked-arraybuffer",Se.onreadystatechange=this._onReadyStateChange.bind(this),Se.onprogress=this._onProgress.bind(this),Se.onloadend=this._onLoadEnd.bind(this),Se.onerror=this._onXhrError.bind(this),D.withCredentials&&(Se.withCredentials=!0),typeof we.headers=="object"){var Ue=we.headers;for(var Fe in Ue)Ue.hasOwnProperty(Fe)&&Se.setRequestHeader(Fe,Ue[Fe])}if(typeof this._config.headers=="object"){var Ne=this._config.headers;for(var Qe in Ne)Ne.hasOwnProperty(Qe)&&Se.setRequestHeader(Qe,Ne[Qe])}this._status=v.kConnecting,Se.send()}},{key:"abort",value:function(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this._status=v.kComplete}},{key:"_onReadyStateChange",value:function(D){var B=D.target;if(B.readyState===2){if(B.responseURL!=null&&B.responseURL!==this._requestURL&&this._onURLRedirect){var ne=this._seekHandler.removeURLParameters(B.responseURL);this._onURLRedirect(ne)}if(B.status!==0&&(B.status<200||B.status>299))if(this._status=v.kError,this._onError)this._onError(u.HTTP_STATUS_CODE_INVALID,{code:B.status,msg:B.statusText});else throw new t("MozChunkedLoader: Http code invalid, "+B.status+" "+B.statusText);else this._status=v.kBuffering}}},{key:"_onProgress",value:function(D){if(this._status===v.kError)return;this._contentLength===null&&(D.total!==null&&D.total!==0&&(this._contentLength=D.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)));var B=D.target.response,ne=this._range.from+this._receivedLength;this._receivedLength+=B.byteLength,this._onDataArrival&&this._onDataArrival(B,ne,this._receivedLength)}},{key:"_onLoadEnd",value:function(D){if(this._requestAbort===!0){this._requestAbort=!1;return}else if(this._status===v.kError)return;this._status=v.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)}},{key:"_onXhrError",value:function(D){this._status=v.kError;var B=0,ne=null;if(this._contentLength&&D.loaded<this._contentLength?(B=u.EARLY_EOF,ne={code:-1,msg:"Moz-Chunked stream meet Early-Eof"}):(B=u.EXCEPTION,ne={code:-1,msg:D.constructor.name+" "+D.type}),this._onError)this._onError(B,ne);else throw new t(ne.msg)}}],[{key:"isSupported",value:function(){try{var D=new XMLHttpRequest;return D.open("GET","https://example.com",!0),D.responseType="moz-chunked-arraybuffer",D.responseType==="moz-chunked-arraybuffer"}catch(B){return d.w("MozChunkedLoader",B.message),!1}}}]),m}(w),z=_,M=function(oe){Object(h.a)(m,oe);var X=Object(o.a)(m);function m(R,D){var B;return Object(ke.a)(this,m),B=X.call(this,"xhr-msstream-loader"),B.TAG="MSStreamLoader",B._seekHandler=R,B._config=D,B._needStash=!0,B._xhr=null,B._reader=null,B._totalRange=null,B._currentRange=null,B._currentRequestURL=null,B._currentRedirectedURL=null,B._contentLength=null,B._receivedLength=0,B._bufferLimit=16*1024*1024,B._lastTimeBufferSize=0,B._isReconnecting=!1,B}return Object(De.a)(m,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),this._reader&&(this._reader.onprogress=null,this._reader.onload=null,this._reader.onerror=null,this._reader=null),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr=null),x(Object(A.a)(m.prototype),"destroy",this).call(this)}},{key:"open",value:function(D,B){this._internalOpen(D,B,!1)}},{key:"_internalOpen",value:function(D,B,ne){this._dataSource=D,ne?this._currentRange=B:this._totalRange=B;var we=D.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?we=this._currentRedirectedURL:D.redirectedURL!=null&&(we=D.redirectedURL));var Se=this._seekHandler.getConfig(we,B);this._currentRequestURL=Se.url;var Ue=this._reader=new self.MSStreamReader;Ue.onprogress=this._msrOnProgress.bind(this),Ue.onload=this._msrOnLoad.bind(this),Ue.onerror=this._msrOnError.bind(this);var Fe=this._xhr=new XMLHttpRequest;if(Fe.open("GET",Se.url,!0),Fe.responseType="ms-stream",Fe.onreadystatechange=this._xhrOnReadyStateChange.bind(this),Fe.onerror=this._xhrOnError.bind(this),D.withCredentials&&(Fe.withCredentials=!0),typeof Se.headers=="object"){var Ne=Se.headers;for(var Qe in Ne)Ne.hasOwnProperty(Qe)&&Fe.setRequestHeader(Qe,Ne[Qe])}if(typeof this._config.headers=="object"){var $e=this._config.headers;for(var je in $e)$e.hasOwnProperty(je)&&Fe.setRequestHeader(je,$e[je])}this._isReconnecting?this._isReconnecting=!1:this._status=v.kConnecting,Fe.send()}},{key:"abort",value:function(){this._internalAbort(),this._status=v.kComplete}},{key:"_internalAbort",value:function(){this._reader&&(this._reader.readyState===1&&this._reader.abort(),this._reader.onprogress=null,this._reader.onload=null,this._reader.onerror=null,this._reader=null),this._xhr&&(this._xhr.abort(),this._xhr.onreadystatechange=null,this._xhr=null)}},{key:"_xhrOnReadyStateChange",value:function(D){var B=D.target;if(B.readyState===2)if(B.status>=200&&B.status<=299){if(this._status=v.kBuffering,B.responseURL!=null){var ne=this._seekHandler.removeURLParameters(B.responseURL);B.responseURL!==this._currentRequestURL&&ne!==this._currentRedirectedURL&&(this._currentRedirectedURL=ne,this._onURLRedirect&&this._onURLRedirect(ne))}var we=B.getResponseHeader("Content-Length");if(we!=null&&this._contentLength==null){var Se=parseInt(we);Se>0&&(this._contentLength=Se,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength))}}else if(this._status=v.kError,this._onError)this._onError(u.HTTP_STATUS_CODE_INVALID,{code:B.status,msg:B.statusText});else throw new t("MSStreamLoader: Http code invalid, "+B.status+" "+B.statusText);else if(B.readyState===3&&(B.status>=200&&B.status<=299)){this._status=v.kBuffering;var Ue=B.response;this._reader.readAsArrayBuffer(Ue)}}},{key:"_xhrOnError",value:function(D){this._status=v.kError;var B=u.EXCEPTION,ne={code:-1,msg:D.constructor.name+" "+D.type};if(this._onError)this._onError(B,ne);else throw new t(ne.msg)}},{key:"_msrOnProgress",value:function(D){var B=D.target,ne=B.result;if(ne==null){this._doReconnectIfNeeded();return}var we=ne.slice(this._lastTimeBufferSize);this._lastTimeBufferSize=ne.byteLength;var Se=this._totalRange.from+this._receivedLength;this._receivedLength+=we.byteLength,this._onDataArrival&&this._onDataArrival(we,Se,this._receivedLength),ne.byteLength>=this._bufferLimit&&(d.v(this.TAG,"MSStream buffer exceeded max size near ".concat(Se+we.byteLength,", reconnecting...")),this._doReconnectIfNeeded())}},{key:"_doReconnectIfNeeded",value:function(){if(this._contentLength==null||this._receivedLength<this._contentLength){this._isReconnecting=!0,this._lastTimeBufferSize=0,this._internalAbort();var D={from:this._totalRange.from+this._receivedLength,to:-1};this._internalOpen(this._dataSource,D,!0)}}},{key:"_msrOnLoad",value:function(D){this._status=v.kComplete,this._onComplete&&this._onComplete(this._totalRange.from,this._totalRange.from+this._receivedLength-1)}},{key:"_msrOnError",value:function(D){this._status=v.kError;var B=0,ne=null;if(this._contentLength&&this._receivedLength<this._contentLength?(B=u.EARLY_EOF,ne={code:-1,msg:"MSStream meet Early-Eof"}):(B=u.EARLY_EOF,ne={code:-1,msg:D.constructor.name+" "+D.type}),this._onError)this._onError(B,ne);else throw new t(ne.msg)}}],[{key:"isSupported",value:function(){try{if(typeof self.MSStream=="undefined"||typeof self.MSStreamReader=="undefined")return!1;var D=new XMLHttpRequest;return D.open("GET","https://example.com",!0),D.responseType="ms-stream",D.responseType==="ms-stream"}catch(B){return d.w("MSStreamLoader",B.message),!1}}}]),m}(w),P=M,F=function(oe){Object(h.a)(m,oe);var X=Object(o.a)(m);function m(R,D){var B;return Object(ke.a)(this,m),B=X.call(this,"xhr-range-loader"),B.TAG="RangeLoader",B._seekHandler=R,B._config=D,B._needStash=!1,B._chunkSizeKBList=[128,256,384,512,768,1024,1536,2048,3072,4096,5120,6144,7168,8192],B._currentChunkSizeKB=384,B._currentSpeedNormalized=0,B._zeroSpeedChunkCount=0,B._xhr=null,B._speedSampler=new i,B._requestAbort=!1,B._waitForTotalLength=!1,B._totalLengthReceived=!1,B._currentRequestURL=null,B._currentRedirectedURL=null,B._currentRequestRange=null,B._totalLength=null,B._contentLength=null,B._receivedLength=0,B._lastTimeLoaded=0,B}return Object(De.a)(m,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr=null),x(Object(A.a)(m.prototype),"destroy",this).call(this)}},{key:"currentSpeed",get:function(){return this._speedSampler.lastSecondKBps}},{key:"open",value:function(D,B){this._dataSource=D,this._range=B,this._status=v.kConnecting;var ne=!1;this._dataSource.filesize!=null&&this._dataSource.filesize!==0&&(ne=!0,this._totalLength=this._dataSource.filesize),!this._totalLengthReceived&&!ne?(this._waitForTotalLength=!0,this._internalOpen(this._dataSource,{from:0,to:-1})):this._openSubRange()}},{key:"_openSubRange",value:function(){var D=this._currentChunkSizeKB*1024,B=this._range.from+this._receivedLength,ne=B+D;this._contentLength!=null&&(ne-this._range.from>=this._contentLength&&(ne=this._range.from+this._contentLength-1)),this._currentRequestRange={from:B,to:ne},this._internalOpen(this._dataSource,this._currentRequestRange)}},{key:"_internalOpen",value:function(D,B){this._lastTimeLoaded=0;var ne=D.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?ne=this._currentRedirectedURL:D.redirectedURL!=null&&(ne=D.redirectedURL));var we=this._seekHandler.getConfig(ne,B);this._currentRequestURL=we.url;var Se=this._xhr=new XMLHttpRequest;if(Se.open("GET",we.url,!0),Se.responseType="arraybuffer",Se.onreadystatechange=this._onReadyStateChange.bind(this),Se.onprogress=this._onProgress.bind(this),Se.onload=this._onLoad.bind(this),Se.onerror=this._onXhrError.bind(this),D.withCredentials&&(Se.withCredentials=!0),typeof we.headers=="object"){var Ue=we.headers;for(var Fe in Ue)Ue.hasOwnProperty(Fe)&&Se.setRequestHeader(Fe,Ue[Fe])}if(typeof this._config.headers=="object"){var Ne=this._config.headers;for(var Qe in Ne)Ne.hasOwnProperty(Qe)&&Se.setRequestHeader(Qe,Ne[Qe])}Se.send()}},{key:"abort",value:function(){this._requestAbort=!0,this._internalAbort(),this._status=v.kComplete}},{key:"_internalAbort",value:function(){this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr.abort(),this._xhr=null)}},{key:"_onReadyStateChange",value:function(D){var B=D.target;if(B.readyState===2){if(B.responseURL!=null){var ne=this._seekHandler.removeURLParameters(B.responseURL);B.responseURL!==this._currentRequestURL&&ne!==this._currentRedirectedURL&&(this._currentRedirectedURL=ne,this._onURLRedirect&&this._onURLRedirect(ne))}if(B.status>=200&&B.status<=299){if(this._waitForTotalLength)return;this._status=v.kBuffering}else if(this._status=v.kError,this._onError)this._onError(u.HTTP_STATUS_CODE_INVALID,{code:B.status,msg:B.statusText});else throw new t("RangeLoader: Http code invalid, "+B.status+" "+B.statusText)}}},{key:"_onProgress",value:function(D){if(this._status===v.kError)return;if(this._contentLength===null){var B=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,B=!0;var ne=D.total;this._internalAbort(),ne!=null&ne!==0&&(this._totalLength=ne)}if(this._range.to===-1?this._contentLength=this._totalLength-this._range.from:this._contentLength=this._range.to-this._range.from+1,B){this._openSubRange();return}this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}var we=D.loaded-this._lastTimeLoaded;this._lastTimeLoaded=D.loaded,this._speedSampler.addBytes(we)}},{key:"_normalizeSpeed",value:function(D){var B=this._chunkSizeKBList,ne=B.length-1,we=0,Se=0,Ue=ne;if(D<B[0])return B[0];for(;Se<=Ue;){if(we=Se+Math.floor((Ue-Se)/2),we===ne||D>=B[we]&&D<B[we+1])return B[we];B[we]<D?Se=we+1:Ue=we-1}}},{key:"_onLoad",value:function(D){if(this._status===v.kError)return;if(this._waitForTotalLength){this._waitForTotalLength=!1;return}this._lastTimeLoaded=0;var B=this._speedSampler.lastSecondKBps;if(B===0&&(this._zeroSpeedChunkCount++,this._zeroSpeedChunkCount>=3&&(B=this._speedSampler.currentKBps)),B!==0){var ne=this._normalizeSpeed(B);this._currentSpeedNormalized!==ne&&(this._currentSpeedNormalized=ne,this._currentChunkSizeKB=ne)}var we=D.target.response,Se=this._range.from+this._receivedLength;this._receivedLength+=we.byteLength;var Ue=!1;this._contentLength!=null&&this._receivedLength<this._contentLength?this._openSubRange():Ue=!0,this._onDataArrival&&this._onDataArrival(we,Se,this._receivedLength),Ue&&(this._status=v.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1))}},{key:"_onXhrError",value:function(D){this._status=v.kError;var B=0,ne=null;if(this._contentLength&&this._receivedLength>0&&this._receivedLength<this._contentLength?(B=u.EARLY_EOF,ne={code:-1,msg:"RangeLoader meet Early-Eof"}):(B=u.EXCEPTION,ne={code:-1,msg:D.constructor.name+" "+D.type}),this._onError)this._onError(B,ne);else throw new t(ne.msg)}}],[{key:"isSupported",value:function(){try{var D=new XMLHttpRequest;return D.open("GET","https://example.com",!0),D.responseType="arraybuffer",D.responseType==="arraybuffer"}catch(B){return d.w("RangeLoader",B.message),!1}}}]),m}(w),$=F,Z=function(oe){Object(h.a)(m,oe);var X=Object(o.a)(m);function m(){var R;return Object(ke.a)(this,m),R=X.call(this,"websocket-loader"),R.TAG="WebSocketLoader",R._needStash=!0,R._ws=null,R._requestAbort=!1,R._receivedLength=0,R}return Object(De.a)(m,[{key:"destroy",value:function(){this._ws&&this.abort(),x(Object(A.a)(m.prototype),"destroy",this).call(this)}},{key:"open",value:function(D){try{var B=this._ws=new self.WebSocket(D.url);B.binaryType="arraybuffer",B.onopen=this._onWebSocketOpen.bind(this),B.onclose=this._onWebSocketClose.bind(this),B.onmessage=this._onWebSocketMessage.bind(this),B.onerror=this._onWebSocketError.bind(this),this._status=v.kConnecting}catch(we){this._status=v.kError;var ne={code:we.code,msg:we.message};if(this._onError)this._onError(u.EXCEPTION,ne);else throw new t(ne.msg)}}},{key:"abort",value:function(){var D=this._ws;D&&(D.readyState===0||D.readyState===1)&&(this._requestAbort=!0,D.close()),this._ws=null,this._status=v.kComplete}},{key:"_onWebSocketOpen",value:function(D){this._status=v.kBuffering}},{key:"_onWebSocketClose",value:function(D){if(this._requestAbort===!0){this._requestAbort=!1;return}this._status=v.kComplete,this._onComplete&&this._onComplete(0,this._receivedLength-1)}},{key:"_onWebSocketMessage",value:function(D){var B=this;if(D.data instanceof ArrayBuffer)this._dispatchArrayBuffer(D.data);else if(D.data instanceof Blob){var ne=new FileReader;ne.onload=function(){B._dispatchArrayBuffer(ne.result)},ne.readAsArrayBuffer(D.data)}else{this._status=v.kError;var we={code:-1,msg:"Unsupported WebSocket message type: "+D.data.constructor.name};if(this._onError)this._onError(u.EXCEPTION,we);else throw new t(we.msg)}}},{key:"_dispatchArrayBuffer",value:function(D){var B=D,ne=this._receivedLength;this._receivedLength+=B.byteLength,this._onDataArrival&&this._onDataArrival(B,ne,this._receivedLength)}},{key:"_onWebSocketError",value:function(D){this._status=v.kError;var B={code:D.code,msg:D.message};if(this._onError)this._onError(u.EXCEPTION,B);else throw new t(B.msg)}}],[{key:"isSupported",value:function(){try{return typeof self.WebSocket!="undefined"}catch(D){return!1}}}]),m}(w),Q=Z,re=function(){function oe(X){Object(ke.a)(this,oe),this._zeroStart=X||!1}return Object(De.a)(oe,[{key:"getConfig",value:function(m,R){var D={};if(R.from!==0||R.to!==-1){var B;R.to!==-1?B="bytes=".concat(R.from.toString(),"-").concat(R.to.toString()):B="bytes=".concat(R.from.toString(),"-"),D.Range=B}else this._zeroStart&&(D.Range="bytes=0-");return{url:m,headers:D}}},{key:"removeURLParameters",value:function(m){return m}}]),oe}(),N=re,ue=function(){function oe(X,m){Object(ke.a)(this,oe),this._startName=X,this._endName=m}return Object(De.a)(oe,[{key:"getConfig",value:function(m,R){var D=m;if(R.from!==0||R.to!==-1){var B=!0;D.indexOf("?")===-1&&(D+="?",B=!1),B&&(D+="&"),D+="".concat(this._startName,"=").concat(R.from.toString()),R.to!==-1&&(D+="&".concat(this._endName,"=").concat(R.to.toString()))}return{url:D,headers:{}}}},{key:"removeURLParameters",value:function(m){var R=m.split("?")[0],D=void 0,B=m.indexOf("?");B!==-1&&(D=m.substring(B+1));var ne="";if(D!=null&&D.length>0)for(var we=D.split("&"),Se=0;Se<we.length;Se++){var Ue=we[Se].split("="),Fe=Se>0;Ue[0]!==this._startName&&Ue[0]!==this._endName&&(Fe&&(ne+="&"),ne+=we[Se])}return ne.length===0?R:R+"?"+ne}}]),oe}(),G=ue,V=function(){function oe(X,m,R){Object(ke.a)(this,oe),this.TAG="IOController",this._config=m,this._extraData=R,this._stashInitialSize=1024*384,m.stashInitialSize!=null&&m.stashInitialSize>0&&(this._stashInitialSize=m.stashInitialSize),this._stashUsed=0,this._stashSize=this._stashInitialSize,this._bufferSize=1024*1024*3,this._stashBuffer=new ArrayBuffer(this._bufferSize),this._stashByteStart=0,this._enableStash=!0,m.enableStashBuffer===!1&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=X,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(X.url),this._refTotalLength=X.filesize?X.filesize:null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new i,this._speedNormalizeList=[64,128,256,384,512,768,1024,1536,2048,3072,4096],this._isEarlyEofReconnecting=!1,this._paused=!1,this._resumeFrom=0,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._selectSeekHandler(),this._selectLoader(),this._createLoader()}return Object(De.a)(oe,[{key:"destroy",value:function(){this._loader.isWorking()&&this._loader.abort(),this._loader.destroy(),this._loader=null,this._loaderClass=null,this._dataSource=null,this._stashBuffer=null,this._stashUsed=this._stashSize=this._bufferSize=this._stashByteStart=0,this._currentRange=null,this._speedSampler=null,this._isEarlyEofReconnecting=!1,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._extraData=null}},{key:"isWorking",value:function(){return this._loader&&this._loader.isWorking()&&!this._paused}},{key:"isPaused",value:function(){return this._paused}},{key:"status",get:function(){return this._loader.status}},{key:"extraData",get:function(){return this._extraData},set:function(m){this._extraData=m}},{key:"onDataArrival",get:function(){return this._onDataArrival},set:function(m){this._onDataArrival=m}},{key:"onSeeked",get:function(){return this._onSeeked},set:function(m){this._onSeeked=m}},{key:"onError",get:function(){return this._onError},set:function(m){this._onError=m}},{key:"onComplete",get:function(){return this._onComplete},set:function(m){this._onComplete=m}},{key:"onRedirect",get:function(){return this._onRedirect},set:function(m){this._onRedirect=m}},{key:"onRecoveredEarlyEof",get:function(){return this._onRecoveredEarlyEof},set:function(m){this._onRecoveredEarlyEof=m}},{key:"currentURL",get:function(){return this._dataSource.url}},{key:"hasRedirect",get:function(){return this._redirectedURL!=null||this._dataSource.redirectedURL!=null}},{key:"currentRedirectedURL",get:function(){return this._redirectedURL||this._dataSource.redirectedURL}},{key:"currentSpeed",get:function(){return this._loaderClass===$?this._loader.currentSpeed:this._speedSampler.lastSecondKBps}},{key:"loaderType",get:function(){return this._loader.type}},{key:"_selectSeekHandler",value:function(){var m=this._config;if(m.seekType==="range")this._seekHandler=new N(this._config.rangeLoadZeroStart);else if(m.seekType==="param"){var R=m.seekParamStart||"bstart",D=m.seekParamEnd||"bend";this._seekHandler=new G(R,D)}else if(m.seekType==="custom"){if(typeof m.customSeekHandler!="function")throw new l("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new m.customSeekHandler}else throw new l("Invalid seekType in config: ".concat(m.seekType))}},{key:"_selectLoader",value:function(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=Q;else if(L.isSupported())this._loaderClass=L;else if(z.isSupported())this._loaderClass=z;else if($.isSupported())this._loaderClass=$;else throw new t("Your browser doesn't support xhr with arraybuffer responseType!")}},{key:"_createLoader",value:function(){this._loader=new this._loaderClass(this._seekHandler,this._config),this._loader.needStashBuffer===!1&&(this._enableStash=!1),this._loader.onContentLengthKnown=this._onContentLengthKnown.bind(this),this._loader.onURLRedirect=this._onURLRedirect.bind(this),this._loader.onDataArrival=this._onLoaderChunkArrival.bind(this),this._loader.onComplete=this._onLoaderComplete.bind(this),this._loader.onError=this._onLoaderError.bind(this)}},{key:"open",value:function(m){this._currentRange={from:0,to:-1},m&&(this._currentRange.from=m),this._speedSampler.reset(),m||(this._fullRequestFlag=!0),this._loader.open(this._dataSource,Object.assign({},this._currentRange))}},{key:"abort",value:function(){this._loader.abort(),this._paused&&(this._paused=!1,this._resumeFrom=0)}},{key:"pause",value:function(){this.isWorking()&&(this._loader.abort(),this._stashUsed!==0?(this._resumeFrom=this._stashByteStart,this._currentRange.to=this._stashByteStart-1):this._resumeFrom=this._currentRange.to+1,this._stashUsed=0,this._stashByteStart=0,this._paused=!0)}},{key:"resume",value:function(){if(this._paused){this._paused=!1;var m=this._resumeFrom;this._resumeFrom=0,this._internalSeek(m,!0)}}},{key:"seek",value:function(m){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(m,!0)}},{key:"_internalSeek",value:function(m,R){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(R),this._loader.destroy(),this._loader=null;var D={from:m,to:-1};this._currentRange={from:D.from,to:-1},this._speedSampler.reset(),this._stashSize=this._stashInitialSize,this._createLoader(),this._loader.open(this._dataSource,D),this._onSeeked&&this._onSeeked()}},{key:"updateUrl",value:function(m){if(!m||typeof m!="string"||m.length===0)throw new l("Url must be a non-empty string!");this._dataSource.url=m}},{key:"_expandBuffer",value:function(m){for(var R=this._stashSize;R+1024*1024*1<m;)R*=2;if(R+=1024*1024*1,R===this._bufferSize)return;var D=new ArrayBuffer(R);if(this._stashUsed>0){var B=new Uint8Array(this._stashBuffer,0,this._stashUsed),ne=new Uint8Array(D,0,R);ne.set(B,0)}this._stashBuffer=D,this._bufferSize=R}},{key:"_normalizeSpeed",value:function(m){var R=this._speedNormalizeList,D=R.length-1,B=0,ne=0,we=D;if(m<R[0])return R[0];for(;ne<=we;){if(B=ne+Math.floor((we-ne)/2),B===D||m>=R[B]&&m<R[B+1])return R[B];R[B]<m?ne=B+1:we=B-1}}},{key:"_adjustStashSize",value:function(m){var R=0;this._config.isLive||m<512?R=m:m>=512&&m<=1024?R=Math.floor(m*1.5):R=m*2,R>8192&&(R=8192);var D=R*1024+1024*1024*1;this._bufferSize<D&&this._expandBuffer(D),this._stashSize=R*1024}},{key:"_dispatchChunks",value:function(m,R){return this._currentRange.to=R+m.byteLength-1,this._onDataArrival(m,R)}},{key:"_onURLRedirect",value:function(m){this._redirectedURL=m,this._onRedirect&&this._onRedirect(m)}},{key:"_onContentLengthKnown",value:function(m){m&&this._fullRequestFlag&&(this._totalLength=m,this._fullRequestFlag=!1)}},{key:"_onLoaderChunkArrival",value:function(m,R,D){if(!this._onDataArrival)throw new a("IOController: No existing consumer (onDataArrival) callback!");if(this._paused)return;this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,this._onRecoveredEarlyEof&&this._onRecoveredEarlyEof()),this._speedSampler.addBytes(m.byteLength);var B=this._speedSampler.lastSecondKBps;if(B!==0){var ne=this._normalizeSpeed(B);this._speedNormalized!==ne&&(this._speedNormalized=ne,this._adjustStashSize(ne))}if(this._enableStash)if(this._stashUsed===0&&this._stashByteStart===0&&(this._stashByteStart=R),this._stashUsed+m.byteLength<=this._stashSize){var $e=new Uint8Array(this._stashBuffer,0,this._stashSize);$e.set(new Uint8Array(m),this._stashUsed),this._stashUsed+=m.byteLength}else{var je=new Uint8Array(this._stashBuffer,0,this._bufferSize);if(this._stashUsed>0){var et=this._stashBuffer.slice(0,this._stashUsed),We=this._dispatchChunks(et,this._stashByteStart);if(We<et.byteLength){if(We>0){var Ve=new Uint8Array(et,We);je.set(Ve,0),this._stashUsed=Ve.byteLength,this._stashByteStart+=We}}else this._stashUsed=0,this._stashByteStart+=We;this._stashUsed+m.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+m.byteLength),je=new Uint8Array(this._stashBuffer,0,this._bufferSize)),je.set(new Uint8Array(m),this._stashUsed),this._stashUsed+=m.byteLength}else{var ze=this._dispatchChunks(m,R);if(ze<m.byteLength){var tt=m.byteLength-ze;tt>this._bufferSize&&(this._expandBuffer(tt),je=new Uint8Array(this._stashBuffer,0,this._bufferSize)),je.set(new Uint8Array(m,ze),0),this._stashUsed+=tt,this._stashByteStart=R+ze}}}else if(this._stashUsed===0){var we=this._dispatchChunks(m,R);if(we<m.byteLength){var Se=m.byteLength-we;Se>this._bufferSize&&this._expandBuffer(Se);var Ue=new Uint8Array(this._stashBuffer,0,this._bufferSize);Ue.set(new Uint8Array(m,we),0),this._stashUsed+=Se,this._stashByteStart=R+we}}else{this._stashUsed+m.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+m.byteLength);var Fe=new Uint8Array(this._stashBuffer,0,this._bufferSize);Fe.set(new Uint8Array(m),this._stashUsed),this._stashUsed+=m.byteLength;var Ne=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(Ne<this._stashUsed&&Ne>0){var Qe=new Uint8Array(this._stashBuffer,Ne);Fe.set(Qe,0)}this._stashUsed-=Ne,this._stashByteStart+=Ne}}},{key:"_flushStashBuffer",value:function(m){if(this._stashUsed>0){var R=this._stashBuffer.slice(0,this._stashUsed),D=this._dispatchChunks(R,this._stashByteStart),B=R.byteLength-D;if(D<R.byteLength)if(m)d.w(this.TAG,"".concat(B," bytes unconsumed data remain when flush buffer, dropped"));else{if(D>0){var ne=new Uint8Array(this._stashBuffer,0,this._bufferSize),we=new Uint8Array(R,D);ne.set(we,0),this._stashUsed=we.byteLength,this._stashByteStart+=D}return 0}return this._stashUsed=0,this._stashByteStart=0,B}return 0}},{key:"_onLoaderComplete",value:function(m,R){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}},{key:"_onLoaderError",value:function(m,R){d.e(this.TAG,"Loader error, code = ".concat(R.code,", msg = ").concat(R.msg)),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,m=u.UNRECOVERABLE_EARLY_EOF);switch(m){case u.EARLY_EOF:{if(!this._config.isLive&&this._totalLength){var D=this._currentRange.to+1;D<this._totalLength&&(d.w(this.TAG,"Connection lost, trying reconnect..."),this._isEarlyEofReconnecting=!0,this._internalSeek(D,!1));return}m=u.UNRECOVERABLE_EARLY_EOF;break}case u.UNRECOVERABLE_EARLY_EOF:case u.CONNECTING_TIMEOUT:case u.HTTP_STATUS_CODE_INVALID:case u.EXCEPTION:break}if(this._onError)this._onError(m,R);else throw new t("IOException: "+R.msg)}}]),oe}(),T=V,U={enableWorker:!1,enableStashBuffer:!0,stashInitialSize:void 0,isLive:!1,lazyLoad:!0,lazyLoadMaxDuration:3*60,lazyLoadRecoverDuration:30,deferLoadAfterSourceOpen:!0,autoCleanupMaxBackwardDuration:3*60,autoCleanupMinBackwardDuration:2*60,statisticsInfoReportInterval:600,fixAudioTimestampGap:!0,accurateSeek:!1,seekType:"range",seekParamStart:"bstart",seekParamEnd:"bend",rangeLoadZeroStart:!1,customSeekHandler:void 0,reuseRedirectedURL:!1,headers:void 0,customLoader:void 0};function H(){return Object.assign({},U)}var K=function(){function oe(){Object(ke.a)(this,oe)}return Object(De.a)(oe,null,[{key:"supportMSEH264Playback",value:function(){return window.MediaSource&&window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"')}},{key:"supportNetworkStreamIO",value:function(){var m=new T({},H()),R=m.loaderType;return m.destroy(),R=="fetch-stream-loader"||R=="xhr-moz-chunked-loader"}},{key:"getNetworkLoaderTypeName",value:function(){var m=new T({},H()),R=m.loaderType;return m.destroy(),R}},{key:"supportNativeMediaPlayback",value:function(m){oe.videoElement==null&&(oe.videoElement=window.document.createElement("video"));var R=oe.videoElement.canPlayType(m);return R==="probably"||R=="maybe"}},{key:"getFeatureList",value:function(){var m={mseFlvPlayback:!1,mseLiveFlvPlayback:!1,networkStreamIO:!1,networkLoaderName:"",nativeMP4H264Playback:!1,nativeWebmVP8Playback:!1,nativeWebmVP9Playback:!1};return m.mseFlvPlayback=oe.supportMSEH264Playback(),m.networkStreamIO=oe.supportNetworkStreamIO(),m.networkLoaderName=oe.getNetworkLoaderTypeName(),m.mseLiveFlvPlayback=m.mseFlvPlayback&&m.networkStreamIO,m.nativeMP4H264Playback=oe.supportNativeMediaPlayback('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),m.nativeWebmVP8Playback=oe.supportNativeMediaPlayback('video/webm; codecs="vp8.0, vorbis"'),m.nativeWebmVP9Playback=oe.supportNativeMediaPlayback('video/webm; codecs="vp9"'),m}}]),oe}(),be=K,ae={ERROR:"error",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info"},_e=ae,se=function(){function oe(){Object(ke.a)(this,oe)}return Object(De.a)(oe,null,[{key:"forceGlobalTag",get:function(){return d.FORCE_GLOBAL_TAG},set:function(m){d.FORCE_GLOBAL_TAG=m,oe._notifyChange()}},{key:"globalTag",get:function(){return d.GLOBAL_TAG},set:function(m){d.GLOBAL_TAG=m,oe._notifyChange()}},{key:"enableAll",get:function(){return d.ENABLE_VERBOSE&&d.ENABLE_DEBUG&&d.ENABLE_INFO&&d.ENABLE_WARN&&d.ENABLE_ERROR},set:function(m){d.ENABLE_VERBOSE=m,d.ENABLE_DEBUG=m,d.ENABLE_INFO=m,d.ENABLE_WARN=m,d.ENABLE_ERROR=m,oe._notifyChange()}},{key:"enableDebug",get:function(){return d.ENABLE_DEBUG},set:function(m){d.ENABLE_DEBUG=m,oe._notifyChange()}},{key:"enableVerbose",get:function(){return d.ENABLE_VERBOSE},set:function(m){d.ENABLE_VERBOSE=m,oe._notifyChange()}},{key:"enableInfo",get:function(){return d.ENABLE_INFO},set:function(m){d.ENABLE_INFO=m,oe._notifyChange()}},{key:"enableWarn",get:function(){return d.ENABLE_WARN},set:function(m){d.ENABLE_WARN=m,oe._notifyChange()}},{key:"enableError",get:function(){return d.ENABLE_ERROR},set:function(m){d.ENABLE_ERROR=m,oe._notifyChange()}},{key:"getConfig",value:function(){return{globalTag:d.GLOBAL_TAG,forceGlobalTag:d.FORCE_GLOBAL_TAG,enableVerbose:d.ENABLE_VERBOSE,enableDebug:d.ENABLE_DEBUG,enableInfo:d.ENABLE_INFO,enableWarn:d.ENABLE_WARN,enableError:d.ENABLE_ERROR,enableCallback:d.ENABLE_CALLBACK}}},{key:"applyConfig",value:function(m){d.GLOBAL_TAG=m.globalTag,d.FORCE_GLOBAL_TAG=m.forceGlobalTag,d.ENABLE_VERBOSE=m.enableVerbose,d.ENABLE_DEBUG=m.enableDebug,d.ENABLE_INFO=m.enableInfo,d.ENABLE_WARN=m.enableWarn,d.ENABLE_ERROR=m.enableError,d.ENABLE_CALLBACK=m.enableCallback}},{key:"_notifyChange",value:function(){var m=oe.emitter;if(m.listenerCount("change")>0){var R=oe.getConfig();m.emit("change",R)}}},{key:"registerListener",value:function(m){oe.emitter.addListener("change",m)}},{key:"removeListener",value:function(m){oe.emitter.removeListener("change",m)}},{key:"addLogListener",value:function(m){d.emitter.addListener("log",m),d.emitter.listenerCount("log")>0&&(d.ENABLE_CALLBACK=!0,oe._notifyChange())}},{key:"removeLogListener",value:function(m){d.emitter.removeListener("log",m),d.emitter.listenerCount("log")===0&&(d.ENABLE_CALLBACK=!1,oe._notifyChange())}}]),oe}();se.emitter=new p.a;var ve=se,te=function(){function oe(){Object(ke.a)(this,oe),this.mimeType=null,this.duration=null,this.hasAudio=null,this.hasVideo=null,this.audioCodec=null,this.videoCodec=null,this.audioDataRate=null,this.videoDataRate=null,this.audioSampleRate=null,this.audioChannelCount=null,this.width=null,this.height=null,this.fps=null,this.profile=null,this.level=null,this.refFrames=null,this.chromaFormat=null,this.sarNum=null,this.sarDen=null,this.metadata=null,this.segments=null,this.segmentCount=null,this.hasKeyframesIndex=null,this.keyframesIndex=null}return Object(De.a)(oe,[{key:"isComplete",value:function(){var m=this.hasAudio===!1||this.hasAudio===!0&&this.audioCodec!=null&&this.audioSampleRate!=null&&this.audioChannelCount!=null,R=this.hasVideo===!1||this.hasVideo===!0&&this.videoCodec!=null&&this.width!=null&&this.height!=null&&this.fps!=null&&this.profile!=null&&this.level!=null&&this.refFrames!=null&&this.chromaFormat!=null&&this.sarNum!=null&&this.sarDen!=null;return this.mimeType!=null&&this.duration!=null&&this.metadata!=null&&this.hasKeyframesIndex!=null&&m&&R}},{key:"isSeekable",value:function(){return this.hasKeyframesIndex===!0}},{key:"getNearestKeyframe",value:function(m){if(this.keyframesIndex==null)return null;var R=this.keyframesIndex,D=this._search(R.times,m);return{index:D,milliseconds:R.times[D],fileposition:R.filepositions[D]}}},{key:"_search",value:function(m,R){var D=0,B=m.length-1,ne=0,we=0,Se=B;for(R<m[0]&&(D=0,we=Se+1);we<=Se;)if(ne=we+Math.floor((Se-we)/2),ne===B||R>=m[ne]&&R<m[ne+1]){D=ne;break}else m[ne]<R?we=ne+1:Se=ne-1;return D}}]),oe}(),J=te;function q(oe,X,m){var R=oe;if(X+m<R.length){for(;m--;)if((R[++X]&192)!==128)return!1;return!0}else return!1}function he(oe){for(var X=[],m=oe,R=0,D=oe.length;R<D;){if(m[R]<128){X.push(String.fromCharCode(m[R])),++R;continue}else if(!(m[R]<192)){if(m[R]<224){if(q(m,R,1)){var B=(m[R]&31)<<6|m[R+1]&63;if(B>=128){X.push(String.fromCharCode(B&65535)),R+=2;continue}}}else if(m[R]<240){if(q(m,R,2)){var ne=(m[R]&15)<<12|(m[R+1]&63)<<6|m[R+2]&63;if(ne>=2048&&(ne&63488)!==55296){X.push(String.fromCharCode(ne&65535)),R+=3;continue}}}else if(m[R]<248&&q(m,R,3)){var we=(m[R]&7)<<18|(m[R+1]&63)<<12|(m[R+2]&63)<<6|m[R+3]&63;if(we>65536&&we<1114112){we-=65536,X.push(String.fromCharCode(we>>>10|55296)),X.push(String.fromCharCode(we&1023|56320)),R+=4;continue}}}X.push(String.fromCharCode(65533)),++R}return X.join("")}var Y=he,W=function(){var oe=new ArrayBuffer(2);return new DataView(oe).setInt16(0,256,!0),new Int16Array(oe)[0]===256}(),me=function(){function oe(){Object(ke.a)(this,oe)}return Object(De.a)(oe,null,[{key:"parseScriptData",value:function(m,R,D){var B={};try{var ne=oe.parseValue(m,R,D),we=oe.parseValue(m,R+ne.size,D-ne.size);B[ne.data]=we.data}catch(Se){d.e("AMF",Se.toString())}return B}},{key:"parseObject",value:function(m,R,D){if(D<3)throw new a("Data not enough when parse ScriptDataObject");var B=oe.parseString(m,R,D),ne=oe.parseValue(m,R+B.size,D-B.size),we=ne.objectEnd;return{data:{name:B.data,value:ne.data},size:B.size+ne.size,objectEnd:we}}},{key:"parseVariable",value:function(m,R,D){return oe.parseObject(m,R,D)}},{key:"parseString",value:function(m,R,D){if(D<2)throw new a("Data not enough when parse String");var B=new DataView(m,R,D),ne=B.getUint16(0,!W),we;return ne>0?we=Y(new Uint8Array(m,R+2,ne)):we="",{data:we,size:2+ne}}},{key:"parseLongString",value:function(m,R,D){if(D<4)throw new a("Data not enough when parse LongString");var B=new DataView(m,R,D),ne=B.getUint32(0,!W),we;return ne>0?we=Y(new Uint8Array(m,R+4,ne)):we="",{data:we,size:4+ne}}},{key:"parseDate",value:function(m,R,D){if(D<10)throw new a("Data size invalid when parse Date");var B=new DataView(m,R,D),ne=B.getFloat64(0,!W),we=B.getInt16(8,!W);return ne+=we*60*1e3,{data:new Date(ne),size:8+2}}},{key:"parseValue",value:function(m,R,D){if(D<1)throw new a("Data not enough when parse Value");var B=new DataView(m,R,D),ne=1,we=B.getUint8(0),Se,Ue=!1;try{switch(we){case 0:Se=B.getFloat64(1,!W),ne+=8;break;case 1:{var Fe=B.getUint8(1);Se=!!Fe,ne+=1;break}case 2:{var Ne=oe.parseString(m,R+1,D-1);Se=Ne.data,ne+=Ne.size;break}case 3:{Se={};var Qe=0;for((B.getUint32(D-4,!W)&16777215)===9&&(Qe=3);ne<D-4;){var $e=oe.parseObject(m,R+ne,D-ne-Qe);if($e.objectEnd)break;Se[$e.data.name]=$e.data.value,ne+=$e.size}if(ne<=D-3){var je=B.getUint32(ne-1,!W)&16777215;je===9&&(ne+=3)}break}case 8:{Se={},ne+=4;var et=0;for((B.getUint32(D-4,!W)&16777215)===9&&(et=3);ne<D-8;){var We=oe.parseVariable(m,R+ne,D-ne-et);if(We.objectEnd)break;Se[We.data.name]=We.data.value,ne+=We.size}if(ne<=D-3){var Ve=B.getUint32(ne-1,!W)&16777215;Ve===9&&(ne+=3)}break}case 9:Se=void 0,ne=1,Ue=!0;break;case 10:{Se=[];var ze=B.getUint32(1,!W);ne+=4;for(var tt=0;tt<ze;tt++){var it=oe.parseValue(m,R+ne,D-ne);Se.push(it.data),ne+=it.size}break}case 11:{var Je=oe.parseDate(m,R+1,D-1);Se=Je.data,ne+=Je.size;break}case 12:{var ot=oe.parseString(m,R+1,D-1);Se=ot.data,ne+=ot.size;break}default:ne=D,d.w("AMF","Unsupported AMF value type "+we)}}catch(ht){d.e("AMF",ht.toString())}return{data:Se,size:ne,objectEnd:Ue}}}]),oe}(),ge=me,Ae=function(){function oe(X){Object(ke.a)(this,oe),this.TAG="ExpGolomb",this._buffer=X,this._buffer_index=0,this._total_bytes=X.byteLength,this._total_bits=X.byteLength*8,this._current_word=0,this._current_word_bits_left=0}return Object(De.a)(oe,[{key:"destroy",value:function(){this._buffer=null}},{key:"_fillCurrentWord",value:function(){var m=this._total_bytes-this._buffer_index;if(m<=0)throw new a("ExpGolomb: _fillCurrentWord() but no bytes available");var R=Math.min(4,m),D=new Uint8Array(4);D.set(this._buffer.subarray(this._buffer_index,this._buffer_index+R)),this._current_word=new DataView(D.buffer).getUint32(0,!1),this._buffer_index+=R,this._current_word_bits_left=R*8}},{key:"readBits",value:function(m){if(m>32)throw new l("ExpGolomb: readBits() bits exceeded max 32bits!");if(m<=this._current_word_bits_left){var R=this._current_word>>>32-m;return this._current_word<<=m,this._current_word_bits_left-=m,R}var D=this._current_word_bits_left?this._current_word:0;D=D>>>32-this._current_word_bits_left;var B=m-this._current_word_bits_left;this._fillCurrentWord();var ne=Math.min(B,this._current_word_bits_left),we=this._current_word>>>32-ne;return this._current_word<<=ne,this._current_word_bits_left-=ne,D=D<<ne|we,D}},{key:"readBool",value:function(){return this.readBits(1)===1}},{key:"readByte",value:function(){return this.readBits(8)}},{key:"_skipLeadingZero",value:function(){var m;for(m=0;m<this._current_word_bits_left;m++)if((this._current_word&2147483648>>>m)!==0)return this._current_word<<=m,this._current_word_bits_left-=m,m;return this._fillCurrentWord(),m+this._skipLeadingZero()}},{key:"readUEG",value:function(){var m=this._skipLeadingZero();return this.readBits(m+1)-1}},{key:"readSEG",value:function(){var m=this.readUEG();return m&1?m+1>>>1:-1*(m>>>1)}}]),oe}(),I=Ae,e=function(){function oe(){Object(ke.a)(this,oe)}return Object(De.a)(oe,null,[{key:"_ebsp2rbsp",value:function(m){for(var R=m,D=R.byteLength,B=new Uint8Array(D),ne=0,we=0;we<D;we++){if(we>=2&&(R[we]===3&&R[we-1]===0&&R[we-2]===0))continue;B[ne]=R[we],ne++}return new Uint8Array(B.buffer,0,ne)}},{key:"parseSPS",value:function(m){var R=oe._ebsp2rbsp(m),D=new I(R);D.readByte();var B=D.readByte();D.readByte();var ne=D.readByte();D.readUEG();var we=oe.getProfileString(B),Se=oe.getLevelString(ne),Ue=1,Fe=420,Ne=[0,420,422,444],Qe=8;if((B===100||B===110||B===122||B===244||B===44||B===83||B===86||B===118||B===128||B===138||B===144)&&(Ue=D.readUEG(),Ue===3&&D.readBits(1),Ue<=3&&(Fe=Ne[Ue]),Qe=D.readUEG()+8,D.readUEG(),D.readBits(1),D.readBool()))for(var $e=Ue!==3?8:12,je=0;je<$e;je++)D.readBool()&&(je<6?oe._skipScalingList(D,16):oe._skipScalingList(D,64));D.readUEG();var et=D.readUEG();if(et===0)D.readUEG();else if(et===1){D.readBits(1),D.readSEG(),D.readSEG();for(var We=D.readUEG(),Ve=0;Ve<We;Ve++)D.readSEG()}var ze=D.readUEG();D.readBits(1);var tt=D.readUEG(),it=D.readUEG(),Je=D.readBits(1);Je===0&&D.readBits(1),D.readBits(1);var ot=0,ht=0,pt=0,vt=0,Et=D.readBool();Et&&(ot=D.readUEG(),ht=D.readUEG(),pt=D.readUEG(),vt=D.readUEG());var At=1,bt=1,Tt=0,It=!0,Pt=0,kt=0,Ot=D.readBool();if(Ot){if(D.readBool()){var St=D.readByte(),Vt=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],Nt=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];St>0&&St<16?(At=Vt[St-1],bt=Nt[St-1]):St===255&&(At=D.readByte()<<8|D.readByte(),bt=D.readByte()<<8|D.readByte())}if(D.readBool()&&D.readBool(),D.readBool()&&(D.readBits(4),D.readBool()&&D.readBits(24)),D.readBool()&&(D.readUEG(),D.readUEG()),D.readBool()){var Ct=D.readBits(32),Rt=D.readBits(32);It=D.readBool(),Pt=Rt,kt=Ct*2,Tt=Pt/kt}}var Mt=1;(At!==1||bt!==1)&&(Mt=At/bt);var Ut=0,Ft=0;if(Ue===0)Ut=1,Ft=2-Je;else{var Bt=Ue===3?1:2,Wt=Ue===1?2:1;Ut=Bt,Ft=Wt*(2-Je)}var jt=(tt+1)*16,zt=(2-Je)*((it+1)*16);jt-=(ot+ht)*Ut,zt-=(pt+vt)*Ft;var Ht=Math.ceil(jt*Mt);return D.destroy(),D=null,{profile_string:we,level_string:Se,bit_depth:Qe,ref_frames:ze,chroma_format:Fe,chroma_format_string:oe.getChromaFormatString(Fe),frame_rate:{fixed:It,fps:Tt,fps_den:kt,fps_num:Pt},sar_ratio:{width:At,height:bt},codec_size:{width:jt,height:zt},present_size:{width:Ht,height:zt}}}},{key:"_skipScalingList",value:function(m,R){for(var D=8,B=8,ne=0,we=0;we<R;we++)B!==0&&(ne=m.readSEG(),B=(D+ne+256)%256),D=B===0?D:B}},{key:"getProfileString",value:function(m){switch(m){case 66:return"Baseline";case 77:return"Main";case 88:return"Extended";case 100:return"High";case 110:return"High10";case 122:return"High422";case 244:return"High444";default:return"Unknown"}}},{key:"getLevelString",value:function(m){return(m/10).toFixed(1)}},{key:"getChromaFormatString",value:function(m){switch(m){case 420:return"4:2:0";case 422:return"4:2:2";case 444:return"4:4:4";default:return"Unknown"}}}]),oe}(),n=e,C={OK:"OK",FORMAT_ERROR:"FormatError",FORMAT_UNSUPPORTED:"FormatUnsupported",CODEC_UNSUPPORTED:"CodecUnsupported"},b=C;function S(oe){return oe>>>8&255|(oe&255)<<8}function ee(oe){return(oe&4278190080)>>>24|(oe&16711680)>>>8|(oe&65280)<<8|(oe&255)<<24}function fe(oe,X){return oe[X]<<24|oe[X+1]<<16|oe[X+2]<<8|oe[X+3]}var Me=function(){function oe(X,m){Object(ke.a)(this,oe),this.TAG="FLVDemuxer",this._config=m,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=X.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=X.hasAudioTrack,this._hasVideo=X.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new J,this._mediaInfo.hasAudio=this._hasAudio,this._mediaInfo.hasVideo=this._hasVideo,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._naluLengthSize=4,this._timestampBase=0,this._timescale=1e3,this._duration=0,this._durationOverrided=!1,this._referenceFrameRate={fixed:!0,fps:23.976,fps_num:23976,fps_den:1e3},this._flvSoundRateTable=[5500,11025,22050,44100,48e3],this._mpegSamplingRates=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],this._mpegAudioV10SampleRateTable=[44100,48e3,32e3,0],this._mpegAudioV20SampleRateTable=[22050,24e3,16e3,0],this._mpegAudioV25SampleRateTable=[11025,12e3,8e3,0],this._mpegAudioL1BitRateTable=[0,32,64,96,128,160,192,224,256,288,320,352,384,416,448,-1],this._mpegAudioL2BitRateTable=[0,32,48,56,64,80,96,112,128,160,192,224,256,320,384,-1],this._mpegAudioL3BitRateTable=[0,32,40,48,56,64,80,96,112,128,160,192,224,256,320,-1],this._videoTrack={type:"video",id:1,sequenceNumber:0,samples:[],length:0},this._audioTrack={type:"audio",id:2,sequenceNumber:0,samples:[],length:0},this._littleEndian=function(){var R=new ArrayBuffer(2);return new DataView(R).setInt16(0,256,!0),new Int16Array(R)[0]===256}()}return Object(De.a)(oe,[{key:"destroy",value:function(){this._mediaInfo=null,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._videoTrack=null,this._audioTrack=null,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null}},{key:"bindDataSource",value:function(m){return m.onDataArrival=this.parseChunks.bind(this),this}},{key:"onTrackMetadata",get:function(){return this._onTrackMetadata},set:function(m){this._onTrackMetadata=m}},{key:"onMediaInfo",get:function(){return this._onMediaInfo},set:function(m){this._onMediaInfo=m}},{key:"onMetaDataArrived",get:function(){return this._onMetaDataArrived},set:function(m){this._onMetaDataArrived=m}},{key:"onScriptDataArrived",get:function(){return this._onScriptDataArrived},set:function(m){this._onScriptDataArrived=m}},{key:"onError",get:function(){return this._onError},set:function(m){this._onError=m}},{key:"onDataAvailable",get:function(){return this._onDataAvailable},set:function(m){this._onDataAvailable=m}},{key:"timestampBase",get:function(){return this._timestampBase},set:function(m){this._timestampBase=m}},{key:"overridedDuration",get:function(){return this._duration},set:function(m){this._durationOverrided=!0,this._duration=m,this._mediaInfo.duration=m}},{key:"overridedHasAudio",set:function(m){this._hasAudioFlagOverrided=!0,this._hasAudio=m,this._mediaInfo.hasAudio=m}},{key:"overridedHasVideo",set:function(m){this._hasVideoFlagOverrided=!0,this._hasVideo=m,this._mediaInfo.hasVideo=m}},{key:"resetMediaInfo",value:function(){this._mediaInfo=new J}},{key:"_isInitialMetadataDispatched",value:function(){return this._hasAudio&&this._hasVideo?this._audioInitialMetadataDispatched&&this._videoInitialMetadataDispatched:this._hasAudio&&!this._hasVideo?this._audioInitialMetadataDispatched:!this._hasAudio&&this._hasVideo?this._videoInitialMetadataDispatched:!1}},{key:"parseChunks",value:function(m,R){if(!this._onError||!this._onMediaInfo||!this._onTrackMetadata||!this._onDataAvailable)throw new a("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");var D=0,B=this._littleEndian;if(R===0)if(m.byteLength>13){var ne=oe.probe(m);D=ne.dataOffset}else return 0;if(this._firstParse){this._firstParse=!1,R+D!==this._dataOffset&&d.w(this.TAG,"First time parsing but chunk byteStart invalid!");var we=new DataView(m,D),Se=we.getUint32(0,!B);Se!==0&&d.w(this.TAG,"PrevTagSize0 !== 0 !!!"),D+=4}for(;D<m.byteLength;){this._dispatch=!0;var Ue=new DataView(m,D);if(D+11+4>m.byteLength)break;var Fe=Ue.getUint8(0),Ne=Ue.getUint32(0,!B)&16777215;if(D+11+Ne+4>m.byteLength)break;if(Fe!==8&&Fe!==9&&Fe!==18){d.w(this.TAG,"Unsupported tag type ".concat(Fe,", skipped")),D+=11+Ne+4;continue}var Qe=Ue.getUint8(4),$e=Ue.getUint8(5),je=Ue.getUint8(6),et=Ue.getUint8(7),We=je|$e<<8|Qe<<16|et<<24,Ve=Ue.getUint32(7,!B)&16777215;Ve!==0&&d.w(this.TAG,"Meet tag which has StreamID != 0!");var ze=D+11;switch(Fe){case 8:this._parseAudioData(m,ze,Ne,We);break;case 9:this._parseVideoData(m,ze,Ne,We,R+D);break;case 18:this._parseScriptData(m,ze,Ne);break}var tt=Ue.getUint32(11+Ne,!B);tt!==11+Ne&&d.w(this.TAG,"Invalid PrevTagSize ".concat(tt)),D+=11+Ne+4}return this._isInitialMetadataDispatched()&&(this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack)),D}},{key:"_parseScriptData",value:function(m,R,D){var B=ge.parseScriptData(m,R,D);if(B.hasOwnProperty("onMetaData")){if(B.onMetaData==null||typeof B.onMetaData!="object"){d.w(this.TAG,"Invalid onMetaData structure!");return}this._metadata&&d.w(this.TAG,"Found another onMetaData tag!"),this._metadata=B;var ne=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},ne)),typeof ne.hasAudio=="boolean"&&(this._hasAudioFlagOverrided===!1&&(this._hasAudio=ne.hasAudio,this._mediaInfo.hasAudio=this._hasAudio)),typeof ne.hasVideo=="boolean"&&(this._hasVideoFlagOverrided===!1&&(this._hasVideo=ne.hasVideo,this._mediaInfo.hasVideo=this._hasVideo)),typeof ne.audiodatarate=="number"&&(this._mediaInfo.audioDataRate=ne.audiodatarate),typeof ne.videodatarate=="number"&&(this._mediaInfo.videoDataRate=ne.videodatarate),typeof ne.width=="number"&&(this._mediaInfo.width=ne.width),typeof ne.height=="number"&&(this._mediaInfo.height=ne.height),typeof ne.duration=="number"){if(!this._durationOverrided){var we=Math.floor(ne.duration*this._timescale);this._duration=we,this._mediaInfo.duration=we}}else this._mediaInfo.duration=0;if(typeof ne.framerate=="number"){var Se=Math.floor(ne.framerate*1e3);if(Se>0){var Ue=Se/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=Ue,this._referenceFrameRate.fps_num=Se,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=Ue}}if(typeof ne.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;var Fe=ne.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(Fe),ne.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=ne,d.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(B).length>0&&(this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},B)))}},{key:"_parseKeyframesIndex",value:function(m){for(var R=[],D=[],B=1;B<m.times.length;B++){var ne=this._timestampBase+Math.floor(m.times[B]*1e3);R.push(ne),D.push(m.filepositions[B])}return{times:R,filepositions:D}}},{key:"_parseAudioData",value:function(m,R,D,B){if(D<=1){d.w(this.TAG,"Flv: Invalid audio packet, missing SoundData payload!");return}if(this._hasAudioFlagOverrided===!0&&this._hasAudio===!1)return;var ne=this._littleEndian,we=new DataView(m,R,D),Se=we.getUint8(0),Ue=Se>>>4;if(Ue!==2&&Ue!==10){this._onError(b.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+Ue);return}var Fe=0,Ne=(Se&12)>>>2;if(Ne>=0&&Ne<=4)Fe=this._flvSoundRateTable[Ne];else{this._onError(b.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+Ne);return}var Qe=(Se&2)>>>1,$e=Se&1,je=this._audioMetadata,et=this._audioTrack;if(je||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),je=this._audioMetadata={},je.type="audio",je.id=et.id,je.timescale=this._timescale,je.duration=this._duration,je.audioSampleRate=Fe,je.channelCount=$e===0?1:2),Ue===10){var We=this._parseAACAudioData(m,R+1,D-1);if(We==null)return;if(We.packetType===0){je.config&&d.w(this.TAG,"Found another AudioSpecificConfig!");var Ve=We.data;je.audioSampleRate=Ve.samplingRate,je.channelCount=Ve.channelCount,je.codec=Ve.codec,je.originalCodec=Ve.originalCodec,je.config=Ve.config,je.refSampleDuration=1024/je.audioSampleRate*je.timescale,d.v(this.TAG,"Parsed AudioSpecificConfig"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._audioInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("audio",je);var ze=this._mediaInfo;ze.audioCodec=je.originalCodec,ze.audioSampleRate=je.audioSampleRate,ze.audioChannelCount=je.channelCount,ze.hasVideo?ze.videoCodec!=null&&(ze.mimeType='video/x-flv; codecs="'+ze.videoCodec+","+ze.audioCodec+'"'):ze.mimeType='video/x-flv; codecs="'+ze.audioCodec+'"',ze.isComplete()&&this._onMediaInfo(ze)}else if(We.packetType===1){var tt=this._timestampBase+B,it={unit:We.data,length:We.data.byteLength,dts:tt,pts:tt};et.samples.push(it),et.length+=We.data.length}else d.e(this.TAG,"Flv: Unsupported AAC data type ".concat(We.packetType))}else if(Ue===2){if(!je.codec){var Je=this._parseMP3AudioData(m,R+1,D-1,!0);if(Je==null)return;je.audioSampleRate=Je.samplingRate,je.channelCount=Je.channelCount,je.codec=Je.codec,je.originalCodec=Je.originalCodec,je.refSampleDuration=1152/je.audioSampleRate*je.timescale,d.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",je);var ot=this._mediaInfo;ot.audioCodec=je.codec,ot.audioSampleRate=je.audioSampleRate,ot.audioChannelCount=je.channelCount,ot.audioDataRate=Je.bitRate,ot.hasVideo?ot.videoCodec!=null&&(ot.mimeType='video/x-flv; codecs="'+ot.videoCodec+","+ot.audioCodec+'"'):ot.mimeType='video/x-flv; codecs="'+ot.audioCodec+'"',ot.isComplete()&&this._onMediaInfo(ot)}var ht=this._parseMP3AudioData(m,R+1,D-1,!1);if(ht==null)return;var pt=this._timestampBase+B,vt={unit:ht,length:ht.byteLength,dts:pt,pts:pt};et.samples.push(vt),et.length+=ht.length}}},{key:"_parseAACAudioData",value:function(m,R,D){if(D<=1){d.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}var B={},ne=new Uint8Array(m,R,D);return B.packetType=ne[0],ne[0]===0?B.data=this._parseAACAudioSpecificConfig(m,R+1,D-1):B.data=ne.subarray(1),B}},{key:"_parseAACAudioSpecificConfig",value:function(m,R,D){var B=new Uint8Array(m,R,D),ne=null,we=0,Se=0,Ue=null,Fe=0,Ne=null;if(we=Se=B[0]>>>3,Fe=(B[0]&7)<<1|B[1]>>>7,Fe<0||Fe>=this._mpegSamplingRates.length){this._onError(b.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}var Qe=this._mpegSamplingRates[Fe],$e=(B[1]&120)>>>3;if($e<0||$e>=8){this._onError(b.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}we===5&&(Ne=(B[1]&7)<<1|B[2]>>>7,Ue=(B[2]&124)>>>2);var je=self.navigator.userAgent.toLowerCase();return je.indexOf("firefox")!==-1?Fe>=6?(we=5,ne=new Array(4),Ne=Fe-3):(we=2,ne=new Array(2),Ne=Fe):je.indexOf("android")!==-1?(we=2,ne=new Array(2),Ne=Fe):(we=5,Ne=Fe,ne=new Array(4),Fe>=6?Ne=Fe-3:$e===1&&(we=2,ne=new Array(2),Ne=Fe)),ne[0]=we<<3,ne[0]|=(Fe&15)>>>1,ne[1]=(Fe&15)<<7,ne[1]|=($e&15)<<3,we===5&&(ne[1]|=(Ne&15)>>>1,ne[2]=(Ne&1)<<7,ne[2]|=2<<2,ne[3]=0),{config:ne,samplingRate:Qe,channelCount:$e,codec:"mp4a.40."+we,originalCodec:"mp4a.40."+Se}}},{key:"_parseMP3AudioData",value:function(m,R,D,B){if(D<4){d.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}var ne=this._littleEndian,we=new Uint8Array(m,R,D),Se=null;if(B){if(we[0]!==255)return;var Ue=we[1]>>>3&3,Fe=(we[1]&6)>>1,Ne=(we[2]&240)>>>4,Qe=(we[2]&12)>>>2,$e=we[3]>>>6&3,je=$e!==3?2:1,et=0,We=0,Ve=34,ze="mp3";switch(Ue){case 0:et=this._mpegAudioV25SampleRateTable[Qe];break;case 2:et=this._mpegAudioV20SampleRateTable[Qe];break;case 3:et=this._mpegAudioV10SampleRateTable[Qe];break}switch(Fe){case 1:Ve=34,Ne<this._mpegAudioL3BitRateTable.length&&(We=this._mpegAudioL3BitRateTable[Ne]);break;case 2:Ve=33,Ne<this._mpegAudioL2BitRateTable.length&&(We=this._mpegAudioL2BitRateTable[Ne]);break;case 3:Ve=32,Ne<this._mpegAudioL1BitRateTable.length&&(We=this._mpegAudioL1BitRateTable[Ne]);break}Se={bitRate:We,samplingRate:et,channelCount:je,codec:ze,originalCodec:ze}}else Se=we;return Se}},{key:"_parseVideoData",value:function(m,R,D,B,ne){if(D<=1){d.w(this.TAG,"Flv: Invalid video packet, missing VideoData payload!");return}if(this._hasVideoFlagOverrided===!0&&this._hasVideo===!1)return;var we=new Uint8Array(m,R,D)[0],Se=(we&240)>>>4,Ue=we&15;if(Ue!==7){this._onError(b.CODEC_UNSUPPORTED,"Flv: Unsupported codec in video frame: ".concat(Ue));return}this._parseAVCVideoPacket(m,R+1,D-1,B,ne,Se)}},{key:"_parseAVCVideoPacket",value:function(m,R,D,B,ne,we){if(D<4){d.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}var Se=this._littleEndian,Ue=new DataView(m,R,D),Fe=Ue.getUint8(0),Ne=Ue.getUint32(0,!Se)&16777215,Qe=Ne<<8>>8;if(Fe===0)this._parseAVCDecoderConfigurationRecord(m,R+4,D-4);else if(Fe===1)this._parseAVCVideoData(m,R+4,D-4,B,ne,we,Qe);else if(!(Fe===2)){this._onError(b.FORMAT_ERROR,"Flv: Invalid video packet type ".concat(Fe));return}}},{key:"_parseAVCDecoderConfigurationRecord",value:function(m,R,D){if(D<7){d.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");return}var B=this._videoMetadata,ne=this._videoTrack,we=this._littleEndian,Se=new DataView(m,R,D);B?typeof B.avcc!="undefined"&&d.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(this._hasVideo===!1&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),B=this._videoMetadata={},B.type="video",B.id=ne.id,B.timescale=this._timescale,B.duration=this._duration);var Ue=Se.getUint8(0),Fe=Se.getUint8(1),Ne=Se.getUint8(2),Qe=Se.getUint8(3);if(Ue!==1||Fe===0){this._onError(b.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(Se.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(b.FORMAT_ERROR,"Flv: Strange NaluLengthSizeMinusOne: ".concat(this._naluLengthSize-1));return}var $e=Se.getUint8(5)&31;if($e===0){this._onError(b.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else $e>1&&d.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ".concat($e));for(var je=6,et=0;et<$e;et++){var We=Se.getUint16(je,!we);if(je+=2,We===0)continue;var Ve=new Uint8Array(m,R+je,We);je+=We;var ze=n.parseSPS(Ve);if(et!==0)continue;B.codecWidth=ze.codec_size.width,B.codecHeight=ze.codec_size.height,B.presentWidth=ze.present_size.width,B.presentHeight=ze.present_size.height,B.profile=ze.profile_string,B.level=ze.level_string,B.bitDepth=ze.bit_depth,B.chromaFormat=ze.chroma_format,B.sarRatio=ze.sar_ratio,B.frameRate=ze.frame_rate,(ze.frame_rate.fixed===!1||ze.frame_rate.fps_num===0||ze.frame_rate.fps_den===0)&&(B.frameRate=this._referenceFrameRate);var tt=B.frameRate.fps_den,it=B.frameRate.fps_num;B.refSampleDuration=B.timescale*(tt/it);for(var Je=Ve.subarray(1,4),ot="avc1.",ht=0;ht<3;ht++){var pt=Je[ht].toString(16);pt.length<2&&(pt="0"+pt),ot+=pt}B.codec=ot;var vt=this._mediaInfo;vt.width=B.codecWidth,vt.height=B.codecHeight,vt.fps=B.frameRate.fps,vt.profile=B.profile,vt.level=B.level,vt.refFrames=ze.ref_frames,vt.chromaFormat=ze.chroma_format_string,vt.sarNum=B.sarRatio.width,vt.sarDen=B.sarRatio.height,vt.videoCodec=ot,vt.hasAudio?vt.audioCodec!=null&&(vt.mimeType='video/x-flv; codecs="'+vt.videoCodec+","+vt.audioCodec+'"'):vt.mimeType='video/x-flv; codecs="'+vt.videoCodec+'"',vt.isComplete()&&this._onMediaInfo(vt)}var Et=Se.getUint8(je);if(Et===0){this._onError(b.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No PPS");return}else Et>1&&d.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ".concat(Et));je++;for(var At=0;At<Et;At++){var bt=Se.getUint16(je,!we);if(je+=2,bt===0)continue;je+=bt}B.avcc=new Uint8Array(D),B.avcc.set(new Uint8Array(m,R,D),0),d.v(this.TAG,"Parsed AVCDecoderConfigurationRecord"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._videoInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("video",B)}},{key:"_parseAVCVideoData",value:function(m,R,D,B,ne,we,Se){for(var Ue=this._littleEndian,Fe=new DataView(m,R,D),Ne=[],Qe=0,$e=0,je=this._naluLengthSize,et=this._timestampBase+B,We=we===1;$e<D;){if($e+4>=D){d.w(this.TAG,"Malformed Nalu near timestamp ".concat(et,", offset = ").concat($e,", dataSize = ").concat(D));break}var Ve=Fe.getUint32($e,!Ue);if(je===3&&(Ve>>>=8),Ve>D-je){d.w(this.TAG,"Malformed Nalus near timestamp ".concat(et,", NaluSize > DataSize!"));return}var ze=Fe.getUint8($e+je)&31;ze===5&&(We=!0);var tt=new Uint8Array(m,R+$e,je+Ve),it={type:ze,data:tt};Ne.push(it),Qe+=tt.byteLength,$e+=je+Ve}if(Ne.length){var Je=this._videoTrack,ot={units:Ne,length:Qe,isKeyframe:We,dts:et,cts:Se,pts:et+Se};We&&(ot.fileposition=ne),Je.samples.push(ot),Je.length+=Qe}}}],[{key:"probe",value:function(m){var R=new Uint8Array(m),D={match:!1};if(R[0]!==70||R[1]!==76||R[2]!==86||R[3]!==1)return D;var B=(R[4]&4)>>>2!==0,ne=(R[4]&1)!==0,we=fe(R,5);return we<9?D:{match:!0,consumed:we,dataOffset:we,hasAudioTrack:B,hasVideoTrack:ne}}}]),oe}(),Oe=Me,Le=function(){function oe(){Object(ke.a)(this,oe)}return Object(De.a)(oe,null,[{key:"init",value:function(){oe.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[],".mp3":[]};for(var m in oe.types)oe.types.hasOwnProperty(m)&&(oe.types[m]=[m.charCodeAt(0),m.charCodeAt(1),m.charCodeAt(2),m.charCodeAt(3)]);var R=oe.constants={};R.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),R.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),R.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),R.STSC=R.STCO=R.STTS,R.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),R.HDLR_VIDEO=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),R.HDLR_AUDIO=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),R.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),R.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),R.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}},{key:"box",value:function(m){for(var R=8,D=null,B=Array.prototype.slice.call(arguments,1),ne=B.length,we=0;we<ne;we++)R+=B[we].byteLength;D=new Uint8Array(R),D[0]=R>>>24&255,D[1]=R>>>16&255,D[2]=R>>>8&255,D[3]=R&255,D.set(m,4);for(var Se=8,Ue=0;Ue<ne;Ue++)D.set(B[Ue],Se),Se+=B[Ue].byteLength;return D}},{key:"generateInitSegment",value:function(m){var R=oe.box(oe.types.ftyp,oe.constants.FTYP),D=oe.moov(m),B=new Uint8Array(R.byteLength+D.byteLength);return B.set(R,0),B.set(D,R.byteLength),B}},{key:"moov",value:function(m){var R=oe.mvhd(m.timescale,m.duration),D=oe.trak(m),B=oe.mvex(m);return oe.box(oe.types.moov,R,D,B)}},{key:"mvhd",value:function(m,R){return oe.box(oe.types.mvhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,m>>>24&255,m>>>16&255,m>>>8&255,m&255,R>>>24&255,R>>>16&255,R>>>8&255,R&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]))}},{key:"trak",value:function(m){return oe.box(oe.types.trak,oe.tkhd(m),oe.mdia(m))}},{key:"tkhd",value:function(m){var R=m.id,D=m.duration,B=m.presentWidth,ne=m.presentHeight;return oe.box(oe.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,R>>>24&255,R>>>16&255,R>>>8&255,R&255,0,0,0,0,D>>>24&255,D>>>16&255,D>>>8&255,D&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,B>>>8&255,B&255,0,0,ne>>>8&255,ne&255,0,0]))}},{key:"mdia",value:function(m){return oe.box(oe.types.mdia,oe.mdhd(m),oe.hdlr(m),oe.minf(m))}},{key:"mdhd",value:function(m){var R=m.timescale,D=m.duration;return oe.box(oe.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,R>>>24&255,R>>>16&255,R>>>8&255,R&255,D>>>24&255,D>>>16&255,D>>>8&255,D&255,85,196,0,0]))}},{key:"hdlr",value:function(m){var R=null;return m.type==="audio"?R=oe.constants.HDLR_AUDIO:R=oe.constants.HDLR_VIDEO,oe.box(oe.types.hdlr,R)}},{key:"minf",value:function(m){var R=null;return m.type==="audio"?R=oe.box(oe.types.smhd,oe.constants.SMHD):R=oe.box(oe.types.vmhd,oe.constants.VMHD),oe.box(oe.types.minf,R,oe.dinf(),oe.stbl(m))}},{key:"dinf",value:function(){var m=oe.box(oe.types.dinf,oe.box(oe.types.dref,oe.constants.DREF));return m}},{key:"stbl",value:function(m){var R=oe.box(oe.types.stbl,oe.stsd(m),oe.box(oe.types.stts,oe.constants.STTS),oe.box(oe.types.stsc,oe.constants.STSC),oe.box(oe.types.stsz,oe.constants.STSZ),oe.box(oe.types.stco,oe.constants.STCO));return R}},{key:"stsd",value:function(m){return m.type==="audio"?m.codec==="mp3"?oe.box(oe.types.stsd,oe.constants.STSD_PREFIX,oe.mp3(m)):oe.box(oe.types.stsd,oe.constants.STSD_PREFIX,oe.mp4a(m)):oe.box(oe.types.stsd,oe.constants.STSD_PREFIX,oe.avc1(m))}},{key:"mp3",value:function(m){var R=m.channelCount,D=m.audioSampleRate,B=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,R,0,16,0,0,0,0,D>>>8&255,D&255,0,0]);return oe.box(oe.types[".mp3"],B)}},{key:"mp4a",value:function(m){var R=m.channelCount,D=m.audioSampleRate,B=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,R,0,16,0,0,0,0,D>>>8&255,D&255,0,0]);return oe.box(oe.types.mp4a,B,oe.esds(m))}},{key:"esds",value:function(m){var R=m.config||[],D=R.length,B=new Uint8Array([0,0,0,0,3,23+D,0,1,0,4,15+D,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([D]).concat(R).concat([6,1,2]));return oe.box(oe.types.esds,B)}},{key:"avc1",value:function(m){var R=m.avcc,D=m.codecWidth,B=m.codecHeight,ne=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,D>>>8&255,D&255,B>>>8&255,B&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,10,120,113,113,47,102,108,118,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,255,255]);return oe.box(oe.types.avc1,ne,oe.box(oe.types.avcC,R))}},{key:"mvex",value:function(m){return oe.box(oe.types.mvex,oe.trex(m))}},{key:"trex",value:function(m){var R=m.id,D=new Uint8Array([0,0,0,0,R>>>24&255,R>>>16&255,R>>>8&255,R&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return oe.box(oe.types.trex,D)}},{key:"moof",value:function(m,R){return oe.box(oe.types.moof,oe.mfhd(m.sequenceNumber),oe.traf(m,R))}},{key:"mfhd",value:function(m){var R=new Uint8Array([0,0,0,0,m>>>24&255,m>>>16&255,m>>>8&255,m&255]);return oe.box(oe.types.mfhd,R)}},{key:"traf",value:function(m,R){var D=m.id,B=oe.box(oe.types.tfhd,new Uint8Array([0,0,0,0,D>>>24&255,D>>>16&255,D>>>8&255,D&255])),ne=oe.box(oe.types.tfdt,new Uint8Array([0,0,0,0,R>>>24&255,R>>>16&255,R>>>8&255,R&255])),we=oe.sdtp(m),Se=oe.trun(m,we.byteLength+16+16+8+16+8+8);return oe.box(oe.types.traf,B,ne,Se,we)}},{key:"sdtp",value:function(m){for(var R=m.samples||[],D=R.length,B=new Uint8Array(4+D),ne=0;ne<D;ne++){var we=R[ne].flags;B[ne+4]=we.isLeading<<6|we.dependsOn<<4|we.isDependedOn<<2|we.hasRedundancy}return oe.box(oe.types.sdtp,B)}},{key:"trun",value:function(m,R){var D=m.samples||[],B=D.length,ne=12+16*B,we=new Uint8Array(ne);R+=8+ne,we.set([0,0,15,1,B>>>24&255,B>>>16&255,B>>>8&255,B&255,R>>>24&255,R>>>16&255,R>>>8&255,R&255],0);for(var Se=0;Se<B;Se++){var Ue=D[Se].duration,Fe=D[Se].size,Ne=D[Se].flags,Qe=D[Se].cts;we.set([Ue>>>24&255,Ue>>>16&255,Ue>>>8&255,Ue&255,Fe>>>24&255,Fe>>>16&255,Fe>>>8&255,Fe&255,Ne.isLeading<<2|Ne.dependsOn,Ne.isDependedOn<<6|Ne.hasRedundancy<<4|Ne.isNonSync,0,0,Qe>>>24&255,Qe>>>16&255,Qe>>>8&255,Qe&255],12+16*Se)}return oe.box(oe.types.trun,we)}},{key:"mdat",value:function(m){return oe.box(oe.types.mdat,m)}}]),oe}();Le.init();var Be=Le,Ke=function(){function oe(){Object(ke.a)(this,oe)}return Object(De.a)(oe,null,[{key:"getSilentFrame",value:function(m,R){if(m==="mp4a.40.2"){if(R===1)return new Uint8Array([0,200,0,128,35,128]);if(R===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(R===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(R===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(R===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(R===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if(R===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(R===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(R===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null}}]),oe}(),Pe=Ke,Te=function oe(X,m,R,D,B){Object(ke.a)(this,oe),this.dts=X,this.pts=m,this.duration=R,this.originalDts=D,this.isSyncPoint=B,this.fileposition=null},ye=function(){function oe(){Object(ke.a)(this,oe),this.beginDts=0,this.endDts=0,this.beginPts=0,this.endPts=0,this.originalBeginDts=0,this.originalEndDts=0,this.syncPoints=[],this.firstSample=null,this.lastSample=null}return Object(De.a)(oe,[{key:"appendSyncPoint",value:function(m){m.isSyncPoint=!0,this.syncPoints.push(m)}}]),oe}(),xe=function(){function oe(){Object(ke.a)(this,oe),this._list=[]}return Object(De.a)(oe,[{key:"clear",value:function(){this._list=[]}},{key:"appendArray",value:function(m){var R=this._list;if(m.length===0)return;R.length>0&&m[0].originalDts<R[R.length-1].originalDts&&this.clear(),Array.prototype.push.apply(R,m)}},{key:"getLastSyncPointBeforeDts",value:function(m){if(this._list.length==0)return null;var R=this._list,D=0,B=R.length-1,ne=0,we=0,Se=B;for(m<R[0].dts&&(D=0,we=Se+1);we<=Se;)if(ne=we+Math.floor((Se-we)/2),ne===B||m>=R[ne].dts&&m<R[ne+1].dts){D=ne;break}else R[ne].dts<m?we=ne+1:Se=ne-1;return this._list[D]}}]),oe}(),Ee=function(){function oe(X){Object(ke.a)(this,oe),this._type=X,this._list=[],this._lastAppendLocation=-1}return Object(De.a)(oe,[{key:"type",get:function(){return this._type}},{key:"length",get:function(){return this._list.length}},{key:"isEmpty",value:function(){return this._list.length===0}},{key:"clear",value:function(){this._list=[],this._lastAppendLocation=-1}},{key:"_searchNearestSegmentBefore",value:function(m){var R=this._list;if(R.length===0)return-2;var D=R.length-1,B=0,ne=0,we=D,Se=0;if(m<R[0].originalBeginDts)return Se=-1,Se;for(;ne<=we;)if(B=ne+Math.floor((we-ne)/2),B===D||m>R[B].lastSample.originalDts&&m<R[B+1].originalBeginDts){Se=B;break}else R[B].originalBeginDts<m?ne=B+1:we=B-1;return Se}},{key:"_searchNearestSegmentAfter",value:function(m){return this._searchNearestSegmentBefore(m)+1}},{key:"append",value:function(m){var R=this._list,D=m,B=this._lastAppendLocation,ne=0;B!==-1&&B<R.length&&D.originalBeginDts>=R[B].lastSample.originalDts&&(B===R.length-1||B<R.length-1&&D.originalBeginDts<R[B+1].originalBeginDts)?ne=B+1:R.length>0&&(ne=this._searchNearestSegmentBefore(D.originalBeginDts)+1),this._lastAppendLocation=ne,this._list.splice(ne,0,D)}},{key:"getLastSegmentBefore",value:function(m){var R=this._searchNearestSegmentBefore(m);return R>=0?this._list[R]:null}},{key:"getLastSampleBefore",value:function(m){var R=this.getLastSegmentBefore(m);return R!=null?R.lastSample:null}},{key:"getLastSyncPointBefore",value:function(m){for(var R=this._searchNearestSegmentBefore(m),D=this._list[R].syncPoints;D.length===0&&R>0;)R--,D=this._list[R].syncPoints;return D.length>0?D[D.length-1]:null}}]),oe}(),ie=function(){function oe(X){Object(ke.a)(this,oe),this.TAG="MP4Remuxer",this._config=X,this._isLive=X.isLive===!0,this._dtsBase=-1,this._dtsBaseInited=!1,this._audioDtsBase=Infinity,this._videoDtsBase=Infinity,this._audioNextDts=void 0,this._videoNextDts=void 0,this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList=new Ee("audio"),this._videoSegmentInfoList=new Ee("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!!(y.chrome&&(y.version.major<50||y.version.major===50&&y.version.build<2661)),this._fillSilentAfterSeek=y.msedge||y.msie,this._mp3UseMpegAudio=!y.firefox,this._fillAudioTimestampGap=this._config.fixAudioTimestampGap}return Object(De.a)(oe,[{key:"destroy",value:function(){this._dtsBase=-1,this._dtsBaseInited=!1,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList.clear(),this._audioSegmentInfoList=null,this._videoSegmentInfoList.clear(),this._videoSegmentInfoList=null,this._onInitSegment=null,this._onMediaSegment=null}},{key:"bindDataSource",value:function(m){return m.onDataAvailable=this.remux.bind(this),m.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this}},{key:"onInitSegment",get:function(){return this._onInitSegment},set:function(m){this._onInitSegment=m}},{key:"onMediaSegment",get:function(){return this._onMediaSegment},set:function(m){this._onMediaSegment=m}},{key:"insertDiscontinuity",value:function(){this._audioNextDts=this._videoNextDts=void 0}},{key:"seek",value:function(m){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()}},{key:"remux",value:function(m,R){if(!this._onMediaSegment)throw new a("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(m,R),this._remuxVideo(R),this._remuxAudio(m)}},{key:"_onTrackMetadataReceived",value:function(m,R){var D=null,B="mp4",ne=R.codec;if(m==="audio")this._audioMeta=R,R.codec==="mp3"&&this._mp3UseMpegAudio?(B="mpeg",ne="",D=new Uint8Array):D=Be.generateInitSegment(R);else if(m==="video")this._videoMeta=R,D=Be.generateInitSegment(R);else return;if(!this._onInitSegment)throw new a("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(m,{type:m,data:D.buffer,codec:ne,container:"".concat(m,"/").concat(B),mediaDuration:R.duration})}},{key:"_calculateDtsBase",value:function(m,R){if(this._dtsBaseInited)return;m.samples&&m.samples.length&&(this._audioDtsBase=m.samples[0].dts),R.samples&&R.samples.length&&(this._videoDtsBase=R.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0}},{key:"flushStashedSamples",value:function(){var m=this._videoStashedLastSample,R=this._audioStashedLastSample,D={type:"video",id:1,sequenceNumber:0,samples:[],length:0};m!=null&&(D.samples.push(m),D.length=m.length);var B={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};R!=null&&(B.samples.push(R),B.length=R.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(D,!0),this._remuxAudio(B,!0)}},{key:"_remuxAudio",value:function(m,R){if(this._audioMeta==null)return;var D=m,B=D.samples,ne=void 0,we=-1,Se=-1,Ue=-1,Fe=this._audioMeta.refSampleDuration,Ne=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,Qe=this._dtsBaseInited&&this._audioNextDts===void 0,$e=!1;if(!B||B.length===0)return;if(B.length===1&&!R)return;var je=0,et=null,We=0;Ne?(je=0,We=D.length):(je=8,We=8+D.length);var Ve=null;if(B.length>1&&(Ve=B.pop(),We-=Ve.length),this._audioStashedLastSample!=null){var ze=this._audioStashedLastSample;this._audioStashedLastSample=null,B.unshift(ze),We+=ze.length}Ve!=null&&(this._audioStashedLastSample=Ve);var tt=B[0].dts-this._dtsBase;if(this._audioNextDts)ne=tt-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())ne=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&(this._audioMeta.originalCodec!=="mp3"&&($e=!0));else{var it=this._audioSegmentInfoList.getLastSampleBefore(tt);if(it!=null){var Je=tt-(it.originalDts+it.duration);Je<=3&&(Je=0);var ot=it.dts+it.duration+Je;ne=tt-ot}else ne=0}if($e){var ht=tt-ne,pt=this._videoSegmentInfoList.getLastSegmentBefore(tt);if(pt!=null&&pt.beginDts<ht){var vt=Pe.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);if(vt){var Et=pt.beginDts,At=ht-pt.beginDts;d.v(this.TAG,"InsertPrefixSilentAudio: dts: ".concat(Et,", duration: ").concat(At)),B.unshift({unit:vt,dts:Et,pts:Et}),We+=vt.byteLength}}else $e=!1}for(var bt=[],Tt=0;Tt<B.length;Tt++){var It=B[Tt],Pt=It.unit,kt=It.dts-this._dtsBase,Ot=kt-ne;we===-1&&(we=Ot);var St=0;if(Tt!==B.length-1){var Vt=B[Tt+1].dts-this._dtsBase-ne;St=Vt-Ot}else if(Ve!=null){var Nt=Ve.dts-this._dtsBase-ne;St=Nt-Ot}else bt.length>=1?St=bt[bt.length-1].duration:St=Math.floor(Fe);var Ct=!1,Rt=null;if(St>Fe*1.5&&this._audioMeta.codec!=="mp3"&&this._fillAudioTimestampGap&&!y.safari){Ct=!0;var Mt=Math.abs(St-Fe),Ut=Math.ceil(Mt/Fe),Ft=Ot+Fe;d.w(this.TAG,`Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync.
`+"dts: ".concat(Ot+St," ms, expected: ").concat(Ot+Math.round(Fe)," ms, ")+"delta: ".concat(Math.round(Mt)," ms, generate: ").concat(Ut," frames"));var Bt=Pe.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);Bt==null&&(d.w(this.TAG,"Unable to generate silent frame for "+"".concat(this._audioMeta.originalCodec," with ").concat(this._audioMeta.channelCount," channels, repeat last frame")),Bt=Pt),Rt=[];for(var Wt=0;Wt<Ut;Wt++){var jt=Math.round(Ft);if(Rt.length>0){var zt=Rt[Rt.length-1];zt.duration=jt-zt.dts}var Ht={dts:jt,pts:jt,cts:0,unit:Bt,size:Bt.byteLength,duration:0,originalDts:kt,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};Rt.push(Ht),We+=Ht.size,Ft+=Fe}var Kt=Rt[Rt.length-1];Kt.duration=Ot+St-Kt.dts,St=Math.round(Fe)}bt.push({dts:Ot,pts:Ot,cts:0,unit:It.unit,size:It.unit.byteLength,duration:St,originalDts:kt,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),Ct&&bt.push.apply(bt,Rt)}Ne?et=new Uint8Array(We):(et=new Uint8Array(We),et[0]=We>>>24&255,et[1]=We>>>16&255,et[2]=We>>>8&255,et[3]=We&255,et.set(Be.types.mdat,4));for(var qt=0;qt<bt.length;qt++){var Xt=bt[qt].unit;et.set(Xt,je),je+=Xt.byteLength}var Dt=bt[bt.length-1];Se=Dt.dts+Dt.duration,this._audioNextDts=Se;var Lt=new ye;Lt.beginDts=we,Lt.endDts=Se,Lt.beginPts=we,Lt.endPts=Se,Lt.originalBeginDts=bt[0].originalDts,Lt.originalEndDts=Dt.originalDts+Dt.duration,Lt.firstSample=new Te(bt[0].dts,bt[0].pts,bt[0].duration,bt[0].originalDts,!1),Lt.lastSample=new Te(Dt.dts,Dt.pts,Dt.duration,Dt.originalDts,!1),this._isLive||this._audioSegmentInfoList.append(Lt),D.samples=bt,D.sequenceNumber++;var Gt=null;Ne?Gt=new Uint8Array:Gt=Be.moof(D,we),D.samples=[],D.length=0;var Yt={type:"audio",data:this._mergeBoxes(Gt,et).buffer,sampleCount:bt.length,info:Lt};Ne&&Qe&&(Yt.timestampOffset=we),this._onMediaSegment("audio",Yt)}},{key:"_remuxVideo",value:function(m,R){if(this._videoMeta==null)return;var D=m,B=D.samples,ne=void 0,we=-1,Se=-1,Ue=-1,Fe=-1;if(!B||B.length===0)return;if(B.length===1&&!R)return;var Ne=8,Qe=null,$e=8+m.length,je=null;if(B.length>1&&(je=B.pop(),$e-=je.length),this._videoStashedLastSample!=null){var et=this._videoStashedLastSample;this._videoStashedLastSample=null,B.unshift(et),$e+=et.length}je!=null&&(this._videoStashedLastSample=je);var We=B[0].dts-this._dtsBase;if(this._videoNextDts)ne=We-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())ne=0;else{var Ve=this._videoSegmentInfoList.getLastSampleBefore(We);if(Ve!=null){var ze=We-(Ve.originalDts+Ve.duration);ze<=3&&(ze=0);var tt=Ve.dts+Ve.duration+ze;ne=We-tt}else ne=0}for(var it=new ye,Je=[],ot=0;ot<B.length;ot++){var ht=B[ot],pt=ht.dts-this._dtsBase,vt=ht.isKeyframe,Et=pt-ne,At=ht.cts,bt=Et+At;we===-1&&(we=Et,Ue=bt);var Tt=0;if(ot!==B.length-1){var It=B[ot+1].dts-this._dtsBase-ne;Tt=It-Et}else if(je!=null){var Pt=je.dts-this._dtsBase-ne;Tt=Pt-Et}else Je.length>=1?Tt=Je[Je.length-1].duration:Tt=Math.floor(this._videoMeta.refSampleDuration);if(vt){var kt=new Te(Et,bt,Tt,ht.dts,!0);kt.fileposition=ht.fileposition,it.appendSyncPoint(kt)}Je.push({dts:Et,pts:bt,cts:At,units:ht.units,size:ht.length,isKeyframe:vt,duration:Tt,originalDts:pt,flags:{isLeading:0,dependsOn:vt?2:1,isDependedOn:vt?1:0,hasRedundancy:0,isNonSync:vt?0:1}})}Qe=new Uint8Array($e),Qe[0]=$e>>>24&255,Qe[1]=$e>>>16&255,Qe[2]=$e>>>8&255,Qe[3]=$e&255,Qe.set(Be.types.mdat,4);for(var Ot=0;Ot<Je.length;Ot++)for(var St=Je[Ot].units;St.length;){var Vt=St.shift(),Nt=Vt.data;Qe.set(Nt,Ne),Ne+=Nt.byteLength}var Ct=Je[Je.length-1];if(Se=Ct.dts+Ct.duration,Fe=Ct.pts+Ct.duration,this._videoNextDts=Se,it.beginDts=we,it.endDts=Se,it.beginPts=Ue,it.endPts=Fe,it.originalBeginDts=Je[0].originalDts,it.originalEndDts=Ct.originalDts+Ct.duration,it.firstSample=new Te(Je[0].dts,Je[0].pts,Je[0].duration,Je[0].originalDts,Je[0].isKeyframe),it.lastSample=new Te(Ct.dts,Ct.pts,Ct.duration,Ct.originalDts,Ct.isKeyframe),this._isLive||this._videoSegmentInfoList.append(it),D.samples=Je,D.sequenceNumber++,this._forceFirstIDR){var Rt=Je[0].flags;Rt.dependsOn=2,Rt.isNonSync=0}var Mt=Be.moof(D,we);D.samples=[],D.length=0,this._onMediaSegment("video",{type:"video",data:this._mergeBoxes(Mt,Qe).buffer,sampleCount:Je.length,info:it})}},{key:"_mergeBoxes",value:function(m,R){var D=new Uint8Array(m.byteLength+R.byteLength);return D.set(m,0),D.set(R,m.byteLength),D}}]),oe}(),ce=ie,pe={IO_ERROR:"io_error",DEMUX_ERROR:"demux_error",INIT_SEGMENT:"init_segment",MEDIA_SEGMENT:"media_segment",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info",RECOMMEND_SEEKPOINT:"recommend_seekpoint"},le=pe,Ce=function(){function oe(X,m){Object(ke.a)(this,oe),this.TAG="TransmuxingController",this._emitter=new p.a,this._config=m,X.segments||(X.segments=[{duration:X.duration,filesize:X.filesize,url:X.url}]),typeof X.cors!="boolean"&&(X.cors=!0),typeof X.withCredentials!="boolean"&&(X.withCredentials=!1),this._mediaDataSource=X,this._currentSegmentIndex=0;var R=0;this._mediaDataSource.segments.forEach(function(D){D.timestampBase=R,R+=D.duration,D.cors=X.cors,D.withCredentials=X.withCredentials,m.referrerPolicy&&(D.referrerPolicy=m.referrerPolicy)}),!isNaN(R)&&this._mediaDataSource.duration!==R&&(this._mediaDataSource.duration=R),this._mediaInfo=null,this._demuxer=null,this._remuxer=null,this._ioctl=null,this._pendingSeekTime=null,this._pendingResolveSeekPoint=null,this._statisticsReporter=null}return Object(De.a)(oe,[{key:"destroy",value:function(){this._mediaInfo=null,this._mediaDataSource=null,this._statisticsReporter&&this._disableStatisticsReporter(),this._ioctl&&(this._ioctl.destroy(),this._ioctl=null),this._demuxer&&(this._demuxer.destroy(),this._demuxer=null),this._remuxer&&(this._remuxer.destroy(),this._remuxer=null),this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(m,R){this._emitter.addListener(m,R)}},{key:"off",value:function(m,R){this._emitter.removeListener(m,R)}},{key:"start",value:function(){this._loadSegment(0),this._enableStatisticsReporter()}},{key:"_loadSegment",value:function(m,R){this._currentSegmentIndex=m;var D=this._mediaDataSource.segments[m],B=this._ioctl=new T(D,this._config,m);B.onError=this._onIOException.bind(this),B.onSeeked=this._onIOSeeked.bind(this),B.onComplete=this._onIOComplete.bind(this),B.onRedirect=this._onIORedirect.bind(this),B.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),R?this._demuxer.bindDataSource(this._ioctl):B.onDataArrival=this._onInitChunkArrival.bind(this),B.open(R)}},{key:"stop",value:function(){this._internalAbort(),this._disableStatisticsReporter()}},{key:"_internalAbort",value:function(){this._ioctl&&(this._ioctl.destroy(),this._ioctl=null)}},{key:"pause",value:function(){this._ioctl&&this._ioctl.isWorking()&&(this._ioctl.pause(),this._disableStatisticsReporter())}},{key:"resume",value:function(){this._ioctl&&this._ioctl.isPaused()&&(this._ioctl.resume(),this._enableStatisticsReporter())}},{key:"seek",value:function(m){if(this._mediaInfo==null||!this._mediaInfo.isSeekable())return;var R=this._searchSegmentIndexContains(m);if(R===this._currentSegmentIndex){var D=this._mediaInfo.segments[R];if(D==null)this._pendingSeekTime=m;else{var B=D.getNearestKeyframe(m);this._remuxer.seek(B.milliseconds),this._ioctl.seek(B.fileposition),this._pendingResolveSeekPoint=B.milliseconds}}else{var ne=this._mediaInfo.segments[R];if(ne==null)this._pendingSeekTime=m,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(R);else{var we=ne.getNearestKeyframe(m);this._internalAbort(),this._remuxer.seek(m),this._remuxer.insertDiscontinuity(),this._demuxer.resetMediaInfo(),this._demuxer.timestampBase=this._mediaDataSource.segments[R].timestampBase,this._loadSegment(R,we.fileposition),this._pendingResolveSeekPoint=we.milliseconds,this._reportSegmentMediaInfo(R)}}this._enableStatisticsReporter()}},{key:"_searchSegmentIndexContains",value:function(m){for(var R=this._mediaDataSource.segments,D=R.length-1,B=0;B<R.length;B++)if(m<R[B].timestampBase){D=B-1;break}return D}},{key:"_onInitChunkArrival",value:function(m,R){var D=this,B=null,ne=0;if(R>0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,ne=this._demuxer.parseChunks(m,R);else if((B=Oe.probe(m)).match){this._demuxer=new Oe(B,this._config),this._remuxer||(this._remuxer=new ce(this._config));var we=this._mediaDataSource;we.duration!=null&&!isNaN(we.duration)&&(this._demuxer.overridedDuration=we.duration),typeof we.hasAudio=="boolean"&&(this._demuxer.overridedHasAudio=we.hasAudio),typeof we.hasVideo=="boolean"&&(this._demuxer.overridedHasVideo=we.hasVideo),this._demuxer.timestampBase=we.segments[this._currentSegmentIndex].timestampBase,this._demuxer.onError=this._onDemuxException.bind(this),this._demuxer.onMediaInfo=this._onMediaInfo.bind(this),this._demuxer.onMetaDataArrived=this._onMetaDataArrived.bind(this),this._demuxer.onScriptDataArrived=this._onScriptDataArrived.bind(this),this._remuxer.bindDataSource(this._demuxer.bindDataSource(this._ioctl)),this._remuxer.onInitSegment=this._onRemuxerInitSegmentArrival.bind(this),this._remuxer.onMediaSegment=this._onRemuxerMediaSegmentArrival.bind(this),ne=this._demuxer.parseChunks(m,R)}else B=null,d.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(function(){D._internalAbort()}),this._emitter.emit(le.DEMUX_ERROR,b.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),ne=0;return ne}},{key:"_onMediaInfo",value:function(m){var R=this;this._mediaInfo==null&&(this._mediaInfo=Object.assign({},m),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,J.prototype));var D=Object.assign({},m);Object.setPrototypeOf(D,J.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=D,this._reportSegmentMediaInfo(this._currentSegmentIndex),this._pendingSeekTime!=null&&Promise.resolve().then(function(){var B=R._pendingSeekTime;R._pendingSeekTime=null,R.seek(B)})}},{key:"_onMetaDataArrived",value:function(m){this._emitter.emit(le.METADATA_ARRIVED,m)}},{key:"_onScriptDataArrived",value:function(m){this._emitter.emit(le.SCRIPTDATA_ARRIVED,m)}},{key:"_onIOSeeked",value:function(){this._remuxer.insertDiscontinuity()}},{key:"_onIOComplete",value:function(m){var R=m,D=R+1;D<this._mediaDataSource.segments.length?(this._internalAbort(),this._remuxer.flushStashedSamples(),this._loadSegment(D)):(this._remuxer.flushStashedSamples(),this._emitter.emit(le.LOADING_COMPLETE),this._disableStatisticsReporter())}},{key:"_onIORedirect",value:function(m){var R=this._ioctl.extraData;this._mediaDataSource.segments[R].redirectedURL=m}},{key:"_onIORecoveredEarlyEof",value:function(){this._emitter.emit(le.RECOVERED_EARLY_EOF)}},{key:"_onIOException",value:function(m,R){d.e(this.TAG,"IOException: type = ".concat(m,", code = ").concat(R.code,", msg = ").concat(R.msg)),this._emitter.emit(le.IO_ERROR,m,R),this._disableStatisticsReporter()}},{key:"_onDemuxException",value:function(m,R){d.e(this.TAG,"DemuxException: type = ".concat(m,", info = ").concat(R)),this._emitter.emit(le.DEMUX_ERROR,m,R)}},{key:"_onRemuxerInitSegmentArrival",value:function(m,R){this._emitter.emit(le.INIT_SEGMENT,m,R)}},{key:"_onRemuxerMediaSegmentArrival",value:function(m,R){if(this._pendingSeekTime!=null)return;if(this._emitter.emit(le.MEDIA_SEGMENT,m,R),this._pendingResolveSeekPoint!=null&&m==="video"){var D=R.info.syncPoints,B=this._pendingResolveSeekPoint;this._pendingResolveSeekPoint=null,y.safari&&D.length>0&&D[0].originalDts===B&&(B=D[0].pts),this._emitter.emit(le.RECOMMEND_SEEKPOINT,B)}}},{key:"_enableStatisticsReporter",value:function(){this._statisticsReporter==null&&(this._statisticsReporter=self.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval))}},{key:"_disableStatisticsReporter",value:function(){this._statisticsReporter&&(self.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}},{key:"_reportSegmentMediaInfo",value:function(m){var R=this._mediaInfo.segments[m],D=Object.assign({},R);D.duration=this._mediaInfo.duration,D.segmentCount=this._mediaInfo.segmentCount,delete D.segments,delete D.keyframesIndex,this._emitter.emit(le.MEDIA_INFO,D)}},{key:"_reportStatisticsInfo",value:function(){var m={};m.url=this._ioctl.currentURL,m.hasRedirect=this._ioctl.hasRedirect,m.hasRedirect&&(m.redirectedURL=this._ioctl.currentRedirectedURL),m.speed=this._ioctl.currentSpeed,m.loaderType=this._ioctl.loaderType,m.currentSegmentIndex=this._currentSegmentIndex,m.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(le.STATISTICS_INFO,m)}}]),oe}(),Ie=Ce,qe=function(X){var m="TransmuxingWorker",R=null,D=We.bind(this);r.install(),X.addEventListener("message",function(Ve){switch(Ve.data.cmd){case"init":R=new Ie(Ve.data.param[0],Ve.data.param[1]),R.on(le.IO_ERROR,$e.bind(this)),R.on(le.DEMUX_ERROR,je.bind(this)),R.on(le.INIT_SEGMENT,B.bind(this)),R.on(le.MEDIA_SEGMENT,ne.bind(this)),R.on(le.LOADING_COMPLETE,we.bind(this)),R.on(le.RECOVERED_EARLY_EOF,Se.bind(this)),R.on(le.MEDIA_INFO,Ue.bind(this)),R.on(le.METADATA_ARRIVED,Fe.bind(this)),R.on(le.SCRIPTDATA_ARRIVED,Ne.bind(this)),R.on(le.STATISTICS_INFO,Qe.bind(this)),R.on(le.RECOMMEND_SEEKPOINT,et.bind(this));break;case"destroy":R&&(R.destroy(),R=null),X.postMessage({msg:"destroyed"});break;case"start":R.start();break;case"stop":R.stop();break;case"seek":R.seek(Ve.data.param);break;case"pause":R.pause();break;case"resume":R.resume();break;case"logging_config":{var ze=Ve.data.param;ve.applyConfig(ze),ze.enableCallback===!0?ve.addLogListener(D):ve.removeLogListener(D);break}}});function B(Ve,ze){var tt={msg:le.INIT_SEGMENT,data:{type:Ve,data:ze}};X.postMessage(tt,[ze.data])}function ne(Ve,ze){var tt={msg:le.MEDIA_SEGMENT,data:{type:Ve,data:ze}};X.postMessage(tt,[ze.data])}function we(){var Ve={msg:le.LOADING_COMPLETE};X.postMessage(Ve)}function Se(){var Ve={msg:le.RECOVERED_EARLY_EOF};X.postMessage(Ve)}function Ue(Ve){var ze={msg:le.MEDIA_INFO,data:Ve};X.postMessage(ze)}function Fe(Ve){var ze={msg:le.METADATA_ARRIVED,data:Ve};X.postMessage(ze)}function Ne(Ve){var ze={msg:le.SCRIPTDATA_ARRIVED,data:Ve};X.postMessage(ze)}function Qe(Ve){var ze={msg:le.STATISTICS_INFO,data:Ve};X.postMessage(ze)}function $e(Ve,ze){X.postMessage({msg:le.IO_ERROR,data:{type:Ve,info:ze}})}function je(Ve,ze){X.postMessage({msg:le.DEMUX_ERROR,data:{type:Ve,info:ze}})}function et(Ve){X.postMessage({msg:le.RECOMMEND_SEEKPOINT,data:Ve})}function We(Ve,ze){X.postMessage({msg:"logcat_callback",data:{type:Ve,logcat:ze}})}},lt=qe,mt=function(){function oe(X,m){if(Object(ke.a)(this,oe),this.TAG="Transmuxer",this._emitter=new p.a,m.enableWorker&&typeof Worker!="undefined")try{var R=de("0r65");this._worker=R(lt),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[X,m]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},ve.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:ve.getConfig()})}catch(B){d.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new Ie(X,m)}else this._controller=new Ie(X,m);if(this._controller){var D=this._controller;D.on(le.IO_ERROR,this._onIOError.bind(this)),D.on(le.DEMUX_ERROR,this._onDemuxError.bind(this)),D.on(le.INIT_SEGMENT,this._onInitSegment.bind(this)),D.on(le.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),D.on(le.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),D.on(le.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),D.on(le.MEDIA_INFO,this._onMediaInfo.bind(this)),D.on(le.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),D.on(le.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),D.on(le.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),D.on(le.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}return Object(De.a)(oe,[{key:"destroy",value:function(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),ve.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(m,R){this._emitter.addListener(m,R)}},{key:"off",value:function(m,R){this._emitter.removeListener(m,R)}},{key:"hasWorker",value:function(){return this._worker!=null}},{key:"open",value:function(){this._worker?this._worker.postMessage({cmd:"start"}):this._controller.start()}},{key:"close",value:function(){this._worker?this._worker.postMessage({cmd:"stop"}):this._controller.stop()}},{key:"seek",value:function(m){this._worker?this._worker.postMessage({cmd:"seek",param:m}):this._controller.seek(m)}},{key:"pause",value:function(){this._worker?this._worker.postMessage({cmd:"pause"}):this._controller.pause()}},{key:"resume",value:function(){this._worker?this._worker.postMessage({cmd:"resume"}):this._controller.resume()}},{key:"_onInitSegment",value:function(m,R){var D=this;Promise.resolve().then(function(){D._emitter.emit(le.INIT_SEGMENT,m,R)})}},{key:"_onMediaSegment",value:function(m,R){var D=this;Promise.resolve().then(function(){D._emitter.emit(le.MEDIA_SEGMENT,m,R)})}},{key:"_onLoadingComplete",value:function(){var m=this;Promise.resolve().then(function(){m._emitter.emit(le.LOADING_COMPLETE)})}},{key:"_onRecoveredEarlyEof",value:function(){var m=this;Promise.resolve().then(function(){m._emitter.emit(le.RECOVERED_EARLY_EOF)})}},{key:"_onMediaInfo",value:function(m){var R=this;Promise.resolve().then(function(){R._emitter.emit(le.MEDIA_INFO,m)})}},{key:"_onMetaDataArrived",value:function(m){var R=this;Promise.resolve().then(function(){R._emitter.emit(le.METADATA_ARRIVED,m)})}},{key:"_onScriptDataArrived",value:function(m){var R=this;Promise.resolve().then(function(){R._emitter.emit(le.SCRIPTDATA_ARRIVED,m)})}},{key:"_onStatisticsInfo",value:function(m){var R=this;Promise.resolve().then(function(){R._emitter.emit(le.STATISTICS_INFO,m)})}},{key:"_onIOError",value:function(m,R){var D=this;Promise.resolve().then(function(){D._emitter.emit(le.IO_ERROR,m,R)})}},{key:"_onDemuxError",value:function(m,R){var D=this;Promise.resolve().then(function(){D._emitter.emit(le.DEMUX_ERROR,m,R)})}},{key:"_onRecommendSeekpoint",value:function(m){var R=this;Promise.resolve().then(function(){R._emitter.emit(le.RECOMMEND_SEEKPOINT,m)})}},{key:"_onLoggingConfigChanged",value:function(m){this._worker&&this._worker.postMessage({cmd:"logging_config",param:m})}},{key:"_onWorkerMessage",value:function(m){var R=m.data,D=R.data;if(R.msg==="destroyed"||this._workerDestroying){this._workerDestroying=!1,this._worker.terminate(),this._worker=null;return}switch(R.msg){case le.INIT_SEGMENT:case le.MEDIA_SEGMENT:this._emitter.emit(R.msg,D.type,D.data);break;case le.LOADING_COMPLETE:case le.RECOVERED_EARLY_EOF:this._emitter.emit(R.msg);break;case le.MEDIA_INFO:Object.setPrototypeOf(D,J.prototype),this._emitter.emit(R.msg,D);break;case le.METADATA_ARRIVED:case le.SCRIPTDATA_ARRIVED:case le.STATISTICS_INFO:this._emitter.emit(R.msg,D);break;case le.IO_ERROR:case le.DEMUX_ERROR:this._emitter.emit(R.msg,D.type,D.info);break;case le.RECOMMEND_SEEKPOINT:this._emitter.emit(R.msg,D);break;case"logcat_callback":d.emitter.emit("log",D.type,D.logcat);break;default:break}}}]),oe}(),dt=mt,ct={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"},Ye=ct,He=function(){function oe(X){Object(ke.a)(this,oe),this.TAG="MSEController",this._config=X,this._emitter=new p.a,this._config.isLive&&this._config.autoCleanupSourceBuffer==null&&(this._config.autoCleanupSourceBuffer=!0),this.e={onSourceOpen:this._onSourceOpen.bind(this),onSourceEnded:this._onSourceEnded.bind(this),onSourceClose:this._onSourceClose.bind(this),onSourceBufferError:this._onSourceBufferError.bind(this),onSourceBufferUpdateEnd:this._onSourceBufferUpdateEnd.bind(this)},this._mediaSource=null,this._mediaSourceObjectURL=null,this._mediaElement=null,this._isBufferFull=!1,this._hasPendingEos=!1,this._requireSetMediaDuration=!1,this._pendingMediaDuration=0,this._pendingSourceBufferInit=[],this._mimeTypes={video:null,audio:null},this._sourceBuffers={video:null,audio:null},this._lastInitSegments={video:null,audio:null},this._pendingSegments={video:[],audio:[]},this._pendingRemoveRanges={video:[],audio:[]},this._idrList=new xe}return Object(De.a)(oe,[{key:"destroy",value:function(){(this._mediaElement||this._mediaSource)&&this.detachMediaElement(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(m,R){this._emitter.addListener(m,R)}},{key:"off",value:function(m,R){this._emitter.removeListener(m,R)}},{key:"attachMediaElement",value:function(m){if(this._mediaSource)throw new a("MediaSource has been attached to an HTMLMediaElement!");var R=this._mediaSource=new window.MediaSource;R.addEventListener("sourceopen",this.e.onSourceOpen),R.addEventListener("sourceended",this.e.onSourceEnded),R.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=m,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),m.src=this._mediaSourceObjectURL}},{key:"detachMediaElement",value:function(){if(this._mediaSource){var m=this._mediaSource;for(var R in this._sourceBuffers){var D=this._pendingSegments[R];D.splice(0,D.length),this._pendingSegments[R]=null,this._pendingRemoveRanges[R]=null,this._lastInitSegments[R]=null;var B=this._sourceBuffers[R];if(B){if(m.readyState!=="closed"){try{m.removeSourceBuffer(B)}catch(ne){d.e(this.TAG,ne.message)}B.removeEventListener("error",this.e.onSourceBufferError),B.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[R]=null,this._sourceBuffers[R]=null}}if(m.readyState==="open")try{m.endOfStream()}catch(ne){d.e(this.TAG,ne.message)}m.removeEventListener("sourceopen",this.e.onSourceOpen),m.removeEventListener("sourceended",this.e.onSourceEnded),m.removeEventListener("sourceclose",this.e.onSourceClose),this._pendingSourceBufferInit=[],this._isBufferFull=!1,this._idrList.clear(),this._mediaSource=null}this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement=null),this._mediaSourceObjectURL&&(window.URL.revokeObjectURL(this._mediaSourceObjectURL),this._mediaSourceObjectURL=null)}},{key:"appendInitSegment",value:function(m,R){if(!this._mediaSource||this._mediaSource.readyState!=="open"){this._pendingSourceBufferInit.push(m),this._pendingSegments[m.type].push(m);return}var D=m,B="".concat(D.container);D.codec&&D.codec.length>0&&(B+=";codecs=".concat(D.codec));var ne=!1;if(d.v(this.TAG,"Received Initialization Segment, mimeType: "+B),this._lastInitSegments[D.type]=D,B!==this._mimeTypes[D.type]){if(this._mimeTypes[D.type])d.v(this.TAG,"Notice: ".concat(D.type," mimeType changed, origin: ").concat(this._mimeTypes[D.type],", target: ").concat(B));else{ne=!0;try{var we=this._sourceBuffers[D.type]=this._mediaSource.addSourceBuffer(B);we.addEventListener("error",this.e.onSourceBufferError),we.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(Se){d.e(this.TAG,Se.message),this._emitter.emit(Ye.ERROR,{code:Se.code,msg:Se.message});return}}this._mimeTypes[D.type]=B}R||this._pendingSegments[D.type].push(D),ne||this._sourceBuffers[D.type]&&!this._sourceBuffers[D.type].updating&&this._doAppendSegments(),y.safari&&D.container==="audio/mpeg"&&D.mediaDuration>0&&(this._requireSetMediaDuration=!0,this._pendingMediaDuration=D.mediaDuration/1e3,this._updateMediaSourceDuration())}},{key:"appendMediaSegment",value:function(m){var R=m;this._pendingSegments[R.type].push(R),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();var D=this._sourceBuffers[R.type];D&&!D.updating&&!this._hasPendingRemoveRanges()&&this._doAppendSegments()}},{key:"seek",value:function(m){for(var R in this._sourceBuffers){if(!this._sourceBuffers[R])continue;var D=this._sourceBuffers[R];if(this._mediaSource.readyState==="open")try{D.abort()}catch(Fe){d.e(this.TAG,Fe.message)}this._idrList.clear();var B=this._pendingSegments[R];if(B.splice(0,B.length),this._mediaSource.readyState==="closed")continue;for(var ne=0;ne<D.buffered.length;ne++){var we=D.buffered.start(ne),Se=D.buffered.end(ne);this._pendingRemoveRanges[R].push({start:we,end:Se})}if(D.updating||this._doRemoveRanges(),y.safari){var Ue=this._lastInitSegments[R];Ue&&(this._pendingSegments[R].push(Ue),D.updating||this._doAppendSegments())}}}},{key:"endOfStream",value:function(){var m=this._mediaSource,R=this._sourceBuffers;if(!m||m.readyState!=="open"){m&&m.readyState==="closed"&&this._hasPendingSegments()&&(this._hasPendingEos=!0);return}R.video&&R.video.updating||R.audio&&R.audio.updating?this._hasPendingEos=!0:(this._hasPendingEos=!1,m.endOfStream())}},{key:"getNearestKeyframe",value:function(m){return this._idrList.getLastSyncPointBeforeDts(m)}},{key:"_needCleanupSourceBuffer",value:function(){if(!this._config.autoCleanupSourceBuffer)return!1;var m=this._mediaElement.currentTime;for(var R in this._sourceBuffers){var D=this._sourceBuffers[R];if(D){var B=D.buffered;if(B.length>=1&&m-B.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1}},{key:"_doCleanupSourceBuffer",value:function(){var m=this._mediaElement.currentTime;for(var R in this._sourceBuffers){var D=this._sourceBuffers[R];if(D){for(var B=D.buffered,ne=!1,we=0;we<B.length;we++){var Se=B.start(we),Ue=B.end(we);if(Se<=m&&m<Ue+3){if(m-Se>=this._config.autoCleanupMaxBackwardDuration){ne=!0;var Fe=m-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[R].push({start:Se,end:Fe})}}else Ue<m&&(ne=!0,this._pendingRemoveRanges[R].push({start:Se,end:Ue}))}ne&&!D.updating&&this._doRemoveRanges()}}}},{key:"_updateMediaSourceDuration",value:function(){var m=this._sourceBuffers;if(this._mediaElement.readyState===0||this._mediaSource.readyState!=="open")return;if(m.video&&m.video.updating||m.audio&&m.audio.updating)return;var R=this._mediaSource.duration,D=this._pendingMediaDuration;D>0&&(isNaN(R)||D>R)&&(d.v(this.TAG,"Update MediaSource duration from ".concat(R," to ").concat(D)),this._mediaSource.duration=D),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}},{key:"_doRemoveRanges",value:function(){for(var m in this._pendingRemoveRanges){if(!this._sourceBuffers[m]||this._sourceBuffers[m].updating)continue;for(var R=this._sourceBuffers[m],D=this._pendingRemoveRanges[m];D.length&&!R.updating;){var B=D.shift();R.remove(B.start,B.end)}}}},{key:"_doAppendSegments",value:function(){var m=this._pendingSegments;for(var R in m){if(!this._sourceBuffers[R]||this._sourceBuffers[R].updating)continue;if(m[R].length>0){var D=m[R].shift();if(D.timestampOffset){var B=this._sourceBuffers[R].timestampOffset,ne=D.timestampOffset/1e3,we=Math.abs(B-ne);we>.1&&(d.v(this.TAG,"Update MPEG audio timestampOffset from ".concat(B," to ").concat(ne)),this._sourceBuffers[R].timestampOffset=ne),delete D.timestampOffset}if(!D.data||D.data.byteLength===0)continue;try{this._sourceBuffers[R].appendBuffer(D.data),this._isBufferFull=!1,R==="video"&&D.hasOwnProperty("info")&&this._idrList.appendArray(D.info.syncPoints)}catch(Se){this._pendingSegments[R].unshift(D),Se.code===22?(this._isBufferFull||this._emitter.emit(Ye.BUFFER_FULL),this._isBufferFull=!0):(d.e(this.TAG,Se.message),this._emitter.emit(Ye.ERROR,{code:Se.code,msg:Se.message}))}}}}},{key:"_onSourceOpen",value:function(){if(d.v(this.TAG,"MediaSource onSourceOpen"),this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._pendingSourceBufferInit.length>0)for(var m=this._pendingSourceBufferInit;m.length;){var R=m.shift();this.appendInitSegment(R,!0)}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(Ye.SOURCE_OPEN)}},{key:"_onSourceEnded",value:function(){d.v(this.TAG,"MediaSource onSourceEnded")}},{key:"_onSourceClose",value:function(){d.v(this.TAG,"MediaSource onSourceClose"),this._mediaSource&&this.e!=null&&(this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._mediaSource.removeEventListener("sourceended",this.e.onSourceEnded),this._mediaSource.removeEventListener("sourceclose",this.e.onSourceClose))}},{key:"_hasPendingSegments",value:function(){var m=this._pendingSegments;return m.video.length>0||m.audio.length>0}},{key:"_hasPendingRemoveRanges",value:function(){var m=this._pendingRemoveRanges;return m.video.length>0||m.audio.length>0}},{key:"_onSourceBufferUpdateEnd",value:function(){this._requireSetMediaDuration?this._updateMediaSourceDuration():this._hasPendingRemoveRanges()?this._doRemoveRanges():this._hasPendingSegments()?this._doAppendSegments():this._hasPendingEos&&this.endOfStream(),this._emitter.emit(Ye.UPDATE_END)}},{key:"_onSourceBufferError",value:function(m){d.e(this.TAG,"SourceBuffer Error: ".concat(m))}}]),oe}(),Xe=He,Ge={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},at={NETWORK_EXCEPTION:u.EXCEPTION,NETWORK_STATUS_CODE_INVALID:u.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:u.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:u.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:b.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:b.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:b.CODEC_UNSUPPORTED},ut=function(){function oe(X,m){if(Object(ke.a)(this,oe),this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new p.a,this._config=H(),typeof m=="object"&&Object.assign(this._config,m),X.type.toLowerCase()!=="flv")throw new l("FlvPlayer requires an flv MediaDataSource input!");X.isLive===!0&&(this._config.isLive=!0),this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this),onvSeeking:this._onvSeeking.bind(this),onvCanPlay:this._onvCanPlay.bind(this),onvStalled:this._onvStalled.bind(this),onvProgress:this._onvProgress.bind(this)},self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now,this._pendingSeekTime=null,this._requestSetTime=!1,this._seekpointRecord=null,this._progressChecker=null,this._mediaDataSource=X,this._mediaElement=null,this._msectl=null,this._transmuxer=null,this._mseSourceOpened=!1,this._hasPendingLoad=!1,this._receivedCanPlay=!1,this._mediaInfo=null,this._statisticsInfo=null;var R=y.chrome&&(y.version.major<50||y.version.major===50&&y.version.build<2661);this._alwaysSeekKeyframe=!!(R||y.msedge||y.msie),this._alwaysSeekKeyframe&&(this._config.accurateSeek=!1)}return Object(De.a)(oe,[{key:"destroy",value:function(){this._progressChecker!=null&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._transmuxer&&this.unload(),this._mediaElement&&this.detachMediaElement(),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(m,R){var D=this;m===_e.MEDIA_INFO?this._mediaInfo!=null&&Promise.resolve().then(function(){D._emitter.emit(_e.MEDIA_INFO,D.mediaInfo)}):m===_e.STATISTICS_INFO&&(this._statisticsInfo!=null&&Promise.resolve().then(function(){D._emitter.emit(_e.STATISTICS_INFO,D.statisticsInfo)})),this._emitter.addListener(m,R)}},{key:"off",value:function(m,R){this._emitter.removeListener(m,R)}},{key:"attachMediaElement",value:function(m){var R=this;if(this._mediaElement=m,m.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),m.addEventListener("seeking",this.e.onvSeeking),m.addEventListener("canplay",this.e.onvCanPlay),m.addEventListener("stalled",this.e.onvStalled),m.addEventListener("progress",this.e.onvProgress),this._msectl=new Xe(this._config),this._msectl.on(Ye.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on(Ye.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on(Ye.SOURCE_OPEN,function(){R._mseSourceOpened=!0,R._hasPendingLoad&&(R._hasPendingLoad=!1,R.load())}),this._msectl.on(Ye.ERROR,function(D){R._emitter.emit(_e.ERROR,Ge.MEDIA_ERROR,at.MEDIA_MSE_ERROR,D)}),this._msectl.attachMediaElement(m),this._pendingSeekTime!=null)try{m.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(D){}}},{key:"detachMediaElement",value:function(){this._mediaElement&&(this._msectl.detachMediaElement(),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement.removeEventListener("seeking",this.e.onvSeeking),this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay),this._mediaElement.removeEventListener("stalled",this.e.onvStalled),this._mediaElement.removeEventListener("progress",this.e.onvProgress),this._mediaElement=null),this._msectl&&(this._msectl.destroy(),this._msectl=null)}},{key:"load",value:function(){var m=this;if(!this._mediaElement)throw new a("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new a("FlvPlayer.load() has been called, please call unload() first!");if(this._hasPendingLoad)return;if(this._config.deferLoadAfterSourceOpen&&this._mseSourceOpened===!1){this._hasPendingLoad=!0;return}this._mediaElement.readyState>0&&(this._requestSetTime=!0,this._mediaElement.currentTime=0),this._transmuxer=new dt(this._mediaDataSource,this._config),this._transmuxer.on(le.INIT_SEGMENT,function(R,D){m._msectl.appendInitSegment(D)}),this._transmuxer.on(le.MEDIA_SEGMENT,function(R,D){if(m._msectl.appendMediaSegment(D),m._config.lazyLoad&&!m._config.isLive){var B=m._mediaElement.currentTime;D.info.endDts>=(B+m._config.lazyLoadMaxDuration)*1e3&&(m._progressChecker==null&&(d.v(m.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),m._suspendTransmuxer()))}}),this._transmuxer.on(le.LOADING_COMPLETE,function(){m._msectl.endOfStream(),m._emitter.emit(_e.LOADING_COMPLETE)}),this._transmuxer.on(le.RECOVERED_EARLY_EOF,function(){m._emitter.emit(_e.RECOVERED_EARLY_EOF)}),this._transmuxer.on(le.IO_ERROR,function(R,D){m._emitter.emit(_e.ERROR,Ge.NETWORK_ERROR,R,D)}),this._transmuxer.on(le.DEMUX_ERROR,function(R,D){m._emitter.emit(_e.ERROR,Ge.MEDIA_ERROR,R,{code:-1,msg:D})}),this._transmuxer.on(le.MEDIA_INFO,function(R){m._mediaInfo=R,m._emitter.emit(_e.MEDIA_INFO,Object.assign({},R))}),this._transmuxer.on(le.METADATA_ARRIVED,function(R){m._emitter.emit(_e.METADATA_ARRIVED,R)}),this._transmuxer.on(le.SCRIPTDATA_ARRIVED,function(R){m._emitter.emit(_e.SCRIPTDATA_ARRIVED,R)}),this._transmuxer.on(le.STATISTICS_INFO,function(R){m._statisticsInfo=m._fillStatisticsInfo(R),m._emitter.emit(_e.STATISTICS_INFO,Object.assign({},m._statisticsInfo))}),this._transmuxer.on(le.RECOMMEND_SEEKPOINT,function(R){m._mediaElement&&!m._config.accurateSeek&&(m._requestSetTime=!0,m._mediaElement.currentTime=R/1e3)}),this._transmuxer.open()}},{key:"unload",value:function(){this._mediaElement&&this._mediaElement.pause(),this._msectl&&this._msectl.seek(0),this._transmuxer&&(this._transmuxer.close(),this._transmuxer.destroy(),this._transmuxer=null)}},{key:"play",value:function(){return this._mediaElement.play()}},{key:"pause",value:function(){this._mediaElement.pause()}},{key:"type",get:function(){return this._type}},{key:"buffered",get:function(){return this._mediaElement.buffered}},{key:"duration",get:function(){return this._mediaElement.duration}},{key:"volume",get:function(){return this._mediaElement.volume},set:function(m){this._mediaElement.volume=m}},{key:"muted",get:function(){return this._mediaElement.muted},set:function(m){this._mediaElement.muted=m}},{key:"currentTime",get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(m){this._mediaElement?this._internalSeek(m):this._pendingSeekTime=m}},{key:"mediaInfo",get:function(){return Object.assign({},this._mediaInfo)}},{key:"statisticsInfo",get:function(){return this._statisticsInfo==null&&(this._statisticsInfo={}),this._statisticsInfo=this._fillStatisticsInfo(this._statisticsInfo),Object.assign({},this._statisticsInfo)}},{key:"_fillStatisticsInfo",value:function(m){if(m.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return m;var R=!0,D=0,B=0;if(this._mediaElement.getVideoPlaybackQuality){var ne=this._mediaElement.getVideoPlaybackQuality();D=ne.totalVideoFrames,B=ne.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(D=this._mediaElement.webkitDecodedFrameCount,B=this._mediaElement.webkitDroppedFrameCount):R=!1;return R&&(m.decodedFrames=D,m.droppedFrames=B),m}},{key:"_onmseUpdateEnd",value:function(){if(!this._config.lazyLoad||this._config.isLive)return;for(var m=this._mediaElement.buffered,R=this._mediaElement.currentTime,D=0,B=0,ne=0;ne<m.length;ne++){var we=m.start(ne),Se=m.end(ne);if(we<=R&&R<Se){D=we,B=Se;break}}B>=R+this._config.lazyLoadMaxDuration&&this._progressChecker==null&&(d.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}},{key:"_onmseBufferFull",value:function(){d.v(this.TAG,"MSE SourceBuffer is full, suspend transmuxing task"),this._progressChecker==null&&this._suspendTransmuxer()}},{key:"_suspendTransmuxer",value:function(){this._transmuxer&&(this._transmuxer.pause(),this._progressChecker==null&&(this._progressChecker=window.setInterval(this._checkProgressAndResume.bind(this),1e3)))}},{key:"_checkProgressAndResume",value:function(){for(var m=this._mediaElement.currentTime,R=this._mediaElement.buffered,D=!1,B=0;B<R.length;B++){var ne=R.start(B),we=R.end(B);if(m>=ne&&m<we){m>=we-this._config.lazyLoadRecoverDuration&&(D=!0);break}}D&&(window.clearInterval(this._progressChecker),this._progressChecker=null,D&&(d.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))}},{key:"_isTimepointBuffered",value:function(m){for(var R=this._mediaElement.buffered,D=0;D<R.length;D++){var B=R.start(D),ne=R.end(D);if(m>=B&&m<ne)return!0}return!1}},{key:"_internalSeek",value:function(m){var R=this._isTimepointBuffered(m),D=!1,B=0;if(m<1&&this._mediaElement.buffered.length>0){var ne=this._mediaElement.buffered.start(0);(ne<1&&m<ne||y.safari)&&(D=!0,B=y.safari?.1:ne)}if(D)this._requestSetTime=!0,this._mediaElement.currentTime=B;else if(R){if(!this._alwaysSeekKeyframe)this._requestSetTime=!0,this._mediaElement.currentTime=m;else{var we=this._msectl.getNearestKeyframe(Math.floor(m*1e3));this._requestSetTime=!0,we!=null?this._mediaElement.currentTime=we.dts/1e3:this._mediaElement.currentTime=m}this._progressChecker!=null&&this._checkProgressAndResume()}else this._progressChecker!=null&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._msectl.seek(m),this._transmuxer.seek(Math.floor(m*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=m)}},{key:"_checkAndApplyUnbufferedSeekpoint",value:function(){if(this._seekpointRecord)if(this._seekpointRecord.recordTime<=this._now()-100){var m=this._mediaElement.currentTime;this._seekpointRecord=null,this._isTimepointBuffered(m)||(this._progressChecker!=null&&(window.clearTimeout(this._progressChecker),this._progressChecker=null),this._msectl.seek(m),this._transmuxer.seek(Math.floor(m*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=m))}else window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}},{key:"_checkAndResumeStuckPlayback",value:function(m){var R=this._mediaElement;if(m||!this._receivedCanPlay||R.readyState<2){var D=R.buffered;D.length>0&&R.currentTime<D.start(0)&&(d.w(this.TAG,"Playback seems stuck at ".concat(R.currentTime,", seek to ").concat(D.start(0))),this._requestSetTime=!0,this._mediaElement.currentTime=D.start(0),this._mediaElement.removeEventListener("progress",this.e.onvProgress))}else this._mediaElement.removeEventListener("progress",this.e.onvProgress)}},{key:"_onvLoadedMetadata",value:function(m){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null)}},{key:"_onvSeeking",value:function(m){var R=this._mediaElement.currentTime,D=this._mediaElement.buffered;if(this._requestSetTime){this._requestSetTime=!1;return}if(R<1&&D.length>0){var B=D.start(0);if(B<1&&R<B||y.safari){this._requestSetTime=!0,this._mediaElement.currentTime=y.safari?.1:B;return}}if(this._isTimepointBuffered(R)){if(this._alwaysSeekKeyframe){var ne=this._msectl.getNearestKeyframe(Math.floor(R*1e3));ne!=null&&(this._requestSetTime=!0,this._mediaElement.currentTime=ne.dts/1e3)}this._progressChecker!=null&&this._checkProgressAndResume();return}this._seekpointRecord={seekPoint:R,recordTime:this._now()},window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}},{key:"_onvCanPlay",value:function(m){this._receivedCanPlay=!0,this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay)}},{key:"_onvStalled",value:function(m){this._checkAndResumeStuckPlayback(!0)}},{key:"_onvProgress",value:function(m){this._checkAndResumeStuckPlayback()}}]),oe}(),nt=ut,ft=function(){function oe(X,m){if(Object(ke.a)(this,oe),this.TAG="NativePlayer",this._type="NativePlayer",this._emitter=new p.a,this._config=H(),typeof m=="object"&&Object.assign(this._config,m),X.type.toLowerCase()==="flv")throw new l("NativePlayer does't support flv MediaDataSource input!");if(X.hasOwnProperty("segments"))throw new l("NativePlayer(".concat(X.type,") doesn't support multipart playback!"));this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this)},this._pendingSeekTime=null,this._statisticsReporter=null,this._mediaDataSource=X,this._mediaElement=null}return Object(De.a)(oe,[{key:"destroy",value:function(){this._mediaElement&&(this.unload(),this.detachMediaElement()),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(m,R){var D=this;m===_e.MEDIA_INFO?this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(function(){D._emitter.emit(_e.MEDIA_INFO,D.mediaInfo)}):m===_e.STATISTICS_INFO&&(this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(function(){D._emitter.emit(_e.STATISTICS_INFO,D.statisticsInfo)})),this._emitter.addListener(m,R)}},{key:"off",value:function(m,R){this._emitter.removeListener(m,R)}},{key:"attachMediaElement",value:function(m){if(this._mediaElement=m,m.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._pendingSeekTime!=null)try{m.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(R){}}},{key:"detachMediaElement",value:function(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement=null),this._statisticsReporter!=null&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}},{key:"load",value:function(){if(!this._mediaElement)throw new a("HTMLMediaElement must be attached before load()!");this._mediaElement.src=this._mediaDataSource.url,this._mediaElement.readyState>0&&(this._mediaElement.currentTime=0),this._mediaElement.preload="auto",this._mediaElement.load(),this._statisticsReporter=window.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval)}},{key:"unload",value:function(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src")),this._statisticsReporter!=null&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}},{key:"play",value:function(){return this._mediaElement.play()}},{key:"pause",value:function(){this._mediaElement.pause()}},{key:"type",get:function(){return this._type}},{key:"buffered",get:function(){return this._mediaElement.buffered}},{key:"duration",get:function(){return this._mediaElement.duration}},{key:"volume",get:function(){return this._mediaElement.volume},set:function(m){this._mediaElement.volume=m}},{key:"muted",get:function(){return this._mediaElement.muted},set:function(m){this._mediaElement.muted=m}},{key:"currentTime",get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(m){this._mediaElement?this._mediaElement.currentTime=m:this._pendingSeekTime=m}},{key:"mediaInfo",get:function(){var m=this._mediaElement instanceof HTMLAudioElement?"audio/":"video/",R={mimeType:m+this._mediaDataSource.type};return this._mediaElement&&(R.duration=Math.floor(this._mediaElement.duration*1e3),this._mediaElement instanceof HTMLVideoElement&&(R.width=this._mediaElement.videoWidth,R.height=this._mediaElement.videoHeight)),R}},{key:"statisticsInfo",get:function(){var m={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return m;var R=!0,D=0,B=0;if(this._mediaElement.getVideoPlaybackQuality){var ne=this._mediaElement.getVideoPlaybackQuality();D=ne.totalVideoFrames,B=ne.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(D=this._mediaElement.webkitDecodedFrameCount,B=this._mediaElement.webkitDroppedFrameCount):R=!1;return R&&(m.decodedFrames=D,m.droppedFrames=B),m}},{key:"_onvLoadedMetadata",value:function(m){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(_e.MEDIA_INFO,this.mediaInfo)}},{key:"_reportStatisticsInfo",value:function(){this._emitter.emit(_e.STATISTICS_INFO,this.statisticsInfo)}}]),oe}(),yt=ft;r.install();function st(oe,X){var m=oe;if(m==null||typeof m!="object")throw new l("MediaDataSource must be an javascript object!");if(!m.hasOwnProperty("type"))throw new l("MediaDataSource must has type field to indicate video file type!");switch(m.type){case"flv":return new nt(m,X);default:return new yt(m,X)}}function gt(){return be.supportMSEH264Playback()}function xt(){return be.getFeatureList()}var _t={};_t.createPlayer=st,_t.isSupported=gt,_t.getFeatureList=xt,_t.BaseLoader=w,_t.LoaderStatus=v,_t.LoaderErrors=u,_t.Events=_e,_t.ErrorTypes=Ge,_t.ErrorDetails=at,_t.FlvPlayer=nt,_t.NativePlayer=yt,_t.LoggingControl=ve,Object.defineProperty(_t,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var wt=Ze.a=_t},GfqC:function(rt,Ze,de){"use strict";var ke=de("q1tI"),De=de.n(ke),Re=de("TSYQ"),r=de.n(Re);function O(re,N){var ue="cannot "+re.method+" "+re.action+" "+N.status+"'",G=new Error(ue);return G.status=N.status,G.method=re.method,G.url=re.action,G}function p(re){var N=re.responseText||re.response;if(!N)return N;try{return JSON.parse(N)}catch(ue){return N}}function c(re){var N=new XMLHttpRequest;re.onProgress&&N.upload&&(N.upload.onprogress=function(T){T.total>0&&(T.percent=T.loaded/T.total*100),re.onProgress(T)});var ue=new FormData;re.data&&Object.keys(re.data).forEach(function(V){var T=re.data[V];if(Array.isArray(T)){T.forEach(function(U){ue.append(V+"[]",U)});return}ue.append(V,re.data[V])}),re.file instanceof Blob?ue.append(re.filename,re.file,re.file.name):ue.append(re.filename,re.file),N.onerror=function(T){re.onError(T)},N.onload=function(){return N.status<200||N.status>=300?re.onError(O(re,N),p(N)):re.onSuccess(p(N),N)},N.open(re.method,re.action,!0),re.withCredentials&&"withCredentials"in N&&(N.withCredentials=!0);var G=re.headers||{};return G["X-Requested-With"]!==null&&N.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(G).forEach(function(V){G[V]!==null&&N.setRequestHeader(V,G[V])}),N.send(ue),{abort:function(){N.abort()}}}var d=+new Date,s=0;function i(){return"rc-upload-"+d+"-"+ ++s}function h(re,N){return re.indexOf(N,re.length-N.length)!==-1}var o=function(re,N){if(re&&N){var ue=Array.isArray(N)?N:N.split(","),G=re.name||"",V=re.type||"",T=V.replace(/\/.*$/,"");return ue.some(function(U){var H=U.trim();return H.charAt(0)==="."?h(G.toLowerCase(),H.toLowerCase()):/\/\*$/.test(H)?T===H.replace(/\/.*$/,""):V===H})}return!0};function t(re,N){var ue=re.createReader(),G=[];function V(){ue.readEntries(function(T){var U=Array.prototype.slice.apply(T);G=G.concat(U);var H=!U.length;H?N(G):V()})}V()}var a=function(N,ue,G){var V=function T(U,H){H=H||"",U.isFile?U.file(function(K){G(K)&&(U.fullPath&&!K.webkitRelativePath&&(Object.defineProperties(K,{webkitRelativePath:{writable:!0}}),K.webkitRelativePath=U.fullPath.replace(/^\//,""),Object.defineProperties(K,{webkitRelativePath:{writable:!1}})),ue([K]))}):U.isDirectory&&t(U,function(K){K.forEach(function(be){T(be,""+H+U.name+"/")})})};N.forEach(function(T){V(T.webkitGetAsEntry())})},l=a,f=Object.assign||function(re){for(var N=1;N<arguments.length;N++){var ue=arguments[N];for(var G in ue)Object.prototype.hasOwnProperty.call(ue,G)&&(re[G]=ue[G])}return re},v=function(){function re(N,ue){var G=[],V=!0,T=!1,U=void 0;try{for(var H=N[Symbol.iterator](),K;!(V=(K=H.next()).done)&&!(G.push(K.value),ue&&G.length===ue);V=!0);}catch(be){T=!0,U=be}finally{try{!V&&H.return&&H.return()}finally{if(T)throw U}}return G}return function(N,ue){if(Array.isArray(N))return N;if(Symbol.iterator in Object(N))return re(N,ue);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=function(){function re(N,ue){for(var G=0;G<ue.length;G++){var V=ue[G];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(N,V.key,V)}}return function(N,ue,G){return ue&&re(N.prototype,ue),G&&re(N,G),N}}();function w(re,N,ue){return N in re?Object.defineProperty(re,N,{value:ue,enumerable:!0,configurable:!0,writable:!0}):re[N]=ue,re}function A(re,N){var ue={};for(var G in re){if(N.indexOf(G)>=0)continue;if(!Object.prototype.hasOwnProperty.call(re,G))continue;ue[G]=re[G]}return ue}function E(re,N){if(!(re instanceof N))throw new TypeError("Cannot call a class as a function")}function x(re,N){if(!re)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N&&(typeof N=="object"||typeof N=="function")?N:re}function k(re,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof N);re.prototype=Object.create(N&&N.prototype,{constructor:{value:re,enumerable:!1,writable:!0,configurable:!0}}),N&&(Object.setPrototypeOf?Object.setPrototypeOf(re,N):re.__proto__=N)}var g=function(N){return Object.keys(N).reduce(function(ue,G){return(G.substr(0,5)==="data-"||G.substr(0,5)==="aria-"||G==="role")&&(ue[G]=N[G]),ue},{})},y=function(re){k(N,re);function N(){var ue,G,V,T;E(this,N);for(var U=arguments.length,H=Array(U),K=0;K<U;K++)H[K]=arguments[K];return T=(G=(V=x(this,(ue=N.__proto__||Object.getPrototypeOf(N)).call.apply(ue,[this].concat(H))),V),V.state={uid:i()},V.reqs={},V.onChange=function(be){var ae=be.target.files;V.uploadFiles(ae),V.reset()},V.onClick=function(be){var ae=V.fileInput;if(!ae)return;var _e=V.props,se=_e.children,ve=_e.onClick;se&&se.type==="button"&&(ae.parentNode.focus(),ae.parentNode.querySelector("button").blur()),ae.click(),ve&&ve(be)},V.onKeyDown=function(be){be.key==="Enter"&&V.onClick()},V.onFileDrop=function(be){var ae=V.props.multiple;if(be.preventDefault(),be.type==="dragover")return;if(V.props.directory)l(Array.prototype.slice.call(be.dataTransfer.items),V.uploadFiles,function(se){return o(se,V.props.accept)});else{var _e=Array.prototype.slice.call(be.dataTransfer.files).filter(function(se){return o(se,V.props.accept)});ae===!1&&(_e=_e.slice(0,1)),V.uploadFiles(_e)}},V.uploadFiles=function(be){var ae=Array.prototype.slice.call(be);ae.map(function(_e){return _e.uid=i(),_e}).forEach(function(_e){V.upload(_e,ae)})},V.saveFileInput=function(be){V.fileInput=be},G),x(V,T)}return u(N,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"upload",value:function(G,V){var T=this,U=this.props;if(!U.beforeUpload)return setTimeout(function(){return T.post(G)},0);var H=U.beforeUpload(G,V);H&&H.then?H.then(function(K){var be=Object.prototype.toString.call(K);return be==="[object File]"||be==="[object Blob]"?T.post(K):T.post(G)}).catch(function(K){console.log(K)}):H!==!1&&setTimeout(function(){return T.post(G)},0);return}},{key:"post",value:function(G){var V=this;if(!this._isMounted)return;var T=this.props,U=T.onStart,H=T.onProgress,K=T.transformFile,be=K===void 0?function(ae){return ae}:K;new Promise(function(ae){var _e=T.action;return typeof _e=="function"&&(_e=_e(G)),ae(_e)}).then(function(ae){var _e=G.uid,se=T.customRequest||c,ve=Promise.resolve(be(G)).then(function(te){var J=T.data;return typeof J=="function"&&(J=J(te)),Promise.all([te,J])}).catch(function(te){console.error(te)});ve.then(function(te){var J=v(te,2),q=J[0],he=J[1],Y={action:ae,filename:T.name,data:he,file:q,headers:T.headers,withCredentials:T.withCredentials,method:T.method||"post",onProgress:H?function(W){H(W,G)}:null,onSuccess:function(me,ge){delete V.reqs[_e],T.onSuccess(me,G,ge)},onError:function(me,ge){delete V.reqs[_e],T.onError(me,ge,G)}};U(G),V.reqs[_e]=se(Y)})})}},{key:"reset",value:function(){this.setState({uid:i()})}},{key:"abort",value:function(G){var V=this.reqs;if(G){var T=G;G&&G.uid&&(T=G.uid),V[T]&&V[T].abort&&V[T].abort(),delete V[T]}else Object.keys(V).forEach(function(U){V[U]&&V[U].abort&&V[U].abort(),delete V[U]})}},{key:"render",value:function(){var G,V=this.props,T=V.component,U=V.prefixCls,H=V.className,K=V.disabled,be=V.id,ae=V.style,_e=V.multiple,se=V.accept,ve=V.children,te=V.directory,J=V.openFileDialogOnClick,q=V.onMouseEnter,he=V.onMouseLeave,Y=A(V,["component","prefixCls","className","disabled","id","style","multiple","accept","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"]),W=r()((G={},w(G,U,!0),w(G,U+"-disabled",K),w(G,H,H),G)),me=K?{}:{onClick:J?this.onClick:function(){},onKeyDown:J?this.onKeyDown:function(){},onMouseEnter:q,onMouseLeave:he,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return De.a.createElement(T,f({},me,{className:W,role:"button",style:ae}),De.a.createElement("input",f({},g(Y),{id:be,type:"file",ref:this.saveFileInput,onClick:function(Ae){return Ae.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:se,directory:te?"directory":null,webkitdirectory:te?"webkitdirectory":null,multiple:_e,onChange:this.onChange})),ve)}}]),N}(ke.Component),j=y,L=Object.assign||function(re){for(var N=1;N<arguments.length;N++){var ue=arguments[N];for(var G in ue)Object.prototype.hasOwnProperty.call(ue,G)&&(re[G]=ue[G])}return re},_=function(){function re(N,ue){for(var G=0;G<ue.length;G++){var V=ue[G];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(N,V.key,V)}}return function(N,ue,G){return ue&&re(N.prototype,ue),G&&re(N,G),N}}();function z(re,N){if(!(re instanceof N))throw new TypeError("Cannot call a class as a function")}function M(re,N){if(!re)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N&&(typeof N=="object"||typeof N=="function")?N:re}function P(re,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof N);re.prototype=Object.create(N&&N.prototype,{constructor:{value:re,enumerable:!1,writable:!0,configurable:!0}}),N&&(Object.setPrototypeOf?Object.setPrototypeOf(re,N):re.__proto__=N)}function F(){}var $=function(re){P(N,re);function N(){var ue,G,V,T;z(this,N);for(var U=arguments.length,H=Array(U),K=0;K<U;K++)H[K]=arguments[K];return T=(G=(V=M(this,(ue=N.__proto__||Object.getPrototypeOf(N)).call.apply(ue,[this].concat(H))),V),V.saveUploader=function(be){V.uploader=be},G),M(V,T)}return _(N,[{key:"abort",value:function(G){this.uploader.abort(G)}},{key:"render",value:function(){return De.a.createElement(j,L({},this.props,{ref:this.saveUploader}))}}]),N}(ke.Component);$.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:F,onError:F,onSuccess:F,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var Z=$,Q=Ze.a=Z},Gytx:function(rt,Ze){rt.exports=function(ke,De,Re,r){var O=Re?Re.call(r,ke,De):void 0;if(O!==void 0)return!!O;if(ke===De)return!0;if(typeof ke!="object"||!ke||typeof De!="object"||!De)return!1;var p=Object.keys(ke),c=Object.keys(De);if(p.length!==c.length)return!1;for(var d=Object.prototype.hasOwnProperty.bind(De),s=0;s<p.length;s++){var i=p[s];if(!d(i))return!1;var h=ke[i],o=De[i];if(O=Re?Re.call(r,h,o,i):void 0,O===!1||O===void 0&&h!==o)return!1}return!0}},J66h:function(rt,Ze,de){(function(ke){var De,Re;(function(r,O){rt.exports=O(r)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof ke!="undefined"?ke:this,function(r){"use strict";r=r||{};var O=r.Base64,p="2.6.4",c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=function(F){for(var $={},Z=0,Q=F.length;Z<Q;Z++)$[F.charAt(Z)]=Z;return $}(c),s=String.fromCharCode,i=function(F){if(F.length<2){var $=F.charCodeAt(0);return $<128?F:$<2048?s(192|$>>>6)+s(128|$&63):s(224|$>>>12&15)+s(128|$>>>6&63)+s(128|$&63)}else{var $=65536+(F.charCodeAt(0)-55296)*1024+(F.charCodeAt(1)-56320);return s(240|$>>>18&7)+s(128|$>>>12&63)+s(128|$>>>6&63)+s(128|$&63)}},h=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,o=function(F){return F.replace(h,i)},t=function(F){var $=[0,2,1][F.length%3],Z=F.charCodeAt(0)<<16|(F.length>1?F.charCodeAt(1):0)<<8|(F.length>2?F.charCodeAt(2):0),Q=[c.charAt(Z>>>18),c.charAt(Z>>>12&63),$>=2?"=":c.charAt(Z>>>6&63),$>=1?"=":c.charAt(Z&63)];return Q.join("")},a=r.btoa&&typeof r.btoa=="function"?function(F){return r.btoa(F)}:function(F){if(F.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return F.replace(/[\s\S]{1,3}/g,t)},l=function(F){return a(o(String(F)))},f=function(F){return F.replace(/[+\/]/g,function($){return $=="+"?"-":"_"}).replace(/=/g,"")},v=function(F,$){return $?f(l(F)):l(F)},u=function(F){return v(F,!0)},w;r.Uint8Array&&(w=function(F,$){for(var Z="",Q=0,re=F.length;Q<re;Q+=3){var N=F[Q],ue=F[Q+1],G=F[Q+2],V=N<<16|ue<<8|G;Z+=c.charAt(V>>>18)+c.charAt(V>>>12&63)+(typeof ue!="undefined"?c.charAt(V>>>6&63):"=")+(typeof G!="undefined"?c.charAt(V&63):"=")}return $?f(Z):Z});var A=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,E=function(F){switch(F.length){case 4:var $=(7&F.charCodeAt(0))<<18|(63&F.charCodeAt(1))<<12|(63&F.charCodeAt(2))<<6|63&F.charCodeAt(3),Z=$-65536;return s((Z>>>10)+55296)+s((Z&1023)+56320);case 3:return s((15&F.charCodeAt(0))<<12|(63&F.charCodeAt(1))<<6|63&F.charCodeAt(2));default:return s((31&F.charCodeAt(0))<<6|63&F.charCodeAt(1))}},x=function(F){return F.replace(A,E)},k=function(F){var $=F.length,Z=$%4,Q=($>0?d[F.charAt(0)]<<18:0)|($>1?d[F.charAt(1)]<<12:0)|($>2?d[F.charAt(2)]<<6:0)|($>3?d[F.charAt(3)]:0),re=[s(Q>>>16),s(Q>>>8&255),s(Q&255)];return re.length-=[0,0,2,1][Z],re.join("")},g=r.atob&&typeof r.atob=="function"?function(F){return r.atob(F)}:function(F){return F.replace(/\S{1,4}/g,k)},y=function(F){return g(String(F).replace(/[^A-Za-z0-9\+\/]/g,""))},j=function(F){return x(g(F))},L=function(F){return String(F).replace(/[-_]/g,function($){return $=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},_=function(F){return j(L(F))},z;r.Uint8Array&&(z=function(F){return Uint8Array.from(y(L(F)),function($){return $.charCodeAt(0)})});var M=function(){var F=r.Base64;return r.Base64=O,F};if(r.Base64={VERSION:p,atob:y,btoa:a,fromBase64:_,toBase64:v,utob:o,encode:v,encodeURI:u,btou:x,decode:_,noConflict:M,fromUint8Array:w,toUint8Array:z},typeof Object.defineProperty=="function"){var P=function(F){return{value:F,enumerable:!1,writable:!0,configurable:!0}};r.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",P(function(){return _(this)})),Object.defineProperty(String.prototype,"toBase64",P(function(F){return v(this,F)})),Object.defineProperty(String.prototype,"toBase64URI",P(function(){return v(this,!0)}))}}return r.Meteor&&(Base64=r.Base64),rt.exports?rt.exports.Base64=r.Base64:!(De=[],Re=function(){return r.Base64}.apply(Ze,De),Re!==void 0&&(rt.exports=Re)),{Base64:r.Base64}})}).call(this,de("IyRk"))},JqQi:function(rt,Ze,de){rt.exports={bg:"bg___31owl",container:"container___2NGOo"}},LdHM:function(rt,Ze,de){"use strict";de.d(Ze,"b",function(){return A}),de.d(Ze,"a",function(){return x});var ke=de("1OyB"),De=de("vuIU"),Re=de("Ji7U"),r=de("LK+K"),O=de("q1tI"),p=de("rePB"),c=de("Ff2n"),d=de("ODXe"),s=de("4IlW"),i=de("bX4T"),h=de("YrtM"),o=de("TSYQ"),t=de.n(o),a=de("+nKL"),l=de("8OUc"),f=function(G,V){var T=G.prefixCls,U=G.id,H=G.flattenOptions,K=G.childrenAsData,be=G.values,ae=G.searchValue,_e=G.multiple,se=G.defaultActiveFirstOption,ve=G.height,te=G.itemHeight,J=G.notFoundContent,q=G.open,he=G.menuItemSelectedIcon,Y=G.virtual,W=G.onSelect,me=G.onToggleOpen,ge=G.onActiveValue,Ae=G.onScroll,I=G.onMouseEnter,e="".concat(T,"-item"),n=Object(h.a)(function(){return H},[q,H],function(Te,ye){return ye[0]&&Te[1]!==ye[1]}),C=O.useRef(null),b=function(ye){ye.preventDefault()},S=function(ye){C.current&&C.current.scrollTo({index:ye})},ee=function(ye){for(var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Ee=n.length,ie=0;ie<Ee;ie+=1){var ce=(ye+ie*xe+Ee)%Ee,pe=n[ce],le=pe.group,Ce=pe.data;if(!le&&!Ce.disabled)return ce}return-1},fe=O.useState(function(){return ee(0)}),Me=Object(d.a)(fe,2),Oe=Me[0],Le=Me[1],Be=function(ye){Le(ye);var xe=n[ye];if(!xe){ge(null,-1);return}ge(xe.data.value,ye)};O.useEffect(function(){Be(se!==!1?ee(0):-1)},[n.length,ae]),O.useEffect(function(){var Te=setTimeout(function(){if(!_e&&q&&be.size===1){var ye=Array.from(be)[0],xe=n.findIndex(function(Ee){var ie=Ee.data;return ie.value===ye});Be(xe),S(xe)}});return function(){return clearTimeout(Te)}},[q]);var Ke=function(ye){ye!==void 0&&W(ye,{selected:!be.has(ye)}),_e||me(!1)};if(O.useImperativeHandle(V,function(){return{onKeyDown:function(ye){var xe=ye.which;switch(xe){case s.a.UP:case s.a.DOWN:{var Ee=0;if(xe===s.a.UP?Ee=-1:xe===s.a.DOWN&&(Ee=1),Ee!==0){var ie=ee(Oe+Ee,Ee);S(ie),Be(ie)}break}case s.a.ENTER:{var ce=n[Oe];ce&&!ce.data.disabled?Ke(ce.data.value):Ke(void 0),q&&ye.preventDefault();break}case s.a.ESC:me(!1)}},onKeyUp:function(){},scrollTo:function(ye){S(ye)}}}),n.length===0)return O.createElement("div",{role:"listbox",id:"".concat(U,"_list"),className:"".concat(e,"-empty"),onMouseDown:b},J);function Pe(Te){var ye=n[Te];if(!ye)return null;var xe=ye.data||{},Ee=xe.value,ie=xe.label,ce=xe.children,pe=Object(i.a)(xe,!0),le=K?ce:ie;return ye?O.createElement("div",Object.assign({"aria-label":typeof le=="string"?le:null},pe,{key:Te,role:"option",id:"".concat(U,"_list_").concat(Te),"aria-selected":be.has(Ee)}),Ee):null}return O.createElement(O.Fragment,null,O.createElement("div",{role:"listbox",id:"".concat(U,"_list"),style:{height:0,width:0,overflow:"hidden"}},Pe(Oe-1),Pe(Oe),Pe(Oe+1)),O.createElement(a.a,{itemKey:"key",ref:C,data:n,height:ve,itemHeight:te,fullHeight:!1,onMouseDown:b,onScroll:Ae,virtual:Y,onMouseEnter:I},function(Te,ye){var xe,Ee=Te.group,ie=Te.groupOption,ce=Te.data,pe=ce.label,le=ce.key;if(Ee)return O.createElement("div",{className:t()(e,"".concat(e,"-group"))},pe!==void 0?pe:le);var Ce=ce.disabled,Ie=ce.value,qe=ce.title,lt=ce.children,mt=ce.style,dt=ce.className,ct=Object(c.a)(ce,["disabled","value","title","children","style","className"]),Ye=be.has(Ie),He="".concat(e,"-option"),Xe=t()(e,He,dt,(xe={},Object(p.a)(xe,"".concat(He,"-grouped"),ie),Object(p.a)(xe,"".concat(He,"-active"),Oe===ye&&!Ce),Object(p.a)(xe,"".concat(He,"-disabled"),Ce),Object(p.a)(xe,"".concat(He,"-selected"),Ye),xe)),Ge=K?lt:pe,at=!he||typeof he=="function"||Ye;return O.createElement("div",Object.assign({},ct,{"aria-selected":Ye,className:Xe,title:qe,onMouseMove:function(){if(Oe===ye||Ce)return;Be(ye)},onClick:function(){Ce||Ke(Ie)},style:mt}),O.createElement("div",{className:"".concat(He,"-content")},Ge||Ie),O.isValidElement(he)||Ye,at&&O.createElement(l.a,{className:"".concat(e,"-option-state"),customizeIcon:he,customizeIconProps:{isSelected:Ye}},Ye?"\u2713":null))}))},v=O.forwardRef(f);v.displayName="OptionList";var u=v,w=function(){return null};w.isSelectOption=!0;var A=w,E=function(){return null};E.isSelectOptGroup=!0;var x=E,k=de("VTBJ"),g=de("Zm9Q");function y(ue){var G=ue.key,V=ue.props,T=V.children,U=V.value,H=Object(c.a)(V,["children","value"]);return Object(k.a)({key:G,value:U!==void 0?U:G,children:T},H)}function j(ue){var G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Object(g.a)(ue).map(function(V,T){if(!O.isValidElement(V)||!V.type)return null;var U=V.type.isSelectOptGroup,H=V.key,K=V.props,be=K.children,ae=Object(c.a)(K,["children"]);return G||!U?y(V):Object(k.a)(Object(k.a)({key:"__RC_SELECT_GRP__".concat(H===null?T:H,"__"),label:H},ae),{},{options:j(be)})}).filter(function(V){return V})}var L=de("2Qr1"),_=de("qNPg"),z=de("U8pU"),M=de("Kwbf"),P=de("WKfj");function F(ue){var G=ue.mode,V=ue.options,T=ue.children,U=ue.backfill,H=ue.allowClear,K=ue.placeholder,be=ue.getInputElement,ae=ue.showSearch,_e=ue.onSearch,se=ue.defaultOpen,ve=ue.autoFocus,te=ue.labelInValue,J=ue.value,q=ue.inputValue,he=ue.optionLabelProp,Y=G==="multiple"||G==="tags",W=ae!==void 0?ae:Y||G==="combobox",me=V||j(T);if(Object(M.a)(G!=="tags"||me.every(function(e){return!e.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),G==="tags"||G==="combobox"){var ge=me.some(function(e){return e.options?e.options.some(function(n){return typeof("value"in n?n.value:n.key)=="number"}):typeof("value"in e?e.value:e.key)=="number"});Object(M.a)(!ge,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(M.a)(G!=="combobox"||!he,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(M.a)(G==="combobox"||!U,"`backfill` only works with `combobox` mode."),Object(M.a)(G==="combobox"||!be,"`getInputElement` only work with `combobox` mode."),Object(M.b)(G!=="combobox"||!be||!H||!K,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),_e&&!W&&G!=="combobox"&&G!=="tags"&&Object(M.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(M.b)(!se||ve,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),J!=null){var Ae=Object(P.d)(J);Object(M.a)(!te||Ae.every(function(e){return Object(z.a)(e)==="object"&&("key"in e||"value"in e)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(M.a)(!Y||Array.isArray(J),"`value` should be array when `mode` is `multiple` or `tags`")}if(T){var I=null;Object(g.a)(T).some(function(e){if(!O.isValidElement(e)||!e.type)return!1;var n=e.type;if(n.isSelectOption)return!1;if(n.isSelectOptGroup){var C=Object(g.a)(e.props.children).every(function(b){return!O.isValidElement(b)||!e.type||b.type.isSelectOption?!0:(I=b.type,!1)});return!C}return I=n,!0}),I&&Object(M.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(I.displayName||I.name||I,"`.")),Object(M.a)(q===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var $=F,Z=Object(_.a)({prefixCls:"rc-select",components:{optionList:u},convertChildrenToData:j,flattenOptions:L.d,getLabeledValue:L.e,filterOptions:L.b,isValueDisabled:L.g,findValueOption:L.c,warningProps:$,fillOptionsWithMissingValue:L.a}),Q=function(ue){Object(Re.a)(V,ue);var G=Object(r.a)(V);function V(){var T;return Object(ke.a)(this,V),T=G.apply(this,arguments),T.selectRef=O.createRef(),T.focus=function(){T.selectRef.current.focus()},T.blur=function(){T.selectRef.current.blur()},T}return Object(De.a)(V,[{key:"render",value:function(){return O.createElement(Z,Object.assign({ref:this.selectRef},this.props))}}]),V}(O.Component);Q.Option=A,Q.OptGroup=x;var re=Q,N=Ze.c=re},MRWH:function(rt,Ze,de){rt.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(rt,Ze,de){"use strict";de.d(Ze,"e",function(){return E}),de.d(Ze,"f",function(){return x}),de.d(Ze,"d",function(){return g}),de.d(Ze,"c",function(){return y}),de.d(Ze,"a",function(){return j}),de.d(Ze,"b",function(){return L});var ke=de("miYZ"),De=de("tsqr"),Re=de("9og8"),r=de("2qtc"),O=de("kLXV"),p=de("WmNS"),c=de.n(p),d=de("q1tI"),s=de.n(d),i=de("9kvl"),h=de("xKgJ"),o=de("1vsH"),t=de("RCxd"),a=de("mOS8"),l=de.n(a),f=de("1ZF9"),v=de.n(f),u=de("WdTA"),w=de.n(u),A=de("m3rI"),E=function(z){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!!(x(z)&&k(M))},x=function(z){return Object(h.p)()?!0:(z({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},k=function(){var z,M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,P=Object(i.c)()._store.getState(),F=P.user;return(z=F.userInfo)!==null&&z!==void 0&&z.profile_completed?!0:(O.a.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:M?"\u6309\u7167\u6709\u5173\u653F\u7B56\u89C4\u5B9A\uFF0C\u7279\u6B8A\u5B9E\u9A8C\u9700\u8981\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u624D\u80FD\u4F7F\u7528\uFF0C\u8BF7\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u7801":"\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(){i.d.push("/account/profile/edit")}}),!1)},g=function(){var z,M=Object(i.c)()._store.getState(),P=M.user;return(z=P.userInfo)!==null&&z!==void 0&&z.professional_certification?!0:(O.a.confirm({title:"\u63D0\u793A",centered:!0,content:s.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(o.Q)("/account/certification")}}),!1)},y=function(){return Object(h.a)()?!0:(O.a.warning({centered:!0,width:530,title:"\u63D0\u793A",content:s.a.createElement("div",{className:"tc",style:{marginLeft:-38}},s.a.createElement("p",null,"\u60A8\u53EF\u4EE5\u626B\u7801\u52A0\u7FA4@\u7FA4\u7BA1\u7406\u5458\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650\u54E6\uFF01"),s.a.createElement("img",{src:Object(h.t)()?w.a:"".concat(A.a.IMG_SERVER,"/images/educoder/qqqun20191230.png"),width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1)},j=function(z,M){return z?!0:(O.a.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:s.a.createElement("div",null,s.a.createElement("p",null,M||"\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"),s.a.createElement("div",{style:{marginLeft:"110px"}},s.a.createElement("img",{src:v.a,width:200}),s.a.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(o.Q)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1)},L=function(z){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",P=Object(i.c)()._store.getState(),F=P.shixunsDetail.detail;return(F==null?void 0:F.public)===2||(F==null?void 0:F.public)===1||(F==null?void 0:F.shixun_status)===3?(O.a.info({centered:!0,icon:s.a.createElement(t.a,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:s.a.createElement("div",{className:"tc",style:{marginLeft:-38}},s.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},s.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",(F==null?void 0:F.public)===2?"\u5DF2\u516C\u5F00":(F==null?void 0:F.public)===1?"\u5F85\u5BA1\u6838":"\u5DF2\u5173\u95ED","\uFF0C",M,"\u3002"),s.a.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),s.a.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:l.a,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0):(F==null?void 0:F.shixun_status)===2?(O.a.confirm({centered:!0,icon:s.a.createElement(t.a,null),title:"\u63D0\u793A",content:s.a.createElement("div",null,s.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",M,"\u3002"),s.a.createElement("br",null),s.a.createElement("span",null,"\u5982\u6709\u9700\u8981\uFF0C\u60A8\u53EF\u4EE5\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u518D\u8FDB\u884C\u64CD\u4F5C\u3002")),okText:"\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:function(){O.a.confirm({width:440,centered:!0,icon:s.a.createElement(t.a,{style:{color:"#faad14"}}),title:"\u63D0\u793A",content:"\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u5B66\u5458\u5C06\u65E0\u6CD5\u8FDB\u884C\u7EC3\u4E60\u3002\u662F\u5426\u786E\u8BA4\u64A4\u9500\u53D1\u5E03\uFF1F",okText:"\u786E\u5B9A\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:function(){var Z=Object(Re.a)(c.a.mark(function re(){var N;return c.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.next=2,z({type:"shixunsDetail/cancelRelease",payload:{id:F==null?void 0:F.identifier}});case 2:N=G.sent,N.status!==401&&(De.b.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),z({type:"shixunsDetail/getShixunsDetail",payload:{id:F==null?void 0:F.identifier}}),z({type:"practiceSetting/getCommonData",payload:{id:F==null?void 0:F.identifier}}));case 4:case"end":return G.stop()}},re)}));function Q(){return Z.apply(this,arguments)}return Q}()})}}),!0):!1}},OLES:function(rt,Ze,de){"use strict";var ke=de("U8pU"),De=de("VTBJ"),Re=de("Ff2n"),r=de("q1tI"),O=de("uciX"),p=de("7ixt"),c=function(t){var a=t.overlay,l=t.prefixCls,f=t.id,v=t.overlayInnerStyle;return r.createElement("div",{className:"".concat(l,"-inner"),id:f,role:"tooltip",style:v},typeof a=="function"?a():a)},d=c,s=function(t,a){var l=t.overlayClassName,f=t.trigger,v=f===void 0?["hover"]:f,u=t.mouseEnterDelay,w=u===void 0?0:u,A=t.mouseLeaveDelay,E=A===void 0?.1:A,x=t.overlayStyle,k=t.prefixCls,g=k===void 0?"rc-tooltip":k,y=t.children,j=t.onVisibleChange,L=t.afterVisibleChange,_=t.transitionName,z=t.animation,M=t.placement,P=M===void 0?"right":M,F=t.align,$=F===void 0?{}:F,Z=t.destroyTooltipOnHide,Q=Z===void 0?!1:Z,re=t.defaultVisible,N=t.getTooltipContainer,ue=t.overlayInnerStyle,G=Object(Re.a)(t,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),V=Object(r.useRef)(null);Object(r.useImperativeHandle)(a,function(){return V.current});var T=Object(De.a)({},G);"visible"in t&&(T.popupVisible=t.visible);var U=function(){var _e=t.arrowContent,se=_e===void 0?null:_e,ve=t.overlay,te=t.id;return[r.createElement("div",{className:"".concat(g,"-arrow"),key:"arrow"},se),r.createElement(d,{key:"content",prefixCls:g,id:te,overlay:ve,overlayInnerStyle:ue})]},H=!1,K=!1;if(typeof Q=="boolean")H=Q;else if(Q&&Object(ke.a)(Q)==="object"){var be=Q.keepParent;H=be===!0,K=be===!1}return r.createElement(O.a,Object.assign({popupClassName:l,prefixCls:g,popup:U,action:v,builtinPlacements:p.a,popupPlacement:P,ref:V,popupAlign:$,getPopupContainer:N,onPopupVisibleChange:j,afterPopupVisibleChange:L,popupTransitionName:_,popupAnimation:z,defaultPopupVisible:re,destroyPopupOnHide:H,autoDestroy:K,mouseLeaveDelay:E,popupStyle:x,mouseEnterDelay:w},T),y)},i=Object(r.forwardRef)(s),h=Ze.a=i},SJMd:function(rt,Ze){/**
* @license
* Copyright (C) 2006 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var de,ke,De,Re=!1,r,O;window.PR_SHOULD_USE_CONTINUATION=!0;var p,c;(function(){var d=window,s=["break,continue,do,else,for,if,return,while"],i=[s,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,restrict,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],h=[i,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],o=[h,"alignas,alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,noexcept,noreturn,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],t=[h,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],a=[h,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"],l="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",f=[h,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],v="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",u=[s,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],w=[s,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],A=[s,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],E=[o,a,t,f,v,u,w,A],x=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,k="str",g="kwd",y="com",j="typ",L="lit",_="pun",z="pln",M="tag",P="dec",F="src",$="atn",Z="atv",Q="nocode",re="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function N(W){for(var me=0,ge=!1,Ae=!1,I=0,e=W.length;I<e;++I){var n=W[I];if(n.ignoreCase)Ae=!0;else if(/[a-z]/i.test(n.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){ge=!0,Ae=!1;break}}var C={b:8,t:9,n:10,v:11,f:12,r:13};function b(Oe){var Le=Oe.charCodeAt(0);if(Le!==92)return Le;var Be=Oe.charAt(1);return Le=C[Be],Le||("0"<=Be&&Be<="7"?parseInt(Oe.substring(1),8):Be==="u"||Be==="x"?parseInt(Oe.substring(2),16):Oe.charCodeAt(1))}function S(Oe){if(Oe<32)return(Oe<16?"\\x0":"\\x")+Oe.toString(16);var Le=String.fromCharCode(Oe);return Le==="\\"||Le==="-"||Le==="]"||Le==="^"?"\\"+Le:Le}function ee(Oe){var Le=Oe.substring(1,Oe.length-1).match(new RegExp("\\\\u[0-9A-Fa-f]{4}|\\\\x[0-9A-Fa-f]{2}|\\\\[0-3][0-7]{0,2}|\\\\[0-7]{1,2}|\\\\[\\s\\S]|-|[^-\\\\]","g")),Be=[],Ke=Le[0]==="^",Pe=["["];Ke&&Pe.push("^");for(var Te=Ke?1:0,ye=Le.length;Te<ye;++Te){var xe=Le[Te];if(/\\[bdsw]/i.test(xe))Pe.push(xe);else{var Ee=b(xe),ie;Te+2<ye&&Le[Te+1]==="-"?(ie=b(Le[Te+2]),Te+=2):ie=Ee,Be.push([Ee,ie]),ie<65||Ee>122||(ie<65||Ee>90||Be.push([Math.max(65,Ee)|32,Math.min(ie,90)|32]),ie<97||Ee>122||Be.push([Math.max(97,Ee)&~32,Math.min(ie,122)&~32]))}}Be.sort(function(Ce,Ie){return Ce[0]-Ie[0]||Ie[1]-Ce[1]});for(var ce=[],pe=[],Te=0;Te<Be.length;++Te){var le=Be[Te];le[0]<=pe[1]+1?pe[1]=Math.max(pe[1],le[1]):ce.push(pe=le)}for(var Te=0;Te<ce.length;++Te){var le=ce[Te];Pe.push(S(le[0])),le[1]>le[0]&&(le[1]+1>le[0]&&Pe.push("-"),Pe.push(S(le[1])))}return Pe.push("]"),Pe.join("")}function fe(Oe){for(var Le=Oe.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g")),Be=Le.length,Ke=[],Pe=0,Te=0;Pe<Be;++Pe){var ye=Le[Pe];if(ye==="(")++Te;else if(ye.charAt(0)==="\\"){var xe=+ye.substring(1);xe&&(xe<=Te?Ke[xe]=-1:Le[Pe]=S(xe))}}for(var Pe=1;Pe<Ke.length;++Pe)Ke[Pe]===-1&&(Ke[Pe]=++me);for(var Pe=0,Te=0;Pe<Be;++Pe){var ye=Le[Pe];if(ye==="(")++Te,Ke[Te]||(Le[Pe]="(?:");else if(ye.charAt(0)==="\\"){var xe=+ye.substring(1);xe&&xe<=Te&&(Le[Pe]="\\"+Ke[xe])}}for(var Pe=0;Pe<Be;++Pe)Le[Pe]==="^"&&Le[Pe+1]!=="^"&&(Le[Pe]="");if(Oe.ignoreCase&&ge)for(var Pe=0;Pe<Be;++Pe){var ye=Le[Pe],Ee=ye.charAt(0);ye.length>=2&&Ee==="["?Le[Pe]=ee(ye):Ee!=="\\"&&(Le[Pe]=ye.replace(/[a-zA-Z]/g,function(pe){var le=pe.charCodeAt(0);return"["+String.fromCharCode(le&~32,le|32)+"]"}))}return Le.join("")}for(var Me=[],I=0,e=W.length;I<e;++I){var n=W[I];if(n.global||n.multiline)throw new Error(""+n);Me.push("(?:"+fe(n)+")")}return new RegExp(Me.join("|"),Ae?"gi":"g")}function ue(W,me){var ge=/(?:^|\s)nocode(?:\s|$)/,Ae=[],I=0,e=[],n=0;function C(b){var S=b.nodeType;if(S==1){if(ge.test(b.className))return;for(var ee=b.firstChild;ee;ee=ee.nextSibling)C(ee);var fe=b.nodeName.toLowerCase();(fe==="br"||fe==="li")&&(Ae[n]=`
`,e[n<<1]=I++,e[n++<<1|1]=b)}else if(S==3||S==4){var Me=b.nodeValue;Me.length&&(me?Me=Me.replace(/\r\n?/g,`
`):Me=Me.replace(/[ \t\r\n]+/g," "),Ae[n]=Me,e[n<<1]=I,I+=Me.length,e[n++<<1|1]=b)}}return C(W),{sourceCode:Ae.join("").replace(/\n$/,""),spans:e}}function G(W,me,ge,Ae,I){if(!ge)return;var e={sourceNode:W,pre:1,langExtension:null,numberLines:null,sourceCode:ge,spans:null,basePos:me,decorations:null};Ae(e),I.push.apply(I,e.decorations)}var V=/\S/;function T(W){for(var me=void 0,ge=W.firstChild;ge;ge=ge.nextSibling){var Ae=ge.nodeType;me=Ae===1?me?W:ge:Ae===3&&V.test(ge.nodeValue)?W:me}return me===W?void 0:me}function U(W,me){var ge={},Ae;(function(){for(var n=W.concat(me),C=[],b={},S=0,ee=n.length;S<ee;++S){var fe=n[S],Me=fe[3];if(Me)for(var Oe=Me.length;--Oe>=0;)ge[Me.charAt(Oe)]=fe;var Le=fe[1],Be=""+Le;b.hasOwnProperty(Be)||(C.push(Le),b[Be]=null)}C.push(/[\0-\uffff]/),Ae=N(C)})();var I=me.length,e=function(n){for(var C=n.sourceCode,b=n.basePos,S=n.sourceNode,ee=[b,z],fe=0,Me=C.match(Ae)||[],Oe={},Le=0,Be=Me.length;Le<Be;++Le){var Ke=Me[Le],Pe=Oe[Ke],Te=void 0,ye;if(typeof Pe=="string")ye=!1;else{var xe=ge[Ke.charAt(0)];if(xe)Te=Ke.match(xe[1]),Pe=xe[0];else{for(var Ee=0;Ee<I;++Ee)if(xe=me[Ee],Te=Ke.match(xe[1]),Te){Pe=xe[0];break}Te||(Pe=z)}ye=Pe.length>=5&&Pe.substring(0,5)==="lang-",ye&&!(Te&&typeof Te[1]=="string")&&(ye=!1,Pe=F),ye||(Oe[Ke]=Pe)}var ie=fe;if(fe+=Ke.length,!ye)ee.push(b+ie,Pe);else{var ce=Te[1],pe=Ke.indexOf(ce),le=pe+ce.length;Te[2]&&(le=Ke.length-Te[2].length,pe=le-ce.length);var Ce=Pe.substring(5);G(S,b+ie,Ke.substring(0,pe),e,ee),G(S,b+ie+pe,ce,ve(Ce,ce),ee),G(S,b+ie+le,Ke.substring(le),e,ee)}}n.decorations=ee};return e}function H(W){var me=[],ge=[];W.tripleQuotedStrings?me.push([k,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):W.multiLineStrings?me.push([k,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):me.push([k,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),W.verbatimStrings&&ge.push([k,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var Ae=W.hashComments;Ae&&(W.cStyleComments?(Ae>1?me.push([y,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):me.push([y,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),ge.push([k,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):me.push([y,/^#[^\r\n]*/,null,"#"])),W.cStyleComments&&(ge.push([y,/^\/\/[^\r\n]*/,null]),ge.push([y,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var I=W.regexLiterals;if(I){var e=I>1?"":`
\r`,n=e?".":"[\\S\\s]",C="/(?=[^/*"+e+"])(?:[^/\\x5B\\x5C"+e+"]|\\x5C"+n+"|\\x5B(?:[^\\x5C\\x5D"+e+"]|\\x5C"+n+")*(?:\\x5D|$))+/";ge.push(["lang-regex",RegExp("^"+re+"("+C+")")])}var b=W.types;b&&ge.push([j,b]);var S=(""+W.keywords).replace(/^ | $/g,"");S.length&&ge.push([g,new RegExp("^(?:"+S.replace(/[\s,]+/g,"|")+")\\b"),null]),me.push([z,/^\s+/,null,` \r
\xA0`]);var ee="^.[^\\s\\w.$@'\"`/\\\\]*";return W.regexLiterals&&(ee+="(?!s*/)"),ge.push([L,/^@[a-z_$][a-z_$@0-9]*/i,null],[j,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[z,/^[a-z_$][a-z_$@0-9]*/i,null],[L,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[z,/^\\[\s\S]?/,null],[_,new RegExp(ee),null]),U(me,ge)}var K=H({keywords:E,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function be(W,me,ge){for(var Ae=/(?:^|\s)nocode(?:\s|$)/,I=/\r\n?|\n/,e=W.ownerDocument,n=e.createElement("li");W.firstChild;)n.appendChild(W.firstChild);var C=[n];function b(Le){var Be=Le.nodeType;if(Be==1&&!Ae.test(Le.className))if(Le.nodeName==="br")S(Le),Le.parentNode&&Le.parentNode.removeChild(Le);else for(var Ke=Le.firstChild;Ke;Ke=Ke.nextSibling)b(Ke);else if((Be==3||Be==4)&&ge){var Pe=Le.nodeValue,Te=Pe.match(I);if(Te){var ye=Pe.substring(0,Te.index);Le.nodeValue=ye;var xe=Pe.substring(Te.index+Te[0].length);if(xe){var Ee=Le.parentNode;Ee.insertBefore(e.createTextNode(xe),Le.nextSibling)}S(Le),ye||Le.parentNode.removeChild(Le)}}}function S(Le){for(;!Le.nextSibling;)if(Le=Le.parentNode,!Le)return;function Be(Te,ye){var xe=ye?Te.cloneNode(!1):Te,Ee=Te.parentNode;if(Ee){var ie=Be(Ee,1),ce=Te.nextSibling;ie.appendChild(xe);for(var pe=ce;pe;pe=ce)ce=pe.nextSibling,ie.appendChild(pe)}return xe}for(var Ke=Be(Le.nextSibling,0),Pe;(Pe=Ke.parentNode)&&Pe.nodeType===1;)Ke=Pe;C.push(Ke)}for(var ee=0;ee<C.length;++ee)b(C[ee]);me===(me|0)&&C[0].setAttribute("value",me);var fe=e.createElement("ol");fe.className="linenums";for(var Me=Math.max(0,me-1|0)||0,ee=0,Oe=C.length;ee<Oe;++ee)n=C[ee],n.className="L"+(ee+Me)%10,n.firstChild||n.appendChild(e.createTextNode("\xA0")),fe.appendChild(n);W.appendChild(fe)}function ae(W){var me=/\bMSIE\s(\d+)/.exec(navigator.userAgent);me=me&&+me[1]<=8;var ge=/\n/g,Ae=W.sourceCode,I=Ae.length,e=0,n=W.spans,C=n.length,b=0,S=W.decorations,ee=S.length,fe=0;S[ee]=I;var Me,Oe;for(Oe=Me=0;Oe<ee;)S[Oe]!==S[Oe+2]?(S[Me++]=S[Oe++],S[Me++]=S[Oe++]):Oe+=2;for(ee=Me,Oe=Me=0;Oe<ee;){for(var Le=S[Oe],Be=S[Oe+1],Ke=Oe+2;Ke+2<=ee&&S[Ke+1]===Be;)Ke+=2;S[Me++]=Le,S[Me++]=Be,Oe=Ke}ee=S.length=Me;var Pe=W.sourceNode,Te="";Pe&&(Te=Pe.style.display,Pe.style.display="none");try{for(var ye=null;b<C;){var xe=n[b],Ee=n[b+2]||I,ie=S[fe+2]||I,Ke=Math.min(Ee,ie),ce=n[b+1],pe;if(ce.nodeType!==1&&(pe=Ae.substring(e,Ke))){me&&(pe=pe.replace(ge,"\r")),ce.nodeValue=pe;var le=ce.ownerDocument,Ce=le.createElement("span");Ce.className=S[fe+1];var Ie=ce.parentNode;Ie.replaceChild(Ce,ce),Ce.appendChild(ce),e<Ee&&(n[b+1]=ce=le.createTextNode(Ae.substring(Ke,Ee)),Ie.insertBefore(ce,Ce.nextSibling))}e=Ke,e>=Ee&&(b+=2),e>=ie&&(fe+=2)}}finally{Pe&&(Pe.style.display=Te)}}var _e={};function se(W,me){for(var ge=me.length;--ge>=0;){var Ae=me[ge];_e.hasOwnProperty(Ae)?d.console&&console.warn("cannot override language handler %s",Ae):_e[Ae]=W}}function ve(W,me){return W&&_e.hasOwnProperty(W)||(W=/^\s*</.test(me)?"default-markup":"default-code"),_e[W]}se(K,["default-code"]),se(U([],[[z,/^[^<?]+/],[P,/^<!\w[^>]*(?:>|$)/],[y,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[_,/^(?:<[%?]|[%?]>)/],["lang-",/^<xmp\b[^>]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^<script\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^<style\b[^>]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),se(U([[z,/^[\s]+/,null,` \r
`],[Z,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[M,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[$,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[_,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),se(U([],[[Z,/^[\s\S]+/]]),["uq.val"]),se(H({keywords:o,hashComments:!0,cStyleComments:!0,types:x}),["c","cc","cpp","cxx","cyc","m"]),se(H({keywords:"null,true,false"}),["json"]),se(H({keywords:a,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:x}),["cs"]),se(H({keywords:t,cStyleComments:!0}),["java"]),se(H({keywords:A,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),se(H({keywords:u,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),se(H({keywords:v,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),se(H({keywords:w,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),se(H({keywords:f,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),se(H({keywords:l,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),se(U([],[[k,/^[\s\S]+/]]),["regex"]);function te(W){var me=W.langExtension;try{var ge=ue(W.sourceNode,W.pre),Ae=ge.sourceCode;W.sourceCode=Ae,W.spans=ge.spans,W.basePos=0,ve(me,Ae)(W),ae(W)}catch(I){d.console&&console.log(I&&I.stack||I)}}function J(W,me,ge){var Ae=ge||!1,I=me||null,e=document.createElement("div");e.innerHTML="<pre>"+W+"</pre>",e=e.firstChild,Ae&&be(e,Ae,!0);var n={langExtension:I,numberLines:Ae,sourceNode:e,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return te(n),e.innerHTML}function q(W,me){var ge=me||document.body,Ae=ge.ownerDocument||document;function I(xe){return ge.getElementsByTagName(xe)}for(var e=[I("pre"),I("code"),I("xmp")],n=[],C=0;C<e.length;++C)for(var b=0,S=e[C].length;b<S;++b)n.push(e[C][b]);e=null;var ee=Date;ee.now||(ee={now:function(){return+new Date}});var fe=0,Me=/\blang(?:uage)?-([\w.]+)(?!\S)/,Oe=/\bprettyprint\b/,Le=/\bprettyprinted\b/,Be=/pre|xmp/i,Ke=/^code$/i,Pe=/^(?:pre|code|xmp)$/i,Te={};function ye(){for(var xe=d.PR_SHOULD_USE_CONTINUATION?ee.now()+250:Infinity;fe<n.length&&ee.now()<xe;fe++){for(var Ee=n[fe],ie=Te,ce=Ee;ce=ce.previousSibling;){var pe=ce.nodeType,le=(pe===7||pe===8)&&ce.nodeValue;if(le?!/^\??prettify\b/.test(le):pe!==3||/\S/.test(ce.nodeValue))break;if(le){ie={},le.replace(/\b(\w+)=([\w:.%+-]+)/g,function(ut,nt,ft){ie[nt]=ft});break}}var Ce=Ee.className;if((ie!==Te||Oe.test(Ce))&&!Le.test(Ce)){for(var Ie=!1,qe=Ee.parentNode;qe;qe=qe.parentNode){var lt=qe.tagName;if(Pe.test(lt)&&qe.className&&Oe.test(qe.className)){Ie=!0;break}}if(!Ie){Ee.className+=" prettyprinted";var mt=ie.lang;if(!mt){mt=Ce.match(Me);var dt;!mt&&(dt=T(Ee))&&Ke.test(dt.tagName)&&(mt=dt.className.match(Me)),mt&&(mt=mt[1])}var ct;if(Be.test(Ee.tagName))ct=1;else{var Ye=Ee.currentStyle,He=Ae.defaultView,Xe=Ye?Ye.whiteSpace:He&&He.getComputedStyle?He.getComputedStyle(Ee,null).getPropertyValue("white-space"):0;ct=Xe&&Xe.substring(0,3)==="pre"}var Ge=ie.linenums;(Ge=Ge==="true"||+Ge)||(Ge=Ce.match(/\blinenums\b(?::(\d+))?/),Ge=Ge?Ge[1]&&Ge[1].length?+Ge[1]:!0:!1),Ge&&be(Ee,Ge,ct);var at={langExtension:mt,sourceNode:Ee,numberLines:Ge,pre:ct,sourceCode:null,basePos:null,spans:null,decorations:null};te(at)}}}fe<n.length?d.setTimeout(ye,250):typeof W=="function"&&W()}ye()}var he=d.PR={createSimpleLexer:U,registerLangHandler:se,sourceDecorator:H,PR_ATTRIB_NAME:$,PR_ATTRIB_VALUE:Z,PR_COMMENT:y,PR_DECLARATION:P,PR_KEYWORD:g,PR_LITERAL:L,PR_NOCODE:Q,PR_PLAIN:z,PR_PUNCTUATION:_,PR_SOURCE:F,PR_STRING:k,PR_TAG:M,PR_TYPE:j,prettyPrintOne:Re?d.prettyPrintOne=J:p=J,prettyPrint:c=Re?d.prettyPrint=q:c=q},Y=d.define;typeof Y=="function"&&Y.amd&&Y("google-code-prettify",[],function(){return he})})()},WdTA:function(rt,Ze,de){rt.exports=de.p+"static/studnetqun.598eeb43.png"},Y1PL:function(rt,Ze,de){"use strict";de.r(Ze),de.d(Ze,"ResizableTextArea",function(){return T});var ke=de("wx14"),De=de("1OyB"),Re=de("vuIU"),r=de("Ji7U"),O=de("LK+K"),p=de("q1tI"),c=de("VTBJ"),d=de("rePB"),s=de("Zm9Q"),i=de("Kwbf"),h=de("c+Xe"),o=de("m+aA"),t=de("bdgK"),a=new Map;function l(K){K.forEach(function(be){var ae,_e=be.target;(ae=a.get(_e))===null||ae===void 0||ae.forEach(function(se){return se(_e)})})}var f=new t.default(l),v=null,u=null;function w(K,be){a.has(K)||(a.set(K,new Set),f.observe(K)),a.get(K).add(be)}function A(K,be){a.has(K)&&(a.get(K).delete(be),a.get(K).size||(f.unobserve(K),a.delete(K)))}var E=function(K){Object(r.a)(ae,K);var be=Object(O.a)(ae);function ae(){return Object(De.a)(this,ae),be.apply(this,arguments)}return Object(Re.a)(ae,[{key:"render",value:function(){return this.props.children}}]),ae}(p.Component),x=p.createContext(null);function k(K){var be=K.children,ae=K.onBatchResize,_e=p.useRef(0),se=p.useRef([]),ve=p.useContext(x),te=p.useCallback(function(J,q,he){_e.current+=1;var Y=_e.current;se.current.push({size:J,element:q,data:he}),Promise.resolve().then(function(){Y===_e.current&&(ae==null||ae(se.current),se.current=[])}),ve==null||ve(J,q,he)},[ae,ve]);return p.createElement(x.Provider,{value:te},be)}function g(K){var be=K.children,ae=K.disabled,_e=p.useRef(null),se=p.useRef(null),ve=p.useContext(x),te=p.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),J=p.isValidElement(be)&&Object(h.c)(be),q=J?be.ref:null,he=p.useMemo(function(){return Object(h.a)(q,_e)},[q,_e]),Y=p.useRef(K);Y.current=K;var W=p.useCallback(function(me){var ge=Y.current,Ae=ge.onResize,I=ge.data,e=me.getBoundingClientRect(),n=e.width,C=e.height,b=me.offsetWidth,S=me.offsetHeight,ee=Math.floor(n),fe=Math.floor(C);if(te.current.width!==ee||te.current.height!==fe||te.current.offsetWidth!==b||te.current.offsetHeight!==S){var Me={width:ee,height:fe,offsetWidth:b,offsetHeight:S};te.current=Me;var Oe=b===Math.round(n)?n:b,Le=S===Math.round(C)?C:S,Be=Object(c.a)(Object(c.a)({},Me),{},{offsetWidth:Oe,offsetHeight:Le});ve==null||ve(Be,me,I),Ae&&Promise.resolve().then(function(){Ae(Be,me)})}},[]);return p.useEffect(function(){var me=Object(o.a)(_e.current)||Object(o.a)(se.current);return me&&!ae&&w(me,W),function(){return A(me,W)}},[_e.current,ae]),p.createElement(E,{ref:se},J?p.cloneElement(be,{ref:he}):be)}var y="rc-observer-key";function j(K){var be=K.children,ae=Object(s.a)(be);return ae.map(function(_e,se){var ve=(_e==null?void 0:_e.key)||"".concat(y,"-").concat(se);return p.createElement(g,Object(ke.a)({},K,{key:ve}),_e)})}j.Collection=k;var L=j,_=de("bT9E"),z=de("TSYQ"),M=de.n(z),P=`
min-height:0 !important;
max-height:none !important;
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important
`,F=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],$={},Z;function Q(K){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ae=K.getAttribute("id")||K.getAttribute("data-reactid")||K.getAttribute("name");if(be&&$[ae])return $[ae];var _e=window.getComputedStyle(K),se=_e.getPropertyValue("box-sizing")||_e.getPropertyValue("-moz-box-sizing")||_e.getPropertyValue("-webkit-box-sizing"),ve=parseFloat(_e.getPropertyValue("padding-bottom"))+parseFloat(_e.getPropertyValue("padding-top")),te=parseFloat(_e.getPropertyValue("border-bottom-width"))+parseFloat(_e.getPropertyValue("border-top-width")),J=F.map(function(he){return"".concat(he,":").concat(_e.getPropertyValue(he))}).join(";"),q={sizingStyle:J,paddingSize:ve,borderSize:te,boxSizing:se};return be&&ae&&($[ae]=q),q}function re(K){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ae=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,_e=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Z||(Z=document.createElement("textarea"),Z.setAttribute("tab-index","-1"),Z.setAttribute("aria-hidden","true"),document.body.appendChild(Z)),K.getAttribute("wrap")?Z.setAttribute("wrap",K.getAttribute("wrap")):Z.removeAttribute("wrap");var se=Q(K,be),ve=se.paddingSize,te=se.borderSize,J=se.boxSizing,q=se.sizingStyle;Z.setAttribute("style","".concat(q,";").concat(P)),Z.value=K.value||K.placeholder||"";var he=Number.MIN_SAFE_INTEGER,Y=Number.MAX_SAFE_INTEGER,W=Z.scrollHeight,me;if(J==="border-box"?W+=te:J==="content-box"&&(W-=ve),ae!==null||_e!==null){Z.value=" ";var ge=Z.scrollHeight-ve;ae!==null&&(he=ge*ae,J==="border-box"&&(he=he+ve+te),W=Math.max(he,W)),_e!==null&&(Y=ge*_e,J==="border-box"&&(Y=Y+ve+te),me=W>Y?"":"hidden",W=Math.min(Y,W))}return{height:W,minHeight:he,maxHeight:Y,overflowY:me,resize:"none"}}var N=de("Gytx"),ue=de.n(N),G;(function(K){K[K.NONE=0]="NONE",K[K.RESIZING=1]="RESIZING",K[K.RESIZED=2]="RESIZED"})(G||(G={}));var V=function(K){Object(r.a)(ae,K);var be=Object(O.a)(ae);function ae(_e){var se;return Object(De.a)(this,ae),se=be.call(this,_e),se.nextFrameActionId=void 0,se.resizeFrameId=void 0,se.textArea=void 0,se.saveTextArea=function(ve){se.textArea=ve},se.handleResize=function(ve){var te=se.state.resizeStatus,J=se.props,q=J.autoSize,he=J.onResize;if(te!==G.NONE)return;typeof he=="function"&&he(ve),q&&se.resizeOnNextFrame()},se.resizeOnNextFrame=function(){cancelAnimationFrame(se.nextFrameActionId),se.nextFrameActionId=requestAnimationFrame(se.resizeTextarea)},se.resizeTextarea=function(){var ve=se.props.autoSize;if(!ve||!se.textArea)return;var te=ve.minRows,J=ve.maxRows,q=re(se.textArea,!1,te,J);se.setState({textareaStyles:q,resizeStatus:G.RESIZING},function(){cancelAnimationFrame(se.resizeFrameId),se.resizeFrameId=requestAnimationFrame(function(){se.setState({resizeStatus:G.RESIZED},function(){se.resizeFrameId=requestAnimationFrame(function(){se.setState({resizeStatus:G.NONE}),se.fixFirefoxAutoScroll()})})})})},se.renderTextArea=function(){var ve=se.props,te=ve.prefixCls,J=te===void 0?"rc-textarea":te,q=ve.autoSize,he=ve.onResize,Y=ve.className,W=ve.disabled,me=se.state,ge=me.textareaStyles,Ae=me.resizeStatus,I=Object(_.a)(se.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),e=M()(J,Y,Object(d.a)({},"".concat(J,"-disabled"),W));"value"in I&&(I.value=I.value||"");var n=Object(c.a)(Object(c.a)(Object(c.a)({},se.props.style),ge),Ae===G.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return p.createElement(L,{onResize:se.handleResize,disabled:!(q||he)},p.createElement("textarea",Object(ke.a)({},I,{className:e,style:n,ref:se.saveTextArea})))},se.state={textareaStyles:{},resizeStatus:G.NONE},se}return Object(Re.a)(ae,[{key:"componentDidUpdate",value:function(se){(se.value!==this.props.value||!ue()(se.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var se=this.textArea.selectionStart,ve=this.textArea.selectionEnd;this.textArea.setSelectionRange(se,ve)}}catch(te){}}},{key:"render",value:function(){return this.renderTextArea()}}]),ae}(p.Component),T=V,U=function(K){Object(r.a)(ae,K);var be=Object(O.a)(ae);function ae(_e){var se;Object(De.a)(this,ae),se=be.call(this,_e),se.resizableTextArea=void 0,se.focus=function(){se.resizableTextArea.textArea.focus()},se.saveTextArea=function(te){se.resizableTextArea=te},se.handleChange=function(te){var J=se.props.onChange;se.setValue(te.target.value,function(){se.resizableTextArea.resizeTextarea()}),J&&J(te)},se.handleKeyDown=function(te){var J=se.props,q=J.onPressEnter,he=J.onKeyDown;te.keyCode===13&&q&&q(te),he&&he(te)};var ve=typeof _e.value=="undefined"||_e.value===null?_e.defaultValue:_e.value;return se.state={value:ve},se}return Object(Re.a)(ae,[{key:"setValue",value:function(se,ve){"value"in this.props||this.setState({value:se},ve)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return p.createElement(T,Object(ke.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(se){return"value"in se?{value:se.value}:null}}]),ae}(p.Component),H=Ze.default=U},ZW9T:function(rt,Ze,de){"use strict";de.d(Ze,"a",function(){return E});var ke=de("k1fw"),De=de("miYZ"),Re=de("tsqr"),r=de("rAM+"),O=de("tJVT"),p=de("PpiC"),c=de("q1tI"),d=de.n(c),s=de("bdgK");function i(x,k,g,y,j){var L=k.getWordUntilPosition(g),_={startLineNumber:g.lineNumber,endLineNumber:g.lineNumber,startColumn:L.startColumn,endColumn:L.endColumn},z=y.map(function(M){return{label:M,kind:x.languages.CompletionItemKind.Keyword,insertText:M,insertTextRules:x.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:_}});return j.map(function(M){z.push(Object(ke.a)(Object(ke.a)({},M),{},{range:_}))}),z}var h=function(x){var k={label:"ifelse",kind:x.languages.CompletionItemKind.Method,insertText:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
`),insertTextRules:x.languages.CompletionItemInsertTextRule.InsertAsSnippet},g=["auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while","inline","restrict","_Bool","_Complex","_Imaginary","_Alignas","_Alignof","_Atomic","_Static_assert","_Noreturn","_Thread_local","_Generic"];x.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(_,z){var M=i(x,_,z,g,[k]);return{suggestions:M}}});var y=["False","None","True","and","as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","nonlocal","not","or","pass","raise","return","try","while","with","yield"];x.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(_,z){var M=[{label:"print",kind:x.languages.CompletionItemKind.Snippet,insertText:["print($0)"].join(`
`),insertTextRules:x.languages.CompletionItemInsertTextRule.InsertAsSnippet}],P=i(x,_,z,y,M);return{suggestions:P}}});var j=["abstract","assert","boolean","break","byte","case","catch","char","class","const","continue","default","do","double","else","enum","extends","final","finally","float","for","goto","if","implements","import","instance of","int","interface","long","native","new","package","private","protected","public","return","strictfp","short","static","super","switch","synchronized","this","throw","throws","transient","try","void","volatile","while"];x.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(_,z){var M=[k,{label:"main",kind:x.languages.CompletionItemKind.Snippet,insertText:["public static void main(String[] args) {"," $0","}"].join(`
`),insertTextRules:x.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"System.out.print",kind:x.languages.CompletionItemKind.Snippet,insertText:["System.out.print($0)"].join(`
`),insertTextRules:x.languages.CompletionItemInsertTextRule.InsertAsSnippet}],P=i(x,_,z,j,M);return{suggestions:P}}})},o="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002",t=de("LvDl");function a(x){return/^\d+$/.test(x)?"".concat(x,"px"):x}function l(){}var f=!1,v={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python"};function u(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],k=x;if(Array.isArray(x)){for(var g=0;g<x.length;g++){var y=v[x[g]];if(y)return y}return k[0]}return v[k]||k}var w=null,A=Ze.b=function(x){var k=x.width,g=k===void 0?"100%":k,y=x.height,j=y===void 0?"100%":y,L=x.value,_=x.language,z=_===void 0?"javascript":_,M=x.style,P=M===void 0?{}:M,F=x.options,$=F===void 0?{}:F,Z=x.overrideServices,Q=Z===void 0?{}:Z,re=x.theme,N=re===void 0?"vs-dark":re,ue=x.onEditBlur,G=x.onSave,V=x.autoHeight,T=V===void 0?!1:V,U=x.forbidCopy,H=U===void 0?!1:U,K=x.onChange,be=K===void 0?l:K,ae=x.editorDidMount,_e=ae===void 0?l:ae,se=x.onFocus,ve=se===void 0?l:se,te=x.filename,J=te===void 0?"educoder.txt":te,q=Object(p.a)(x,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","filename"]),he=Object(c.useRef)(),Y=Object(c.useRef)({}),W=Object(c.useRef)(),me=Object(c.useRef)(!1),ge=Object(c.useRef)(),Ae=Object(c.useState)(!1),I=Object(O.a)(Ae,2),e=I[0],n=I[1];function C(){var pe;return he.current&&(pe=new s.default(function(le){var Ce=Object(r.a)(le),Ie;try{for(Ce.s();!(Ie=Ce.n()).done;){var qe=Ie.value;(qe.target.offsetHeight>0||qe.target.offsetWidth>0)&&Y.current.instance.layout()}}catch(lt){Ce.e(lt)}finally{Ce.f()}}),pe.observe(he.current)),pe}function b(){Re.b.warn(decodeURIComponent(o))}var S=function(){var le=Y.current.instance;if(L!=null&&le&&e){var Ce=le.getModel();Ce&&L!==Ce.getValue()&&(f=!0,Ce.setValue(L),le.layout(),f=!1)}};Object(c.useEffect)(function(){W.current&&clearTimeout(W.current),W.current=setTimeout(function(){S()},500)},[L,e,Y.current]);function ee(){var pe=Y.current.instance;if(pe){var le=pe.getSelection(),Ce=Y.current.pastePos||{},Ie=new w.Range(Ce.startLineNumber||le.endLineNumber,Ce.startColumn||le.endColumn,Ce.endLineNumber||le.endLineNumber,Ce.endColumn||le.endColumn);setTimeout(function(){pe.executeEdits("",[{range:Ie,text:""}])},300)}}function fe(pe){(window.navigator.platform.match("Mac")?pe.metaKey:pe.ctrlKey)&&pe.keyCode==83&&(pe.preventDefault(),G())}var Me=function(){if(T&&Y.current.instance){var le=Y.current.instance.getContentHeight();ie(le<j?j:le)}else ie(j)};function Oe(pe){var le=document.createEvent("MouseEvents");le.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),pe.dispatchEvent(le)}function Le(pe,le){var Ce=window.URL||window.webkitURL||window,Ie=new Blob([le]),qe=document.createElementNS("http://www.w3.org/1999/xhtml","a");qe.href=Ce.createObjectURL(Ie),qe.download=pe,Oe(qe)}Object(c.useEffect)(function(){Me()},[Me]),Object(c.useEffect)(function(){he.current&&!e&&de.e(27).then(de.t.bind(null,"M/lh",7)).then(function(pe){try{w=pe,Y.current.instance=w.editor.create(he.current,{value:L,language:u(z),theme:N,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0},Q);var le=Y.current.instance;if(_e(le,w),setTimeout(function(){Me(),Y.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:function(){Le(J||"educoder.txt",le.getValue())}})},500),Y.current.subscription=le.onDidChangeModelContent(function(Ie){me.current?clearTimeout(ge.current):(Me(),be(le.getValue(),Ie)),ge.current=setTimeout(function(){me.current=!1},500)}),window.Monaco||h(w),H&&(le.addCommand(w.KeyMod.CtrlCmd|w.KeyMod.Shift|w.KeyCode.KEY_V,function(){return b(),null}),le.addCommand(w.KeyMod.CtrlCmd|w.KeyCode.KEY_C,function(){return b(),null})),window.Monaco=w,ue&&le.onDidBlurEditorWidget(function(){ue(le.getValue())}),ve&&le.onDidFocusEditorText(function(){ve(le.getValue())}),H){le.addCommand(w.KeyMod.CtrlCmd|w.KeyCode.KEY_V,function(){return b(),null}),le.onDidPaste(function(Ie){Y.current.pastePos=Ie});try{window.addEventListener("paste",ee)}catch(Ie){}}var Ce=C();return n(!0),function(){var Ie=Y.current.instance;Ie.dispose();var qe=Ie.getModel();qe&&qe.dispose(),Y.current.subscription&&Y.current.subscription.dispose(),H&&window.removeEventListener("paste",ee),Ce.unobserve(he.current)}}catch(Ie){}})},[]),Object(c.useEffect)(function(){var pe=Y.current.instance;if(pe&&e)return document.addEventListener("keydown",fe,!1),function(){document.removeEventListener("keydown",fe)}},[G,e]),Object(c.useEffect)(function(){var pe=Y.current.instance;if(pe&&e){var le=u(z);w.editor.setModelLanguage(pe.getModel(),le),console.log("language:",z,pe.getModel(),le)}},[z,e]),Object(c.useEffect)(function(){var pe=Y.current.instance;pe&&e&&w.editor.setTheme(N)},[N,e]),Object(c.useEffect)(function(){var pe=Y.current.instance;pe&&e&&(pe.updateOptions(Object(ke.a)({},$)),setTimeout(function(){pe.getModel().updateOptions(Object(ke.a)({},$))},200))},[JSON.stringify($),e]),Object(c.useEffect)(function(){var pe=Y.current.instance;pe&&e&&pe.layout()},[g,j,e]);var Be=Object(c.useState)(a(g)),Ke=Object(O.a)(Be,2),Pe=Ke[0],Te=Ke[1],ye=Object(c.useState)(a(j)),xe=Object(O.a)(ye,2),Ee=xe[0],ie=xe[1],ce=Object(ke.a)(Object(ke.a)({},P),{},{width:Pe,height:Ee});return d.a.createElement("div",{className:"my-monaco-editor",ref:he,style:ce})};function E(x){var k=x.width,g=k===void 0?"100%":k,y=x.height,j=y===void 0?"100%":y,L=x.original,_=x.modified,z=x.language,M=x.options,P=M===void 0?{}:M,F=Object(c.useRef)(),$=Object(c.useState)(null),Z=Object(O.a)($,2),Q=Z[0],re=Z[1];function N(T){var U;return F.current&&(U=new s.default(function(H){var K=Object(r.a)(H),be;try{for(K.s();!(be=K.n()).done;){var ae=be.value;(ae.target.offsetHeight>0||ae.target.offsetWidth>0)&&T.layout()}}catch(_e){K.e(_e)}finally{K.f()}}),U.observe(F.current)),U}Object(c.useEffect)(function(){F.current&&de.e(27).then(de.t.bind(null,"M/lh",7)).then(function(T){w=T;var U=w.editor.createDiffEditor(F.current,Object(ke.a)(Object(ke.a)({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",ignoreTrimWhitespace:!1,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},P),{},{wordWrap:!0}));re(U);var H=N(U);return function(){U.dispose();var K=U.getModel();K&&K.dispose(),H.unobserve(F.current)}})},[]),Object(c.useEffect)(function(){Q&&Q.setModel({original:w.editor.createModel(L,z),modified:w.editor.createModel(_,z)})},[L,_,z,Q]);var ue=a(g),G=a(j),V={width:ue,height:G};return d.a.createElement("div",{className:"my-diff-editor",ref:F,style:V})}},ZpRC:function(rt,Ze,de){"use strict";function ke(h){return typeof h=="object"&&h!=null&&h.nodeType===1}function De(h,o){return(!o||h!=="hidden")&&h!=="visible"&&h!=="clip"}function Re(h,o){if(h.clientHeight<h.scrollHeight||h.clientWidth<h.scrollWidth){var t=getComputedStyle(h,null);return De(t.overflowY,o)||De(t.overflowX,o)||function(a){var l=function(f){if(!f.ownerDocument||!f.ownerDocument.defaultView)return null;try{return f.ownerDocument.defaultView.frameElement}catch(v){return null}}(a);return!!l&&(l.clientHeight<a.scrollHeight||l.clientWidth<a.scrollWidth)}(h)}return!1}function r(h,o,t,a,l,f,v,u){return f<h&&v>o||f>h&&v<o?0:f<=h&&u<=t||v>=o&&u>=t?f-h-a:v>o&&u<t||f<h&&u>t?v-o+l:0}var O=function(h,o){var t=window,a=o.scrollMode,l=o.block,f=o.inline,v=o.boundary,u=o.skipOverflowHiddenElements,w=typeof v=="function"?v:function(ge){return ge!==v};if(!ke(h))throw new TypeError("Invalid target");for(var A=document.scrollingElement||document.documentElement,E=[],x=h;ke(x)&&w(x);){if((x=x.parentElement)===A){E.push(x);break}x!=null&&x===document.body&&Re(x)&&!Re(document.documentElement)||x!=null&&Re(x,u)&&E.push(x)}for(var k=t.visualViewport?t.visualViewport.width:innerWidth,g=t.visualViewport?t.visualViewport.height:innerHeight,y=window.scrollX||pageXOffset,j=window.scrollY||pageYOffset,L=h.getBoundingClientRect(),_=L.height,z=L.width,M=L.top,P=L.right,F=L.bottom,$=L.left,Z=l==="start"||l==="nearest"?M:l==="end"?F:M+_/2,Q=f==="center"?$+z/2:f==="end"?P:$,re=[],N=0;N<E.length;N++){var ue=E[N],G=ue.getBoundingClientRect(),V=G.height,T=G.width,U=G.top,H=G.right,K=G.bottom,be=G.left;if(a==="if-needed"&&M>=0&&$>=0&&F<=g&&P<=k&&M>=U&&F<=K&&$>=be&&P<=H)return re;var ae=getComputedStyle(ue),_e=parseInt(ae.borderLeftWidth,10),se=parseInt(ae.borderTopWidth,10),ve=parseInt(ae.borderRightWidth,10),te=parseInt(ae.borderBottomWidth,10),J=0,q=0,he="offsetWidth"in ue?ue.offsetWidth-ue.clientWidth-_e-ve:0,Y="offsetHeight"in ue?ue.offsetHeight-ue.clientHeight-se-te:0;if(A===ue)J=l==="start"?Z:l==="end"?Z-g:l==="nearest"?r(j,j+g,g,se,te,j+Z,j+Z+_,_):Z-g/2,q=f==="start"?Q:f==="center"?Q-k/2:f==="end"?Q-k:r(y,y+k,k,_e,ve,y+Q,y+Q+z,z),J=Math.max(0,J+j),q=Math.max(0,q+y);else{J=l==="start"?Z-U-se:l==="end"?Z-K+te+Y:l==="nearest"?r(U,K,V,se,te+Y,Z,Z+_,_):Z-(U+V/2)+Y/2,q=f==="start"?Q-be-_e:f==="center"?Q-(be+T/2)+he/2:f==="end"?Q-H+ve+he:r(be,H,T,_e,ve+he,Q,Q+z,z);var W=ue.scrollLeft,me=ue.scrollTop;Z+=me-(J=Math.max(0,Math.min(me+J,ue.scrollHeight-V+Y))),Q+=W-(q=Math.max(0,Math.min(W+q,ue.scrollWidth-T+he)))}re.push({el:ue,top:J,left:q})}return re};function p(h){return h===Object(h)&&Object.keys(h).length!==0}function c(h,o){o===void 0&&(o="auto");var t="scrollBehavior"in document.body.style;h.forEach(function(a){var l=a.el,f=a.top,v=a.left;l.scroll&&t?l.scroll({top:f,left:v,behavior:o}):(l.scrollTop=f,l.scrollLeft=v)})}function d(h){return h===!1?{block:"end",inline:"nearest"}:p(h)?h:{block:"start",inline:"nearest"}}function s(h,o){var t=!h.ownerDocument.documentElement.contains(h);if(p(o)&&typeof o.behavior=="function")return o.behavior(t?[]:O(h,o));if(t)return;var a=d(o);return c(O(h,a),a.behavior)}var i=Ze.a=s},Zss7:function(rt,Ze,de){var ke;(function(De){var Re=/^\s+/,r=/\s+$/,O=0,p=De.round,c=De.min,d=De.max,s=De.random;function i(te,J){if(te=te||"",J=J||{},te instanceof i)return te;if(!(this instanceof i))return new i(te,J);var q=h(te);this._originalInput=te,this._r=q.r,this._g=q.g,this._b=q.b,this._a=q.a,this._roundA=p(100*this._a)/100,this._format=J.format||q.format,this._gradientType=J.gradientType,this._r<1&&(this._r=p(this._r)),this._g<1&&(this._g=p(this._g)),this._b<1&&(this._b=p(this._b)),this._ok=q.ok,this._tc_id=O++}i.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var te=this.toRgb();return(te.r*299+te.g*587+te.b*114)/1e3},getLuminance:function(){var te=this.toRgb(),J,q,he,Y,W,me;return J=te.r/255,q=te.g/255,he=te.b/255,J<=.03928?Y=J/12.92:Y=De.pow((J+.055)/1.055,2.4),q<=.03928?W=q/12.92:W=De.pow((q+.055)/1.055,2.4),he<=.03928?me=he/12.92:me=De.pow((he+.055)/1.055,2.4),.2126*Y+.7152*W+.0722*me},setAlpha:function(te){return this._a=re(te),this._roundA=p(100*this._a)/100,this},toHsv:function(){var te=l(this._r,this._g,this._b);return{h:te.h*360,s:te.s,v:te.v,a:this._a}},toHsvString:function(){var te=l(this._r,this._g,this._b),J=p(te.h*360),q=p(te.s*100),he=p(te.v*100);return this._a==1?"hsv("+J+", "+q+"%, "+he+"%)":"hsva("+J+", "+q+"%, "+he+"%, "+this._roundA+")"},toHsl:function(){var te=t(this._r,this._g,this._b);return{h:te.h*360,s:te.s,l:te.l,a:this._a}},toHslString:function(){var te=t(this._r,this._g,this._b),J=p(te.h*360),q=p(te.s*100),he=p(te.l*100);return this._a==1?"hsl("+J+", "+q+"%, "+he+"%)":"hsla("+J+", "+q+"%, "+he+"%, "+this._roundA+")"},toHex:function(te){return v(this._r,this._g,this._b,te)},toHexString:function(te){return"#"+this.toHex(te)},toHex8:function(te){return u(this._r,this._g,this._b,this._a,te)},toHex8String:function(te){return"#"+this.toHex8(te)},toRgb:function(){return{r:p(this._r),g:p(this._g),b:p(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+p(this._r)+", "+p(this._g)+", "+p(this._b)+")":"rgba("+p(this._r)+", "+p(this._g)+", "+p(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:p(N(this._r,255)*100)+"%",g:p(N(this._g,255)*100)+"%",b:p(N(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+p(N(this._r,255)*100)+"%, "+p(N(this._g,255)*100)+"%, "+p(N(this._b,255)*100)+"%)":"rgba("+p(N(this._r,255)*100)+"%, "+p(N(this._g,255)*100)+"%, "+p(N(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Z[v(this._r,this._g,this._b,!0)]||!1},toFilter:function(te){var J="#"+w(this._r,this._g,this._b,this._a),q=J,he=this._gradientType?"GradientType = 1, ":"";if(te){var Y=i(te);q="#"+w(Y._r,Y._g,Y._b,Y._a)}return"progid:DXImageTransform.Microsoft.gradient("+he+"startColorstr="+J+",endColorstr="+q+")"},toString:function(te){var J=!!te;te=te||this._format;var q=!1,he=this._a<1&&this._a>=0,Y=!J&&he&&(te==="hex"||te==="hex6"||te==="hex3"||te==="hex4"||te==="hex8"||te==="name");return Y?te==="name"&&this._a===0?this.toName():this.toRgbString():(te==="rgb"&&(q=this.toRgbString()),te==="prgb"&&(q=this.toPercentageRgbString()),(te==="hex"||te==="hex6")&&(q=this.toHexString()),te==="hex3"&&(q=this.toHexString(!0)),te==="hex4"&&(q=this.toHex8String(!0)),te==="hex8"&&(q=this.toHex8String()),te==="name"&&(q=this.toName()),te==="hsl"&&(q=this.toHslString()),te==="hsv"&&(q=this.toHsvString()),q||this.toHexString())},clone:function(){return i(this.toString())},_applyModification:function(te,J){var q=te.apply(null,[this].concat([].slice.call(J)));return this._r=q._r,this._g=q._g,this._b=q._b,this.setAlpha(q._a),this},lighten:function(){return this._applyModification(k,arguments)},brighten:function(){return this._applyModification(g,arguments)},darken:function(){return this._applyModification(y,arguments)},desaturate:function(){return this._applyModification(A,arguments)},saturate:function(){return this._applyModification(E,arguments)},greyscale:function(){return this._applyModification(x,arguments)},spin:function(){return this._applyModification(j,arguments)},_applyCombination:function(te,J){return te.apply(null,[this].concat([].slice.call(J)))},analogous:function(){return this._applyCombination(P,arguments)},complement:function(){return this._applyCombination(L,arguments)},monochromatic:function(){return this._applyCombination(F,arguments)},splitcomplement:function(){return this._applyCombination(M,arguments)},triad:function(){return this._applyCombination(_,arguments)},tetrad:function(){return this._applyCombination(z,arguments)}},i.fromRatio=function(te,J){if(typeof te=="object"){var q={};for(var he in te)te.hasOwnProperty(he)&&(he==="a"?q[he]=te[he]:q[he]=H(te[he]));te=q}return i(te,J)};function h(te){var J={r:0,g:0,b:0},q=1,he=null,Y=null,W=null,me=!1,ge=!1;return typeof te=="string"&&(te=se(te)),typeof te=="object"&&(_e(te.r)&&_e(te.g)&&_e(te.b)?(J=o(te.r,te.g,te.b),me=!0,ge=String(te.r).substr(-1)==="%"?"prgb":"rgb"):_e(te.h)&&_e(te.s)&&_e(te.v)?(he=H(te.s),Y=H(te.v),J=f(te.h,he,Y),me=!0,ge="hsv"):_e(te.h)&&_e(te.s)&&_e(te.l)&&(he=H(te.s),W=H(te.l),J=a(te.h,he,W),me=!0,ge="hsl"),te.hasOwnProperty("a")&&(q=te.a)),q=re(q),{ok:me,format:te.format||ge,r:c(255,d(J.r,0)),g:c(255,d(J.g,0)),b:c(255,d(J.b,0)),a:q}}function o(te,J,q){return{r:N(te,255)*255,g:N(J,255)*255,b:N(q,255)*255}}function t(te,J,q){te=N(te,255),J=N(J,255),q=N(q,255);var he=d(te,J,q),Y=c(te,J,q),W,me,ge=(he+Y)/2;if(he==Y)W=me=0;else{var Ae=he-Y;me=ge>.5?Ae/(2-he-Y):Ae/(he+Y);switch(he){case te:W=(J-q)/Ae+(J<q?6:0);break;case J:W=(q-te)/Ae+2;break;case q:W=(te-J)/Ae+4;break}W/=6}return{h:W,s:me,l:ge}}function a(te,J,q){var he,Y,W;te=N(te,360),J=N(J,100),q=N(q,100);function me(I,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?I+(e-I)*6*n:n<1/2?e:n<2/3?I+(e-I)*(2/3-n)*6:I}if(J===0)he=Y=W=q;else{var ge=q<.5?q*(1+J):q+J-q*J,Ae=2*q-ge;he=me(Ae,ge,te+1/3),Y=me(Ae,ge,te),W=me(Ae,ge,te-1/3)}return{r:he*255,g:Y*255,b:W*255}}function l(te,J,q){te=N(te,255),J=N(J,255),q=N(q,255);var he=d(te,J,q),Y=c(te,J,q),W,me,ge=he,Ae=he-Y;if(me=he===0?0:Ae/he,he==Y)W=0;else{switch(he){case te:W=(J-q)/Ae+(J<q?6:0);break;case J:W=(q-te)/Ae+2;break;case q:W=(te-J)/Ae+4;break}W/=6}return{h:W,s:me,v:ge}}function f(te,J,q){te=N(te,360)*6,J=N(J,100),q=N(q,100);var he=De.floor(te),Y=te-he,W=q*(1-J),me=q*(1-Y*J),ge=q*(1-(1-Y)*J),Ae=he%6,I=[q,me,W,W,ge,q][Ae],e=[ge,q,q,me,W,W][Ae],n=[W,W,ge,q,q,me][Ae];return{r:I*255,g:e*255,b:n*255}}function v(te,J,q,he){var Y=[U(p(te).toString(16)),U(p(J).toString(16)),U(p(q).toString(16))];return he&&Y[0].charAt(0)==Y[0].charAt(1)&&Y[1].charAt(0)==Y[1].charAt(1)&&Y[2].charAt(0)==Y[2].charAt(1)?Y[0].charAt(0)+Y[1].charAt(0)+Y[2].charAt(0):Y.join("")}function u(te,J,q,he,Y){var W=[U(p(te).toString(16)),U(p(J).toString(16)),U(p(q).toString(16)),U(K(he))];return Y&&W[0].charAt(0)==W[0].charAt(1)&&W[1].charAt(0)==W[1].charAt(1)&&W[2].charAt(0)==W[2].charAt(1)&&W[3].charAt(0)==W[3].charAt(1)?W[0].charAt(0)+W[1].charAt(0)+W[2].charAt(0)+W[3].charAt(0):W.join("")}function w(te,J,q,he){var Y=[U(K(he)),U(p(te).toString(16)),U(p(J).toString(16)),U(p(q).toString(16))];return Y.join("")}i.equals=function(te,J){return!te||!J?!1:i(te).toRgbString()==i(J).toRgbString()},i.random=function(){return i.fromRatio({r:s(),g:s(),b:s()})};function A(te,J){J=J===0?0:J||10;var q=i(te).toHsl();return q.s-=J/100,q.s=ue(q.s),i(q)}function E(te,J){J=J===0?0:J||10;var q=i(te).toHsl();return q.s+=J/100,q.s=ue(q.s),i(q)}function x(te){return i(te).desaturate(100)}function k(te,J){J=J===0?0:J||10;var q=i(te).toHsl();return q.l+=J/100,q.l=ue(q.l),i(q)}function g(te,J){J=J===0?0:J||10;var q=i(te).toRgb();return q.r=d(0,c(255,q.r-p(255*-(J/100)))),q.g=d(0,c(255,q.g-p(255*-(J/100)))),q.b=d(0,c(255,q.b-p(255*-(J/100)))),i(q)}function y(te,J){J=J===0?0:J||10;var q=i(te).toHsl();return q.l-=J/100,q.l=ue(q.l),i(q)}function j(te,J){var q=i(te).toHsl(),he=(q.h+J)%360;return q.h=he<0?360+he:he,i(q)}function L(te){var J=i(te).toHsl();return J.h=(J.h+180)%360,i(J)}function _(te){var J=i(te).toHsl(),q=J.h;return[i(te),i({h:(q+120)%360,s:J.s,l:J.l}),i({h:(q+240)%360,s:J.s,l:J.l})]}function z(te){var J=i(te).toHsl(),q=J.h;return[i(te),i({h:(q+90)%360,s:J.s,l:J.l}),i({h:(q+180)%360,s:J.s,l:J.l}),i({h:(q+270)%360,s:J.s,l:J.l})]}function M(te){var J=i(te).toHsl(),q=J.h;return[i(te),i({h:(q+72)%360,s:J.s,l:J.l}),i({h:(q+216)%360,s:J.s,l:J.l})]}function P(te,J,q){J=J||6,q=q||30;var he=i(te).toHsl(),Y=360/q,W=[i(te)];for(he.h=(he.h-(Y*J>>1)+720)%360;--J;)he.h=(he.h+Y)%360,W.push(i(he));return W}function F(te,J){J=J||6;for(var q=i(te).toHsv(),he=q.h,Y=q.s,W=q.v,me=[],ge=1/J;J--;)me.push(i({h:he,s:Y,v:W})),W=(W+ge)%1;return me}i.mix=function(te,J,q){q=q===0?0:q||50;var he=i(te).toRgb(),Y=i(J).toRgb(),W=q/100,me={r:(Y.r-he.r)*W+he.r,g:(Y.g-he.g)*W+he.g,b:(Y.b-he.b)*W+he.b,a:(Y.a-he.a)*W+he.a};return i(me)},i.readability=function(te,J){var q=i(te),he=i(J);return(De.max(q.getLuminance(),he.getLuminance())+.05)/(De.min(q.getLuminance(),he.getLuminance())+.05)},i.isReadable=function(te,J,q){var he=i.readability(te,J),Y,W;W=!1,Y=ve(q);switch(Y.level+Y.size){case"AAsmall":case"AAAlarge":W=he>=4.5;break;case"AAlarge":W=he>=3;break;case"AAAsmall":W=he>=7;break}return W},i.mostReadable=function(te,J,q){var he=null,Y=0,W,me,ge,Ae;q=q||{},me=q.includeFallbackColors,ge=q.level,Ae=q.size;for(var I=0;I<J.length;I++)W=i.readability(te,J[I]),W>Y&&(Y=W,he=i(J[I]));return i.isReadable(te,he,{level:ge,size:Ae})||!me?he:(q.includeFallbackColors=!1,i.mostReadable(te,["#fff","#000"],q))};var $=i.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Z=i.hexNames=Q($);function Q(te){var J={};for(var q in te)te.hasOwnProperty(q)&&(J[te[q]]=q);return J}function re(te){return te=parseFloat(te),(isNaN(te)||te<0||te>1)&&(te=1),te}function N(te,J){V(te)&&(te="100%");var q=T(te);return te=c(J,d(0,parseFloat(te))),q&&(te=parseInt(te*J,10)/100),De.abs(te-J)<1e-6?1:te%J/parseFloat(J)}function ue(te){return c(1,d(0,te))}function G(te){return parseInt(te,16)}function V(te){return typeof te=="string"&&te.indexOf(".")!=-1&&parseFloat(te)===1}function T(te){return typeof te=="string"&&te.indexOf("%")!=-1}function U(te){return te.length==1?"0"+te:""+te}function H(te){return te<=1&&(te=te*100+"%"),te}function K(te){return De.round(parseFloat(te)*255).toString(16)}function be(te){return G(te)/255}var ae=function(){var te="[-\\+]?\\d+%?",J="[-\\+]?\\d*\\.\\d+%?",q="(?:"+J+")|(?:"+te+")",he="[\\s|\\(]+("+q+")[,|\\s]+("+q+")[,|\\s]+("+q+")\\s*\\)?",Y="[\\s|\\(]+("+q+")[,|\\s]+("+q+")[,|\\s]+("+q+")[,|\\s]+("+q+")\\s*\\)?";return{CSS_UNIT:new RegExp(q),rgb:new RegExp("rgb"+he),rgba:new RegExp("rgba"+Y),hsl:new RegExp("hsl"+he),hsla:new RegExp("hsla"+Y),hsv:new RegExp("hsv"+he),hsva:new RegExp("hsva"+Y),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function _e(te){return!!ae.CSS_UNIT.exec(te)}function se(te){te=te.replace(Re,"").replace(r,"").toLowerCase();var J=!1;if($[te])te=$[te],J=!0;else if(te=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var q;return(q=ae.rgb.exec(te))?{r:q[1],g:q[2],b:q[3]}:(q=ae.rgba.exec(te))?{r:q[1],g:q[2],b:q[3],a:q[4]}:(q=ae.hsl.exec(te))?{h:q[1],s:q[2],l:q[3]}:(q=ae.hsla.exec(te))?{h:q[1],s:q[2],l:q[3],a:q[4]}:(q=ae.hsv.exec(te))?{h:q[1],s:q[2],v:q[3]}:(q=ae.hsva.exec(te))?{h:q[1],s:q[2],v:q[3],a:q[4]}:(q=ae.hex8.exec(te))?{r:G(q[1]),g:G(q[2]),b:G(q[3]),a:be(q[4]),format:J?"name":"hex8"}:(q=ae.hex6.exec(te))?{r:G(q[1]),g:G(q[2]),b:G(q[3]),format:J?"name":"hex"}:(q=ae.hex4.exec(te))?{r:G(q[1]+""+q[1]),g:G(q[2]+""+q[2]),b:G(q[3]+""+q[3]),a:be(q[4]+""+q[4]),format:J?"name":"hex8"}:(q=ae.hex3.exec(te))?{r:G(q[1]+""+q[1]),g:G(q[2]+""+q[2]),b:G(q[3]+""+q[3]),format:J?"name":"hex"}:!1}function ve(te){var J,q;return te=te||{level:"AA",size:"small"},J=(te.level||"AA").toUpperCase(),q=(te.size||"small").toLowerCase(),J!=="AA"&&J!=="AAA"&&(J="AA"),q!=="small"&&q!=="large"&&(q="small"),{level:J,size:q}}rt.exports?rt.exports=i:!(ke=function(){return i}.call(Ze,de,Ze,rt),ke!==void 0&&(rt.exports=ke))})(Math)},b57q:function(rt,Ze,de){rt.exports={officeContainer:"officeContainer___z7fd9"}},bT9E:function(rt,Ze,de){"use strict";de.d(Ze,"a",function(){return De});var ke=de("VTBJ");function De(Re,r){var O=Object(ke.a)({},Re);return Array.isArray(r)&&r.forEach(function(p){delete O[p]}),O}},eoI0:function(rt,Ze,de){rt.exports={selectSchool:"selectSchool___2Vrh7",delete:"delete___qM8Jm"}},"h/US":function(rt,Ze,de){"use strict";var ke=de("DZo9"),De=de("8z0m"),Re=de("+L6B"),r=de("2/Rp"),O=de("tJVT"),p=de("q1tI"),c=de.n(p),d=de("z7Xi"),s=de("jN4g"),i=de("m3rI"),h=de("w8Aa"),o=de.n(h),t=function(l){var f=l.value,v=l.onChange,u=l.getFileProgress,w=Object(p.useState)(!1),A=Object(O.a)(w,2),E=A[0],x=A[1],k=c.a.createElement(r.a,{loading:E,icon:c.a.createElement(d.a,null)},"\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6"),g=function(){return c.a.createElement("div",{className:o.a.img},c.a.createElement("img",{src:i.a.API_SERVER+"/api/attachments/"+f,alt:"avatar",style:{width:288}}),c.a.createElement("div",null,c.a.createElement(s.a,{onClick:function(){return v("")},style:{fontSize:"16px",color:"red"}})))},y=function(L){if(u&&u(L),L.file.status==="uploading"){x(!0);return}if(L.file.status==="done"){var _,z;x(!1),v(L==null||((_=L.file)===null||_===void 0||((z=_.response)===null||z===void 0))?void 0:z.id)}};return c.a.createElement(c.a.Fragment,null,f?g():c.a.createElement("div",null,c.a.createElement(De.a,{withCredentials:!0,name:"file",showUploadList:!1,action:"".concat(i.a.API_SERVER,"/api/attachments.json"),onChange:y,accept:"image/*"},k),c.a.createElement("div",{className:"mt20 c-light-black"},"\u8BF4\u660E\uFF1A\u652F\u6301\u4E0A\u4F20jpg/png\u7B49\u683C\u5F0F\u6587\u4EF6\uFF0C\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC72M,\u5EFA\u8BAE\u4F7F\u7528288*158\u50CF\u7D20\uFF1B"),c.a.createElement("div",{className:"c-light-black"},"\u5982\u4E0D\u4E0A\u4F20\uFF0C\u9ED8\u8BA4\u4F7F\u7528\u7CFB\u7EDF\u56FE\u7247\u3002")))};Ze.a=t},h78n:function(rt,Ze,de){"use strict";de.d(Ze,"a",function(){return F});var ke=de("q1tI"),De=de.n(ke),Re=de("TSYQ"),r=de.n(Re),O={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},p=function(Q){var re=Q.map(function(){return Object(ke.useRef)()}),N=Object(ke.useRef)();return Object(ke.useEffect)(function(){var ue=Date.now(),G=!1;Object.keys(re).forEach(function(V){var T=re[V].current;if(!T)return;G=!0;var U=T.style;U.transitionDuration=".3s, .3s, .3s, .06s",N.current&&ue-N.current<100&&(U.transitionDuration="0s, 0s")}),G&&(N.current=Date.now())}),[re]};function c(){return c=Object.assign||function(Z){for(var Q=1;Q<arguments.length;Q++){var re=arguments[Q];for(var N in re)Object.prototype.hasOwnProperty.call(re,N)&&(Z[N]=re[N])}return Z},c.apply(this,arguments)}function d(Z,Q){return t(Z)||o(Z,Q)||i(Z,Q)||s()}function s(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i(Z,Q){if(!Z)return;if(typeof Z=="string")return h(Z,Q);var re=Object.prototype.toString.call(Z).slice(8,-1);if(re==="Object"&&Z.constructor&&(re=Z.constructor.name),re==="Map"||re==="Set")return Array.from(Z);if(re==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(re))return h(Z,Q)}function h(Z,Q){(Q==null||Q>Z.length)&&(Q=Z.length);for(var re=0,N=new Array(Q);re<Q;re++)N[re]=Z[re];return N}function o(Z,Q){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(Z)))return;var re=[],N=!0,ue=!1,G=void 0;try{for(var V=Z[Symbol.iterator](),T;!(N=(T=V.next()).done)&&!(re.push(T.value),Q&&re.length===Q);N=!0);}catch(U){ue=!0,G=U}finally{try{!N&&V.return!=null&&V.return()}finally{if(ue)throw G}}return re}function t(Z){if(Array.isArray(Z))return Z}function a(Z,Q){if(Z==null)return{};var re=l(Z,Q),N,ue;if(Object.getOwnPropertySymbols){var G=Object.getOwnPropertySymbols(Z);for(ue=0;ue<G.length;ue++){if(N=G[ue],Q.indexOf(N)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(Z,N))continue;re[N]=Z[N]}}return re}function l(Z,Q){if(Z==null)return{};var re={},N=Object.keys(Z),ue,G;for(G=0;G<N.length;G++){if(ue=N[G],Q.indexOf(ue)>=0)continue;re[ue]=Z[ue]}return re}var f=function(Q){var re=Q.className,N=Q.percent,ue=Q.prefixCls,G=Q.strokeColor,V=Q.strokeLinecap,T=Q.strokeWidth,U=Q.style,H=Q.trailColor,K=Q.trailWidth,be=Q.transition,ae=a(Q,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete ae.gapPosition;var _e=Array.isArray(N)?N:[N],se=Array.isArray(G)?G:[G],ve=p(_e),te=d(ve,1),J=te[0],q=T/2,he=100-T/2,Y="M ".concat(V==="round"?q:0,",").concat(q,`
L `).concat(V==="round"?he:100,",").concat(q),W="0 0 100 ".concat(T),me=0;return De.a.createElement("svg",c({className:r()("".concat(ue,"-line"),re),viewBox:W,preserveAspectRatio:"none",style:U},ae),De.a.createElement("path",{className:"".concat(ue,"-line-trail"),d:Y,strokeLinecap:V,stroke:H,strokeWidth:K||T,fillOpacity:"0"}),_e.map(function(ge,Ae){var I={strokeDasharray:"".concat(ge,"px, 100px"),strokeDashoffset:"-".concat(me,"px"),transition:be||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},e=se[Ae]||se[se.length-1];return me+=ge,De.a.createElement("path",{key:Ae,className:"".concat(ue,"-line-path"),d:Y,strokeLinecap:V,stroke:e,strokeWidth:T,fillOpacity:"0",ref:J[Ae],style:I})}))};f.defaultProps=O;var v=f;function u(){return u=Object.assign||function(Z){for(var Q=1;Q<arguments.length;Q++){var re=arguments[Q];for(var N in re)Object.prototype.hasOwnProperty.call(re,N)&&(Z[N]=re[N])}return Z},u.apply(this,arguments)}function w(Z,Q){return g(Z)||k(Z,Q)||E(Z,Q)||A()}function A(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function E(Z,Q){if(!Z)return;if(typeof Z=="string")return x(Z,Q);var re=Object.prototype.toString.call(Z).slice(8,-1);if(re==="Object"&&Z.constructor&&(re=Z.constructor.name),re==="Map"||re==="Set")return Array.from(Z);if(re==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(re))return x(Z,Q)}function x(Z,Q){(Q==null||Q>Z.length)&&(Q=Z.length);for(var re=0,N=new Array(Q);re<Q;re++)N[re]=Z[re];return N}function k(Z,Q){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(Z)))return;var re=[],N=!0,ue=!1,G=void 0;try{for(var V=Z[Symbol.iterator](),T;!(N=(T=V.next()).done)&&!(re.push(T.value),Q&&re.length===Q);N=!0);}catch(U){ue=!0,G=U}finally{try{!N&&V.return!=null&&V.return()}finally{if(ue)throw G}}return re}function g(Z){if(Array.isArray(Z))return Z}function y(Z,Q){if(Z==null)return{};var re=j(Z,Q),N,ue;if(Object.getOwnPropertySymbols){var G=Object.getOwnPropertySymbols(Z);for(ue=0;ue<G.length;ue++){if(N=G[ue],Q.indexOf(N)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(Z,N))continue;re[N]=Z[N]}}return re}function j(Z,Q){if(Z==null)return{};var re={},N=Object.keys(Z),ue,G;for(G=0;G<N.length;G++){if(ue=N[G],Q.indexOf(ue)>=0)continue;re[ue]=Z[ue]}return re}var L=0;function _(Z){return+Z.replace("%","")}function z(Z){return Array.isArray(Z)?Z:[Z]}function M(Z,Q,re,N){var ue=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,G=arguments.length>5?arguments[5]:void 0,V=50-N/2,T=0,U=-V,H=0,K=-2*V;switch(G){case"left":T=-V,U=0,H=2*V,K=0;break;case"right":T=V,U=0,H=-2*V,K=0;break;case"bottom":U=V,K=2*V;break;default:}var be="M 50,50 m ".concat(T,",").concat(U,`
a `).concat(V,",").concat(V," 0 1 1 ").concat(H,",").concat(-K,`
a `).concat(V,",").concat(V," 0 1 1 ").concat(-H,",").concat(K),ae=Math.PI*2*V,_e={stroke:re,strokeDasharray:"".concat(Q/100*(ae-ue),"px ").concat(ae,"px"),strokeDashoffset:"-".concat(ue/2+Z/100*(ae-ue),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:be,pathStyle:_e}}var P=function(Q){var re=Q.prefixCls,N=Q.strokeWidth,ue=Q.trailWidth,G=Q.gapDegree,V=Q.gapPosition,T=Q.trailColor,U=Q.strokeLinecap,H=Q.style,K=Q.className,be=Q.strokeColor,ae=Q.percent,_e=y(Q,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),se=Object(ke.useMemo)(function(){return L+=1,L},[]),ve=M(0,100,T,N,G,V),te=ve.pathString,J=ve.pathStyle,q=z(ae),he=z(be),Y=he.find(function(I){return Object.prototype.toString.call(I)==="[object Object]"}),W=p(q),me=w(W,1),ge=me[0],Ae=function(){var e=0;return q.map(function(n,C){var b=he[C]||he[he.length-1],S=Object.prototype.toString.call(b)==="[object Object]"?"url(#".concat(re,"-gradient-").concat(se,")"):"",ee=M(e,n,b,N,G,V);return e+=n,De.a.createElement("path",{key:C,className:"".concat(re,"-circle-path"),d:ee.pathString,stroke:S,strokeLinecap:U,strokeWidth:N,opacity:n===0?0:1,fillOpacity:"0",style:ee.pathStyle,ref:ge[C]})})};return De.a.createElement("svg",u({className:r()("".concat(re,"-circle"),K),viewBox:"0 0 100 100",style:H},_e),Y&&De.a.createElement("defs",null,De.a.createElement("linearGradient",{id:"".concat(re,"-gradient-").concat(se),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(Y).sort(function(I,e){return _(I)-_(e)}).map(function(I,e){return De.a.createElement("stop",{key:e,offset:I,stopColor:Y[I]})}))),De.a.createElement("path",{className:"".concat(re,"-circle-trail"),d:te,stroke:T,strokeLinecap:U,strokeWidth:ue||N,fillOpacity:"0",style:J}),Ae().reverse())};P.defaultProps=O;var F=P,$={Line:v,Circle:F}},hgre:function(rt,Ze,de){"use strict";var ke=de("miYZ"),De=de("tsqr"),Re=de("9og8"),r=de("WmNS"),O=de.n(r),p=de("q1tI"),c=de.n(p),d=de("GUcZ"),s=de("ulZh"),i=de.n(s),h=de("xKgJ"),o=de("bntm"),t=de("4xil"),a=de.n(t);function l(w){if(isNaN(w))return{minutes:"00",seconds:"00"};var A=new Date(w*1e3).toISOString().substr(11,8);return{minutes:A.substr(3,2),seconds:A.substr(6,2)}}Object.defineProperty(HTMLMediaElement.prototype,"playing",{get:function(){return this.currentTime>0&&!this.paused&&!this.ended&&this.readyState>2}});function f(w,A){return w-A}function v(w){w.sort(f);for(var A=0,E=0;E<w.length-1;E++){var x=Math.abs(w[E+1]-w[E]);x<21&&(A+=x)}return A}var u=/(android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini)/i;Ze.a=Object(p.forwardRef)(function(w,A){var E,x,k,g=w.src,y=w.toLog,j=w.videoId,L=w.logWatchHistory,_=w.courseId,z=_===void 0?null:_,M=w.startTime,P=w.handlePause,F=P===void 0?function(){}:P,$=w.handlePlay,Z=$===void 0?function(){}:$,Q=w.handlePlayEnded,re=Q===void 0?function(){}:Q,N=w.videoSpeed,ue=N===void 0?1:N;g=(E=g)===null||E===void 0?void 0:E.replace("http://","https://");var G=(x=g)===null||x===void 0||((k=x.split("."))===null||k===void 0)?void 0:k.pop(),V=G==="flv",T=Object(p.useRef)(),U=Object(p.useRef)(),H=Object(p.useRef)(),K=Object(p.useRef)(),be=Object(p.useRef)(),ae=Object(p.useRef)(),_e=Object(p.useRef)(),se=Object(p.useRef)(),ve=Object(p.useRef)(),te=Object(p.useRef)(),J=Object(p.useRef)(),q=Object(p.useRef)(),he=Object(p.useRef)(),Y=Object(p.useRef)(),W=navigator.userAgent.toLowerCase().match(u),me=W?W[0]:"pc",ge=Object(p.useRef)(!1),Ae=Object(h.x)(),I=0,e=0,n=0,C=null,b=!1,S=20,ee=1,fe=!1,Me=!1,Oe=[];Object(p.useImperativeHandle)(A,function(){return{getLastUpdatedTime:function(){return T.current.currentTime},getDuration:function(){return T.current.duration}}});var Le=Object(p.useCallback)(function(ye){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ee={point:T.current.currentTime};C?(Ee.log_id=C,Ee.watch_duration=v(Oe),Ee.total_duration=e):(z?(Ee.video_id=parseInt(j,10),Ee.course_id=z):Ee.video_id=j,Ee.duration=I,Ee.device=me),xe&&(Ee.ed="1");function ie(){return ce.apply(this,arguments)}function ce(){return ce=Object(Re.a)(O.a.mark(function pe(){var le;return O.a.wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:return fe=!0,Ie.next=3,L(Ee);case 3:le=Ie.sent,C=le,fe=!1,ye&&ye();case 7:case"end":return Ie.stop()}},pe)})),ce.apply(this,arguments)}ie()},[j,z]);Object(p.useEffect)(function(){var ye;De.b.destroy();var xe=null;return d.a.isSupported&&V&&g&&((ye=g)===null||ye===void 0?void 0:ye.indexOf(".m3u8"))<0?(xe=d.a.createPlayer({type:"flv",volume:.8,cors:!0,url:g,muted:!1}),T.current&&(xe.attachMediaElement(T.current),xe.load())):T.current.setAttribute("src",g),Ke(),function(){xe&&(xe.unload(),xe.pause(),xe.destroy(),xe=null)}},[T,V,g]);function Be(){T.current.paused?(K.current.style.display="none",be.current.style.display="block"):(K.current.style.display="block",be.current.style.display="none")}function Ke(){J.current.style.display="none",he.current.style.display="none",q.current.style.display="none",T.current.muted||T.current.volume===0?J.current.style.display="block":T.current.volume>0&&T.current.volume<=.5?he.current.style.display="block":q.current.style.display="block"}Object(p.useEffect)(function(){var ye=document.getElementById("play"),xe=document.querySelectorAll(".playback-icons use");function Ee(){Z(),M&&!ge.current&&(T.current.currentTime=M),ge.current=!0,Oe.push(T.current.currentTime),b||(b=!0,y&&Le())}function ie(){return ce.apply(this,arguments)}function ce(){return ce=Object(Re.a)(O.a.mark(function Xe(){return O.a.wrap(function(at){for(;;)switch(at.prev=at.next){case 0:Be(),Oe.push(T.current.currentTime),y&&Le(function(){C=null,n=0,b=!1,fe=!1,Me=!1,Oe=[],e=0,ee=1},!0);case 3:case"end":return at.stop()}},Xe)})),ce.apply(this,arguments)}function pe(){ae.current.value=Math.floor(T.current.currentTime),_e.current.value=Math.floor(T.current.currentTime)}function le(){var Xe=l(Math.round(T.current.currentTime));ve.current.innerText="".concat(Xe.minutes,":").concat(Xe.seconds),ve.current.setAttribute("datetime","".concat(Xe.minutes,"m ").concat(Xe.seconds,"s"))}function Ce(){var Xe=Math.round(T.current.duration);ae.current.setAttribute("max",Xe),_e.current.setAttribute("max",Xe);var Ge=l(Xe);se.current.innerText="".concat(Ge.minutes,":").concat(Ge.seconds),se.current.setAttribute("datetime","".concat(Ge.minutes,"m ").concat(Ge.seconds,"s"))}function Ie(){var Xe=Math.round(T.current.duration);ae.current.setAttribute("max",Xe),_e.current.setAttribute("max",Xe);var Ge=l(Xe);se.current.innerText="".concat(Ge.minutes,":").concat(Ge.seconds),se.current.setAttribute("datetime","".concat(Ge.minutes,"m ").concat(Ge.seconds,"s")),pe(),le();var at=U.current.getBoundingClientRect(),ut=at.width,nt=at.height,ft=at.x,yt=at.y;if(ft<0||yt<0||!ut)return;if(!Me){var st=T.current.currentTime,gt=st-n;Math.abs(gt)<10?(e+=Math.abs(gt),n=st,fe||e-ee*S>=0&&(ee++,Oe.push(n),y&&Le())):(n=st,y&&Le())}}function qe(){Me=!0}function lt(){T.current.playing&&Oe.push(T.current.currentTime,n),n=T.current.currentTime,Me=!1}function mt(){I=T.current.duration,I<=20&&(S=I/3),T.current.addEventListener("play",Ee)}function dt(Xe){Xe.preventDefault(),Object(o.a)()?(T.current.style.width="100%",T.current.style.height="100%"):T.current.style.cssText=""}function ct(){F()}function Ye(Xe){var Ge=Xe.target.dataset.seek?Xe.target.dataset.seek:Xe.target.value;T.current.currentTime=Ge,_e.current.value=Ge,ae.current.value=Ge}function He(Xe){var Ge=Math.round(Xe.offsetX/Xe.target.clientWidth*parseInt(Xe.target.getAttribute("max"),10));ae.current.setAttribute("data-seek",Ge);var at=l(Ge);te.current.textContent="".concat(at.minutes,":").concat(at.seconds);var ut=T.current.getBoundingClientRect();te.current.style.left="".concat(Xe.pageX-ut.left,"px")}return H.current.addEventListener(Object(o.c)(),dt),T.current.addEventListener("canplay",mt),T.current.addEventListener("ended",ie),T.current.addEventListener("seeking",qe),T.current.addEventListener("seeked",lt),T.current.addEventListener("loadedmetadata",Ce),ae.current.addEventListener("mousemove",He),ae.current.addEventListener("input",Ye),T.current.addEventListener("timeupdate",Ie),T.current.addEventListener("pause",ct),T.current.addEventListener("volumechange",Ke),function(){T.current.removeEventListener("canplay",mt),T.current.removeEventListener("play",Ee),T.current.removeEventListener("ended",ie),T.current.removeEventListener("seeking",qe),T.current.removeEventListener("seeked",lt),ae.current.removeEventListener("mousemove",He),ae.current.removeEventListener("input",Ye),T.current.removeEventListener("timeupdate",Ie),T.current.removeEventListener("pause",ct),T.current.removeEventListener("loadedmetadata",Ce),T.current.removeEventListener("volumechange",Ke),T.current.playing&&(Oe.push(n,T.current.currentTime),y&&Le())}},[T,g]),Object(p.useEffect)(function(){var ye;if(T.current.onended=function(){re(T)},T.current.oncontextmenu=function(){return!1},((ye=g)===null||ye===void 0?void 0:ye.indexOf(".m3u8"))>-1){if(T.current.canPlayType("application/vnd.apple.mpegurl"))T.current.src=g;else if(i.a.isSupported()){var xe=new i.a;xe.loadSource(g),xe.attachMedia(T.current)}}},[g]),Object(p.useEffect)(function(){T.current.playbackRate=ue},[ue]);var Pe=function(){T.current.paused||T.current.ended?T.current.play():T.current.pause(),Be()};function Te(){T.current.muted=!T.current.muted,T.current.muted?(Y.current.setAttribute("data-volume",volume.value),Y.current.value=0):Y.current.value=Y.current.dataset.volume}return c.a.createElement("div",{style:{position:"relative"},ref:H},c.a.createElement("div",{ref:U,className:"".concat(a.a.watermark," animated_alternate animate__animated_10s animate__infinite animate__stepstart ").concat(a.a.animate__loop)},Ae?Ae.login:" "),c.a.createElement("div",{className:a.a.container},c.a.createElement("div",{className:a.a["video-container"],id:"video-container"},c.a.createElement("div",{className:a.a["playback-animation"],id:"playback-animation"},c.a.createElement("svg",{className:a.a["playback-icons"]},c.a.createElement("use",{className:"hidden",href:"#play-icon"}),c.a.createElement("use",{href:"#pause"}))),c.a.createElement("video",{className:a.a.video,id:"video",preload:"auto",disablePictureInPicture:!0,ref:T,autoPlay:!1}),c.a.createElement("div",{className:"".concat(a.a["video-controls"]," "),id:"video-controls"},c.a.createElement("div",{className:a.a["bottom-controls"]},c.a.createElement("div",{className:a.a["left-controls"]},c.a.createElement("button",{"data-title":"\u64AD\u653E/\u6682\u505C",id:"play",onClick:Pe},c.a.createElement("svg",{className:a.a["playback-icons"]},c.a.createElement("use",{ref:be,href:"#play-icon"}),c.a.createElement("use",{ref:K,style:{display:"none"},href:"#pause"}))),c.a.createElement("div",{className:a.a.time},c.a.createElement("time",{id:"time-elapsed",ref:ve},"00:00"),c.a.createElement("span",null," / "),c.a.createElement("time",{id:"duration",ref:se},"00:00"))),c.a.createElement("div",{className:a.a["right-controls"]},c.a.createElement("div",{className:a.a["volume-controls"]},c.a.createElement("button",{"data-title":"\u5F00\u542F/\u5173\u95ED\u58F0\u97F3",className:a.a["volume-button"],id:"volume-button",onClick:Te},c.a.createElement("svg",null,c.a.createElement("use",{ref:J,href:"#volume-mute"}),c.a.createElement("use",{ref:he,href:"#volume-low"}),c.a.createElement("use",{ref:q,href:"#volume-high"}))),c.a.createElement("input",{className:a.a.volume,id:"volume",value:"1","data-mute":"0.5",type:"range",max:"1",min:"0",step:"0.01",ref:Y,style:{display:"none"},onClick:Ke})),c.a.createElement("button",{"data-title":"\u5168\u5C4F/\u9000\u51FA\u5168\u5C4F",className:a.a["fullscreen-button"],onClick:function(){Object(o.a)()?Object(o.b)():Object(o.d)(H.current)}},c.a.createElement("svg",null,c.a.createElement("use",{href:"#fullscreen"}),c.a.createElement("use",{href:"#fullscreen-exit",className:"hidden"}))))),c.a.createElement("div",{className:a.a["video-progress"]},c.a.createElement("progress",{ref:_e,value:"0",min:"0"}),c.a.createElement("input",{className:a.a.seek,ref:ae,value:"0",min:"0",type:"range",step:"1"}),c.a.createElement("div",{className:a.a["seek-tooltip"],ref:te,id:"seek-tooltip"},"00:00"))))),c.a.createElement("svg",{style:{display:"none"}},c.a.createElement("defs",null,c.a.createElement("symbol",{id:"pause",viewBox:"0 0 24 24"},c.a.createElement("path",{d:"M14.016 5.016h3.984v13.969h-3.984v-13.969zM6 18.984v-13.969h3.984v13.969h-3.984z"})),c.a.createElement("symbol",{id:"play-icon",viewBox:"0 0 24 24"},c.a.createElement("path",{d:"M8.016 5.016l10.969 6.984-10.969 6.984v-13.969z"})),c.a.createElement("symbol",{id:"volume-high",viewBox:"0 0 24 24"},c.a.createElement("path",{d:"M14.016 3.234q3.047 0.656 5.016 3.117t1.969 5.648-1.969 5.648-5.016 3.117v-2.063q2.203-0.656 3.586-2.484t1.383-4.219-1.383-4.219-3.586-2.484v-2.063zM16.5 12q0 2.813-2.484 4.031v-8.063q1.031 0.516 1.758 1.688t0.727 2.344zM3 9h3.984l5.016-5.016v16.031l-5.016-5.016h-3.984v-6z"})),c.a.createElement("symbol",{id:"volume-low",viewBox:"0 0 24 24"},c.a.createElement("path",{d:"M5.016 9h3.984l5.016-5.016v16.031l-5.016-5.016h-3.984v-6zM18.516 12q0 2.766-2.531 4.031v-8.063q1.031 0.516 1.781 1.711t0.75 2.32z"})),c.a.createElement("symbol",{id:"volume-mute",viewBox:"0 0 24 24"},c.a.createElement("path",{d:"M12 3.984v4.219l-2.109-2.109zM4.266 3l16.734 16.734-1.266 1.266-2.063-2.063q-1.547 1.313-3.656 1.828v-2.063q1.172-0.328 2.25-1.172l-4.266-4.266v6.75l-5.016-5.016h-3.984v-6h4.734l-4.734-4.734zM18.984 12q0-2.391-1.383-4.219t-3.586-2.484v-2.063q3.047 0.656 5.016 3.117t1.969 5.648q0 2.203-1.031 4.172l-1.5-1.547q0.516-1.266 0.516-2.625zM16.5 12q0 0.422-0.047 0.609l-2.438-2.438v-2.203q1.031 0.516 1.758 1.688t0.727 2.344z"})),c.a.createElement("symbol",{id:"fullscreen",viewBox:"0 0 24 24"},c.a.createElement("path",{d:"M14.016 5.016h4.969v4.969h-1.969v-3h-3v-1.969zM17.016 17.016v-3h1.969v4.969h-4.969v-1.969h3zM5.016 9.984v-4.969h4.969v1.969h-3v3h-1.969zM6.984 14.016v3h3v1.969h-4.969v-4.969h1.969z"})),c.a.createElement("symbol",{id:"fullscreen-exit",viewBox:"0 0 24 24"},c.a.createElement("path",{d:"M15.984 8.016h3v1.969h-4.969v-4.969h1.969v3zM14.016 18.984v-4.969h4.969v1.969h-3v3h-1.969zM8.016 8.016v-3h1.969v4.969h-4.969v-1.969h3zM5.016 15.984v-1.969h4.969v4.969h-1.969v-3h-3z"})),c.a.createElement("symbol",{id:"pip",viewBox:"0 0 24 24"},c.a.createElement("path",{d:"M21 19.031v-14.063h-18v14.063h18zM23.016 18.984q0 0.797-0.609 1.406t-1.406 0.609h-18q-0.797 0-1.406-0.609t-0.609-1.406v-14.016q0-0.797 0.609-1.383t1.406-0.586h18q0.797 0 1.406 0.586t0.609 1.383v14.016zM18.984 11.016v6h-7.969v-6h7.969z"})))))})},kwm0:function(rt,Ze,de){rt.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","tagsList-content":"tagsList-content___3Yj4d"}},lppi:function(rt,Ze,de){rt.exports={pdfContainer:"pdfContainer___ECPbw",loading:"loading___2tzD5"}},mOS8:function(rt,Ze,de){rt.exports=de.p+"static/403Qrcode.6c17b6f4.png"},nUhQ:function(rt,Ze,de){rt.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"}},p5ED:function(rt,Ze,de){"use strict";var ke=de("+L6B"),De=de("2/Rp"),Re=de("5Dmo"),r=de("3S7+"),O=de("k1fw"),p=de("tJVT"),c=de("q1tI"),d=de.n(c),s=de("vHTk"),i=de.n(s),h=de("yEEn"),o=de("ZW9T"),t=de("1vsH");Ze.a=function(a){var l=a.name,f=a.data,v=a.theme,u=a.type,w=a.filename,A=a.monacoEditor,E=a.className,x=a.style,k=a.close,g=a.onClose,y=a.hasMask,j=Object(c.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),L=Object(p.a)(j,2),_=L[0],z=L[1],M=Object(c.useState)(""),P=Object(p.a)(M,2),F=P[0],$=P[1],Z=Object(c.useRef)();w&&(A.filename=w),Object(c.useEffect)(function(){var N,ue,G=(N=document.cookie)===null||N===void 0||((ue=N.replace(/\s/g,""))===null||ue===void 0)?void 0:ue.split(";");G==null||G.map(function(V){var T=V.split("=");T[0]==="_educoder_session"&&$(T[1])})},[]);var Q=function(){if(f.startsWith("http")||f.startsWith("/")){re();return}Object(t.x)(w||"educoder",f,w)},re=function(){Object(t.v)(w||l,f)};return console.log("data:",f,"fileanme:",w," name:",l),d.a.createElement("div",{style:Object(O.a)({},x||{}),className:"".concat(y&&i.a.bgBlack," ").concat(u?i.a.wrp:"hide")},k&&d.a.createElement("div",{className:i.a.close,ref:Z},d.a.createElement(r.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return Z.current}},d.a.createElement("span",{onClick:re},d.a.createElement("i",{className:"icon-quxiaozhiding"}))),d.a.createElement(r.a,{title:"\u5173\u95ED",getPopupContainer:function(){return Z.current}},d.a.createElement("span",{className:"",onClick:g},d.a.createElement("i",{className:"icon-guanbi1"})))),d.a.createElement("div",{className:"".concat(i.a[E]," ").concat(E," ").concat(i.a.monaco," ").concat(u==="txt"?"show":"hide")},u==="txt"&&d.a.createElement(o.b,A)),u==="audio"&&d.a.createElement("audio",{src:"".concat(f!=null&&f.startsWith("/")||(f==null?void 0:f.indexOf("https://"))>-1?f:"data:audio/mp3;base64,").concat(f),autoPlay:!0}),u==="video"&&d.a.createElement(d.a.Fragment,null,f!=null&&f.startsWith("/")?d.a.createElement("video",{controls:!0,src:"".concat(f),autoPlay:!0}):d.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(f),autoPlay:!0})),u==="pdf"&&d.a.createElement("embed",{className:i.a.embed,src:f}),u==="image"&&d.a.createElement(d.a.Fragment,null,d.a.createElement("img",{src:"".concat(f!=null&&f.startsWith("/")||(f==null?void 0:f.indexOf("https://"))>-1?"":"data:image/png;base64,").concat(f)})),u==="other"&&d.a.createElement("div",null,d.a.createElement(De.a,{type:"primary",size:"large",onClick:Q},d.a.createElement(h.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),(u==="download"||u==="office")&&d.a.createElement(De.a,{type:"primary",size:"large",onClick:Q},d.a.createElement(h.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},ppsT:function(rt,Ze,de){(function(ke){var De,De;!function(Re){if(!0)window.OSS=Re(),rt.exports=Re();else var r}(function(){var Re;return function(){function r(O,p,c){function d(h,o){if(!p[h]){if(!O[h]){var t=typeof De=="function"&&De;if(!o&&t)return De(h,!0);if(s)return s(h,!0);var a=new Error("Cannot find module '"+h+"'");throw a.code="MODULE_NOT_FOUND",a}var l=p[h]={exports:{}};O[h][0].call(l.exports,function(f){return d(O[h][1][f]||f)},l,l.exports,r,O,p,c)}return p[h].exports}for(var s=typeof De=="function"&&De,i=0;i<c.length;i++)d(c[i]);return d}return r}()({1:[function(r,O,p){"use strict";var c=r("./browser/client");c.Buffer=r("buffer").Buffer,c.co=r("co"),c.urllib=r("../shims/xhr"),c.version=r("./browser/version").version,O.exports=c},{"../shims/xhr":244,"./browser/client":2,"./browser/version":5,buffer:38,co:41}],2:[function(r,O,p){(function(c,d){"use strict";function s(V){return V&&V.__esModule?V:{default:V}}function i(V,T){return V[T]||V[T.toLowerCase()]}function h(V,T){var U=_.parse(V);if(!U.protocol){var H=T?"https://":"http://";U=_.parse(H+V)}if(U.protocol!=="http:"&&U.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return U}function o(V,T,U){var H=U?"https://":"http://",K=T?"-internal.aliyuncs.com":".aliyuncs.com";return V.substr(0,"vpc100-oss-cn-".length)==="vpc100-oss-cn-"&&(K=".aliyuncs.com"),_.parse(H+V+K)}function t(){return document&&document.location&&document.location.protocol==="https:"}function a(V,T){if(!(this instanceof a))return new a(V,T);V&&V.inited?this.options=V:this.options=a.initOptions(V),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=F,this.agent=this.options.agent||ue),this.ctx=T,this.userAgent=this._getUserAgent(),this.options.amendTimeSkewed=0}var l=r("babel-runtime/regenerator"),f=s(l),v=r("babel-runtime/core-js/object/keys"),u=s(v),w=r("debug")("ali-oss"),A=r("./../../shims/crypto/crypto.js"),E=r("path"),x=r("copy-to"),k=r("mime"),g=r("xml2js"),y=r("humanize-ms"),j=r("agentkeepalive"),L=r("merge-descriptors"),_=r("url"),z=r("is-type-of"),M=r("platform"),P=r("utility"),F=r("urllib"),$=r("./version"),Z=r("dateformat"),Q=r("bowser"),re=r("../common/signUtils"),N=r("../common/utils"),ue=new j;O.exports=a,a.initOptions=function(V){if(!V||!V.accessKeyId||!V.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");var T=t(),U={region:"oss-cn-hangzhou",internal:!1,secure:T,bucket:null,endpoint:null,cname:!1};if((0,u.default)(V).forEach(function(H){V[H]!==void 0&&(U[H]=V[H])}),U.accessKeyId=U.accessKeyId.trim(),U.accessKeySecret=U.accessKeySecret.trim(),U.timeout&&(U.timeout=y(U.timeout)),U.endpoint)U.endpoint=h(U.endpoint,U.secure);else{if(!U.region)throw new Error("require options.endpoint or options.region");U.endpoint=o(U.region,U.internal,U.secure)}return U.inited=!0,U};var G=a.prototype;L(G,r("./object")),L(G,r("./managed_upload")),L(G,r("../common/multipart")),L(G,r("../common/thunkpool.js")),a.Wrapper=r("./wrapper"),G.signature=function(V){return w("authorization stringToSign: %s",V),re.computeSignature(this.options.accessKeySecret,V)},G.authorization=function(V,T,U,H){var K=re.buildCanonicalString(V.toUpperCase(),T,{headers:H,parameters:U});return re.authorization(this.options.accessKeyId,this.options.accessKeySecret,K)},G.createRequest=function(V){var T={"x-oss-date":Z(+new Date+this.options.amendTimeSkewed,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'"),"x-oss-user-agent":this.userAgent};this.options.stsToken&&(T["x-oss-security-token"]=this.options.stsToken),x(V.headers).to(T),i(T,"Content-Type")||(V.mime===k.default_type&&(V.mime=""),V.mime&&V.mime.indexOf("/")>0?T["Content-Type"]=V.mime:T["Content-Type"]=k.getType(V.mime||E.extname(V.object||""))||"application/octet-stream"),V.content&&(T["Content-Md5"]=A.createHash("md5").update(new d(V.content,"utf8")).digest("base64"),T["Content-Length"]||(T["Content-Length"]=V.content.length));var U=this._getResource(V);T.authorization=this.authorization(V.method,U,V.subres,T);var H=this._getReqUrl(V);w("request %s %s, with headers %j, !!stream: %s",V.method,H,T,!!V.stream);var K=V.timeout||this.options.timeout;return{url:H,params:{agent:this.agent,method:V.method,content:V.content,stream:V.stream,headers:T,timeout:K,writeStream:V.writeStream,customResponse:V.customResponse,ctx:V.ctx||this.ctx}}},G.request=f.default.mark(function V(T){var U,H,K,be;return f.default.wrap(function(ae){for(;;)switch(ae.prev=ae.next){case 0:return U=this.createRequest(T),H=void 0,K=void 0,ae.prev=3,ae.next=6,this.urllib.request(U.url,U.params);case 6:H=ae.sent,w("response %s %s, got %s, headers: %j",T.method,U.url,H.status,H.headers),ae.next=13;break;case 10:ae.prev=10,ae.t0=ae.catch(3),K=ae.t0;case 13:if(be=void 0,!H||!T.successStatuses||T.successStatuses.indexOf(H.status)!==-1){ae.next=26;break}return ae.next=17,this.requestError(H);case 17:if(be=ae.sent,be.code!=="RequestTimeTooSkewed"){ae.next=23;break}return this.options.amendTimeSkewed=+new Date(be.serverTime)-new Date,ae.next=22,this.request(T);case 22:return ae.abrupt("return",ae.sent);case 23:be.params=T,ae.next=30;break;case 26:if(!K){ae.next=30;break}return ae.next=29,this.requestError(K);case 29:be=ae.sent;case 30:if(!be){ae.next=32;break}throw be;case 32:if(!T.xmlResponse){ae.next=36;break}return ae.next=35,this.parseXML(H.data);case 35:H.data=ae.sent;case 36:return ae.abrupt("return",H);case 37:case"end":return ae.stop()}},V,this,[[3,10]])}),G._getResource=function(V){var T="/";return V.bucket&&(T+=V.bucket+"/"),V.object&&(T+=V.object),T},G._isIP=function(V){return N._isIP(V)},G._escape=function(V){return P.encodeURIComponent(V).replace(/%2F/g,"/")},G._getReqUrl=function(V){var T={};x(this.options.endpoint).to(T);var U=this._isIP(T.hostname),H=this.options.cname;!V.bucket||H||U||(T.host=V.bucket+"."+T.host);var K="/";V.bucket&&U&&(K+=V.bucket+"/"),V.object&&(K+=this._escape(V.object).replace(/\+/g,"%2B")),T.pathname=K;var be={};if(V.query&&L(be,V.query),V.subres){var ae={};z.string(V.subres)?ae[V.subres]="":z.array(V.subres)?V.subres.forEach(function(_e){ae[_e]=""}):ae=V.subres,L(be,ae)}return T.query=be,_.format(T)},G._getUserAgent=function(){var V=c&&c.browser?"js":"nodejs",T="aliyun-sdk-"+V+"/"+$.version,U=M.description;return!U&&c&&(U="Node.js "+c.version.slice(1)+" on "+c.platform+" "+c.arch),this._checkUserAgent(T+" "+U)},G._checkUserAgent=function(V){return V.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta")},G.checkBrowserAndVersion=function(V,T){return Q.name===V&&Q.version.split(".")[0]===T},G.parseXML=function(V){return function(T){d.isBuffer(V)&&(V=V.toString()),g.parseString(V,{explicitRoot:!1,explicitArray:!1},T)}},G.requestError=f.default.mark(function V(T){var U,H,K,be;return f.default.wrap(function(ae){for(;;)switch(ae.prev=ae.next){case 0:if(U=null,T.data&&T.data.length){ae.next=5;break}T.status===-1||T.status===-2?(U=new Error(T.message),U.name=T.name,U.status=T.status,U.code=T.name):(T.status===404?(U=new Error("Object not exists"),U.name="NoSuchKeyError",U.status=404,U.code="NoSuchKey"):T.status===412?(U=new Error("Pre condition failed"),U.name="PreconditionFailedError",U.status=412,U.code="PreconditionFailed"):(U=new Error("Unknow error, status: "+T.status),U.name="UnknowError",U.status=T.status),U.requestId=T.headers["x-oss-request-id"],U.host=""),ae.next=30;break;case 5:return H=String(T.data),w("request response error data: %s",H),K=void 0,ae.prev=8,ae.next=11,this.parseXML(H)||{};case 11:K=ae.sent,ae.next=21;break;case 14:return ae.prev=14,ae.t0=ae.catch(8),w(H),ae.t0.message+=`
raw xml: `+H,ae.t0.status=T.status,ae.t0.requestId=T.headers["x-oss-request-id"],ae.abrupt("return",ae.t0);case 21:be=K.Message||"unknow request error, status: "+T.status,K.Condition&&(be+=" (condition: "+K.Condition+")"),U=new Error(be),U.name=K.Code?K.Code+"Error":"UnknowError",U.status=T.status,U.code=K.Code,U.requestId=K.RequestId,U.hostId=K.HostId,U.serverTime=K.ServerTime;case 30:return w("generate error %j",U),ae.abrupt("return",U);case 32:case"end":return ae.stop()}},V,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,O,p){(function(c){"use strict";function d(x){return x&&x.__esModule?x:{default:x}}function s(x,k){if(!(this instanceof s))return new s(x,k);E.call(this,k),this.file=x,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}var i=r("babel-runtime/core-js/array/from"),h=d(i),o=r("babel-runtime/regenerator"),t=d(o),a=r("is-type-of"),l=r("util"),f=r("path"),v=r("mime"),u=r("copy-to"),w=p;w.multipartUpload=t.default.mark(function x(k,g,y){var j,L,_,z,M,P,F,$,Z;return t.default.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:if(this.resetCancelFlag(),y=y||{},!y.checkpoint||!y.checkpoint.uploadId){Q.next=6;break}return Q.next=5,this._resumeMultipart(y.checkpoint,y);case 5:return Q.abrupt("return",Q.sent);case 6:return j=102400,y.mime||(a.file(g)?y.mime=v.getType(f.extname(g.name)):a.blob(g)?y.mime=g.type:y.mime=v.getType(f.extname(g))),y.headers=y.headers||{},this._convertMetaToHeaders(y.meta,y.headers),Q.next=12,this._getFileSize(g);case 12:if(!((L=Q.sent)<j)){Q.next=25;break}return _=this._createStream(g,0,L),y.contentLength=L,Q.next=18,this.putStream(k,_,y);case 18:if(z=Q.sent,!y||!y.progress){Q.next=22;break}return Q.next=22,y.progress(1);case 22:return M={res:z.res,bucket:this.options.bucket,name:k,etag:z.res.headers.etag},(y.headers&&y.headers["x-oss-callback"]||y.callback)&&(M.data=z.data),Q.abrupt("return",M);case 25:if(!(y.partSize&&y.partSize<j)){Q.next=27;break}throw new Error("partSize must not be smaller than "+j);case 27:return Q.next=29,this.initMultipartUpload(k,y);case 29:if(P=Q.sent,F=P.uploadId,$=this._getPartSize(L,y.partSize),Z={file:g,name:k,fileSize:L,partSize:$,uploadId:F,doneParts:[]},!y||!y.progress){Q.next=36;break}return Q.next=36,y.progress(0,Z,P.res);case 36:return Q.next=38,this._resumeMultipart(Z,y);case 38:return Q.abrupt("return",Q.sent);case 39:case"end":return Q.stop()}},x,this)}),w._resumeMultipart=t.default.mark(function x(k,g){var y,j,L,_,z,M,P,F,$,Z,Q,re,N,ue,G,V,T,U,H,K,be;return t.default.wrap(function(ae){for(;;)switch(ae.prev=ae.next){case 0:if(!this.isCancel()){ae.next=2;break}throw this._makeCancelEvent();case 2:if(y=k.file,j=k.fileSize,L=k.partSize,_=k.uploadId,z=k.doneParts,M=k.name,P=[],z.length>0&&u(z).to(P),F=this._divideParts(j,L),$=F.length,Z=!1,Q=t.default.mark(function _e(se,ve){var te,J,q;return t.default.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:if(se.isCancel()){he.next=21;break}return he.prev=1,te=F[ve-1],J={stream:se._createStream(y,te.start,te.end),size:te.end-te.start},he.next=6,se._uploadPart(M,_,ve,J);case 6:if(q=he.sent,se.isCancel()||Z){he.next=13;break}if(k.doneParts.push({number:ve,etag:q.res.headers.etag}),P.push({number:ve,etag:q.res.headers.etag}),!g||!g.progress){he.next=13;break}return he.next=13,g.progress(z.length/$,k,q.res);case 13:he.next=21;break;case 15:if(he.prev=15,he.t0=he.catch(1),se.isCancel()){he.next=21;break}throw se.cancel(),he.t0.partNum=ve,he.t0;case 21:case"end":return he.stop()}},_e,this,[[1,15]])}),re=(0,h.default)(new Array($),function(_e,se){return se+1}),N=P.map(function(_e){return _e.number}),ue=re.filter(function(_e){return N.indexOf(_e)<0}),G=5,V=g.parallel||G,!this.checkBrowserAndVersion("Internet Explorer","10")&&V!==1){ae.next=26;break}T=0;case 16:if(!(T<ue.length)){ae.next=24;break}if(!this.isCancel()){ae.next=19;break}throw this._makeCancelEvent();case 19:return ae.next=21,Q(this,ue[T]);case 21:T++,ae.next=16;break;case 24:ae.next=40;break;case 26:for(U=[],H=0;H<ue.length;H++)U.push(Q(this,ue[H]));return ae.next=30,this._thunkPool(U,V);case 30:if(K=ae.sent,Z=!0,!(K&&K.length>0)){ae.next=37;break}throw this.resetCancelFlag(),be=K[0],be.message="Failed to upload some parts with error: "+be.toString()+" part_num: "+be.partNum,be;case 37:if(!this.isCancel()){ae.next=40;break}throw U=null,this._makeCancelEvent();case 40:return ae.next=42,this.completeMultipartUpload(M,_,P,g);case 42:return ae.abrupt("return",ae.sent);case 43:case"end":return ae.stop()}},x,this)}),a.file=function(x){return typeof File!="undefined"&&x instanceof File},a.blob=function(x){return typeof Blob!="undefined"&&x instanceof Blob},w._getFileSize=t.default.mark(function x(k){var g;return t.default.wrap(function(y){for(;;)switch(y.prev=y.next){case 0:if(!a.buffer(k)){y.next=4;break}return y.abrupt("return",k.length);case 4:if(!a.blob(k)&&!a.file(k)){y.next=6;break}return y.abrupt("return",k.size);case 6:if(!a.string(k)){y.next=11;break}return y.next=9,this._statFile(k);case 9:return g=y.sent,y.abrupt("return",g.size);case 11:throw new Error("_getFileSize requires Buffer/File/String.");case 12:case"end":return y.stop()}},x,this)});var A=r("stream"),E=A.Readable;l.inherits(s,E),s.prototype.readFileAndPush=function(x){if(this.fileBuffer)for(var k=!0;k&&this.fileBuffer&&this.start<this.fileBuffer.length;){var g=this.start,y=g+x;y=y>this.fileBuffer.length?this.fileBuffer.length:y,this.start=y,k=this.push(this.fileBuffer.slice(g,y))}},s.prototype._read=function(x){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);x=x||16384;var k=this;this.reader.onload=function(g){k.fileBuffer=new c(new Uint8Array(g.target.result)),k.file=null,k.readFileAndPush(x)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(x)},w._createStream=function(x,k,g){if(a.blob(x)||a.file(x))return new s(x.slice(k,g));throw new Error("_createStream requires File/String.")},w._getPartSize=function(x,k){return k?Math.max(Math.ceil(x/1e4),k):1048576},w._divideParts=function(x,k){for(var g=Math.ceil(x/k),y=[],j=0;j<g;j++){var L=k*j,_=Math.min(L+k,x);y.push({start:L,end:_})}return y},w._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,O,p){"use strict";function c(k){return k&&k.__esModule?k:{default:k}}var d=r("babel-runtime/core-js/object/keys"),s=c(d),i=r("babel-runtime/regenerator"),h=c(i),o=r("debug")("ali-oss:object"),t=r("utility"),a=r("fs"),l=r("is-type-of"),f=r("url"),v=r("copy-to"),u=r("path"),w=r("mime"),A=r("../common/callback"),E=r("../common/signUtils"),x=p;x.append=h.default.mark(function k(g,y,j){var L;return h.default.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return j=j||{},j.position===void 0&&(j.position="0"),j.subres={append:"",position:j.position},j.method="POST",_.next=6,this.put(g,y,j);case 6:return L=_.sent,L.nextAppendPosition=L.res.headers["x-oss-next-append-position"],_.abrupt("return",L);case 9:case"end":return _.stop()}},k,this)}),x.put=h.default.mark(function k(g,y,j){var L,_,z,M,P,F;return h.default.wrap(function($){for(;;)switch($.prev=$.next){case 0:if(L=void 0,j=j||{},!l.buffer(y)){$.next=6;break}L=y,$.next=18;break;case 6:if(!l.blob(y)&&!l.file(y)){$.next=17;break}return j.mime||(l.file(y)?j.mime=w.getType(u.extname(y.name)):j.mime=y.type),_=this._createStream(y,0,y.size),$.next=11,this._getFileSize(y);case 11:return j.contentLength=$.sent,$.next=14,this.putStream(g,_,j);case 14:return $.abrupt("return",$.sent);case 17:throw new TypeError("Must provide Buffer/Blob for put.");case 18:return j.headers=j.headers||{},this._convertMetaToHeaders(j.meta,j.headers),z=j.method||"PUT",M=this._objectRequestParams(z,g,j),A.encodeCallback(M,j),M.mime=j.mime,M.content=L,M.successStatuses=[200],$.next=28,this.request(M);case 28:return P=$.sent,F={name:g,url:this._objectUrl(g),res:P.res},M.headers&&M.headers["x-oss-callback"]&&(F.data=JSON.parse(P.data.toString())),$.abrupt("return",F);case 32:case"end":return $.stop()}},k,this)}),x.putStream=h.default.mark(function k(g,y,j){var L,_,z,M;return h.default.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return j=j||{},j.headers=j.headers||{},j.contentLength?j.headers["Content-Length"]=j.contentLength:j.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(j.meta,j.headers),L=j.method||"PUT",_=this._objectRequestParams(L,g,j),A.encodeCallback(_,j),_.mime=j.mime,_.stream=y,_.successStatuses=[200],P.next=12,this.request(_);case 12:return z=P.sent,M={name:g,url:this._objectUrl(g),res:z.res},_.headers&&_.headers["x-oss-callback"]&&(M.data=JSON.parse(z.data.toString())),P.abrupt("return",M);case 16:case"end":return P.stop()}},k,this)}),x.head=h.default.mark(function k(g,y){var j,L,_;return h.default.wrap(function(z){for(;;)switch(z.prev=z.next){case 0:return j=this._objectRequestParams("HEAD",g,y),j.successStatuses=[200,304],z.next=4,this.request(j);case 4:return L=z.sent,_={meta:null,res:L.res,status:L.status},L.status===200&&(0,s.default)(L.headers).forEach(function(M){M.indexOf("x-oss-meta-")===0&&(_.meta||(_.meta={}),_.meta[M.substring(11)]=L.headers[M])}),z.abrupt("return",_);case 8:case"end":return z.stop()}},k,this)}),x.get=h.default.mark(function k(g,y,j){var L,_,z,M;return h.default.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return L=null,_=!1,l.writableStream(y)?L=y:l.string(y)?(L=a.createWriteStream(y),_=!0):j=y,j=j||{},j.process&&(j.subres=j.subres||{},j.subres["x-oss-process"]=j.process),z=void 0,P.prev=6,M=this._objectRequestParams("GET",g,j),M.writeStream=L,M.successStatuses=[200,206,304],P.next=12,this.request(M);case 12:z=P.sent,_&&L.destroy(),P.next=24;break;case 16:if(P.prev=16,P.t0=P.catch(6),!_){P.next=23;break}return L.destroy(),o("get error: %s, delete the exists file %s",P.t0,y),P.next=23,this._deleteFileSafe(y);case 23:throw P.t0;case 24:return P.abrupt("return",{res:z.res,content:z.data});case 25:case"end":return P.stop()}},k,this,[[6,16]])}),x.getStream=h.default.mark(function k(g,y){var j,L;return h.default.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return y=y||{},j=this._objectRequestParams("GET",g,y),j.customResponse=!0,j.successStatuses=[200,206,304],_.next=6,this.request(j);case 6:return L=_.sent,_.abrupt("return",{stream:L.res,res:{status:L.status,headers:L.headers}});case 8:case"end":return _.stop()}},k,this)}),x.delete=h.default.mark(function k(g,y){var j,L;return h.default.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return j=this._objectRequestParams("DELETE",g,y),j.successStatuses=[204],_.next=4,this.request(j);case 4:return L=_.sent,_.abrupt("return",{res:L.res});case 6:case"end":return _.stop()}},k,this)}),x.deleteMulti=h.default.mark(function k(g,y){var j,L,_,z,M,P;return h.default.wrap(function(F){for(;;)switch(F.prev=F.next){case 0:for(y=y||{},j=`<?xml version="1.0" encoding="UTF-8"?>
<Delete>
`,y.quiet?j+=` <Quiet>true</Quiet>
`:j+=` <Quiet>false</Quiet>
`,L=0;L<g.length;L++)j+=" <Object><Key>"+t.escape(this._objectName(g[L]))+`</Key></Object>
`;return j+="</Delete>",o("delete multi objects: %s",j),y.subres="delete",_=this._objectRequestParams("POST","",y),_.mime="xml",_.content=j,_.xmlResponse=!0,_.successStatuses=[200],F.next=14,this.request(_);case 14:return z=F.sent,M=z.data,P=M&&M.Deleted||null,P&&(Array.isArray(P)||(P=[P]),P=P.map(function($){return $.Key})),F.abrupt("return",{res:z.res,deleted:P});case 19:case"end":return F.stop()}},k,this)}),x.copy=h.default.mark(function k(g,y,j){var L,_,z;return h.default.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return j=j||{},j.headers=j.headers||{},(0,s.default)(j.headers).forEach(function(P){j.headers["x-oss-copy-source-"+P.toLowerCase()]=j.headers[P]}),j.meta&&(j.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(j.meta,j.headers),y=y[0]!=="/"?"/"+this.options.bucket+"/"+encodeURIComponent(y):"/"+encodeURIComponent(y.slice(1)),j.headers["x-oss-copy-source"]=y,L=this._objectRequestParams("PUT",g,j),L.xmlResponse=!0,L.successStatuses=[200,304],M.next=12,this.request(L);case 12:return _=M.sent,z=_.data,z&&(z={etag:z.ETag,lastModified:z.LastModified}),M.abrupt("return",{data:z,res:_.res});case 16:case"end":return M.stop()}},k,this)}),x.putMeta=h.default.mark(function k(g,y,j){return h.default.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return L.next=2,this.copy(g,g,{meta:y||{},timeout:j&&j.timeout,ctx:j&&j.ctx});case 2:return L.abrupt("return",L.sent);case 3:case"end":return L.stop()}},k,this)}),x.list=h.default.mark(function k(g,y){var j,L,_,z,M;return h.default.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return j=this._objectRequestParams("GET","",y),j.query=g,j.xmlResponse=!0,j.successStatuses=[200],P.next=6,this.request(j);case 6:return L=P.sent,_=L.data.Contents,z=this,_&&(Array.isArray(_)||(_=[_]),_=_.map(function(F){return{name:F.Key,url:z._objectUrl(F.Key),lastModified:F.LastModified,etag:F.ETag,type:F.Type,size:Number(F.Size),storageClass:F.StorageClass,owner:{id:F.Owner.ID,displayName:F.Owner.DisplayName}}})),M=L.data.CommonPrefixes||null,M&&(Array.isArray(M)||(M=[M]),M=M.map(function(F){return F.Prefix})),P.abrupt("return",{res:L.res,objects:_,prefixes:M,nextMarker:L.data.NextMarker||null,isTruncated:L.data.IsTruncated==="true"});case 13:case"end":return P.stop()}},k,this)}),x.putACL=h.default.mark(function k(g,y,j){var L,_;return h.default.wrap(function(z){for(;;)switch(z.prev=z.next){case 0:return j=j||{},j.subres="acl",j.headers=j.headers||{},j.headers["x-oss-object-acl"]=y,g=this._objectName(g),L=this._objectRequestParams("PUT",g,j),L.successStatuses=[200],z.next=9,this.request(L);case 9:return _=z.sent,z.abrupt("return",{res:_.res});case 11:case"end":return z.stop()}},k,this)}),x.getACL=h.default.mark(function k(g,y){var j,L;return h.default.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return y=y||{},y.subres="acl",g=this._objectName(g),j=this._objectRequestParams("GET",g,y),j.successStatuses=[200],j.xmlResponse=!0,_.next=8,this.request(j);case 8:return L=_.sent,_.abrupt("return",{acl:L.data.AccessControlList.Grant,owner:{id:L.data.Owner.ID,displayName:L.data.Owner.DisplayName},res:L.res});case 10:case"end":return _.stop()}},k,this)}),x.restore=h.default.mark(function k(g,y){var j,L;return h.default.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return y=y||{},y.subres="restore",j=this._objectRequestParams("POST",g,y),j.successStatuses=[202],_.next=6,this.request(j);case 6:return L=_.sent,_.abrupt("return",{res:L.res});case 8:case"end":return _.stop()}},k,this)}),x.signatureUrl=function(k,g){g=g||{},k=this._objectName(k),g.method=g.method||"GET";var y=t.timestamp()+(g.expires||1800),j={bucket:this.options.bucket,object:k},L=this._getResource(j);this.options.stsToken&&(g["security-token"]=this.options.stsToken);var _=E._signatureForURL(this.options.accessKeySecret,g,L,y),z=f.parse(this._getReqUrl(j));return z.query={OSSAccessKeyId:this.options.accessKeyId,Expires:y,Signature:_.Signature},v(_.subResource).to(z.query),z.format()},x.getObjectUrl=function(k,g){return g?g[g.length-1]!=="/"&&(g+="/"):g=this.options.endpoint.format(),g+this._escape(this._objectName(k))},x._objectUrl=function(k){return this._getReqUrl({bucket:this.options.bucket,object:k})},x.generateObjectUrl=function(k,g){if(g)g[g.length-1]!=="/"&&(g+="/");else{g=this.options.endpoint.format();var y=f.parse(g),j=this.options.bucket;y.hostname=j+"."+y.hostname,y.host=j+"."+y.host,g=y.format()}return g+this._escape(this._objectName(k))},x._objectRequestParams=function(k,g,y){if(!this.options.bucket)throw new Error("Please create a bucket first");y=y||{},g=this._objectName(g);var j={object:g,bucket:this.options.bucket,method:k,subres:y&&y.subres,timeout:y&&y.timeout,ctx:y&&y.ctx};return y.headers&&(j.headers={},v(y.headers).to(j.headers)),j},x._objectName=function(k){return k.replace(/^\/+/,"")},x._statFile=function(k){return function(g){a.stat(k,g)}},x._convertMetaToHeaders=function(k,g){k&&(0,s.default)(k).forEach(function(y){g["x-oss-meta-"+y]=k[y]})},x._deleteFileSafe=function(k){return function(g){a.exists(k,function(y){y?a.unlink(k,function(j){j&&o("unlink %j error: %s",k,j),g()}):g()})}}},{"../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,O,p){"use strict";p.version="5.3.1"},{}],6:[function(r,O,p){"use strict";function c(u){return u&&u.__esModule?u:{default:u}}function d(u){return u&&typeof u.next=="function"&&typeof u.throw=="function"}function s(u){if(!u)return!1;var w=u.constructor;return!!w&&(w.name==="GeneratorFunction"||w.displayName==="GeneratorFunction"||d(w.prototype)||d(u.prototype))}function i(u,w){var A=new u(w),E=(0,l.default)(A),x=(0,l.default)((0,t.default)(A));E.concat(x).forEach(function(k){s(A[k])?this[k]=f.wrap(A[k]).bind(A):this[k]=A[k]},this)}function h(u){if(!(this instanceof h))return new h(u);i.call(this,v,u)}var o=r("babel-runtime/core-js/object/get-prototype-of"),t=c(o),a=r("babel-runtime/core-js/object/keys"),l=c(a),f=r("co"),v=r("./client");O.exports=h,h.STS=function u(w){if(!(this instanceof u))return new u(w);i.call(this,v.STS,w)}},{"./client":2,"babel-runtime/core-js/object/get-prototype-of":22,"babel-runtime/core-js/object/keys":23,co:41}],7:[function(r,O,p){(function(c){"use strict";function d(t){return t&&t.__esModule?t:{default:t}}var s=r("babel-runtime/core-js/object/keys"),i=d(s),h=r("babel-runtime/core-js/json/stringify"),o=d(h);p.encodeCallback=function(t,a){if(t.headers=t.headers||{},!Object.prototype.hasOwnProperty.call(t.headers,"x-oss-callback")&&a.callback){var l={callbackUrl:encodeURI(a.callback.url),callbackBody:a.callback.body};a.callback.host&&(l.callbackHost=a.callback.host),a.callback.contentType&&(l.callbackBodyType=a.callback.contentType);var f=new c((0,o.default)(l)).toString("base64");if(t.headers["x-oss-callback"]=f,a.callback.customValue){var v={};(0,i.default)(a.callback.customValue).forEach(function(u){v["x:"+u]=a.callback.customValue[u]}),t.headers["x-oss-callback-var"]=new c((0,o.default)(v)).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,O,p){"use strict";var c=r("babel-runtime/regenerator"),d=function(o){return o&&o.__esModule?o:{default:o}}(c),s=r("copy-to"),i=r("./callback"),h=p;h.listUploads=d.default.mark(function o(t,a){var l,f,v,u;return d.default.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return a=a||{},l={},s(a).to(l),l.subres="uploads",f=this._objectRequestParams("GET","",l),f.query=t,f.xmlResponse=!0,f.successStatuses=[200],w.next=10,this.request(f);case 10:return v=w.sent,u=v.data.Upload||[],Array.isArray(u)||(u=[u]),u=u.map(function(A){return{name:A.Key,uploadId:A.UploadId,initiated:A.Initiated}}),w.abrupt("return",{res:v.res,uploads:u,bucket:v.data.Bucket,nextKeyMarker:v.data.NextKeyMarker,nextUploadIdMarker:v.data.NextUploadIdMarker,isTruncated:v.data.IsTruncated==="true"});case 15:case"end":return w.stop()}},o,this)}),h.listParts=d.default.mark(function o(t,a,l,f){var v,u,w;return d.default.wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return f=f||{},v={},s(f).to(v),v.subres={uploadId:a},u=this._objectRequestParams("GET",t,v),u.query=l,u.xmlResponse=!0,u.successStatuses=[200],A.next=10,this.request(u);case 10:return w=A.sent,A.abrupt("return",{res:w.res,uploadId:w.data.UploadId,bucket:w.data.Bucket,name:w.data.Key,partNumberMarker:w.data.PartNumberMarker,nextPartNumberMarker:w.data.NextPartNumberMarker,maxParts:w.data.MaxParts,isTruncated:w.data.IsTruncated,parts:w.data.Part||[]});case 12:case"end":return A.stop()}},o,this)}),h.abortMultipartUpload=d.default.mark(function o(t,a,l){var f,v,u;return d.default.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return this.cancel(),l=l||{},f={},s(l).to(f),f.subres={uploadId:a},v=this._objectRequestParams("DELETE",t,f),v.successStatuses=[204],w.next=9,this.request(v);case 9:return u=w.sent,w.abrupt("return",{res:u.res});case 11:case"end":return w.stop()}},o,this)}),h.initMultipartUpload=d.default.mark(function o(t,a){var l,f,v;return d.default.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return a=a||{},l={},s(a).to(l),l.headers=l.headers||{},this._convertMetaToHeaders(a.meta,l.headers),l.subres="uploads",f=this._objectRequestParams("POST",t,l),f.mime=a.mime,f.xmlResponse=!0,f.successStatuses=[200],u.next=12,this.request(f);case 12:return v=u.sent,u.abrupt("return",{res:v.res,bucket:v.data.Bucket,name:v.data.Key,uploadId:v.data.UploadId});case 14:case"end":return u.stop()}},o,this)}),h.uploadPart=d.default.mark(function o(t,a,l,f,v,u,w){var A;return d.default.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return A={stream:this._createStream(f,v,u),size:u-v},E.next=3,this._uploadPart(t,a,l,A,w);case 3:return E.abrupt("return",E.sent);case 4:case"end":return E.stop()}},o,this)}),h.completeMultipartUpload=d.default.mark(function o(t,a,l,f){var v,u,w,A,E,x,k,g;return d.default.wrap(function(y){for(;;)switch(y.prev=y.next){case 0:for(v=l.concat().sort(function(j,L){return j.number-L.number}).filter(function(j,L,_){return!L||j.number!==_[L-1].number}),u=`<?xml version="1.0" encoding="UTF-8"?>
<CompleteMultipartUpload>
`,w=0;w<v.length;w++)A=v[w],u+=`<Part>
`,u+="<PartNumber>"+A.number+`</PartNumber>
`,u+="<ETag>"+A.etag+`</ETag>
`,u+=`</Part>
`;return u+="</CompleteMultipartUpload>",f=f||{},E={},s(f).to(E),E.subres={uploadId:a},x=this._objectRequestParams("POST",t,E),i.encodeCallback(x,E),x.mime="xml",x.content=u,x.headers&&x.headers["x-oss-callback"]||(x.xmlResponse=!0),x.successStatuses=[200],y.next=16,this.request(x);case 16:return k=y.sent,g={res:k.res,bucket:x.bucket,name:t,etag:k.res.headers.etag},x.headers&&x.headers["x-oss-callback"]&&(g.data=JSON.parse(k.data.toString())),y.abrupt("return",g);case 20:case"end":return y.stop()}},o,this)}),h._uploadPart=d.default.mark(function o(t,a,l,f,v){var u,w,A;return d.default.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return v=v||{},u={},s(v).to(u),u.headers={"Content-Length":f.size},u.subres={partNumber:l,uploadId:a},w=this._objectRequestParams("PUT",t,u),w.mime=u.mime,w.stream=f.stream,w.successStatuses=[200],E.next=11,this.request(w);case 11:return A=E.sent,f.stream=null,w.stream=null,E.abrupt("return",{name:t,etag:A.res.headers.etag,res:A.res});case 15:case"end":return E.stop()}},o,this)})},{"./callback":7,"babel-runtime/regenerator":33,"copy-to":43}],9:[function(r,O,p){(function(c){"use strict";function d(l){return l&&l.__esModule?l:{default:l}}var s=r("babel-runtime/core-js/json/stringify"),i=d(s),h=r("babel-runtime/core-js/object/keys"),o=d(h),t=r("./../../shims/crypto/crypto.js"),a=r("is-type-of");p.buildCanonicalizedResource=function(l,f){var v=""+l,u="?";if(a.string(f)&&f.trim()!=="")v+=u+f;else if(a.array(f))f.sort(),v+=u+f.join("&");else if(f){var w=function(E,x){return E[0]>x[0]?1:E[0]<x[0]?-1:0},A=function(E){v+=u+E,f[E]&&(v+="="+f[E]),u="&"};(0,o.default)(f).sort(w).forEach(A)}return v},p.buildCanonicalString=function(l,f,v,u){v=v||{};var w=v.headers||{},A=[],E={},x=[l.toUpperCase(),w["Content-Md5"]||"",w["Content-Type"]||w["Content-Type".toLowerCase()],u||w["x-oss-date"]];return(0,o.default)(w).forEach(function(k){var g=k.toLowerCase();g.indexOf("x-oss-")===0&&(E[g]=String(w[k]).trim())}),(0,o.default)(E).sort().forEach(function(k){A.push(k+":"+E[k])}),x=x.concat(A),x.push(this.buildCanonicalizedResource(f,v.parameters)),x.join(`
`)},p.computeSignature=function(l,f){return t.createHmac("sha1",l).update(new c(f,"utf8")).digest("base64")},p.authorization=function(l,f,v){return"OSS "+l+":"+this.computeSignature(f,v)},p._signatureForURL=function(l,f,v,u){var w={},A={};if(f.process&&(A["x-oss-process"]=f.process),f.response&&(0,o.default)(f.response).forEach(function(g){var y="response-"+g.toLowerCase();A[y]=f.response[g]}),(0,o.default)(f).forEach(function(g){var y=g.toLowerCase(),j=f[g];y.indexOf("x-oss-")===0?w[y]=j:y.indexOf("content-md5")===0||y.indexOf("content-type")===0?w[g]=j:y!=="expires"&&y!=="response"&&y!=="process"&&y!=="method"&&(A[y]=j)}),Object.prototype.hasOwnProperty.call(f,"security-token")&&(A["security-token"]=f["security-token"]),Object.prototype.hasOwnProperty.call(f,"callback")){var E={callbackUrl:encodeURI(f.callback.url),callbackBody:f.callback.body};if(f.callback.host&&(E.callbackHost=f.callback.host),f.callback.contentType&&(E.callbackBodyType=f.callback.contentType),A.callback=new c((0,i.default)(E)).toString("base64"),f.callback.customValue){var x={};(0,o.default)(f.callback.customValue).forEach(function(g){x["x:"+g]=f.callback.customValue[g]}),A["callback-var"]=new c((0,i.default)(x)).toString("base64")}}var k=this.buildCanonicalString(f.method,v,{headers:w,parameters:A},u.toString());return{Signature:this.computeSignature(l,k),subResource:A}}}).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,O,p){"use strict";var c=r("babel-runtime/regenerator"),d=function(t){return t&&t.__esModule?t:{default:t}}(c),s=r("co"),i=r("co-priority-queue"),h=r("any-promise"),o=p;o._thunkPool=function(t,a){function l(A,E){++u===A.length&&E(w)}function f(A,E){function x(){var _;return d.default.wrap(function(z){for(;;)switch(z.prev=z.next){case 0:_=void 0;case 1:if(v.isCancel()){z.next=9;break}return z.next=4,y.next();case 4:return _=z.sent,z.next=7,_();case 7:z.next=1;break;case 9:j+=1,j===A&&(y.fns=[],y.buffer=[],E(w));case 11:case"end":return z.stop()}},g,this)}function k(_){console.error(_.stack)}for(var g=d.default.mark(x),y=new i,j=0,L=0;L<A;L++)s(x).catch(k);return function(_,z){return function(M){y.push(d.default.mark(function P(){return d.default.wrap(function(F){for(;;)switch(F.prev=F.next){case 0:return F.prev=0,F.t0=M,F.next=4,_;case 4:F.t1=F.sent,(0,F.t0)(null,F.t1),F.next=11;break;case 8:F.prev=8,F.t2=F.catch(0),M(F.t2);case 11:case"end":return F.stop()}},P,this,[[0,8]])}),z)}}}var v=this,u=0,w=[];return new h(function(A){function E(j){return d.default.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return L.next=2,g(t[j]);case 2:l(t,A);case 3:case"end":return L.stop()}},k,this)}function x(j){w.push(j),l(t,A)}for(var k=d.default.mark(E),g=new f(a,A),y=0;y<t.length;y++)s(E(y)).catch(x)})},o.cancel=function(){this.options.cancelFlag=!0},o.isCancel=function(){return this.options.cancelFlag},o.resetCancelFlag=function(){this.options.cancelFlag=!1}},{"any-promise":13,"babel-runtime/regenerator":33,co:41,"co-priority-queue":40}],11:[function(r,O,p){"use strict";p._isIP=function(c){var d=/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/,s=/^\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 d.test(c)||s.test(c)}},{}],12:[function(r,O,p){function c(){}O.exports=c,O.exports.HttpsAgent=c},{}],13:[function(r,O,p){O.exports=r("./register")().Promise},{"./register":15}],14:[function(r,O,p){"use strict";var c=null;O.exports=function(d,s){return function(i,h){i=i||null,h=h||{};var o=h.global!==!1;if(c===null&&o&&(c=d["@@any-promise/REGISTRATION"]||null),c!==null&&i!==null&&c.implementation!==i)throw new Error('any-promise already defined as "'+c.implementation+'". You can only register an implementation before the first call to require("any-promise") and an implementation cannot be changed');return c===null&&(c=i!==null&&h.Promise!==void 0?{Promise:h.Promise,implementation:i}:s(i),o&&(d["@@any-promise/REGISTRATION"]=c)),c}}},{}],15:[function(r,O,p){"use strict";function c(){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"}}O.exports=r("./loader")(window,c)},{"./loader":14}],16:[function(r,O,p){O.exports={default:r("core-js/library/fn/array/from"),__esModule:!0}},{"core-js/library/fn/array/from":44}],17:[function(r,O,p){O.exports={default:r("core-js/library/fn/json/stringify"),__esModule:!0}},{"core-js/library/fn/json/stringify":45}],18:[function(r,O,p){O.exports={default:r("core-js/library/fn/object/assign"),__esModule:!0}},{"core-js/library/fn/object/assign":46}],19:[function(r,O,p){O.exports={default:r("core-js/library/fn/object/create"),__esModule:!0}},{"core-js/library/fn/object/create":47}],20:[function(r,O,p){O.exports={default:r("core-js/library/fn/object/define-property"),__esModule:!0}},{"core-js/library/fn/object/define-property":48}],21:[function(r,O,p){O.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,O,p){O.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,O,p){O.exports={default:r("core-js/library/fn/object/keys"),__esModule:!0}},{"core-js/library/fn/object/keys":51}],24:[function(r,O,p){O.exports={default:r("core-js/library/fn/promise"),__esModule:!0}},{"core-js/library/fn/promise":52}],25:[function(r,O,p){O.exports={default:r("core-js/library/fn/set-immediate"),__esModule:!0}},{"core-js/library/fn/set-immediate":53}],26:[function(r,O,p){O.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,O,p){O.exports={default:r("core-js/library/fn/symbol"),__esModule:!0}},{"core-js/library/fn/symbol":56}],28:[function(r,O,p){O.exports={default:r("core-js/library/fn/symbol/has-instance"),__esModule:!0}},{"core-js/library/fn/symbol/has-instance":55}],29:[function(r,O,p){O.exports={default:r("core-js/library/fn/symbol/iterator"),__esModule:!0}},{"core-js/library/fn/symbol/iterator":57}],30:[function(r,O,p){"use strict";p.__esModule=!0,p.default=function(c,d){if(!(c instanceof d))throw new TypeError("Cannot call a class as a function")}},{}],31:[function(r,O,p){"use strict";p.__esModule=!0;var c=r("../core-js/object/define-property"),d=function(s){return s&&s.__esModule?s:{default:s}}(c);p.default=function(){function s(i,h){for(var o=0;o<h.length;o++){var t=h[o];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),(0,d.default)(i,t.key,t)}}return function(i,h,o){return h&&s(i.prototype,h),o&&s(i,o),i}}()},{"../core-js/object/define-property":20}],32:[function(r,O,p){"use strict";function c(t){return t&&t.__esModule?t:{default:t}}p.__esModule=!0;var d=r("../core-js/symbol/iterator"),s=c(d),i=r("../core-js/symbol"),h=c(i),o=typeof h.default=="function"&&typeof s.default=="symbol"?function(t){return typeof t}:function(t){return t&&typeof h.default=="function"&&t.constructor===h.default&&t!==h.default.prototype?"symbol":typeof t};p.default=typeof h.default=="function"&&o(s.default)==="symbol"?function(t){return t===void 0?"undefined":o(t)}:function(t){return t&&typeof h.default=="function"&&t.constructor===h.default&&t!==h.default.prototype?"symbol":t===void 0?"undefined":o(t)}},{"../core-js/symbol":27,"../core-js/symbol/iterator":29}],33:[function(r,O,p){O.exports=r("regenerator-runtime")},{"regenerator-runtime":191}],34:[function(r,O,p){"use strict";function c(A){var E=A.length;if(E%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var x=A.indexOf("=");return x===-1&&(x=E),[x,x===E?0:4-x%4]}function d(A){var E=c(A),x=E[0],k=E[1];return 3*(x+k)/4-k}function s(A,E,x){return 3*(E+x)/4-x}function i(A){for(var E,x=c(A),k=x[0],g=x[1],y=new f(s(A,k,g)),j=0,L=g>0?k-4:k,_=0;_<L;_+=4)E=l[A.charCodeAt(_)]<<18|l[A.charCodeAt(_+1)]<<12|l[A.charCodeAt(_+2)]<<6|l[A.charCodeAt(_+3)],y[j++]=E>>16&255,y[j++]=E>>8&255,y[j++]=255&E;return g===2&&(E=l[A.charCodeAt(_)]<<2|l[A.charCodeAt(_+1)]>>4,y[j++]=255&E),g===1&&(E=l[A.charCodeAt(_)]<<10|l[A.charCodeAt(_+1)]<<4|l[A.charCodeAt(_+2)]>>2,y[j++]=E>>8&255,y[j++]=255&E),y}function h(A){return a[A>>18&63]+a[A>>12&63]+a[A>>6&63]+a[63&A]}function o(A,E,x){for(var k,g=[],y=E;y<x;y+=3)k=(A[y]<<16&16711680)+(A[y+1]<<8&65280)+(255&A[y+2]),g.push(h(k));return g.join("")}function t(A){for(var E,x=A.length,k=x%3,g=[],y=0,j=x-k;y<j;y+=16383)g.push(o(A,y,y+16383>j?j:y+16383));return k===1?(E=A[x-1],g.push(a[E>>2]+a[E<<4&63]+"==")):k===2&&(E=(A[x-2]<<8)+A[x-1],g.push(a[E>>10]+a[E>>4&63]+a[E<<2&63]+"=")),g.join("")}p.byteLength=d,p.toByteArray=i,p.fromByteArray=t;for(var a=[],l=[],f=typeof Uint8Array!="undefined"?Uint8Array:Array,v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,w=v.length;u<w;++u)a[u]=v[u],l[v.charCodeAt(u)]=u;l["-".charCodeAt(0)]=62,l["_".charCodeAt(0)]=63},{}],35:[function(r,O,p){!function(c,d,s){O!==void 0&&O.exports?O.exports=s():typeof Re=="function"&&Re.amd?Re("bowser",s):c.bowser=s()}(this,0,function(){function c(l){function f(V){var T=l.match(V);return T&&T.length>1&&T[1]||""}function v(V){var T=l.match(V);return T&&T.length>1&&T[2]||""}var u,w=f(/(ipod|iphone|ipad)/i).toLowerCase(),A=/like android/i.test(l),E=!A&&/android/i.test(l),x=/nexus\s*[0-6]\s*/i.test(l),k=!x&&/nexus\s*[0-9]+/i.test(l),g=/CrOS/.test(l),y=/silk/i.test(l),j=/sailfish/i.test(l),L=/tizen/i.test(l),_=/(web|hpw)os/i.test(l),z=/windows phone/i.test(l),M=(/SamsungBrowser/i.test(l),!z&&/windows/i.test(l)),P=!w&&!y&&/macintosh/i.test(l),F=!E&&!j&&!L&&!_&&/linux/i.test(l),$=v(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),Z=f(/version\/(\d+(\.\d+)?)/i),Q=/tablet/i.test(l)&&!/tablet pc/i.test(l),re=!Q&&/[^-]mobi/i.test(l),N=/xbox/i.test(l);/opera/i.test(l)?u={name:"Opera",opera:t,version:Z||f(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(l)?u={name:"Opera",opera:t,version:f(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||Z}:/SamsungBrowser/i.test(l)?u={name:"Samsung Internet for Android",samsungBrowser:t,version:Z||f(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/coast/i.test(l)?u={name:"Opera Coast",coast:t,version:Z||f(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/yabrowser/i.test(l)?u={name:"Yandex Browser",yandexbrowser:t,version:Z||f(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(l)?u={name:"UC Browser",ucbrowser:t,version:f(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(l)?u={name:"Maxthon",maxthon:t,version:f(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(l)?u={name:"Epiphany",epiphany:t,version:f(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(l)?u={name:"Puffin",puffin:t,version:f(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(l)?u={name:"Sleipnir",sleipnir:t,version:f(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(l)?u={name:"K-Meleon",kMeleon:t,version:f(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:z?(u={name:"Windows Phone",osname:"Windows Phone",windowsphone:t},$?(u.msedge=t,u.version=$):(u.msie=t,u.version=f(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(l)?u={name:"Internet Explorer",msie:t,version:f(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:g?u={name:"Chrome",osname:"Chrome OS",chromeos:t,chromeBook:t,chrome:t,version:f(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(l)?u={name:"Microsoft Edge",msedge:t,version:$}:/vivaldi/i.test(l)?u={name:"Vivaldi",vivaldi:t,version:f(/vivaldi\/(\d+(\.\d+)?)/i)||Z}:j?u={name:"Sailfish",osname:"Sailfish OS",sailfish:t,version:f(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(l)?u={name:"SeaMonkey",seamonkey:t,version:f(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(l)?(u={name:"Firefox",firefox:t,version:f(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(l)&&(u.firefoxos=t,u.osname="Firefox OS")):y?u={name:"Amazon Silk",silk:t,version:f(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(l)?u={name:"PhantomJS",phantom:t,version:f(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(l)?u={name:"SlimerJS",slimer:t,version:f(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(l)||/rim\stablet/i.test(l)?u={name:"BlackBerry",osname:"BlackBerry OS",blackberry:t,version:Z||f(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:_?(u={name:"WebOS",osname:"WebOS",webos:t,version:Z||f(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(l)&&(u.touchpad=t)):/bada/i.test(l)?u={name:"Bada",osname:"Bada",bada:t,version:f(/dolfin\/(\d+(\.\d+)?)/i)}:L?u={name:"Tizen",osname:"Tizen",tizen:t,version:f(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||Z}:/qupzilla/i.test(l)?u={name:"QupZilla",qupzilla:t,version:f(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||Z}:/chromium/i.test(l)?u={name:"Chromium",chromium:t,version:f(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||Z}:/chrome|crios|crmo/i.test(l)?u={name:"Chrome",chrome:t,version:f(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:E?u={name:"Android",version:Z}:/safari|applewebkit/i.test(l)?(u={name:"Safari",safari:t},Z&&(u.version=Z)):w?(u={name:w=="iphone"?"iPhone":w=="ipad"?"iPad":"iPod"},Z&&(u.version=Z)):u=/googlebot/i.test(l)?{name:"Googlebot",googlebot:t,version:f(/googlebot\/(\d+(\.\d+))/i)||Z}:{name:f(/^(.*)\/(.*) /),version:v(/^(.*)\/(.*) /)},!u.msedge&&/(apple)?webkit/i.test(l)?(/(apple)?webkit\/537\.36/i.test(l)?(u.name=u.name||"Blink",u.blink=t):(u.name=u.name||"Webkit",u.webkit=t),!u.version&&Z&&(u.version=Z)):!u.opera&&/gecko\//i.test(l)&&(u.name=u.name||"Gecko",u.gecko=t,u.version=u.version||f(/gecko\/(\d+(\.\d+)?)/i)),u.windowsphone||!E&&!u.silk?!u.windowsphone&&w?(u[w]=t,u.ios=t,u.osname="iOS"):P?(u.mac=t,u.osname="macOS"):N?(u.xbox=t,u.osname="Xbox"):M?(u.windows=t,u.osname="Windows"):F&&(u.linux=t,u.osname="Linux"):(u.android=t,u.osname="Android");var ue="";u.windows?ue=function(V){switch(V){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}}(f(/Windows ((NT|XP)( \d\d?.\d)?)/i)):u.windowsphone?ue=f(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):u.mac?(ue=f(/Mac OS X (\d+([_\.\s]\d+)*)/i),ue=ue.replace(/[_\s]/g,".")):w?(ue=f(/os (\d+([_\s]\d+)*) like mac os x/i),ue=ue.replace(/[_\s]/g,".")):E?ue=f(/android[ \/-](\d+(\.\d+)*)/i):u.webos?ue=f(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):u.blackberry?ue=f(/rim\stablet\sos\s(\d+(\.\d+)*)/i):u.bada?ue=f(/bada\/(\d+(\.\d+)*)/i):u.tizen&&(ue=f(/tizen[\/\s](\d+(\.\d+)*)/i)),ue&&(u.osversion=ue);var G=!u.windows&&ue.split(".")[0];return Q||k||w=="ipad"||E&&(G==3||G>=4&&!re)||u.silk?u.tablet=t:(re||w=="iphone"||w=="ipod"||E||x||u.blackberry||u.webos||u.bada)&&(u.mobile=t),u.msedge||u.msie&&u.version>=10||u.yandexbrowser&&u.version>=15||u.vivaldi&&u.version>=1||u.chrome&&u.version>=20||u.samsungBrowser&&u.version>=4||u.firefox&&u.version>=20||u.safari&&u.version>=6||u.opera&&u.version>=10||u.ios&&u.osversion&&u.osversion.split(".")[0]>=6||u.blackberry&&u.version>=10.1||u.chromium&&u.version>=20?u.a=t:u.msie&&u.version<10||u.chrome&&u.version<20||u.firefox&&u.version<20||u.safari&&u.version<6||u.opera&&u.version<10||u.ios&&u.osversion&&u.osversion.split(".")[0]<6||u.chromium&&u.version<20?u.c=t:u.x=t,u}function d(l){return l.split(".").length}function s(l,f){var v,u=[];if(Array.prototype.map)return Array.prototype.map.call(l,f);for(v=0;v<l.length;v++)u.push(f(l[v]));return u}function i(l){for(var f=Math.max(d(l[0]),d(l[1])),v=s(l,function(u){var w=f-d(u);return u+=new Array(w+1).join(".0"),s(u.split("."),function(A){return new Array(20-A.length).join("0")+A}).reverse()});--f>=0;){if(v[0][f]>v[1][f])return 1;if(v[0][f]!==v[1][f])return-1;if(f===0)return 0}}function h(l,f,v){var u=a;typeof f=="string"&&(v=f,f=void 0),f===void 0&&(f=!1),v&&(u=c(v));var w=""+u.version;for(var A in l)if(l.hasOwnProperty(A)&&u[A]){if(typeof l[A]!="string")throw new Error("Browser version in the minVersion map should be a string: "+A+": "+String(l));return i([w,l[A]])<0}return f}function o(l,f,v){return!h(l,f,v)}var t=!0,a=c(typeof navigator!="undefined"&&navigator.userAgent||"");return a.test=function(l){for(var f=0;f<l.length;++f){var v=l[f];if(typeof v=="string"&&v in a)return!0}return!1},a.isUnsupportedBrowser=h,a.compareVersions=i,a.check=o,a._detect=c,a.detect=c,a})},{}],36:[function(r,O,p){},{}],37:[function(r,O,p){function c(a){if(a&&!o(a))throw new Error("Unknown encoding: "+a)}function d(a){return a.toString(this.encoding)}function s(a){this.charReceived=a.length%2,this.charLength=this.charReceived?2:0}function i(a){this.charReceived=a.length%3,this.charLength=this.charReceived?3:0}var h=r("buffer").Buffer,o=h.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=p.StringDecoder=function(a){switch(this.encoding=(a||"utf8").toLowerCase().replace(/[-_]/,""),c(a),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=s;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=i;break;default:return void(this.write=d)}this.charBuffer=new h(6),this.charReceived=0,this.charLength=0};t.prototype.write=function(a){for(var l="";this.charLength;){var f=a.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:a.length;if(a.copy(this.charBuffer,this.charReceived,0,f),this.charReceived+=f,this.charReceived<this.charLength)return"";a=a.slice(f,a.length),l=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var u=l.charCodeAt(l.length-1);if(!(u>=55296&&u<=56319)){if(this.charReceived=this.charLength=0,a.length===0)return l;break}this.charLength+=this.surrogateSize,l=""}this.detectIncompleteChar(a);var v=a.length;this.charLength&&(a.copy(this.charBuffer,0,a.length-this.charReceived,v),v-=this.charReceived),l+=a.toString(this.encoding,0,v);var v=l.length-1,u=l.charCodeAt(v);if(u>=55296&&u<=56319){var w=this.surrogateSize;return this.charLength+=w,this.charReceived+=w,this.charBuffer.copy(this.charBuffer,w,0,w),a.copy(this.charBuffer,0,0,w),l.substring(0,v)}return l},t.prototype.detectIncompleteChar=function(a){for(var l=a.length>=3?3:a.length;l>0;l--){var f=a[a.length-l];if(l==1&&f>>5==6){this.charLength=2;break}if(l<=2&&f>>4==14){this.charLength=3;break}if(l<=3&&f>>3==30){this.charLength=4;break}}this.charReceived=l},t.prototype.end=function(a){var l="";if(a&&a.length&&(l=this.write(a)),this.charReceived){var f=this.charReceived,v=this.charBuffer,u=this.encoding;l+=v.slice(0,f).toString(u)}return l}},{buffer:38}],38:[function(r,O,p){(function(c){"use strict";function d(){return i.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,n){if(d()<n)throw new RangeError("Invalid typed array length");return i.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(n),e.__proto__=i.prototype):(e===null&&(e=new i(n)),e.length=n),e}function i(e,n,C){if(!(i.TYPED_ARRAY_SUPPORT||this instanceof i))return new i(e,n,C);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 h(this,e,n,C)}function h(e,n,C,b){if(typeof n=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&n instanceof ArrayBuffer?v(e,n,C,b):typeof n=="string"?l(e,n,C):u(e,n)}function o(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,C,b){return o(n),n<=0?s(e,n):C!==void 0?typeof b=="string"?s(e,n).fill(C,b):s(e,n).fill(C):s(e,n)}function a(e,n){if(o(n),e=s(e,n<0?0:0|w(n)),!i.TYPED_ARRAY_SUPPORT)for(var C=0;C<n;++C)e[C]=0;return e}function l(e,n,C){if(typeof C=="string"&&C!==""||(C="utf8"),!i.isEncoding(C))throw new TypeError('"encoding" must be a valid string encoding');var b=0|E(n,C);e=s(e,b);var S=e.write(n,C);return S!==b&&(e=e.slice(0,S)),e}function f(e,n){var C=n.length<0?0:0|w(n.length);e=s(e,C);for(var b=0;b<C;b+=1)e[b]=255&n[b];return e}function v(e,n,C,b){if(n.byteLength,C<0||n.byteLength<C)throw new RangeError("'offset' is out of bounds");if(n.byteLength<C+(b||0))throw new RangeError("'length' is out of bounds");return n=C===void 0&&b===void 0?new Uint8Array(n):b===void 0?new Uint8Array(n,C):new Uint8Array(n,C,b),i.TYPED_ARRAY_SUPPORT?(e=n,e.__proto__=i.prototype):e=f(e,n),e}function u(e,n){if(i.isBuffer(n)){var C=0|w(n.length);return e=s(e,C),e.length===0||n.copy(e,0,0,C),e}if(n){if(typeof ArrayBuffer!="undefined"&&n.buffer instanceof ArrayBuffer||"length"in n)return typeof n.length!="number"||Y(n.length)?s(e,0):f(e,n);if(n.type==="Buffer"&&ge(n.data))return f(e,n.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function w(e){if(e>=d())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+d().toString(16)+" bytes");return 0|e}function A(e){return+e!=e&&(e=0),i.alloc(+e)}function E(e,n){if(i.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 C=e.length;if(C===0)return 0;for(var b=!1;;)switch(n){case"ascii":case"latin1":case"binary":return C;case"utf8":case"utf-8":case void 0:return ve(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*C;case"hex":return C>>>1;case"base64":return q(e).length;default:if(b)return ve(e).length;n=(""+n).toLowerCase(),b=!0}}function x(e,n,C){var b=!1;if((n===void 0||n<0)&&(n=0),n>this.length)return"";if((C===void 0||C>this.length)&&(C=this.length),C<=0)return"";if(C>>>=0,n>>>=0,C<=n)return"";for(e||(e="utf8");;)switch(e){case"hex":return N(this,n,C);case"utf8":case"utf-8":return $(this,n,C);case"ascii":return Q(this,n,C);case"latin1":case"binary":return re(this,n,C);case"base64":return F(this,n,C);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ue(this,n,C);default:if(b)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),b=!0}}function k(e,n,C){var b=e[n];e[n]=e[C],e[C]=b}function g(e,n,C,b,S){if(e.length===0)return-1;if(typeof C=="string"?(b=C,C=0):C>2147483647?C=2147483647:C<-2147483648&&(C=-2147483648),C=+C,isNaN(C)&&(C=S?0:e.length-1),C<0&&(C=e.length+C),C>=e.length){if(S)return-1;C=e.length-1}else if(C<0){if(!S)return-1;C=0}if(typeof n=="string"&&(n=i.from(n,b)),i.isBuffer(n))return n.length===0?-1:y(e,n,C,b,S);if(typeof n=="number")return n&=255,i.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?S?Uint8Array.prototype.indexOf.call(e,n,C):Uint8Array.prototype.lastIndexOf.call(e,n,C):y(e,[n],C,b,S);throw new TypeError("val must be string, number or Buffer")}function y(e,n,C,b,S){function ee(Te,ye){return fe===1?Te[ye]:Te.readUInt16BE(ye*fe)}var fe=1,Me=e.length,Oe=n.length;if(b!==void 0&&((b=String(b).toLowerCase())==="ucs2"||b==="ucs-2"||b==="utf16le"||b==="utf-16le")){if(e.length<2||n.length<2)return-1;fe=2,Me/=2,Oe/=2,C/=2}var Le;if(S){var Be=-1;for(Le=C;Le<Me;Le++)if(ee(e,Le)===ee(n,Be===-1?0:Le-Be)){if(Be===-1&&(Be=Le),Le-Be+1===Oe)return Be*fe}else Be!==-1&&(Le-=Le-Be),Be=-1}else for(C+Oe>Me&&(C=Me-Oe),Le=C;Le>=0;Le--){for(var Ke=!0,Pe=0;Pe<Oe;Pe++)if(ee(e,Le+Pe)!==ee(n,Pe)){Ke=!1;break}if(Ke)return Le}return-1}function j(e,n,C,b){C=Number(C)||0;var S=e.length-C;b?(b=Number(b))>S&&(b=S):b=S;var ee=n.length;if(ee%2!=0)throw new TypeError("Invalid hex string");b>ee/2&&(b=ee/2);for(var fe=0;fe<b;++fe){var Me=parseInt(n.substr(2*fe,2),16);if(isNaN(Me))return fe;e[C+fe]=Me}return fe}function L(e,n,C,b){return he(ve(n,e.length-C),e,C,b)}function _(e,n,C,b){return he(te(n),e,C,b)}function z(e,n,C,b){return _(e,n,C,b)}function M(e,n,C,b){return he(q(n),e,C,b)}function P(e,n,C,b){return he(J(n,e.length-C),e,C,b)}function F(e,n,C){return n===0&&C===e.length?W.fromByteArray(e):W.fromByteArray(e.slice(n,C))}function $(e,n,C){C=Math.min(e.length,C);for(var b=[],S=n;S<C;){var ee=e[S],fe=null,Me=ee>239?4:ee>223?3:ee>191?2:1;if(S+Me<=C){var Oe,Le,Be,Ke;switch(Me){case 1:ee<128&&(fe=ee);break;case 2:Oe=e[S+1],(192&Oe)==128&&(Ke=(31&ee)<<6|63&Oe)>127&&(fe=Ke);break;case 3:Oe=e[S+1],Le=e[S+2],(192&Oe)==128&&(192&Le)==128&&(Ke=(15&ee)<<12|(63&Oe)<<6|63&Le)>2047&&(Ke<55296||Ke>57343)&&(fe=Ke);break;case 4:Oe=e[S+1],Le=e[S+2],Be=e[S+3],(192&Oe)==128&&(192&Le)==128&&(192&Be)==128&&(Ke=(15&ee)<<18|(63&Oe)<<12|(63&Le)<<6|63&Be)>65535&&Ke<1114112&&(fe=Ke)}}fe===null?(fe=65533,Me=1):fe>65535&&(fe-=65536,b.push(fe>>>10&1023|55296),fe=56320|1023&fe),b.push(fe),S+=Me}return Z(b)}function Z(e){var n=e.length;if(n<=Ae)return String.fromCharCode.apply(String,e);for(var C="",b=0;b<n;)C+=String.fromCharCode.apply(String,e.slice(b,b+=Ae));return C}function Q(e,n,C){var b="";C=Math.min(e.length,C);for(var S=n;S<C;++S)b+=String.fromCharCode(127&e[S]);return b}function re(e,n,C){var b="";C=Math.min(e.length,C);for(var S=n;S<C;++S)b+=String.fromCharCode(e[S]);return b}function N(e,n,C){var b=e.length;(!n||n<0)&&(n=0),(!C||C<0||C>b)&&(C=b);for(var S="",ee=n;ee<C;++ee)S+=se(e[ee]);return S}function ue(e,n,C){for(var b=e.slice(n,C),S="",ee=0;ee<b.length;ee+=2)S+=String.fromCharCode(b[ee]+256*b[ee+1]);return S}function G(e,n,C){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+n>C)throw new RangeError("Trying to access beyond buffer length")}function V(e,n,C,b,S,ee){if(!i.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>S||n<ee)throw new RangeError('"value" argument is out of bounds');if(C+b>e.length)throw new RangeError("Index out of range")}function T(e,n,C,b){n<0&&(n=65535+n+1);for(var S=0,ee=Math.min(e.length-C,2);S<ee;++S)e[C+S]=(n&255<<8*(b?S:1-S))>>>8*(b?S:1-S)}function U(e,n,C,b){n<0&&(n=4294967295+n+1);for(var S=0,ee=Math.min(e.length-C,4);S<ee;++S)e[C+S]=n>>>8*(b?S:3-S)&255}function H(e,n,C,b,S,ee){if(C+b>e.length)throw new RangeError("Index out of range");if(C<0)throw new RangeError("Index out of range")}function K(e,n,C,b,S){return S||H(e,n,C,4,34028234663852886e22,-34028234663852886e22),me.write(e,n,C,b,23,4),C+4}function be(e,n,C,b,S){return S||H(e,n,C,8,17976931348623157e292,-17976931348623157e292),me.write(e,n,C,b,52,8),C+8}function ae(e){if(e=_e(e).replace(I,""),e.length<2)return"";for(;e.length%4!=0;)e+="=";return e}function _e(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 ve(e,n){n=n||1/0;for(var C,b=e.length,S=null,ee=[],fe=0;fe<b;++fe){if((C=e.charCodeAt(fe))>55295&&C<57344){if(!S){if(C>56319){(n-=3)>-1&&ee.push(239,191,189);continue}if(fe+1===b){(n-=3)>-1&&ee.push(239,191,189);continue}S=C;continue}if(C<56320){(n-=3)>-1&&ee.push(239,191,189),S=C;continue}C=65536+(S-55296<<10|C-56320)}else S&&(n-=3)>-1&&ee.push(239,191,189);if(S=null,C<128){if((n-=1)<0)break;ee.push(C)}else if(C<2048){if((n-=2)<0)break;ee.push(C>>6|192,63&C|128)}else if(C<65536){if((n-=3)<0)break;ee.push(C>>12|224,C>>6&63|128,63&C|128)}else{if(!(C<1114112))throw new Error("Invalid code point");if((n-=4)<0)break;ee.push(C>>18|240,C>>12&63|128,C>>6&63|128,63&C|128)}}return ee}function te(e){for(var n=[],C=0;C<e.length;++C)n.push(255&e.charCodeAt(C));return n}function J(e,n){for(var C,b,S,ee=[],fe=0;fe<e.length&&!((n-=2)<0);++fe)C=e.charCodeAt(fe),b=C>>8,S=C%256,ee.push(S),ee.push(b);return ee}function q(e){return W.toByteArray(ae(e))}function he(e,n,C,b){for(var S=0;S<b&&!(S+C>=n.length||S>=e.length);++S)n[S+C]=e[S];return S}function Y(e){return e!==e}var W=r("base64-js"),me=r("ieee754"),ge=r("isarray");p.Buffer=i,p.SlowBuffer=A,p.INSPECT_MAX_BYTES=50,i.TYPED_ARRAY_SUPPORT=c.TYPED_ARRAY_SUPPORT!==void 0?c.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}}(),p.kMaxLength=d(),i.poolSize=8192,i._augment=function(e){return e.__proto__=i.prototype,e},i.from=function(e,n,C){return h(null,e,n,C)},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(e,n,C){return t(null,e,n,C)},i.allocUnsafe=function(e){return a(null,e)},i.allocUnsafeSlow=function(e){return a(null,e)},i.isBuffer=function(e){return!(e==null||!e._isBuffer)},i.compare=function(e,n){if(!i.isBuffer(e)||!i.isBuffer(n))throw new TypeError("Arguments must be Buffers");if(e===n)return 0;for(var C=e.length,b=n.length,S=0,ee=Math.min(C,b);S<ee;++S)if(e[S]!==n[S]){C=e[S],b=n[S];break}return C<b?-1:b<C?1:0},i.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}},i.concat=function(e,n){if(!ge(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return i.alloc(0);var C;if(n===void 0)for(n=0,C=0;C<e.length;++C)n+=e[C].length;var b=i.allocUnsafe(n),S=0;for(C=0;C<e.length;++C){var ee=e[C];if(!i.isBuffer(ee))throw new TypeError('"list" argument must be an Array of Buffers');ee.copy(b,S),S+=ee.length}return b},i.byteLength=E,i.prototype._isBuffer=!0,i.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)k(this,n,n+1);return this},i.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)k(this,n,n+3),k(this,n+1,n+2);return this},i.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)k(this,n,n+7),k(this,n+1,n+6),k(this,n+2,n+5),k(this,n+3,n+4);return this},i.prototype.toString=function(){var e=0|this.length;return e===0?"":arguments.length===0?$(this,0,e):x.apply(this,arguments)},i.prototype.equals=function(e){if(!i.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||i.compare(this,e)===0},i.prototype.inspect=function(){var e="",n=p.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},i.prototype.compare=function(e,n,C,b,S){if(!i.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(n===void 0&&(n=0),C===void 0&&(C=e?e.length:0),b===void 0&&(b=0),S===void 0&&(S=this.length),n<0||C>e.length||b<0||S>this.length)throw new RangeError("out of range index");if(b>=S&&n>=C)return 0;if(b>=S)return-1;if(n>=C)return 1;if(n>>>=0,C>>>=0,b>>>=0,S>>>=0,this===e)return 0;for(var ee=S-b,fe=C-n,Me=Math.min(ee,fe),Oe=this.slice(b,S),Le=e.slice(n,C),Be=0;Be<Me;++Be)if(Oe[Be]!==Le[Be]){ee=Oe[Be],fe=Le[Be];break}return ee<fe?-1:fe<ee?1:0},i.prototype.includes=function(e,n,C){return this.indexOf(e,n,C)!==-1},i.prototype.indexOf=function(e,n,C){return g(this,e,n,C,!0)},i.prototype.lastIndexOf=function(e,n,C){return g(this,e,n,C,!1)},i.prototype.write=function(e,n,C,b){if(n===void 0)b="utf8",C=this.length,n=0;else if(C===void 0&&typeof n=="string")b=n,C=this.length,n=0;else{if(!isFinite(n))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");n|=0,isFinite(C)?(C|=0,b===void 0&&(b="utf8")):(b=C,C=void 0)}var S=this.length-n;if((C===void 0||C>S)&&(C=S),e.length>0&&(C<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");b||(b="utf8");for(var ee=!1;;)switch(b){case"hex":return j(this,e,n,C);case"utf8":case"utf-8":return L(this,e,n,C);case"ascii":return _(this,e,n,C);case"latin1":case"binary":return z(this,e,n,C);case"base64":return M(this,e,n,C);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,e,n,C);default:if(ee)throw new TypeError("Unknown encoding: "+b);b=(""+b).toLowerCase(),ee=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Ae=4096;i.prototype.slice=function(e,n){var C=this.length;e=~~e,n=n===void 0?C:~~n,e<0?(e+=C)<0&&(e=0):e>C&&(e=C),n<0?(n+=C)<0&&(n=0):n>C&&(n=C),n<e&&(n=e);var b;if(i.TYPED_ARRAY_SUPPORT)b=this.subarray(e,n),b.__proto__=i.prototype;else{var S=n-e;b=new i(S,void 0);for(var ee=0;ee<S;++ee)b[ee]=this[ee+e]}return b},i.prototype.readUIntLE=function(e,n,C){e|=0,n|=0,C||G(e,n,this.length);for(var b=this[e],S=1,ee=0;++ee<n&&(S*=256);)b+=this[e+ee]*S;return b},i.prototype.readUIntBE=function(e,n,C){e|=0,n|=0,C||G(e,n,this.length);for(var b=this[e+--n],S=1;n>0&&(S*=256);)b+=this[e+--n]*S;return b},i.prototype.readUInt8=function(e,n){return n||G(e,1,this.length),this[e]},i.prototype.readUInt16LE=function(e,n){return n||G(e,2,this.length),this[e]|this[e+1]<<8},i.prototype.readUInt16BE=function(e,n){return n||G(e,2,this.length),this[e]<<8|this[e+1]},i.prototype.readUInt32LE=function(e,n){return n||G(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},i.prototype.readUInt32BE=function(e,n){return n||G(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},i.prototype.readIntLE=function(e,n,C){e|=0,n|=0,C||G(e,n,this.length);for(var b=this[e],S=1,ee=0;++ee<n&&(S*=256);)b+=this[e+ee]*S;return S*=128,b>=S&&(b-=Math.pow(2,8*n)),b},i.prototype.readIntBE=function(e,n,C){e|=0,n|=0,C||G(e,n,this.length);for(var b=n,S=1,ee=this[e+--b];b>0&&(S*=256);)ee+=this[e+--b]*S;return S*=128,ee>=S&&(ee-=Math.pow(2,8*n)),ee},i.prototype.readInt8=function(e,n){return n||G(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},i.prototype.readInt16LE=function(e,n){n||G(e,2,this.length);var C=this[e]|this[e+1]<<8;return 32768&C?4294901760|C:C},i.prototype.readInt16BE=function(e,n){n||G(e,2,this.length);var C=this[e+1]|this[e]<<8;return 32768&C?4294901760|C:C},i.prototype.readInt32LE=function(e,n){return n||G(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},i.prototype.readInt32BE=function(e,n){return n||G(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},i.prototype.readFloatLE=function(e,n){return n||G(e,4,this.length),me.read(this,e,!0,23,4)},i.prototype.readFloatBE=function(e,n){return n||G(e,4,this.length),me.read(this,e,!1,23,4)},i.prototype.readDoubleLE=function(e,n){return n||G(e,8,this.length),me.read(this,e,!0,52,8)},i.prototype.readDoubleBE=function(e,n){return n||G(e,8,this.length),me.read(this,e,!1,52,8)},i.prototype.writeUIntLE=function(e,n,C,b){(e=+e,n|=0,C|=0,!b)&&V(this,e,n,C,Math.pow(2,8*C)-1,0);var S=1,ee=0;for(this[n]=255&e;++ee<C&&(S*=256);)this[n+ee]=e/S&255;return n+C},i.prototype.writeUIntBE=function(e,n,C,b){(e=+e,n|=0,C|=0,!b)&&V(this,e,n,C,Math.pow(2,8*C)-1,0);var S=C-1,ee=1;for(this[n+S]=255&e;--S>=0&&(ee*=256);)this[n+S]=e/ee&255;return n+C},i.prototype.writeUInt8=function(e,n,C){return e=+e,n|=0,C||V(this,e,n,1,255,0),i.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[n]=255&e,n+1},i.prototype.writeUInt16LE=function(e,n,C){return e=+e,n|=0,C||V(this,e,n,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[n]=255&e,this[n+1]=e>>>8):T(this,e,n,!0),n+2},i.prototype.writeUInt16BE=function(e,n,C){return e=+e,n|=0,C||V(this,e,n,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[n]=e>>>8,this[n+1]=255&e):T(this,e,n,!1),n+2},i.prototype.writeUInt32LE=function(e,n,C){return e=+e,n|=0,C||V(this,e,n,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[n+3]=e>>>24,this[n+2]=e>>>16,this[n+1]=e>>>8,this[n]=255&e):U(this,e,n,!0),n+4},i.prototype.writeUInt32BE=function(e,n,C){return e=+e,n|=0,C||V(this,e,n,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=255&e):U(this,e,n,!1),n+4},i.prototype.writeIntLE=function(e,n,C,b){if(e=+e,n|=0,!b){var S=Math.pow(2,8*C-1);V(this,e,n,C,S-1,-S)}var ee=0,fe=1,Me=0;for(this[n]=255&e;++ee<C&&(fe*=256);)e<0&&Me===0&&this[n+ee-1]!==0&&(Me=1),this[n+ee]=(e/fe>>0)-Me&255;return n+C},i.prototype.writeIntBE=function(e,n,C,b){if(e=+e,n|=0,!b){var S=Math.pow(2,8*C-1);V(this,e,n,C,S-1,-S)}var ee=C-1,fe=1,Me=0;for(this[n+ee]=255&e;--ee>=0&&(fe*=256);)e<0&&Me===0&&this[n+ee+1]!==0&&(Me=1),this[n+ee]=(e/fe>>0)-Me&255;return n+C},i.prototype.writeInt8=function(e,n,C){return e=+e,n|=0,C||V(this,e,n,1,127,-128),i.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[n]=255&e,n+1},i.prototype.writeInt16LE=function(e,n,C){return e=+e,n|=0,C||V(this,e,n,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[n]=255&e,this[n+1]=e>>>8):T(this,e,n,!0),n+2},i.prototype.writeInt16BE=function(e,n,C){return e=+e,n|=0,C||V(this,e,n,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[n]=e>>>8,this[n+1]=255&e):T(this,e,n,!1),n+2},i.prototype.writeInt32LE=function(e,n,C){return e=+e,n|=0,C||V(this,e,n,4,2147483647,-2147483648),i.TYPED_ARRAY_SUPPORT?(this[n]=255&e,this[n+1]=e>>>8,this[n+2]=e>>>16,this[n+3]=e>>>24):U(this,e,n,!0),n+4},i.prototype.writeInt32BE=function(e,n,C){return e=+e,n|=0,C||V(this,e,n,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),i.TYPED_ARRAY_SUPPORT?(this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=255&e):U(this,e,n,!1),n+4},i.prototype.writeFloatLE=function(e,n,C){return K(this,e,n,!0,C)},i.prototype.writeFloatBE=function(e,n,C){return K(this,e,n,!1,C)},i.prototype.writeDoubleLE=function(e,n,C){return be(this,e,n,!0,C)},i.prototype.writeDoubleBE=function(e,n,C){return be(this,e,n,!1,C)},i.prototype.copy=function(e,n,C,b){if(C||(C=0),b||b===0||(b=this.length),n>=e.length&&(n=e.length),n||(n=0),b>0&&b<C&&(b=C),b===C)return 0;if(e.length===0||this.length===0)return 0;if(n<0)throw new RangeError("targetStart out of bounds");if(C<0||C>=this.length)throw new RangeError("sourceStart out of bounds");if(b<0)throw new RangeError("sourceEnd out of bounds");b>this.length&&(b=this.length),e.length-n<b-C&&(b=e.length-n+C);var S,ee=b-C;if(this===e&&C<n&&n<b)for(S=ee-1;S>=0;--S)e[S+n]=this[S+C];else if(ee<1e3||!i.TYPED_ARRAY_SUPPORT)for(S=0;S<ee;++S)e[S+n]=this[S+C];else Uint8Array.prototype.set.call(e,this.subarray(C,C+ee),n);return ee},i.prototype.fill=function(e,n,C,b){if(typeof e=="string"){if(typeof n=="string"?(b=n,n=0,C=this.length):typeof C=="string"&&(b=C,C=this.length),e.length===1){var S=e.charCodeAt(0);S<256&&(e=S)}if(b!==void 0&&typeof b!="string")throw new TypeError("encoding must be a string");if(typeof b=="string"&&!i.isEncoding(b))throw new TypeError("Unknown encoding: "+b)}else typeof e=="number"&&(e&=255);if(n<0||this.length<n||this.length<C)throw new RangeError("Out of range index");if(C<=n)return this;n>>>=0,C=C===void 0?this.length:C>>>0,e||(e=0);var ee;if(typeof e=="number")for(ee=n;ee<C;++ee)this[ee]=e;else{var fe=i.isBuffer(e)?e:ve(new i(e,b).toString()),Me=fe.length;for(ee=0;ee<C-n;++ee)this[ee+n]=fe[ee%Me]}return this};var I=/[^+\/0-9A-Za-z-_]/g}).call(this,typeof ke!="undefined"?ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"base64-js":34,ieee754:161,isarray:166}],39:[function(r,O,p){O.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,O,p){"use strict";var c=function(){this.buffer=[],this.fns=[]};c.prototype.push=function(s,i){if(this.fns.length)return this.fns.shift()(null,s);var h={data:s,priority:i},o=d(this.buffer,h,function(t){return t.priority});this.buffer.splice(o,0,h)},c.prototype.next=function(){var s=this;return function(i){if(s.buffer.length)return i(null,s.buffer.pop().data);s.fns.push(i)}};var d=function(s,i,h){i=h(i);for(var o=0,t=s?s.length:o;o<t;){var a=o+t>>>1;h(s[a])<i?o=a+1:t=a}return o};O.exports=c},{}],41:[function(r,O,p){function c(v){var u=this,w=f.call(arguments,1);return new Promise(function(A,E){function x(y){var j;try{j=v.next(y)}catch(L){return E(L)}g(j)}function k(y){var j;try{j=v.throw(y)}catch(L){return E(L)}g(j)}function g(y){if(y.done)return A(y.value);var j=d.call(u,y.value);return j&&o(j)?j.then(x,k):k(new TypeError('You may only yield a function, promise, generator, array, or object, but the following object was passed: "'+String(y.value)+'"'))}if(typeof v=="function"&&(v=v.apply(u,w)),!v||typeof v.next!="function")return A(v);x()})}function d(v){return v&&(o(v)?v:a(v)||t(v)?c.call(this,v):typeof v=="function"?s.call(this,v):Array.isArray(v)?i.call(this,v):l(v)?h.call(this,v):v)}function s(v){var u=this;return new Promise(function(w,A){v.call(u,function(E,x){if(E)return A(E);arguments.length>2&&(x=f.call(arguments,1)),w(x)})})}function i(v){return Promise.all(v.map(d,this))}function h(v){for(var u=new v.constructor,w=Object.keys(v),A=[],E=0;E<w.length;E++){var x=w[E],k=d.call(this,v[x]);k&&o(k)?function(g,y){u[y]=void 0,A.push(g.then(function(j){u[y]=j}))}(k,x):u[x]=v[x]}return Promise.all(A).then(function(){return u})}function o(v){return typeof v.then=="function"}function t(v){return typeof v.next=="function"&&typeof v.throw=="function"}function a(v){var u=v.constructor;return!!u&&(u.name==="GeneratorFunction"||u.displayName==="GeneratorFunction"||t(u.prototype))}function l(v){return Object==v.constructor}var f=Array.prototype.slice;O.exports=c.default=c.co=c,c.wrap=function(v){function u(){return c.call(this,v.apply(this,arguments))}return u.__generatorFunction__=v,u}},{}],42:[function(r,O,p){O.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,O,p){"use strict";function c(i,h){if(!(this instanceof c))return new c(i,h);this.src=i,this._withAccess=h}function d(i,h){return i[h]===void 0&&i.__lookupGetter__(h)===void 0&&i.__lookupSetter__(h)===void 0}var s=Array.prototype.slice;O.exports=c,c.prototype.withAccess=function(i){return this._withAccess=i!==!1,this},c.prototype.pick=function(i){return Array.isArray(i)||(i=s.call(arguments)),i.length&&(this.keys=i),this},c.prototype.to=function(i){if(i=i||{},!this.src)return i;var h=this.keys||Object.keys(this.src);if(!this._withAccess){for(var o=0;o<h.length;o++)t=h[o],i[t]===void 0&&(i[t]=this.src[t]);return i}for(var o=0;o<h.length;o++){var t=h[o];if(d(i,t)){var a=this.src.__lookupGetter__(t),l=this.src.__lookupSetter__(t);a&&i.__defineGetter__(t,a),l&&i.__defineSetter__(t,l),a||l||(i[t]=this.src[t])}}return i},c.prototype.toCover=function(i){for(var h=this.keys||Object.keys(this.src),o=0;o<h.length;o++){var t=h[o];delete i[t];var a=this.src.__lookupGetter__(t),l=this.src.__lookupSetter__(t);a&&i.__defineGetter__(t,a),l&&i.__defineSetter__(t,l),a||l||(i[t]=this.src[t])}},c.prototype.override=c.prototype.toCover,c.prototype.and=function(i){var h={};return this.to(h),this.src=i,this.to(h),this.src=h,this}},{}],44:[function(r,O,p){r("../../modules/es6.string.iterator"),r("../../modules/es6.array.from"),O.exports=r("../../modules/_core").Array.from},{"../../modules/_core":65,"../../modules/es6.array.from":133,"../../modules/es6.string.iterator":145}],45:[function(r,O,p){var c=r("../../modules/_core"),d=c.JSON||(c.JSON={stringify:JSON.stringify});O.exports=function(s){return d.stringify.apply(d,arguments)}},{"../../modules/_core":65}],46:[function(r,O,p){r("../../modules/es6.object.assign"),O.exports=r("../../modules/_core").Object.assign},{"../../modules/_core":65,"../../modules/es6.object.assign":136}],47:[function(r,O,p){r("../../modules/es6.object.create");var c=r("../../modules/_core").Object;O.exports=function(d,s){return c.create(d,s)}},{"../../modules/_core":65,"../../modules/es6.object.create":137}],48:[function(r,O,p){r("../../modules/es6.object.define-property");var c=r("../../modules/_core").Object;O.exports=function(d,s,i){return c.defineProperty(d,s,i)}},{"../../modules/_core":65,"../../modules/es6.object.define-property":138}],49:[function(r,O,p){r("../../modules/es6.object.get-own-property-names");var c=r("../../modules/_core").Object;O.exports=function(d){return c.getOwnPropertyNames(d)}},{"../../modules/_core":65,"../../modules/es6.object.get-own-property-names":139}],50:[function(r,O,p){r("../../modules/es6.object.get-prototype-of"),O.exports=r("../../modules/_core").Object.getPrototypeOf},{"../../modules/_core":65,"../../modules/es6.object.get-prototype-of":140}],51:[function(r,O,p){r("../../modules/es6.object.keys"),O.exports=r("../../modules/_core").Object.keys},{"../../modules/_core":65,"../../modules/es6.object.keys":141}],52:[function(r,O,p){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"),O.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,O,p){r("../modules/web.immediate"),O.exports=r("../modules/_core").setImmediate},{"../modules/_core":65,"../modules/web.immediate":152}],54:[function(r,O,p){r("../../modules/es6.string.from-code-point"),O.exports=r("../../modules/_core").String.fromCodePoint},{"../../modules/_core":65,"../../modules/es6.string.from-code-point":144}],55:[function(r,O,p){r("../../modules/es6.function.has-instance"),O.exports=r("../../modules/_wks-ext").f("hasInstance")},{"../../modules/_wks-ext":130,"../../modules/es6.function.has-instance":135}],56:[function(r,O,p){r("../../modules/es6.symbol"),r("../../modules/es6.object.to-string"),r("../../modules/es7.symbol.async-iterator"),r("../../modules/es7.symbol.observable"),O.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,O,p){r("../../modules/es6.string.iterator"),r("../../modules/web.dom.iterable"),O.exports=r("../../modules/_wks-ext").f("iterator")},{"../../modules/_wks-ext":130,"../../modules/es6.string.iterator":145,"../../modules/web.dom.iterable":151}],58:[function(r,O,p){O.exports=function(c){if(typeof c!="function")throw TypeError(c+" is not a function!");return c}},{}],59:[function(r,O,p){O.exports=function(){}},{}],60:[function(r,O,p){O.exports=function(c,d,s,i){if(!(c instanceof d)||i!==void 0&&i in c)throw TypeError(s+": incorrect invocation!");return c}},{}],61:[function(r,O,p){var c=r("./_is-object");O.exports=function(d){if(!c(d))throw TypeError(d+" is not an object!");return d}},{"./_is-object":85}],62:[function(r,O,p){var c=r("./_to-iobject"),d=r("./_to-length"),s=r("./_to-absolute-index");O.exports=function(i){return function(h,o,t){var a,l=c(h),f=d(l.length),v=s(t,f);if(i&&o!=o){for(;f>v;)if((a=l[v++])!=a)return!0}else for(;f>v;v++)if((i||v in l)&&l[v]===o)return i||v||0;return!i&&-1}}},{"./_to-absolute-index":121,"./_to-iobject":123,"./_to-length":124}],63:[function(r,O,p){var c=r("./_cof"),d=r("./_wks")("toStringTag"),s=c(function(){return arguments}())=="Arguments",i=function(h,o){try{return h[o]}catch(t){}};O.exports=function(h){var o,t,a;return h===void 0?"Undefined":h===null?"Null":typeof(t=i(o=Object(h),d))=="string"?t:s?c(o):(a=c(o))=="Object"&&typeof o.callee=="function"?"Arguments":a}},{"./_cof":64,"./_wks":131}],64:[function(r,O,p){var c={}.toString;O.exports=function(d){return c.call(d).slice(8,-1)}},{}],65:[function(r,O,p){var c=O.exports={version:"2.5.7"};typeof __e=="number"&&(__e=c)},{}],66:[function(r,O,p){"use strict";var c=r("./_object-dp"),d=r("./_property-desc");O.exports=function(s,i,h){i in s?c.f(s,i,d(0,h)):s[i]=h}},{"./_object-dp":98,"./_property-desc":111}],67:[function(r,O,p){var c=r("./_a-function");O.exports=function(d,s,i){if(c(d),s===void 0)return d;switch(i){case 1:return function(h){return d.call(s,h)};case 2:return function(h,o){return d.call(s,h,o)};case 3:return function(h,o,t){return d.call(s,h,o,t)}}return function(){return d.apply(s,arguments)}}},{"./_a-function":58}],68:[function(r,O,p){O.exports=function(c){if(c==null)throw TypeError("Can't call method on "+c);return c}},{}],69:[function(r,O,p){O.exports=!r("./_fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./_fails":74}],70:[function(r,O,p){var c=r("./_is-object"),d=r("./_global").document,s=c(d)&&c(d.createElement);O.exports=function(i){return s?d.createElement(i):{}}},{"./_global":76,"./_is-object":85}],71:[function(r,O,p){O.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],72:[function(r,O,p){var c=r("./_object-keys"),d=r("./_object-gops"),s=r("./_object-pie");O.exports=function(i){var h=c(i),o=d.f;if(o)for(var t,a=o(i),l=s.f,f=0;a.length>f;)l.call(i,t=a[f++])&&h.push(t);return h}},{"./_object-gops":103,"./_object-keys":106,"./_object-pie":107}],73:[function(r,O,p){var c=r("./_global"),d=r("./_core"),s=r("./_ctx"),i=r("./_hide"),h=r("./_has"),o=function(t,a,l){var f,v,u,w=t&o.F,A=t&o.G,E=t&o.S,x=t&o.P,k=t&o.B,g=t&o.W,y=A?d:d[a]||(d[a]={}),j=y.prototype,L=A?c:E?c[a]:(c[a]||{}).prototype;A&&(l=a);for(f in l)(v=!w&&L&&L[f]!==void 0)&&h(y,f)||(u=v?L[f]:l[f],y[f]=A&&typeof L[f]!="function"?l[f]:k&&v?s(u,c):g&&L[f]==u?function(_){var z=function(M,P,F){if(this instanceof _){switch(arguments.length){case 0:return new _;case 1:return new _(M);case 2:return new _(M,P)}return new _(M,P,F)}return _.apply(this,arguments)};return z.prototype=_.prototype,z}(u):x&&typeof u=="function"?s(Function.call,u):u,x&&((y.virtual||(y.virtual={}))[f]=u,t&o.R&&j&&!j[f]&&i(j,f,u)))};o.F=1,o.G=2,o.S=4,o.P=8,o.B=16,o.W=32,o.U=64,o.R=128,O.exports=o},{"./_core":65,"./_ctx":67,"./_global":76,"./_has":77,"./_hide":78}],74:[function(r,O,p){O.exports=function(c){try{return!!c()}catch(d){return!0}}},{}],75:[function(r,O,p){var c=r("./_ctx"),d=r("./_iter-call"),s=r("./_is-array-iter"),i=r("./_an-object"),h=r("./_to-length"),o=r("./core.get-iterator-method"),t={},a={},p=O.exports=function(l,f,v,u,w){var A,E,x,k,g=w?function(){return l}:o(l),y=c(v,u,f?2:1),j=0;if(typeof g!="function")throw TypeError(l+" is not iterable!");if(s(g)){for(A=h(l.length);A>j;j++)if((k=f?y(i(E=l[j])[0],E[1]):y(l[j]))===t||k===a)return k}else for(x=g.call(l);!(E=x.next()).done;)if((k=d(x,y,E.value,f))===t||k===a)return k};p.BREAK=t,p.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,O,p){var c=O.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=c)},{}],77:[function(r,O,p){var c={}.hasOwnProperty;O.exports=function(d,s){return c.call(d,s)}},{}],78:[function(r,O,p){var c=r("./_object-dp"),d=r("./_property-desc");O.exports=r("./_descriptors")?function(s,i,h){return c.f(s,i,d(1,h))}:function(s,i,h){return s[i]=h,s}},{"./_descriptors":69,"./_object-dp":98,"./_property-desc":111}],79:[function(r,O,p){var c=r("./_global").document;O.exports=c&&c.documentElement},{"./_global":76}],80:[function(r,O,p){O.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,O,p){O.exports=function(c,d,s){var i=s===void 0;switch(d.length){case 0:return i?c():c.call(s);case 1:return i?c(d[0]):c.call(s,d[0]);case 2:return i?c(d[0],d[1]):c.call(s,d[0],d[1]);case 3:return i?c(d[0],d[1],d[2]):c.call(s,d[0],d[1],d[2]);case 4:return i?c(d[0],d[1],d[2],d[3]):c.call(s,d[0],d[1],d[2],d[3])}return c.apply(s,d)}},{}],82:[function(r,O,p){var c=r("./_cof");O.exports=Object("z").propertyIsEnumerable(0)?Object:function(d){return c(d)=="String"?d.split(""):Object(d)}},{"./_cof":64}],83:[function(r,O,p){var c=r("./_iterators"),d=r("./_wks")("iterator"),s=Array.prototype;O.exports=function(i){return i!==void 0&&(c.Array===i||s[d]===i)}},{"./_iterators":91,"./_wks":131}],84:[function(r,O,p){var c=r("./_cof");O.exports=Array.isArray||function(d){return c(d)=="Array"}},{"./_cof":64}],85:[function(r,O,p){O.exports=function(c){return typeof c=="object"?c!==null:typeof c=="function"}},{}],86:[function(r,O,p){var c=r("./_an-object");O.exports=function(d,s,i,h){try{return h?s(c(i)[0],i[1]):s(i)}catch(t){var o=d.return;throw o!==void 0&&c(o.call(d)),t}}},{"./_an-object":61}],87:[function(r,O,p){"use strict";var c=r("./_object-create"),d=r("./_property-desc"),s=r("./_set-to-string-tag"),i={};r("./_hide")(i,r("./_wks")("iterator"),function(){return this}),O.exports=function(h,o,t){h.prototype=c(i,{next:d(1,t)}),s(h,o+" Iterator")}},{"./_hide":78,"./_object-create":97,"./_property-desc":111,"./_set-to-string-tag":115,"./_wks":131}],88:[function(r,O,p){"use strict";var c=r("./_library"),d=r("./_export"),s=r("./_redefine"),i=r("./_hide"),h=r("./_iterators"),o=r("./_iter-create"),t=r("./_set-to-string-tag"),a=r("./_object-gpo"),l=r("./_wks")("iterator"),f=!([].keys&&"next"in[].keys()),v=function(){return this};O.exports=function(u,w,A,E,x,k,g){o(A,w,E);var y,j,L,_=function(N){if(!f&&N in F)return F[N];switch(N){case"keys":case"values":return function(){return new A(this,N)}}return function(){return new A(this,N)}},z=w+" Iterator",M=x=="values",P=!1,F=u.prototype,$=F[l]||F["@@iterator"]||x&&F[x],Z=$||_(x),Q=x?M?_("entries"):Z:void 0,re=w=="Array"&&F.entries||$;if(re&&(L=a(re.call(new u)))!==Object.prototype&&L.next&&(t(L,z,!0),c||typeof L[l]=="function"||i(L,l,v)),M&&$&&$.name!=="values"&&(P=!0,Z=function(){return $.call(this)}),c&&!g||!f&&!P&&F[l]||i(F,l,Z),h[w]=Z,h[z]=v,x)if(y={values:M?Z:_("values"),keys:k?Z:_("keys"),entries:Q},g)for(j in y)j in F||s(F,j,y[j]);else d(d.P+d.F*(f||P),w,y);return y}},{"./_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,O,p){var c=r("./_wks")("iterator"),d=!1;try{var s=[7][c]();s.return=function(){d=!0},Array.from(s,function(){throw 2})}catch(i){}O.exports=function(i,h){if(!h&&!d)return!1;var o=!1;try{var t=[7],a=t[c]();a.next=function(){return{done:o=!0}},t[c]=function(){return a},i(t)}catch(l){}return o}},{"./_wks":131}],90:[function(r,O,p){O.exports=function(c,d){return{value:d,done:!!c}}},{}],91:[function(r,O,p){O.exports={}},{}],92:[function(r,O,p){O.exports=!0},{}],93:[function(r,O,p){var c=r("./_uid")("meta"),d=r("./_is-object"),s=r("./_has"),i=r("./_object-dp").f,h=0,o=Object.isExtensible||function(){return!0},t=!r("./_fails")(function(){return o(Object.preventExtensions({}))}),a=function(w){i(w,c,{value:{i:"O"+ ++h,w:{}}})},l=function(w,A){if(!d(w))return typeof w=="symbol"?w:(typeof w=="string"?"S":"P")+w;if(!s(w,c)){if(!o(w))return"F";if(!A)return"E";a(w)}return w[c].i},f=function(w,A){if(!s(w,c)){if(!o(w))return!0;if(!A)return!1;a(w)}return w[c].w},v=function(w){return t&&u.NEED&&o(w)&&!s(w,c)&&a(w),w},u=O.exports={KEY:c,NEED:!1,fastKey:l,getWeak:f,onFreeze:v}},{"./_fails":74,"./_has":77,"./_is-object":85,"./_object-dp":98,"./_uid":127}],94:[function(r,O,p){var c=r("./_global"),d=r("./_task").set,s=c.MutationObserver||c.WebKitMutationObserver,i=c.process,h=c.Promise,o=r("./_cof")(i)=="process";O.exports=function(){var t,a,l,f=function(){var A,E;for(o&&(A=i.domain)&&A.exit();t;){E=t.fn,t=t.next;try{E()}catch(x){throw t?l():a=void 0,x}}a=void 0,A&&A.enter()};if(o)l=function(){i.nextTick(f)};else if(!s||c.navigator&&c.navigator.standalone)if(h&&h.resolve){var v=h.resolve(void 0);l=function(){v.then(f)}}else l=function(){d.call(c,f)};else{var u=!0,w=document.createTextNode("");new s(f).observe(w,{characterData:!0}),l=function(){w.data=u=!u}}return function(A){var E={fn:A,next:void 0};a&&(a.next=E),t||(t=E,l()),a=E}}},{"./_cof":64,"./_global":76,"./_task":120}],95:[function(r,O,p){"use strict";function c(s){var i,h;this.promise=new s(function(o,t){if(i!==void 0||h!==void 0)throw TypeError("Bad Promise constructor");i=o,h=t}),this.resolve=d(i),this.reject=d(h)}var d=r("./_a-function");O.exports.f=function(s){return new c(s)}},{"./_a-function":58}],96:[function(r,O,p){"use strict";var c=r("./_object-keys"),d=r("./_object-gops"),s=r("./_object-pie"),i=r("./_to-object"),h=r("./_iobject"),o=Object.assign;O.exports=!o||r("./_fails")(function(){var t={},a={},l=Symbol(),f="abcdefghijklmnopqrst";return t[l]=7,f.split("").forEach(function(v){a[v]=v}),o({},t)[l]!=7||Object.keys(o({},a)).join("")!=f})?function(t,a){for(var l=i(t),f=arguments.length,v=1,u=d.f,w=s.f;f>v;)for(var A,E=h(arguments[v++]),x=u?c(E).concat(u(E)):c(E),k=x.length,g=0;k>g;)w.call(E,A=x[g++])&&(l[A]=E[A]);return l}:o},{"./_fails":74,"./_iobject":82,"./_object-gops":103,"./_object-keys":106,"./_object-pie":107,"./_to-object":125}],97:[function(r,O,p){var c=r("./_an-object"),d=r("./_object-dps"),s=r("./_enum-bug-keys"),i=r("./_shared-key")("IE_PROTO"),h=function(){},o=function(){var t,a=r("./_dom-create")("iframe"),l=s.length;for(a.style.display="none",r("./_html").appendChild(a),a.src="javascript:",t=a.contentWindow.document,t.open(),t.write("<script>document.F=Object</script>"),t.close(),o=t.F;l--;)delete o.prototype[s[l]];return o()};O.exports=Object.create||function(t,a){var l;return t!==null?(h.prototype=c(t),l=new h,h.prototype=null,l[i]=t):l=o(),a===void 0?l:d(l,a)}},{"./_an-object":61,"./_dom-create":70,"./_enum-bug-keys":71,"./_html":79,"./_object-dps":99,"./_shared-key":116}],98:[function(r,O,p){var c=r("./_an-object"),d=r("./_ie8-dom-define"),s=r("./_to-primitive"),i=Object.defineProperty;p.f=r("./_descriptors")?Object.defineProperty:function(h,o,t){if(c(h),o=s(o,!0),c(t),d)try{return i(h,o,t)}catch(a){}if("get"in t||"set"in t)throw TypeError("Accessors not supported!");return"value"in t&&(h[o]=t.value),h}},{"./_an-object":61,"./_descriptors":69,"./_ie8-dom-define":80,"./_to-primitive":126}],99:[function(r,O,p){var c=r("./_object-dp"),d=r("./_an-object"),s=r("./_object-keys");O.exports=r("./_descriptors")?Object.defineProperties:function(i,h){d(i);for(var o,t=s(h),a=t.length,l=0;a>l;)c.f(i,o=t[l++],h[o]);return i}},{"./_an-object":61,"./_descriptors":69,"./_object-dp":98,"./_object-keys":106}],100:[function(r,O,p){var c=r("./_object-pie"),d=r("./_property-desc"),s=r("./_to-iobject"),i=r("./_to-primitive"),h=r("./_has"),o=r("./_ie8-dom-define"),t=Object.getOwnPropertyDescriptor;p.f=r("./_descriptors")?t:function(a,l){if(a=s(a),l=i(l,!0),o)try{return t(a,l)}catch(f){}if(h(a,l))return d(!c.f.call(a,l),a[l])}},{"./_descriptors":69,"./_has":77,"./_ie8-dom-define":80,"./_object-pie":107,"./_property-desc":111,"./_to-iobject":123,"./_to-primitive":126}],101:[function(r,O,p){var c=r("./_to-iobject"),d=r("./_object-gopn").f,s={}.toString,i=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],h=function(o){try{return d(o)}catch(t){return i.slice()}};O.exports.f=function(o){return i&&s.call(o)=="[object Window]"?h(o):d(c(o))}},{"./_object-gopn":102,"./_to-iobject":123}],102:[function(r,O,p){var c=r("./_object-keys-internal"),d=r("./_enum-bug-keys").concat("length","prototype");p.f=Object.getOwnPropertyNames||function(s){return c(s,d)}},{"./_enum-bug-keys":71,"./_object-keys-internal":105}],103:[function(r,O,p){p.f=Object.getOwnPropertySymbols},{}],104:[function(r,O,p){var c=r("./_has"),d=r("./_to-object"),s=r("./_shared-key")("IE_PROTO"),i=Object.prototype;O.exports=Object.getPrototypeOf||function(h){return h=d(h),c(h,s)?h[s]:typeof h.constructor=="function"&&h instanceof h.constructor?h.constructor.prototype:h instanceof Object?i:null}},{"./_has":77,"./_shared-key":116,"./_to-object":125}],105:[function(r,O,p){var c=r("./_has"),d=r("./_to-iobject"),s=r("./_array-includes")(!1),i=r("./_shared-key")("IE_PROTO");O.exports=function(h,o){var t,a=d(h),l=0,f=[];for(t in a)t!=i&&c(a,t)&&f.push(t);for(;o.length>l;)c(a,t=o[l++])&&(~s(f,t)||f.push(t));return f}},{"./_array-includes":62,"./_has":77,"./_shared-key":116,"./_to-iobject":123}],106:[function(r,O,p){var c=r("./_object-keys-internal"),d=r("./_enum-bug-keys");O.exports=Object.keys||function(s){return c(s,d)}},{"./_enum-bug-keys":71,"./_object-keys-internal":105}],107:[function(r,O,p){p.f={}.propertyIsEnumerable},{}],108:[function(r,O,p){var c=r("./_export"),d=r("./_core"),s=r("./_fails");O.exports=function(i,h){var o=(d.Object||{})[i]||Object[i],t={};t[i]=h(o),c(c.S+c.F*s(function(){o(1)}),"Object",t)}},{"./_core":65,"./_export":73,"./_fails":74}],109:[function(r,O,p){O.exports=function(c){try{return{e:!1,v:c()}}catch(d){return{e:!0,v:d}}}},{}],110:[function(r,O,p){var c=r("./_an-object"),d=r("./_is-object"),s=r("./_new-promise-capability");O.exports=function(i,h){if(c(i),d(h)&&h.constructor===i)return h;var o=s.f(i);return(0,o.resolve)(h),o.promise}},{"./_an-object":61,"./_is-object":85,"./_new-promise-capability":95}],111:[function(r,O,p){O.exports=function(c,d){return{enumerable:!(1&c),configurable:!(2&c),writable:!(4&c),value:d}}},{}],112:[function(r,O,p){var c=r("./_hide");O.exports=function(d,s,i){for(var h in s)i&&d[h]?d[h]=s[h]:c(d,h,s[h]);return d}},{"./_hide":78}],113:[function(r,O,p){O.exports=r("./_hide")},{"./_hide":78}],114:[function(r,O,p){"use strict";var c=r("./_global"),d=r("./_core"),s=r("./_object-dp"),i=r("./_descriptors"),h=r("./_wks")("species");O.exports=function(o){var t=typeof d[o]=="function"?d[o]:c[o];i&&t&&!t[h]&&s.f(t,h,{configurable:!0,get:function(){return this}})}},{"./_core":65,"./_descriptors":69,"./_global":76,"./_object-dp":98,"./_wks":131}],115:[function(r,O,p){var c=r("./_object-dp").f,d=r("./_has"),s=r("./_wks")("toStringTag");O.exports=function(i,h,o){i&&!d(i=o?i:i.prototype,s)&&c(i,s,{configurable:!0,value:h})}},{"./_has":77,"./_object-dp":98,"./_wks":131}],116:[function(r,O,p){var c=r("./_shared")("keys"),d=r("./_uid");O.exports=function(s){return c[s]||(c[s]=d(s))}},{"./_shared":117,"./_uid":127}],117:[function(r,O,p){var c=r("./_core"),d=r("./_global"),s=d["__core-js_shared__"]||(d["__core-js_shared__"]={});(O.exports=function(i,h){return s[i]||(s[i]=h!==void 0?h:{})})("versions",[]).push({version:c.version,mode:r("./_library")?"pure":"global",copyright:"\u6F0F 2018 Denis Pushkarev (zloirock.ru)"})},{"./_core":65,"./_global":76,"./_library":92}],118:[function(r,O,p){var c=r("./_an-object"),d=r("./_a-function"),s=r("./_wks")("species");O.exports=function(i,h){var o,t=c(i).constructor;return t===void 0||(o=c(t)[s])==null?h:d(o)}},{"./_a-function":58,"./_an-object":61,"./_wks":131}],119:[function(r,O,p){var c=r("./_to-integer"),d=r("./_defined");O.exports=function(s){return function(i,h){var o,t,a=String(d(i)),l=c(h),f=a.length;return l<0||l>=f?s?"":void 0:(o=a.charCodeAt(l),o<55296||o>56319||l+1===f||(t=a.charCodeAt(l+1))<56320||t>57343?s?a.charAt(l):o:s?a.slice(l,l+2):t-56320+(o-55296<<10)+65536)}}},{"./_defined":68,"./_to-integer":122}],120:[function(r,O,p){var c,d,s,i=r("./_ctx"),h=r("./_invoke"),o=r("./_html"),t=r("./_dom-create"),a=r("./_global"),l=a.process,f=a.setImmediate,v=a.clearImmediate,u=a.MessageChannel,w=a.Dispatch,A=0,E={},x=function(){var g=+this;if(E.hasOwnProperty(g)){var y=E[g];delete E[g],y()}},k=function(g){x.call(g.data)};f&&v||(f=function(g){for(var y=[],j=1;arguments.length>j;)y.push(arguments[j++]);return E[++A]=function(){h(typeof g=="function"?g:Function(g),y)},c(A),A},v=function(g){delete E[g]},r("./_cof")(l)=="process"?c=function(g){l.nextTick(i(x,g,1))}:w&&w.now?c=function(g){w.now(i(x,g,1))}:u?(d=new u,s=d.port2,d.port1.onmessage=k,c=i(s.postMessage,s,1)):a.addEventListener&&typeof postMessage=="function"&&!a.importScripts?(c=function(g){a.postMessage(g+"","*")},a.addEventListener("message",k,!1)):c="onreadystatechange"in t("script")?function(g){o.appendChild(t("script")).onreadystatechange=function(){o.removeChild(this),x.call(g)}}:function(g){setTimeout(i(x,g,1),0)}),O.exports={set:f,clear:v}},{"./_cof":64,"./_ctx":67,"./_dom-create":70,"./_global":76,"./_html":79,"./_invoke":81}],121:[function(r,O,p){var c=r("./_to-integer"),d=Math.max,s=Math.min;O.exports=function(i,h){return i=c(i),i<0?d(i+h,0):s(i,h)}},{"./_to-integer":122}],122:[function(r,O,p){var c=Math.ceil,d=Math.floor;O.exports=function(s){return isNaN(s=+s)?0:(s>0?d:c)(s)}},{}],123:[function(r,O,p){var c=r("./_iobject"),d=r("./_defined");O.exports=function(s){return c(d(s))}},{"./_defined":68,"./_iobject":82}],124:[function(r,O,p){var c=r("./_to-integer"),d=Math.min;O.exports=function(s){return s>0?d(c(s),9007199254740991):0}},{"./_to-integer":122}],125:[function(r,O,p){var c=r("./_defined");O.exports=function(d){return Object(c(d))}},{"./_defined":68}],126:[function(r,O,p){var c=r("./_is-object");O.exports=function(d,s){if(!c(d))return d;var i,h;if(s&&typeof(i=d.toString)=="function"&&!c(h=i.call(d)))return h;if(typeof(i=d.valueOf)=="function"&&!c(h=i.call(d)))return h;if(!s&&typeof(i=d.toString)=="function"&&!c(h=i.call(d)))return h;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":85}],127:[function(r,O,p){var c=0,d=Math.random();O.exports=function(s){return"Symbol(".concat(s===void 0?"":s,")_",(++c+d).toString(36))}},{}],128:[function(r,O,p){var c=r("./_global"),d=c.navigator;O.exports=d&&d.userAgent||""},{"./_global":76}],129:[function(r,O,p){var c=r("./_global"),d=r("./_core"),s=r("./_library"),i=r("./_wks-ext"),h=r("./_object-dp").f;O.exports=function(o){var t=d.Symbol||(d.Symbol=s?{}:c.Symbol||{});o.charAt(0)=="_"||o in t||h(t,o,{value:i.f(o)})}},{"./_core":65,"./_global":76,"./_library":92,"./_object-dp":98,"./_wks-ext":130}],130:[function(r,O,p){p.f=r("./_wks")},{"./_wks":131}],131:[function(r,O,p){var c=r("./_shared")("wks"),d=r("./_uid"),s=r("./_global").Symbol,i=typeof s=="function";(O.exports=function(h){return c[h]||(c[h]=i&&s[h]||(i?s:d)("Symbol."+h))}).store=c},{"./_global":76,"./_shared":117,"./_uid":127}],132:[function(r,O,p){var c=r("./_classof"),d=r("./_wks")("iterator"),s=r("./_iterators");O.exports=r("./_core").getIteratorMethod=function(i){if(i!=null)return i[d]||i["@@iterator"]||s[c(i)]}},{"./_classof":63,"./_core":65,"./_iterators":91,"./_wks":131}],133:[function(r,O,p){"use strict";var c=r("./_ctx"),d=r("./_export"),s=r("./_to-object"),i=r("./_iter-call"),h=r("./_is-array-iter"),o=r("./_to-length"),t=r("./_create-property"),a=r("./core.get-iterator-method");d(d.S+d.F*!r("./_iter-detect")(function(l){Array.from(l)}),"Array",{from:function(l){var f,v,u,w,A=s(l),E=typeof this=="function"?this:Array,x=arguments.length,k=x>1?arguments[1]:void 0,g=k!==void 0,y=0,j=a(A);if(g&&(k=c(k,x>2?arguments[2]:void 0,2)),j==null||E==Array&&h(j))for(f=o(A.length),v=new E(f);f>y;y++)t(v,y,g?k(A[y],y):A[y]);else for(w=j.call(A),v=new E;!(u=w.next()).done;y++)t(v,y,g?i(w,k,[u.value,y],!0):u.value);return v.length=y,v}})},{"./_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,O,p){"use strict";var c=r("./_add-to-unscopables"),d=r("./_iter-step"),s=r("./_iterators"),i=r("./_to-iobject");O.exports=r("./_iter-define")(Array,"Array",function(h,o){this._t=i(h),this._i=0,this._k=o},function(){var h=this._t,o=this._k,t=this._i++;return!h||t>=h.length?(this._t=void 0,d(1)):o=="keys"?d(0,t):o=="values"?d(0,h[t]):d(0,[t,h[t]])},"values"),s.Arguments=s.Array,c("keys"),c("values"),c("entries")},{"./_add-to-unscopables":59,"./_iter-define":88,"./_iter-step":90,"./_iterators":91,"./_to-iobject":123}],135:[function(r,O,p){"use strict";var c=r("./_is-object"),d=r("./_object-gpo"),s=r("./_wks")("hasInstance"),i=Function.prototype;s in i||r("./_object-dp").f(i,s,{value:function(h){if(typeof this!="function"||!c(h))return!1;if(!c(this.prototype))return h instanceof this;for(;h=d(h);)if(this.prototype===h)return!0;return!1}})},{"./_is-object":85,"./_object-dp":98,"./_object-gpo":104,"./_wks":131}],136:[function(r,O,p){var c=r("./_export");c(c.S+c.F,"Object",{assign:r("./_object-assign")})},{"./_export":73,"./_object-assign":96}],137:[function(r,O,p){var c=r("./_export");c(c.S,"Object",{create:r("./_object-create")})},{"./_export":73,"./_object-create":97}],138:[function(r,O,p){var c=r("./_export");c(c.S+c.F*!r("./_descriptors"),"Object",{defineProperty:r("./_object-dp").f})},{"./_descriptors":69,"./_export":73,"./_object-dp":98}],139:[function(r,O,p){r("./_object-sap")("getOwnPropertyNames",function(){return r("./_object-gopn-ext").f})},{"./_object-gopn-ext":101,"./_object-sap":108}],140:[function(r,O,p){var c=r("./_to-object"),d=r("./_object-gpo");r("./_object-sap")("getPrototypeOf",function(){return function(s){return d(c(s))}})},{"./_object-gpo":104,"./_object-sap":108,"./_to-object":125}],141:[function(r,O,p){var c=r("./_to-object"),d=r("./_object-keys");r("./_object-sap")("keys",function(){return function(s){return d(c(s))}})},{"./_object-keys":106,"./_object-sap":108,"./_to-object":125}],142:[function(r,O,p){arguments[4][36][0].apply(p,arguments)},{dup:36}],143:[function(r,O,p){"use strict";var c,d,s,i,h=r("./_library"),o=r("./_global"),t=r("./_ctx"),a=r("./_classof"),l=r("./_export"),f=r("./_is-object"),v=r("./_a-function"),u=r("./_an-instance"),w=r("./_for-of"),A=r("./_species-constructor"),E=r("./_task").set,x=r("./_microtask")(),k=r("./_new-promise-capability"),g=r("./_perform"),y=r("./_user-agent"),j=r("./_promise-resolve"),L=o.TypeError,_=o.process,z=_&&_.versions,M=z&&z.v8||"",P=o.Promise,F=a(_)=="process",$=function(){},Z=d=k.f,Q=!!function(){try{var H=P.resolve(1),K=(H.constructor={})[r("./_wks")("species")]=function(be){be($,$)};return(F||typeof PromiseRejectionEvent=="function")&&H.then($)instanceof K&&M.indexOf("6.6")!==0&&y.indexOf("Chrome/66")===-1}catch(be){}}(),re=function(H){var K;return!(!f(H)||typeof(K=H.then)!="function")&&K},N=function(H,K){if(!H._n){H._n=!0;var be=H._c;x(function(){for(var ae=H._v,_e=H._s==1,se=0;be.length>se;)!function(ve){var te,J,q,he=_e?ve.ok:ve.fail,Y=ve.resolve,W=ve.reject,me=ve.domain;try{he?(_e||(H._h==2&&V(H),H._h=1),he===!0?te=ae:(me&&me.enter(),te=he(ae),me&&(me.exit(),q=!0)),te===ve.promise?W(L("Promise-chain cycle")):(J=re(te))?J.call(te,Y,W):Y(te)):W(ae)}catch(ge){me&&!q&&me.exit(),W(ge)}}(be[se++]);H._c=[],H._n=!1,K&&!H._h&&ue(H)})}},ue=function(H){E.call(o,function(){var K,be,ae,_e=H._v,se=G(H);if(se&&(K=g(function(){F?_.emit("unhandledRejection",_e,H):(be=o.onunhandledrejection)?be({promise:H,reason:_e}):(ae=o.console)&&ae.error&&ae.error("Unhandled promise rejection",_e)}),H._h=F||G(H)?2:1),H._a=void 0,se&&K.e)throw K.v})},G=function(H){return H._h!==1&&(H._a||H._c).length===0},V=function(H){E.call(o,function(){var K;F?_.emit("rejectionHandled",H):(K=o.onrejectionhandled)&&K({promise:H,reason:H._v})})},T=function(H){var K=this;K._d||(K._d=!0,K=K._w||K,K._v=H,K._s=2,K._a||(K._a=K._c.slice()),N(K,!0))},U=function(H){var K,be=this;if(!be._d){be._d=!0,be=be._w||be;try{if(be===H)throw L("Promise can't be resolved itself");(K=re(H))?x(function(){var ae={_w:be,_d:!1};try{K.call(H,t(U,ae,1),t(T,ae,1))}catch(_e){T.call(ae,_e)}}):(be._v=H,be._s=1,N(be,!1))}catch(ae){T.call({_w:be,_d:!1},ae)}}};Q||(P=function(H){u(this,P,"Promise","_h"),v(H),c.call(this);try{H(t(U,this,1),t(T,this,1))}catch(K){T.call(this,K)}},c=function(H){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},c.prototype=r("./_redefine-all")(P.prototype,{then:function(H,K){var be=Z(A(this,P));return be.ok=typeof H!="function"||H,be.fail=typeof K=="function"&&K,be.domain=F?_.domain:void 0,this._c.push(be),this._a&&this._a.push(be),this._s&&N(this,!1),be.promise},catch:function(H){return this.then(void 0,H)}}),s=function(){var H=new c;this.promise=H,this.resolve=t(U,H,1),this.reject=t(T,H,1)},k.f=Z=function(H){return H===P||H===i?new s(H):d(H)}),l(l.G+l.W+l.F*!Q,{Promise:P}),r("./_set-to-string-tag")(P,"Promise"),r("./_set-species")("Promise"),i=r("./_core").Promise,l(l.S+l.F*!Q,"Promise",{reject:function(H){var K=Z(this);return(0,K.reject)(H),K.promise}}),l(l.S+l.F*(h||!Q),"Promise",{resolve:function(H){return j(h&&this===i?P:this,H)}}),l(l.S+l.F*!(Q&&r("./_iter-detect")(function(H){P.all(H).catch($)})),"Promise",{all:function(H){var K=this,be=Z(K),ae=be.resolve,_e=be.reject,se=g(function(){var ve=[],te=0,J=1;w(H,!1,function(q){var he=te++,Y=!1;ve.push(void 0),J++,K.resolve(q).then(function(W){Y||(Y=!0,ve[he]=W,--J||ae(ve))},_e)}),--J||ae(ve)});return se.e&&_e(se.v),be.promise},race:function(H){var K=this,be=Z(K),ae=be.reject,_e=g(function(){w(H,!1,function(se){K.resolve(se).then(be.resolve,ae)})});return _e.e&&ae(_e.v),be.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,O,p){var c=r("./_export"),d=r("./_to-absolute-index"),s=String.fromCharCode,i=String.fromCodePoint;c(c.S+c.F*(!!i&&i.length!=1),"String",{fromCodePoint:function(h){for(var o,t=[],a=arguments.length,l=0;a>l;){if(o=+arguments[l++],d(o,1114111)!==o)throw RangeError(o+" is not a valid code point");t.push(o<65536?s(o):s(55296+((o-=65536)>>10),o%1024+56320))}return t.join("")}})},{"./_export":73,"./_to-absolute-index":121}],145:[function(r,O,p){"use strict";var c=r("./_string-at")(!0);r("./_iter-define")(String,"String",function(d){this._t=String(d),this._i=0},function(){var d,s=this._t,i=this._i;return i>=s.length?{value:void 0,done:!0}:(d=c(s,i),this._i+=d.length,{value:d,done:!1})})},{"./_iter-define":88,"./_string-at":119}],146:[function(r,O,p){"use strict";var c=r("./_global"),d=r("./_has"),s=r("./_descriptors"),i=r("./_export"),h=r("./_redefine"),o=r("./_meta").KEY,t=r("./_fails"),a=r("./_shared"),l=r("./_set-to-string-tag"),f=r("./_uid"),v=r("./_wks"),u=r("./_wks-ext"),w=r("./_wks-define"),A=r("./_enum-keys"),E=r("./_is-array"),x=r("./_an-object"),k=r("./_is-object"),g=r("./_to-iobject"),y=r("./_to-primitive"),j=r("./_property-desc"),L=r("./_object-create"),_=r("./_object-gopn-ext"),z=r("./_object-gopd"),M=r("./_object-dp"),P=r("./_object-keys"),F=z.f,$=M.f,Z=_.f,Q=c.Symbol,re=c.JSON,N=re&&re.stringify,ue=v("_hidden"),G=v("toPrimitive"),V={}.propertyIsEnumerable,T=a("symbol-registry"),U=a("symbols"),H=a("op-symbols"),K=Object.prototype,be=typeof Q=="function",ae=c.QObject,_e=!ae||!ae.prototype||!ae.prototype.findChild,se=s&&t(function(){return L($({},"a",{get:function(){return $(this,"a",{value:7}).a}})).a!=7})?function(C,b,S){var ee=F(K,b);ee&&delete K[b],$(C,b,S),ee&&C!==K&&$(K,b,ee)}:$,ve=function(C){var b=U[C]=L(Q.prototype);return b._k=C,b},te=be&&typeof Q.iterator=="symbol"?function(C){return typeof C=="symbol"}:function(C){return C instanceof Q},J=function(C,b,S){return C===K&&J(H,b,S),x(C),b=y(b,!0),x(S),d(U,b)?(S.enumerable?(d(C,ue)&&C[ue][b]&&(C[ue][b]=!1),S=L(S,{enumerable:j(0,!1)})):(d(C,ue)||$(C,ue,j(1,{})),C[ue][b]=!0),se(C,b,S)):$(C,b,S)},q=function(C,b){x(C);for(var S,ee=A(b=g(b)),fe=0,Me=ee.length;Me>fe;)J(C,S=ee[fe++],b[S]);return C},he=function(C,b){return b===void 0?L(C):q(L(C),b)},Y=function(C){var b=V.call(this,C=y(C,!0));return!(this===K&&d(U,C)&&!d(H,C))&&(!(b||!d(this,C)||!d(U,C)||d(this,ue)&&this[ue][C])||b)},W=function(C,b){if(C=g(C),b=y(b,!0),C!==K||!d(U,b)||d(H,b)){var S=F(C,b);return!S||!d(U,b)||d(C,ue)&&C[ue][b]||(S.enumerable=!0),S}},me=function(C){for(var b,S=Z(g(C)),ee=[],fe=0;S.length>fe;)d(U,b=S[fe++])||b==ue||b==o||ee.push(b);return ee},ge=function(C){for(var b,S=C===K,ee=Z(S?H:g(C)),fe=[],Me=0;ee.length>Me;)!d(U,b=ee[Me++])||S&&!d(K,b)||fe.push(U[b]);return fe};be||(Q=function(){if(this instanceof Q)throw TypeError("Symbol is not a constructor!");var C=f(arguments.length>0?arguments[0]:void 0),b=function(S){this===K&&b.call(H,S),d(this,ue)&&d(this[ue],C)&&(this[ue][C]=!1),se(this,C,j(1,S))};return s&&_e&&se(K,C,{configurable:!0,set:b}),ve(C)},h(Q.prototype,"toString",function(){return this._k}),z.f=W,M.f=J,r("./_object-gopn").f=_.f=me,r("./_object-pie").f=Y,r("./_object-gops").f=ge,s&&!r("./_library")&&h(K,"propertyIsEnumerable",Y,!0),u.f=function(C){return ve(v(C))}),i(i.G+i.W+i.F*!be,{Symbol:Q});for(var Ae="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),I=0;Ae.length>I;)v(Ae[I++]);for(var e=P(v.store),n=0;e.length>n;)w(e[n++]);i(i.S+i.F*!be,"Symbol",{for:function(C){return d(T,C+="")?T[C]:T[C]=Q(C)},keyFor:function(C){if(!te(C))throw TypeError(C+" is not a symbol!");for(var b in T)if(T[b]===C)return b},useSetter:function(){_e=!0},useSimple:function(){_e=!1}}),i(i.S+i.F*!be,"Object",{create:he,defineProperty:J,defineProperties:q,getOwnPropertyDescriptor:W,getOwnPropertyNames:me,getOwnPropertySymbols:ge}),re&&i(i.S+i.F*(!be||t(function(){var C=Q();return N([C])!="[null]"||N({a:C})!="{}"||N(Object(C))!="{}"})),"JSON",{stringify:function(C){for(var b,S,ee=[C],fe=1;arguments.length>fe;)ee.push(arguments[fe++]);if(S=b=ee[1],(k(b)||C!==void 0)&&!te(C))return E(b)||(b=function(Me,Oe){if(typeof S=="function"&&(Oe=S.call(this,Me,Oe)),!te(Oe))return Oe}),ee[1]=b,N.apply(re,ee)}}),Q.prototype[G]||r("./_hide")(Q.prototype,G,Q.prototype.valueOf),l(Q,"Symbol"),l(Math,"Math",!0),l(c.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,O,p){"use strict";var c=r("./_export"),d=r("./_core"),s=r("./_global"),i=r("./_species-constructor"),h=r("./_promise-resolve");c(c.P+c.R,"Promise",{finally:function(o){var t=i(this,d.Promise||s.Promise),a=typeof o=="function";return this.then(a?function(l){return h(t,o()).then(function(){return l})}:o,a?function(l){return h(t,o()).then(function(){throw l})}:o)}})},{"./_core":65,"./_export":73,"./_global":76,"./_promise-resolve":110,"./_species-constructor":118}],148:[function(r,O,p){"use strict";var c=r("./_export"),d=r("./_new-promise-capability"),s=r("./_perform");c(c.S,"Promise",{try:function(i){var h=d.f(this),o=s(i);return(o.e?h.reject:h.resolve)(o.v),h.promise}})},{"./_export":73,"./_new-promise-capability":95,"./_perform":109}],149:[function(r,O,p){r("./_wks-define")("asyncIterator")},{"./_wks-define":129}],150:[function(r,O,p){r("./_wks-define")("observable")},{"./_wks-define":129}],151:[function(r,O,p){r("./es6.array.iterator");for(var c=r("./_global"),d=r("./_hide"),s=r("./_iterators"),i=r("./_wks")("toStringTag"),h="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),o=0;o<h.length;o++){var t=h[o],a=c[t],l=a&&a.prototype;l&&!l[i]&&d(l,i,t),s[t]=s.Array}},{"./_global":76,"./_hide":78,"./_iterators":91,"./_wks":131,"./es6.array.iterator":134}],152:[function(r,O,p){var c=r("./_export"),d=r("./_task");c(c.G+c.B,{setImmediate:d.set,clearImmediate:d.clear})},{"./_export":73,"./_task":120}],153:[function(r,O,p){(function(c){"use strict";function d(y){return Array.isArray?Array.isArray(y):x(y)==="[object Array]"}function s(y){return typeof y=="boolean"}function i(y){return y===null}function h(y){return y==null}function o(y){return typeof y=="number"}function t(y){return typeof y=="string"}function a(y){return(y===void 0?"undefined":(0,g.default)(y))==="symbol"}function l(y){return y===void 0}function f(y){return x(y)==="[object RegExp]"}function v(y){return(y===void 0?"undefined":(0,g.default)(y))==="object"&&y!==null}function u(y){return x(y)==="[object Date]"}function w(y){return x(y)==="[object Error]"||y instanceof Error}function A(y){return typeof y=="function"}function E(y){return y===null||typeof y=="boolean"||typeof y=="number"||typeof y=="string"||(y===void 0?"undefined":(0,g.default)(y))==="symbol"||y===void 0}function x(y){return Object.prototype.toString.call(y)}var k=r("babel-runtime/helpers/typeof"),g=function(y){return y&&y.__esModule?y:{default:y}}(k);p.isArray=d,p.isBoolean=s,p.isNull=i,p.isNullOrUndefined=h,p.isNumber=o,p.isString=t,p.isSymbol=a,p.isUndefined=l,p.isRegExp=f,p.isObject=v,p.isDate=u,p.isError=w,p.isFunction=A,p.isPrimitive=E,p.isBuffer=c.isBuffer}).call(this,{isBuffer:r("../../is-buffer/index.js")})},{"../../is-buffer/index.js":163,"babel-runtime/helpers/typeof":32}],154:[function(r,O,p){"use strict";var c=r("babel-runtime/helpers/typeof"),d=function(s){return s&&s.__esModule?s:{default:s}}(c);!function(s){function i(l,f){for(l=String(l),f=f||2;l.length<f;)l="0"+l;return l}function h(l){var f=new Date(l.getFullYear(),l.getMonth(),l.getDate());f.setDate(f.getDate()-(f.getDay()+6)%7+3);var v=new Date(f.getFullYear(),0,4);v.setDate(v.getDate()-(v.getDay()+6)%7+3);var u=f.getTimezoneOffset()-v.getTimezoneOffset();f.setHours(f.getHours()-u);var w=(f-v)/6048e5;return 1+Math.floor(w)}function o(l){var f=l.getDay();return f===0&&(f=7),f}function t(l){return l===null?"null":l===void 0?"undefined":(l===void 0?"undefined":(0,d.default)(l))!=="object"?l===void 0?"undefined":(0,d.default)(l):Array.isArray(l)?"array":{}.toString.call(l).slice(8,-1).toLowerCase()}var a=function(){var l=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,f=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,v=/[^-+\dA-Z]/g;return function(u,w,A,E){if(arguments.length!==1||t(u)!=="string"||/\d/.test(u)||(w=u,u=void 0),u=u||new Date,u instanceof Date||(u=new Date(u)),isNaN(u))throw TypeError("Invalid date");w=String(a.masks[w]||w||a.masks.default);var x=w.slice(0,4);x!=="UTC:"&&x!=="GMT:"||(w=w.slice(4),A=!0,x==="GMT:"&&(E=!0));var k=A?"getUTC":"get",g=u[k+"Date"](),y=u[k+"Day"](),j=u[k+"Month"](),L=u[k+"FullYear"](),_=u[k+"Hours"](),z=u[k+"Minutes"](),M=u[k+"Seconds"](),P=u[k+"Milliseconds"](),F=A?0:u.getTimezoneOffset(),$=h(u),Z=o(u),Q={d:g,dd:i(g),ddd:a.i18n.dayNames[y],dddd:a.i18n.dayNames[y+7],m:j+1,mm:i(j+1),mmm:a.i18n.monthNames[j],mmmm:a.i18n.monthNames[j+12],yy:String(L).slice(2),yyyy:L,h:_%12||12,hh:i(_%12||12),H:_,HH:i(_),M:z,MM:i(z),s:M,ss:i(M),l:i(P,3),L:i(Math.round(P/10)),t:_<12?"a":"p",tt:_<12?"am":"pm",T:_<12?"A":"P",TT:_<12?"AM":"PM",Z:E?"GMT":A?"UTC":(String(u).match(f)||[""]).pop().replace(v,""),o:(F>0?"-":"+")+i(100*Math.floor(Math.abs(F)/60)+Math.abs(F)%60,4),S:["th","st","nd","rd"][g%10>3?0:(g%100-g%10!=10)*g%10],W:$,N:Z};return w.replace(l,function(re){return re in Q?Q[re]:re.slice(1,re.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 Re=="function"&&Re.amd?Re(function(){return a}):(p===void 0?"undefined":(0,d.default)(p))==="object"?O.exports=a:s.dateFormat=a}(void 0)},{"babel-runtime/helpers/typeof":32}],155:[function(r,O,p){(function(c){function d(){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 s(t){var a=this.useColors;if(t[0]=(a?"%c":"")+this.namespace+(a?" %c":" ")+t[0]+(a?"%c ":" ")+"+"+p.humanize(this.diff),a){var l="color: "+this.color;t.splice(1,0,l,"color: inherit");var f=0,v=0;t[0].replace(/%[a-zA-Z%]/g,function(u){u!=="%%"&&(f++,u==="%c"&&(v=f))}),t.splice(v,0,l)}}function i(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function h(t){try{t==null?p.storage.removeItem("debug"):p.storage.debug=t}catch(a){}}function o(){var t;try{t=p.storage.debug}catch(a){}return!t&&c!==void 0&&"env"in c&&(t=c.env.DEBUG),t}p=O.exports=r("./debug"),p.log=i,p.formatArgs=s,p.save=h,p.load=o,p.useColors=d,p.storage=typeof chrome!="undefined"&&chrome.storage!==void 0?chrome.storage.local:function(){try{return window.localStorage}catch(t){}}(),p.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],p.formatters.j=function(t){try{return JSON.stringify(t)}catch(a){return"[UnexpectedJSONParseError]: "+a.message}},p.enable(o())}).call(this,r("_process"))},{"./debug":156,_process:173}],156:[function(r,O,p){function c(a){var l,f=0;for(l in a)f=(f<<5)-f+a.charCodeAt(l),f|=0;return p.colors[Math.abs(f)%p.colors.length]}function d(a){function l(){if(l.enabled){var f=l,v=+new Date,u=v-(t||v);f.diff=u,f.prev=t,f.curr=v,t=v;for(var w=new Array(arguments.length),A=0;A<w.length;A++)w[A]=arguments[A];w[0]=p.coerce(w[0]),typeof w[0]!="string"&&w.unshift("%O");var E=0;w[0]=w[0].replace(/%([a-zA-Z%])/g,function(x,k){if(x==="%%")return x;E++;var g=p.formatters[k];if(typeof g=="function"){var y=w[E];x=g.call(f,y),w.splice(E,1),E--}return x}),p.formatArgs.call(f,w),(l.log||p.log||console.log.bind(console)).apply(f,w)}}return l.namespace=a,l.enabled=p.enabled(a),l.useColors=p.useColors(),l.color=c(a),typeof p.init=="function"&&p.init(l),l}function s(a){p.save(a),p.names=[],p.skips=[];for(var l=(typeof a=="string"?a:"").split(/[\s,]+/),f=l.length,v=0;v<f;v++)l[v]&&(a=l[v].replace(/\*/g,".*?"),a[0]==="-"?p.skips.push(new RegExp("^"+a.substr(1)+"$")):p.names.push(new RegExp("^"+a+"$")))}function i(){p.enable("")}function h(a){var l,f;for(l=0,f=p.skips.length;l<f;l++)if(p.skips[l].test(a))return!1;for(l=0,f=p.names.length;l<f;l++)if(p.names[l].test(a))return!0;return!1}function o(a){return a instanceof Error?a.stack||a.message:a}p=O.exports=d.debug=d.default=d,p.coerce=o,p.disable=i,p.enable=s,p.enabled=h,p.humanize=r("ms"),p.names=[],p.skips=[],p.formatters={};var t},{ms:169}],157:[function(r,O,p){"use strict";function c(s){var i=""+s,h=d.exec(i);if(!h)return i;var o,t="",a=0,l=0;for(a=h.index;a<i.length;a++){switch(i.charCodeAt(a)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 39:o="&#39;";break;case 60:o="&lt;";break;case 62:o="&gt;";break;default:continue}l!==a&&(t+=i.substring(l,a)),l=a+1,t+=o}return l!==a?t+i.substring(l,a):t}var d=/["'&<>]/;O.exports=c},{}],158:[function(r,O,p){function c(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function d(o){return typeof o=="function"}function s(o){return typeof o=="number"}function i(o){return typeof o=="object"&&o!==null}function h(o){return o===void 0}O.exports=c,c.EventEmitter=c,c.prototype._events=void 0,c.prototype._maxListeners=void 0,c.defaultMaxListeners=10,c.prototype.setMaxListeners=function(o){if(!s(o)||o<0||isNaN(o))throw TypeError("n must be a positive number");return this._maxListeners=o,this},c.prototype.emit=function(o){var t,a,l,f,v,u;if(this._events||(this._events={}),o==="error"&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var w=new Error('Uncaught, unspecified "error" event. ('+t+")");throw w.context=t,w}if(a=this._events[o],h(a))return!1;if(d(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:f=Array.prototype.slice.call(arguments,1),a.apply(this,f)}else if(i(a))for(f=Array.prototype.slice.call(arguments,1),u=a.slice(),l=u.length,v=0;v<l;v++)u[v].apply(this,f);return!0},c.prototype.addListener=function(o,t){var a;if(!d(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",o,d(t.listener)?t.listener:t),this._events[o]?i(this._events[o])?this._events[o].push(t):this._events[o]=[this._events[o],t]:this._events[o]=t,i(this._events[o])&&!this._events[o].warned&&(a=h(this._maxListeners)?c.defaultMaxListeners:this._maxListeners)&&a>0&&this._events[o].length>a&&(this._events[o].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[o].length),typeof console.trace=="function"&&console.trace()),this},c.prototype.on=c.prototype.addListener,c.prototype.once=function(o,t){function a(){this.removeListener(o,a),l||(l=!0,t.apply(this,arguments))}if(!d(t))throw TypeError("listener must be a function");var l=!1;return a.listener=t,this.on(o,a),this},c.prototype.removeListener=function(o,t){var a,l,f,v;if(!d(t))throw TypeError("listener must be a function");if(!this._events||!this._events[o])return this;if(a=this._events[o],f=a.length,l=-1,a===t||d(a.listener)&&a.listener===t)delete this._events[o],this._events.removeListener&&this.emit("removeListener",o,t);else if(i(a)){for(v=f;v-- >0;)if(a[v]===t||a[v].listener&&a[v].listener===t){l=v;break}if(l<0)return this;a.length===1?(a.length=0,delete this._events[o]):a.splice(l,1),this._events.removeListener&&this.emit("removeListener",o,t)}return this},c.prototype.removeAllListeners=function(o){var t,a;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[o]&&delete this._events[o],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[o],d(a))this.removeListener(o,a);else if(a)for(;a.length;)this.removeListener(o,a[a.length-1]);return delete this._events[o],this},c.prototype.listeners=function(o){return this._events&&this._events[o]?d(this._events[o])?[this._events[o]]:this._events[o].slice():[]},c.prototype.listenerCount=function(o){if(this._events){var t=this._events[o];if(d(t))return 1;if(t)return t.length}return 0},c.listenerCount=function(o,t){return o.listenerCount(t)}},{}],159:[function(r,O,p){var c=r("http"),d=O.exports;for(var s in c)c.hasOwnProperty(s)&&(d[s]=c[s]);d.request=function(i,h){return i||(i={}),i.scheme="https",i.protocol="https:",c.request.call(this,i,h)}},{http:196}],160:[function(r,O,p){"use strict";var c=r("util"),d=r("ms");O.exports=function(s){if(typeof s=="number")return s;var i=d(s);if(i===void 0){var h=new Error(c.format("humanize-ms(%j) result undefined",s));console.warn(h.stack)}return i}},{ms:169,util:207}],161:[function(r,O,p){p.read=function(c,d,s,i,h){var o,t,a=8*h-i-1,l=(1<<a)-1,f=l>>1,v=-7,u=s?h-1:0,w=s?-1:1,A=c[d+u];for(u+=w,o=A&(1<<-v)-1,A>>=-v,v+=a;v>0;o=256*o+c[d+u],u+=w,v-=8);for(t=o&(1<<-v)-1,o>>=-v,v+=i;v>0;t=256*t+c[d+u],u+=w,v-=8);if(o===0)o=1-f;else{if(o===l)return t?NaN:1/0*(A?-1:1);t+=Math.pow(2,i),o-=f}return(A?-1:1)*t*Math.pow(2,o-i)},p.write=function(c,d,s,i,h,o){var t,a,l,f=8*o-h-1,v=(1<<f)-1,u=v>>1,w=h===23?Math.pow(2,-24)-Math.pow(2,-77):0,A=i?0:o-1,E=i?1:-1,x=d<0||d===0&&1/d<0?1:0;for(d=Math.abs(d),isNaN(d)||d===1/0?(a=isNaN(d)?1:0,t=v):(t=Math.floor(Math.log(d)/Math.LN2),d*(l=Math.pow(2,-t))<1&&(t--,l*=2),d+=t+u>=1?w/l:w*Math.pow(2,1-u),d*l>=2&&(t++,l/=2),t+u>=v?(a=0,t=v):t+u>=1?(a=(d*l-1)*Math.pow(2,h),t+=u):(a=d*Math.pow(2,u-1)*Math.pow(2,h),t=0));h>=8;c[s+A]=255&a,A+=E,a/=256,h-=8);for(t=t<<h|a,f+=h;f>0;c[s+A]=255&t,A+=E,t/=256,f-=8);c[s+A-E]|=128*x}},{}],162:[function(r,O,p){typeof Object.create=="function"?O.exports=function(c,d){c.super_=d,c.prototype=Object.create(d.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}})}:O.exports=function(c,d){c.super_=d;var s=function(){};s.prototype=d.prototype,c.prototype=new s,c.prototype.constructor=c}},{}],163:[function(r,O,p){function c(s){return!!s.constructor&&typeof s.constructor.isBuffer=="function"&&s.constructor.isBuffer(s)}function d(s){return typeof s.readFloatLE=="function"&&typeof s.slice=="function"&&c(s.slice(0,0))}O.exports=function(s){return s!=null&&(c(s)||d(s)||!!s._isBuffer)}},{}],164:[function(r,O,p){!function(c){function d(h){return i.call(h).replace(/^[^{]*{\s*/,"").replace(/\s*}[^}]*$/,"")}function s(h){return typeof h=="function"&&(/^class(\s|\{\}$)/.test(i.call(h))||/^.*classCallCheck\(/.test(d(h)))}var i=Function.prototype.toString;p!==void 0?(O!==void 0&&O.exports&&(p=O.exports=s),p.isClass=s):typeof Re=="function"&&Re.amd?Re([],function(){return s}):c.isClass=s}(this)},{}],165:[function(r,O,p){"use strict";function c(o){var t=o.slice(2);return t=t[0].toLowerCase()+t.slice(1)}var d=r("core-util-is"),s=r("isstream"),i=r("is-class");Object.keys(d).map(function(o){p[c(o)]=d[o]}),p.stream=s,p.readableStream=s.isReadable,p.writableStream=s.isWritable,p.duplexStream=s.isDuplex,p.class=i,p.finite=function(o){return Number.isFinite(o)},p.NaN=function(o){return Number.isNaN(o)},p.generator=function(o){return o&&typeof o.next=="function"&&typeof o.throw=="function"},p.generatorFunction=function(o){return o&&o.constructor&&o.constructor.name==="GeneratorFunction"},p.asyncFunction=function(o){return o&&o.constructor&&o.constructor.name==="AsyncFunction"},p.promise=function(o){return o&&typeof o.then=="function"};var h=Math.pow(2,31);p.int=function(o){return d.isNumber(o)&&o%1==0},p.int32=function(o){return p.int(o)&&o<h&&o>=-h},p.long=function(o){return p.int(o)&&(o>=h||o<-h)},p.Long=function(o){return p.object(o)&&p.number(o.high)&&p.number(o.low)},p.double=function(o){return d.isNumber(o)&&!isNaN(o)&&o%1!=0},p.date=function(o){return o instanceof Date},p.regExp=function(o){return o instanceof RegExp},p.regexp=p.regExp,p.error=function(o){return o instanceof Error},p.array=function(o){return Array.isArray(o)}},{"core-util-is":153,"is-class":164,isstream:167}],166:[function(r,O,p){var c={}.toString;O.exports=Array.isArray||function(d){return c.call(d)=="[object Array]"}},{}],167:[function(r,O,p){function c(o){return o instanceof h.Stream}function d(o){return c(o)&&typeof o._read=="function"&&typeof o._readableState=="object"}function s(o){return c(o)&&typeof o._write=="function"&&typeof o._writableState=="object"}function i(o){return d(o)&&s(o)}var h=r("stream");O.exports=c,O.exports.isReadable=d,O.exports.isWritable=s,O.exports.isDuplex=i},{stream:195}],168:[function(r,O,p){"use strict";function c(s,i,h){if(!s)throw new TypeError("argument dest is required");if(!i)throw new TypeError("argument src is required");return h===void 0&&(h=!0),Object.getOwnPropertyNames(i).forEach(function(o){if(h||!d.call(s,o)){var t=Object.getOwnPropertyDescriptor(i,o);Object.defineProperty(s,o,t)}}),s}O.exports=c;var d=Object.prototype.hasOwnProperty},{}],169:[function(r,O,p){function c(f){if(f=String(f),!(f.length>100)){var v=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(f);if(v){var u=parseFloat(v[1]);switch((v[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return u*l;case"days":case"day":case"d":return u*a;case"hours":case"hour":case"hrs":case"hr":case"h":return u*t;case"minutes":case"minute":case"mins":case"min":case"m":return u*o;case"seconds":case"second":case"secs":case"sec":case"s":return u*h;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return}}}}function d(f){return f>=a?Math.round(f/a)+"d":f>=t?Math.round(f/t)+"h":f>=o?Math.round(f/o)+"m":f>=h?Math.round(f/h)+"s":f+"ms"}function s(f){return i(f,a,"day")||i(f,t,"hour")||i(f,o,"minute")||i(f,h,"second")||f+" ms"}function i(f,v,u){if(!(f<v))return f<1.5*v?Math.floor(f/v)+" "+u:Math.ceil(f/v)+" "+u+"s"}var h=1e3,o=60*h,t=60*o,a=24*t,l=365.25*a;O.exports=function(f,v){v=v||{};var u=typeof f;if(u==="string"&&f.length>0)return c(f);if(u==="number"&&isNaN(f)===!1)return v.long?s(f):d(f);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(f))}},{}],170:[function(r,O,p){(function(c){function d(o,t){for(var a=0,l=o.length-1;l>=0;l--){var f=o[l];f==="."?o.splice(l,1):f===".."?(o.splice(l,1),a++):a&&(o.splice(l,1),a--)}if(t)for(;a--;a)o.unshift("..");return o}function s(o){typeof o!="string"&&(o+="");var t,a=0,l=-1,f=!0;for(t=o.length-1;t>=0;--t)if(o.charCodeAt(t)===47){if(!f){a=t+1;break}}else l===-1&&(f=!1,l=t+1);return l===-1?"":o.slice(a,l)}function i(o,t){if(o.filter)return o.filter(t);for(var a=[],l=0;l<o.length;l++)t(o[l],l,o)&&a.push(o[l]);return a}p.resolve=function(){for(var o="",t=!1,a=arguments.length-1;a>=-1&&!t;a--){var l=a>=0?arguments[a]:c.cwd();if(typeof l!="string")throw new TypeError("Arguments to path.resolve must be strings");l&&(o=l+"/"+o,t=l.charAt(0)==="/")}return o=d(i(o.split("/"),function(f){return!!f}),!t).join("/"),(t?"/":"")+o||"."},p.normalize=function(o){var t=p.isAbsolute(o),a=h(o,-1)==="/";return o=d(i(o.split("/"),function(l){return!!l}),!t).join("/"),o||t||(o="."),o&&a&&(o+="/"),(t?"/":"")+o},p.isAbsolute=function(o){return o.charAt(0)==="/"},p.join=function(){var o=Array.prototype.slice.call(arguments,0);return p.normalize(i(o,function(t,a){if(typeof t!="string")throw new TypeError("Arguments to path.join must be strings");return t}).join("/"))},p.relative=function(o,t){function a(E){for(var x=0;x<E.length&&E[x]==="";x++);for(var k=E.length-1;k>=0&&E[k]==="";k--);return x>k?[]:E.slice(x,k-x+1)}o=p.resolve(o).substr(1),t=p.resolve(t).substr(1);for(var l=a(o.split("/")),f=a(t.split("/")),v=Math.min(l.length,f.length),u=v,w=0;w<v;w++)if(l[w]!==f[w]){u=w;break}for(var A=[],w=u;w<l.length;w++)A.push("..");return A=A.concat(f.slice(u)),A.join("/")},p.sep="/",p.delimiter=":",p.dirname=function(o){if(typeof o!="string"&&(o+=""),o.length===0)return".";for(var t=o.charCodeAt(0),a=t===47,l=-1,f=!0,v=o.length-1;v>=1;--v)if((t=o.charCodeAt(v))===47){if(!f){l=v;break}}else f=!1;return l===-1?a?"/":".":a&&l===1?"/":o.slice(0,l)},p.basename=function(o,t){var a=s(o);return t&&a.substr(-1*t.length)===t&&(a=a.substr(0,a.length-t.length)),a},p.extname=function(o){typeof o!="string"&&(o+="");for(var t=-1,a=0,l=-1,f=!0,v=0,u=o.length-1;u>=0;--u){var w=o.charCodeAt(u);if(w!==47)l===-1&&(f=!1,l=u+1),w===46?t===-1?t=u:v!==1&&(v=1):t!==-1&&(v=-1);else if(!f){a=u+1;break}}return t===-1||l===-1||v===0||v===1&&t===l-1&&t===a+1?"":o.slice(t,l)};var h="ab".substr(-1)==="b"?function(o,t,a){return o.substr(t,a)}:function(o,t,a){return t<0&&(t=o.length+t),o.substr(t,a)}}).call(this,r("_process"))},{_process:173}],171:[function(r,O,p){(function(c){(function(){"use strict";function d(M){return M=String(M),M.charAt(0).toUpperCase()+M.slice(1)}function s(M,P,F){var $={"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 P&&F&&/^Win/i.test(M)&&!/^Windows Phone /i.test(M)&&($=$[/[\d.]+$/.exec(M)])&&(M="Windows "+$),M=String(M),P&&F&&(M=M.replace(RegExp(P,"i"),F)),M=h(M.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 i(M,P){var F=-1,$=M?M.length:0;if(typeof $=="number"&&$>-1&&$<=g)for(;++F<$;)P(M[F],F,M);else o(M,P)}function h(M){return M=v(M),/^(?:webOS|i(?:OS|P))/.test(M)?M:d(M)}function o(M,P){for(var F in M)L.call(M,F)&&P(M[F],F,M)}function t(M){return M==null?d(M):_.call(M).slice(8,-1)}function a(M,P){var F=M!=null?typeof M[P]:"number";return!(/^(?:boolean|number|string|undefined)$/.test(F)||F=="object"&&!M[P])}function l(M){return String(M).replace(/([ -])(?!$)/g,"$1?")}function f(M,P){var F=null;return i(M,function($,Z){F=P(F,$,Z,M)}),F}function v(M){return String(M).replace(/^ +| +$/g,"")}function u(M){function P(C){return f(C,function(b,S){var ee=S.pattern||l(S);return!b&&(b=RegExp("\\b"+ee+" *\\d+[.\\w_]*","i").exec(M)||RegExp("\\b"+ee+" *\\w+-[\\w]*","i").exec(M)||RegExp("\\b"+ee+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(M))&&((b=String(S.label&&!RegExp(ee,"i").test(S.label)?S.label:b).split("/"))[1]&&!/[\d.]+/.test(b[0])&&(b[0]+=" "+b[1]),S=S.label||S,b=h(b[0].replace(RegExp(ee,"i"),S).replace(RegExp("; *(?:"+S+"[_-])?","i")," ").replace(RegExp("("+S+")[-_.]?(\\w)","i"),"$1 $2"))),b})}function F(){return this.description||""}var $=A,Z=M&&typeof M=="object"&&t(M)!="String";Z&&($=M,M=null);var Q=$.navigator||{},re=Q.userAgent||"";M||(M=re);var N,ue,G=Z?!!Q.likeChrome:/\bChrome\b/.test(M)&&!/internal|\n/i.test(_.toString()),V=Z?"Object":"ScriptBridgingProxyObject",T=Z?"Object":"Environment",U=Z&&$.java?"JavaPackage":t($.java),H=Z?"Object":"RuntimeObject",K=/\bJava/.test(U)&&$.java,be=K&&t($.environment)==T,ae=K?"a":"\u4F2A",_e=K?"b":"\u5C3E",se=$.document||{},ve=$.operamini||$.opera,te=y.test(te=Z&&ve?ve["[[Class]]"]:t(ve))?te:ve=null,J=M,q=[],he=null,Y=M==re,W=Y&&ve&&typeof ve.version=="function"&&ve.version(),me=function(C){return f(C,function(b,S){return b||RegExp("\\b"+(S.pattern||l(S))+"\\b","i").exec(M)&&(S.label||S)})}([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),ge=function(C){return f(C,function(b,S){return b||RegExp("\\b"+(S.pattern||l(S))+"\\b","i").exec(M)&&(S.label||S)})}(["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"]),Ae=P([{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"]),I=function(C){return f(C,function(b,S,ee){return b||(S[Ae]||S[/^[a-z]+(?: +[a-z]+\b)*/i.exec(Ae)]||RegExp("\\b"+l(ee)+"(?:\\b|\\w*\\d)","i").exec(M))&&ee})}({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(C){return f(C,function(b,S){var ee=S.pattern||l(S);return!b&&(b=RegExp("\\b"+ee+"(?:/[\\d.]+|[ \\w.]*)","i").exec(M))&&(b=s(b,ee,S.label||S)),b})}(["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(me&&(me=[me]),I&&!Ae&&(Ae=P([I])),(N=/\bGoogle TV\b/.exec(Ae))&&(Ae=N[0]),/\bSimulator\b/i.test(M)&&(Ae=(Ae?Ae+" ":"")+"Simulator"),ge=="Opera Mini"&&/\bOPiOS\b/.test(M)&&q.push("running in Turbo/Uncompressed mode"),ge=="IE"&&/\blike iPhone OS\b/.test(M)?(N=u(M.replace(/like iPhone OS/,"")),I=N.manufacturer,Ae=N.product):/^iP/.test(Ae)?(ge||(ge="Safari"),e="iOS"+((N=/ OS ([\d_]+)/i.exec(M))?" "+N[1].replace(/_/g,"."):"")):ge!="Konqueror"||/buntu/i.test(e)?I&&I!="Google"&&(/Chrome/.test(ge)&&!/\bMobile Safari\b/i.test(M)||/\bVita\b/.test(Ae))||/\bAndroid\b/.test(e)&&/^Chrome/.test(ge)&&/\bVersion\//i.test(M)?(ge="Android Browser",e=/\bAndroid\b/.test(e)?e:"Android"):ge=="Silk"?(/\bMobi/i.test(M)||(e="Android",q.unshift("desktop mode")),/Accelerated *= *true/i.test(M)&&q.unshift("accelerated")):ge=="PaleMoon"&&(N=/\bFirefox\/([\d.]+)\b/.exec(M))?q.push("identifying as Firefox "+N[1]):ge=="Firefox"&&(N=/\b(Mobile|Tablet|TV)\b/i.exec(M))?(e||(e="Firefox OS"),Ae||(Ae=N[1])):!ge||(N=!/\bMinefield\b/i.test(M)&&/\b(?:Firefox|Safari)\b/.exec(ge))?(ge&&!Ae&&/[\/,]|^[^(]+?\)/.test(M.slice(M.indexOf(N+"/")+8))&&(ge=null),(N=Ae||I||e)&&(Ae||I||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(e))&&(ge=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(e)?e:N)+" Browser")):ge=="Electron"&&(N=(/\bChrome\/([\d.]+)\b/.exec(M)||0)[1])&&q.push("Chromium "+N):e="Kubuntu",W||(W=function(C){return f(C,function(b,S){return b||(RegExp(S+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(M)||0)[1]||null})}(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",l(ge),"(?:Firefox|Minefield|NetFront)"])),(N=me=="iCab"&&parseFloat(W)>3&&"WebKit"||/\bOpera\b/.test(ge)&&(/\bOPR\b/.test(M)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(M)&&!/^(?:Trident|EdgeHTML)$/.test(me)&&"WebKit"||!me&&/\bMSIE\b/i.test(M)&&(e=="Mac OS"?"Tasman":"Trident")||me=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(ge)&&"NetFront")&&(me=[N]),ge=="IE"&&(N=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(M)||0)[1])?(ge+=" Mobile",e="Windows Phone "+(/\+$/.test(N)?N:N+".x"),q.unshift("desktop mode")):/\bWPDesktop\b/i.test(M)?(ge="IE Mobile",e="Windows Phone 8.x",q.unshift("desktop mode"),W||(W=(/\brv:([\d.]+)/.exec(M)||0)[1])):ge!="IE"&&me=="Trident"&&(N=/\brv:([\d.]+)/.exec(M))&&(ge&&q.push("identifying as "+ge+(W?" "+W:"")),ge="IE",W=N[1]),Y){if(a($,"global"))if(K&&(N=K.lang.System,J=N.getProperty("os.arch"),e=e||N.getProperty("os.name")+" "+N.getProperty("os.version")),be){try{W=$.require("ringo/engine").version.join("."),ge="RingoJS"}catch(C){(N=$.system)&&N.global.system==$.system&&(ge="Narwhal",e||(e=N[0].os||null))}ge||(ge="Rhino")}else typeof $.process=="object"&&!$.process.browser&&(N=$.process)&&(typeof N.versions=="object"&&(typeof N.versions.electron=="string"?(q.push("Node "+N.versions.node),ge="Electron",W=N.versions.electron):typeof N.versions.nw=="string"&&(q.push("Chromium "+W,"Node "+N.versions.node),ge="NW.js",W=N.versions.nw)),ge||(ge="Node.js",J=N.arch,e=N.platform,W=/[\d.]+/.exec(N.version),W=W?W[0]:null));else t(N=$.runtime)==V?(ge="Adobe AIR",e=N.flash.system.Capabilities.os):t(N=$.phantom)==H?(ge="PhantomJS",W=(N=N.version||null)&&N.major+"."+N.minor+"."+N.patch):typeof se.documentMode=="number"&&(N=/\bTrident\/(\d+)/i.exec(M))?(W=[W,se.documentMode],(N=+N[1]+4)!=W[1]&&(q.push("IE "+W[1]+" mode"),me&&(me[1]=""),W[1]=N),W=ge=="IE"?String(W[1].toFixed(1)):W[0]):typeof se.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(ge)&&(q.push("masking as "+ge+" "+W),ge="IE",W="11.0",me=["Trident"],e="Windows");e=e&&h(e)}if(W&&(N=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(W)||/(?:alpha|beta)(?: ?\d)?/i.exec(M+";"+(Y&&Q.appMinorVersion))||/\bMinefield\b/i.test(M)&&"a")&&(he=/b/i.test(N)?"beta":"alpha",W=W.replace(RegExp(N+"\\+?$"),"")+(he=="beta"?_e:ae)+(/\d+\+?/.exec(N)||"")),ge=="Fennec"||ge=="Firefox"&&/\b(?:Android|Firefox OS)\b/.test(e))ge="Firefox Mobile";else if(ge=="Maxthon"&&W)W=W.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(Ae))Ae=="Xbox 360"&&(e=null),Ae=="Xbox 360"&&/\bIEMobile\b/.test(M)&&q.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(ge)&&(!ge||Ae||/Browser|Mobi/.test(ge))||e!="Windows CE"&&!/Mobi/i.test(M))if(ge=="IE"&&Y)try{$.external===null&&q.unshift("platform preview")}catch(C){q.unshift("embedded")}else(/\bBlackBerry\b/.test(Ae)||/\bBB10\b/.test(M))&&(N=(RegExp(Ae.replace(/ +/g," *")+"/([.\\d]+)","i").exec(M)||0)[1]||W)?(N=[N,/BB10/.test(M)],e=(N[1]?(Ae=null,I="BlackBerry"):"Device Software")+" "+N[0],W=null):this!=o&&Ae!="Wii"&&(Y&&ve||/Opera/.test(ge)&&/\b(?:MSIE|Firefox)\b/i.test(M)||ge=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(e)||ge=="IE"&&(e&&!/^Win/.test(e)&&W>5.5||/\bWindows XP\b/.test(e)&&W>8||W==8&&!/\bTrident\b/.test(M)))&&!y.test(N=u.call(o,M.replace(y,"")+";"))&&N.name&&(N="ing as "+N.name+((N=N.version)?" "+N:""),y.test(ge)?(/\bIE\b/.test(N)&&e=="Mac OS"&&(e=null),N="identify"+N):(N="mask"+N,ge=te?h(te.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(N)&&(e=null),Y||(W=null)),me=["Presto"],q.push(N));else ge+=" Mobile";(N=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(M)||0)[1])&&(N=[parseFloat(N.replace(/\.(\d)$/,".0$1")),N],ge=="Safari"&&N[1].slice(-1)=="+"?(ge="WebKit Nightly",he="alpha",W=N[1].slice(0,-1)):W!=N[1]&&W!=(N[2]=(/\bSafari\/([\d.]+\+?)/i.exec(M)||0)[1])||(W=null),N[1]=(/\bChrome\/([\d.]+)/i.exec(M)||0)[1],N[0]==537.36&&N[2]==537.36&&parseFloat(N[1])>=28&&me=="WebKit"&&(me=["Blink"]),Y&&(G||N[1])?(me&&(me[1]="like Chrome"),N=N[1]||(N=N[0],N<530?1:N<532?2:N<532.05?3:N<533?4:N<534.03?5:N<534.07?6:N<534.1?7:N<534.13?8:N<534.16?9:N<534.24?10:N<534.3?11:N<535.01?12:N<535.02?"13+":N<535.07?15:N<535.11?16:N<535.19?17:N<536.05?18:N<536.1?19:N<537.01?20:N<537.11?"21+":N<537.13?23:N<537.18?24:N<537.24?25:N<537.36?26:me!="Blink"?"27":"28")):(me&&(me[1]="like Safari"),N=N[0],N=N<400?1:N<500?2:N<526?3:N<533?4:N<534?"4+":N<535?5:N<537?6:N<538?7:N<601?8:"8"),me&&(me[1]+=" "+(N+=typeof N=="number"?".x":/[.+]/.test(N)?"":"+")),ge=="Safari"&&(!W||parseInt(W)>45)&&(W=N)),ge=="Opera"&&(N=/\bzbov|zvav$/.exec(e))?(ge+=" ",q.unshift("desktop mode"),N=="zvav"?(ge+="Mini",W=null):ge+="Mobile",e=e.replace(RegExp(" *"+N+"$"),"")):ge=="Safari"&&/\bChrome\b/.exec(me&&me[1])&&(q.unshift("desktop mode"),ge="Chrome Mobile",W=null,/\bOS X\b/.test(e)?(I="Apple",e="iOS 4.3+"):e=null),W&&W.indexOf(N=/[\d.]+$/.exec(e))==0&&M.indexOf("/"+N+"-")>-1&&(e=v(e.replace(N,""))),me&&!/\b(?:Avant|Nook)\b/.test(ge)&&(/Browser|Lunascape|Maxthon/.test(ge)||ge!="Safari"&&/^iOS/.test(e)&&/\bSafari\b/.test(me[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(ge)&&me[1])&&(N=me[me.length-1])&&q.push(N),q.length&&(q=["("+q.join("; ")+")"]),I&&Ae&&Ae.indexOf(I)<0&&q.push("on "+I),Ae&&q.push((/^on /.test(q[q.length-1])?"":"on ")+Ae),e&&(N=/ ([\d.+]+)$/.exec(e),ue=N&&e.charAt(e.length-N[0].length-1)=="/",e={architecture:32,family:N&&!ue?e.replace(N[0],""):e,version:N?N[1]:null,toString:function(){var C=this.version;return this.family+(C&&!ue?" "+C:"")+(this.architecture==64?" 64-bit":"")}}),(N=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(J))&&!/\bi686\b/i.test(J)?(e&&(e.architecture=64,e.family=e.family.replace(RegExp(" *"+N),"")),ge&&(/\bWOW64\b/i.test(M)||Y&&/\w(?:86|32)$/.test(Q.cpuClass||Q.platform)&&!/\bWin64; x64\b/i.test(M))&&q.unshift("32-bit")):e&&/^OS X/.test(e.family)&&ge=="Chrome"&&parseFloat(W)>=39&&(e.architecture=64),M||(M=null);var n={};return n.description=M,n.layout=me&&me[0],n.manufacturer=I,n.name=ge,n.prerelease=he,n.product=Ae,n.ua=M,n.version=ge&&W,n.os=e||{architecture:null,family:null,version:null,toString:function(){return"null"}},n.parse=u,n.toString=F,n.version&&q.unshift(W),n.name&&q.unshift(ge),e&&ge&&(e!=String(e).split(" ")[0]||e!=ge.split(" ")[0]&&!Ae)&&q.push(Ae?"("+e+")":"on "+e),q.length&&(n.description=q.join(" ")),n}var w={function:!0,object:!0},A=w[typeof window]&&window||this,E=w[typeof p]&&p,x=w[typeof O]&&O&&!O.nodeType&&O,k=E&&x&&typeof c=="object"&&c;!k||k.global!==k&&k.window!==k&&k.self!==k||(A=k);var g=Math.pow(2,53)-1,y=/\bOpera/,j=Object.prototype,L=j.hasOwnProperty,_=j.toString,z=u();typeof Re=="function"&&typeof Re.amd=="object"&&Re.amd?(A.platform=z,Re(function(){return z})):E&&x?o(z,function(M,P){E[P]=M}):A.platform=z}).call(this)}).call(this,typeof ke!="undefined"?ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],172:[function(r,O,p){(function(c){"use strict";function d(s,i,h,o){if(typeof s!="function")throw new TypeError('"callback" argument must be a function');var t,a,l=arguments.length;switch(l){case 0:case 1:return c.nextTick(s);case 2:return c.nextTick(function(){s.call(null,i)});case 3:return c.nextTick(function(){s.call(null,i,h)});case 4:return c.nextTick(function(){s.call(null,i,h,o)});default:for(t=new Array(l-1),a=0;a<t.length;)t[a++]=arguments[a];return c.nextTick(function(){s.apply(null,t)})}}!c.version||c.version.indexOf("v0.")===0||c.version.indexOf("v1.")===0&&c.version.indexOf("v1.8.")!==0?O.exports={nextTick:d}:O.exports=c}).call(this,r("_process"))},{_process:173}],173:[function(r,O,p){function c(){throw new Error("setTimeout has not been defined")}function d(){throw new Error("clearTimeout has not been defined")}function s(x){if(l===setTimeout)return setTimeout(x,0);if((l===c||!l)&&setTimeout)return l=setTimeout,setTimeout(x,0);try{return l(x,0)}catch(k){try{return l.call(null,x,0)}catch(g){return l.call(this,x,0)}}}function i(x){if(f===clearTimeout)return clearTimeout(x);if((f===d||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(x);try{return f(x)}catch(k){try{return f.call(null,x)}catch(g){return f.call(this,x)}}}function h(){A&&u&&(A=!1,u.length?w=u.concat(w):E=-1,w.length&&o())}function o(){if(!A){var x=s(h);A=!0;for(var k=w.length;k;){for(u=w,w=[];++E<k;)u&&u[E].run();E=-1,k=w.length}u=null,A=!1,i(x)}}function t(x,k){this.fun=x,this.array=k}function a(){}var l,f,v=O.exports={};!function(){try{l=typeof setTimeout=="function"?setTimeout:c}catch(x){l=c}try{f=typeof clearTimeout=="function"?clearTimeout:d}catch(x){f=d}}();var u,w=[],A=!1,E=-1;v.nextTick=function(x){var k=new Array(arguments.length-1);if(arguments.length>1)for(var g=1;g<arguments.length;g++)k[g-1]=arguments[g];w.push(new t(x,k)),w.length!==1||A||s(o)},t.prototype.run=function(){this.fun.apply(null,this.array)},v.title="browser",v.browser=!0,v.env={},v.argv=[],v.version="",v.versions={},v.on=a,v.addListener=a,v.once=a,v.off=a,v.removeListener=a,v.removeAllListeners=a,v.emit=a,v.prependListener=a,v.prependOnceListener=a,v.listeners=function(x){return[]},v.binding=function(x){throw new Error("process.binding is not supported")},v.cwd=function(){return"/"},v.chdir=function(x){throw new Error("process.chdir is not supported")},v.umask=function(){return 0}},{}],174:[function(r,O,p){(function(c){!function(d){function s(U){throw new RangeError(ue[U])}function i(U,H){for(var K=U.length,be=[];K--;)be[K]=H(U[K]);return be}function h(U,H){var K=U.split("@"),be="";return K.length>1&&(be=K[0]+"@",U=K[1]),U=U.replace(N,"."),be+i(U.split("."),H).join(".")}function o(U){for(var H,K,be=[],ae=0,_e=U.length;ae<_e;)H=U.charCodeAt(ae++),H>=55296&&H<=56319&&ae<_e?(K=U.charCodeAt(ae++),(64512&K)==56320?be.push(((1023&H)<<10)+(1023&K)+65536):(be.push(H),ae--)):be.push(H);return be}function t(U){return i(U,function(H){var K="";return H>65535&&(H-=65536,K+=T(H>>>10&1023|55296),H=56320|1023&H),K+=T(H)}).join("")}function a(U){return U-48<10?U-22:U-65<26?U-65:U-97<26?U-97:L}function l(U,H){return U+22+75*(U<26)-((H!=0)<<5)}function f(U,H,K){var be=0;for(U=K?V(U/P):U>>1,U+=V(U/H);U>G*z>>1;be+=L)U=V(U/G);return V(be+(G+1)*U/(U+M))}function v(U){var H,K,be,ae,_e,se,ve,te,J,q,he=[],Y=U.length,W=0,me=$,ge=F;for(K=U.lastIndexOf(Z),K<0&&(K=0),be=0;be<K;++be)U.charCodeAt(be)>=128&&s("not-basic"),he.push(U.charCodeAt(be));for(ae=K>0?K+1:0;ae<Y;){for(_e=W,se=1,ve=L;ae>=Y&&s("invalid-input"),te=a(U.charCodeAt(ae++)),(te>=L||te>V((j-W)/se))&&s("overflow"),W+=te*se,J=ve<=ge?_:ve>=ge+z?z:ve-ge,!(te<J);ve+=L)q=L-J,se>V(j/q)&&s("overflow"),se*=q;H=he.length+1,ge=f(W-_e,H,_e==0),V(W/H)>j-me&&s("overflow"),me+=V(W/H),W%=H,he.splice(W++,0,me)}return t(he)}function u(U){var H,K,be,ae,_e,se,ve,te,J,q,he,Y,W,me,ge,Ae=[];for(U=o(U),Y=U.length,H=$,K=0,_e=F,se=0;se<Y;++se)(he=U[se])<128&&Ae.push(T(he));for(be=ae=Ae.length,ae&&Ae.push(Z);be<Y;){for(ve=j,se=0;se<Y;++se)(he=U[se])>=H&&he<ve&&(ve=he);for(W=be+1,ve-H>V((j-K)/W)&&s("overflow"),K+=(ve-H)*W,H=ve,se=0;se<Y;++se)if(he=U[se],he<H&&++K>j&&s("overflow"),he==H){for(te=K,J=L;q=J<=_e?_:J>=_e+z?z:J-_e,!(te<q);J+=L)ge=te-q,me=L-q,Ae.push(T(l(q+ge%me,0))),te=V(ge/me);Ae.push(T(l(te,0))),_e=f(K,W,be==ae),K=0,++be}++K,++H}return Ae.join("")}function w(U){return h(U,function(H){return Q.test(H)?v(H.slice(4).toLowerCase()):H})}function A(U){return h(U,function(H){return re.test(H)?"xn--"+u(H):H})}var E=typeof p=="object"&&p&&!p.nodeType&&p,x=typeof O=="object"&&O&&!O.nodeType&&O,k=typeof c=="object"&&c;k.global!==k&&k.window!==k&&k.self!==k||(d=k);var g,y,j=2147483647,L=36,_=1,z=26,M=38,P=700,F=72,$=128,Z="-",Q=/^xn--/,re=/[^\x20-\x7E]/,N=/[\x2E\u3002\uFF0E\uFF61]/g,ue={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},G=L-_,V=Math.floor,T=String.fromCharCode;if(g={version:"1.4.1",ucs2:{decode:o,encode:t},decode:v,encode:u,toASCII:A,toUnicode:w},typeof Re=="function"&&typeof Re.amd=="object"&&Re.amd)Re("punycode",function(){return g});else if(E&&x)if(O.exports==E)x.exports=g;else for(y in g)g.hasOwnProperty(y)&&(E[y]=g[y]);else d.punycode=g}(this)}).call(this,typeof ke!="undefined"?ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],175:[function(r,O,p){"use strict";function c(s,i){return Object.prototype.hasOwnProperty.call(s,i)}O.exports=function(s,i,h,o){i=i||"&",h=h||"=";var t={};if(typeof s!="string"||s.length===0)return t;var a=/\+/g;s=s.split(i);var l=1e3;o&&typeof o.maxKeys=="number"&&(l=o.maxKeys);var f=s.length;l>0&&f>l&&(f=l);for(var v=0;v<f;++v){var u,w,A,E,x=s[v].replace(a,"%20"),k=x.indexOf(h);k>=0?(u=x.substr(0,k),w=x.substr(k+1)):(u=x,w=""),A=decodeURIComponent(u),E=decodeURIComponent(w),c(t,A)?d(t[A])?t[A].push(E):t[A]=[t[A],E]:t[A]=E}return t};var d=Array.isArray||function(s){return Object.prototype.toString.call(s)==="[object Array]"}},{}],176:[function(r,O,p){"use strict";function c(h,o){if(h.map)return h.map(o);for(var t=[],a=0;a<h.length;a++)t.push(o(h[a],a));return t}var d=function(h){switch(typeof h){case"string":return h;case"boolean":return h?"true":"false";case"number":return isFinite(h)?h:"";default:return""}};O.exports=function(h,o,t,a){return o=o||"&",t=t||"=",h===null&&(h=void 0),typeof h=="object"?c(i(h),function(l){var f=encodeURIComponent(d(l))+t;return s(h[l])?c(h[l],function(v){return f+encodeURIComponent(d(v))}).join(o):f+encodeURIComponent(d(h[l]))}).join(o):a?encodeURIComponent(d(a))+t+encodeURIComponent(d(h)):""};var s=Array.isArray||function(h){return Object.prototype.toString.call(h)==="[object Array]"},i=Object.keys||function(h){var o=[];for(var t in h)Object.prototype.hasOwnProperty.call(h,t)&&o.push(t);return o}},{}],177:[function(r,O,p){"use strict";p.decode=p.parse=r("./decode"),p.encode=p.stringify=r("./encode")},{"./decode":175,"./encode":176}],178:[function(r,O,p){O.exports=r("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":179}],179:[function(r,O,p){"use strict";function c(A){if(!(this instanceof c))return new c(A);l.call(this,A),f.call(this,A),A&&A.readable===!1&&(this.readable=!1),A&&A.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,A&&A.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",d)}function d(){this.allowHalfOpen||this._writableState.ended||o.nextTick(s,this)}function s(A){A.end()}var i=r("babel-runtime/core-js/object/keys"),h=function(A){return A&&A.__esModule?A:{default:A}}(i),o=r("process-nextick-args"),t=h.default||function(A){var E=[];for(var x in A)E.push(x);return E};O.exports=c;var a=r("core-util-is");a.inherits=r("inherits");var l=r("./_stream_readable"),f=r("./_stream_writable");a.inherits(c,l);for(var v=t(f.prototype),u=0;u<v.length;u++){var w=v[u];c.prototype[w]||(c.prototype[w]=f.prototype[w])}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(A){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=A,this._writableState.destroyed=A)}}),c.prototype._destroy=function(A,E){this.push(null),this.end(),o.nextTick(E,A)}},{"./_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,O,p){"use strict";function c(i){if(!(this instanceof c))return new c(i);d.call(this,i)}O.exports=c;var d=r("./_stream_transform"),s=r("core-util-is");s.inherits=r("inherits"),s.inherits(c,d),c.prototype._transform=function(i,h,o){o(null,i)}},{"./_stream_transform":182,"core-util-is":153,inherits:162}],181:[function(r,O,p){(function(c,d){"use strict";function s(Y){return K.from(Y)}function i(Y){return K.isBuffer(Y)||Y instanceof be}function h(Y,W,me){if(typeof Y.prependListener=="function")return Y.prependListener(W,me);Y._events&&Y._events[W]?T(Y._events[W])?Y._events[W].unshift(me):Y._events[W]=[me,Y._events[W]]:Y.on(W,me)}function o(Y,W){V=V||r("./_stream_duplex"),Y=Y||{};var me=W instanceof V;this.objectMode=!!Y.objectMode,me&&(this.objectMode=this.objectMode||!!Y.readableObjectMode);var ge=Y.highWaterMark,Ae=Y.readableHighWaterMark,I=this.objectMode?16:16384;this.highWaterMark=ge||ge===0?ge:me&&(Ae||Ae===0)?Ae:I,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new te,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=Y.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,Y.encoding&&(ve||(ve=r("string_decoder/").StringDecoder),this.decoder=new ve(Y.encoding),this.encoding=Y.encoding)}function t(Y){if(V=V||r("./_stream_duplex"),!(this instanceof t))return new t(Y);this._readableState=new o(Y,this),this.readable=!0,Y&&(typeof Y.read=="function"&&(this._read=Y.read),typeof Y.destroy=="function"&&(this._destroy=Y.destroy)),H.call(this)}function a(Y,W,me,ge,Ae){var I=Y._readableState;if(W===null)I.reading=!1,A(Y,I);else{var e;Ae||(e=f(I,W)),e?Y.emit("error",e):I.objectMode||W&&W.length>0?(typeof W=="string"||I.objectMode||(0,ue.default)(W)===K.prototype||(W=s(W)),ge?I.endEmitted?Y.emit("error",new Error("stream.unshift() after end event")):l(Y,I,W,!0):I.ended?Y.emit("error",new Error("stream.push() after EOF")):(I.reading=!1,I.decoder&&!me?(W=I.decoder.write(W),I.objectMode||W.length!==0?l(Y,I,W,!1):k(Y,I)):l(Y,I,W,!1))):ge||(I.reading=!1)}return v(I)}function l(Y,W,me,ge){W.flowing&&W.length===0&&!W.sync?(Y.emit("data",me),Y.read(0)):(W.length+=W.objectMode?1:me.length,ge?W.buffer.unshift(me):W.buffer.push(me),W.needReadable&&E(Y)),k(Y,W)}function f(Y,W){var me;return i(W)||typeof W=="string"||W===void 0||Y.objectMode||(me=new TypeError("Invalid non-string/buffer chunk")),me}function v(Y){return!Y.ended&&(Y.needReadable||Y.length<Y.highWaterMark||Y.length===0)}function u(Y){return Y>=he?Y=he:(Y--,Y|=Y>>>1,Y|=Y>>>2,Y|=Y>>>4,Y|=Y>>>8,Y|=Y>>>16,Y++),Y}function w(Y,W){return Y<=0||W.length===0&&W.ended?0:W.objectMode?1:Y!==Y?W.flowing&&W.length?W.buffer.head.data.length:W.length:(Y>W.highWaterMark&&(W.highWaterMark=u(Y)),Y<=W.length?Y:W.ended?W.length:(W.needReadable=!0,0))}function A(Y,W){if(!W.ended){if(W.decoder){var me=W.decoder.end();me&&me.length&&(W.buffer.push(me),W.length+=W.objectMode?1:me.length)}W.ended=!0,E(Y)}}function E(Y){var W=Y._readableState;W.needReadable=!1,W.emittedReadable||(se("emitReadable",W.flowing),W.emittedReadable=!0,W.sync?G.nextTick(x,Y):x(Y))}function x(Y){se("emit readable"),Y.emit("readable"),z(Y)}function k(Y,W){W.readingMore||(W.readingMore=!0,G.nextTick(g,Y,W))}function g(Y,W){for(var me=W.length;!W.reading&&!W.flowing&&!W.ended&&W.length<W.highWaterMark&&(se("maybeReadMore read 0"),Y.read(0),me!==W.length);)me=W.length;W.readingMore=!1}function y(Y){return function(){var W=Y._readableState;se("pipeOnDrain",W.awaitDrain),W.awaitDrain&&W.awaitDrain--,W.awaitDrain===0&&U(Y,"data")&&(W.flowing=!0,z(Y))}}function j(Y){se("readable nexttick read 0"),Y.read(0)}function L(Y,W){W.resumeScheduled||(W.resumeScheduled=!0,G.nextTick(_,Y,W))}function _(Y,W){W.reading||(se("resume read 0"),Y.read(0)),W.resumeScheduled=!1,W.awaitDrain=0,Y.emit("resume"),z(Y),W.flowing&&!W.reading&&Y.read(0)}function z(Y){var W=Y._readableState;for(se("flow",W.flowing);W.flowing&&Y.read()!==null;);}function M(Y,W){if(W.length===0)return null;var me;return W.objectMode?me=W.buffer.shift():!Y||Y>=W.length?(me=W.decoder?W.buffer.join(""):W.buffer.length===1?W.buffer.head.data:W.buffer.concat(W.length),W.buffer.clear()):me=P(Y,W.buffer,W.decoder),me}function P(Y,W,me){var ge;return Y<W.head.data.length?(ge=W.head.data.slice(0,Y),W.head.data=W.head.data.slice(Y)):ge=Y===W.head.data.length?W.shift():me?F(Y,W):$(Y,W),ge}function F(Y,W){var me=W.head,ge=1,Ae=me.data;for(Y-=Ae.length;me=me.next;){var I=me.data,e=Y>I.length?I.length:Y;if(e===I.length?Ae+=I:Ae+=I.slice(0,Y),(Y-=e)===0){e===I.length?(++ge,me.next?W.head=me.next:W.head=W.tail=null):(W.head=me,me.data=I.slice(e));break}++ge}return W.length-=ge,Ae}function $(Y,W){var me=K.allocUnsafe(Y),ge=W.head,Ae=1;for(ge.data.copy(me),Y-=ge.data.length;ge=ge.next;){var I=ge.data,e=Y>I.length?I.length:Y;if(I.copy(me,me.length-Y,0,e),(Y-=e)===0){e===I.length?(++Ae,ge.next?W.head=ge.next:W.head=W.tail=null):(W.head=ge,ge.data=I.slice(e));break}++Ae}return W.length-=Ae,me}function Z(Y){var W=Y._readableState;if(W.length>0)throw new Error('"endReadable()" called on non-empty stream');W.endEmitted||(W.ended=!0,G.nextTick(Q,W,Y))}function Q(Y,W){Y.endEmitted||Y.length!==0||(Y.endEmitted=!0,W.readable=!1,W.emit("end"))}function re(Y,W){for(var me=0,ge=Y.length;me<ge;me++)if(Y[me]===W)return me;return-1}var N=r("babel-runtime/core-js/object/get-prototype-of"),ue=function(Y){return Y&&Y.__esModule?Y:{default:Y}}(N),G=r("process-nextick-args");O.exports=t;var V,T=r("isarray");t.ReadableState=o;var U=(r("events").EventEmitter,function(Y,W){return Y.listeners(W).length}),H=r("./internal/streams/stream"),K=r("safe-buffer").Buffer,be=d.Uint8Array||function(){},ae=r("core-util-is");ae.inherits=r("inherits");var _e=r("util"),se=void 0;se=_e&&_e.debuglog?_e.debuglog("stream"):function(){};var ve,te=r("./internal/streams/BufferList"),J=r("./internal/streams/destroy");ae.inherits(t,H);var q=["error","close","destroy","pause","resume"];Object.defineProperty(t.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(Y){this._readableState&&(this._readableState.destroyed=Y)}}),t.prototype.destroy=J.destroy,t.prototype._undestroy=J.undestroy,t.prototype._destroy=function(Y,W){this.push(null),W(Y)},t.prototype.push=function(Y,W){var me,ge=this._readableState;return ge.objectMode?me=!0:typeof Y=="string"&&(W=W||ge.defaultEncoding,W!==ge.encoding&&(Y=K.from(Y,W),W=""),me=!0),a(this,Y,W,!1,me)},t.prototype.unshift=function(Y){return a(this,Y,null,!0,!1)},t.prototype.isPaused=function(){return this._readableState.flowing===!1},t.prototype.setEncoding=function(Y){return ve||(ve=r("string_decoder/").StringDecoder),this._readableState.decoder=new ve(Y),this._readableState.encoding=Y,this};var he=8388608;t.prototype.read=function(Y){se("read",Y),Y=parseInt(Y,10);var W=this._readableState,me=Y;if(Y!==0&&(W.emittedReadable=!1),Y===0&&W.needReadable&&(W.length>=W.highWaterMark||W.ended))return se("read: emitReadable",W.length,W.ended),W.length===0&&W.ended?Z(this):E(this),null;if((Y=w(Y,W))===0&&W.ended)return W.length===0&&Z(this),null;var ge=W.needReadable;se("need readable",ge),(W.length===0||W.length-Y<W.highWaterMark)&&(ge=!0,se("length less than watermark",ge)),W.ended||W.reading?(ge=!1,se("reading or ended",ge)):ge&&(se("do read"),W.reading=!0,W.sync=!0,W.length===0&&(W.needReadable=!0),this._read(W.highWaterMark),W.sync=!1,W.reading||(Y=w(me,W)));var Ae;return Ae=Y>0?M(Y,W):null,Ae===null?(W.needReadable=!0,Y=0):W.length-=Y,W.length===0&&(W.ended||(W.needReadable=!0),me!==Y&&W.ended&&Z(this)),Ae!==null&&this.emit("data",Ae),Ae},t.prototype._read=function(Y){this.emit("error",new Error("_read() is not implemented"))},t.prototype.pipe=function(Y,W){function me(Ke,Pe){se("onunpipe"),Ke===S&&Pe&&Pe.hasUnpiped===!1&&(Pe.hasUnpiped=!0,Ae())}function ge(){se("onend"),Y.end()}function Ae(){se("cleanup"),Y.removeListener("close",n),Y.removeListener("finish",C),Y.removeListener("drain",Oe),Y.removeListener("error",e),Y.removeListener("unpipe",me),S.removeListener("end",ge),S.removeListener("end",b),S.removeListener("data",I),Le=!0,!ee.awaitDrain||Y._writableState&&!Y._writableState.needDrain||Oe()}function I(Ke){se("ondata"),Be=!1,Y.write(Ke)!==!1||Be||((ee.pipesCount===1&&ee.pipes===Y||ee.pipesCount>1&&re(ee.pipes,Y)!==-1)&&!Le&&(se("false write response, pause",S._readableState.awaitDrain),S._readableState.awaitDrain++,Be=!0),S.pause())}function e(Ke){se("onerror",Ke),b(),Y.removeListener("error",e),U(Y,"error")===0&&Y.emit("error",Ke)}function n(){Y.removeListener("finish",C),b()}function C(){se("onfinish"),Y.removeListener("close",n),b()}function b(){se("unpipe"),S.unpipe(Y)}var S=this,ee=this._readableState;switch(ee.pipesCount){case 0:ee.pipes=Y;break;case 1:ee.pipes=[ee.pipes,Y];break;default:ee.pipes.push(Y)}ee.pipesCount+=1,se("pipe count=%d opts=%j",ee.pipesCount,W);var fe=(!W||W.end!==!1)&&Y!==c.stdout&&Y!==c.stderr,Me=fe?ge:b;ee.endEmitted?G.nextTick(Me):S.once("end",Me),Y.on("unpipe",me);var Oe=y(S);Y.on("drain",Oe);var Le=!1,Be=!1;return S.on("data",I),h(Y,"error",e),Y.once("close",n),Y.once("finish",C),Y.emit("pipe",S),ee.flowing||(se("pipe resume"),S.resume()),Y},t.prototype.unpipe=function(Y){var W=this._readableState,me={hasUnpiped:!1};if(W.pipesCount===0)return this;if(W.pipesCount===1)return Y&&Y!==W.pipes?this:(Y||(Y=W.pipes),W.pipes=null,W.pipesCount=0,W.flowing=!1,Y&&Y.emit("unpipe",this,me),this);if(!Y){var ge=W.pipes,Ae=W.pipesCount;W.pipes=null,W.pipesCount=0,W.flowing=!1;for(var I=0;I<Ae;I++)ge[I].emit("unpipe",this,me);return this}var e=re(W.pipes,Y);return e===-1?this:(W.pipes.splice(e,1),W.pipesCount-=1,W.pipesCount===1&&(W.pipes=W.pipes[0]),Y.emit("unpipe",this,me),this)},t.prototype.on=function(Y,W){var me=H.prototype.on.call(this,Y,W);if(Y==="data")this._readableState.flowing!==!1&&this.resume();else if(Y==="readable"){var ge=this._readableState;ge.endEmitted||ge.readableListening||(ge.readableListening=ge.needReadable=!0,ge.emittedReadable=!1,ge.reading?ge.length&&E(this):G.nextTick(j,this))}return me},t.prototype.addListener=t.prototype.on,t.prototype.resume=function(){var Y=this._readableState;return Y.flowing||(se("resume"),Y.flowing=!0,L(this,Y)),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(Y){var W=this,me=this._readableState,ge=!1;Y.on("end",function(){if(se("wrapped end"),me.decoder&&!me.ended){var e=me.decoder.end();e&&e.length&&W.push(e)}W.push(null)}),Y.on("data",function(e){(se("wrapped data"),me.decoder&&(e=me.decoder.write(e)),(!me.objectMode||e!=null)&&(me.objectMode||e&&e.length))&&(W.push(e)||(ge=!0,Y.pause()))});for(var Ae in Y)this[Ae]===void 0&&typeof Y[Ae]=="function"&&(this[Ae]=function(e){return function(){return Y[e].apply(Y,arguments)}}(Ae));for(var I=0;I<q.length;I++)Y.on(q[I],this.emit.bind(this,q[I]));return this._read=function(e){se("wrapped _read",e),ge&&(ge=!1,Y.resume())},this},Object.defineProperty(t.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),t._fromList=M}).call(this,r("_process"),typeof ke!="undefined"?ke: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,O,p){"use strict";function c(t,a){var l=this._transformState;l.transforming=!1;var f=l.writecb;if(!f)return this.emit("error",new Error("write callback called multiple times"));l.writechunk=null,l.writecb=null,a!=null&&this.push(a),f(t);var v=this._readableState;v.reading=!1,(v.needReadable||v.length<v.highWaterMark)&&this._read(v.highWaterMark)}function d(t){if(!(this instanceof d))return new d(t);h.call(this,t),this._transformState={afterTransform:c.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",s)}function s(){var t=this;typeof this._flush=="function"?this._flush(function(a,l){i(t,a,l)}):i(this,null,null)}function i(t,a,l){if(a)return t.emit("error",a);if(l!=null&&t.push(l),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)}O.exports=d;var h=r("./_stream_duplex"),o=r("core-util-is");o.inherits=r("inherits"),o.inherits(d,h),d.prototype.push=function(t,a){return this._transformState.needTransform=!1,h.prototype.push.call(this,t,a)},d.prototype._transform=function(t,a,l){throw new Error("_transform() is not implemented")},d.prototype._write=function(t,a,l){var f=this._transformState;if(f.writecb=l,f.writechunk=t,f.writeencoding=a,!f.transforming){var v=this._readableState;(f.needTransform||v.needReadable||v.length<v.highWaterMark)&&this._read(v.highWaterMark)}},d.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},d.prototype._destroy=function(t,a){var l=this;h.prototype._destroy.call(this,t,function(f){a(f),l.emit("close")})}},{"./_stream_duplex":179,"core-util-is":153,inherits:162}],183:[function(r,O,p){(function(c,d){"use strict";function s(J){return J&&J.__esModule?J:{default:J}}function i(J){var q=this;this.next=null,this.entry=null,this.finish=function(){F(q,J)}}function h(J){return _e.from(J)}function o(J){return _e.isBuffer(J)||J instanceof se}function t(){}function a(J,q){U=U||r("./_stream_duplex"),J=J||{};var he=q instanceof U;this.objectMode=!!J.objectMode,he&&(this.objectMode=this.objectMode||!!J.writableObjectMode);var Y=J.highWaterMark,W=J.writableHighWaterMark,me=this.objectMode?16:16384;this.highWaterMark=Y||Y===0?Y:he&&(W||W===0)?W:me,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 ge=J.decodeStrings===!1;this.decodeStrings=!ge,this.defaultEncoding=J.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Ae){k(q,Ae)},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 i(this)}function l(J){if(U=U||r("./_stream_duplex"),!(te.call(l,this)||this instanceof U))return new l(J);this._writableState=new a(J,this),this.writable=!0,J&&(typeof J.write=="function"&&(this._write=J.write),typeof J.writev=="function"&&(this._writev=J.writev),typeof J.destroy=="function"&&(this._destroy=J.destroy),typeof J.final=="function"&&(this._final=J.final)),ae.call(this)}function f(J,q){var he=new Error("write after end");J.emit("error",he),T.nextTick(q,he)}function v(J,q,he,Y){var W=!0,me=!1;return he===null?me=new TypeError("May not write null values to stream"):typeof he=="string"||he===void 0||q.objectMode||(me=new TypeError("Invalid non-string/buffer chunk")),me&&(J.emit("error",me),T.nextTick(Y,me),W=!1),W}function u(J,q,he){return J.objectMode||J.decodeStrings===!1||typeof q!="string"||(q=_e.from(q,he)),q}function w(J,q,he,Y,W,me){if(!he){var ge=u(q,Y,W);Y!==ge&&(he=!0,W="buffer",Y=ge)}var Ae=q.objectMode?1:Y.length;q.length+=Ae;var I=q.length<q.highWaterMark;if(I||(q.needDrain=!0),q.writing||q.corked){var e=q.lastBufferedRequest;q.lastBufferedRequest={chunk:Y,encoding:W,isBuf:he,callback:me,next:null},e?e.next=q.lastBufferedRequest:q.bufferedRequest=q.lastBufferedRequest,q.bufferedRequestCount+=1}else A(J,q,!1,Ae,Y,W,me);return I}function A(J,q,he,Y,W,me,ge){q.writelen=Y,q.writecb=ge,q.writing=!0,q.sync=!0,he?J._writev(W,q.onwrite):J._write(W,me,q.onwrite),q.sync=!1}function E(J,q,he,Y,W){--q.pendingcb,he?(T.nextTick(W,Y),T.nextTick(M,J,q),J._writableState.errorEmitted=!0,J.emit("error",Y)):(W(Y),J._writableState.errorEmitted=!0,J.emit("error",Y),M(J,q))}function x(J){J.writing=!1,J.writecb=null,J.length-=J.writelen,J.writelen=0}function k(J,q){var he=J._writableState,Y=he.sync,W=he.writecb;if(x(he),q)E(J,he,Y,q,W);else{var me=L(he);me||he.corked||he.bufferProcessing||!he.bufferedRequest||j(J,he),Y?H(g,J,he,me,W):g(J,he,me,W)}}function g(J,q,he,Y){he||y(J,q),q.pendingcb--,Y(),M(J,q)}function y(J,q){q.length===0&&q.needDrain&&(q.needDrain=!1,J.emit("drain"))}function j(J,q){q.bufferProcessing=!0;var he=q.bufferedRequest;if(J._writev&&he&&he.next){var Y=q.bufferedRequestCount,W=new Array(Y),me=q.corkedRequestsFree;me.entry=he;for(var ge=0,Ae=!0;he;)W[ge]=he,he.isBuf||(Ae=!1),he=he.next,ge+=1;W.allBuffers=Ae,A(J,q,!0,q.length,W,"",me.finish),q.pendingcb++,q.lastBufferedRequest=null,me.next?(q.corkedRequestsFree=me.next,me.next=null):q.corkedRequestsFree=new i(q),q.bufferedRequestCount=0}else{for(;he;){var I=he.chunk,e=he.encoding,n=he.callback;if(A(J,q,!1,q.objectMode?1:I.length,I,e,n),he=he.next,q.bufferedRequestCount--,q.writing)break}he===null&&(q.lastBufferedRequest=null)}q.bufferedRequest=he,q.bufferProcessing=!1}function L(J){return J.ending&&J.length===0&&J.bufferedRequest===null&&!J.finished&&!J.writing}function _(J,q){J._final(function(he){q.pendingcb--,he&&J.emit("error",he),q.prefinished=!0,J.emit("prefinish"),M(J,q)})}function z(J,q){q.prefinished||q.finalCalled||(typeof J._final=="function"?(q.pendingcb++,q.finalCalled=!0,T.nextTick(_,J,q)):(q.prefinished=!0,J.emit("prefinish")))}function M(J,q){var he=L(q);return he&&(z(J,q),q.pendingcb===0&&(q.finished=!0,J.emit("finish"))),he}function P(J,q,he){q.ending=!0,M(J,q),he&&(q.finished?T.nextTick(he):J.once("finish",he)),q.ended=!0,J.writable=!1}function F(J,q,he){var Y=J.entry;for(J.entry=null;Y;){var W=Y.callback;q.pendingcb--,W(he),Y=Y.next}q.corkedRequestsFree?q.corkedRequestsFree.next=J:q.corkedRequestsFree=J}var $=r("babel-runtime/core-js/object/define-property"),Z=s($),Q=r("babel-runtime/core-js/symbol/has-instance"),re=s(Q),N=r("babel-runtime/core-js/symbol"),ue=s(N),G=r("babel-runtime/core-js/set-immediate"),V=s(G),T=r("process-nextick-args");O.exports=l;var U,H=!c.browser&&["v0.10","v0.9."].indexOf(c.version.slice(0,5))>-1?V.default:T.nextTick;l.WritableState=a;var K=r("core-util-is");K.inherits=r("inherits");var be={deprecate:r("util-deprecate")},ae=r("./internal/streams/stream"),_e=r("safe-buffer").Buffer,se=d.Uint8Array||function(){},ve=r("./internal/streams/destroy");K.inherits(l,ae),a.prototype.getBuffer=function(){for(var J=this.bufferedRequest,q=[];J;)q.push(J),J=J.next;return q},function(){try{Object.defineProperty(a.prototype,"buffer",{get:be.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(J){}}();var te;typeof ue.default=="function"&&re.default&&typeof Function.prototype[re.default]=="function"?(te=Function.prototype[re.default],(0,Z.default)(l,re.default,{value:function(J){return!!te.call(this,J)||this===l&&J&&J._writableState instanceof a}})):te=function(J){return J instanceof this},l.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},l.prototype.write=function(J,q,he){var Y=this._writableState,W=!1,me=!Y.objectMode&&o(J);return me&&!_e.isBuffer(J)&&(J=h(J)),typeof q=="function"&&(he=q,q=null),me?q="buffer":q||(q=Y.defaultEncoding),typeof he!="function"&&(he=t),Y.ended?f(this,he):(me||v(this,Y,J,he))&&(Y.pendingcb++,W=w(this,Y,me,J,q,he)),W},l.prototype.cork=function(){this._writableState.corked++},l.prototype.uncork=function(){var J=this._writableState;J.corked&&(J.corked--,J.writing||J.corked||J.finished||J.bufferProcessing||!J.bufferedRequest||j(this,J))},l.prototype.setDefaultEncoding=function(J){if(typeof J=="string"&&(J=J.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((J+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+J);return this._writableState.defaultEncoding=J,this},Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),l.prototype._write=function(J,q,he){he(new Error("_write() is not implemented"))},l.prototype._writev=null,l.prototype.end=function(J,q,he){var Y=this._writableState;typeof J=="function"?(he=J,J=null,q=null):typeof q=="function"&&(he=q,q=null),J!=null&&this.write(J,q),Y.corked&&(Y.corked=1,this.uncork()),Y.ending||Y.finished||P(this,Y,he)},Object.defineProperty(l.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(J){this._writableState&&(this._writableState.destroyed=J)}}),l.prototype.destroy=ve.destroy,l.prototype._undestroy=ve.undestroy,l.prototype._destroy=function(J,q){this.end(),q(J)}}).call(this,r("_process"),typeof ke!="undefined"?ke: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,O,p){"use strict";function c(h,o){if(!(h instanceof o))throw new TypeError("Cannot call a class as a function")}function d(h,o,t){h.copy(o,t)}var s=r("safe-buffer").Buffer,i=r("util");O.exports=function(){function h(){c(this,h),this.head=null,this.tail=null,this.length=0}return h.prototype.push=function(o){var t={data:o,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},h.prototype.unshift=function(o){var t={data:o,next:this.head};this.length===0&&(this.tail=t),this.head=t,++this.length},h.prototype.shift=function(){if(this.length!==0){var o=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,o}},h.prototype.clear=function(){this.head=this.tail=null,this.length=0},h.prototype.join=function(o){if(this.length===0)return"";for(var t=this.head,a=""+t.data;t=t.next;)a+=o+t.data;return a},h.prototype.concat=function(o){if(this.length===0)return s.alloc(0);if(this.length===1)return this.head.data;for(var t=s.allocUnsafe(o>>>0),a=this.head,l=0;a;)d(a.data,t,l),l+=a.data.length,a=a.next;return t},h}(),i&&i.inspect&&i.inspect.custom&&(O.exports.prototype[i.inspect.custom]=function(){var h=i.inspect({length:this.length});return this.constructor.name+" "+h})},{"safe-buffer":193,util:36}],185:[function(r,O,p){"use strict";function c(h,o){var t=this,a=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return a||l?(o?o(h):!h||this._writableState&&this._writableState.errorEmitted||i.nextTick(s,this,h),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(h||null,function(f){!o&&f?(i.nextTick(s,t,f),t._writableState&&(t._writableState.errorEmitted=!0)):o&&o(f)}),this)}function d(){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 s(h,o){h.emit("error",o)}var i=r("process-nextick-args");O.exports={destroy:c,undestroy:d}},{"process-nextick-args":172}],186:[function(r,O,p){"use strict";O.exports=r("events").EventEmitter},{events:158}],187:[function(r,O,p){O.exports=r("./readable").PassThrough},{"./readable":188}],188:[function(r,O,p){p=O.exports=r("./lib/_stream_readable.js"),p.Stream=p,p.Readable=p,p.Writable=r("./lib/_stream_writable.js"),p.Duplex=r("./lib/_stream_duplex.js"),p.Transform=r("./lib/_stream_transform.js"),p.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,O,p){O.exports=r("./readable").Transform},{"./readable":188}],190:[function(r,O,p){O.exports=r("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":183}],191:[function(r,O,p){var c=function(){return this}()||Function("return this")(),d=c.regeneratorRuntime&&Object.getOwnPropertyNames(c).indexOf("regeneratorRuntime")>=0,s=d&&c.regeneratorRuntime;if(c.regeneratorRuntime=void 0,O.exports=r("./runtime"),d)c.regeneratorRuntime=s;else try{delete c.regeneratorRuntime}catch(i){c.regeneratorRuntime=void 0}},{"./runtime":192}],192:[function(r,O,p){!function(c){"use strict";function d(V,T,U,H){var K=T&&T.prototype instanceof i?T:i,be=Object.create(K.prototype),ae=new w(H||[]);return be._invoke=l(V,U,ae),be}function s(V,T,U){try{return{type:"normal",arg:V.call(T,U)}}catch(H){return{type:"throw",arg:H}}}function i(){}function h(){}function o(){}function t(V){["next","throw","return"].forEach(function(T){V[T]=function(U){return this._invoke(T,U)}})}function a(V){function T(K,be,ae,_e){var se=s(V[K],V,be);if(se.type!=="throw"){var ve=se.arg,te=ve.value;return te&&typeof te=="object"&&g.call(te,"__await")?Promise.resolve(te.__await).then(function(J){T("next",J,ae,_e)},function(J){T("throw",J,ae,_e)}):Promise.resolve(te).then(function(J){ve.value=J,ae(ve)},_e)}_e(se.arg)}function U(K,be){function ae(){return new Promise(function(_e,se){T(K,be,_e,se)})}return H=H?H.then(ae,ae):ae()}var H;this._invoke=U}function l(V,T,U){var H=P;return function(K,be){if(H===$)throw new Error("Generator is already running");if(H===Z){if(K==="throw")throw be;return E()}for(U.method=K,U.arg=be;;){var ae=U.delegate;if(ae){var _e=f(ae,U);if(_e){if(_e===Q)continue;return _e}}if(U.method==="next")U.sent=U._sent=U.arg;else if(U.method==="throw"){if(H===P)throw H=Z,U.arg;U.dispatchException(U.arg)}else U.method==="return"&&U.abrupt("return",U.arg);H=$;var se=s(V,T,U);if(se.type==="normal"){if(H=U.done?Z:F,se.arg===Q)continue;return{value:se.arg,done:U.done}}se.type==="throw"&&(H=Z,U.method="throw",U.arg=se.arg)}}}function f(V,T){var U=V.iterator[T.method];if(U===x){if(T.delegate=null,T.method==="throw"){if(V.iterator.return&&(T.method="return",T.arg=x,f(V,T),T.method==="throw"))return Q;T.method="throw",T.arg=new TypeError("The iterator does not provide a 'throw' method")}return Q}var H=s(U,V.iterator,T.arg);if(H.type==="throw")return T.method="throw",T.arg=H.arg,T.delegate=null,Q;var K=H.arg;return K?K.done?(T[V.resultName]=K.value,T.next=V.nextLoc,T.method!=="return"&&(T.method="next",T.arg=x),T.delegate=null,Q):K:(T.method="throw",T.arg=new TypeError("iterator result is not an object"),T.delegate=null,Q)}function v(V){var T={tryLoc:V[0]};1 in V&&(T.catchLoc=V[1]),2 in V&&(T.finallyLoc=V[2],T.afterLoc=V[3]),this.tryEntries.push(T)}function u(V){var T=V.completion||{};T.type="normal",delete T.arg,V.completion=T}function w(V){this.tryEntries=[{tryLoc:"root"}],V.forEach(v,this),this.reset(!0)}function A(V){if(V){var T=V[j];if(T)return T.call(V);if(typeof V.next=="function")return V;if(!isNaN(V.length)){var U=-1,H=function K(){for(;++U<V.length;)if(g.call(V,U))return K.value=V[U],K.done=!1,K;return K.value=x,K.done=!0,K};return H.next=H}}return{next:E}}function E(){return{value:x,done:!0}}var x,k=Object.prototype,g=k.hasOwnProperty,y=typeof Symbol=="function"?Symbol:{},j=y.iterator||"@@iterator",L=y.asyncIterator||"@@asyncIterator",_=y.toStringTag||"@@toStringTag",z=typeof O=="object",M=c.regeneratorRuntime;if(M)return void(z&&(O.exports=M));M=c.regeneratorRuntime=z?O.exports:{},M.wrap=d;var P="suspendedStart",F="suspendedYield",$="executing",Z="completed",Q={},re={};re[j]=function(){return this};var N=Object.getPrototypeOf,ue=N&&N(N(A([])));ue&&ue!==k&&g.call(ue,j)&&(re=ue);var G=o.prototype=i.prototype=Object.create(re);h.prototype=G.constructor=o,o.constructor=h,o[_]=h.displayName="GeneratorFunction",M.isGeneratorFunction=function(V){var T=typeof V=="function"&&V.constructor;return!!T&&(T===h||(T.displayName||T.name)==="GeneratorFunction")},M.mark=function(V){return Object.setPrototypeOf?Object.setPrototypeOf(V,o):(V.__proto__=o,_ in V||(V[_]="GeneratorFunction")),V.prototype=Object.create(G),V},M.awrap=function(V){return{__await:V}},t(a.prototype),a.prototype[L]=function(){return this},M.AsyncIterator=a,M.async=function(V,T,U,H){var K=new a(d(V,T,U,H));return M.isGeneratorFunction(T)?K:K.next().then(function(be){return be.done?be.value:K.next()})},t(G),G[_]="Generator",G[j]=function(){return this},G.toString=function(){return"[object Generator]"},M.keys=function(V){var T=[];for(var U in V)T.push(U);return T.reverse(),function H(){for(;T.length;){var K=T.pop();if(K in V)return H.value=K,H.done=!1,H}return H.done=!0,H}},M.values=A,w.prototype={constructor:w,reset:function(V){if(this.prev=0,this.next=0,this.sent=this._sent=x,this.done=!1,this.delegate=null,this.method="next",this.arg=x,this.tryEntries.forEach(u),!V)for(var T in this)T.charAt(0)==="t"&&g.call(this,T)&&!isNaN(+T.slice(1))&&(this[T]=x)},stop:function(){this.done=!0;var V=this.tryEntries[0],T=V.completion;if(T.type==="throw")throw T.arg;return this.rval},dispatchException:function(V){function T(se,ve){return be.type="throw",be.arg=V,U.next=se,ve&&(U.method="next",U.arg=x),!!ve}if(this.done)throw V;for(var U=this,H=this.tryEntries.length-1;H>=0;--H){var K=this.tryEntries[H],be=K.completion;if(K.tryLoc==="root")return T("end");if(K.tryLoc<=this.prev){var ae=g.call(K,"catchLoc"),_e=g.call(K,"finallyLoc");if(ae&&_e){if(this.prev<K.catchLoc)return T(K.catchLoc,!0);if(this.prev<K.finallyLoc)return T(K.finallyLoc)}else if(ae){if(this.prev<K.catchLoc)return T(K.catchLoc,!0)}else{if(!_e)throw new Error("try statement without catch or finally");if(this.prev<K.finallyLoc)return T(K.finallyLoc)}}}},abrupt:function(V,T){for(var U=this.tryEntries.length-1;U>=0;--U){var H=this.tryEntries[U];if(H.tryLoc<=this.prev&&g.call(H,"finallyLoc")&&this.prev<H.finallyLoc){var K=H;break}}K&&(V==="break"||V==="continue")&&K.tryLoc<=T&&T<=K.finallyLoc&&(K=null);var be=K?K.completion:{};return be.type=V,be.arg=T,K?(this.method="next",this.next=K.finallyLoc,Q):this.complete(be)},complete:function(V,T){if(V.type==="throw")throw V.arg;return V.type==="break"||V.type==="continue"?this.next=V.arg:V.type==="return"?(this.rval=this.arg=V.arg,this.method="return",this.next="end"):V.type==="normal"&&T&&(this.next=T),Q},finish:function(V){for(var T=this.tryEntries.length-1;T>=0;--T){var U=this.tryEntries[T];if(U.finallyLoc===V)return this.complete(U.completion,U.afterLoc),u(U),Q}},catch:function(V){for(var T=this.tryEntries.length-1;T>=0;--T){var U=this.tryEntries[T];if(U.tryLoc===V){var H=U.completion;if(H.type==="throw"){var K=H.arg;u(U)}return K}}throw new Error("illegal catch attempt")},delegateYield:function(V,T,U){return this.delegate={iterator:A(V),resultName:T,nextLoc:U},this.method==="next"&&(this.arg=x),Q}}}(function(){return this}()||Function("return this")())},{}],193:[function(r,O,p){function c(h,o){for(var t in h)o[t]=h[t]}function d(h,o,t){return i(h,o,t)}var s=r("buffer"),i=s.Buffer;i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?O.exports=s:(c(s,p),p.Buffer=d),c(i,d),d.from=function(h,o,t){if(typeof h=="number")throw new TypeError("Argument must not be a number");return i(h,o,t)},d.alloc=function(h,o,t){if(typeof h!="number")throw new TypeError("Argument must be a number");var a=i(h);return o!==void 0?typeof t=="string"?a.fill(o,t):a.fill(o):a.fill(0),a},d.allocUnsafe=function(h){if(typeof h!="number")throw new TypeError("Argument must be a number");return i(h)},d.allocUnsafeSlow=function(h){if(typeof h!="number")throw new TypeError("Argument must be a number");return s.SlowBuffer(h)}},{buffer:38}],194:[function(r,O,p){(function(c){"use strict";function d(E){return E&&E.__esModule?E:{default:E}}var s=r("babel-runtime/core-js/string/from-code-point"),i=d(s),h=r("babel-runtime/core-js/json/stringify"),o=d(h),t=r("babel-runtime/helpers/typeof"),a=d(t),l=r("babel-runtime/core-js/object/define-property"),f=d(l),v=r("babel-runtime/core-js/object/keys"),u=d(v),w=r("babel-runtime/core-js/object/create"),A=d(w);!function(E){function x(b,S){if(!(this instanceof x))return new x(b,S);var ee=this;g(ee),ee.q=ee.c="",ee.bufferCheckPosition=E.MAX_BUFFER_LENGTH,ee.opt=S||{},ee.opt.lowercase=ee.opt.lowercase||ee.opt.lowercasetags,ee.looseCase=ee.opt.lowercase?"toLowerCase":"toUpperCase",ee.tags=[],ee.closed=ee.closedRoot=ee.sawRoot=!1,ee.tag=ee.error=null,ee.strict=!!b,ee.noscript=!(!b&&!ee.opt.noscript),ee.state=n.BEGIN,ee.strictEntities=ee.opt.strictEntities,ee.ENTITIES=ee.strictEntities?(0,A.default)(E.XML_ENTITIES):(0,A.default)(E.ENTITIES),ee.attribList=[],ee.opt.xmlns&&(ee.ns=(0,A.default)(me)),ee.trackPosition=ee.opt.position!==!1,ee.trackPosition&&(ee.position=ee.line=ee.column=0),$(ee,"onready")}function k(b){for(var S=Math.max(E.MAX_BUFFER_LENGTH,10),ee=0,fe=0,Me=ve.length;fe<Me;fe++){var Oe=b[ve[fe]].length;if(Oe>S)switch(ve[fe]){case"textNode":Q(b);break;case"cdata":Z(b,"oncdata",b.cdata),b.cdata="";break;case"script":Z(b,"onscript",b.script),b.script="";break;default:N(b,"Max buffer length exceeded: "+ve[fe])}ee=Math.max(ee,Oe)}var Le=E.MAX_BUFFER_LENGTH-ee;b.bufferCheckPosition=Le+b.position}function g(b){for(var S=0,ee=ve.length;S<ee;S++)b[ve[S]]=""}function y(b){Q(b),b.cdata!==""&&(Z(b,"oncdata",b.cdata),b.cdata=""),b.script!==""&&(Z(b,"onscript",b.script),b.script="")}function j(b,S){return new L(b,S)}function L(b,S){if(!(this instanceof L))return new L(b,S);te.apply(this),this._parser=new x(b,S),this.writable=!0,this.readable=!0;var ee=this;this._parser.onend=function(){ee.emit("end")},this._parser.onerror=function(fe){ee.emit("error",fe),ee._parser.error=null},this._decoder=null,J.forEach(function(fe){(0,f.default)(ee,"on"+fe,{get:function(){return ee._parser["on"+fe]},set:function(Me){if(!Me)return ee.removeAllListeners(fe),ee._parser["on"+fe]=Me,Me;ee.on(fe,Me)},enumerable:!0,configurable:!1})})}function _(b){return b===" "||b===`
`||b==="\r"||b===" "}function z(b){return b==='"'||b==="'"}function M(b){return b===">"||_(b)}function P(b,S){return b.test(S)}function F(b,S){return!P(b,S)}function $(b,S,ee){b[S]&&b[S](ee)}function Z(b,S,ee){b.textNode&&Q(b),$(b,S,ee)}function Q(b){b.textNode=re(b.opt,b.textNode),b.textNode&&$(b,"ontext",b.textNode),b.textNode=""}function re(b,S){return b.trim&&(S=S.trim()),b.normalize&&(S=S.replace(/\s+/g," ")),S}function N(b,S){return Q(b),b.trackPosition&&(S+=`
Line: `+b.line+`
Column: `+b.column+`
Char: `+b.c),S=new Error(S),b.error=S,$(b,"onerror",S),b}function ue(b){return b.sawRoot&&!b.closedRoot&&G(b,"Unclosed root tag"),b.state!==n.BEGIN&&b.state!==n.BEGIN_WHITESPACE&&b.state!==n.TEXT&&N(b,"Unexpected end"),Q(b),b.c="",b.closed=!0,$(b,"onend"),x.call(b,b.strict,b.opt),b}function G(b,S){if((b===void 0?"undefined":(0,a.default)(b))!=="object"||!(b instanceof x))throw new Error("bad call to strictFail");b.strict&&N(b,S)}function V(b){b.strict||(b.tagName=b.tagName[b.looseCase]());var S=b.tags[b.tags.length-1]||b,ee=b.tag={name:b.tagName,attributes:{}};b.opt.xmlns&&(ee.ns=S.ns),b.attribList.length=0,Z(b,"onopentagstart",ee)}function T(b,S){var ee=b.indexOf(":"),fe=ee<0?["",b]:b.split(":"),Me=fe[0],Oe=fe[1];return S&&b==="xmlns"&&(Me="xmlns",Oe=""),{prefix:Me,local:Oe}}function U(b){if(b.strict||(b.attribName=b.attribName[b.looseCase]()),b.attribList.indexOf(b.attribName)!==-1||b.tag.attributes.hasOwnProperty(b.attribName))return void(b.attribName=b.attribValue="");if(b.opt.xmlns){var S=T(b.attribName,!0),ee=S.prefix,fe=S.local;if(ee==="xmlns")if(fe==="xml"&&b.attribValue!==Y)G(b,"xml: prefix must be bound to "+Y+`
Actual: `+b.attribValue);else if(fe==="xmlns"&&b.attribValue!==W)G(b,"xmlns: prefix must be bound to "+W+`
Actual: `+b.attribValue);else{var Me=b.tag,Oe=b.tags[b.tags.length-1]||b;Me.ns===Oe.ns&&(Me.ns=(0,A.default)(Oe.ns)),Me.ns[fe]=b.attribValue}b.attribList.push([b.attribName,b.attribValue])}else b.tag.attributes[b.attribName]=b.attribValue,Z(b,"onattribute",{name:b.attribName,value:b.attribValue});b.attribName=b.attribValue=""}function H(b,S){if(b.opt.xmlns){var ee=b.tag,fe=T(b.tagName);ee.prefix=fe.prefix,ee.local=fe.local,ee.uri=ee.ns[fe.prefix]||"",ee.prefix&&!ee.uri&&(G(b,"Unbound namespace prefix: "+(0,o.default)(b.tagName)),ee.uri=fe.prefix);var Me=b.tags[b.tags.length-1]||b;ee.ns&&Me.ns!==ee.ns&&(0,u.default)(ee.ns).forEach(function(ce){Z(b,"onopennamespace",{prefix:ce,uri:ee.ns[ce]})});for(var Oe=0,Le=b.attribList.length;Oe<Le;Oe++){var Be=b.attribList[Oe],Ke=Be[0],Pe=Be[1],Te=T(Ke,!0),ye=Te.prefix,xe=Te.local,Ee=ye===""?"":ee.ns[ye]||"",ie={name:Ke,value:Pe,prefix:ye,local:xe,uri:Ee};ye&&ye!=="xmlns"&&!Ee&&(G(b,"Unbound namespace prefix: "+(0,o.default)(ye)),ie.uri=ye),b.tag.attributes[Ke]=ie,Z(b,"onattribute",ie)}b.attribList.length=0}b.tag.isSelfClosing=!!S,b.sawRoot=!0,b.tags.push(b.tag),Z(b,"onopentag",b.tag),S||(b.noscript||b.tagName.toLowerCase()!=="script"?b.state=n.TEXT:b.state=n.SCRIPT,b.tag=null,b.tagName=""),b.attribName=b.attribValue="",b.attribList.length=0}function K(b){if(!b.tagName)return G(b,"Weird empty close tag."),b.textNode+="</>",void(b.state=n.TEXT);if(b.script){if(b.tagName!=="script")return b.script+="</"+b.tagName+">",b.tagName="",void(b.state=n.SCRIPT);Z(b,"onscript",b.script),b.script=""}var S=b.tags.length,ee=b.tagName;b.strict||(ee=ee[b.looseCase]());for(var fe=ee;S--&&!(b.tags[S].name===fe);)G(b,"Unexpected close tag");if(S<0)return G(b,"Unmatched closing tag: "+b.tagName),b.textNode+="</"+b.tagName+">",void(b.state=n.TEXT);b.tagName=ee;for(var Me=b.tags.length;Me-- >S;){var Oe=b.tag=b.tags.pop();b.tagName=b.tag.name,Z(b,"onclosetag",b.tagName);var Le={};for(var Be in Oe.ns)Le[Be]=Oe.ns[Be];var Ke=b.tags[b.tags.length-1]||b;b.opt.xmlns&&Oe.ns!==Ke.ns&&(0,u.default)(Oe.ns).forEach(function(Pe){var Te=Oe.ns[Pe];Z(b,"onclosenamespace",{prefix:Pe,uri:Te})})}S===0&&(b.closedRoot=!0),b.tagName=b.attribValue=b.attribName="",b.attribList.length=0,b.state=n.TEXT}function be(b){var S,ee=b.entity,fe=ee.toLowerCase(),Me="";return b.ENTITIES[ee]?b.ENTITIES[ee]:b.ENTITIES[fe]?b.ENTITIES[fe]:(ee=fe,ee.charAt(0)==="#"&&(ee.charAt(1)==="x"?(ee=ee.slice(2),S=parseInt(ee,16),Me=S.toString(16)):(ee=ee.slice(1),S=parseInt(ee,10),Me=S.toString(10))),ee=ee.replace(/^0+/,""),isNaN(S)||Me.toLowerCase()!==ee?(G(b,"Invalid character entity"),"&"+b.entity+";"):(0,i.default)(S))}function ae(b,S){S==="<"?(b.state=n.OPEN_WAKA,b.startTagPosition=b.position):_(S)||(G(b,"Non-whitespace before first tag."),b.textNode=S,b.state=n.TEXT)}function _e(b,S){var ee="";return S<b.length&&(ee=b.charAt(S)),ee}function se(b){var S=this;if(this.error)throw this.error;if(S.closed)return N(S,"Cannot write after close. Assign an onready handler.");if(b===null)return ue(S);(b===void 0?"undefined":(0,a.default)(b))==="object"&&(b=b.toString());for(var ee=0,fe="";!(fe=_e(b,ee++),S.c=fe,!fe);)switch(S.trackPosition&&(S.position++,fe===`
`?(S.line++,S.column=0):S.column++),S.state){case n.BEGIN:if(S.state=n.BEGIN_WHITESPACE,fe==="\uFEFF")continue;ae(S,fe);continue;case n.BEGIN_WHITESPACE:ae(S,fe);continue;case n.TEXT:if(S.sawRoot&&!S.closedRoot){for(var Me=ee-1;fe&&fe!=="<"&&fe!=="&";)(fe=_e(b,ee++))&&S.trackPosition&&(S.position++,fe===`
`?(S.line++,S.column=0):S.column++);S.textNode+=b.substring(Me,ee-1)}fe!=="<"||S.sawRoot&&S.closedRoot&&!S.strict?(_(fe)||S.sawRoot&&!S.closedRoot||G(S,"Text data outside of root node."),fe==="&"?S.state=n.TEXT_ENTITY:S.textNode+=fe):(S.state=n.OPEN_WAKA,S.startTagPosition=S.position);continue;case n.SCRIPT:fe==="<"?S.state=n.SCRIPT_ENDING:S.script+=fe;continue;case n.SCRIPT_ENDING:fe==="/"?S.state=n.CLOSE_TAG:(S.script+="<"+fe,S.state=n.SCRIPT);continue;case n.OPEN_WAKA:if(fe==="!")S.state=n.SGML_DECL,S.sgmlDecl="";else if(!_(fe))if(P(ge,fe))S.state=n.OPEN_TAG,S.tagName=fe;else if(fe==="/")S.state=n.CLOSE_TAG,S.tagName="";else if(fe==="?")S.state=n.PROC_INST,S.procInstName=S.procInstBody="";else{if(G(S,"Unencoded <"),S.startTagPosition+1<S.position){var Oe=S.position-S.startTagPosition;fe=new Array(Oe).join(" ")+fe}S.textNode+="<"+fe,S.state=n.TEXT}continue;case n.SGML_DECL:(S.sgmlDecl+fe).toUpperCase()===q?(Z(S,"onopencdata"),S.state=n.CDATA,S.sgmlDecl="",S.cdata=""):S.sgmlDecl+fe==="--"?(S.state=n.COMMENT,S.comment="",S.sgmlDecl=""):(S.sgmlDecl+fe).toUpperCase()===he?(S.state=n.DOCTYPE,(S.doctype||S.sawRoot)&&G(S,"Inappropriately located doctype declaration"),S.doctype="",S.sgmlDecl=""):fe===">"?(Z(S,"onsgmldeclaration",S.sgmlDecl),S.sgmlDecl="",S.state=n.TEXT):(z(fe)&&(S.state=n.SGML_DECL_QUOTED),S.sgmlDecl+=fe);continue;case n.SGML_DECL_QUOTED:fe===S.q&&(S.state=n.SGML_DECL,S.q=""),S.sgmlDecl+=fe;continue;case n.DOCTYPE:fe===">"?(S.state=n.TEXT,Z(S,"ondoctype",S.doctype),S.doctype=!0):(S.doctype+=fe,fe==="["?S.state=n.DOCTYPE_DTD:z(fe)&&(S.state=n.DOCTYPE_QUOTED,S.q=fe));continue;case n.DOCTYPE_QUOTED:S.doctype+=fe,fe===S.q&&(S.q="",S.state=n.DOCTYPE);continue;case n.DOCTYPE_DTD:S.doctype+=fe,fe==="]"?S.state=n.DOCTYPE:z(fe)&&(S.state=n.DOCTYPE_DTD_QUOTED,S.q=fe);continue;case n.DOCTYPE_DTD_QUOTED:S.doctype+=fe,fe===S.q&&(S.state=n.DOCTYPE_DTD,S.q="");continue;case n.COMMENT:fe==="-"?S.state=n.COMMENT_ENDING:S.comment+=fe;continue;case n.COMMENT_ENDING:fe==="-"?(S.state=n.COMMENT_ENDED,S.comment=re(S.opt,S.comment),S.comment&&Z(S,"oncomment",S.comment),S.comment=""):(S.comment+="-"+fe,S.state=n.COMMENT);continue;case n.COMMENT_ENDED:fe!==">"?(G(S,"Malformed comment"),S.comment+="--"+fe,S.state=n.COMMENT):S.state=n.TEXT;continue;case n.CDATA:fe==="]"?S.state=n.CDATA_ENDING:S.cdata+=fe;continue;case n.CDATA_ENDING:fe==="]"?S.state=n.CDATA_ENDING_2:(S.cdata+="]"+fe,S.state=n.CDATA);continue;case n.CDATA_ENDING_2:fe===">"?(S.cdata&&Z(S,"oncdata",S.cdata),Z(S,"onclosecdata"),S.cdata="",S.state=n.TEXT):fe==="]"?S.cdata+="]":(S.cdata+="]]"+fe,S.state=n.CDATA);continue;case n.PROC_INST:fe==="?"?S.state=n.PROC_INST_ENDING:_(fe)?S.state=n.PROC_INST_BODY:S.procInstName+=fe;continue;case n.PROC_INST_BODY:if(!S.procInstBody&&_(fe))continue;fe==="?"?S.state=n.PROC_INST_ENDING:S.procInstBody+=fe;continue;case n.PROC_INST_ENDING:fe===">"?(Z(S,"onprocessinginstruction",{name:S.procInstName,body:S.procInstBody}),S.procInstName=S.procInstBody="",S.state=n.TEXT):(S.procInstBody+="?"+fe,S.state=n.PROC_INST_BODY);continue;case n.OPEN_TAG:P(Ae,fe)?S.tagName+=fe:(V(S),fe===">"?H(S):fe==="/"?S.state=n.OPEN_TAG_SLASH:(_(fe)||G(S,"Invalid character in tag name"),S.state=n.ATTRIB));continue;case n.OPEN_TAG_SLASH:fe===">"?(H(S,!0),K(S)):(G(S,"Forward-slash in opening tag not followed by >"),S.state=n.ATTRIB);continue;case n.ATTRIB:if(_(fe))continue;fe===">"?H(S):fe==="/"?S.state=n.OPEN_TAG_SLASH:P(ge,fe)?(S.attribName=fe,S.attribValue="",S.state=n.ATTRIB_NAME):G(S,"Invalid attribute name");continue;case n.ATTRIB_NAME:fe==="="?S.state=n.ATTRIB_VALUE:fe===">"?(G(S,"Attribute without value"),S.attribValue=S.attribName,U(S),H(S)):_(fe)?S.state=n.ATTRIB_NAME_SAW_WHITE:P(Ae,fe)?S.attribName+=fe:G(S,"Invalid attribute name");continue;case n.ATTRIB_NAME_SAW_WHITE:if(fe==="=")S.state=n.ATTRIB_VALUE;else{if(_(fe))continue;G(S,"Attribute without value"),S.tag.attributes[S.attribName]="",S.attribValue="",Z(S,"onattribute",{name:S.attribName,value:""}),S.attribName="",fe===">"?H(S):P(ge,fe)?(S.attribName=fe,S.state=n.ATTRIB_NAME):(G(S,"Invalid attribute name"),S.state=n.ATTRIB)}continue;case n.ATTRIB_VALUE:if(_(fe))continue;z(fe)?(S.q=fe,S.state=n.ATTRIB_VALUE_QUOTED):(G(S,"Unquoted attribute value"),S.state=n.ATTRIB_VALUE_UNQUOTED,S.attribValue=fe);continue;case n.ATTRIB_VALUE_QUOTED:if(fe!==S.q){fe==="&"?S.state=n.ATTRIB_VALUE_ENTITY_Q:S.attribValue+=fe;continue}U(S),S.q="",S.state=n.ATTRIB_VALUE_CLOSED;continue;case n.ATTRIB_VALUE_CLOSED:_(fe)?S.state=n.ATTRIB:fe===">"?H(S):fe==="/"?S.state=n.OPEN_TAG_SLASH:P(ge,fe)?(G(S,"No whitespace between attributes"),S.attribName=fe,S.attribValue="",S.state=n.ATTRIB_NAME):G(S,"Invalid attribute name");continue;case n.ATTRIB_VALUE_UNQUOTED:if(!M(fe)){fe==="&"?S.state=n.ATTRIB_VALUE_ENTITY_U:S.attribValue+=fe;continue}U(S),fe===">"?H(S):S.state=n.ATTRIB;continue;case n.CLOSE_TAG:if(S.tagName)fe===">"?K(S):P(Ae,fe)?S.tagName+=fe:S.script?(S.script+="</"+S.tagName,S.tagName="",S.state=n.SCRIPT):(_(fe)||G(S,"Invalid tagname in closing tag"),S.state=n.CLOSE_TAG_SAW_WHITE);else{if(_(fe))continue;F(ge,fe)?S.script?(S.script+="</"+fe,S.state=n.SCRIPT):G(S,"Invalid tagname in closing tag."):S.tagName=fe}continue;case n.CLOSE_TAG_SAW_WHITE:if(_(fe))continue;fe===">"?K(S):G(S,"Invalid characters in closing tag");continue;case n.TEXT_ENTITY:case n.ATTRIB_VALUE_ENTITY_Q:case n.ATTRIB_VALUE_ENTITY_U:var Le,Be;switch(S.state){case n.TEXT_ENTITY:Le=n.TEXT,Be="textNode";break;case n.ATTRIB_VALUE_ENTITY_Q:Le=n.ATTRIB_VALUE_QUOTED,Be="attribValue";break;case n.ATTRIB_VALUE_ENTITY_U:Le=n.ATTRIB_VALUE_UNQUOTED,Be="attribValue"}fe===";"?(S[Be]+=be(S),S.entity="",S.state=Le):P(S.entity.length?e:I,fe)?S.entity+=fe:(G(S,"Invalid character in entity name"),S[Be]+="&"+S.entity+fe,S.entity="",S.state=Le);continue;default:throw new Error(S,"Unknown state: "+S.state)}return S.position>=S.bufferCheckPosition&&k(S),S}E.parser=function(b,S){return new x(b,S)},E.SAXParser=x,E.SAXStream=L,E.createStream=j,E.MAX_BUFFER_LENGTH=65536;var ve=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];E.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],A.default||(Object.create=function(b){function S(){}return S.prototype=b,new S}),u.default||(Object.keys=function(b){var S=[];for(var ee in b)b.hasOwnProperty(ee)&&S.push(ee);return S}),x.prototype={end:function(){ue(this)},write:se,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){y(this)}};var te;try{te=r("stream").Stream}catch(b){te=function(){}}var J=E.EVENTS.filter(function(b){return b!=="error"&&b!=="end"});L.prototype=(0,A.default)(te.prototype,{constructor:{value:L}}),L.prototype.write=function(b){if(typeof c=="function"&&typeof c.isBuffer=="function"&&c.isBuffer(b)){if(!this._decoder){var S=r("string_decoder").StringDecoder;this._decoder=new S("utf8")}b=this._decoder.write(b)}return this._parser.write(b.toString()),this.emit("data",b),!0},L.prototype.end=function(b){return b&&b.length&&this.write(b),this._parser.end(),!0},L.prototype.on=function(b,S){var ee=this;return ee._parser["on"+b]||J.indexOf(b)===-1||(ee._parser["on"+b]=function(){var fe=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);fe.splice(0,0,b),ee.emit.apply(ee,fe)}),te.prototype.on.call(ee,b,S)};var q="[CDATA[",he="DOCTYPE",Y="http://www.w3.org/XML/1998/namespace",W="http://www.w3.org/2000/xmlns/",me={xml:Y,xmlns:W},ge=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,Ae=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,I=/[#:_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;E.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++},E.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},E.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,u.default)(E.ENTITIES).forEach(function(b){var S=E.ENTITIES[b],ee=typeof S=="number"?String.fromCharCode(S):S;E.ENTITIES[b]=ee});for(var C in E.STATE)E.STATE[E.STATE[C]]=C;n=E.STATE,i.default||function(){var b=String.fromCharCode,S=Math.floor,ee=function(){var fe,Me,Oe=[],Le=-1,Be=arguments.length;if(!Be)return"";for(var Ke="";++Le<Be;){var Pe=Number(arguments[Le]);if(!isFinite(Pe)||Pe<0||Pe>1114111||S(Pe)!==Pe)throw RangeError("Invalid code point: "+Pe);Pe<=65535?Oe.push(Pe):(Pe-=65536,fe=55296+(Pe>>10),Me=Pe%1024+56320,Oe.push(fe,Me)),(Le+1===Be||Oe.length>16384)&&(Ke+=b.apply(null,Oe),Oe.length=0)}return Ke};f.default?Object.defineProperty(String,"fromCodePoint",{value:ee,configurable:!0,writable:!0}):String.fromCodePoint=ee}()}(p===void 0?(void 0).sax={}:p)}).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,O,p){function c(){d.call(this)}O.exports=c;var d=r("events").EventEmitter;r("inherits")(c,d),c.Readable=r("readable-stream/readable.js"),c.Writable=r("readable-stream/writable.js"),c.Duplex=r("readable-stream/duplex.js"),c.Transform=r("readable-stream/transform.js"),c.PassThrough=r("readable-stream/passthrough.js"),c.Stream=c,c.prototype.pipe=function(s,i){function h(w){s.writable&&s.write(w)===!1&&v.pause&&v.pause()}function o(){v.readable&&v.resume&&v.resume()}function t(){u||(u=!0,s.end())}function a(){u||(u=!0,typeof s.destroy=="function"&&s.destroy())}function l(w){if(f(),d.listenerCount(this,"error")===0)throw w}function f(){v.removeListener("data",h),s.removeListener("drain",o),v.removeListener("end",t),v.removeListener("close",a),v.removeListener("error",l),s.removeListener("error",l),v.removeListener("end",f),v.removeListener("close",f),s.removeListener("close",f)}var v=this;v.on("data",h),s.on("drain",o),s._isStdio||i&&i.end===!1||(v.on("end",t),v.on("close",a));var u=!1;return v.on("error",l),s.on("error",l),v.on("end",f),v.on("close",f),s.on("close",f),s.emit("pipe",v),s}},{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,O,p){(function(c){var d=r("./lib/request"),s=r("./lib/response"),i=r("xtend"),h=r("builtin-status-codes"),o=r("url"),t=p;t.request=function(a,l){a=typeof a=="string"?o.parse(a):i(a);var f=c.location.protocol.search(/^https?:$/)===-1?"http:":"",v=a.protocol||f,u=a.hostname||a.host,w=a.port,A=a.path||"/";u&&u.indexOf(":")!==-1&&(u="["+u+"]"),a.url=(u?v+"//"+u:"")+(w?":"+w:"")+A,a.method=(a.method||"GET").toUpperCase(),a.headers=a.headers||{};var E=new d(a);return l&&E.on("response",l),E},t.get=function(a,l){var f=t.request(a,l);return f.end(),f},t.ClientRequest=d,t.IncomingMessage=s.IncomingMessage,t.Agent=function(){},t.Agent.defaultMaxSockets=4,t.globalAgent=new t.Agent,t.STATUS_CODES=h,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 ke!="undefined"?ke: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,O,p){(function(c){"use strict";function d(){if(h!==void 0)return h;if(c.XMLHttpRequest){h=new c.XMLHttpRequest;try{h.open("GET",c.XDomainRequest?"/":"https://example.com")}catch(a){h=null}}else h=null;return h}function s(a){var l=d();if(!l)return!1;try{return l.responseType=a,l.responseType===a}catch(f){}return!1}function i(a){return typeof a=="function"}p.fetch=i(c.fetch)&&i(c.ReadableStream),p.writableStream=i(c.WritableStream),p.abortController=i(c.AbortController),p.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),p.blobConstructor=!0}catch(a){}var h,o=c.ArrayBuffer!==void 0,t=o&&i(c.ArrayBuffer.prototype.slice);p.arraybuffer=p.fetch||o&&s("arraybuffer"),p.msstream=!p.fetch&&t&&s("ms-stream"),p.mozchunkedarraybuffer=!p.fetch&&o&&s("moz-chunked-arraybuffer"),p.overrideMimeType=p.fetch||!!d()&&i(d().overrideMimeType),p.vbArray=i(c.VBArray),h=null}).call(this,typeof ke!="undefined"?ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],198:[function(r,O,p){(function(c,d,s){"use strict";function i(k,g){return a.fetch&&g?"fetch":a.mozchunkedarraybuffer?"moz-chunked-arraybuffer":a.msstream?"ms-stream":a.arraybuffer&&k?"arraybuffer":a.vbArray&&k?"text:vbarray":"text"}function h(k){try{var g=k.status;return g!==null&&g!==0}catch(y){return!1}}var o=r("babel-runtime/core-js/object/keys"),t=function(k){return k&&k.__esModule?k:{default:k}}(o),a=r("./capability"),l=r("inherits"),f=r("./response"),v=r("readable-stream"),u=r("to-arraybuffer"),w=f.IncomingMessage,A=f.readyStates,E=O.exports=function(k){var g=this;v.Writable.call(g),g._opts=k,g._body=[],g._headers={},k.auth&&g.setHeader("Authorization","Basic "+new s(k.auth).toString("base64")),(0,t.default)(k.headers).forEach(function(L){g.setHeader(L,k.headers[L])});var y,j=!0;if(k.mode==="disable-fetch"||"requestTimeout"in k&&!a.abortController)j=!1,y=!0;else if(k.mode==="prefer-streaming")y=!1;else if(k.mode==="allow-wrong-content-type")y=!a.overrideMimeType;else{if(k.mode&&k.mode!=="default"&&k.mode!=="prefer-fast")throw new Error("Invalid value for opts.mode");y=!0}g._mode=i(y,j),g._fetchTimer=null,g.on("finish",function(){g._onFinish()})};l(E,v.Writable),E.prototype.setHeader=function(k,g){var y=this,j=k.toLowerCase();x.indexOf(j)===-1&&(y._headers[j]={name:k,value:g})},E.prototype.getHeader=function(k){var g=this._headers[k.toLowerCase()];return g?g.value:null},E.prototype.removeHeader=function(k){delete this._headers[k.toLowerCase()]},E.prototype._onFinish=function(){var k=this;if(!k._destroyed){var g=k._opts,y=k._headers,j=null;g.method!=="GET"&&g.method!=="HEAD"&&(j=a.arraybuffer?u(s.concat(k._body)):a.blobConstructor?new d.Blob(k._body.map(function(P){return u(P)}),{type:(y["content-type"]||{}).value||""}):s.concat(k._body).toString());var L=[];if((0,t.default)(y).forEach(function(P){var F=y[P].name,$=y[P].value;Array.isArray($)?$.forEach(function(Z){L.push([F,Z])}):L.push([F,$])}),k._mode==="fetch"){var _=null;if(a.abortController){var z=new AbortController;_=z.signal,k._fetchAbortController=z,"requestTimeout"in g&&g.requestTimeout!==0&&(k._fetchTimer=d.setTimeout(function(){k.emit("requestTimeout"),k._fetchAbortController&&k._fetchAbortController.abort()},g.requestTimeout))}d.fetch(k._opts.url,{method:k._opts.method,headers:L,body:j||void 0,mode:"cors",credentials:g.withCredentials?"include":"same-origin",signal:_}).then(function(P){k._fetchResponse=P,k._connect()},function(P){d.clearTimeout(k._fetchTimer),k._destroyed||k.emit("error",P)})}else{var M=k._xhr=new d.XMLHttpRequest;try{M.open(k._opts.method,k._opts.url,!0)}catch(P){return void c.nextTick(function(){k.emit("error",P)})}"responseType"in M&&(M.responseType=k._mode.split(":")[0]),"withCredentials"in M&&(M.withCredentials=!!g.withCredentials),k._mode==="text"&&"overrideMimeType"in M&&M.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in g&&(M.timeout=g.requestTimeout,M.ontimeout=function(){k.emit("requestTimeout")}),L.forEach(function(P){M.setRequestHeader(P[0],P[1])}),k._response=null,M.onreadystatechange=function(){switch(M.readyState){case A.LOADING:case A.DONE:k._onXHRProgress()}},k._mode==="moz-chunked-arraybuffer"&&(M.onprogress=function(){k._onXHRProgress()}),M.onerror=function(){k._destroyed||k.emit("error",new Error("XHR error"))};try{M.send(j)}catch(P){return void c.nextTick(function(){k.emit("error",P)})}}}},E.prototype._onXHRProgress=function(){var k=this;h(k._xhr)&&!k._destroyed&&(k._response||k._connect(),k._response._onXHRProgress())},E.prototype._connect=function(){var k=this;k._destroyed||(k._response=new w(k._xhr,k._fetchResponse,k._mode,k._fetchTimer),k._response.on("error",function(g){k.emit("error",g)}),k.emit("response",k._response))},E.prototype._write=function(k,g,y){this._body.push(k),y()},E.prototype.abort=E.prototype.destroy=function(){var k=this;k._destroyed=!0,d.clearTimeout(k._fetchTimer),k._response&&(k._response._destroyed=!0),k._xhr?k._xhr.abort():k._fetchAbortController&&k._fetchAbortController.abort()},E.prototype.end=function(k,g,y){var j=this;typeof k=="function"&&(y=k,k=void 0),v.Writable.prototype.end.call(j,k,g,y)},E.prototype.flushHeaders=function(){},E.prototype.setTimeout=function(){},E.prototype.setNoDelay=function(){},E.prototype.setSocketKeepAlive=function(){};var x=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this,r("_process"),typeof ke!="undefined"?ke: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,O,p){(function(c,d,s){"use strict";var i=r("babel-runtime/core-js/promise"),h=function(v){return v&&v.__esModule?v:{default:v}}(i),o=r("./capability"),t=r("inherits"),a=r("readable-stream"),l=p.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},f=p.IncomingMessage=function(v,u,w,A){var E=this;if(a.Readable.call(E),E._mode=w,E.headers={},E.rawHeaders=[],E.trailers={},E.rawTrailers=[],E.on("end",function(){c.nextTick(function(){E.emit("close")})}),w==="fetch"){if(E._fetchResponse=u,E.url=u.url,E.statusCode=u.status,E.statusMessage=u.statusText,u.headers.forEach(function(j,L){E.headers[L.toLowerCase()]=j,E.rawHeaders.push(L,j)}),o.writableStream){var x=new WritableStream({write:function(j){return new h.default(function(L,_){E._destroyed?_():E.push(new s(j))?L():E._resumeFetch=L})},close:function(){d.clearTimeout(A),E._destroyed||E.push(null)},abort:function(j){E._destroyed||E.emit("error",j)}});try{return void u.body.pipeTo(x).catch(function(j){d.clearTimeout(A),E._destroyed||E.emit("error",j)})}catch(j){}}var k=u.body.getReader();!function j(){k.read().then(function(L){if(!E._destroyed){if(L.done)return d.clearTimeout(A),void E.push(null);E.push(new s(L.value)),j()}}).catch(function(L){d.clearTimeout(A),E._destroyed||E.emit("error",L)})}()}else if(E._xhr=v,E._pos=0,E.url=v.responseURL,E.statusCode=v.status,E.statusMessage=v.statusText,v.getAllResponseHeaders().split(/\r?\n/).forEach(function(j){var L=j.match(/^([^:]+):\s*(.*)/);if(L){var _=L[1].toLowerCase();_==="set-cookie"?(E.headers[_]===void 0&&(E.headers[_]=[]),E.headers[_].push(L[2])):E.headers[_]!==void 0?E.headers[_]+=", "+L[2]:E.headers[_]=L[2],E.rawHeaders.push(L[1],L[2])}}),E._charset="x-user-defined",!o.overrideMimeType){var g=E.rawHeaders["mime-type"];if(g){var y=g.match(/;\s*charset=([^;])(;|$)/);y&&(E._charset=y[1].toLowerCase())}E._charset||(E._charset="utf-8")}};t(f,a.Readable),f.prototype._read=function(){var v=this,u=v._resumeFetch;u&&(v._resumeFetch=null,u())},f.prototype._onXHRProgress=function(){var v=this,u=v._xhr,w=null;switch(v._mode){case"text:vbarray":if(u.readyState!==l.DONE)break;try{w=new d.VBArray(u.responseBody).toArray()}catch(g){}if(w!==null){v.push(new s(w));break}case"text":try{w=u.responseText}catch(g){v._mode="text:vbarray";break}if(w.length>v._pos){var A=w.substr(v._pos);if(v._charset==="x-user-defined"){for(var E=new s(A.length),x=0;x<A.length;x++)E[x]=255&A.charCodeAt(x);v.push(E)}else v.push(A,v._charset);v._pos=w.length}break;case"arraybuffer":if(u.readyState!==l.DONE||!u.response)break;w=u.response,v.push(new s(new Uint8Array(w)));break;case"moz-chunked-arraybuffer":if(w=u.response,u.readyState!==l.LOADING||!w)break;v.push(new s(new Uint8Array(w)));break;case"ms-stream":if(w=u.response,u.readyState!==l.LOADING)break;var k=new d.MSStreamReader;k.onprogress=function(){k.result.byteLength>v._pos&&(v.push(new s(new Uint8Array(k.result.slice(v._pos)))),v._pos=k.result.byteLength)},k.onload=function(){v.push(null)},k.readAsArrayBuffer(w)}v._xhr.readyState===l.DONE&&v._mode!=="ms-stream"&&v.push(null)}}).call(this,r("_process"),typeof ke!="undefined"?ke: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,O,p){"use strict";function c(g){if(!g)return"utf8";for(var y;;)switch(g){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 g;default:if(y)return;g=(""+g).toLowerCase(),y=!0}}function d(g){var y=c(g);if(typeof y!="string"&&(x.isEncoding===k||!k(g)))throw new Error("Unknown encoding: "+g);return y||g}function s(g){this.encoding=d(g);var y;switch(this.encoding){case"utf16le":this.text=f,this.end=v,y=4;break;case"utf8":this.fillLast=t,y=4;break;case"base64":this.text=u,this.end=w,y=3;break;default:return this.write=A,void(this.end=E)}this.lastNeed=0,this.lastTotal=0,this.lastChar=x.allocUnsafe(y)}function i(g){return g<=127?0:g>>5==6?2:g>>4==14?3:g>>3==30?4:g>>6==2?-1:-2}function h(g,y,j){var L=y.length-1;if(L<j)return 0;var _=i(y[L]);return _>=0?(_>0&&(g.lastNeed=_-1),_):--L<j||_===-2?0:(_=i(y[L]))>=0?(_>0&&(g.lastNeed=_-2),_):--L<j||_===-2?0:(_=i(y[L]),_>=0?(_>0&&(_===2?_=0:g.lastNeed=_-3),_):0)}function o(g,y,j){if((192&y[0])!=128)return g.lastNeed=0,"\u951F\uFFFD";if(g.lastNeed>1&&y.length>1){if((192&y[1])!=128)return g.lastNeed=1,"\u951F\uFFFD";if(g.lastNeed>2&&y.length>2&&(192&y[2])!=128)return g.lastNeed=2,"\u951F\uFFFD"}}function t(g){var y=this.lastTotal-this.lastNeed,j=o(this,g,y);return j!==void 0?j:this.lastNeed<=g.length?(g.copy(this.lastChar,y,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(g.copy(this.lastChar,y,0,g.length),void(this.lastNeed-=g.length))}function a(g,y){var j=h(this,g,y);if(!this.lastNeed)return g.toString("utf8",y);this.lastTotal=j;var L=g.length-(j-this.lastNeed);return g.copy(this.lastChar,0,L),g.toString("utf8",y,L)}function l(g){var y=g&&g.length?this.write(g):"";return this.lastNeed?y+"\u951F\uFFFD":y}function f(g,y){if((g.length-y)%2==0){var j=g.toString("utf16le",y);if(j){var L=j.charCodeAt(j.length-1);if(L>=55296&&L<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1],j.slice(0,-1)}return j}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=g[g.length-1],g.toString("utf16le",y,g.length-1)}function v(g){var y=g&&g.length?this.write(g):"";if(this.lastNeed){var j=this.lastTotal-this.lastNeed;return y+this.lastChar.toString("utf16le",0,j)}return y}function u(g,y){var j=(g.length-y)%3;return j===0?g.toString("base64",y):(this.lastNeed=3-j,this.lastTotal=3,j===1?this.lastChar[0]=g[g.length-1]:(this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1]),g.toString("base64",y,g.length-j))}function w(g){var y=g&&g.length?this.write(g):"";return this.lastNeed?y+this.lastChar.toString("base64",0,3-this.lastNeed):y}function A(g){return g.toString(this.encoding)}function E(g){return g&&g.length?this.write(g):""}var x=r("safe-buffer").Buffer,k=x.isEncoding||function(g){switch((g=""+g)&&g.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}};p.StringDecoder=s,s.prototype.write=function(g){if(g.length===0)return"";var y,j;if(this.lastNeed){if((y=this.fillLast(g))===void 0)return"";j=this.lastNeed,this.lastNeed=0}else j=0;return j<g.length?y?y+this.text(g,j):this.text(g,j):y||""},s.prototype.end=l,s.prototype.text=a,s.prototype.fillLast=function(g){if(this.lastNeed<=g.length)return g.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);g.copy(this.lastChar,this.lastTotal-this.lastNeed,0,g.length),this.lastNeed-=g.length}},{"safe-buffer":193}],201:[function(r,O,p){(function(c,d){function s(l,f){this._id=l,this._clearFn=f}var i=r("process/browser.js").nextTick,h=Function.prototype.apply,o=Array.prototype.slice,t={},a=0;p.setTimeout=function(){return new s(h.call(setTimeout,window,arguments),clearTimeout)},p.setInterval=function(){return new s(h.call(setInterval,window,arguments),clearInterval)},p.clearTimeout=p.clearInterval=function(l){l.close()},s.prototype.unref=s.prototype.ref=function(){},s.prototype.close=function(){this._clearFn.call(window,this._id)},p.enroll=function(l,f){clearTimeout(l._idleTimeoutId),l._idleTimeout=f},p.unenroll=function(l){clearTimeout(l._idleTimeoutId),l._idleTimeout=-1},p._unrefActive=p.active=function(l){clearTimeout(l._idleTimeoutId);var f=l._idleTimeout;f>=0&&(l._idleTimeoutId=setTimeout(function(){l._onTimeout&&l._onTimeout()},f))},p.setImmediate=typeof c=="function"?c:function(l){var f=a++,v=!(arguments.length<2)&&o.call(arguments,1);return t[f]=!0,i(function(){t[f]&&(v?l.apply(null,v):l.call(null),p.clearImmediate(f))}),f},p.clearImmediate=typeof d=="function"?d:function(l){delete t[l]}}).call(this,r("timers").setImmediate,r("timers").clearImmediate)},{"process/browser.js":173,timers:201}],202:[function(r,O,p){var c=r("buffer").Buffer;O.exports=function(d){if(d instanceof Uint8Array){if(d.byteOffset===0&&d.byteLength===d.buffer.byteLength)return d.buffer;if(typeof d.buffer.slice=="function")return d.buffer.slice(d.byteOffset,d.byteOffset+d.byteLength)}if(c.isBuffer(d)){for(var s=new Uint8Array(d.length),i=d.length,h=0;h<i;h++)s[h]=d[h];return s.buffer}throw new Error("Argument must be a Buffer")}},{buffer:38}],203:[function(r,O,p){"use strict";function c(){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 d(_,z,M){if(_&&t.isObject(_)&&_ instanceof c)return _;var P=new c;return P.parse(_,z,M),P}function s(_){return t.isString(_)&&(_=d(_)),_ instanceof c?_.format():c.prototype.format.call(_)}function i(_,z){return d(_,!1,!0).resolve(z)}function h(_,z){return _?d(_,!1,!0).resolveObject(z):z}var o=r("punycode"),t=r("./util");p.parse=d,p.resolve=i,p.resolveObject=h,p.format=s,p.Url=c;var a=/^([a-z0-9.+-]+:)/i,l=/:[0-9]*$/,f=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,v=["<",">",'"',"`"," ","\r",`
`," "],u=["{","}","|","\\","^","`"].concat(v),w=["'"].concat(u),A=["%","/","?",";","#"].concat(w),E=["/","?","#"],x=/^[+a-z0-9A-Z_-]{0,63}$/,k=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,g={javascript:!0,"javascript:":!0},y={javascript:!0,"javascript:":!0},j={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},L=r("querystring");c.prototype.parse=function(_,z,M){if(!t.isString(_))throw new TypeError("Parameter 'url' must be a string, not "+typeof _);var P=_.indexOf("?"),F=P!==-1&&P<_.indexOf("#")?"?":"#",$=_.split(F),Z=/\\/g;$[0]=$[0].replace(Z,"/"),_=$.join(F);var Q=_;if(Q=Q.trim(),!M&&_.split("#").length===1){var re=f.exec(Q);if(re)return this.path=Q,this.href=Q,this.pathname=re[1],re[2]?(this.search=re[2],this.query=z?L.parse(this.search.substr(1)):this.search.substr(1)):z&&(this.search="",this.query={}),this}var N=a.exec(Q);if(N){N=N[0];var ue=N.toLowerCase();this.protocol=ue,Q=Q.substr(N.length)}if(M||N||Q.match(/^\/\/[^@\/]+@[^@\/]+/)){var G=Q.substr(0,2)==="//";!G||N&&y[N]||(Q=Q.substr(2),this.slashes=!0)}if(!y[N]&&(G||N&&!j[N])){for(var V=-1,T=0;T<E.length;T++){var U=Q.indexOf(E[T]);U!==-1&&(V===-1||U<V)&&(V=U)}var H,K;K=V===-1?Q.lastIndexOf("@"):Q.lastIndexOf("@",V),K!==-1&&(H=Q.slice(0,K),Q=Q.slice(K+1),this.auth=decodeURIComponent(H)),V=-1;for(var T=0;T<A.length;T++){var U=Q.indexOf(A[T]);U!==-1&&(V===-1||U<V)&&(V=U)}V===-1&&(V=Q.length),this.host=Q.slice(0,V),Q=Q.slice(V),this.parseHost(),this.hostname=this.hostname||"";var be=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!be)for(var ae=this.hostname.split(/\./),T=0,_e=ae.length;T<_e;T++){var se=ae[T];if(se&&!se.match(x)){for(var ve="",te=0,J=se.length;te<J;te++)se.charCodeAt(te)>127?ve+="x":ve+=se[te];if(!ve.match(x)){var q=ae.slice(0,T),he=ae.slice(T+1),Y=se.match(k);Y&&(q.push(Y[1]),he.unshift(Y[2])),he.length&&(Q="/"+he.join(".")+Q),this.hostname=q.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),be||(this.hostname=o.toASCII(this.hostname));var W=this.port?":"+this.port:"",me=this.hostname||"";this.host=me+W,this.href+=this.host,be&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),Q[0]!=="/"&&(Q="/"+Q))}if(!g[ue])for(var T=0,_e=w.length;T<_e;T++){var ge=w[T];if(Q.indexOf(ge)!==-1){var Ae=encodeURIComponent(ge);Ae===ge&&(Ae=escape(ge)),Q=Q.split(ge).join(Ae)}}var I=Q.indexOf("#");I!==-1&&(this.hash=Q.substr(I),Q=Q.slice(0,I));var e=Q.indexOf("?");if(e!==-1?(this.search=Q.substr(e),this.query=Q.substr(e+1),z&&(this.query=L.parse(this.query)),Q=Q.slice(0,e)):z&&(this.search="",this.query={}),Q&&(this.pathname=Q),j[ue]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var W=this.pathname||"",n=this.search||"";this.path=W+n}return this.href=this.format(),this},c.prototype.format=function(){var _=this.auth||"";_&&(_=encodeURIComponent(_),_=_.replace(/%3A/i,":"),_+="@");var z=this.protocol||"",M=this.pathname||"",P=this.hash||"",F=!1,$="";this.host?F=_+this.host:this.hostname&&(F=_+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(F+=":"+this.port)),this.query&&t.isObject(this.query)&&Object.keys(this.query).length&&($=L.stringify(this.query));var Z=this.search||$&&"?"+$||"";return z&&z.substr(-1)!==":"&&(z+=":"),this.slashes||(!z||j[z])&&F!==!1?(F="//"+(F||""),M&&M.charAt(0)!=="/"&&(M="/"+M)):F||(F=""),P&&P.charAt(0)!=="#"&&(P="#"+P),Z&&Z.charAt(0)!=="?"&&(Z="?"+Z),M=M.replace(/[?#]/g,function(Q){return encodeURIComponent(Q)}),Z=Z.replace("#","%23"),z+F+M+Z+P},c.prototype.resolve=function(_){return this.resolveObject(d(_,!1,!0)).format()},c.prototype.resolveObject=function(_){if(t.isString(_)){var z=new c;z.parse(_,!1,!0),_=z}for(var M=new c,P=Object.keys(this),F=0;F<P.length;F++){var $=P[F];M[$]=this[$]}if(M.hash=_.hash,_.href==="")return M.href=M.format(),M;if(_.slashes&&!_.protocol){for(var Z=Object.keys(_),Q=0;Q<Z.length;Q++){var re=Z[Q];re!=="protocol"&&(M[re]=_[re])}return j[M.protocol]&&M.hostname&&!M.pathname&&(M.path=M.pathname="/"),M.href=M.format(),M}if(_.protocol&&_.protocol!==M.protocol){if(!j[_.protocol]){for(var N=Object.keys(_),ue=0;ue<N.length;ue++){var G=N[ue];M[G]=_[G]}return M.href=M.format(),M}if(M.protocol=_.protocol,_.host||y[_.protocol])M.pathname=_.pathname;else{for(var _e=(_.pathname||"").split("/");_e.length&&!(_.host=_e.shift()););_.host||(_.host=""),_.hostname||(_.hostname=""),_e[0]!==""&&_e.unshift(""),_e.length<2&&_e.unshift(""),M.pathname=_e.join("/")}if(M.search=_.search,M.query=_.query,M.host=_.host||"",M.auth=_.auth,M.hostname=_.hostname||_.host,M.port=_.port,M.pathname||M.search){var V=M.pathname||"",T=M.search||"";M.path=V+T}return M.slashes=M.slashes||_.slashes,M.href=M.format(),M}var U=M.pathname&&M.pathname.charAt(0)==="/",H=_.host||_.pathname&&_.pathname.charAt(0)==="/",K=H||U||M.host&&_.pathname,be=K,ae=M.pathname&&M.pathname.split("/")||[],_e=_.pathname&&_.pathname.split("/")||[],se=M.protocol&&!j[M.protocol];if(se&&(M.hostname="",M.port=null,M.host&&(ae[0]===""?ae[0]=M.host:ae.unshift(M.host)),M.host="",_.protocol&&(_.hostname=null,_.port=null,_.host&&(_e[0]===""?_e[0]=_.host:_e.unshift(_.host)),_.host=null),K=K&&(_e[0]===""||ae[0]==="")),H)M.host=_.host||_.host===""?_.host:M.host,M.hostname=_.hostname||_.hostname===""?_.hostname:M.hostname,M.search=_.search,M.query=_.query,ae=_e;else if(_e.length)ae||(ae=[]),ae.pop(),ae=ae.concat(_e),M.search=_.search,M.query=_.query;else if(!t.isNullOrUndefined(_.search)){if(se){M.hostname=M.host=ae.shift();var ve=!!(M.host&&M.host.indexOf("@")>0)&&M.host.split("@");ve&&(M.auth=ve.shift(),M.host=M.hostname=ve.shift())}return M.search=_.search,M.query=_.query,t.isNull(M.pathname)&&t.isNull(M.search)||(M.path=(M.pathname?M.pathname:"")+(M.search?M.search:"")),M.href=M.format(),M}if(!ae.length)return M.pathname=null,M.search?M.path="/"+M.search:M.path=null,M.href=M.format(),M;for(var te=ae.slice(-1)[0],J=(M.host||_.host||ae.length>1)&&(te==="."||te==="..")||te==="",q=0,he=ae.length;he>=0;he--)te=ae[he],te==="."?ae.splice(he,1):te===".."?(ae.splice(he,1),q++):q&&(ae.splice(he,1),q--);if(!K&&!be)for(;q--;q)ae.unshift("..");!K||ae[0]===""||ae[0]&&ae[0].charAt(0)==="/"||ae.unshift(""),J&&ae.join("/").substr(-1)!=="/"&&ae.push("");var Y=ae[0]===""||ae[0]&&ae[0].charAt(0)==="/";if(se){M.hostname=M.host=Y?"":ae.length?ae.shift():"";var ve=!!(M.host&&M.host.indexOf("@")>0)&&M.host.split("@");ve&&(M.auth=ve.shift(),M.host=M.hostname=ve.shift())}return K=K||M.host&&ae.length,K&&!Y&&ae.unshift(""),ae.length?M.pathname=ae.join("/"):(M.pathname=null,M.path=null),t.isNull(M.pathname)&&t.isNull(M.search)||(M.path=(M.pathname?M.pathname:"")+(M.search?M.search:"")),M.auth=_.auth||M.auth,M.slashes=M.slashes||_.slashes,M.href=M.format(),M},c.prototype.parseHost=function(){var _=this.host,z=l.exec(_);z&&(z=z[0],z!==":"&&(this.port=z.substr(1)),_=_.substr(0,_.length-z.length)),_&&(this.hostname=_)}},{"./util":204,punycode:174,querystring:177}],204:[function(r,O,p){"use strict";O.exports={isString:function(c){return typeof c=="string"},isObject:function(c){return typeof c=="object"&&c!==null},isNull:function(c){return c===null},isNullOrUndefined:function(c){return c==null}}},{}],205:[function(r,O,p){(function(c){function d(i,h){function o(){if(!t){if(s("throwDeprecation"))throw new Error(h);s("traceDeprecation")?console.trace(h):console.warn(h),t=!0}return i.apply(this,arguments)}if(s("noDeprecation"))return i;var t=!1;return o}function s(i){try{if(!c.localStorage)return!1}catch(o){return!1}var h=c.localStorage[i];return h!=null&&String(h).toLowerCase()==="true"}O.exports=d}).call(this,typeof ke!="undefined"?ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],206:[function(r,O,p){O.exports=function(c){return c&&typeof c=="object"&&typeof c.copy=="function"&&typeof c.fill=="function"&&typeof c.readUInt8=="function"}},{}],207:[function(r,O,p){(function(c,d){function s(T,U){var H={seen:[],stylize:h};return arguments.length>=3&&(H.depth=arguments[2]),arguments.length>=4&&(H.colors=arguments[3]),A(U)?H.showHidden=U:U&&p._extend(H,U),j(H.showHidden)&&(H.showHidden=!1),j(H.depth)&&(H.depth=2),j(H.colors)&&(H.colors=!1),j(H.customInspect)&&(H.customInspect=!0),H.colors&&(H.stylize=i),t(H,T,H.depth)}function i(T,U){var H=s.styles[U];return H?"["+s.colors[H][0]+"m"+T+"["+s.colors[H][1]+"m":T}function h(T,U){return T}function o(T){var U={};return T.forEach(function(H,K){U[H]=!0}),U}function t(T,U,H){if(T.customInspect&&U&&P(U.inspect)&&U.inspect!==p.inspect&&(!U.constructor||U.constructor.prototype!==U)){var K=U.inspect(H,T);return g(K)||(K=t(T,K,H)),K}var be=a(T,U);if(be)return be;var ae=Object.keys(U),_e=o(ae);if(T.showHidden&&(ae=Object.getOwnPropertyNames(U)),M(U)&&(ae.indexOf("message")>=0||ae.indexOf("description")>=0))return l(U);if(ae.length===0){if(P(U)){var se=U.name?": "+U.name:"";return T.stylize("[Function"+se+"]","special")}if(L(U))return T.stylize(RegExp.prototype.toString.call(U),"regexp");if(z(U))return T.stylize(Date.prototype.toString.call(U),"date");if(M(U))return l(U)}var ve="",te=!1,J=["{","}"];if((w(U)&&(te=!0,J=["[","]"]),P(U))&&(ve=" [Function"+(U.name?": "+U.name:"")+"]"),L(U)&&(ve=" "+RegExp.prototype.toString.call(U)),z(U)&&(ve=" "+Date.prototype.toUTCString.call(U)),M(U)&&(ve=" "+l(U)),ae.length===0&&(!te||U.length==0))return J[0]+ve+J[1];if(H<0)return L(U)?T.stylize(RegExp.prototype.toString.call(U),"regexp"):T.stylize("[Object]","special");T.seen.push(U);var q;return q=te?f(T,U,H,_e,ae):ae.map(function(he){return v(T,U,H,_e,he,te)}),T.seen.pop(),u(q,ve,J)}function a(T,U){if(j(U))return T.stylize("undefined","undefined");if(g(U)){var H="'"+JSON.stringify(U).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return T.stylize(H,"string")}return k(U)?T.stylize(""+U,"number"):A(U)?T.stylize(""+U,"boolean"):E(U)?T.stylize("null","null"):void 0}function l(T){return"["+Error.prototype.toString.call(T)+"]"}function f(T,U,H,K,be){for(var ae=[],_e=0,se=U.length;_e<se;++_e)re(U,String(_e))?ae.push(v(T,U,H,K,String(_e),!0)):ae.push("");return be.forEach(function(ve){ve.match(/^\d+$/)||ae.push(v(T,U,H,K,ve,!0))}),ae}function v(T,U,H,K,be,ae){var _e,se,ve;if(ve=Object.getOwnPropertyDescriptor(U,be)||{value:U[be]},ve.get?se=ve.set?T.stylize("[Getter/Setter]","special"):T.stylize("[Getter]","special"):ve.set&&(se=T.stylize("[Setter]","special")),re(K,be)||(_e="["+be+"]"),se||(T.seen.indexOf(ve.value)<0?(se=E(H)?t(T,ve.value,null):t(T,ve.value,H-1),se.indexOf(`
`)>-1&&(se=ae?se.split(`
`).map(function(te){return" "+te}).join(`
`).substr(2):`
`+se.split(`
`).map(function(te){return" "+te}).join(`
`))):se=T.stylize("[Circular]","special")),j(_e)){if(ae&&be.match(/^\d+$/))return se;_e=JSON.stringify(""+be),_e.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(_e=_e.substr(1,_e.length-2),_e=T.stylize(_e,"name")):(_e=_e.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),_e=T.stylize(_e,"string"))}return _e+": "+se}function u(T,U,H){var K=0;return T.reduce(function(be,ae){return K++,ae.indexOf(`
`)>=0&&K++,be+ae.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?H[0]+(U===""?"":U+`
`)+" "+T.join(`,
`)+" "+H[1]:H[0]+U+" "+T.join(", ")+" "+H[1]}function w(T){return Array.isArray(T)}function A(T){return typeof T=="boolean"}function E(T){return T===null}function x(T){return T==null}function k(T){return typeof T=="number"}function g(T){return typeof T=="string"}function y(T){return typeof T=="symbol"}function j(T){return T===void 0}function L(T){return _(T)&&$(T)==="[object RegExp]"}function _(T){return typeof T=="object"&&T!==null}function z(T){return _(T)&&$(T)==="[object Date]"}function M(T){return _(T)&&($(T)==="[object Error]"||T instanceof Error)}function P(T){return typeof T=="function"}function F(T){return T===null||typeof T=="boolean"||typeof T=="number"||typeof T=="string"||typeof T=="symbol"||T===void 0}function $(T){return Object.prototype.toString.call(T)}function Z(T){return T<10?"0"+T.toString(10):T.toString(10)}function Q(){var T=new Date,U=[Z(T.getHours()),Z(T.getMinutes()),Z(T.getSeconds())].join(":");return[T.getDate(),V[T.getMonth()],U].join(" ")}function re(T,U){return Object.prototype.hasOwnProperty.call(T,U)}var N=/%[sdj%]/g;p.format=function(T){if(!g(T)){for(var U=[],H=0;H<arguments.length;H++)U.push(s(arguments[H]));return U.join(" ")}for(var H=1,K=arguments,be=K.length,ae=String(T).replace(N,function(ve){if(ve==="%%")return"%";if(H>=be)return ve;switch(ve){case"%s":return String(K[H++]);case"%d":return Number(K[H++]);case"%j":try{return JSON.stringify(K[H++])}catch(te){return"[Circular]"}default:return ve}}),_e=K[H];H<be;_e=K[++H])E(_e)||!_(_e)?ae+=" "+_e:ae+=" "+s(_e);return ae},p.deprecate=function(T,U){function H(){if(!K){if(c.throwDeprecation)throw new Error(U);c.traceDeprecation?console.trace(U):console.error(U),K=!0}return T.apply(this,arguments)}if(j(d.process))return function(){return p.deprecate(T,U).apply(this,arguments)};if(c.noDeprecation===!0)return T;var K=!1;return H};var ue,G={};p.debuglog=function(T){if(j(ue)&&(ue=c.env.NODE_DEBUG||""),T=T.toUpperCase(),!G[T])if(new RegExp("\\b"+T+"\\b","i").test(ue)){var U=c.pid;G[T]=function(){var H=p.format.apply(p,arguments);console.error("%s %d: %s",T,U,H)}}else G[T]=function(){};return G[T]},p.inspect=s,s.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]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},p.isArray=w,p.isBoolean=A,p.isNull=E,p.isNullOrUndefined=x,p.isNumber=k,p.isString=g,p.isSymbol=y,p.isUndefined=j,p.isRegExp=L,p.isObject=_,p.isDate=z,p.isError=M,p.isFunction=P,p.isPrimitive=F,p.isBuffer=r("./support/isBuffer");var V=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];p.log=function(){console.log("%s - %s",Q(),p.format.apply(p,arguments))},p.inherits=r("inherits"),p._extend=function(T,U){if(!U||!_(U))return T;for(var H=Object.keys(U),K=H.length;K--;)T[H[K]]=U[H[K]];return T}}).call(this,r("_process"),typeof ke!="undefined"?ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":206,_process:173,inherits:162}],208:[function(r,O,p){"use strict";(function(){p.stripBOM=function(c){return c[0]==="\uFEFF"?c.substring(1):c}}).call(void 0)},{}],209:[function(r,O,p){"use strict";function c(o){return o&&o.__esModule?o:{default:o}}var d=r("babel-runtime/helpers/typeof"),s=c(d),i=r("babel-runtime/core-js/object/keys"),h=c(i);(function(){var o,t,a,l,f,v={}.hasOwnProperty;o=r("xmlbuilder"),t=r("./defaults").defaults,l=function(u){return typeof u=="string"&&(u.indexOf("&")>=0||u.indexOf(">")>=0||u.indexOf("<")>=0)},f=function(u){return"<![CDATA["+a(u)+"]]>"},a=function(u){return u.replace("]]>","]]]]><![CDATA[>")},p.Builder=function(){function u(w){var A,E,x;this.options={},E=t[.2];for(A in E)v.call(E,A)&&(x=E[A],this.options[A]=x);for(A in w)v.call(w,A)&&(x=w[A],this.options[A]=x)}return u.prototype.buildObject=function(w){var A,E,x,k,g;return A=this.options.attrkey,E=this.options.charkey,(0,h.default)(w).length===1&&this.options.rootName===t[.2].rootName?(g=(0,h.default)(w)[0],w=w[g]):g=this.options.rootName,x=function(y){return function(j,L){var _,z,M,P,F,$;if((L===void 0?"undefined":(0,s.default)(L))!=="object")y.options.cdata&&l(L)?j.raw(f(L)):j.txt(L);else if(Array.isArray(L)){for(P in L)if(v.call(L,P)){z=L[P];for(F in z)M=z[F],j=x(j.ele(F),M).up()}}else for(F in L)if(v.call(L,F))if(z=L[F],F===A){if((z===void 0?"undefined":(0,s.default)(z))==="object")for(_ in z)$=z[_],j=j.att(_,$)}else if(F===E)j=y.options.cdata&&l(z)?j.raw(f(z)):j.txt(z);else if(Array.isArray(z))for(P in z)v.call(z,P)&&(M=z[P],j=typeof M=="string"?y.options.cdata&&l(M)?j.ele(F).raw(f(M)).up():j.ele(F,M).up():x(j.ele(F),M).up());else(z===void 0?"undefined":(0,s.default)(z))==="object"?j=x(j.ele(F),z).up():typeof z=="string"&&y.options.cdata&&l(z)?j=j.ele(F).raw(f(z)).up():(z==null&&(z=""),j=j.ele(F,z.toString()).up());return j}}(this),k=o.create(g,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),x(k,w).end(this.options.renderOpts)},u}()}).call(void 0)},{"./defaults":210,"babel-runtime/core-js/object/keys":23,"babel-runtime/helpers/typeof":32,xmlbuilder:235}],210:[function(r,O,p){"use strict";(function(){p.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,O,p){"use strict";function c(a){return a&&a.__esModule?a:{default:a}}var d=r("babel-runtime/core-js/object/get-own-property-names"),s=c(d),i=r("babel-runtime/core-js/object/keys"),h=c(i),o=r("babel-runtime/helpers/typeof"),t=c(o);(function(){var a,l,f,v,u,w,A,E,x=function(y,j){return function(){return y.apply(j,arguments)}},k=function(y,j){function L(){this.constructor=y}for(var _ in j)g.call(j,_)&&(y[_]=j[_]);return L.prototype=j.prototype,y.prototype=new L,y.__super__=j.prototype,y},g={}.hasOwnProperty;A=r("sax"),f=r("events"),a=r("./bom"),w=r("./processors"),E=r("timers").setImmediate,l=r("./defaults").defaults,v=function(y){return(y===void 0?"undefined":(0,t.default)(y))==="object"&&y!=null&&(0,h.default)(y).length===0},u=function(y,j,L){var _,z,M;for(_=0,z=y.length;_<z;_++)M=y[_],j=M(j,L);return j},p.Parser=function(y){function j(L){this.parseString=x(this.parseString,this),this.reset=x(this.reset,this),this.assignOrPush=x(this.assignOrPush,this),this.processAsync=x(this.processAsync,this);var _,z,M;if(!(this instanceof p.Parser))return new p.Parser(L);this.options={},z=l[.2];for(_ in z)g.call(z,_)&&(M=z[_],this.options[_]=M);for(_ in L)g.call(L,_)&&(M=L[_],this.options[_]=M);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(w.normalize)),this.reset()}return k(j,y),j.prototype.processAsync=function(){var L,_;try{return this.remaining.length<=this.options.chunkSize?(L=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(L),this.saxParser.close()):(L=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(L),E(this.processAsync))}catch(z){if(_=z,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(_)}},j.prototype.assignOrPush=function(L,_,z){return _ in L?(L[_]instanceof Array||(L[_]=[L[_]]),L[_].push(z)):this.options.explicitArray?L[_]=[z]:L[_]=z},j.prototype.reset=function(){var L,_,z,M;return this.removeAllListeners(),this.saxParser=A.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(P){return function(F){if(P.saxParser.resume(),!P.saxParser.errThrown)return P.saxParser.errThrown=!0,P.emit("error",F)}}(this),this.saxParser.onend=function(P){return function(){if(!P.saxParser.ended)return P.saxParser.ended=!0,P.emit("end",P.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,M=[],L=this.options.attrkey,_=this.options.charkey,this.saxParser.onopentag=function(P){return function(F){var $,Z,Q,re,N;if(Q={},Q[_]="",!P.options.ignoreAttrs){N=F.attributes;for($ in N)g.call(N,$)&&(L in Q||P.options.mergeAttrs||(Q[L]={}),Z=P.options.attrValueProcessors?u(P.options.attrValueProcessors,F.attributes[$],$):F.attributes[$],re=P.options.attrNameProcessors?u(P.options.attrNameProcessors,$):$,P.options.mergeAttrs?P.assignOrPush(Q,re,Z):Q[L][re]=Z)}return Q["#name"]=P.options.tagNameProcessors?u(P.options.tagNameProcessors,F.name):F.name,P.options.xmlns&&(Q[P.options.xmlnskey]={uri:F.uri,local:F.local}),M.push(Q)}}(this),this.saxParser.onclosetag=function(P){return function(){var F,$,Z,Q,re,N,ue,G,V,T;if(N=M.pop(),re=N["#name"],P.options.explicitChildren&&P.options.preserveChildrenOrder||delete N["#name"],N.cdata===!0&&(F=N.cdata,delete N.cdata),V=M[M.length-1],N[_].match(/^\s*$/)&&!F?($=N[_],delete N[_]):(P.options.trim&&(N[_]=N[_].trim()),P.options.normalize&&(N[_]=N[_].replace(/\s{2,}/g," ").trim()),N[_]=P.options.valueProcessors?u(P.options.valueProcessors,N[_],re):N[_],(0,h.default)(N).length===1&&_ in N&&!P.EXPLICIT_CHARKEY&&(N=N[_])),v(N)&&(N=P.options.emptyTag!==""?P.options.emptyTag:$),P.options.validator!=null&&(T="/"+function(){var U,H,K;for(K=[],U=0,H=M.length;U<H;U++)Q=M[U],K.push(Q["#name"]);return K}().concat(re).join("/"),function(){var U;try{N=P.options.validator(T,V&&V[re],N)}catch(H){return U=H,P.emit("error",U)}}()),P.options.explicitChildren&&!P.options.mergeAttrs&&(N===void 0?"undefined":(0,t.default)(N))==="object")if(P.options.preserveChildrenOrder){if(V){V[P.options.childkey]=V[P.options.childkey]||[],ue={};for(Z in N)g.call(N,Z)&&(ue[Z]=N[Z]);V[P.options.childkey].push(ue),delete N["#name"],(0,h.default)(N).length===1&&_ in N&&!P.EXPLICIT_CHARKEY&&(N=N[_])}}else Q={},P.options.attrkey in N&&(Q[P.options.attrkey]=N[P.options.attrkey],delete N[P.options.attrkey]),!P.options.charsAsChildren&&P.options.charkey in N&&(Q[P.options.charkey]=N[P.options.charkey],delete N[P.options.charkey]),(0,s.default)(N).length>0&&(Q[P.options.childkey]=N),N=Q;return M.length>0?P.assignOrPush(V,re,N):(P.options.explicitRoot&&(G=N,N={},N[re]=G),P.resultObject=N,P.saxParser.ended=!0,P.emit("end",P.resultObject))}}(this),z=function(P){return function(F){var $,Z;if(Z=M[M.length-1])return Z[_]+=F,P.options.explicitChildren&&P.options.preserveChildrenOrder&&P.options.charsAsChildren&&(P.options.includeWhiteChars||F.replace(/\\n/g,"").trim()!=="")&&(Z[P.options.childkey]=Z[P.options.childkey]||[],$={"#name":"__text__"},$[_]=F,P.options.normalize&&($[_]=$[_].replace(/\s{2,}/g," ").trim()),Z[P.options.childkey].push($)),Z}}(this),this.saxParser.ontext=z,this.saxParser.oncdata=function(P){return function(F){var $;if($=z(F))return $.cdata=!0}}()},j.prototype.parseString=function(L,_){var z;_!=null&&typeof _=="function"&&(this.on("end",function(M){return this.reset(),_(null,M)}),this.on("error",function(M){return this.reset(),_(M)}));try{return L=L.toString(),L.trim()===""?(this.emit("end",null),!0):(L=a.stripBOM(L),this.options.async?(this.remaining=L,E(this.processAsync),this.saxParser):this.saxParser.write(L).close())}catch(M){if(z=M,!this.saxParser.errThrown&&!this.saxParser.ended)return this.emit("error",z),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw z}},j}(f.EventEmitter),p.parseString=function(y,j,L){var _,z,M;return L!=null?(typeof L=="function"&&(_=L),(j===void 0?"undefined":(0,t.default)(j))==="object"&&(z=j)):(typeof j=="function"&&(_=j),z={}),M=new p.Parser(z),M.parseString(y,_)}}).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,O,p){"use strict";(function(){var c;c=new RegExp(/(?!xmlns)^.*:/),p.normalize=function(d){return d.toLowerCase()},p.firstCharLowerCase=function(d){return d.charAt(0).toLowerCase()+d.slice(1)},p.stripPrefix=function(d){return d.replace(c,"")},p.parseNumbers=function(d){return isNaN(d)||(d=d%1==0?parseInt(d,10):parseFloat(d)),d},p.parseBooleans=function(d){return/^(?:true|false)$/i.test(d)&&(d=d.toLowerCase()==="true"),d}}).call(void 0)},{}],213:[function(r,O,p){"use strict";(function(){var c,d,s,i,h=function(t,a){function l(){this.constructor=t}for(var f in a)o.call(a,f)&&(t[f]=a[f]);return l.prototype=a.prototype,t.prototype=new l,t.__super__=a.prototype,t},o={}.hasOwnProperty;d=r("./defaults"),c=r("./builder"),s=r("./parser"),i=r("./processors"),p.defaults=d.defaults,p.processors=i,p.ValidationError=function(t){function a(l){this.message=l}return h(a,t),a}(Error),p.Builder=c.Builder,p.Parser=s.Parser,p.parseString=s.parseString}).call(void 0)},{"./builder":209,"./defaults":210,"./parser":211,"./processors":212}],214:[function(r,O,p){"use strict";function c(a){return a&&a.__esModule?a:{default:a}}var d=r("babel-runtime/core-js/object/get-prototype-of"),s=c(d),i=r("babel-runtime/helpers/typeof"),h=c(i),o=r("babel-runtime/core-js/object/assign"),t=c(o);(function(){var a,l,f,v,u,w,A=[].slice,E={}.hasOwnProperty;a=function(){var x,k,g,y,j,L;if(L=arguments[0],j=2<=arguments.length?A.call(arguments,1):[],v(t.default))t.default.apply(null,arguments);else for(x=0,g=j.length;x<g;x++)if((y=j[x])!=null)for(k in y)E.call(y,k)&&(L[k]=y[k]);return L},v=function(x){return!!x&&Object.prototype.toString.call(x)==="[object Function]"},u=function(x){var k;return!!x&&((k=x===void 0?"undefined":(0,h.default)(x))==="function"||k==="object")},l=function(x){return v(Array.isArray)?Array.isArray(x):Object.prototype.toString.call(x)==="[object Array]"},f=function(x){var k;if(l(x))return!x.length;for(k in x)if(E.call(x,k))return!1;return!0},w=function(x){var k,g;return u(x)&&(g=(0,s.default)(x))&&(k=g.constructor)&&typeof k=="function"&&k instanceof k&&Function.prototype.toString.call(k)===Function.prototype.toString.call(Object)},O.exports.assign=a,O.exports.isFunction=v,O.exports.isObject=u,O.exports.isArray=l,O.exports.isEmpty=f,O.exports.isPlainObject=w}).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,O,p){"use strict";var c=r("babel-runtime/core-js/object/create"),d=function(s){return s&&s.__esModule?s:{default:s}}(c);(function(){O.exports=function(){function s(i,h,o){if(this.options=i.options,this.stringify=i.stringify,h==null)throw new Error("Missing attribute name of element "+i.name);if(o==null)throw new Error("Missing attribute value for attribute "+h+" of element "+i.name);this.name=this.stringify.attName(h),this.value=this.stringify.attValue(o)}return s.prototype.clone=function(){return(0,d.default)(this)},s.prototype.toString=function(i){return this.options.writer.set(i).attribute(this)},s}()}).call(void 0)},{"babel-runtime/core-js/object/create":19}],216:[function(r,O,p){"use strict";var c=r("babel-runtime/core-js/object/create"),d=function(s){return s&&s.__esModule?s:{default:s}}(c);(function(){var s,i=function(o,t){function a(){this.constructor=o}for(var l in t)h.call(t,l)&&(o[l]=t[l]);return a.prototype=t.prototype,o.prototype=new a,o.__super__=t.prototype,o},h={}.hasOwnProperty;s=r("./XMLNode"),O.exports=function(o){function t(a,l){if(t.__super__.constructor.call(this,a),l==null)throw new Error("Missing CDATA text");this.text=this.stringify.cdata(l)}return i(t,o),t.prototype.clone=function(){return(0,d.default)(this)},t.prototype.toString=function(a){return this.options.writer.set(a).cdata(this)},t}(s)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],217:[function(r,O,p){"use strict";var c=r("babel-runtime/core-js/object/create"),d=function(s){return s&&s.__esModule?s:{default:s}}(c);(function(){var s,i=function(o,t){function a(){this.constructor=o}for(var l in t)h.call(t,l)&&(o[l]=t[l]);return a.prototype=t.prototype,o.prototype=new a,o.__super__=t.prototype,o},h={}.hasOwnProperty;s=r("./XMLNode"),O.exports=function(o){function t(a,l){if(t.__super__.constructor.call(this,a),l==null)throw new Error("Missing comment text");this.text=this.stringify.comment(l)}return i(t,o),t.prototype.clone=function(){return(0,d.default)(this)},t.prototype.toString=function(a){return this.options.writer.set(a).comment(this)},t}(s)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],218:[function(r,O,p){"use strict";(function(){var c,d=function(i,h){function o(){this.constructor=i}for(var t in h)s.call(h,t)&&(i[t]=h[t]);return o.prototype=h.prototype,i.prototype=new o,i.__super__=h.prototype,i},s={}.hasOwnProperty;c=r("./XMLNode"),O.exports=function(i){function h(o,t,a,l,f,v){if(h.__super__.constructor.call(this,o),t==null)throw new Error("Missing DTD element name");if(a==null)throw new Error("Missing DTD attribute name");if(!l)throw new Error("Missing DTD attribute type");if(!f)throw new Error("Missing DTD attribute default");if(f.indexOf("#")!==0&&(f="#"+f),!f.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT");if(v&&!f.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(l),this.defaultValue=this.stringify.dtdAttDefault(v),this.defaultValueType=f}return d(h,i),h.prototype.toString=function(o){return this.options.writer.set(o).dtdAttList(this)},h}(c)}).call(void 0)},{"./XMLNode":227}],219:[function(r,O,p){"use strict";(function(){var c,d=function(i,h){function o(){this.constructor=i}for(var t in h)s.call(h,t)&&(i[t]=h[t]);return o.prototype=h.prototype,i.prototype=new o,i.__super__=h.prototype,i},s={}.hasOwnProperty;c=r("./XMLNode"),O.exports=function(i){function h(o,t,a){if(h.__super__.constructor.call(this,o),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 d(h,i),h.prototype.toString=function(o){return this.options.writer.set(o).dtdElement(this)},h}(c)}).call(void 0)},{"./XMLNode":227}],220:[function(r,O,p){"use strict";(function(){var c,d,s=function(h,o){function t(){this.constructor=h}for(var a in o)i.call(o,a)&&(h[a]=o[a]);return t.prototype=o.prototype,h.prototype=new t,h.__super__=o.prototype,h},i={}.hasOwnProperty;d=r("./Utility").isObject,c=r("./XMLNode"),O.exports=function(h){function o(t,a,l,f){if(o.__super__.constructor.call(this,t),l==null)throw new Error("Missing entity name");if(f==null)throw new Error("Missing entity value");if(this.pe=!!a,this.name=this.stringify.eleName(l),d(f)){if(!f.pubID&&!f.sysID)throw new Error("Public and/or system identifiers are required for an external entity");if(f.pubID&&!f.sysID)throw new Error("System identifier is required for a public external entity");if(f.pubID!=null&&(this.pubID=this.stringify.dtdPubID(f.pubID)),f.sysID!=null&&(this.sysID=this.stringify.dtdSysID(f.sysID)),f.nData!=null&&(this.nData=this.stringify.dtdNData(f.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity")}else this.value=this.stringify.dtdEntityValue(f)}return s(o,h),o.prototype.toString=function(t){return this.options.writer.set(t).dtdEntity(this)},o}(c)}).call(void 0)},{"./Utility":214,"./XMLNode":227}],221:[function(r,O,p){"use strict";(function(){var c,d=function(i,h){function o(){this.constructor=i}for(var t in h)s.call(h,t)&&(i[t]=h[t]);return o.prototype=h.prototype,i.prototype=new o,i.__super__=h.prototype,i},s={}.hasOwnProperty;c=r("./XMLNode"),O.exports=function(i){function h(o,t,a){if(h.__super__.constructor.call(this,o),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 d(h,i),h.prototype.toString=function(o){return this.options.writer.set(o).dtdNotation(this)},h}(c)}).call(void 0)},{"./XMLNode":227}],222:[function(r,O,p){"use strict";(function(){var c,d,s=function(h,o){function t(){this.constructor=h}for(var a in o)i.call(o,a)&&(h[a]=o[a]);return t.prototype=o.prototype,h.prototype=new t,h.__super__=o.prototype,h},i={}.hasOwnProperty;d=r("./Utility").isObject,c=r("./XMLNode"),O.exports=function(h){function o(t,a,l,f){var v;o.__super__.constructor.call(this,t),d(a)&&(v=a,a=v.version,l=v.encoding,f=v.standalone),a||(a="1.0"),this.version=this.stringify.xmlVersion(a),l!=null&&(this.encoding=this.stringify.xmlEncoding(l)),f!=null&&(this.standalone=this.stringify.xmlStandalone(f))}return s(o,h),o.prototype.toString=function(t){return this.options.writer.set(t).declaration(this)},o}(c)}).call(void 0)},{"./Utility":214,"./XMLNode":227}],223:[function(r,O,p){"use strict";(function(){var c,d,s,i,h,o,t=function(l,f){function v(){this.constructor=l}for(var u in f)a.call(f,u)&&(l[u]=f[u]);return v.prototype=f.prototype,l.prototype=new v,l.__super__=f.prototype,l},a={}.hasOwnProperty;o=r("./Utility").isObject,h=r("./XMLNode"),c=r("./XMLDTDAttList"),s=r("./XMLDTDEntity"),d=r("./XMLDTDElement"),i=r("./XMLDTDNotation"),O.exports=function(l){function f(v,u,w){var A,E;f.__super__.constructor.call(this,v),this.documentObject=v,o(u)&&(A=u,u=A.pubID,w=A.sysID),w==null&&(E=[u,w],w=E[0],u=E[1]),u!=null&&(this.pubID=this.stringify.dtdPubID(u)),w!=null&&(this.sysID=this.stringify.dtdSysID(w))}return t(f,l),f.prototype.element=function(v,u){var w;return w=new d(this,v,u),this.children.push(w),this},f.prototype.attList=function(v,u,w,A,E){var x;return x=new c(this,v,u,w,A,E),this.children.push(x),this},f.prototype.entity=function(v,u){var w;return w=new s(this,!1,v,u),this.children.push(w),this},f.prototype.pEntity=function(v,u){var w;return w=new s(this,!0,v,u),this.children.push(w),this},f.prototype.notation=function(v,u){var w;return w=new i(this,v,u),this.children.push(w),this},f.prototype.toString=function(v){return this.options.writer.set(v).docType(this)},f.prototype.ele=function(v,u){return this.element(v,u)},f.prototype.att=function(v,u,w,A,E){return this.attList(v,u,w,A,E)},f.prototype.ent=function(v,u){return this.entity(v,u)},f.prototype.pent=function(v,u){return this.pEntity(v,u)},f.prototype.not=function(v,u){return this.notation(v,u)},f.prototype.up=function(){return this.root()||this.documentObject},f}(h)}).call(void 0)},{"./Utility":214,"./XMLDTDAttList":218,"./XMLDTDElement":219,"./XMLDTDEntity":220,"./XMLDTDNotation":221,"./XMLNode":227}],224:[function(r,O,p){"use strict";(function(){var c,d,s,i,h=function(t,a){function l(){this.constructor=t}for(var f in a)o.call(a,f)&&(t[f]=a[f]);return l.prototype=a.prototype,t.prototype=new l,t.__super__=a.prototype,t},o={}.hasOwnProperty;i=r("./Utility").isPlainObject,c=r("./XMLNode"),s=r("./XMLStringifier"),d=r("./XMLStringWriter"),O.exports=function(t){function a(l){a.__super__.constructor.call(this,null),l||(l={}),l.writer||(l.writer=new d),this.options=l,this.stringify=new s(l),this.isDocument=!0}return h(a,t),a.prototype.end=function(l){var f;return l?i(l)&&(f=l,l=this.options.writer.set(f)):l=this.options.writer,l.document(this)},a.prototype.toString=function(l){return this.options.writer.set(l).document(this)},a}(c)}).call(void 0)},{"./Utility":214,"./XMLNode":227,"./XMLStringWriter":231,"./XMLStringifier":232}],225:[function(r,O,p){"use strict";(function(){var c,d,s,i,h,o,t,a,l,f,v,u,w,A,E,x,k,g,y,j={}.hasOwnProperty;y=r("./Utility"),k=y.isObject,x=y.isFunction,g=y.isPlainObject,f=r("./XMLElement"),d=r("./XMLCData"),s=r("./XMLComment"),u=r("./XMLRaw"),E=r("./XMLText"),v=r("./XMLProcessingInstruction"),a=r("./XMLDeclaration"),l=r("./XMLDocType"),i=r("./XMLDTDAttList"),o=r("./XMLDTDEntity"),h=r("./XMLDTDElement"),t=r("./XMLDTDNotation"),c=r("./XMLAttribute"),A=r("./XMLStringifier"),w=r("./XMLStringWriter"),O.exports=function(){function L(_,z,M){var P;_||(_={}),_.writer?g(_.writer)&&(P=_.writer,_.writer=new w(P)):_.writer=new w(_),this.options=_,this.writer=_.writer,this.stringify=new A(_),this.onDataCallback=z||function(){},this.onEndCallback=M||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return L.prototype.node=function(_,z,M){var P;if(_==null)throw new Error("Missing node name");if(this.root&&this.currentLevel===-1)throw new Error("Document can only have one root node");return this.openCurrent(),_=_.valueOf(),z==null&&(z={}),z=z.valueOf(),k(z)||(P=[z,M],M=P[0],z=P[1]),this.currentNode=new f(this,_,z),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,M!=null&&this.text(M),this},L.prototype.element=function(_,z,M){return this.currentNode&&this.currentNode instanceof l?this.dtdElement.apply(this,arguments):this.node(_,z,M)},L.prototype.attribute=function(_,z){var M,P;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode");if(_!=null&&(_=_.valueOf()),k(_))for(M in _)j.call(_,M)&&(P=_[M],this.attribute(M,P));else x(z)&&(z=z.apply()),this.options.skipNullAttributes&&z==null||(this.currentNode.attributes[_]=new c(this,_,z));return this},L.prototype.text=function(_){var z;return this.openCurrent(),z=new E(this,_),this.onData(this.writer.text(z,this.currentLevel+1)),this},L.prototype.cdata=function(_){var z;return this.openCurrent(),z=new d(this,_),this.onData(this.writer.cdata(z,this.currentLevel+1)),this},L.prototype.comment=function(_){var z;return this.openCurrent(),z=new s(this,_),this.onData(this.writer.comment(z,this.currentLevel+1)),this},L.prototype.raw=function(_){var z;return this.openCurrent(),z=new u(this,_),this.onData(this.writer.raw(z,this.currentLevel+1)),this},L.prototype.instruction=function(_,z){var M,P,F,$,Z;if(this.openCurrent(),_!=null&&(_=_.valueOf()),z!=null&&(z=z.valueOf()),Array.isArray(_))for(M=0,$=_.length;M<$;M++)P=_[M],this.instruction(P);else if(k(_))for(P in _)j.call(_,P)&&(F=_[P],this.instruction(P,F));else x(z)&&(z=z.apply()),Z=new v(this,_,z),this.onData(this.writer.processingInstruction(Z,this.currentLevel+1));return this},L.prototype.declaration=function(_,z,M){var P;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node");return P=new a(this,_,z,M),this.onData(this.writer.declaration(P,this.currentLevel+1)),this},L.prototype.doctype=function(_,z,M){if(this.openCurrent(),_==null)throw new Error("Missing root node name");if(this.root)throw new Error("dtd() must come before the root node");return this.currentNode=new l(this,z,M),this.currentNode.rootNodeName=_,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},L.prototype.dtdElement=function(_,z){var M;return this.openCurrent(),M=new h(this,_,z),this.onData(this.writer.dtdElement(M,this.currentLevel+1)),this},L.prototype.attList=function(_,z,M,P,F){var $;return this.openCurrent(),$=new i(this,_,z,M,P,F),this.onData(this.writer.dtdAttList($,this.currentLevel+1)),this},L.prototype.entity=function(_,z){var M;return this.openCurrent(),M=new o(this,!1,_,z),this.onData(this.writer.dtdEntity(M,this.currentLevel+1)),this},L.prototype.pEntity=function(_,z){var M;return this.openCurrent(),M=new o(this,!0,_,z),this.onData(this.writer.dtdEntity(M,this.currentLevel+1)),this},L.prototype.notation=function(_,z){var M;return this.openCurrent(),M=new t(this,_,z),this.onData(this.writer.dtdNotation(M,this.currentLevel+1)),this},L.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},L.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},L.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},L.prototype.openNode=function(_){if(!_.isOpen)return!this.root&&this.currentLevel===0&&_ instanceof f&&(this.root=_),this.onData(this.writer.openNode(_,this.currentLevel)),_.isOpen=!0},L.prototype.closeNode=function(_){if(!_.isClosed)return this.onData(this.writer.closeNode(_,this.currentLevel)),_.isClosed=!0},L.prototype.onData=function(_){return this.documentStarted=!0,this.onDataCallback(_)},L.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},L.prototype.ele=function(){return this.element.apply(this,arguments)},L.prototype.nod=function(_,z,M){return this.node(_,z,M)},L.prototype.txt=function(_){return this.text(_)},L.prototype.dat=function(_){return this.cdata(_)},L.prototype.com=function(_){return this.comment(_)},L.prototype.ins=function(_,z){return this.instruction(_,z)},L.prototype.dec=function(_,z,M){return this.declaration(_,z,M)},L.prototype.dtd=function(_,z,M){return this.doctype(_,z,M)},L.prototype.e=function(_,z,M){return this.element(_,z,M)},L.prototype.n=function(_,z,M){return this.node(_,z,M)},L.prototype.t=function(_){return this.text(_)},L.prototype.d=function(_){return this.cdata(_)},L.prototype.c=function(_){return this.comment(_)},L.prototype.r=function(_){return this.raw(_)},L.prototype.i=function(_,z){return this.instruction(_,z)},L.prototype.att=function(){return this.currentNode&&this.currentNode instanceof l?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},L.prototype.a=function(){return this.currentNode&&this.currentNode instanceof l?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},L.prototype.ent=function(_,z){return this.entity(_,z)},L.prototype.pent=function(_,z){return this.pEntity(_,z)},L.prototype.not=function(_,z){return this.notation(_,z)},L}()}).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,O,p){"use strict";var c=r("babel-runtime/core-js/object/create"),d=function(s){return s&&s.__esModule?s:{default:s}}(c);(function(){var s,i,h,o,t,a=function(f,v){function u(){this.constructor=f}for(var w in v)l.call(v,w)&&(f[w]=v[w]);return u.prototype=v.prototype,f.prototype=new u,f.__super__=v.prototype,f},l={}.hasOwnProperty;t=r("./Utility"),o=t.isObject,h=t.isFunction,i=r("./XMLNode"),s=r("./XMLAttribute"),O.exports=function(f){function v(u,w,A){if(v.__super__.constructor.call(this,u),w==null)throw new Error("Missing element name");this.name=this.stringify.eleName(w),this.attributes={},A!=null&&this.attribute(A),u.isDocument&&(this.isRoot=!0,this.documentObject=u,u.rootObject=this)}return a(v,f),v.prototype.clone=function(){var u,w,A,E;A=(0,d.default)(this),A.isRoot&&(A.documentObject=null),A.attributes={},E=this.attributes;for(w in E)l.call(E,w)&&(u=E[w],A.attributes[w]=u.clone());return A.children=[],this.children.forEach(function(x){var k;return k=x.clone(),k.parent=A,A.children.push(k)}),A},v.prototype.attribute=function(u,w){var A,E;if(u!=null&&(u=u.valueOf()),o(u))for(A in u)l.call(u,A)&&(E=u[A],this.attribute(A,E));else h(w)&&(w=w.apply()),this.options.skipNullAttributes&&w==null||(this.attributes[u]=new s(this,u,w));return this},v.prototype.removeAttribute=function(u){var w,A,E;if(u==null)throw new Error("Missing attribute name");if(u=u.valueOf(),Array.isArray(u))for(A=0,E=u.length;A<E;A++)w=u[A],delete this.attributes[w];else delete this.attributes[u];return this},v.prototype.toString=function(u){return this.options.writer.set(u).element(this)},v.prototype.att=function(u,w){return this.attribute(u,w)},v.prototype.a=function(u,w){return this.attribute(u,w)},v}(i)}).call(void 0)},{"./Utility":214,"./XMLAttribute":215,"./XMLNode":227,"babel-runtime/core-js/object/create":19}],227:[function(r,O,p){"use strict";(function(){var c,d,s,i,h,o,t,a,l,f,v,u,w={}.hasOwnProperty;u=r("./Utility"),v=u.isObject,f=u.isFunction,l=u.isEmpty,h=null,c=null,d=null,s=null,i=null,t=null,a=null,o=null,O.exports=function(){function A(E){this.parent=E,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.children=[],h||(h=r("./XMLElement"),c=r("./XMLCData"),d=r("./XMLComment"),s=r("./XMLDeclaration"),i=r("./XMLDocType"),t=r("./XMLRaw"),a=r("./XMLText"),o=r("./XMLProcessingInstruction"))}return A.prototype.element=function(E,x,k){var g,y,j,L,_,z,M,P,F,$;if(z=null,x==null&&(x={}),x=x.valueOf(),v(x)||(F=[x,k],k=F[0],x=F[1]),E!=null&&(E=E.valueOf()),Array.isArray(E))for(j=0,M=E.length;j<M;j++)y=E[j],z=this.element(y);else if(f(E))z=this.element(E.apply());else if(v(E)){for(_ in E)if(w.call(E,_))if($=E[_],f($)&&($=$.apply()),v($)&&l($)&&($=null),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&_.indexOf(this.stringify.convertAttKey)===0)z=this.attribute(_.substr(this.stringify.convertAttKey.length),$);else if(!this.options.separateArrayItems&&Array.isArray($))for(L=0,P=$.length;L<P;L++)y=$[L],g={},g[_]=y,z=this.element(g);else v($)?(z=this.element(_),z.element($)):z=this.element(_,$)}else z=!this.options.ignoreDecorators&&this.stringify.convertTextKey&&E.indexOf(this.stringify.convertTextKey)===0?this.text(k):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&E.indexOf(this.stringify.convertCDataKey)===0?this.cdata(k):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&E.indexOf(this.stringify.convertCommentKey)===0?this.comment(k):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&E.indexOf(this.stringify.convertRawKey)===0?this.raw(k):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&E.indexOf(this.stringify.convertPIKey)===0?this.instruction(E.substr(this.stringify.convertPIKey.length),k):this.node(E,x,k);if(z==null)throw new Error("Could not create any elements with: "+E);return z},A.prototype.insertBefore=function(E,x,k){var g,y,j;if(this.isRoot)throw new Error("Cannot insert elements at root level");return y=this.parent.children.indexOf(this),j=this.parent.children.splice(y),g=this.parent.element(E,x,k),Array.prototype.push.apply(this.parent.children,j),g},A.prototype.insertAfter=function(E,x,k){var g,y,j;if(this.isRoot)throw new Error("Cannot insert elements at root level");return y=this.parent.children.indexOf(this),j=this.parent.children.splice(y+1),g=this.parent.element(E,x,k),Array.prototype.push.apply(this.parent.children,j),g},A.prototype.remove=function(){var E;if(this.isRoot)throw new Error("Cannot remove the root element");return E=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[E,E-E+1].concat([])),this.parent},A.prototype.node=function(E,x,k){var g,y;return E!=null&&(E=E.valueOf()),x||(x={}),x=x.valueOf(),v(x)||(y=[x,k],k=y[0],x=y[1]),g=new h(this,E,x),k!=null&&g.text(k),this.children.push(g),g},A.prototype.text=function(E){var x;return x=new a(this,E),this.children.push(x),this},A.prototype.cdata=function(E){var x;return x=new c(this,E),this.children.push(x),this},A.prototype.comment=function(E){var x;return x=new d(this,E),this.children.push(x),this},A.prototype.commentBefore=function(E){var x,k;return x=this.parent.children.indexOf(this),k=this.parent.children.splice(x),this.parent.comment(E),Array.prototype.push.apply(this.parent.children,k),this},A.prototype.commentAfter=function(E){var x,k;return x=this.parent.children.indexOf(this),k=this.parent.children.splice(x+1),this.parent.comment(E),Array.prototype.push.apply(this.parent.children,k),this},A.prototype.raw=function(E){var x;return x=new t(this,E),this.children.push(x),this},A.prototype.instruction=function(E,x){var k,g,y,j,L;if(E!=null&&(E=E.valueOf()),x!=null&&(x=x.valueOf()),Array.isArray(E))for(j=0,L=E.length;j<L;j++)k=E[j],this.instruction(k);else if(v(E))for(k in E)w.call(E,k)&&(g=E[k],this.instruction(k,g));else f(x)&&(x=x.apply()),y=new o(this,E,x),this.children.push(y);return this},A.prototype.instructionBefore=function(E,x){var k,g;return k=this.parent.children.indexOf(this),g=this.parent.children.splice(k),this.parent.instruction(E,x),Array.prototype.push.apply(this.parent.children,g),this},A.prototype.instructionAfter=function(E,x){var k,g;return k=this.parent.children.indexOf(this),g=this.parent.children.splice(k+1),this.parent.instruction(E,x),Array.prototype.push.apply(this.parent.children,g),this},A.prototype.declaration=function(E,x,k){var g,y;return g=this.document(),y=new s(g,E,x,k),g.children[0]instanceof s?g.children[0]=y:g.children.unshift(y),g.root()||g},A.prototype.doctype=function(E,x){var k,g,y,j,L,_,z,M,P,F;for(g=this.document(),y=new i(g,E,x),P=g.children,j=L=0,z=P.length;L<z;j=++L)if((k=P[j])instanceof i)return g.children[j]=y,y;for(F=g.children,j=_=0,M=F.length;_<M;j=++_)if(k=F[j],k.isRoot)return g.children.splice(j,0,y),y;return g.children.push(y),y},A.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},A.prototype.root=function(){var E;for(E=this;E;){if(E.isDocument)return E.rootObject;if(E.isRoot)return E;E=E.parent}},A.prototype.document=function(){var E;for(E=this;E;){if(E.isDocument)return E;E=E.parent}},A.prototype.end=function(E){return this.document().end(E)},A.prototype.prev=function(){var E;if((E=this.parent.children.indexOf(this))<1)throw new Error("Already at the first node");return this.parent.children[E-1]},A.prototype.next=function(){var E;if((E=this.parent.children.indexOf(this))===-1||E===this.parent.children.length-1)throw new Error("Already at the last node");return this.parent.children[E+1]},A.prototype.importDocument=function(E){var x;return x=E.root().clone(),x.parent=this,x.isRoot=!1,this.children.push(x),this},A.prototype.ele=function(E,x,k){return this.element(E,x,k)},A.prototype.nod=function(E,x,k){return this.node(E,x,k)},A.prototype.txt=function(E){return this.text(E)},A.prototype.dat=function(E){return this.cdata(E)},A.prototype.com=function(E){return this.comment(E)},A.prototype.ins=function(E,x){return this.instruction(E,x)},A.prototype.doc=function(){return this.document()},A.prototype.dec=function(E,x,k){return this.declaration(E,x,k)},A.prototype.dtd=function(E,x){return this.doctype(E,x)},A.prototype.e=function(E,x,k){return this.element(E,x,k)},A.prototype.n=function(E,x,k){return this.node(E,x,k)},A.prototype.t=function(E){return this.text(E)},A.prototype.d=function(E){return this.cdata(E)},A.prototype.c=function(E){return this.comment(E)},A.prototype.r=function(E){return this.raw(E)},A.prototype.i=function(E,x){return this.instruction(E,x)},A.prototype.u=function(){return this.up()},A.prototype.importXMLBuilder=function(E){return this.importDocument(E)},A}()}).call(void 0)},{"./Utility":214,"./XMLCData":216,"./XMLComment":217,"./XMLDeclaration":222,"./XMLDocType":223,"./XMLElement":226,"./XMLProcessingInstruction":228,"./XMLRaw":229,"./XMLText":233}],228:[function(r,O,p){"use strict";var c=r("babel-runtime/core-js/object/create"),d=function(s){return s&&s.__esModule?s:{default:s}}(c);(function(){var s,i=function(o,t){function a(){this.constructor=o}for(var l in t)h.call(t,l)&&(o[l]=t[l]);return a.prototype=t.prototype,o.prototype=new a,o.__super__=t.prototype,o},h={}.hasOwnProperty;s=r("./XMLNode"),O.exports=function(o){function t(a,l,f){if(t.__super__.constructor.call(this,a),l==null)throw new Error("Missing instruction target");this.target=this.stringify.insTarget(l),f&&(this.value=this.stringify.insValue(f))}return i(t,o),t.prototype.clone=function(){return(0,d.default)(this)},t.prototype.toString=function(a){return this.options.writer.set(a).processingInstruction(this)},t}(s)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],229:[function(r,O,p){"use strict";var c=r("babel-runtime/core-js/object/create"),d=function(s){return s&&s.__esModule?s:{default:s}}(c);(function(){var s,i=function(o,t){function a(){this.constructor=o}for(var l in t)h.call(t,l)&&(o[l]=t[l]);return a.prototype=t.prototype,o.prototype=new a,o.__super__=t.prototype,o},h={}.hasOwnProperty;s=r("./XMLNode"),O.exports=function(o){function t(a,l){if(t.__super__.constructor.call(this,a),l==null)throw new Error("Missing raw text");this.value=this.stringify.raw(l)}return i(t,o),t.prototype.clone=function(){return(0,d.default)(this)},t.prototype.toString=function(a){return this.options.writer.set(a).raw(this)},t}(s)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],230:[function(r,O,p){"use strict";(function(){var c,d,s,i,h,o,t,a,l,f,v,u,w,A=function(x,k){function g(){this.constructor=x}for(var y in k)E.call(k,y)&&(x[y]=k[y]);return g.prototype=k.prototype,x.prototype=new g,x.__super__=k.prototype,x},E={}.hasOwnProperty;t=r("./XMLDeclaration"),a=r("./XMLDocType"),c=r("./XMLCData"),d=r("./XMLComment"),l=r("./XMLElement"),v=r("./XMLRaw"),u=r("./XMLText"),f=r("./XMLProcessingInstruction"),s=r("./XMLDTDAttList"),i=r("./XMLDTDElement"),h=r("./XMLDTDEntity"),o=r("./XMLDTDNotation"),w=r("./XMLWriterBase"),O.exports=function(x){function k(g,y){k.__super__.constructor.call(this,y),this.stream=g}return A(k,x),k.prototype.document=function(g){var y,j,L,_,z,M,P,F;for(M=g.children,j=0,_=M.length;j<_;j++)y=M[j],y.isLastRootNode=!1;for(g.children[g.children.length-1].isLastRootNode=!0,P=g.children,F=[],L=0,z=P.length;L<z;L++)switch(y=P[L],!1){case!(y instanceof t):F.push(this.declaration(y));break;case!(y instanceof a):F.push(this.docType(y));break;case!(y instanceof d):F.push(this.comment(y));break;case!(y instanceof f):F.push(this.processingInstruction(y));break;default:F.push(this.element(y))}return F},k.prototype.attribute=function(g){return this.stream.write(" "+g.name+'="'+g.value+'"')},k.prototype.cdata=function(g,y){return this.stream.write(this.space(y)+"<![CDATA["+g.text+"]]>"+this.endline(g))},k.prototype.comment=function(g,y){return this.stream.write(this.space(y)+"<!-- "+g.text+" -->"+this.endline(g))},k.prototype.declaration=function(g,y){return this.stream.write(this.space(y)),this.stream.write('<?xml version="'+g.version+'"'),g.encoding!=null&&this.stream.write(' encoding="'+g.encoding+'"'),g.standalone!=null&&this.stream.write(' standalone="'+g.standalone+'"'),this.stream.write(this.spacebeforeslash+"?>"),this.stream.write(this.endline(g))},k.prototype.docType=function(g,y){var j,L,_,z;if(y||(y=0),this.stream.write(this.space(y)),this.stream.write("<!DOCTYPE "+g.root().name),g.pubID&&g.sysID?this.stream.write(' PUBLIC "'+g.pubID+'" "'+g.sysID+'"'):g.sysID&&this.stream.write(' SYSTEM "'+g.sysID+'"'),g.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(g)),z=g.children,L=0,_=z.length;L<_;L++)switch(j=z[L],!1){case!(j instanceof s):this.dtdAttList(j,y+1);break;case!(j instanceof i):this.dtdElement(j,y+1);break;case!(j instanceof h):this.dtdEntity(j,y+1);break;case!(j instanceof o):this.dtdNotation(j,y+1);break;case!(j instanceof c):this.cdata(j,y+1);break;case!(j instanceof d):this.comment(j,y+1);break;case!(j instanceof f):this.processingInstruction(j,y+1);break;default:throw new Error("Unknown DTD node type: "+j.constructor.name)}this.stream.write("]")}return this.stream.write(this.spacebeforeslash+">"),this.stream.write(this.endline(g))},k.prototype.element=function(g,y){var j,L,_,z,M,P,F,$;y||(y=0),$=this.space(y),this.stream.write($+"<"+g.name),P=g.attributes;for(M in P)E.call(P,M)&&(j=P[M],this.attribute(j));if(g.children.length===0||g.children.every(function(Z){return Z.value===""}))this.allowEmpty?this.stream.write("></"+g.name+">"):this.stream.write(this.spacebeforeslash+"/>");else if(this.pretty&&g.children.length===1&&g.children[0].value!=null)this.stream.write(">"),this.stream.write(g.children[0].value),this.stream.write("</"+g.name+">");else{for(this.stream.write(">"+this.newline),F=g.children,_=0,z=F.length;_<z;_++)switch(L=F[_],!1){case!(L instanceof c):this.cdata(L,y+1);break;case!(L instanceof d):this.comment(L,y+1);break;case!(L instanceof l):this.element(L,y+1);break;case!(L instanceof v):this.raw(L,y+1);break;case!(L instanceof u):this.text(L,y+1);break;case!(L instanceof f):this.processingInstruction(L,y+1);break;default:throw new Error("Unknown XML node type: "+L.constructor.name)}this.stream.write($+"</"+g.name+">")}return this.stream.write(this.endline(g))},k.prototype.processingInstruction=function(g,y){return this.stream.write(this.space(y)+"<?"+g.target),g.value&&this.stream.write(" "+g.value),this.stream.write(this.spacebeforeslash+"?>"+this.endline(g))},k.prototype.raw=function(g,y){return this.stream.write(this.space(y)+g.value+this.endline(g))},k.prototype.text=function(g,y){return this.stream.write(this.space(y)+g.value+this.endline(g))},k.prototype.dtdAttList=function(g,y){return this.stream.write(this.space(y)+"<!ATTLIST "+g.elementName+" "+g.attributeName+" "+g.attributeType),g.defaultValueType!=="#DEFAULT"&&this.stream.write(" "+g.defaultValueType),g.defaultValue&&this.stream.write(' "'+g.defaultValue+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(g))},k.prototype.dtdElement=function(g,y){return this.stream.write(this.space(y)+"<!ELEMENT "+g.name+" "+g.value),this.stream.write(this.spacebeforeslash+">"+this.endline(g))},k.prototype.dtdEntity=function(g,y){return this.stream.write(this.space(y)+"<!ENTITY"),g.pe&&this.stream.write(" %"),this.stream.write(" "+g.name),g.value?this.stream.write(' "'+g.value+'"'):(g.pubID&&g.sysID?this.stream.write(' PUBLIC "'+g.pubID+'" "'+g.sysID+'"'):g.sysID&&this.stream.write(' SYSTEM "'+g.sysID+'"'),g.nData&&this.stream.write(" NDATA "+g.nData)),this.stream.write(this.spacebeforeslash+">"+this.endline(g))},k.prototype.dtdNotation=function(g,y){return this.stream.write(this.space(y)+"<!NOTATION "+g.name),g.pubID&&g.sysID?this.stream.write(' PUBLIC "'+g.pubID+'" "'+g.sysID+'"'):g.pubID?this.stream.write(' PUBLIC "'+g.pubID+'"'):g.sysID&&this.stream.write(' SYSTEM "'+g.sysID+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(g))},k.prototype.endline=function(g){return g.isLastRootNode?"":this.newline},k}(w)}).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,O,p){"use strict";(function(){var c,d,s,i,h,o,t,a,l,f,v,u,w,A=function(x,k){function g(){this.constructor=x}for(var y in k)E.call(k,y)&&(x[y]=k[y]);return g.prototype=k.prototype,x.prototype=new g,x.__super__=k.prototype,x},E={}.hasOwnProperty;t=r("./XMLDeclaration"),a=r("./XMLDocType"),c=r("./XMLCData"),d=r("./XMLComment"),l=r("./XMLElement"),v=r("./XMLRaw"),u=r("./XMLText"),f=r("./XMLProcessingInstruction"),s=r("./XMLDTDAttList"),i=r("./XMLDTDElement"),h=r("./XMLDTDEntity"),o=r("./XMLDTDNotation"),w=r("./XMLWriterBase"),O.exports=function(x){function k(g){k.__super__.constructor.call(this,g)}return A(k,x),k.prototype.document=function(g){var y,j,L,_,z;for(this.textispresent=!1,_="",z=g.children,j=0,L=z.length;j<L;j++)y=z[j],_+=function(){switch(!1){case!(y instanceof t):return this.declaration(y);case!(y instanceof a):return this.docType(y);case!(y instanceof d):return this.comment(y);case!(y instanceof f):return this.processingInstruction(y);default:return this.element(y,0)}}.call(this);return this.pretty&&_.slice(-this.newline.length)===this.newline&&(_=_.slice(0,-this.newline.length)),_},k.prototype.attribute=function(g){return" "+g.name+'="'+g.value+'"'},k.prototype.cdata=function(g,y){return this.space(y)+"<![CDATA["+g.text+"]]>"+this.newline},k.prototype.comment=function(g,y){return this.space(y)+"<!-- "+g.text+" -->"+this.newline},k.prototype.declaration=function(g,y){var j;return j=this.space(y),j+='<?xml version="'+g.version+'"',g.encoding!=null&&(j+=' encoding="'+g.encoding+'"'),g.standalone!=null&&(j+=' standalone="'+g.standalone+'"'),j+=this.spacebeforeslash+"?>",j+=this.newline},k.prototype.docType=function(g,y){var j,L,_,z,M;if(y||(y=0),z=this.space(y),z+="<!DOCTYPE "+g.root().name,g.pubID&&g.sysID?z+=' PUBLIC "'+g.pubID+'" "'+g.sysID+'"':g.sysID&&(z+=' SYSTEM "'+g.sysID+'"'),g.children.length>0){for(z+=" [",z+=this.newline,M=g.children,L=0,_=M.length;L<_;L++)j=M[L],z+=function(){switch(!1){case!(j instanceof s):return this.dtdAttList(j,y+1);case!(j instanceof i):return this.dtdElement(j,y+1);case!(j instanceof h):return this.dtdEntity(j,y+1);case!(j instanceof o):return this.dtdNotation(j,y+1);case!(j instanceof c):return this.cdata(j,y+1);case!(j instanceof d):return this.comment(j,y+1);case!(j instanceof f):return this.processingInstruction(j,y+1);default:throw new Error("Unknown DTD node type: "+j.constructor.name)}}.call(this);z+="]"}return z+=this.spacebeforeslash+">",z+=this.newline},k.prototype.element=function(g,y){var j,L,_,z,M,P,F,$,Z,Q,re,N,ue;y||(y=0),ue=!1,this.textispresent?(this.newline="",this.pretty=!1):(this.newline=this.newlinedefault,this.pretty=this.prettydefault),N=this.space(y),$="",$+=N+"<"+g.name,Z=g.attributes;for(F in Z)E.call(Z,F)&&(j=Z[F],$+=this.attribute(j));if(g.children.length===0||g.children.every(function(G){return G.value===""}))this.allowEmpty?$+="></"+g.name+">"+this.newline:$+=this.spacebeforeslash+"/>"+this.newline;else if(this.pretty&&g.children.length===1&&g.children[0].value!=null)$+=">",$+=g.children[0].value,$+="</"+g.name+">"+this.newline;else{if(this.dontprettytextnodes){for(Q=g.children,_=0,M=Q.length;_<M;_++)if(L=Q[_],L.value!=null){this.textispresent++,ue=!0;break}}for(this.textispresent&&(this.newline="",this.pretty=!1,N=this.space(y)),$+=">"+this.newline,re=g.children,z=0,P=re.length;z<P;z++)L=re[z],$+=function(){switch(!1){case!(L instanceof c):return this.cdata(L,y+1);case!(L instanceof d):return this.comment(L,y+1);case!(L instanceof l):return this.element(L,y+1);case!(L instanceof v):return this.raw(L,y+1);case!(L instanceof u):return this.text(L,y+1);case!(L instanceof f):return this.processingInstruction(L,y+1);default:throw new Error("Unknown XML node type: "+L.constructor.name)}}.call(this);ue&&this.textispresent--,this.textispresent||(this.newline=this.newlinedefault,this.pretty=this.prettydefault),$+=N+"</"+g.name+">"+this.newline}return $},k.prototype.processingInstruction=function(g,y){var j;return j=this.space(y)+"<?"+g.target,g.value&&(j+=" "+g.value),j+=this.spacebeforeslash+"?>"+this.newline},k.prototype.raw=function(g,y){return this.space(y)+g.value+this.newline},k.prototype.text=function(g,y){return this.space(y)+g.value+this.newline},k.prototype.dtdAttList=function(g,y){var j;return j=this.space(y)+"<!ATTLIST "+g.elementName+" "+g.attributeName+" "+g.attributeType,g.defaultValueType!=="#DEFAULT"&&(j+=" "+g.defaultValueType),g.defaultValue&&(j+=' "'+g.defaultValue+'"'),j+=this.spacebeforeslash+">"+this.newline},k.prototype.dtdElement=function(g,y){return this.space(y)+"<!ELEMENT "+g.name+" "+g.value+this.spacebeforeslash+">"+this.newline},k.prototype.dtdEntity=function(g,y){var j;return j=this.space(y)+"<!ENTITY",g.pe&&(j+=" %"),j+=" "+g.name,g.value?j+=' "'+g.value+'"':(g.pubID&&g.sysID?j+=' PUBLIC "'+g.pubID+'" "'+g.sysID+'"':g.sysID&&(j+=' SYSTEM "'+g.sysID+'"'),g.nData&&(j+=" NDATA "+g.nData)),j+=this.spacebeforeslash+">"+this.newline},k.prototype.dtdNotation=function(g,y){var j;return j=this.space(y)+"<!NOTATION "+g.name,g.pubID&&g.sysID?j+=' PUBLIC "'+g.pubID+'" "'+g.sysID+'"':g.pubID?j+=' PUBLIC "'+g.pubID+'"':g.sysID&&(j+=' SYSTEM "'+g.sysID+'"'),j+=this.spacebeforeslash+">"+this.newline},k.prototype.openNode=function(g,y){var j,L,_,z;if(y||(y=0),g instanceof l){_=this.space(y)+"<"+g.name,z=g.attributes;for(L in z)E.call(z,L)&&(j=z[L],_+=this.attribute(j));return _+=(g.children?">":"/>")+this.newline}return _=this.space(y)+"<!DOCTYPE "+g.rootNodeName,g.pubID&&g.sysID?_+=' PUBLIC "'+g.pubID+'" "'+g.sysID+'"':g.sysID&&(_+=' SYSTEM "'+g.sysID+'"'),_+=(g.children?" [":">")+this.newline},k.prototype.closeNode=function(g,y){switch(y||(y=0),!1){case!(g instanceof l):return this.space(y)+"</"+g.name+">"+this.newline;case!(g instanceof a):return this.space(y)+"]>"+this.newline}},k}(w)}).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,O,p){"use strict";(function(){var c=function(s,i){return function(){return s.apply(i,arguments)}},d={}.hasOwnProperty;O.exports=function(){function s(i){this.assertLegalChar=c(this.assertLegalChar,this);var h,o,t;i||(i={}),this.noDoubleEncoding=i.noDoubleEncoding,o=i.stringify||{};for(h in o)d.call(o,h)&&(t=o[h],this[h]=t)}return s.prototype.eleName=function(i){return i=""+i||"",this.assertLegalChar(i)},s.prototype.eleText=function(i){return i=""+i||"",this.assertLegalChar(this.elEscape(i))},s.prototype.cdata=function(i){return i=""+i||"",i=i.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(i)},s.prototype.comment=function(i){if(i=""+i||"",i.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+i);return this.assertLegalChar(i)},s.prototype.raw=function(i){return""+i||""},s.prototype.attName=function(i){return i=""+i||""},s.prototype.attValue=function(i){return i=""+i||"",this.attEscape(i)},s.prototype.insTarget=function(i){return""+i||""},s.prototype.insValue=function(i){if(i=""+i||"",i.match(/\?>/))throw new Error("Invalid processing instruction value: "+i);return i},s.prototype.xmlVersion=function(i){if(i=""+i||"",!i.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+i);return i},s.prototype.xmlEncoding=function(i){if(i=""+i||"",!i.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+i);return i},s.prototype.xmlStandalone=function(i){return i?"yes":"no"},s.prototype.dtdPubID=function(i){return""+i||""},s.prototype.dtdSysID=function(i){return""+i||""},s.prototype.dtdElementValue=function(i){return""+i||""},s.prototype.dtdAttType=function(i){return""+i||""},s.prototype.dtdAttDefault=function(i){return i!=null?""+i||"":i},s.prototype.dtdEntityValue=function(i){return""+i||""},s.prototype.dtdNData=function(i){return""+i||""},s.prototype.convertAttKey="@",s.prototype.convertPIKey="?",s.prototype.convertTextKey="#text",s.prototype.convertCDataKey="#cdata",s.prototype.convertCommentKey="#comment",s.prototype.convertRawKey="#raw",s.prototype.assertLegalChar=function(i){var h;if(h=i.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/))throw new Error("Invalid character in string: "+i+" at index "+h.index);return i},s.prototype.elEscape=function(i){var h;return h=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,i.replace(h,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;")},s.prototype.attEscape=function(i){var h;return h=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,i.replace(h,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;")},s}()}).call(void 0)},{}],233:[function(r,O,p){"use strict";var c=r("babel-runtime/core-js/object/create"),d=function(s){return s&&s.__esModule?s:{default:s}}(c);(function(){var s,i=function(o,t){function a(){this.constructor=o}for(var l in t)h.call(t,l)&&(o[l]=t[l]);return a.prototype=t.prototype,o.prototype=new a,o.__super__=t.prototype,o},h={}.hasOwnProperty;s=r("./XMLNode"),O.exports=function(o){function t(a,l){if(t.__super__.constructor.call(this,a),l==null)throw new Error("Missing element text");this.value=this.stringify.eleText(l)}return i(t,o),t.prototype.clone=function(){return(0,d.default)(this)},t.prototype.toString=function(a){return this.options.writer.set(a).text(this)},t}(s)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],234:[function(r,O,p){"use strict";(function(){var c={}.hasOwnProperty;O.exports=function(){function d(s){var i,h,o,t,a,l,f,v,u;s||(s={}),this.pretty=s.pretty||!1,this.allowEmpty=(h=s.allowEmpty)!=null&&h,this.pretty?(this.indent=(o=s.indent)!=null?o:" ",this.newline=(t=s.newline)!=null?t:`
`,this.offset=(a=s.offset)!=null?a:0,this.dontprettytextnodes=(l=s.dontprettytextnodes)!=null?l:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash=(f=s.spacebeforeslash)!=null?f:"",this.spacebeforeslash===!0&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,v=s.writer||{};for(i in v)c.call(v,i)&&(u=v[i],this[i]=u)}return d.prototype.set=function(s){var i,h,o;s||(s={}),"pretty"in s&&(this.pretty=s.pretty),"allowEmpty"in s&&(this.allowEmpty=s.allowEmpty),this.pretty?(this.indent="indent"in s?s.indent:" ",this.newline="newline"in s?s.newline:`
`,this.offset="offset"in s?s.offset:0,this.dontprettytextnodes="dontprettytextnodes"in s?s.dontprettytextnodes:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash="spacebeforeslash"in s?s.spacebeforeslash:"",this.spacebeforeslash===!0&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,h=s.writer||{};for(i in h)c.call(h,i)&&(o=h[i],this[i]=o);return this},d.prototype.space=function(s){var i;return this.pretty?(i=(s||0)+this.offset+1,i>0?new Array(i).join(this.indent):""):""},d}()}).call(void 0)},{}],235:[function(r,O,p){"use strict";(function(){var c,d,s,i,h,o,t;t=r("./Utility"),h=t.assign,o=t.isFunction,c=r("./XMLDocument"),d=r("./XMLDocumentCB"),i=r("./XMLStringWriter"),s=r("./XMLStreamWriter"),O.exports.create=function(a,l,f,v){var u,w;if(a==null)throw new Error("Root element needs a name");return v=h({},l,f,v),u=new c(v),w=u.element(a),v.headless||(u.declaration(v),v.pubID==null&&v.sysID==null||u.doctype(v)),w},O.exports.begin=function(a,l,f){var v;return o(a)&&(v=[a,l],l=v[0],f=v[1],a={}),l?new d(a,l,f):new c(a)},O.exports.stringWriter=function(a){return new i(a)},O.exports.streamWriter=function(a,l){return new s(a,l)}}).call(void 0)},{"./Utility":214,"./XMLDocument":224,"./XMLDocumentCB":225,"./XMLStreamWriter":230,"./XMLStringWriter":231}],236:[function(r,O,p){function c(){for(var s={},i=0;i<arguments.length;i++){var h=arguments[i];for(var o in h)d.call(h,o)&&(s[o]=h[o])}return s}O.exports=c;var d=Object.prototype.hasOwnProperty},{}],237:[function(r,O,p){"use strict";function c(v,u,w){i.isBuffer(u)||(u=new i(u)),i.isBuffer(w)||(w=new i(w)),u.length>l?u=v(u):u.length<l&&(u=i.concat([u,f],l));for(var A=new i(l),E=new i(l),x=0;x<l;x++)A[x]=54^u[x],E[x]=92^u[x];var k=v(i.concat([A,w]));return v(i.concat([E,k]))}function d(v,u){v=v||"sha1";var w=a[v],A=[],E=0;return w||s("algorithm:",v,"is not yet supported"),{update:function(x){return i.isBuffer(x)||(x=new i(x)),A.push(x),E+=x.length,this},digest:function(x){var k=i.concat(A),g=u?c(w,u,k):w(k);return A=null,x?g.toString(x):g}}}function s(){var v=[].slice.call(arguments).join(" ");throw new Error([v,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
`))}var i=r("buffer").Buffer,h=r("./sha"),o=r("./sha256"),t=r("./md5"),a={sha1:h,sha256:o,md5:t},l=64,f=new i(l);f.fill(0),p.createHash=function(v){return d(v)},p.createHmac=function(v,u){return d(v,u)},function(v,u){for(var w in v)u(v[w],w)}(["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],function(v){p[v]=function(){s("sorry,",v,"is not implemented yet")}})},{"./md5":239,"./sha":240,"./sha256":241,buffer:38}],238:[function(r,O,p){"use strict";function c(a,l){if(a.length%h!=0){var f=a.length+(h-a.length%h);a=i.concat([a,o],f)}for(var v=[],u=l?a.readInt32BE:a.readInt32LE,w=0;w<a.length;w+=h)v.push(u.call(a,w));return v}function d(a,l,f){for(var v=new i(l),u=f?v.writeInt32BE:v.writeInt32LE,w=0;w<a.length;w++)u.call(v,a[w],4*w,!0);return v}function s(a,l,f,v){return i.isBuffer(a)||(a=new i(a)),d(l(c(a,v),a.length*t),f,v)}var i=r("buffer").Buffer,h=4,o=new i(h);o.fill(0);var t=8;O.exports={hash:s}},{buffer:38}],239:[function(r,O,p){"use strict";function c(f,v){f[v>>5]|=128<<v%32,f[14+(v+64>>>9<<4)]=v;for(var u=1732584193,w=-271733879,A=-1732584194,E=271733878,x=0;x<f.length;x+=16){var k=u,g=w,y=A,j=E;u=s(u,w,A,E,f[x+0],7,-680876936),E=s(E,u,w,A,f[x+1],12,-389564586),A=s(A,E,u,w,f[x+2],17,606105819),w=s(w,A,E,u,f[x+3],22,-1044525330),u=s(u,w,A,E,f[x+4],7,-176418897),E=s(E,u,w,A,f[x+5],12,1200080426),A=s(A,E,u,w,f[x+6],17,-1473231341),w=s(w,A,E,u,f[x+7],22,-45705983),u=s(u,w,A,E,f[x+8],7,1770035416),E=s(E,u,w,A,f[x+9],12,-1958414417),A=s(A,E,u,w,f[x+10],17,-42063),w=s(w,A,E,u,f[x+11],22,-1990404162),u=s(u,w,A,E,f[x+12],7,1804603682),E=s(E,u,w,A,f[x+13],12,-40341101),A=s(A,E,u,w,f[x+14],17,-1502002290),w=s(w,A,E,u,f[x+15],22,1236535329),u=i(u,w,A,E,f[x+1],5,-165796510),E=i(E,u,w,A,f[x+6],9,-1069501632),A=i(A,E,u,w,f[x+11],14,643717713),w=i(w,A,E,u,f[x+0],20,-373897302),u=i(u,w,A,E,f[x+5],5,-701558691),E=i(E,u,w,A,f[x+10],9,38016083),A=i(A,E,u,w,f[x+15],14,-660478335),w=i(w,A,E,u,f[x+4],20,-405537848),u=i(u,w,A,E,f[x+9],5,568446438),E=i(E,u,w,A,f[x+14],9,-1019803690),A=i(A,E,u,w,f[x+3],14,-187363961),w=i(w,A,E,u,f[x+8],20,1163531501),u=i(u,w,A,E,f[x+13],5,-1444681467),E=i(E,u,w,A,f[x+2],9,-51403784),A=i(A,E,u,w,f[x+7],14,1735328473),w=i(w,A,E,u,f[x+12],20,-1926607734),u=h(u,w,A,E,f[x+5],4,-378558),E=h(E,u,w,A,f[x+8],11,-2022574463),A=h(A,E,u,w,f[x+11],16,1839030562),w=h(w,A,E,u,f[x+14],23,-35309556),u=h(u,w,A,E,f[x+1],4,-1530992060),E=h(E,u,w,A,f[x+4],11,1272893353),A=h(A,E,u,w,f[x+7],16,-155497632),w=h(w,A,E,u,f[x+10],23,-1094730640),u=h(u,w,A,E,f[x+13],4,681279174),E=h(E,u,w,A,f[x+0],11,-358537222),A=h(A,E,u,w,f[x+3],16,-722521979),w=h(w,A,E,u,f[x+6],23,76029189),u=h(u,w,A,E,f[x+9],4,-640364487),E=h(E,u,w,A,f[x+12],11,-421815835),A=h(A,E,u,w,f[x+15],16,530742520),w=h(w,A,E,u,f[x+2],23,-995338651),u=o(u,w,A,E,f[x+0],6,-198630844),E=o(E,u,w,A,f[x+7],10,1126891415),A=o(A,E,u,w,f[x+14],15,-1416354905),w=o(w,A,E,u,f[x+5],21,-57434055),u=o(u,w,A,E,f[x+12],6,1700485571),E=o(E,u,w,A,f[x+3],10,-1894986606),A=o(A,E,u,w,f[x+10],15,-1051523),w=o(w,A,E,u,f[x+1],21,-2054922799),u=o(u,w,A,E,f[x+8],6,1873313359),E=o(E,u,w,A,f[x+15],10,-30611744),A=o(A,E,u,w,f[x+6],15,-1560198380),w=o(w,A,E,u,f[x+13],21,1309151649),u=o(u,w,A,E,f[x+4],6,-145523070),E=o(E,u,w,A,f[x+11],10,-1120210379),A=o(A,E,u,w,f[x+2],15,718787259),w=o(w,A,E,u,f[x+9],21,-343485551),u=t(u,k),w=t(w,g),A=t(A,y),E=t(E,j)}return Array(u,w,A,E)}function d(f,v,u,w,A,E){return t(a(t(t(v,f),t(w,E)),A),u)}function s(f,v,u,w,A,E,x){return d(v&u|~v&w,f,v,A,E,x)}function i(f,v,u,w,A,E,x){return d(v&w|u&~w,f,v,A,E,x)}function h(f,v,u,w,A,E,x){return d(v^u^w,f,v,A,E,x)}function o(f,v,u,w,A,E,x){return d(u^(v|~w),f,v,A,E,x)}function t(f,v){var u=(65535&f)+(65535&v);return(f>>16)+(v>>16)+(u>>16)<<16|65535&u}function a(f,v){return f<<v|f>>>32-v}var l=r("./helpers");O.exports=function(f){return l.hash(f,c,16)}},{"./helpers":238}],240:[function(r,O,p){"use strict";function c(t,a){t[a>>5]|=128<<24-a%32,t[15+(a+64>>9<<4)]=a;for(var l=Array(80),f=1732584193,v=-271733879,u=-1732584194,w=271733878,A=-1009589776,E=0;E<t.length;E+=16){for(var x=f,k=v,g=u,y=w,j=A,L=0;L<80;L++){l[L]=L<16?t[E+L]:h(l[L-3]^l[L-8]^l[L-14]^l[L-16],1);var _=i(i(h(f,5),d(L,v,u,w)),i(i(A,l[L]),s(L)));A=w,w=u,u=h(v,30),v=f,f=_}f=i(f,x),v=i(v,k),u=i(u,g),w=i(w,y),A=i(A,j)}return Array(f,v,u,w,A)}function d(t,a,l,f){return t<20?a&l|~a&f:t<40?a^l^f:t<60?a&l|a&f|l&f:a^l^f}function s(t){return t<20?1518500249:t<40?1859775393:t<60?-1894007588:-899497514}function i(t,a){var l=(65535&t)+(65535&a);return(t>>16)+(a>>16)+(l>>16)<<16|65535&l}function h(t,a){return t<<a|t>>>32-a}var o=r("./helpers");O.exports=function(t){return o.hash(t,c,20,!0)}},{"./helpers":238}],241:[function(r,O,p){"use strict";var c=r("./helpers"),d=function(u,w){var A=(65535&u)+(65535&w);return(u>>16)+(w>>16)+(A>>16)<<16|65535&A},s=function(u,w){return u>>>w|u<<32-w},i=function(u,w){return u>>>w},h=function(u,w,A){return u&w^~u&A},o=function(u,w,A){return u&w^u&A^w&A},t=function(u){return s(u,2)^s(u,13)^s(u,22)},a=function(u){return s(u,6)^s(u,11)^s(u,25)},l=function(u){return s(u,7)^s(u,18)^i(u,3)},f=function(u){return s(u,17)^s(u,19)^i(u,10)},v=function(u,w){var A,E,x,k,g,y,j,L,_,z,M,P,F=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),$=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),Z=new Array(64);u[w>>5]|=128<<24-w%32,u[15+(w+64>>9<<4)]=w;for(var _=0;_<u.length;_+=16){A=$[0],E=$[1],x=$[2],k=$[3],g=$[4],y=$[5],j=$[6],L=$[7];for(var z=0;z<64;z++)Z[z]=z<16?u[z+_]:d(d(d(f(Z[z-2]),Z[z-7]),l(Z[z-15])),Z[z-16]),M=d(d(d(d(L,a(g)),h(g,y,j)),F[z]),Z[z]),P=d(t(A),o(A,E,x)),L=j,j=y,y=g,g=d(k,M),k=x,x=E,E=A,A=d(M,P);$[0]=d(A,$[0]),$[1]=d(E,$[1]),$[2]=d(x,$[2]),$[3]=d(k,$[3]),$[4]=d(g,$[4]),$[5]=d(y,$[5]),$[6]=d(j,$[6]),$[7]=d(L,$[7])}return $};O.exports=function(u){return c.hash(u,v,32,!0)}},{"./helpers":238}],242:[function(r,O,p){(function(c){"use strict";function d(v){return v&&v.__esModule?v:{default:v}}var s=r("babel-runtime/core-js/object/create"),i=d(s),h=r("babel-runtime/helpers/classCallCheck"),o=d(h),t=r("babel-runtime/helpers/createClass"),a=d(t),l=r("babel-runtime/helpers/typeof"),f=d(l);!function(v){if((p===void 0?"undefined":(0,f.default)(p))==="object"&&O!==void 0)O.exports=v();else if(typeof Re=="function"&&Re.amd)Re([],v);else{var u;u=typeof window!="undefined"?window:c!==void 0?c:typeof self!="undefined"?self:this,u.mime=v()}}(function(){return function v(u,w,A){function E(g,y){if(!w[g]){if(!u[g]){var j=typeof r=="function"&&r;if(!y&&j)return j(g,!0);if(x)return x(g,!0);var L=new Error("Cannot find module '"+g+"'");throw L.code="MODULE_NOT_FOUND",L}var _=w[g]={exports:{}};u[g][0].call(_.exports,function(z){var M=u[g][1][z];return E(M||z)},_,_.exports,v,u,w,A)}return w[g].exports}for(var x=typeof r=="function"&&r,k=0;k<A.length;k++)E(A[k]);return E}({1:[function(v,u,w){var A=function(){function E(){(0,o.default)(this,E),this._types=(0,i.default)(null),this._extensions=(0,i.default)(null);for(var x=0;x<arguments.length;x++)this.define(arguments[x])}return(0,a.default)(E,[{key:"define",value:function(x,k){for(var g in x){for(var y=x[g],j=0;j<y.length;j++){var L=y[j];if(!k&&L in this._types)throw new Error('Attempt to change mapping for "'+L+'" extension from "'+this._types[L]+'" to "'+g+'". Pass `force=true` to allow this, otherwise remove "'+L+'" from the list of extensions for "'+g+'".');this._types[L]=g}!k&&this._extensions[g]||(this._extensions[g]=y[0])}}},{key:"getType",value:function(x){x=String(x);var k=x.replace(/^.*[\/\\]/,"").toLowerCase(),g=k.replace(/^.*\./,"").toLowerCase(),y=k.length<x.length;return(g.length<k.length-1||!y)&&this._types[g]||null}},{key:"getExtension",value:function(x){return(x=/^\s*([^;\s]*)/.test(x)&&RegExp.$1)&&this._extensions[x.toLowerCase()]||null}}]),E}();u.exports=A},{}],2:[function(v,u,w){var A=v("./Mime");u.exports=new A(v("./types/standard"),v("./types/other"))},{"./Mime":1,"./types/other":3,"./types/standard":4}],3:[function(v,u,w){u.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(v,u,w){u.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 ke!="undefined"?ke: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,O,p){"use strict";p.encodeURIComponent=function(c){try{return encodeURIComponent(c)}catch(d){return c}},p.escape=r("escape-html"),p.timestamp=function(c){if(c){var d=c;return typeof d=="string"&&(d=Number(d)),String(c).length===10&&(d*=1e3),new Date(d)}return Math.round(Date.now()/1e3)}},{"escape-html":157}],244:[function(r,O,p){(function(c,d){"use strict";function s(L){return L&&L.__esModule?L:{default:L}}function i(L,_){return L===void 0?_:L}function h(L,_){return function(z,M,P){if(z)return _(z);L({data:M,status:P.statusCode,headers:P.headers,res:P})}}var o,t=r("babel-runtime/core-js/json/stringify"),a=s(t),l=r("babel-runtime/helpers/typeof"),f=s(l),v=r("util"),u=r("url"),w=r("http"),A=r("https"),E=r("debug")("urllib"),x=r("humanize-ms"),k=0,g=Math.pow(2,31)-10,y=/^https?:\/\//i;p.TIMEOUTS=[x("300s"),x("300s")];var j=["json","text"];p.request=function(L,_,z){return arguments.length===2&&typeof _=="function"&&(z=_,_=null),typeof z=="function"?p.requestWithCallback(L,_,z):(o||(o=r("any-promise")),new o(function(M,P){p.requestWithCallback(L,_,h(M,P))}))},p.requestWithCallback=function(L,_,z){function M(){Ae&&(clearTimeout(Ae),Ae=null)}function P(){I&&(clearTimeout(I),I=null)}function F(Te,ye,xe){if(P(),!z)return console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),G,c.pid,se.method,L),void(Te&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
stack: %s`,Date(),G,c.pid,Te.name,Te.message,Te.stack));var Ee=z;z=null;var ie={};if(xe&&(S=xe.statusCode,ie=xe.headers),S===401&&ie["www-authenticate"]&&(!_.headers||!_.headers.Authorization)&&_.digestAuth){var ce=ie["www-authenticate"];if(ce.indexOf("Digest ")>=0)return E("Request#%d %s: got digest auth header WWW-Authenticate: %s",G,L,ce),_.headers=_.headers||{},_.headers.Authorization=digestAuthHeader(se.method,se.path,ce,_.digestAuth),E("Request#%d %s: auth with digest header: %s",G,L,_.headers.Authorization),xe.headers["set-cookie"]&&(_.headers.Cookie=xe.headers["set-cookie"].join(";")),p.requestWithCallback(L,_,Ee)}var pe=Date.now()-U;Oe&&(Oe.contentDownload=pe),E("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",pe,b,S,se.method,se.host,se.path,C,Oe);var le={status:S,statusCode:S,headers:ie,size:b,aborted:ee,rt:pe,keepAliveSocket:C,data:ye,requestUrls:_.requestUrls,timing:Oe,remoteAddress:fe,remotePort:Me};if(Te){var Ce="";ae&&typeof ae.getCurrentStatus=="function"&&(Ce=", agent status: "+(0,a.default)(ae.getCurrentStatus())),Te.message+=", "+se.method+" "+L+" "+S+" (connected: "+n+", keepalive socket: "+C+Ce+`)
headers: `+(0,a.default)(ie),Te.data=ye,Te.path=se.path,Te.status=S,Te.headers=ie,Te.res=le}Ee(Te,ye,_.streaming?xe:le),_.emitter&&(V.url=L,V.socket=Pe&&Pe.connection,V.options=se,V.size=me,_.emitter.emit("response",{requestId:G,error:Te,ctx:_.ctx,req:V,res:le}))}function $(Te){var ye=null;if(_.followRedirect&&statuses.redirect[Te.statusCode]){_._followRedirectCount=(_._followRedirectCount||0)+1;var xe=Te.headers.location;if(xe){if(!(_._followRedirectCount>_.maxRedirects)){var Ee=_.formatRedirectUrl?_.formatRedirectUrl(L,xe):u.resolve(L,xe);E("Request#%d %s: `redirected` from %s to %s",G,se.path,L,Ee),P(),_.headers&&_.headers.Host&&y.test(xe)&&(_.headers.Host=null);var ie=z;return z=null,p.requestWithCallback(Ee,_,ie),{redirect:!0,error:null}}ye=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+L),ye.name="MaxRedirectError"}else ye=new Error("Got statusCode "+Te.statusCode+" but cannot resolve next location from headers"),ye.name="FollowRedirectError"}return{redirect:!1,error:ye}}function Z(Te,ye,xe){return xe(null,ye,Te.headers["content-encoding"])}function Q(Te){if(Oe&&(Oe.waiting=Date.now()-U),E("Request#%d %s `req response` event emit: status %d, headers: %j",G,L,Te.statusCode,Te.headers),_.streaming){var ye=$(Te);return ye.redirect?void Te.resume():ye.error?(Te.resume(),F(ye.error,null,Te)):F(null,null,Te)}if(Te.on("close",function(){E("Request#%d %s: `res close` event emit, total size %d",G,L,b)}),Te.on("error",function(){E("Request#%d %s: `res error` event emit, total size %d",G,L,b)}),Te.on("aborted",function(){ee=!0,E("Request#%d %s: `res aborted` event emit, total size %d",G,L,b)}),Le){var ye=$(Te);return ye.redirect?void Te.resume():ye.error?(Te.resume(),Le.end(),F(ye.error,null,Te)):(_.consumeWriteStream===!1?Te.on("end",F.bind(null,null,null,Te)):isNode010||isNode012?first([[Le,"close"],[Te,"aborted"]],function(ie,ce,pe){E("Request#%d %s: writeStream or res %s event emitted",G,L,pe),F(e||null,null,Te)}):Le.on("close",function(){E("Request#%d %s: writeStream close event emitted",G,L),F(e||null,null,Te)}),Te.pipe(Le))}var xe=[];Te.on("data",function(Ee){E("Request#%d %s: `res data` event emit, size %d",G,L,Ee.length),b+=Ee.length,xe.push(Ee)}),Te.on("end",function(){var Ee=d.concat(xe,b);if(E("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",G,L,b,Te._dumped),e)return F(e,Ee,Te);var ie=$(Te);if(ie.error)return F(ie.error,Ee,Te);ie.redirect||Z(Te,Ee,function(ce,pe,le){if(ce)return F(ce,Ee,Te);if(!le&&j.indexOf(_.dataType)>=0){try{pe=decodeBodyByCharset(pe,Te)}catch(Ie){return E("decodeBodyByCharset error: %s",Ie),F(null,pe,Te)}if(_.dataType==="json")if(b===0)pe=null;else{var Ce=parseJSON(pe,_e);Ce.error?ce=Ce.error:pe=Ce.data}}ee&&E("Request#%d %s: Remote socket was terminated before `response.end()` was called",G,L),F(ce,pe,Te)})})}function re(){E("Response timer ticking, timeout: %d",Ke),I=setTimeout(function(){I=null;var Te="Response timeout for "+Ke+"ms";e=new Error(Te),e.name="ResponseTimeoutError",e.requestId=G,E("ResponseTimeout: Request#%d %s %s: %s, connected: %s",G,L,e.name,Te,n),N()},Ke)}function N(){E("Request#%d %s abort, connected: %s",G,L,n),Pe.socket||(e.noSocket=!0,F(e)),Pe.abort()}if(!L||typeof L!="string"&&(L===void 0?"undefined":(0,f.default)(L))!=="object"){var ue=v.format("expect request url to be a string or a http request options, but got %j",L);throw new Error(ue)}arguments.length===2&&typeof _=="function"&&(z=_,_=null),_=_||{},k>=g&&(k=0);var G=++k;_.requestUrls=_.requestUrls||[];var V={requestId:G,url:L,args:_,ctx:_.ctx};_.emitter&&_.emitter.emit("request",V),_.timeout=_.timeout||p.TIMEOUTS,_.maxRedirects=_.maxRedirects||10,_.streaming=_.streaming||_.customResponse;var T,U=Date.now();typeof L=="string"?(y.test(L)||(L="http://"+L),T=u.parse(L)):T=L;var H=(_.type||_.method||T.method||"GET").toUpperCase(),K=T.port||80,be=w,ae=i(_.agent,p.agent),_e=_.fixJSONCtlChars;T.protocol==="https:"&&(be=A,ae=i(_.httpsAgent,p.httpsAgent),T.port||(K=443));var se={host:T.hostname||T.host||"localhost",path:T.path||"/",method:H,port:K,agent:ae,headers:_.headers||{},lookup:_.lookup};Array.isArray(_.timeout)?se.requestTimeout=_.timeout[_.timeout.length-1]:_.timeout!==void 0&&(se.requestTimeout=_.timeout);for(var ve=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","secureOptions"],te=0;te<ve.length;te++){var J=ve[te];_.hasOwnProperty(J)&&(se[J]=_[J])}se.rejectUnauthorized!==!1||se.hasOwnProperty("secureOptions")||(se.secureOptions=r("constants").SSL_OP_NO_TLSv1_2);var q=_.auth||T.auth;q&&(se.auth=q);var he=_.content||_.data,Y=H==="GET"||H==="HEAD"||_.dataAsQueryString;if(!_.content&&he&&typeof he!="string"&&!d.isBuffer(he))if(Y)he=_.nestedQuerystring?qs.stringify(he):querystring.stringify(he);else{var W=se.headers["Content-Type"]||se.headers["content-type"];W||(W=_.contentType==="json"?"application/json":"application/x-www-form-urlencoded",se.headers["Content-Type"]=W),he=parseContentType(W).type==="application/json"?(0,a.default)(he):_.nestedQuerystring?qs.stringify(he):querystring.stringify(he)}Y&&he&&(se.path+=(T.query?"&":"?")+he,he=null);var me=0;if(he){var ge=he.length;d.isBuffer(he)||(ge=d.byteLength(he)),me=se.headers["Content-Length"]=ge}_.dataType==="json"&&(se.headers.Accept="application/json"),typeof _.beforeRequest=="function"&&_.beforeRequest(se);var Ae=null,I=null,e=null,n=!1,C=!1,b=0,S=-1,ee=!1,fe="",Me="",Oe=null;_.timing&&(Oe={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),_.gzip&&(se.headers["Accept-Encoding"]||se.headers["accept-encoding"]||(se.headers["Accept-Encoding"]="gzip"));var Le=_.writeStream;E("Request#%d %s %s with headers %j, options.path: %s",G,H,L,se.headers,se.path),_.requestUrls.push(L);var Be,Ke;Array.isArray(_.timeout)?(Be=x(_.timeout[0]),Ke=x(_.timeout[1])):Be=Ke=x(_.timeout),E("ConnectTimeout: %d, ResponseTimeout: %d",Be,Ke);var Pe;try{Pe=be.request(se,Q)}catch(Te){return F(Te)}return typeof window=="undefined"?function(){E("Connect timer ticking, timeout: %d",Be),Ae=setTimeout(function(){Ae=null,S===-1&&(S=-2);var Te="Connect timeout for "+Be+"ms",ye="ConnectionTimeoutError";Pe.socket||(ye="SocketAssignTimeoutError",Te+=", working sockets is full"),e=new Error(Te),e.name=ye,e.requestId=G,E("ConnectTimeout: Request#%d %s %s: %s, connected: %s",G,L,e.name,Te,n),N()},Be)}():Pe.on("requestTimeout",function(){S===-1&&(S=-2);var Te="Connect timeout for "+Be+"ms";e=new Error(Te),e.name="ConnectionTimeoutError",e.requestId=G,N()}),Oe&&Pe.on("finish",function(){Oe.requestSent=Date.now()-U}),Pe.once("socket",function(Te){Oe&&(Oe.queuing=Date.now()-U),isNode010&&Te.socket&&(Te=Te.socket);var ye=Te.readyState;if(ye==="opening")return Te.once("lookup",function(xe,Ee,ie){E("Request#%d %s lookup: %s, %s, %s",G,L,xe,Ee,ie),Oe&&(Oe.dnslookup=Date.now()-U),Ee&&(fe=Ee)}),void Te.once("connect",function(){Oe&&(Oe.connected=Date.now()-U),M(),re(),E("Request#%d %s new socket connected",G,L),n=!0,fe||(fe=Te.remoteAddress),Me=Te.remotePort});E("Request#%d %s reuse socket connected, readyState: %s",G,L,ye),n=!0,C=!0,fe||(fe=Te.remoteAddress),Me=Te.remotePort,M(),re()}),Pe.on("error",function(Te){Te.name!=="Error"&&Te.name!=="TypeError"||(Te.name=n?"ResponseError":"RequestError"),Te.message+=' (req "error")',E("Request#%d %s `req error` event emit, %s: %s",G,L,Te.name,Te.message),F(e||Te)}),Le&&Le.once("error",function(Te){Te.message+=' (writeStream "error")',e=Te,E("Request#%d %s `writeStream error` event emit, %s: %s",G,L,Te.name,Te.message),N()}),_.stream?(_.stream.pipe(Pe),_.stream.once("error",function(Te){Te.message+=' (stream "error")',e=Te,E("Request#%d %s `readStream error` event emit, %s: %s",G,L,Te.name,Te.message),N()})):Pe.end(he),Pe.requestId=G,Pe}}).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(Re){function r(p){if(O[p])return O[p].exports;var c=O[p]={i:p,l:!1,exports:{}};return Re[p].call(c.exports,c,c.exports,r),c.l=!0,c.exports}var O={};r.m=Re,r.c=O,r.d=function(p,c,d){r.o(p,c)||Object.defineProperty(p,c,{configurable:!1,enumerable:!0,get:d})},r.n=function(p){var c=p&&p.__esModule?function(){return p.default}:function(){return p};return r.d(c,"a",c),c},r.o=function(p,c){return Object.prototype.hasOwnProperty.call(p,c)},r.p="",r(r.s=12)}([function(Re,r,O){!function(p,c){Re.exports=r=c()}(0,function(){var p=p||function(c,d){var s=Object.create||function(){function A(){}return function(E){var x;return A.prototype=E,x=new A,A.prototype=null,x}}(),i={},h=i.lib={},o=h.Base=function(){return{extend:function(A){var E=s(this);return A&&E.mixIn(A),E.hasOwnProperty("init")&&this.init!==E.init||(E.init=function(){E.$super.init.apply(this,arguments)}),E.init.prototype=E,E.$super=this,E},create:function(){var A=this.extend();return A.init.apply(A,arguments),A},init:function(){},mixIn:function(A){for(var E in A)A.hasOwnProperty(E)&&(this[E]=A[E]);A.hasOwnProperty("toString")&&(this.toString=A.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),t=h.WordArray=o.extend({init:function(A,E){A=this.words=A||[],this.sigBytes=E!=null?E:4*A.length},toString:function(A){return(A||l).stringify(this)},concat:function(A){var E=this.words,x=A.words,k=this.sigBytes,g=A.sigBytes;if(this.clamp(),k%4)for(var y=0;y<g;y++){var j=x[y>>>2]>>>24-y%4*8&255;E[k+y>>>2]|=j<<24-(k+y)%4*8}else for(var y=0;y<g;y+=4)E[k+y>>>2]=x[y>>>2];return this.sigBytes+=g,this},clamp:function(){var A=this.words,E=this.sigBytes;A[E>>>2]&=4294967295<<32-E%4*8,A.length=c.ceil(E/4)},clone:function(){var A=o.clone.call(this);return A.words=this.words.slice(0),A},random:function(A){for(var E,x=[],k=0;k<A;k+=4){var g=function(y){var y=y,j=987654321,L=4294967295;return function(){j=36969*(65535&j)+(j>>16)&L,y=18e3*(65535&y)+(y>>16)&L;var _=(j<<16)+y&L;return _/=4294967296,(_+=.5)*(c.random()>.5?1:-1)}}(4294967296*(E||c.random()));E=987654071*g(),x.push(4294967296*g()|0)}return new t.init(x,A)}}),a=i.enc={},l=a.Hex={stringify:function(A){for(var E=A.words,x=A.sigBytes,k=[],g=0;g<x;g++){var y=E[g>>>2]>>>24-g%4*8&255;k.push((y>>>4).toString(16)),k.push((15&y).toString(16))}return k.join("")},parse:function(A){for(var E=A.length,x=[],k=0;k<E;k+=2)x[k>>>3]|=parseInt(A.substr(k,2),16)<<24-k%8*4;return new t.init(x,E/2)}},f=a.Latin1={stringify:function(A){for(var E=A.words,x=A.sigBytes,k=[],g=0;g<x;g++){var y=E[g>>>2]>>>24-g%4*8&255;k.push(String.fromCharCode(y))}return k.join("")},parse:function(A){for(var E=A.length,x=[],k=0;k<E;k++)x[k>>>2]|=(255&A.charCodeAt(k))<<24-k%4*8;return new t.init(x,E)}},v=a.Utf8={stringify:function(A){try{return decodeURIComponent(escape(f.stringify(A)))}catch(E){throw new Error("Malformed UTF-8 data")}},parse:function(A){return f.parse(unescape(encodeURIComponent(A)))}},u=h.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new t.init,this._nDataBytes=0},_append:function(A){typeof A=="string"&&(A=v.parse(A)),this._data.concat(A),this._nDataBytes+=A.sigBytes},_process:function(A){var E=this._data,x=E.words,k=E.sigBytes,g=this.blockSize,y=4*g,j=k/y;j=A?c.ceil(j):c.max((0|j)-this._minBufferSize,0);var L=j*g,_=c.min(4*L,k);if(L){for(var z=0;z<L;z+=g)this._doProcessBlock(x,z);var M=x.splice(0,L);E.sigBytes-=_}return new t.init(M,_)},clone:function(){var A=o.clone.call(this);return A._data=this._data.clone(),A},_minBufferSize:0}),w=(h.Hasher=u.extend({cfg:o.extend(),init:function(A){this.cfg=this.cfg.extend(A),this.reset()},reset:function(){u.reset.call(this),this._doReset()},update:function(A){return this._append(A),this._process(),this},finalize:function(A){return A&&this._append(A),this._doFinalize()},blockSize:16,_createHelper:function(A){return function(E,x){return new A.init(x).finalize(E)}},_createHmacHelper:function(A){return function(E,x){return new w.HMAC.init(A,x).finalize(E)}}}),i.algo={});return i}(Math);return p})},function(Re,r,O){"use strict";function p(s,i){if(!(s instanceof i))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(r,"__esModule",{value:!0});var c=function(){function s(i,h){for(var o=0;o<h.length;o++){var t=h[o];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(i,t.key,t)}}return function(i,h,o){return h&&s(i.prototype,h),o&&s(i,o),i}}(),d=function(){function s(){p(this,s)}return c(s,null,[{key:"detectIEVersion",value:function(){for(var i=4,h=document.createElement("div"),o=h.getElementsByTagName("i");h.innerHTML="<!--[if gt IE "+i+"]><i></i><![endif]-->",o[0];)i++;return i>4&&i}},{key:"extend",value:function(i,h){for(var o in h)Object.prototype.hasOwnProperty.call(h,o)&&h[o]&&(i[o]=h[o])}},{key:"isArray",value:function(i){return Object.prototype.toString.call(arg)==="[object Array]"}},{key:"getFileType",value:function(i){return i=i.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(i)?"video":/.mp3|.wav|.ape|.cda|.au|.midi|.mac|.aac|.ac3|.acm|.amr|.caf|.flac|.m4a|.ra|.wma/.test(i)?"audio":/.bmp|.jpg|.jpeg|.png/.test(i)?"img":"other"}},{key:"isImage",value:function(i){return i=i.toLowerCase(),!!/.jpg|.jpeg|.png/.test(i)}},{key:"ISODateString",value:function(i){function h(o){return o<10?"0"+o:o}return i.getUTCFullYear()+"-"+h(i.getUTCMonth()+1)+"-"+h(i.getUTCDate())+"T"+h(i.getUTCHours())+":"+h(i.getUTCMinutes())+":"+h(i.getUTCSeconds())+"Z"}},{key:"isIntNum",value:function(i){return!!/^\d+$/.test(i)}}]),s}();r.default=d},function(Re,r,O){!function(p,c){Re.exports=r=c(O(0))}(0,function(p){return function(c){function d(w,A,E,x,k,g,y){var j=w+(A&E|~A&x)+k+y;return(j<<g|j>>>32-g)+A}function s(w,A,E,x,k,g,y){var j=w+(A&x|E&~x)+k+y;return(j<<g|j>>>32-g)+A}function i(w,A,E,x,k,g,y){var j=w+(A^E^x)+k+y;return(j<<g|j>>>32-g)+A}function h(w,A,E,x,k,g,y){var j=w+(E^(A|~x))+k+y;return(j<<g|j>>>32-g)+A}var o=p,t=o.lib,a=t.WordArray,l=t.Hasher,f=o.algo,v=[];!function(){for(var w=0;w<64;w++)v[w]=4294967296*c.abs(c.sin(w+1))|0}();var u=f.MD5=l.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(w,A){for(var E=0;E<16;E++){var x=A+E,k=w[x];w[x]=16711935&(k<<8|k>>>24)|4278255360&(k<<24|k>>>8)}var g=this._hash.words,y=w[A+0],j=w[A+1],L=w[A+2],_=w[A+3],z=w[A+4],M=w[A+5],P=w[A+6],F=w[A+7],$=w[A+8],Z=w[A+9],Q=w[A+10],re=w[A+11],N=w[A+12],ue=w[A+13],G=w[A+14],V=w[A+15],T=g[0],U=g[1],H=g[2],K=g[3];T=d(T,U,H,K,y,7,v[0]),K=d(K,T,U,H,j,12,v[1]),H=d(H,K,T,U,L,17,v[2]),U=d(U,H,K,T,_,22,v[3]),T=d(T,U,H,K,z,7,v[4]),K=d(K,T,U,H,M,12,v[5]),H=d(H,K,T,U,P,17,v[6]),U=d(U,H,K,T,F,22,v[7]),T=d(T,U,H,K,$,7,v[8]),K=d(K,T,U,H,Z,12,v[9]),H=d(H,K,T,U,Q,17,v[10]),U=d(U,H,K,T,re,22,v[11]),T=d(T,U,H,K,N,7,v[12]),K=d(K,T,U,H,ue,12,v[13]),H=d(H,K,T,U,G,17,v[14]),U=d(U,H,K,T,V,22,v[15]),T=s(T,U,H,K,j,5,v[16]),K=s(K,T,U,H,P,9,v[17]),H=s(H,K,T,U,re,14,v[18]),U=s(U,H,K,T,y,20,v[19]),T=s(T,U,H,K,M,5,v[20]),K=s(K,T,U,H,Q,9,v[21]),H=s(H,K,T,U,V,14,v[22]),U=s(U,H,K,T,z,20,v[23]),T=s(T,U,H,K,Z,5,v[24]),K=s(K,T,U,H,G,9,v[25]),H=s(H,K,T,U,_,14,v[26]),U=s(U,H,K,T,$,20,v[27]),T=s(T,U,H,K,ue,5,v[28]),K=s(K,T,U,H,L,9,v[29]),H=s(H,K,T,U,F,14,v[30]),U=s(U,H,K,T,N,20,v[31]),T=i(T,U,H,K,M,4,v[32]),K=i(K,T,U,H,$,11,v[33]),H=i(H,K,T,U,re,16,v[34]),U=i(U,H,K,T,G,23,v[35]),T=i(T,U,H,K,j,4,v[36]),K=i(K,T,U,H,z,11,v[37]),H=i(H,K,T,U,F,16,v[38]),U=i(U,H,K,T,Q,23,v[39]),T=i(T,U,H,K,ue,4,v[40]),K=i(K,T,U,H,y,11,v[41]),H=i(H,K,T,U,_,16,v[42]),U=i(U,H,K,T,P,23,v[43]),T=i(T,U,H,K,Z,4,v[44]),K=i(K,T,U,H,N,11,v[45]),H=i(H,K,T,U,V,16,v[46]),U=i(U,H,K,T,L,23,v[47]),T=h(T,U,H,K,y,6,v[48]),K=h(K,T,U,H,F,10,v[49]),H=h(H,K,T,U,G,15,v[50]),U=h(U,H,K,T,M,21,v[51]),T=h(T,U,H,K,N,6,v[52]),K=h(K,T,U,H,_,10,v[53]),H=h(H,K,T,U,Q,15,v[54]),U=h(U,H,K,T,j,21,v[55]),T=h(T,U,H,K,$,6,v[56]),K=h(K,T,U,H,V,10,v[57]),H=h(H,K,T,U,P,15,v[58]),U=h(U,H,K,T,ue,21,v[59]),T=h(T,U,H,K,z,6,v[60]),K=h(K,T,U,H,re,10,v[61]),H=h(H,K,T,U,L,15,v[62]),U=h(U,H,K,T,Z,21,v[63]),g[0]=g[0]+T|0,g[1]=g[1]+U|0,g[2]=g[2]+H|0,g[3]=g[3]+K|0},_doFinalize:function(){var w=this._data,A=w.words,E=8*this._nDataBytes,x=8*w.sigBytes;A[x>>>5]|=128<<24-x%32;var k=c.floor(E/4294967296),g=E;A[15+(x+64>>>9<<4)]=16711935&(k<<8|k>>>24)|4278255360&(k<<24|k>>>8),A[14+(x+64>>>9<<4)]=16711935&(g<<8|g>>>24)|4278255360&(g<<24|g>>>8),w.sigBytes=4*(A.length+1),this._process();for(var y=this._hash,j=y.words,L=0;L<4;L++){var _=j[L];j[L]=16711935&(_<<8|_>>>24)|4278255360&(_<<24|_>>>8)}return y},clone:function(){var w=l.clone.call(this);return w._hash=this._hash.clone(),w}});o.MD5=l._createHelper(u),o.HmacMD5=l._createHmacHelper(u)}(Math),p.MD5})},function(Re,r,O){"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(Re,r,O){"use strict";function p(u){return u&&u.__esModule?u:{default:u}}function c(u,w){if(!(u instanceof w))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(r,"__esModule",{value:!0});var d=function(){function u(w,A){for(var E=0;E<A.length;E++){var x=A[E];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(w,x.key,x)}}return function(w,A,E){return A&&u(w.prototype,A),E&&u(w,E),w}}(),s=O(5),i=p(s),h=O(25),o=p(h),t=O(6),a=p(t),l=O(7),f=p(l),v=function(){function u(w){c(this,u);var A=f.default.os.name,E=f.default.os.version||"",x=f.default.browser.name,k=f.default.browser.version||"",g=window.location.href,y="";g&&(y=f.default.getHost(g));var j="pc";f.default.os.ipad?j="pad":(f.default.os.iphone||f.default.os.android)&&(j="phone"),this._ri=i.default.create(),this.initParam={APIVersion:"0.6.0",lv:"1",av:a.default.version,pd:"upload",sm:"upload",md:"uploader",uuid:u.getUuid(),os:A,ov:E,et:x,ev:k,uat:navigator.userAgent,app_n:y,tt:j,dm:"h5",ut:""}}return d(u,[{key:"log",value:function(w,A){A&&A.ri?(this._ri=A.ri,delete A.ri):this._ri=i.default.create(),A&&A.ut&&(this.initParam.ut=A.ut,delete A.ut),this.initParam.t=new Date().getTime(),this.initParam.ll=w=="20006"?"error":"info",this.initParam.ri=this._ri,this.initParam.e=w;var E=[];if(A)for(var x in A)E.push(x+"="+A[x]);var k=E.join("&");this.initParam.args=encodeURIComponent(k==""?"0":k);var g=[];for(var x in this.initParam)g.push(x+"="+this.initParam[x]);var y=g.join("&");AliyunUpload&&AliyunUpload.__logTestCallback__?AliyunUpload.__logTestCallback__(y):new Image(0,0).src="https://videocloud.cn-hangzhou.log.aliyuncs.com/logstores/upload/track?"+y}}],[{key:"getUuid",value:function(){var w=o.default.get("p_h5_upload_u");return w||(w=i.default.create(),o.default.set("p_h5_upload_u",w,730)),w}},{key:"getClientId",value:function(){return o.default.get("p_h5_upload_clientId")}},{key:"setClientId",value:function(w){return w||(w=i.default.create()),o.default.set("p_h5_upload_clientId",w,730),w}}]),u}();r.default=v},function(Re,r,O){"use strict";function p(s,i){if(!(s instanceof i))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(r,"__esModule",{value:!0});var c=function(){function s(i,h){for(var o=0;o<h.length;o++){var t=h[o];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(i,t.key,t)}}return function(i,h,o){return h&&s(i.prototype,h),o&&s(i,o),i}}(),d=function(){function s(){p(this,s)}return c(s,null,[{key:"create",value:function(i,h){var o,t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),a=[];if(h=h||t.length,i)for(o=0;o<i;o++)a[o]=t[0|Math.random()*h];else{var l;for(a[8]=a[13]=a[18]=a[23]="-",a[14]="4",o=0;o<36;o++)a[o]||(l=0|16*Math.random(),a[o]=t[o==19?3&l|8:l])}return a.join("")}}]),s}();r.default=d},function(Re,r,O){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var p={version:"1.5.0"};r.default=p},function(Re,r,O){"use strict";function p(t,a){if(!(t instanceof a))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(r,"__esModule",{value:!0});var c=function(){function t(a,l){for(var f=0;f<l.length;f++){var v=l[f];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(a,v.key,v)}}return function(a,l,f){return l&&t(a.prototype,l),f&&t(a,f),a}}(),d=function(t){var a=navigator.userAgent,l="other";if(t.ios)return"iOS";if(t.android)return"android";if(a.indexOf("Baiduspider")>-1)return"Baiduspider";if(a.indexOf("PlayStation")>-1)return"PS4";var f=navigator.platform=="Win32"||navigator.platform=="Windows"||a.indexOf("Windows")>-1,v=navigator.platform=="Mac68K"||navigator.platform=="MacPPC"||navigator.platform=="Macintosh"||navigator.platform=="MacIntel";return v&&(l="macOS"),navigator.platform=="X11"&&!f&&!v&&(l="Unix"),String(navigator.platform).indexOf("Linux")>-1&&(l="Linux"),f?"windows":l},s=function(){var t=navigator.userAgent,a="";return(t.indexOf("Windows NT 5.0")>-1||t.indexOf("Windows 2000")>-1)&&(a="2000"),(t.indexOf("Windows NT 5.1")>-1||t.indexOf("Windows XP")>-1)&&(a="XP"),(t.indexOf("Windows NT 5.2")>-1||t.indexOf("Windows 2003")>-1)&&(a="2003"),(t.indexOf("Windows NT 6.0")>-1||t.indexOf("Windows Vista")>-1)&&(a="Vista"),(t.indexOf("Windows NT 6.1")>-1||t.indexOf("Windows 7")>-1)&&(a="7"),(t.indexOf("Windows NT 6.2")>-1||t.indexOf("Windows 8")>-1)&&(a="8"),(t.indexOf("Windows NT 6.3")>-1||t.indexOf("Windows 8.1")>-1)&&(a="8.1"),(t.indexOf("Windows NT 10")>-1||t.indexOf("Windows 10")>-1)&&(a="10"),a},i=function(t){var a=navigator.userAgent.toLowerCase();return t.chrome?"Chrome":t.firefox?"Firefox":t.safari?"Safari":t.webview?"webview":t.ie?/edge/.test(a)?"Edge":"IE":/baiduspider/.test(a)?"Baiduspider":/ucweb/.test(a)||/UCBrowser/.test(a)?"UC":/opera/.test(a)?"Opera":/ucweb/.test(a)?"UC":/360se/.test(a)?"360\u6D4F\u89C8\u5668":/bidubrowser/.test(a)?"\u767E\u5EA6\u6D4F\u89C8\u5668":/metasr/.test(a)?"\u641C\u72D7\u6D4F\u89C8\u5668":/lbbrowser/.test(a)?"\u730E\u8C79\u6D4F\u89C8\u5668":/micromessenger/.test(a)?"\u5FAE\u4FE1\u5185\u7F6E\u6D4F\u89C8\u5668":/qqbrowser/.test(a)?"QQ\u6D4F\u89C8\u5668":/playstation/.test(a)?"PS4\u6D4F\u89C8\u5668":void 0},h=function(){var t={},a={},l=navigator.userAgent,f=navigator.platform,v=l.match(/Web[kK]it[\/]{0,1}([\d.]+)/),u=l.match(/(Android);?[\s\/]+([\d.]+)?/),w=!!l.match(/\(Macintosh\; Intel /),A=l.match(/(iPad).*OS\s([\d_]+)/),E=l.match(/(iPod)(.*OS\s([\d_]+))?/),x=!A&&l.match(/(iPhone\sOS)\s([\d_]+)/),k=l.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),g=/Win\d{2}|Windows/.test(f),y=l.match(/Windows Phone ([\d.]+)/),j=k&&l.match(/TouchPad/),L=l.match(/Kindle\/([\d.]+)/),_=l.match(/Silk\/([\d._]+)/),z=l.match(/(BlackBerry).*Version\/([\d.]+)/),M=l.match(/(BB10).*Version\/([\d.]+)/),P=l.match(/(RIM\sTablet\sOS)\s([\d.]+)/),F=l.match(/PlayBook/),$=l.match(/Chrome\/([\d.]+)/)||l.match(/CriOS\/([\d.]+)/),Z=l.match(/Firefox\/([\d.]+)/),Q=l.match(/\((?:Mobile|Tablet); rv:([\d.]+)\).*Firefox\/[\d.]+/),re=l.match(/MSIE\s([\d.]+)/)||l.match(/Trident\/[\d](?=[^\?]+).*rv:([0-9.].)/),N=!$&&l.match(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/),ue=N||l.match(/Version\/([\d.]+)([^S](Safari)|[^M]*(Mobile)[^S]*(Safari))/);if((a.webkit=!!v)&&(a.version=v[1]),u&&(t.android=!0,t.version=u[2]),x&&!E&&(t.ios=t.iphone=!0,t.version=x[2].replace(/_/g,".")),A&&(t.ios=t.ipad=!0,t.version=A[2].replace(/_/g,".")),E&&(t.ios=t.ipod=!0,t.version=E[3]?E[3].replace(/_/g,"."):null),y&&(t.wp=!0,t.version=y[1]),k&&(t.webos=!0,t.version=k[2]),j&&(t.touchpad=!0),z&&(t.blackberry=!0,t.version=z[2]),M&&(t.bb10=!0,t.version=M[2]),P&&(t.rimtabletos=!0,t.version=P[2]),F&&(a.playbook=!0),L&&(t.kindle=!0,t.version=L[1]),_&&(a.silk=!0,a.version=_[1]),!_&&t.android&&l.match(/Kindle Fire/)&&(a.silk=!0),$&&(a.chrome=!0,a.version=$[1]),Z&&(a.firefox=!0,a.version=Z[1]),Q&&(t.firefoxos=!0,t.version=Q[1]),re&&(a.ie=!0,a.version=re[1]),ue&&(w||t.ios||g||u)&&(a.safari=!0,t.ios||(a.version=ue[1])),N&&(a.webview=!0),w){var G=l.match(/[\d]*_[\d]*_[\d]*/);G&&G.length>0&&G[0]&&(t.version=G[0].replace(/_/g,"."))}return t.tablet=!!(A||F||u&&!l.match(/Mobile/)||Z&&l.match(/Tablet/)||re&&!l.match(/Phone/)&&l.match(/Touch/)),t.phone=!(t.tablet||t.ipod||!(u||x||k||z||M||$&&l.match(/Android/)||$&&l.match(/CriOS\/([\d.]+)/)||Z&&l.match(/Mobile/)||re&&l.match(/Touch/))),t.pc=!t.tablet&&!t.phone,w?t.name="macOS":g?(t.name="windows",t.version=s()):t.name=d(t),a.name=i(a),{os:t,browser:a}}(),o=function(){function t(){p(this,t)}return c(t,null,[{key:"getHost",value:function(a){var l="";if(a===void 0||a==null||a=="")return"";var f=a.indexOf("//"),v=a;f>-1&&(v=a.substring(f+2));var l=v,u=v.split("/");return u&&u.length>0&&(l=u[0]),u=l.split(":"),u&&u.length>0&&(l=u[0]),l}},{key:"os",get:function(){return h.os}},{key:"browser",get:function(){var a=h.browser;return a.name||(a.name=i()),a}}]),t}();r.default=o},function(Re,r,O){"use strict";function p(s,i){if(!(s instanceof i))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(r,"__esModule",{value:!0});var c=function(){function s(i,h){for(var o=0;o<h.length;o++){var t=h[o];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(i,t.key,t)}}return function(i,h,o){return h&&s(i.prototype,h),o&&s(i,o),i}}(),d=function(){function s(){p(this,s)}return c(s,null,[{key:"get",value:function(i,h,o,t,a){var l;o=o||function(){},typeof XMLHttpRequest=="undefined"&&(window.XMLHttpRequest=function(){try{return new window.ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(f){}try{return new window.ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(f){}try{return new window.ActiveXObject("Msxml2.XMLHTTP")}catch(f){}throw new Error("This browser does not support XMLHttpRequest.")}),l=new XMLHttpRequest,l.onreadystatechange=function(){l.readyState===4&&(l.status===200?h(l.responseText):o(l.responseText))};try{t===void 0&&(t=!0),l.open("GET",i,t),a&&(l.withCredentials=!0)}catch(f){return void o(f)}try{l.send()}catch(f){o(f)}}}]),s}();r.default=d},function(Re,r,O){"use strict";function p(h,o){if(!(h instanceof o))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(r,"__esModule",{value:!0});var c=function(){function h(o,t){for(var a=0;a<t.length;a++){var l=t[a];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(o,l.key,l)}}return function(o,t,a){return t&&h(o.prototype,t),a&&h(o,a),o}}(),d=O(27),s=O(30),i=(O(10),function(){function h(){p(this,h)}return c(h,null,[{key:"randomUUID",value:function(){for(var o=[],t="0123456789abcdef",a=0;a<36;a++)o[a]=t.substr(Math.floor(16*Math.random()),1);return o[14]="4",o[19]=t.substr(3&o[19]|8,1),o[8]=o[13]=o[18]=o[23]="-",o.join("")}},{key:"aliyunEncodeURI",value:function(o){var t=encodeURIComponent(o);return t=t.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(o,t,a){if(!o)throw new Error("PrismPlayer Error: vid should not be null!");var l=[];for(var f in o)l.push(f);for(var v=l.sort(),u="",w=v.length,f=0;f<w;f++){var A=h.aliyunEncodeURI(v[f]),E=h.aliyunEncodeURI(o[v[f]]);u==""?u=A+t+E:u+=a+A+t+E}return u}},{key:"makeChangeSiga",value:function(o,t){if(!o)throw new Error("PrismPlayer Error: vid should not be null!");return s.stringify(d("GET&"+h.aliyunEncodeURI("/")+"&"+h.aliyunEncodeURI(h.makeUTF8sort(o,"=","&")),t+"&"))}}]),h}());r.default=i},function(Re,r,O){!function(p,c){Re.exports=r=c(O(0))}(0,function(p){return p.enc.Utf8})},function(Re,r,O){!function(p,c){Re.exports=r=c(O(0))}(0,function(p){return p.enc.Hex})},function(Re,r,O){Re.exports=O(13)},function(Re,r,O){"use strict";var p,c,d=(typeof Symbol=="function"&&Symbol.iterator,O(14)),s=function(h){return h&&h.__esModule?h:{default:h}}(d),i={Vod:s.default};p=[],(c=function(){return i}.apply(r,p))!==void 0&&(Re.exports=c),window.AliyunUpload=i,rt.exports=AliyunUpload},function(Re,r,O){"use strict";function p(M){return M&&M.__esModule?M:{default:M}}function c(M,P){if(!(M instanceof P))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(r,"__esModule",{value:!0});var d=function(){function M(P,F){for(var $=0;$<F.length;$++){var Z=F[$];Z.enumerable=Z.enumerable||!1,Z.configurable=!0,"value"in Z&&(Z.writable=!0),Object.defineProperty(P,Z.key,Z)}}return function(P,F,$){return F&&M(P.prototype,F),$&&M(P,$),P}}(),s=O(15),i=O(3),h=O(16),o=p(h),t=O(18),a=p(t),l=O(24),f=p(l),v=O(4),u=p(v),w=O(1),A=p(w),E=O(5),x=p(E),k=O(26),g=p(k),y=O(31),j=p(y),L=O(32),_=p(L),z=(O(2),function(){function M(P){c(this,M),this.options=P,this.options.partSize=this.options.partSize||i.UPLOADDEFAULT.PARTSIZE,this.options.parallel=this.options.parallel||i.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=s.VODSTATE.INIT,this._uploadList=[],this._curIndex=-1,this._ossUpload=null,this._log=new u.default,this._retryCount=0,this._retryTotal=this.options.retryCount||3,this._retryDuration=this.options.retryDuration||2,this._state=s.VODSTATE.INIT,this._uploadWay="vod",this._onbeforeunload=!1,this._invalidUserId=!1,this._initEvent()}return d(M,[{key:"init",value:function(P,F,$,Z){return this._retryCount=0,!($&&!Z||!$&&Z)&&!(P&&!F||!P&&F)&&(this._ossCreditor.accessKeyId=P,this._ossCreditor.accessKeySecret=F,this._ossCreditor.securityToken=$,this._ossCreditor.expireTime=Z,!0)}},{key:"addFile",value:function(P,F,$,Z,Q,re){if(!P)return!1;if(P.size==0)try{this.options.onUploadFailed({file:P},"EmptyFile","\u6587\u4EF6\u5927\u5C0F\u4E3A0\uFF0C\u4E0D\u80FD\u4E0A\u4F20")}catch(V){console.log(V)}for(var N=(this.options,0);N<this._uploadList.length;N++)if(this._uploadList[N].file==P)return!1;var ue=new Object;if(ue.file=P,ue._endpoint=F,ue._bucket=$,ue._object=Z,ue.state=s.UPLOADSTATE.INIT,ue.isImage=A.default.isImage(P.name),!ue.isImage&&this.options.enableUploadProgress){var G=this;_.default.getMd5(P,function(V){ue.fileHash=V;var T=G._getCheckoutpoint(ue);G.options.localCheckpoint||T||G._getCheckoutpointFromCloud(ue,function(U){if(U.UploadPoint){var H=JSON.parse(U.UploadPoint);H.loaded!=1&&(ue.checkpoint=H.checkpoint,ue.loaded=H.loaded,ue.videoId=U.VideoId,G._saveCheckoutpoint(ue,H.checkpoint))}},function(U){try{if((U=JSON.parse(U))&&U.Code=="InvalidParameter"&&U.Message.indexOf("UserId")>0){G._invalidUserId=!0;var H=U.Message+"\uFF0C\u6B63\u786E\u8D26\u53F7ID(userId)\u8BF7\u53C2\u8003\uFF1Ahttps://help.aliyun.com/knowledge_detail/37196.html";console.log(H)}}catch(K){console.log(K)}})})}Q&&(ue.videoInfo=Q?JSON.parse(Q).Vod:{},ue.userData=a.default.encode(Q)),ue.ri=x.default.create(),this._uploadList.push(ue),this._reportLog("20001",ue,{ql:this._uploadList.length});try{this.options.addFileSuccess&&this.options.addFileSuccess(ue)}catch(V){console.log(V)}return!0}},{key:"deleteFile",value:function(P){return!!this.cancelFile(P)&&(this._uploadList.splice(P,1),!0)}},{key:"cleanList",value:function(){this.stopUpload(),this._uploadList.length=0,this._curIndex=-1}},{key:"cancelFile",value:function(P){if(this.options,P<0||P>=this._uploadList.length)return!1;var F=this._uploadList[P];if(P==this._curIndex&&F.state==s.UPLOADSTATE.UPLOADING){F.state=s.UPLOADSTATE.CANCELED;var $=this._getCheckoutpoint(F);$&&$.checkpoint&&($=$.checkpoint),$&&this._ossUpload.abort(F),this._removeCheckoutpoint(F),this.nextUpload()}else F.state!=s.UPLOADSTATE.SUCCESS&&(F.state=s.UPLOADSTATE.CANCELED);return this._reportLog("20008",F),!0}},{key:"resumeFile",value:function(P){if(this.options,P<0||P>=this._uploadList.length)return!1;var F=this._uploadList[P];return F.state==s.UPLOADSTATE.CANCELED&&(F.state=s.UPLOADSTATE.INIT,!0)}},{key:"listFiles",value:function(){return this._uploadList}},{key:"getCheckpoint",value:function(P){return this._getCheckoutpoint({file:P})}},{key:"startUpload",value:function(P){if(this._retryCount=0,this.options,this._state==s.VODSTATE.START||this._state==s.VODSTATE.EXPIRE)return void console.log("already started or expired");if(this._initState(),this._curIndex=this._findUploadIndex(),this._curIndex==-1)return void(this._state=s.VODSTATE.END);var F=this._uploadList[this._curIndex];this._ossUpload=null,this._upload(F),this._state=s.VODSTATE.START}},{key:"nextUpload",value:function(){var P=this.options;if(this._state==s.VODSTATE.START)if(this._curIndex=this._findUploadIndex(),this._curIndex!=-1){var F=this._uploadList[this._curIndex];this._ossUpload=null,this._upload(F)}else{this._state=s.VODSTATE.END;try{P.onUploadEnd&&P.onUploadEnd(F)}catch($){console.log($)}}}},{key:"clear",value:function(P){for(var F=this.options,$=0,Z=0;Z<this._uploadList.length;Z++)F.uploadList[Z].state==s.UPLOADSTATE.SUCCESS&&$++,this._uploadList[Z].state==P&&(F.uploadList.splice(Z,1),Z--);F.onClear&&F.onClear(F.uploadList.length,$)}},{key:"stopUpload",value:function(){if((this._state==s.VODSTATE.START||this._state==s.VODSTATE.FAILURE||this._curIndex==-1)&&this._curIndex!=-1){var P=this._uploadList[this._curIndex];this._state=s.VODSTATE.STOP,P.state=s.UPLOADSTATE.STOPED,this._changeState(P,s.UPLOADSTATE.STOPED),this._ossUpload.cancel()}}},{key:"resumeUploadWithAuth",value:function(P){var F=this;if(!P)return!1;var $=JSON.parse(a.default.decode(P));return!!($.AccessKeyId&&$.AccessKeySecret&&$.SecurityToken&&$.Expiration)&&F.resumeUploadWithToken($.AccessKeyId,$.AccessKeySecret,$.SecurityToken,$.Expiration)}},{key:"resumeUploadWithToken",value:function(P,F,$,Z){if(this.options,!(P&&F&&$&&Z))return!1;if(this._state!=s.VODSTATE.EXPIRE)return!1;if(this._curIndex==-1)return!1;var Q="";return this._uploadList.length>this._curIndex&&(Q=this._uploadList[this._curIndex]),Q&&(this.init(P,F,$,Z),this._state=s.VODSTATE.START,this._ossUpload=null,this._uploadCore(Q,Q.retry),Q.retry=!1),!0}},{key:"resumeUploadWithSTSToken",value:function(P,F,$){if(this._curIndex==-1)return!1;if(this._state!=s.VODSTATE.EXPIRE)return!1;if(this._uploadList.length>this._curIndex){var Z=this._uploadList[this._curIndex];Z.object?this._refreshSTSTokenUpload(Z,P,F,$):this.setSTSToken(Z,P,F,$)}}},{key:"setSTSTokenDirectlyUpload",value:function(P,F,$,Z,Q){if(!(F&&$&&Z&&Q))return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken and expiration should not be empty."),!1;this._ut="oss";var re=P;this.init(F,$,Z,Q),re.endpoint=re._endpoint,re.bucket=re._bucket,re.object=re._object,this._ossUpload=null,this._uploadCore(re,P.retry),P.retry=!1}},{key:"setSTSToken",value:function(P,F,$,Z){if(!F||!$||!Z)return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken should not be empty."),!1;this._ut="vod",this._uploadWay="sts";var Q=P.videoInfo,re={accessKeyId:F,securityToken:Z,accessKeySecret:$,fileName:P.file.name,title:Q.Title,requestId:P.ri,region:this.options.region};Q.ImageType&&(re.imageType=Q.ImageType),Q.ImageExt&&(re.imageExt=Q.ImageExt),Q.FileSize&&(re.fileSize=Q.FileSize),Q.Description&&(re.description=Q.Description),Q.CateId&&(re.cateId=Q.CateId),Q.Tags&&(re.tags=Q.Tags),Q.TemplateGroupId&&(re.templateGroupId=Q.TemplateGroupId),Q.StorageLocation&&(re.storageLocation=Q.StorageLocation),Q.CoverURL&&(re.coverUrl=Q.CoverURL),Q.TransCodeMode&&(re.transCodeMode=Q.TransCodeMode),Q.UserData&&(re.userData=Q.UserData);var N=this,ue="getUploadAuth";P.videoId?(re.videoId=P.videoId,ue="refreshUploadAuth"):P.isImage&&(ue="getImageUploadAuth"),g.default[ue](re,function(G){P.videoId=G.VideoId?G.VideoId:P.videoId,N.setUploadAuthAndAddress(P,G.UploadAuth,G.UploadAddress),N._state=s.VODSTATE.START},function(G){N._error(P,{name:G.Code,code:G.Code,message:G.Message,requestId:G.RequestId})})}},{key:"setUploadAuthAndAddress",value:function(P,F,$,Z){if(!P||!F||!$)return!1;var Q=JSON.parse(a.default.decode(F));if(!(Q.AccessKeyId&&Q.AccessKeySecret&&Q.SecurityToken&&Q.Expiration))return console.error("uploadauth is invalid"),!1;var re={},N=P;if($){if(re=JSON.parse(a.default.decode($)),!re.Endpoint||!re.Bucket||!re.FileName)return console.error("uploadAddress is invalid"),!1}else re.Endpoint=N.endpoint,re.Bucket=N.bucket,re.FileName=N.object;this._ut="vod",this._uploadWay="vod",this.options.region=Q.Region||this.options.region,this.init(Q.AccessKeyId,Q.AccessKeySecret,Q.SecurityToken,Q.Expiration),N.endpoint=N._endpoint?N._endpoint:re.Endpoint,N.bucket=N._bucket?N._bucket:re.Bucket,N.object=N._object?N._object:re.FileName,N.region=this.options.region,Z&&(N.videoId=Z),this._ossUpload=null,this._uploadCore(N,P.retry),P.retry=!1}},{key:"_refreshSTSTokenUpload",value:function(P,F,$,Z){if(!F||!$||!Z)return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken should not be empty."),!1;var Q={accessKeyId:F,securityToken:Z,accessKeySecret:$,videoId:P.object,requestId:P.ri,region:this.options.region},re=this,N="refreshUploadAuth";P.isImage&&(N="getImageUploadAuth"),g.default[N](Q,function(ue){re.setUploadAuthAndAddress(P,ue.UploadAuth,UploadAddress),re._state=s.VODSTATE.START},function(ue){re._error(P,{name:ue.Code,code:ue.Code,message:ue.Message,requestId:ue.RequestId})})}},{key:"_upload",value:function(P){var F=arguments.length>1&&arguments[1]!==void 0&&arguments[1],$=this.options;if(P.retry=F,$.onUploadstarted&&!F)try{var Z=this._getCheckoutpoint(P);Z&&Z.state!=s.UPLOADSTATE.UPLOADING&&(P.checkpoint=Z,P.videoId=Z.videoId),$.onUploadstarted(P)}catch(Q){console.log(Q)}}},{key:"_uploadCore",value:function(P){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(P.state=s.UPLOADSTATE.UPLOADING,!this._ossUpload){P.endpoint=P.endpoint||"http://oss-cn-hangzhou.aliyuncs.com";var F=this;this._ossUpload=new o.default({bucket:P.bucket,endpoint:P.endpoint,AccessKeyId:this._ossCreditor.accessKeyId,AccessKeySecret:this._ossCreditor.accessKeySecret,SecurityToken:this._ossCreditor.securityToken,timeout:this.options.timeout,cname:this.options.cname},{onerror:function(G,V){F._error.call(F,G,V)},oncomplete:function(G,V){F._complete.call(F,G,V)},onprogress:function(G,V,T){F._progress.call(F,G,V,T)}})}var $=A.default.getFileType(P.file.name),Z=this._getCheckoutpoint(P),Q="",re="";Z&&Z.checkpoint&&(re=Z.state,Q=Z.videoId,Z=Z.checkpoint),Z&&Q==P.videoId&&re!=s.UPLOADSTATE.UPLOADING&&(Z.file=P.file,P.checkpoint=Z,Z.uploadId);var N=this._adjustPartSize(P);this._reportLog("20002",P,{ft:$,fs:P.file.size,bu:P.bucket,ok:P.object,vid:P.videoId||"",fn:P.file.name,fw:null,fh:null,ps:N});var ue={headers:{"x-oss-notification":P.userData?P.userData:""},partSize:N,parallel:this.options.parallel};this._ossUpload.upload(P,ue)}},{key:"_findUploadIndex",value:function(){for(var P=-1,F=0;F<this._uploadList.length;F++)if(this._uploadList[F].state==s.UPLOADSTATE.INIT){P=F;break}return P}},{key:"_error",value:function(P,F){if(F.name=="cancel")try{this.options.onUploadCanceled(P,F)}catch(Z){console.log(Z)}else{if(F.message.indexOf("InvalidAccessKeyIdError")>0||F.name=="SignatureDoesNotMatchError"||F.code=="SecurityTokenExpired"||F.code=="InvalidSecurityToken.Expired"||F.code=="InvalidAccessKeyId"&&this._ossCreditor.securityToken){if(this.options.onUploadTokenExpired){this._state=s.VODSTATE.EXPIRE,P.state=s.UPLOADSTATE.FAIlURE;try{this.options.onUploadTokenExpired(P,F)}catch(Z){console.log(Z)}}return}if((F.name=="RequestTimeoutError"||F.name=="ConnectionTimeout"||F.name=="ConnectionTimeoutError")&&this._retryTotal>this._retryCount){var $=this;return setTimeout(function(){$._uploadCore(P,!0)},1e3*$._retryDuration),void this._retryCount++}F.name=="NoSuchUploadError"&&this._removeCheckoutpoint(P),this._handleError(P,F)}}},{key:"_handleError",value:function(P,F){var $=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],Z=s.UPLOADSTATE.FAIlURE;if(P.state!=s.UPLOADSTATE.CANCELED&&(P.state=s.UPLOADSTATE.FAIlURE,this._state=s.VODSTATE.FAILURE,this.options.onUploadFailed&&F&&F.code&&F.message))try{this.options.onUploadFailed(P,F.code,F.message)}catch(re){console.log(re)}if($&&this._changeState(P,Z),this._reportLog("20006",P,{code:F.name,message:F.message,requestId:F.requestId,fs:P.file.size,bu:P.bucket,ok:P.object,fn:P.file.name}),this._reportLog("20004",P,{requestId:F.requestId,fs:P.file.size,bu:P.bucket,ok:P.object,fn:P.file.name}),P.ri=x.default.create(),this._findUploadIndex()!=-1){var Q=this;this._state=s.VODSTATE.START,setTimeout(function(){Q.nextUpload()},100)}}},{key:"_complete",value:function(P,F){if(P.state=s.UPLOADSTATE.SUCCESS,this.options.onUploadSucceed)try{this.options.onUploadSucceed(P)}catch(Q){console.log(Q)}var $=0;F&&F.res&&F.res.headers&&($=F.res.headers["x-oss-request-id"]),this._removeCheckoutpoint(P);var Z=this;setTimeout(function(){Z.nextUpload()},100),this._retryCount=0,this._reportLog("20003",P,{requestId:$})}},{key:"_progress",value:function(P,F,$){if(this.options.onUploadProgress)try{P.loaded=F.loaded,this.options.onUploadProgress(P,F.total,F.loaded)}catch(V){console.log(V)}var Z=F.checkpoint,Q=0;Z&&(P.checkpoint=Z,this._saveCheckoutpoint(P,Z,s.UPLOADSTATE.UPLOADING),Q=Z.uploadId),this._retryCount=0;var re=this._getPortNumber(Z),N=0;if($&&$.headers&&(N=$.headers["x-oss-request-id"]),F.loaded!=0&&this._reportLog("20007",P,{pn:re,requestId:N}),F.loaded!=1&&this._reportLog("20005",P,{UploadId:Q,pn:re+1,pr:P.retry?1:0,fs:P.file.size,bu:P.bucket,ok:P.object,fn:P.file.name}),!this._invalidUserId&&!P.isImage&&this._ut=="vod"&&this.options.enableUploadProgress){var ue={file:P.file,checkpoint:F,userId:this.options.userId,videoId:P.videoId,region:this.options.region,fileHash:P.fileHash};try{var G=this;j.default.upload(ue,function(){},function(V){if((V=JSON.parse(V))&&V.Code=="InvalidParameter"&&V.Message.indexOf("UserId")>0){G._invalidUserId=!0;var T=V.Message+"\uFF0C\u6B63\u786E\u8D26\u53F7ID(userId)\u8BF7\u53C2\u8003\uFF1Ahttps://help.aliyun.com/knowledge_detail/37196.html";console.log(T)}})}catch(V){console.log(V)}}}},{key:"_getPortNumber",value:function(P){if(P){var F=P.doneParts;if(F&&F.length>0)return F[F.length-1].number}return 0}},{key:"_removeCheckoutpoint",value:function(P){var F=this._getCheckoutpointKey(P);f.default.remove(F)}},{key:"_getCheckoutpoint",value:function(P){var F=this._getCheckoutpointKey(P),$=f.default.get(F);if($)try{return JSON.parse($)}catch(Z){}return""}},{key:"_saveCheckoutpoint",value:function(P,F,$){if(F){var Z=this._getCheckoutpointKey(P),Q=P.file,re={fileName:Q.name,lastModified:Q.lastModified,size:Q.size,object:P.object,videoId:P.videoId,bucket:P.bucket,endpoint:P.endpoint,checkpoint:F,loaded:P.loaded,state:$};f.default.set(Z,JSON.stringify(re))}}},{key:"_changeState",value:function(P,F){var $=this._getCheckoutpoint(P);$&&((this._onbeforeunload=!0)&&(F=s.UPLOADSTATE.STOPED),this._saveCheckoutpoint(P,$.checkpoint,F))}},{key:"_getCheckoutpointKey",value:function(P){return"upload_"+P.file.lastModified+"_"+P.file.name+"_"+P.file.size}},{key:"_getCheckoutpointFromCloud",value:function(P,F,$){var Z={userId:this.options.userId,uploadInfoList:[{FileName:P.file.name,FileSize:P.file.size,FileCreateTime:P.file.lastModified,FileHash:P.fileHash}],region:this.options.region};j.default.get(Z,function(Q){F(Q)},$)}},{key:"_reportLog",value:function(P,F,$){$||($={}),$.ri=F.ri,this._ut&&($.ut=this._ut),this._log.log(P,$)}},{key:"_initEvent",value:function(){var P=this;window&&(window.onbeforeunload=function(F){if(P._onbeforeunload=!0,P._curIndex!=-1&&P._uploadList.length>P._curIndex){var $=P._uploadList[P._curIndex];P._changeState($,s.UPLOADSTATE.STOPED)}})}},{key:"_initState",value:function(){for(var P=0;P<this._uploadList.length;P++){var F=this._uploadList[P];F.state!=s.UPLOADSTATE.FAIlURE&&F.state!=s.UPLOADSTATE.STOPED||(F.state=s.UPLOADSTATE.INIT)}this._state=s.VODSTATE.INIT}},{key:"_adjustPartSize",value:function(P){return P.file.size/this.options.partSize>1e4?P.file.size/9999:this.options.partSize}}]),M}());r.default=z},function(Re,r,O){"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(Re,r,O){"use strict";function p(t){return t&&t.__esModule?t:{default:t}}function c(t,a){if(!(t instanceof a))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(r,"__esModule",{value:!0});var d=function(){function t(a,l){for(var f=0;f<l.length;f++){var v=l[f];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(a,v.key,v)}}return function(a,l,f){return l&&t(a.prototype,l),f&&t(a,f),a}}(),s=O(3),i=O(17),h=(p(i),O(1)),o=(p(h),function(){function t(a,l){if(c(this,t),a){this._config=a,this.create(this._config),this._uploadInfo=null,this._callback={};var f=function(){};this._callback.onerror=l.onerror||f,this._callback.oncomplete=l.oncomplete||f,this._callback.onprogress=l.onprogress||f}}return d(t,[{key:"create",value:function(a){if(a.endpoint=a.endpoint||this._config.endpoint,a.bucket=a.bucket||this._config.bucket,!(a.AccessKeyId&&a.AccessKeySecret&&a.endpoint&&a.SecurityToken))throw new Error("AccessKeyId\u3001AccessKeySecret\u3001endpoint should not be null");var l={accessKeyId:a.AccessKeyId,accessKeySecret:a.AccessKeySecret,stsToken:a.SecurityToken,endpoint:a.endpoint||this._config.endpoint,bucket:a.bucket||this._config.bucket,secure:!0,cname:a.cname};a.timeout&&(l.timeout=a.timeout),this.oss=new OSS.Wrapper(l)}},{key:"abort",value:function(a){if(a.checkpoint){var l=a.checkpoint.uploadId;this.oss.abortMultipartUpload(a.object,l)}}},{key:"getVersion",value:function(){}},{key:"cancel",value:function(){this.oss.cancel&&this.oss.cancel()}},{key:"upload",value:function(a,l){this._uploadInfo=a;var f=this,v=function(w,A,E){return function(x){f._progress(w,A,E),x()}},u={parallel:l.parallel||this._config.parallel||s.UPLOADDEFAULT.PARALLEL,partSize:l.partSize||this._config.partSize||s.UPLOADDEFAULT.PARTSIZE,progress:v};l.headers&&(u.headers=l.headers),a.checkpoint&&(u.checkpoint=a.checkpoint),a.bucket||(this.oss.options.bucket=a.bucket),a.endpoint||(this.oss.options.endpoint=a.endpoint),this.oss.multipartUpload(a.object,a.file,u).then(function(w,A){f._complete(w)}).catch(function(w){f.oss.cancel&&(f.oss&&f.oss.isCancel()?console.log("oss is cancel as error"):f.oss.cancel()),f._error(w)})}},{key:"header",value:function(a,l,f){this.oss.get(a.object).then(function(v){l(v)}).catch(function(v){f(v)})}},{key:"_progress",value:function(a,l,f){this._callback.onprogress(this._uploadInfo,{loaded:a,total:this._uploadInfo.file.size,checkpoint:l},f)}},{key:"_error",value:function(a){this._callback.onerror(this._uploadInfo,a)}},{key:"_complete",value:function(a){this._callback.oncomplete(this._uploadInfo,a)}}]),t}());r.default=o},function(Re,r,O){"use strict";function p(s,i){if(!(s instanceof i))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(r,"__esModule",{value:!0});var c=function(){function s(i,h){for(var o=0;o<h.length;o++){var t=h[o];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(i,t.key,t)}}return function(i,h,o){return h&&s(i.prototype,h),o&&s(i,o),i}}(),d=function(){function s(){p(this,s)}return c(s,null,[{key:"format",value:function(i){if(arguments.length<2)return null;for(var h=arguments[1],o=1;o<arguments.length;o++){var t=new RegExp("\\{"+(o-1)+"\\}","gm");h=h.replace(t,arguments[o+1])}return{code:i,message:h}}},{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."}}}]),s}();r.default=d},function(Re,r,O){"use strict";(function(p){function c(i,h){if(!(i instanceof h))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(r,"__esModule",{value:!0});var d=function(){function i(h,o){for(var t=0;t<o.length;t++){var a=o[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(h,a.key,a)}}return function(h,o,t){return o&&i(h.prototype,o),t&&i(h,t),h}}(),s=function(){function i(){c(this,i)}return d(i,null,[{key:"encode",value:function(h){return new p(h).toString("base64")}},{key:"decode",value:function(h){return new p(h,"base64").toString()}}]),i}();r.default=s}).call(r,O(19).Buffer)},function(Re,r,O){"use strict";(function(p){function c(){return s.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function d(I,e){if(c()<e)throw new RangeError("Invalid typed array length");return s.TYPED_ARRAY_SUPPORT?(I=new Uint8Array(e),I.__proto__=s.prototype):(I===null&&(I=new s(e)),I.length=e),I}function s(I,e,n){if(!(s.TYPED_ARRAY_SUPPORT||this instanceof s))return new s(I,e,n);if(typeof I=="number"){if(typeof e=="string")throw new Error("If encoding is specified then the first argument must be a string");return t(this,I)}return i(this,I,e,n)}function i(I,e,n,C){if(typeof e=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&e instanceof ArrayBuffer?f(I,e,n,C):typeof e=="string"?a(I,e,n):v(I,e)}function h(I){if(typeof I!="number")throw new TypeError('"size" argument must be a number');if(I<0)throw new RangeError('"size" argument must not be negative')}function o(I,e,n,C){return h(e),e<=0?d(I,e):n!==void 0?typeof C=="string"?d(I,e).fill(n,C):d(I,e).fill(n):d(I,e)}function t(I,e){if(h(e),I=d(I,e<0?0:0|u(e)),!s.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)I[n]=0;return I}function a(I,e,n){if(typeof n=="string"&&n!==""||(n="utf8"),!s.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var C=0|A(e,n);I=d(I,C);var b=I.write(e,n);return b!==C&&(I=I.slice(0,b)),I}function l(I,e){var n=e.length<0?0:0|u(e.length);I=d(I,n);for(var C=0;C<n;C+=1)I[C]=255&e[C];return I}function f(I,e,n,C){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(C||0))throw new RangeError("'length' is out of bounds");return e=n===void 0&&C===void 0?new Uint8Array(e):C===void 0?new Uint8Array(e,n):new Uint8Array(e,n,C),s.TYPED_ARRAY_SUPPORT?(I=e,I.__proto__=s.prototype):I=l(I,e),I}function v(I,e){if(s.isBuffer(e)){var n=0|u(e.length);return I=d(I,n),I.length===0||e.copy(I,0,0,n),I}if(e){if(typeof ArrayBuffer!="undefined"&&e.buffer instanceof ArrayBuffer||"length"in e)return typeof e.length!="number"||he(e.length)?d(I,0):l(I,e);if(e.type==="Buffer"&&me(e.data))return l(I,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function u(I){if(I>=c())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+c().toString(16)+" bytes");return 0|I}function w(I){return+I!=I&&(I=0),s.alloc(+I)}function A(I,e){if(s.isBuffer(I))return I.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(I)||I instanceof ArrayBuffer))return I.byteLength;typeof I!="string"&&(I=""+I);var n=I.length;if(n===0)return 0;for(var C=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return se(I).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return J(I).length;default:if(C)return se(I).length;e=(""+e).toLowerCase(),C=!0}}function E(I,e,n){var C=!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(I||(I="utf8");;)switch(I){case"hex":return re(this,e,n);case"utf8":case"utf-8":return F(this,e,n);case"ascii":return Z(this,e,n);case"latin1":case"binary":return Q(this,e,n);case"base64":return P(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,e,n);default:if(C)throw new TypeError("Unknown encoding: "+I);I=(I+"").toLowerCase(),C=!0}}function x(I,e,n){var C=I[e];I[e]=I[n],I[n]=C}function k(I,e,n,C,b){if(I.length===0)return-1;if(typeof n=="string"?(C=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=b?0:I.length-1),n<0&&(n=I.length+n),n>=I.length){if(b)return-1;n=I.length-1}else if(n<0){if(!b)return-1;n=0}if(typeof e=="string"&&(e=s.from(e,C)),s.isBuffer(e))return e.length===0?-1:g(I,e,n,C,b);if(typeof e=="number")return e&=255,s.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?b?Uint8Array.prototype.indexOf.call(I,e,n):Uint8Array.prototype.lastIndexOf.call(I,e,n):g(I,[e],n,C,b);throw new TypeError("val must be string, number or Buffer")}function g(I,e,n,C,b){function S(Pe,Te){return ee===1?Pe[Te]:Pe.readUInt16BE(Te*ee)}var ee=1,fe=I.length,Me=e.length;if(C!==void 0&&((C=String(C).toLowerCase())==="ucs2"||C==="ucs-2"||C==="utf16le"||C==="utf-16le")){if(I.length<2||e.length<2)return-1;ee=2,fe/=2,Me/=2,n/=2}var Oe;if(b){var Le=-1;for(Oe=n;Oe<fe;Oe++)if(S(I,Oe)===S(e,Le===-1?0:Oe-Le)){if(Le===-1&&(Le=Oe),Oe-Le+1===Me)return Le*ee}else Le!==-1&&(Oe-=Oe-Le),Le=-1}else for(n+Me>fe&&(n=fe-Me),Oe=n;Oe>=0;Oe--){for(var Be=!0,Ke=0;Ke<Me;Ke++)if(S(I,Oe+Ke)!==S(e,Ke)){Be=!1;break}if(Be)return Oe}return-1}function y(I,e,n,C){n=Number(n)||0;var b=I.length-n;C?(C=Number(C))>b&&(C=b):C=b;var S=e.length;if(S%2!=0)throw new TypeError("Invalid hex string");C>S/2&&(C=S/2);for(var ee=0;ee<C;++ee){var fe=parseInt(e.substr(2*ee,2),16);if(isNaN(fe))return ee;I[n+ee]=fe}return ee}function j(I,e,n,C){return q(se(e,I.length-n),I,n,C)}function L(I,e,n,C){return q(ve(e),I,n,C)}function _(I,e,n,C){return L(I,e,n,C)}function z(I,e,n,C){return q(J(e),I,n,C)}function M(I,e,n,C){return q(te(e,I.length-n),I,n,C)}function P(I,e,n){return e===0&&n===I.length?Y.fromByteArray(I):Y.fromByteArray(I.slice(e,n))}function F(I,e,n){n=Math.min(I.length,n);for(var C=[],b=e;b<n;){var S=I[b],ee=null,fe=S>239?4:S>223?3:S>191?2:1;if(b+fe<=n){var Me,Oe,Le,Be;switch(fe){case 1:S<128&&(ee=S);break;case 2:Me=I[b+1],(192&Me)==128&&(Be=(31&S)<<6|63&Me)>127&&(ee=Be);break;case 3:Me=I[b+1],Oe=I[b+2],(192&Me)==128&&(192&Oe)==128&&(Be=(15&S)<<12|(63&Me)<<6|63&Oe)>2047&&(Be<55296||Be>57343)&&(ee=Be);break;case 4:Me=I[b+1],Oe=I[b+2],Le=I[b+3],(192&Me)==128&&(192&Oe)==128&&(192&Le)==128&&(Be=(15&S)<<18|(63&Me)<<12|(63&Oe)<<6|63&Le)>65535&&Be<1114112&&(ee=Be)}}ee===null?(ee=65533,fe=1):ee>65535&&(ee-=65536,C.push(ee>>>10&1023|55296),ee=56320|1023&ee),C.push(ee),b+=fe}return $(C)}function $(I){var e=I.length;if(e<=ge)return String.fromCharCode.apply(String,I);for(var n="",C=0;C<e;)n+=String.fromCharCode.apply(String,I.slice(C,C+=ge));return n}function Z(I,e,n){var C="";n=Math.min(I.length,n);for(var b=e;b<n;++b)C+=String.fromCharCode(127&I[b]);return C}function Q(I,e,n){var C="";n=Math.min(I.length,n);for(var b=e;b<n;++b)C+=String.fromCharCode(I[b]);return C}function re(I,e,n){var C=I.length;(!e||e<0)&&(e=0),(!n||n<0||n>C)&&(n=C);for(var b="",S=e;S<n;++S)b+=_e(I[S]);return b}function N(I,e,n){for(var C=I.slice(e,n),b="",S=0;S<C.length;S+=2)b+=String.fromCharCode(C[S]+256*C[S+1]);return b}function ue(I,e,n){if(I%1!=0||I<0)throw new RangeError("offset is not uint");if(I+e>n)throw new RangeError("Trying to access beyond buffer length")}function G(I,e,n,C,b,S){if(!s.isBuffer(I))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>b||e<S)throw new RangeError('"value" argument is out of bounds');if(n+C>I.length)throw new RangeError("Index out of range")}function V(I,e,n,C){e<0&&(e=65535+e+1);for(var b=0,S=Math.min(I.length-n,2);b<S;++b)I[n+b]=(e&255<<8*(C?b:1-b))>>>8*(C?b:1-b)}function T(I,e,n,C){e<0&&(e=4294967295+e+1);for(var b=0,S=Math.min(I.length-n,4);b<S;++b)I[n+b]=e>>>8*(C?b:3-b)&255}function U(I,e,n,C,b,S){if(n+C>I.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function H(I,e,n,C,b){return b||U(I,e,n,4,34028234663852886e22,-34028234663852886e22),W.write(I,e,n,C,23,4),n+4}function K(I,e,n,C,b){return b||U(I,e,n,8,17976931348623157e292,-17976931348623157e292),W.write(I,e,n,C,52,8),n+8}function be(I){if(I=ae(I).replace(Ae,""),I.length<2)return"";for(;I.length%4!=0;)I+="=";return I}function ae(I){return I.trim?I.trim():I.replace(/^\s+|\s+$/g,"")}function _e(I){return I<16?"0"+I.toString(16):I.toString(16)}function se(I,e){e=e||1/0;for(var n,C=I.length,b=null,S=[],ee=0;ee<C;++ee){if((n=I.charCodeAt(ee))>55295&&n<57344){if(!b){if(n>56319){(e-=3)>-1&&S.push(239,191,189);continue}if(ee+1===C){(e-=3)>-1&&S.push(239,191,189);continue}b=n;continue}if(n<56320){(e-=3)>-1&&S.push(239,191,189),b=n;continue}n=65536+(b-55296<<10|n-56320)}else b&&(e-=3)>-1&&S.push(239,191,189);if(b=null,n<128){if((e-=1)<0)break;S.push(n)}else if(n<2048){if((e-=2)<0)break;S.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;S.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;S.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return S}function ve(I){for(var e=[],n=0;n<I.length;++n)e.push(255&I.charCodeAt(n));return e}function te(I,e){for(var n,C,b,S=[],ee=0;ee<I.length&&!((e-=2)<0);++ee)n=I.charCodeAt(ee),C=n>>8,b=n%256,S.push(b),S.push(C);return S}function J(I){return Y.toByteArray(be(I))}function q(I,e,n,C){for(var b=0;b<C&&!(b+n>=e.length||b>=I.length);++b)e[b+n]=I[b];return b}function he(I){return I!==I}/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
* @license MIT
*/var Y=O(21),W=O(22),me=O(23);r.Buffer=s,r.SlowBuffer=w,r.INSPECT_MAX_BYTES=50,s.TYPED_ARRAY_SUPPORT=p.TYPED_ARRAY_SUPPORT!==void 0?p.TYPED_ARRAY_SUPPORT:function(){try{var I=new Uint8Array(1);return I.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},I.foo()===42&&typeof I.subarray=="function"&&I.subarray(1,1).byteLength===0}catch(e){return!1}}(),r.kMaxLength=c(),s.poolSize=8192,s._augment=function(I){return I.__proto__=s.prototype,I},s.from=function(I,e,n){return i(null,I,e,n)},s.TYPED_ARRAY_SUPPORT&&(s.prototype.__proto__=Uint8Array.prototype,s.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&s[Symbol.species]===s&&Object.defineProperty(s,Symbol.species,{value:null,configurable:!0})),s.alloc=function(I,e,n){return o(null,I,e,n)},s.allocUnsafe=function(I){return t(null,I)},s.allocUnsafeSlow=function(I){return t(null,I)},s.isBuffer=function(I){return!(I==null||!I._isBuffer)},s.compare=function(I,e){if(!s.isBuffer(I)||!s.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(I===e)return 0;for(var n=I.length,C=e.length,b=0,S=Math.min(n,C);b<S;++b)if(I[b]!==e[b]){n=I[b],C=e[b];break}return n<C?-1:C<n?1:0},s.isEncoding=function(I){switch(String(I).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(I,e){if(!me(I))throw new TypeError('"list" argument must be an Array of Buffers');if(I.length===0)return s.alloc(0);var n;if(e===void 0)for(e=0,n=0;n<I.length;++n)e+=I[n].length;var C=s.allocUnsafe(e),b=0;for(n=0;n<I.length;++n){var S=I[n];if(!s.isBuffer(S))throw new TypeError('"list" argument must be an Array of Buffers');S.copy(C,b),b+=S.length}return C},s.byteLength=A,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var I=this.length;if(I%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<I;e+=2)x(this,e,e+1);return this},s.prototype.swap32=function(){var I=this.length;if(I%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<I;e+=4)x(this,e,e+3),x(this,e+1,e+2);return this},s.prototype.swap64=function(){var I=this.length;if(I%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<I;e+=8)x(this,e,e+7),x(this,e+1,e+6),x(this,e+2,e+5),x(this,e+3,e+4);return this},s.prototype.toString=function(){var I=0|this.length;return I===0?"":arguments.length===0?F(this,0,I):E.apply(this,arguments)},s.prototype.equals=function(I){if(!s.isBuffer(I))throw new TypeError("Argument must be a Buffer");return this===I||s.compare(this,I)===0},s.prototype.inspect=function(){var I="",e=r.INSPECT_MAX_BYTES;return this.length>0&&(I=this.toString("hex",0,e).match(/.{2}/g).join(" "),this.length>e&&(I+=" ... ")),"<Buffer "+I+">"},s.prototype.compare=function(I,e,n,C,b){if(!s.isBuffer(I))throw new TypeError("Argument must be a Buffer");if(e===void 0&&(e=0),n===void 0&&(n=I?I.length:0),C===void 0&&(C=0),b===void 0&&(b=this.length),e<0||n>I.length||C<0||b>this.length)throw new RangeError("out of range index");if(C>=b&&e>=n)return 0;if(C>=b)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,C>>>=0,b>>>=0,this===I)return 0;for(var S=b-C,ee=n-e,fe=Math.min(S,ee),Me=this.slice(C,b),Oe=I.slice(e,n),Le=0;Le<fe;++Le)if(Me[Le]!==Oe[Le]){S=Me[Le],ee=Oe[Le];break}return S<ee?-1:ee<S?1:0},s.prototype.includes=function(I,e,n){return this.indexOf(I,e,n)!==-1},s.prototype.indexOf=function(I,e,n){return k(this,I,e,n,!0)},s.prototype.lastIndexOf=function(I,e,n){return k(this,I,e,n,!1)},s.prototype.write=function(I,e,n,C){if(e===void 0)C="utf8",n=this.length,e=0;else if(n===void 0&&typeof e=="string")C=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,C===void 0&&(C="utf8")):(C=n,n=void 0)}var b=this.length-e;if((n===void 0||n>b)&&(n=b),I.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");C||(C="utf8");for(var S=!1;;)switch(C){case"hex":return y(this,I,e,n);case"utf8":case"utf-8":return j(this,I,e,n);case"ascii":return L(this,I,e,n);case"latin1":case"binary":return _(this,I,e,n);case"base64":return z(this,I,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,I,e,n);default:if(S)throw new TypeError("Unknown encoding: "+C);C=(""+C).toLowerCase(),S=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ge=4096;s.prototype.slice=function(I,e){var n=this.length;I=~~I,e=e===void 0?n:~~e,I<0?(I+=n)<0&&(I=0):I>n&&(I=n),e<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<I&&(e=I);var C;if(s.TYPED_ARRAY_SUPPORT)C=this.subarray(I,e),C.__proto__=s.prototype;else{var b=e-I;C=new s(b,void 0);for(var S=0;S<b;++S)C[S]=this[S+I]}return C},s.prototype.readUIntLE=function(I,e,n){I|=0,e|=0,n||ue(I,e,this.length);for(var C=this[I],b=1,S=0;++S<e&&(b*=256);)C+=this[I+S]*b;return C},s.prototype.readUIntBE=function(I,e,n){I|=0,e|=0,n||ue(I,e,this.length);for(var C=this[I+--e],b=1;e>0&&(b*=256);)C+=this[I+--e]*b;return C},s.prototype.readUInt8=function(I,e){return e||ue(I,1,this.length),this[I]},s.prototype.readUInt16LE=function(I,e){return e||ue(I,2,this.length),this[I]|this[I+1]<<8},s.prototype.readUInt16BE=function(I,e){return e||ue(I,2,this.length),this[I]<<8|this[I+1]},s.prototype.readUInt32LE=function(I,e){return e||ue(I,4,this.length),(this[I]|this[I+1]<<8|this[I+2]<<16)+16777216*this[I+3]},s.prototype.readUInt32BE=function(I,e){return e||ue(I,4,this.length),16777216*this[I]+(this[I+1]<<16|this[I+2]<<8|this[I+3])},s.prototype.readIntLE=function(I,e,n){I|=0,e|=0,n||ue(I,e,this.length);for(var C=this[I],b=1,S=0;++S<e&&(b*=256);)C+=this[I+S]*b;return b*=128,C>=b&&(C-=Math.pow(2,8*e)),C},s.prototype.readIntBE=function(I,e,n){I|=0,e|=0,n||ue(I,e,this.length);for(var C=e,b=1,S=this[I+--C];C>0&&(b*=256);)S+=this[I+--C]*b;return b*=128,S>=b&&(S-=Math.pow(2,8*e)),S},s.prototype.readInt8=function(I,e){return e||ue(I,1,this.length),128&this[I]?-1*(255-this[I]+1):this[I]},s.prototype.readInt16LE=function(I,e){e||ue(I,2,this.length);var n=this[I]|this[I+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(I,e){e||ue(I,2,this.length);var n=this[I+1]|this[I]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(I,e){return e||ue(I,4,this.length),this[I]|this[I+1]<<8|this[I+2]<<16|this[I+3]<<24},s.prototype.readInt32BE=function(I,e){return e||ue(I,4,this.length),this[I]<<24|this[I+1]<<16|this[I+2]<<8|this[I+3]},s.prototype.readFloatLE=function(I,e){return e||ue(I,4,this.length),W.read(this,I,!0,23,4)},s.prototype.readFloatBE=function(I,e){return e||ue(I,4,this.length),W.read(this,I,!1,23,4)},s.prototype.readDoubleLE=function(I,e){return e||ue(I,8,this.length),W.read(this,I,!0,52,8)},s.prototype.readDoubleBE=function(I,e){return e||ue(I,8,this.length),W.read(this,I,!1,52,8)},s.prototype.writeUIntLE=function(I,e,n,C){(I=+I,e|=0,n|=0,!C)&&G(this,I,e,n,Math.pow(2,8*n)-1,0);var b=1,S=0;for(this[e]=255&I;++S<n&&(b*=256);)this[e+S]=I/b&255;return e+n},s.prototype.writeUIntBE=function(I,e,n,C){(I=+I,e|=0,n|=0,!C)&&G(this,I,e,n,Math.pow(2,8*n)-1,0);var b=n-1,S=1;for(this[e+b]=255&I;--b>=0&&(S*=256);)this[e+b]=I/S&255;return e+n},s.prototype.writeUInt8=function(I,e,n){return I=+I,e|=0,n||G(this,I,e,1,255,0),s.TYPED_ARRAY_SUPPORT||(I=Math.floor(I)),this[e]=255&I,e+1},s.prototype.writeUInt16LE=function(I,e,n){return I=+I,e|=0,n||G(this,I,e,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[e]=255&I,this[e+1]=I>>>8):V(this,I,e,!0),e+2},s.prototype.writeUInt16BE=function(I,e,n){return I=+I,e|=0,n||G(this,I,e,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[e]=I>>>8,this[e+1]=255&I):V(this,I,e,!1),e+2},s.prototype.writeUInt32LE=function(I,e,n){return I=+I,e|=0,n||G(this,I,e,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[e+3]=I>>>24,this[e+2]=I>>>16,this[e+1]=I>>>8,this[e]=255&I):T(this,I,e,!0),e+4},s.prototype.writeUInt32BE=function(I,e,n){return I=+I,e|=0,n||G(this,I,e,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[e]=I>>>24,this[e+1]=I>>>16,this[e+2]=I>>>8,this[e+3]=255&I):T(this,I,e,!1),e+4},s.prototype.writeIntLE=function(I,e,n,C){if(I=+I,e|=0,!C){var b=Math.pow(2,8*n-1);G(this,I,e,n,b-1,-b)}var S=0,ee=1,fe=0;for(this[e]=255&I;++S<n&&(ee*=256);)I<0&&fe===0&&this[e+S-1]!==0&&(fe=1),this[e+S]=(I/ee>>0)-fe&255;return e+n},s.prototype.writeIntBE=function(I,e,n,C){if(I=+I,e|=0,!C){var b=Math.pow(2,8*n-1);G(this,I,e,n,b-1,-b)}var S=n-1,ee=1,fe=0;for(this[e+S]=255&I;--S>=0&&(ee*=256);)I<0&&fe===0&&this[e+S+1]!==0&&(fe=1),this[e+S]=(I/ee>>0)-fe&255;return e+n},s.prototype.writeInt8=function(I,e,n){return I=+I,e|=0,n||G(this,I,e,1,127,-128),s.TYPED_ARRAY_SUPPORT||(I=Math.floor(I)),I<0&&(I=255+I+1),this[e]=255&I,e+1},s.prototype.writeInt16LE=function(I,e,n){return I=+I,e|=0,n||G(this,I,e,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[e]=255&I,this[e+1]=I>>>8):V(this,I,e,!0),e+2},s.prototype.writeInt16BE=function(I,e,n){return I=+I,e|=0,n||G(this,I,e,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[e]=I>>>8,this[e+1]=255&I):V(this,I,e,!1),e+2},s.prototype.writeInt32LE=function(I,e,n){return I=+I,e|=0,n||G(this,I,e,4,2147483647,-2147483648),s.TYPED_ARRAY_SUPPORT?(this[e]=255&I,this[e+1]=I>>>8,this[e+2]=I>>>16,this[e+3]=I>>>24):T(this,I,e,!0),e+4},s.prototype.writeInt32BE=function(I,e,n){return I=+I,e|=0,n||G(this,I,e,4,2147483647,-2147483648),I<0&&(I=4294967295+I+1),s.TYPED_ARRAY_SUPPORT?(this[e]=I>>>24,this[e+1]=I>>>16,this[e+2]=I>>>8,this[e+3]=255&I):T(this,I,e,!1),e+4},s.prototype.writeFloatLE=function(I,e,n){return H(this,I,e,!0,n)},s.prototype.writeFloatBE=function(I,e,n){return H(this,I,e,!1,n)},s.prototype.writeDoubleLE=function(I,e,n){return K(this,I,e,!0,n)},s.prototype.writeDoubleBE=function(I,e,n){return K(this,I,e,!1,n)},s.prototype.copy=function(I,e,n,C){if(n||(n=0),C||C===0||(C=this.length),e>=I.length&&(e=I.length),e||(e=0),C>0&&C<n&&(C=n),C===n)return 0;if(I.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(C<0)throw new RangeError("sourceEnd out of bounds");C>this.length&&(C=this.length),I.length-e<C-n&&(C=I.length-e+n);var b,S=C-n;if(this===I&&n<e&&e<C)for(b=S-1;b>=0;--b)I[b+e]=this[b+n];else if(S<1e3||!s.TYPED_ARRAY_SUPPORT)for(b=0;b<S;++b)I[b+e]=this[b+n];else Uint8Array.prototype.set.call(I,this.subarray(n,n+S),e);return S},s.prototype.fill=function(I,e,n,C){if(typeof I=="string"){if(typeof e=="string"?(C=e,e=0,n=this.length):typeof n=="string"&&(C=n,n=this.length),I.length===1){var b=I.charCodeAt(0);b<256&&(I=b)}if(C!==void 0&&typeof C!="string")throw new TypeError("encoding must be a string");if(typeof C=="string"&&!s.isEncoding(C))throw new TypeError("Unknown encoding: "+C)}else typeof I=="number"&&(I&=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,I||(I=0);var S;if(typeof I=="number")for(S=e;S<n;++S)this[S]=I;else{var ee=s.isBuffer(I)?I:se(new s(I,C).toString()),fe=ee.length;for(S=0;S<n-e;++S)this[S+e]=ee[S%fe]}return this};var Ae=/[^+\/0-9A-Za-z-_]/g}).call(r,O(20))},function(Re,r){var O;O=function(){return this}();try{O=O||Function("return this")()||(0,eval)("this")}catch(p){typeof window=="object"&&(O=window)}Re.exports=O},function(Re,r,O){"use strict";function p(u){var w=u.length;if(w%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return u[w-2]==="="?2:u[w-1]==="="?1:0}function c(u){return 3*u.length/4-p(u)}function d(u){var w,A,E,x,k,g=u.length;x=p(u),k=new a(3*g/4-x),A=x>0?g-4:g;var y=0;for(w=0;w<A;w+=4)E=t[u.charCodeAt(w)]<<18|t[u.charCodeAt(w+1)]<<12|t[u.charCodeAt(w+2)]<<6|t[u.charCodeAt(w+3)],k[y++]=E>>16&255,k[y++]=E>>8&255,k[y++]=255&E;return x===2?(E=t[u.charCodeAt(w)]<<2|t[u.charCodeAt(w+1)]>>4,k[y++]=255&E):x===1&&(E=t[u.charCodeAt(w)]<<10|t[u.charCodeAt(w+1)]<<4|t[u.charCodeAt(w+2)]>>2,k[y++]=E>>8&255,k[y++]=255&E),k}function s(u){return o[u>>18&63]+o[u>>12&63]+o[u>>6&63]+o[63&u]}function i(u,w,A){for(var E,x=[],k=w;k<A;k+=3)E=(u[k]<<16)+(u[k+1]<<8)+u[k+2],x.push(s(E));return x.join("")}function h(u){for(var w,A=u.length,E=A%3,x="",k=[],g=0,y=A-E;g<y;g+=16383)k.push(i(u,g,g+16383>y?y:g+16383));return E===1?(w=u[A-1],x+=o[w>>2],x+=o[w<<4&63],x+="=="):E===2&&(w=(u[A-2]<<8)+u[A-1],x+=o[w>>10],x+=o[w>>4&63],x+=o[w<<2&63],x+="="),k.push(x),k.join("")}r.byteLength=c,r.toByteArray=d,r.fromByteArray=h;for(var o=[],t=[],a=typeof Uint8Array!="undefined"?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0,v=l.length;f<v;++f)o[f]=l[f],t[l.charCodeAt(f)]=f;t["-".charCodeAt(0)]=62,t["_".charCodeAt(0)]=63},function(Re,r){r.read=function(O,p,c,d,s){var i,h,o=8*s-d-1,t=(1<<o)-1,a=t>>1,l=-7,f=c?s-1:0,v=c?-1:1,u=O[p+f];for(f+=v,i=u&(1<<-l)-1,u>>=-l,l+=o;l>0;i=256*i+O[p+f],f+=v,l-=8);for(h=i&(1<<-l)-1,i>>=-l,l+=d;l>0;h=256*h+O[p+f],f+=v,l-=8);if(i===0)i=1-a;else{if(i===t)return h?NaN:1/0*(u?-1:1);h+=Math.pow(2,d),i-=a}return(u?-1:1)*h*Math.pow(2,i-d)},r.write=function(O,p,c,d,s,i){var h,o,t,a=8*i-s-1,l=(1<<a)-1,f=l>>1,v=s===23?Math.pow(2,-24)-Math.pow(2,-77):0,u=d?0:i-1,w=d?1:-1,A=p<0||p===0&&1/p<0?1:0;for(p=Math.abs(p),isNaN(p)||p===1/0?(o=isNaN(p)?1:0,h=l):(h=Math.floor(Math.log(p)/Math.LN2),p*(t=Math.pow(2,-h))<1&&(h--,t*=2),p+=h+f>=1?v/t:v*Math.pow(2,1-f),p*t>=2&&(h++,t/=2),h+f>=l?(o=0,h=l):h+f>=1?(o=(p*t-1)*Math.pow(2,s),h+=f):(o=p*Math.pow(2,f-1)*Math.pow(2,s),h=0));s>=8;O[c+u]=255&o,u+=w,o/=256,s-=8);for(h=h<<s|o,a+=s;a>0;O[c+u]=255&h,u+=w,h/=256,a-=8);O[c+u-w]|=128*A}},function(Re,r){var O={}.toString;Re.exports=Array.isArray||function(p){return O.call(p)=="[object Array]"}},function(Re,r,O){"use strict";function p(s,i){if(!(s instanceof i))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(r,"__esModule",{value:!0});var c=function(){function s(i,h){for(var o=0;o<h.length;o++){var t=h[o];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(i,t.key,t)}}return function(i,h,o){return h&&s(i.prototype,h),o&&s(i,o),i}}(),d=function(){function s(){p(this,s)}return c(s,null,[{key:"set",value:function(i,h){try{window.localStorage&&localStorage.setItem(i,h)}catch(o){window[i+"_localStorage"]=h}}},{key:"get",value:function(i){try{if(window.localStorage)return localStorage.getItem(i)}catch(h){return window[i+"_localStorage"]}return""}},{key:"remove",value:function(i){try{window.localStorage&&localStorage.removeItem(i)}catch(h){delete window[i+"_localStorage"]}}}]),s}();r.default=d},function(Re,r,O){"use strict";function p(s,i){if(!(s instanceof i))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(r,"__esModule",{value:!0});var c=function(){function s(i,h){for(var o=0;o<h.length;o++){var t=h[o];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(i,t.key,t)}}return function(i,h,o){return h&&s(i.prototype,h),o&&s(i,o),i}}(),d=function(){function s(){p(this,s)}return c(s,null,[{key:"get",value:function(i){for(var h=i+"",o=document.cookie.split(";"),t=0;t<o.length;t++){var a=o[t].trim();if(a.indexOf(h)==0)return unescape(a.substring(h.length+1,a.length))}return""}},{key:"set",value:function(i,h,o){var t=new Date;t.setTime(t.getTime()+24*o*60*60*1e3);var a="expires="+t.toGMTString();document.cookie=i+"="+escape(h)+"; "+a}}]),s}();r.default=d},function(Re,r,O){"use strict";function p(a){return a&&a.__esModule?a:{default:a}}function c(a,l){if(!(a instanceof l))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(r,"__esModule",{value:!0});var d=function(){function a(l,f){for(var v=0;v<f.length;v++){var u=f[v];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}return function(l,f,v){return f&&a(l.prototype,f),v&&a(l,v),l}}(),s=O(8),i=p(s),h=O(9),o=p(h),t=function(){function a(){c(this,a)}return d(a,null,[{key:"refreshUploadAuth",value:function(l,f,v){var u=(o.default.randomUUID(),o.default.randomUUID()),w={AccessKeyId:l.accessKeyId,SecurityToken:l.securityToken,Action:"RefreshUploadVideo",VideoId:l.videoId,Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:u,RequestId:l.requestId},A=o.default.makeUTF8sort(w,"=","&")+"&Signature="+o.default.aliyunEncodeURI(o.default.makeChangeSiga(w,l.accessKeySecret)),E="https://vod."+l.region+".aliyuncs.com/?"+A;i.default.get(E,function(x){var x=JSON.parse(x);f&&f(x)},function(x){if(v){var k=JSON.parse(x);v(k)}})}},{key:"getUploadAuth",value:function(l,f,v){var u=(o.default.randomUUID(),o.default.randomUUID()),w={AccessKeyId:l.accessKeyId,SecurityToken:l.securityToken,Action:"CreateUploadVideo",Title:l.title,FileName:l.fileName,Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:u,RequestId:l.requestId};l.fileSize&&(w.FileSize=l.fileSize),l.description&&(w.Description=l.description),l.cateId&&(w.CateId=l.cateId),l.tags&&(w.Tags=l.tags),l.templateGroupId&&(w.TemplateGroupId=l.templateGroupId),l.storageLocation&&(w.StorageLocation=l.storageLocation),l.coverUrl&&(w.CoverURL=l.coverUrl),l.transCodeMode&&(w.TransCodeMode=l.transCodeMode),l.userData&&(w.UserData=JSON.stringify(l.userData));var A=o.default.makeUTF8sort(w,"=","&")+"&Signature="+o.default.aliyunEncodeURI(o.default.makeChangeSiga(w,l.accessKeySecret)),E="https://vod."+l.region+".aliyuncs.com/?"+A;i.default.get(E,function(x){try{x=JSON.parse(x)}catch(k){if(v)return void v({Code:"GetUploadAuthFailed",Message:"\u83B7\u53D6uploadauth\u5931\u8D25"})}f&&f(x)},function(x){if(v){var k={Code:"GetUploadAuthFailed",Message:"\u83B7\u53D6uploadauth\u5931\u8D25"};try{k=JSON.parse(x)}catch(g){}v(k)}})}},{key:"getImageUploadAuth",value:function(l,f,v){var u=(o.default.randomUUID(),o.default.randomUUID()),w={AccessKeyId:l.accessKeyId,SecurityToken:l.securityToken,Action:"CreateUploadImage",ImageType:l.imageType?l.imageType:"default",Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:u,RequestId:l.requestId};l.title&&(w.Title=l.title),l.imageExt&&(w.ImageExt=l.imageExt),l.tags&&(w.Tags=l.tags),l.storageLocation&&(w.StorageLocation=l.storageLocation);var A=o.default.makeUTF8sort(w,"=","&")+"&Signature="+o.default.aliyunEncodeURI(o.default.makeChangeSiga(w,l.accessKeySecret)),E="https://vod."+l.region+".aliyuncs.com/?"+A;i.default.get(E,function(x){x=JSON.parse(x),f&&f(x)},function(x){if(v){var k=JSON.parse(x);v(k)}})}}]),a}();r.default=t},function(Re,r,O){!function(p,c,d){Re.exports=r=c(O(0),O(28),O(29))}(0,function(p){return p.HmacSHA1})},function(Re,r,O){!function(p,c){Re.exports=r=c(O(0))}(0,function(p){return function(){var c=p,d=c.lib,s=d.WordArray,i=d.Hasher,h=c.algo,o=[],t=h.SHA1=i.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(a,l){for(var f=this._hash.words,v=f[0],u=f[1],w=f[2],A=f[3],E=f[4],x=0;x<80;x++){if(x<16)o[x]=0|a[l+x];else{var k=o[x-3]^o[x-8]^o[x-14]^o[x-16];o[x]=k<<1|k>>>31}var g=(v<<5|v>>>27)+E+o[x];g+=x<20?1518500249+(u&w|~u&A):x<40?1859775393+(u^w^A):x<60?(u&w|u&A|w&A)-1894007588:(u^w^A)-899497514,E=A,A=w,w=u<<30|u>>>2,u=v,v=g}f[0]=f[0]+v|0,f[1]=f[1]+u|0,f[2]=f[2]+w|0,f[3]=f[3]+A|0,f[4]=f[4]+E|0},_doFinalize:function(){var a=this._data,l=a.words,f=8*this._nDataBytes,v=8*a.sigBytes;return l[v>>>5]|=128<<24-v%32,l[14+(v+64>>>9<<4)]=Math.floor(f/4294967296),l[15+(v+64>>>9<<4)]=f,a.sigBytes=4*l.length,this._process(),this._hash},clone:function(){var a=i.clone.call(this);return a._hash=this._hash.clone(),a}});c.SHA1=i._createHelper(t),c.HmacSHA1=i._createHmacHelper(t)}(),p.SHA1})},function(Re,r,O){!function(p,c){Re.exports=r=c(O(0))}(0,function(p){!function(){var c=p,d=c.lib,s=d.Base,i=c.enc,h=i.Utf8,o=c.algo;o.HMAC=s.extend({init:function(t,a){t=this._hasher=new t.init,typeof a=="string"&&(a=h.parse(a));var l=t.blockSize,f=4*l;a.sigBytes>f&&(a=t.finalize(a)),a.clamp();for(var v=this._oKey=a.clone(),u=this._iKey=a.clone(),w=v.words,A=u.words,E=0;E<l;E++)w[E]^=1549556828,A[E]^=909522486;v.sigBytes=u.sigBytes=f,this.reset()},reset:function(){var t=this._hasher;t.reset(),t.update(this._iKey)},update:function(t){return this._hasher.update(t),this},finalize:function(t){var a=this._hasher,l=a.finalize(t);return a.reset(),a.finalize(this._oKey.clone().concat(l))}})}()})},function(Re,r,O){!function(p,c){Re.exports=r=c(O(0))}(0,function(p){return function(){function c(o,t,a){for(var l=[],f=0,v=0;v<t;v++)if(v%4){var u=a[o.charCodeAt(v-1)]<<v%4*2,w=a[o.charCodeAt(v)]>>>6-v%4*2;l[f>>>2]|=(u|w)<<24-f%4*8,f++}return i.create(l,f)}var d=p,s=d.lib,i=s.WordArray,h=d.enc;h.Base64={stringify:function(o){var t=o.words,a=o.sigBytes,l=this._map;o.clamp();for(var f=[],v=0;v<a;v+=3)for(var u=t[v>>>2]>>>24-v%4*8&255,w=t[v+1>>>2]>>>24-(v+1)%4*8&255,A=t[v+2>>>2]>>>24-(v+2)%4*8&255,E=u<<16|w<<8|A,x=0;x<4&&v+.75*x<a;x++)f.push(l.charAt(E>>>6*(3-x)&63));var k=l.charAt(64);if(k)for(;f.length%4;)f.push(k);return f.join("")},parse:function(o){var t=o.length,a=this._map,l=this._reverseMap;if(!l){l=this._reverseMap=[];for(var f=0;f<a.length;f++)l[a.charCodeAt(f)]=f}var v=a.charAt(64);if(v){var u=o.indexOf(v);u!==-1&&(t=u)}return c(o,t,l)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),p.enc.Base64})},function(Re,r,O){"use strict";function p(y){return y&&y.__esModule?y:{default:y}}function c(y,j){if(!(y instanceof j))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(r,"__esModule",{value:!0});var d=function(){function y(j,L){for(var _=0;_<L.length;_++){var z=L[_];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(j,z.key,z)}}return function(j,L,_){return L&&y(j.prototype,L),_&&y(j,_),j}}(),s=O(8),i=p(s),h=O(7),o=p(h),t=O(4),a=p(t),l=O(6),f=p(l),v=O(1),u=p(v),w=O(9),A=p(w),E=O(2),x=O(11),k=O(10),g=function(){function y(){c(this,y)}return d(y,null,[{key:"getAuthInfo",value:function(j,L,_){var z=j+"|f#Ylm&^1TppeRhLg|"+_;return L&&(z=j+"|"+L+"|f#Ylm&^1TppeRhLg|"+_),E(k.parse(z)).toString(x)}},{key:"upload",value:function(j,L,_){var z=u.default.ISODateString(new Date),M=Math.floor(new Date().valueOf()/1e3),P=a.default.getClientId();P=a.default.setClientId(P);var F=y.getAuthInfo(j.userId,P,M),$=A.default.randomUUID(),Z={Source:"WebSDK",BusinessType:"UploadVideo",Action:"ReportUploadProgress",TerminalType:"H5",DeviceModel:o.default.browser.name+(o.default.browser.version||""),AppVersion:f.default.version,AuthTimestamp:M,Timestamp:z,AuthInfo:F,FileName:j.file.name,FileSize:j.file.size,FileCreateTime:j.file.lastModified,FileHash:j.fileHash,UploadId:j.checkpoint.checkpoint.uploadId,PartSize:j.checkpoint.checkpoint.partSize,DonePartsCount:j.checkpoint.checkpoint.doneParts.length,UploadPoint:JSON.stringify(j.checkpoint),UploadRatio:j.checkpoint.loaded,UserId:j.userId,VideoId:j.videoId,Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:$};P&&(Z.ClientId=P);var Q=A.default.makeUTF8sort(Z,"=","&")+"&Signature="+A.default.aliyunEncodeURI(A.default.makeChangeSiga(Z,j.accessKeySecret)),re="https://vod."+j.region+".aliyuncs.com/?"+Q;i.default.get(re,function(N){L&&L()},function(N){N&&(_(N),console.log(N))})}},{key:"get",value:function(j,L,_){var z=u.default.ISODateString(new Date),M=Math.floor(new Date().valueOf()/1e3),P=a.default.getClientId(),F=y.getAuthInfo(j.userId,P,M),$=A.default.randomUUID(),Z={Source:"WebSDK",BusinessType:"UploadVideo",Action:"GetUploadProgress",TerminalType:"H5",DeviceModel:o.default.browser.name+(o.default.browser.version||""),AppVersion:f.default.version,AuthTimestamp:M,Timestamp:z,AuthInfo:F,UserId:j.userId,UploadInfoList:JSON.stringify(j.uploadInfoList),Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:$};P&&(Z.ClientId=P);var Q=A.default.makeUTF8sort(Z,"=","&")+"&Signature="+A.default.aliyunEncodeURI(A.default.makeChangeSiga(Z,j.accessKeySecret)),re="https://vod."+j.region+".aliyuncs.com/?"+Q;i.default.get(re,function(N){var ue={},G=P;N=N?JSON.parse(N):{},N.UploadProgress&&N.UploadProgress.UploadProgressList&&N.UploadProgress.UploadProgressList.length>0&&(ue=N.UploadProgress.UploadProgressList[0],G=ue.ClientId),a.default.setClientId(G),L&&L(ue)},function(N){N&&(_(N),console.log(N))})}}]),y}();r.default=g},function(Re,r,O){"use strict";function p(h,o){if(!(h instanceof o))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(r,"__esModule",{value:!0});var c=function(){function h(o,t){for(var a=0;a<t.length;a++){var l=t[a];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(o,l.key,l)}}return function(o,t,a){return t&&h(o.prototype,t),a&&h(o,a),o}}(),d=O(2),s=O(33),i=(O(11),function(){function h(){p(this,h)}return c(h,null,[{key:"getMd5",value:function(o,t,a){var l=new FileReader;l.onload=function(u){try{if(u&&u.target){var w=d(s.parse(u.target.result)),A=w.toString();t(A)}}catch(E){console.log(E)}},l.onerror=function(u){console.log(u),errorCallback(u)};var f=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice,v=f.call(o,0,1024);l.readAsBinaryString(v)}}]),h}());r.default=i},function(Re,r,O){!function(p,c){Re.exports=r=c(O(0))}(0,function(p){return p.enc.Latin1})}])}).call(this,de("IyRk"))},"rAM+":function(rt,Ze,de){"use strict";de.d(Ze,"a",function(){return De});var ke=de("Qw5x");function De(Re,r){var O;if(typeof Symbol=="undefined"||Re[Symbol.iterator]==null){if(Array.isArray(Re)||(O=Object(ke.a)(Re))||r&&Re&&typeof Re.length=="number"){O&&(Re=O);var p=0,c=function(){};return{s:c,n:function(){return p>=Re.length?{done:!0}:{done:!1,value:Re[p++]}},e:function(o){throw o},f:c}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var d=!0,s=!1,i;return{s:function(){O=Re[Symbol.iterator]()},n:function(){var o=O.next();return d=o.done,o},e:function(o){s=!0,i=o},f:function(){try{!d&&O.return!=null&&O.return()}finally{if(s)throw i}}}}},rUJ1:function(rt,Ze){const de=/[&<>"']/,ke=/[&<>"']/g,De=/[<>"']|&(?!#?\w+;)/,Re=/[<>"']|&(?!#?\w+;)/g,r={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},O=y=>r[y];function p(y,j){if(j){if(de.test(y))return y.replace(ke,O)}else if(De.test(y))return y.replace(Re,O);return y}const c=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function d(y){return y.replace(c,(j,L)=>(L=L.toLowerCase(),L==="colon"?":":L.charAt(0)==="#"?L.charAt(1)==="x"?String.fromCharCode(parseInt(L.substring(2),16)):String.fromCharCode(+L.substring(1)):""))}const s=/(^|[^\[])\^/g;function i(y,j){y=y.source||y,j=j||"";const L={replace:(_,z)=>(z=z.source||z,z=z.replace(s,"$1"),y=y.replace(_,z),L),getRegex:()=>new RegExp(y,j)};return L}const h=/[^\w:]/g,o=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function t(y,j,L){if(y){let _;try{_=decodeURIComponent(d(L)).replace(h,"").toLowerCase()}catch(z){return null}if(_.indexOf("javascript:")===0||_.indexOf("vbscript:")===0||_.indexOf("data:")===0)return null}j&&!o.test(L)&&(L=u(j,L));try{L=encodeURI(L).replace(/%25/g,"%")}catch(_){return null}return L}const a={},l=/^[^:]+:\/*[^/]*$/,f=/^([^:]+:)[\s\S]*$/,v=/^([^:]+:\/*[^/]*)[\s\S]*$/;function u(y,j){a[" "+y]||(l.test(y)?a[" "+y]=y+"/":a[" "+y]=x(y,"/",!0)),y=a[" "+y];const L=y.indexOf(":")===-1;return j.substring(0,2)==="//"?L?j:y.replace(f,"$1")+j:j.charAt(0)==="/"?L?j:y.replace(v,"$1")+j:y+j}const w={exec:function(){}};function A(y){let j=1,L,_;for(;j<arguments.length;j++){L=arguments[j];for(_ in L)Object.prototype.hasOwnProperty.call(L,_)&&(y[_]=L[_])}return y}function E(y,j){const L=y.replace(/\|/g,(M,P,F)=>{let $=!1,Z=P;for(;--Z>=0&&F[Z]==="\\";)$=!$;return $?"|":" |"}),_=L.split(/ \|/);let z=0;if(_.length>j)_.splice(j);else for(;_.length<j;)_.push("");for(;z<_.length;z++)_[z]=_[z].trim().replace(/\\\|/g,"|");return _}function x(y,j,L){const _=y.length;if(_===0)return"";let z=0;for(;z<_;){const M=y.charAt(_-z-1);if(M===j&&!L)z++;else if(M!==j&&L)z++;else break}return y.substr(0,_-z)}function k(y,j){if(y.indexOf(j[1])===-1)return-1;const L=y.length;let _=0,z=0;for(;z<L;z++)if(y[z]==="\\")z++;else if(y[z]===j[0])_++;else if(y[z]===j[1]&&(_--,_<0))return z;return-1}function g(y){y&&y.sanitize&&!y.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}rt.exports={escape:p,unescape:d,edit:i,cleanUrl:t,resolveUrl:u,noopTest:w,merge:A,splitCells:E,rtrim:x,findClosingBracket:k,checkSanitizeDeprecation:g}},sBCT:function(rt,Ze,de){"use strict";var ke=de("DZo9"),De=de("8z0m"),Re=de("+L6B"),r=de("2/Rp"),O=de("MXD1"),p=de("CFYs"),c=de("9og8"),d=de("2qtc"),s=de("kLXV"),i=de("miYZ"),h=de("tsqr"),o=de("y8nQ"),t=de("Vl3Y"),a=de("tJVT"),l=de("k1fw"),f=de("oBTY"),v=de("5NDa"),u=de("5rEg"),w=de("WmNS"),A=de.n(w),E=de("q1tI"),x=de.n(E),k=de("Ty5D"),g=de("55Ip"),y=de("9kvl"),j=de("kwm0"),L=de.n(j),_=de("Aky1"),z=de("h/US"),M=de("m3rI"),P=u.a.TextArea,F=1024,$=function(re,N){var ue,G=N.payload||{},V=G.uploadInfo,T=V===void 0?{}:V;switch(N.type){case"addVideo":return{videoList:[].concat(Object(f.a)(re.videoList),[{name:T.file.name,size:T.file.size,type:T.file.type,fileHash:T.fileHash,state:T.state,videoId:T.videoId,loaded:T.loaded||0,title:""}])};case"removeVideo":return{videoList:re.videoList.filter(function(U){return U.name!==N.payload.name})};case"removeAll":return{videoList:[]};case"updateProgress":return{videoList:re.videoList.map(function(U){return U.name===N.payload.uploadInfo.file.name?Object(l.a)(Object(l.a)({},U),{loaded:N.payload.progressPercent,videoId:T.videoId,fileHash:T.fileHash}):U})};case"updateTitle":return{videoList:(ue=re.videoList)===null||ue===void 0?void 0:ue.map(function(U){return U.name===N.payload.item.name?Object(l.a)(Object(l.a)({},U),{title:N.payload.title}):U})};default:return{videoList:[]}}},Z=function(re){var N,ue=re.user,G=re.globalSetting,V=re.loading,T=re.dispatch,U=re.visible,H=re.editData,K=re.onCancel,be=K===void 0?function(){}:K,ae=re.onOk,_e=ae===void 0?function(){}:ae,se=Object(k.i)(),ve=t.a.useForm(),te=Object(a.a)(ve,1),J=te[0],q=Object(E.useReducer)($,{videoList:[]}),he=Object(a.a)(q,2),Y=he[0],W=he[1],me=Object(E.useState)(!1),ge=Object(a.a)(me,2),Ae=ge[0],I=ge[1],e=Object(E.useRef)(),n=Object(E.useState)(),C=Object(a.a)(n,2),b=C[0],S=C[1],ee=Object(E.useState)(!1),fe=Object(a.a)(ee,2),Me=fe[0],Oe=fe[1],Le=Object(E.useState)(!1),Be=Object(a.a)(Le,2),Ke=Be[0],Pe=Be[1],Te=Object(E.useState)([]),ye=Object(a.a)(Te,2),xe=ye[0],Ee=ye[1],ie=Object(E.useState)([]),ce=Object(a.a)(ie,2),pe=ce[0],le=ce[1];Object(E.useEffect)(function(){if(!H)return;Oe(H.is_link),S(H.link),!H.is_link&&W({type:"addVideo",payload:{uploadInfo:{file:{name:H.file_name},videoId:H.video_id,loaded:100}}}),J.setFieldsValue({name:H.name,description:H.description,attachment_id:H==null?void 0:H.attachment_id})},[H]);var Ce=function(){var Ge=document.getElementById("fileUpload");Ge.value=""},Ie=function(Ge){var at;Oe(!1);var ut=Ge.target.files[0];if(!ut){Ce();return}var nt=ut.name.toLowerCase();if(nt&&nt.indexOf(".avi")==-1&&nt.indexOf(".flv")==-1&&nt.indexOf(".f4v")==-1&&nt.indexOf(".m4v")==-1&&nt.indexOf(".mov")==-1&&nt.indexOf(".mp4")==-1&&nt.indexOf(".rmvb")==-1&&nt.indexOf(".swf")==-1&&nt.indexOf(".webm")==-1&&nt.indexOf(".wmv")==-1){h.b.info("\u4E0D\u652F\u6301\u7684\u89C6\u9891\u683C\u5F0F"),Ce();return}if(ut.size>F*1024*1024){h.b.info("\u89C6\u9891\u5927\u5C0F\u8D85\u8FC71G"),Ce();return}if((at=Y.videoList)!==null&&at!==void 0&&at.find(function(ft){return ft.name===ut.name})){h.b.info("\u4F60\u4E0D\u80FD\u4E0A\u4F20\u540C\u4E00\u4E2A\u89C6\u9891\u6587\u4EF6\u540D\u79F0\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\u3002"),Ce();return}lt(ut)},qe=function(Ge,at){s.a.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:x.a.createElement("div",{className:"tc"},"\u60A8\u786E\u8BA4\u8981",at?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20","\u8BE5\u89C6\u9891\u5417\uFF1F"),onOk:function(){Ce(),W({type:"removeVideo",payload:{name:Ge}})}})},lt=function(Ge){var at,ut='{"Vod":{}}';if(I(!0),e.current){e.current.addFile(Ge,null,null,null,ut);return}Object(_.a)((at=ue.userInfo)===null||at===void 0?void 0:at.login,{create:!e,addFileSuccess:function(ft){W({type:"addVideo",payload:{uploadInfo:ft}})},onUploadProgress:function(ft,yt,st){var gt=Math.ceil(st*100);W({type:"updateProgress",payload:{uploadInfo:ft,progressPercent:gt}}),Ce()},onUploadFailed:function(ft){h.b.info("\u89C6\u9891\u4E91\u670D\u52A1\u51FA\u73B0\u5F02\u5E38\uFF0C\u8BF7\u91CD\u65B0\u4E0A\u4F20\u3002")},onUploadEnd:function(ft){I(!1)},onUploadSucceed:function(ft){I(!1)},onUploadError:function(ft){I(!1)},gotUploader:function(ft){ft.addFile(Ge,null,null,null,ut),e.current=ft}})},mt=function(){var Xe=Object(c.a)(A.a.mark(function Ge(){var at,ut,nt,ft;return A.a.wrap(function(st){for(;;)switch(st.prev=st.next){case 0:return st.next=2,J.validateFields();case 2:if(!(!Me&&!((at=Y.videoList)!==null&&at!==void 0&&at.length)||Me&&!b)){st.next=5;break}return h.b.info("\u8BF7\u5148\u4E0A\u4F20\u89C6\u9891\u6216\u8005\u6DFB\u52A0\u5916\u94FE"),st.abrupt("return");case 5:Pe(!0),nt=Me?{link:b}:{video_id:(ut=Y.videoList)===null||ut===void 0?void 0:ut[0].videoId};debugger;return st.next=10,_e(Object(l.a)(Object(l.a)({},nt),{name:J.getFieldValue("name"),attachment_id:J.getFieldValue("attachment_id"),description:J.getFieldValue("description")}));case 10:ft=st.sent,Pe(!1),ft.id&&dt();case 13:case"end":return st.stop()}},Ge)}));return function(){return Xe.apply(this,arguments)}}(),dt=function(){J.resetFields(),W({type:"removeAll"}),S(null),Oe(null)},ct=function(){be(),dt()},Ye={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:M.a.API_SERVER+"/api/attachments.json",withCredentials:!0,onRemove:function(Ge){le([])},onChange:function(Ge){var at=Ge.file.status;if(at!=="uploading",at==="removed"&&Ee(Ge.fileList),at==="done"){var ut,nt,ft;Ee(Ge==null||((ut=Ge.fileList)===null||ut===void 0)?void 0:ut.slice(-1)),W({type:"addVideo",payload:{uploadInfo:{videoId:Ge==null||((nt=Ge.fileList[0])===null||nt===void 0||((ft=nt.response)===null||ft===void 0))?void 0:ft.id,loaded:100,file:Object(l.a)({},Ge==null?void 0:Ge.fileList[0])}}}),Oe(!1),h.b.success("".concat(Ge.file.name," \u6587\u4EF6\u4E0A\u4F20\u6210\u529F"))}else at==="error"&&h.b.error("".concat(Ge.file.name," \u6587\u4EF6\u4E0A\u4F20\u5931\u8D25"))},beforeUpload:function(Ge){var at=Ge.size/1024/1024<1e3;return at||h.b.info("\u6587\u4EF6\u5927\u5C0F\u5FC5\u987B\u5C0F\u4E8E150MB"),at}},He=function(){var Ge,at,ut,nt,ft,yt,st,gt,xt,_t,wt,oe;return x.a.createElement(x.a.Fragment,null,!Me&&!!((Ge=Y.videoList)!==null&&Ge!==void 0&&Ge.length)&&x.a.createElement("div",{className:L.a.fileProgress},((at=Y.videoList)===null||at===void 0||((ut=at[0])===null||ut===void 0)?void 0:ut.loaded)==100?x.a.createElement("div",{className:"".concat(L.a.videoName," font14")},(nt=Y.videoList)===null||nt===void 0||((ft=nt[0])===null||ft===void 0)?void 0:ft.name):x.a.createElement(p.a,{style:{width:"80%"},percent:(yt=Y.videoList)===null||yt===void 0||((st=yt[0])===null||st===void 0)?void 0:st.loaded,status:((gt=Y.videoList)===null||gt===void 0||((xt=gt[0])===null||xt===void 0)?void 0:xt.loaded)==100?"normal":"active"}),x.a.createElement("div",{className:L.a.fileCancel,onClick:function(){var m,R,D,B;return qe((m=Y.videoList)===null||m===void 0||((R=m[0])===null||R===void 0)?void 0:R.name,((D=Y.videoList)===null||D===void 0||((B=D[0])===null||B===void 0)?void 0:B.loaded)==100)}},((_t=Y.videoList)===null||_t===void 0||((wt=_t[0])===null||wt===void 0)?void 0:wt.loaded)===100?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20")),!((oe=Y.videoList)!==null&&oe!==void 0&&oe.length)&&x.a.createElement("div",{className:L.a.uploadWrap},x.a.createElement("label",{htmlFor:"fileUpload",style:{marginRight:"30px"}},x.a.createElement(De.a,Ye,x.a.createElement(r.a,{className:L.a.upload,disabled:(pe==null?void 0:pe.length)>0},x.a.createElement("i",{className:"iconfont icon-shangchuanshipin1 mr5"}),"\u4E0A\u4F20\u89C6\u9891"))),x.a.createElement("label",{className:"".concat(L.a.upload," ").concat(L.a.uploadLink),onClick:function(){return Oe(!0)}},x.a.createElement("i",{className:"iconfont icon-lianjie1 mr5"}),"\u6DFB\u52A0\u5916\u94FE")),Me&&x.a.createElement(u.a,{className:"mt5",placeholder:"\u8BF7\u8F93\u5165\u89C6\u9891\u94FE\u63A5",value:b,onChange:function(m){return S(m.target.value)}}))};return x.a.createElement(s.a,{centered:!0,maskClosable:!1,title:H?"\u7F16\u8F91\u89C6\u9891\u9879\u76EE":"\u65B0\u5EFA\u89C6\u9891\u9879\u76EE",width:740,className:L.a.modal,visible:U,confirmLoading:Ke,onOk:mt,onCancel:ct},x.a.createElement(t.a,{form:J},x.a.createElement("input",{type:"file",id:"fileUpload",style:{display:"none"},onChange:Ie,accept:".mkv, .flv, .f4v, .rmvb, .swf, video/mp4,video/x-m4v,video/flv,video/f4v,video/rmvb,video/swf,video/*"}),x.a.createElement(t.a.Item,{label:"\u9879\u76EE\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\u79F0"}]},x.a.createElement(u.a,{maxLength:40,placeholder:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC740\u5B57\u7684\u9879\u76EE\u540D\u79F0"})),x.a.createElement(t.a.Item,{label:"\u9879\u76EE\u5185\u5BB9",name:"content",className:L.a.contentItem},He()),x.a.createElement(t.a.Item,{name:"attachment_id",label:"\u4E0A\u4F20\u5C01\u9762\u56FE:"},x.a.createElement(z.a,{getFileProgress:function(Ge){if(Ge.file.status==="uploading"){Pe(!0);return}Ge.file.status==="done"&&Pe(!1)}})),x.a.createElement(t.a.Item,{label:"\u9879\u76EE\u7B80\u4ECB",name:"description",className:"ml8"},x.a.createElement(P,{rows:5,maxLength:800,placeholder:"\u8BF7\u8F93\u5165\u672C\u89C6\u9891\u7B80\u4ECB\uFF0C\u6700\u591A\u4E0D\u8D85\u8FC7800\u5B57"})),x.a.createElement("div",{className:"c-grey-999"},x.a.createElement("div",null,"\u6CE8\u610F\uFF1A"),x.a.createElement("div",null,"1\u3001\u4E0A\u4F20\u89C6\u9891\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F",x.a.createElement(g.a,{to:"/users/".concat((N=ue.userInfo)===null||N===void 0?void 0:N.login,"/videos/protocol"),target:"_blank",className:L.a.colorBlue},"\u4E0A\u4F20\u5185\u5BB9\u534F\u8BAE"),"\uFF0C\u4E0D\u5F97\u4E0A\u4F20\u672A\u7ECF\u4ED6\u4EBA\u6388\u6743\u7684\u4F5C\u54C1\uFF1B"),x.a.createElement("div",null,"2\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC71G\uFF1B"),x.a.createElement("div",null,"3\u3001\u652F\u6301\u6587\u4EF6\u683C\u5F0F\uFF1Aavi\u3001flv\u3001f4v\u3001m4v\u3001mov\u3001mp4\u3001rmvb\u3001swf\u3001webm\u3001wmv\uFF1B"),x.a.createElement("div",null,"4\u3001\u5982\u679C\u89C6\u9891\u6765\u81EA\u4E8E\u5916\u90E8\u94FE\u63A5\uFF0C\u672C\u7F51\u7AD9\u4E0D\u63D0\u4F9B\u64AD\u653E\u9875\u9762\uFF0C\u65E0\u6CD5\u63D0\u4F9B\u7EDF\u8BA1\u6570\u636E\u3002"))))};Ze.a=Object(y.a)(function(Q){var re=Q.user,N=Q.loading,ue=Q.globalSetting;return{user:re,globalSetting:ue,loading:N}})(Z)},sWEp:function(rt,Ze,de){rt.exports={wrap:"wrap___3nJXB",title:"title___3AYM5",radioWrap:"radioWrap___dbSML",radio:"radio___3h-_z",colorFF0000:"colorFF0000___2d_ZE",pagination:"pagination___3WP6s"}},vHTk:function(rt,Ze,de){rt.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},vZDz:function(rt,Ze,de){rt.exports={contentWrap:"contentWrap___3Fc2r",footer:"footer___4nxVN",radioGroup:"radioGroup___359yE",wrap:"wrap___1OqR3",introName:"introName___3saG-",rating:"rating___3X95K",modalRating:"modalRating___A4qeN"}},w8Aa:function(rt,Ze,de){rt.exports={img:"img___3e4yQ"}}}]);