(window.webpackJsonp=window.webpackJsonp||[]).push([[188,3,5,7,8,19],{"++UQ":function($e,We,z){},"+NIl":function($e,We,z){(function(ae){ae(z("VrN/"))})(function(ae){"use strict";ae.defineMode("stex",function(Z,U){"use strict";function w(c,s){c.cmdState.push(s)}function P(c){return c.cmdState.length>0?c.cmdState[c.cmdState.length-1]:null}function S(c){var s=c.cmdState.pop();s&&s.closeBracket()}function C(c){for(var s=c.cmdState,f=s.length-1;f>=0;f--){var i=s[f];if(i.name=="DEFAULT")continue;return i}return{styleIdentifier:function(){return null}}}function T(c,s,f){return function(){this.name=c,this.bracketNo=0,this.style=s,this.styles=f,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var l={};l.importmodule=T("importmodule","tag",["string","builtin"]),l.documentclass=T("documentclass","tag",["","atom"]),l.usepackage=T("usepackage","tag",["atom"]),l.begin=T("begin","tag",["atom"]),l.end=T("end","tag",["atom"]),l.label=T("label","tag",["atom"]),l.ref=T("ref","tag",["atom"]),l.eqref=T("eqref","tag",["atom"]),l.cite=T("cite","tag",["atom"]),l.bibitem=T("bibitem","tag",["atom"]),l.Bibitem=T("Bibitem","tag",["atom"]),l.RBibitem=T("RBibitem","tag",["atom"]),l.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function p(c,s){c.f=s}function h(c,s){var f;if(c.match(/^\\[a-zA-Z@]+/)){var i=c.current().slice(1);return f=l.hasOwnProperty(i)?l[i]:l.DEFAULT,f=new f,w(s,f),p(s,o),f.style}if(c.match(/^\\[$&%#{}_]/))return"tag";if(c.match(/^\\[,;!\/\\]/))return"tag";if(c.match("\\["))return p(s,function(t,u){return d(t,u,"\\]")}),"keyword";if(c.match("\\("))return p(s,function(t,u){return d(t,u,"\\)")}),"keyword";if(c.match("$$"))return p(s,function(t,u){return d(t,u,"$$")}),"keyword";if(c.match("$"))return p(s,function(t,u){return d(t,u,"$")}),"keyword";var n=c.next();if(n=="%")return c.skipToEnd(),"comment";if(n=="}"||n=="]"){if(f=P(s),f)f.closeBracket(n),p(s,o);else return"error";return"bracket"}else return n=="{"||n=="["?(f=l.DEFAULT,f=new f,w(s,f),"bracket"):/\d/.test(n)?(c.eatWhile(/[\w.%]/),"atom"):(c.eatWhile(/[\w\-_]/),f=C(s),f.name=="begin"&&(f.argument=c.current()),f.styleIdentifier())}function d(c,s,f){if(c.eatSpace())return null;if(f&&c.match(f))return p(s,h),"keyword";if(c.match(/^\\[a-zA-Z@]+/))return"tag";if(c.match(/^[a-zA-Z]+/))return"variable-2";if(c.match(/^\\[$&%#{}_]/))return"tag";if(c.match(/^\\[,;!\/]/))return"tag";if(c.match(/^[\^_&]/))return"tag";if(c.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(c.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var i=c.next();return i=="{"||i=="}"||i=="["||i=="]"||i=="("||i==")"?"bracket":i=="%"?(c.skipToEnd(),"comment"):"error"}function o(c,s){var f=c.peek(),i;return f=="{"||f=="["?(i=P(s),i.openBracket(f),c.eat(f),p(s,h),"bracket"):/[ \t\r]/.test(f)?(c.eat(f),null):(p(s,h),S(s),h(c,s))}return{startState:function(){var c=U.inMathMode?function(s,f){return d(s,f)}:h;return{cmdState:[],f:c}},copyState:function(c){return{cmdState:c.cmdState.slice(),f:c.f}},token:function(c,s){return s.f(c,s)},blankLine:function(c){c.f=h,c.cmdState.length=0},lineComment:"%"}}),ae.defineMIME("text/x-stex","stex"),ae.defineMIME("text/x-latex","stex")})},"+QRC":function($e,We,z){"use strict";var ae=z("E9nw"),Z={"text/plain":"Text","text/html":"Url",default:"Text"},U="Copy to clipboard: #{key}, Enter";function w(S){var C=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return S.replace(/#{\s*key\s*}/g,C)}function P(S,C){var T,l,p,h,d,o,c=!1;C||(C={}),T=C.debug||!1;try{p=ae(),h=document.createRange(),d=document.getSelection(),o=document.createElement("span"),o.textContent=S,o.style.all="unset",o.style.position="fixed",o.style.top=0,o.style.clip="rect(0, 0, 0, 0)",o.style.whiteSpace="pre",o.style.webkitUserSelect="text",o.style.MozUserSelect="text",o.style.msUserSelect="text",o.style.userSelect="text",o.addEventListener("copy",function(f){if(f.stopPropagation(),C.format)if(f.preventDefault(),typeof f.clipboardData=="undefined"){T&&console.warn("unable to use e.clipboardData"),T&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=Z[C.format]||Z.default;window.clipboardData.setData(i,S)}else f.clipboardData.clearData(),f.clipboardData.setData(C.format,S);C.onCopy&&(f.preventDefault(),C.onCopy(f.clipboardData))}),document.body.appendChild(o),h.selectNodeContents(o),d.addRange(h);var s=document.execCommand("copy");if(!s)throw new Error("copy command was unsuccessful");c=!0}catch(f){T&&console.error("unable to copy using execCommand: ",f),T&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(C.format||"text",S),C.onCopy&&C.onCopy(window.clipboardData),c=!0}catch(i){T&&console.error("unable to copy using clipboardData: ",i),T&&console.error("falling back to prompt"),l=w("message"in C?C.message:U),window.prompt(l,S)}}finally{d&&(typeof d.removeRange=="function"?d.removeRange(h):d.removeAllRanges()),o&&document.body.removeChild(o),p()}return c}$e.exports=P},"07cG":function($e,We,z){$e.exports={ldsRing:"ldsRing___2F8W7",idsRingWrapper:"idsRingWrapper___fC2cF",ldsring:"ldsring___3A88y"}},"0r65":function($e,We){var z=arguments[3],ae=arguments[4],Z=arguments[5],U=JSON.stringify;$e.exports=function(w,P){for(var S,C=Object.keys(Z),T=0,l=C.length;T")):null:x.match("--")?A(s("comment","-->")):x.match("DOCTYPE",!0,!0)?(x.eatWhile(/[\w\._\-]/),A(f(1))):null:x.eat("?")?(x.eatWhile(/[\w\._\-]/),O.tokenize=s("meta","?>"),"meta"):(p=x.eat("/")?"closeTag":"openTag",O.tokenize=o,"tag bracket");if(D=="&"){var I;return x.eat("#")?x.eat("x")?I=x.eatWhile(/[a-fA-F\d]/)&&x.eat(";"):I=x.eatWhile(/[\d]/)&&x.eat(";"):I=x.eatWhile(/[\w\.\-:]/)&&x.eat(";"),I?"atom":"error"}else return x.eatWhile(/[^&<]/),null}d.isInText=!0;function o(x,O){var A=x.next();if(A==">"||A=="/"&&x.eat(">"))return O.tokenize=d,p=A==">"?"endTag":"selfcloseTag","tag bracket";if(A=="=")return p="equals",null;if(A=="<"){O.tokenize=d,O.state=u,O.tagName=O.tagStart=null;var D=O.tokenize(x,O);return D?D+" tag error":"tag error"}else return/[\'\"]/.test(A)?(O.tokenize=c(A),O.stringStartCol=x.column(),O.tokenize(x,O)):(x.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function c(x){var O=function(A,D){for(;!A.eol();)if(A.next()==x){D.tokenize=o;break}return"string"};return O.isInAttribute=!0,O}function s(x,O){return function(A,D){for(;!A.eol();){if(A.match(O)){D.tokenize=d;break}A.next()}return x}}function f(x){return function(O,A){for(var D;(D=O.next())!=null;){if(D=="<")return A.tokenize=f(x+1),A.tokenize(O,A);if(D==">")if(x==1){A.tokenize=d;break}else return A.tokenize=f(x-1),A.tokenize(O,A)}return"meta"}}function i(x,O,A){this.prev=x.context,this.tagName=O,this.indent=x.indented,this.startOfLine=A,(C.doNotIndent.hasOwnProperty(O)||x.context&&x.context.noIndent)&&(this.noIndent=!0)}function n(x){x.context&&(x.context=x.context.prev)}function t(x,O){for(var A;;){if(!x.context)return;if(A=x.context.tagName,!C.contextGrabbers.hasOwnProperty(A)||!C.contextGrabbers[A].hasOwnProperty(O))return;n(x)}}function u(x,O,A){return x=="openTag"?(A.tagStart=O.column(),y):x=="closeTag"?g:u}function y(x,O,A){return x=="word"?(A.tagName=O.current(),h="tag",v):C.allowMissingTagName&&x=="endTag"?(h="tag bracket",v(x,O,A)):(h="error",y)}function g(x,O,A){if(x=="word"){var D=O.current();return A.context&&A.context.tagName!=D&&C.implicitlyClosed.hasOwnProperty(A.context.tagName)&&n(A),A.context&&A.context.tagName==D||C.matchClosing===!1?(h="tag",_):(h="tag error",b)}else return C.allowMissingTagName&&x=="endTag"?(h="tag bracket",_(x,O,A)):(h="error",b)}function _(x,O,A){return x!="endTag"?(h="error",_):(n(A),u)}function b(x,O,A){return h="error",_(x,O,A)}function v(x,O,A){if(x=="word")return h="attribute",m;if(x=="endTag"||x=="selfcloseTag"){var D=A.tagName,I=A.tagStart;return A.tagName=A.tagStart=null,x=="selfcloseTag"||C.autoSelfClosers.hasOwnProperty(D)?t(A,D):(t(A,D),A.context=new i(A,D,I==A.indented)),u}return h="error",v}function m(x,O,A){return x=="equals"?E:(C.allowMissing||(h="error"),v(x,O,A))}function E(x,O,A){return x=="string"?a:x=="word"&&C.allowUnquoted?(h="string",v):(h="error",v(x,O,A))}function a(x,O,A){return x=="string"?a:v(x,O,A)}return{startState:function(x){var O={tokenize:d,state:u,indented:x||0,tagName:null,tagStart:null,context:null};return x!=null&&(O.baseIndent=x),O},token:function(x,O){if(!O.tagName&&x.sol()&&(O.indented=x.indentation()),x.eatSpace())return null;p=null;var A=O.tokenize(x,O);return(A||p)&&A!="comment"&&(h=null,O.state=O.state(p||A,x,O),h&&(A=h=="error"?A+" error":h)),A},indent:function(x,O,A){var D=x.context;if(x.tokenize.isInAttribute)return x.tagStart==x.indented?x.stringStartCol+1:x.indented+S;if(D&&D.noIndent)return ae.Pass;if(x.tokenize!=o&&x.tokenize!=d)return A?A.match(/^(\s*)/)[0].length:0;if(x.tagName)return C.multilineTagIndentPastTag!==!1?x.tagStart+x.tagName.length+2:x.tagStart+S*(C.multilineTagIndentFactor||1);if(C.alignCDATA&&/$/,blockCommentStart:"",configuration:C.htmlMode?"html":"xml",helperType:C.htmlMode?"html":"xml",skipAttribute:function(x){x.state==E&&(x.state=v)},xmlCurrentTag:function(x){return x.tagName?{name:x.tagName,close:x.type=="closeTag"}:null},xmlCurrentContext:function(x){for(var O=[],A=x.context;A;A=A.prev)A.tagName&&O.push(A.tagName);return O.reverse()}}}),ae.defineMIME("text/xml","xml"),ae.defineMIME("application/xml","xml"),ae.mimeModes.hasOwnProperty("text/html")||ae.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"1j5w":function($e,We,z){"use strict";z.d(We,"d",function(){return $}),z.d(We,"b",function(){return Ge}),z.d(We,"c",function(){return pt}),z.d(We,"a",function(){return Rt});var ae=z("VTBJ"),Z=z("1OyB"),U=z("vuIU"),w=z("JX7q"),P=z("Ji7U"),S=z("LK+K"),C=z("q1tI"),T=z("I8Z2"),l=z("BGR+"),p=z("wx14"),h=z("rePB"),d=z("4IlW"),o=z("2GS6"),c=z("Gytx"),s=z.n(c),f=z("TSYQ"),i=z.n(f),n=z("U8pU"),t=z("ODXe"),u=/iPhone/i,y=/iPod/i,g=/iPad/i,_=/\bAndroid(?:.+)Mobile\b/i,b=/Android/i,v=/\bAndroid(?:.+)SD4930UR\b/i,m=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,E=/Windows Phone/i,a=/\bWindows(?:.+)ARM\b/i,x=/BlackBerry/i,O=/BB10/i,A=/Opera Mini/i,D=/\b(CriOS|Chrome)(?:.+)Mobile/i,I=/Mobile(?:.+)Firefox\b/i;function F(wt,lt){return wt.test(lt)}function K(wt){var lt=wt||(typeof navigator!="undefined"?navigator.userAgent:""),ft=lt.split("[FBAN");if(typeof ft[1]!="undefined"){var Qe=ft,Te=Object(t.a)(Qe,1);lt=Te[0]}if(ft=lt.split("Twitter"),typeof ft[1]!="undefined"){var je=ft,ct=Object(t.a)(je,1);lt=ct[0]}var Ze={apple:{phone:F(u,lt)&&!F(E,lt),ipod:F(y,lt),tablet:!F(u,lt)&&F(g,lt)&&!F(E,lt),device:(F(u,lt)||F(y,lt)||F(g,lt))&&!F(E,lt)},amazon:{phone:F(v,lt),tablet:!F(v,lt)&&F(m,lt),device:F(v,lt)||F(m,lt)},android:{phone:!F(E,lt)&&F(v,lt)||!F(E,lt)&&F(_,lt),tablet:!F(E,lt)&&!F(v,lt)&&!F(_,lt)&&(F(m,lt)||F(b,lt)),device:!F(E,lt)&&(F(v,lt)||F(m,lt)||F(_,lt)||F(b,lt))||F(/\bokhttp\b/i,lt)},windows:{phone:F(E,lt),tablet:F(a,lt),device:F(E,lt)||F(a,lt)},other:{blackberry:F(x,lt),blackberry10:F(O,lt),opera:F(A,lt),firefox:F(I,lt),chrome:F(D,lt),device:F(x,lt)||F(O,lt)||F(A,lt)||F(I,lt)||F(D,lt)},any:null,phone:null,tablet:null};return Ze.any=Ze.apple.device||Ze.android.device||Ze.windows.device||Ze.other.device,Ze.phone=Ze.apple.phone||Ze.android.phone||Ze.windows.phone,Ze.tablet=Ze.apple.tablet||Ze.android.tablet||Ze.windows.tablet,Ze}var ne=Object(ae.a)(Object(ae.a)({},K()),{},{isMobile:K}),j=ne;function G(){}function X(wt,lt,ft){var Qe=lt||"";return wt.key||"".concat(Qe,"item_").concat(ft)}function J(wt){return"".concat(wt,"-menu-")}function B(wt,lt){var ft=-1;C.Children.forEach(wt,function(Qe){ft+=1,Qe&&Qe.type&&Qe.type.isMenuItemGroup?C.Children.forEach(Qe.props.children,function(Te){ft+=1,lt(Te,ft)}):lt(Qe,ft)})}function Q(wt,lt,ft){if(!wt||ft.find)return;C.Children.forEach(wt,function(Qe){if(Qe){var Te=Qe.type;if(!Te||!(Te.isSubMenu||Te.isMenuItem||Te.isMenuItemGroup))return;lt.indexOf(Qe.key)!==-1?ft.find=!0:Qe.props.children&&Q(Qe.props.children,lt,ft)}})}var ie=["defaultSelectedKeys","selectedKeys","defaultOpenKeys","openKeys","mode","getPopupContainer","onSelect","onDeselect","onDestroy","openTransitionName","openAnimation","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","triggerSubMenuAction","level","selectable","multiple","onOpenChange","visible","focusable","defaultActiveFirst","prefixCls","inlineIndent","parentMenu","title","rootPrefixCls","eventKey","active","onItemHover","onTitleMouseEnter","onTitleMouseLeave","onTitleClick","popupAlign","popupOffset","isOpen","renderMenuItem","manualRef","subMenuKey","disabled","index","isSelected","store","activeKey","builtinPlacements","overflowedIndicator","motion","attribute","value","popupClassName","inlineCollapsed","menu","theme","itemIcon","expandIcon"],oe=function(lt){var ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Qe=lt&&typeof lt.getBoundingClientRect=="function"&<.getBoundingClientRect().width;if(Qe){if(ft){var Te=getComputedStyle(lt),je=Te.marginLeft,ct=Te.marginRight;Qe+=+je.replace("px","")+ +ct.replace("px","")}Qe=+Qe.toFixed(6)}return Qe||0},xe=function(lt,ft,Qe){lt&&Object(n.a)(lt.style)==="object"&&(lt.style[ft]=Qe)},ye=function(){return j.any},Ae=z("KQm4"),pe=z("Ff2n"),Oe=z("i8i4"),Fe=z("bdgK"),Me=z("uciX"),Ce=z("8XRh"),Le={adjustX:1,adjustY:1},de={topLeft:{points:["bl","tl"],overflow:Le,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Le,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Le,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Le,offset:[4,0]}},ue={topLeft:{points:["bl","tl"],overflow:Le,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Le,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Le,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Le,offset:[4,0]}},ke=de,Ue=0,Ye={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},ee=function(lt,ft,Qe){var Te=J(ft),je=lt.getState();lt.setState({defaultActiveFirst:Object(ae.a)(Object(ae.a)({},je.defaultActiveFirst),{},Object(h.a)({},Te,Qe))})},M=function(wt){Object(P.a)(ft,wt);var lt=Object(S.a)(ft);function ft(Qe){var Te;Object(Z.a)(this,ft),Te=lt.call(this,Qe),Te.onDestroy=function(st){Te.props.onDestroy(st)},Te.onKeyDown=function(st){var gt=st.keyCode,kt=Te.menuInstance,Wt=Te.props,Qt=Wt.isOpen,we=Wt.store;if(gt===d.a.ENTER)return Te.onTitleClick(st),ee(we,Te.props.eventKey,!0),!0;if(gt===d.a.RIGHT)return Qt?kt.onKeyDown(st):(Te.triggerOpenChange(!0),ee(we,Te.props.eventKey,!0)),!0;if(gt===d.a.LEFT){var fe;if(Qt)fe=kt.onKeyDown(st);else return;return fe||(Te.triggerOpenChange(!1),fe=!0),fe}return Qt&&(gt===d.a.UP||gt===d.a.DOWN)?kt.onKeyDown(st):void 0},Te.onOpenChange=function(st){Te.props.onOpenChange(st)},Te.onPopupVisibleChange=function(st){Te.triggerOpenChange(st,st?"mouseenter":"mouseleave")},Te.onMouseEnter=function(st){var gt=Te.props,kt=gt.eventKey,Wt=gt.onMouseEnter,Qt=gt.store;ee(Qt,Te.props.eventKey,!1),Wt({key:kt,domEvent:st})},Te.onMouseLeave=function(st){var gt=Te.props,kt=gt.parentMenu,Wt=gt.eventKey,Qt=gt.onMouseLeave;kt.subMenuInstance=Object(w.a)(Te),Qt({key:Wt,domEvent:st})},Te.onTitleMouseEnter=function(st){var gt=Te.props,kt=gt.eventKey,Wt=gt.onItemHover,Qt=gt.onTitleMouseEnter;Wt({key:kt,hover:!0}),Qt({key:kt,domEvent:st})},Te.onTitleMouseLeave=function(st){var gt=Te.props,kt=gt.parentMenu,Wt=gt.eventKey,Qt=gt.onItemHover,we=gt.onTitleMouseLeave;kt.subMenuInstance=Object(w.a)(Te),Qt({key:Wt,hover:!1}),we({key:Wt,domEvent:st})},Te.onTitleClick=function(st){var gt=Object(w.a)(Te),kt=gt.props;if(kt.onTitleClick({key:kt.eventKey,domEvent:st}),kt.triggerSubMenuAction==="hover")return;Te.triggerOpenChange(!kt.isOpen,"click"),ee(kt.store,Te.props.eventKey,!1)},Te.onSubMenuClick=function(st){typeof Te.props.onClick=="function"&&Te.props.onClick(Te.addKeyPath(st))},Te.onSelect=function(st){Te.props.onSelect(st)},Te.onDeselect=function(st){Te.props.onDeselect(st)},Te.getPrefixCls=function(){return"".concat(Te.props.rootPrefixCls,"-submenu")},Te.getActiveClassName=function(){return"".concat(Te.getPrefixCls(),"-active")},Te.getDisabledClassName=function(){return"".concat(Te.getPrefixCls(),"-disabled")},Te.getSelectedClassName=function(){return"".concat(Te.getPrefixCls(),"-selected")},Te.getOpenClassName=function(){return"".concat(Te.props.rootPrefixCls,"-submenu-open")},Te.saveMenuInstance=function(st){Te.menuInstance=st},Te.addKeyPath=function(st){return Object(ae.a)(Object(ae.a)({},st),{},{keyPath:(st.keyPath||[]).concat(Te.props.eventKey)})},Te.triggerOpenChange=function(st,gt){var kt=Te.props.eventKey,Wt=function(){Te.onOpenChange({key:kt,item:Object(w.a)(Te),trigger:gt,open:st})};gt==="mouseenter"?Te.mouseenterTimeout=setTimeout(function(){Wt()},0):Wt()},Te.isChildrenSelected=function(){var st={find:!1};return Q(Te.props.children,Te.props.selectedKeys,st),st.find},Te.isOpen=function(){return Te.props.openKeys.indexOf(Te.props.eventKey)!==-1},Te.adjustWidth=function(){if(!Te.subMenuTitle||!Te.menuInstance)return;var st=Oe.findDOMNode(Te.menuInstance);if(st.offsetWidth>=Te.subMenuTitle.offsetWidth)return;st.style.minWidth="".concat(Te.subMenuTitle.offsetWidth,"px")},Te.saveSubMenuTitle=function(st){Te.subMenuTitle=st},Te.getBaseProps=function(){var st=Object(w.a)(Te),gt=st.props;return{mode:gt.mode==="horizontal"?"vertical":gt.mode,visible:Te.props.isOpen,level:gt.level+1,inlineIndent:gt.inlineIndent,focusable:!1,onClick:Te.onSubMenuClick,onSelect:Te.onSelect,onDeselect:Te.onDeselect,onDestroy:Te.onDestroy,selectedKeys:gt.selectedKeys,eventKey:"".concat(gt.eventKey,"-menu-"),openKeys:gt.openKeys,motion:gt.motion,onOpenChange:Te.onOpenChange,subMenuOpenDelay:gt.subMenuOpenDelay,parentMenu:Object(w.a)(Te),subMenuCloseDelay:gt.subMenuCloseDelay,forceSubMenuRender:gt.forceSubMenuRender,triggerSubMenuAction:gt.triggerSubMenuAction,builtinPlacements:gt.builtinPlacements,defaultActiveFirst:gt.store.getState().defaultActiveFirst[J(gt.eventKey)],multiple:gt.multiple,prefixCls:gt.rootPrefixCls,id:Te.internalMenuId,manualRef:Te.saveMenuInstance,itemIcon:gt.itemIcon,expandIcon:gt.expandIcon,direction:gt.direction}},Te.getMotion=function(st,gt){var kt=Object(w.a)(Te),Wt=kt.haveRendered,Qt=Te.props,we=Qt.motion,fe=Qt.rootPrefixCls,W=Object(ae.a)(Object(ae.a)({},we),{},{leavedClassName:"".concat(fe,"-hidden"),removeOnLeave:!1,motionAppear:Wt||!gt||st!=="inline"});return W};var je=Qe.store,ct=Qe.eventKey,Ze=je.getState(),Tt=Ze.defaultActiveFirst;Te.isRootMenu=!1;var Ot=!1;return Tt&&(Ot=Tt[ct]),ee(je,ct,Ot),Te}return Object(U.a)(ft,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Te=this,je=this.props,ct=je.mode,Ze=je.parentMenu,Tt=je.manualRef;if(Tt&&Tt(this),ct!=="horizontal"||!Ze.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return Te.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var Te=this.props,je=Te.onDestroy,ct=Te.eventKey;je&&je(ct),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(Te){var je=this,ct=this.getBaseProps(),Ze=this.getMotion(ct.mode,ct.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||ct.visible||ct.forceSubMenuRender,!this.haveOpened)return C.createElement("div",null);var Tt=ct.direction;return C.createElement(Ce.default,Object.assign({visible:ct.visible},Ze),function(Ot){var st=Ot.className,gt=Ot.style,kt=i()("".concat(ct.prefixCls,"-sub"),st,Object(h.a)({},"".concat(ct.prefixCls,"-rtl"),Tt==="rtl"));return C.createElement(Ne,Object.assign({},ct,{id:je.internalMenuId,className:kt,style:gt}),Te)})}},{key:"render",value:function(){var Te,je=Object(ae.a)({},this.props),ct=je.isOpen,Ze=this.getPrefixCls(),Tt=je.mode==="inline",Ot=i()(Ze,"".concat(Ze,"-").concat(je.mode),(Te={},Object(h.a)(Te,je.className,!!je.className),Object(h.a)(Te,this.getOpenClassName(),ct),Object(h.a)(Te,this.getActiveClassName(),je.active||ct&&!Tt),Object(h.a)(Te,this.getDisabledClassName(),je.disabled),Object(h.a)(Te,this.getSelectedClassName(),this.isChildrenSelected()),Te));this.internalMenuId||(je.eventKey?this.internalMenuId="".concat(je.eventKey,"$Menu"):(Ue+=1,this.internalMenuId="$__$".concat(Ue,"$Menu")));var st={},gt={},kt={};je.disabled||(st={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},gt={onClick:this.onTitleClick},kt={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var Wt={},Qt=je.direction;Tt&&(Qt==="rtl"?Wt.paddingRight=je.inlineIndent*je.level:Wt.paddingLeft=je.inlineIndent*je.level);var we={};this.props.isOpen&&(we={"aria-owns":this.internalMenuId});var fe=null;je.mode!=="horizontal"&&(fe=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(fe=C.createElement(this.props.expandIcon,Object(ae.a)({},this.props))));var W=C.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:Wt,className:"".concat(Ze,"-title"),role:"button"},kt,gt,{"aria-expanded":ct},we,{"aria-haspopup":"true",title:typeof je.title=="string"?je.title:void 0}),je.title,fe||C.createElement("i",{className:"".concat(Ze,"-arrow")})),q=this.renderChildren(je.children),te=je.parentMenu.isRootMenu?je.parentMenu.props.getPopupContainer:function(ht){return ht.parentNode},se=Ye[je.mode],Se=je.popupOffset?{offset:je.popupOffset}:{},He=je.mode==="inline"?"":je.popupClassName;He+=Qt==="rtl"?" ".concat(Ze,"-rtl"):"";var Je=je.disabled,xt=je.triggerSubMenuAction,Ct=je.subMenuOpenDelay,it=je.forceSubMenuRender,St=je.subMenuCloseDelay,Xt=je.builtinPlacements;ie.forEach(function(ht){return delete je[ht]}),delete je.onClick;var bt=Qt==="rtl"?Object.assign({},ue,Xt):Object.assign({},de,Xt);return delete je.direction,C.createElement("li",Object.assign({},je,st,{className:Ot,role:"menuitem"}),Tt&&W,Tt&&q,!Tt&&C.createElement(Me.a,{prefixCls:Ze,popupClassName:i()("".concat(Ze,"-popup"),He),getPopupContainer:te,builtinPlacements:bt,popupPlacement:se,popupVisible:ct,popupAlign:Se,popup:q,action:Je?[]:[xt],mouseEnterDelay:Ct,mouseLeaveDelay:St,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:it},W))}}]),ft}(C.Component);M.defaultProps={onMouseEnter:G,onMouseLeave:G,onTitleMouseEnter:G,onTitleMouseLeave:G,onTitleClick:G,manualRef:G,mode:"vertical",title:""};var N=Object(T.b)(function(wt,lt){var ft=wt.openKeys,Qe=wt.activeKey,Te=wt.selectedKeys,je=lt.eventKey,ct=lt.subMenuKey;return{isOpen:ft.indexOf(je)>-1,active:Qe[ct]===je,selectedKeys:Te}})(M);N.isSubMenu=!0;var $=N,V="menuitem-overflowed",Y=.5,me=function(wt){Object(P.a)(ft,wt);var lt=Object(S.a)(ft);function ft(){var Qe;return Object(Z.a)(this,ft),Qe=lt.apply(this,arguments),Qe.resizeObserver=null,Qe.mutationObserver=null,Qe.originalTotalWidth=0,Qe.overflowedItems=[],Qe.menuItemSizes=[],Qe.cancelFrameId=null,Qe.state={lastVisibleIndex:void 0},Qe.getMenuItemNodes=function(){var Te=Qe.props.prefixCls,je=Oe.findDOMNode(Object(w.a)(Qe));return je?[].slice.call(je.children).filter(function(ct){return ct.className.split(" ").indexOf("".concat(Te,"-overflowed-submenu"))<0}):[]},Qe.getOverflowedSubMenuItem=function(Te,je,ct){var Ze=Qe.props,Tt=Ze.overflowedIndicator,Ot=Ze.level,st=Ze.mode,gt=Ze.prefixCls,kt=Ze.theme;if(Ot!==1||st!=="horizontal")return null;var Wt=Qe.props.children[0],Qt=Wt.props,we=Qt.children,fe=Qt.title,W=Qt.style,q=Object(pe.a)(Qt,["children","title","style"]),te=Object(ae.a)({},W),se="".concat(Te,"-overflowed-indicator"),Se="".concat(Te,"-overflowed-indicator");je.length===0&&ct!==!0?te=Object(ae.a)(Object(ae.a)({},te),{},{display:"none"}):ct&&(te=Object(ae.a)(Object(ae.a)({},te),{},{visibility:"hidden",position:"absolute"}),se="".concat(se,"-placeholder"),Se="".concat(Se,"-placeholder"));var He=kt?"".concat(gt,"-").concat(kt):"",Je={};return ie.forEach(function(xt){q[xt]!==void 0&&(Je[xt]=q[xt])}),C.createElement($,Object.assign({title:Tt,className:"".concat(gt,"-overflowed-submenu"),popupClassName:He},Je,{key:se,eventKey:Se,disabled:!1,style:te}),je)},Qe.setChildrenWidthAndResize=function(){if(Qe.props.mode!=="horizontal")return;var Te=Oe.findDOMNode(Object(w.a)(Qe));if(!Te)return;var je=Te.children;if(!je||je.length===0)return;var ct=Te.children[je.length-1];xe(ct,"display","inline-block");var Ze=Qe.getMenuItemNodes(),Tt=Ze.filter(function(Ot){return Ot.className.split(" ").indexOf(V)>=0});Tt.forEach(function(Ot){xe(Ot,"display","inline-block")}),Qe.menuItemSizes=Ze.map(function(Ot){return oe(Ot,!0)}),Tt.forEach(function(Ot){xe(Ot,"display","none")}),Qe.overflowedIndicatorWidth=oe(Te.children[Te.children.length-1],!0),Qe.originalTotalWidth=Qe.menuItemSizes.reduce(function(Ot,st){return Ot+st},0),Qe.handleResize(),xe(ct,"display","none")},Qe.handleResize=function(){if(Qe.props.mode!=="horizontal")return;var Te=Oe.findDOMNode(Object(w.a)(Qe));if(!Te)return;var je=oe(Te);Qe.overflowedItems=[];var ct=0,Ze;Qe.originalTotalWidth>je+Y&&(Ze=-1,Qe.menuItemSizes.forEach(function(Tt){ct+=Tt,ct+Qe.overflowedIndicatorWidth<=je&&(Ze+=1)})),Qe.setState({lastVisibleIndex:Ze})},Qe}return Object(U.a)(ft,[{key:"componentDidMount",value:function(){var Te=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var je=Oe.findDOMNode(this);if(!je)return;this.resizeObserver=new Fe.default(function(ct){ct.forEach(function(){var Ze=Te.cancelFrameId;cancelAnimationFrame(Ze),Te.cancelFrameId=requestAnimationFrame(Te.setChildrenWidthAndResize)})}),[].slice.call(je.children).concat(je).forEach(function(ct){Te.resizeObserver.observe(ct)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){Te.resizeObserver.disconnect(),[].slice.call(je.children).concat(je).forEach(function(ct){Te.resizeObserver.observe(ct)}),Te.setChildrenWidthAndResize()}),this.mutationObserver.observe(je,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(Te){var je=this,ct=this.state.lastVisibleIndex;return(Te||[]).reduce(function(Ze,Tt,Ot){var st=Tt;if(je.props.mode==="horizontal"){var gt=je.getOverflowedSubMenuItem(Tt.props.eventKey,[]);ct!==void 0&&je.props.className.indexOf("".concat(je.props.prefixCls,"-root"))!==-1&&(Ot>ct&&(st=C.cloneElement(Tt,{style:{display:"none"},eventKey:"".concat(Tt.props.eventKey,"-hidden"),className:"".concat(V)})),Ot===ct+1&&(je.overflowedItems=Te.slice(ct+1).map(function(Wt){return C.cloneElement(Wt,{key:Wt.props.eventKey,mode:"vertical-left"})}),gt=je.getOverflowedSubMenuItem(Tt.props.eventKey,je.overflowedItems)));var kt=[].concat(Object(Ae.a)(Ze),[gt,st]);return Ot===Te.length-1&&kt.push(je.getOverflowedSubMenuItem(Tt.props.eventKey,[],!0)),kt}return[].concat(Object(Ae.a)(Ze),[st])},[])}},{key:"render",value:function(){var Te=this.props,je=Te.visible,ct=Te.prefixCls,Ze=Te.overflowedIndicator,Tt=Te.mode,Ot=Te.level,st=Te.tag,gt=Te.children,kt=Te.theme,Wt=Object(pe.a)(Te,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),Qt=st;return C.createElement(Qt,Object.assign({},Wt),this.renderChildren(gt))}}]),ft}(C.Component);me.defaultProps={tag:"div",className:""};var Re=me;function rt(wt){return wt.length?wt.every(function(lt){return!!lt.props.disabled}):!0}function Pe(wt,lt,ft){var Qe=wt.getState();wt.setState({activeKey:Object(ae.a)(Object(ae.a)({},Qe.activeKey),{},Object(h.a)({},lt,ft))})}function Ie(wt){return wt.eventKey||"0-menu-"}function Xe(wt,lt){var ft=lt,Qe=wt.children,Te=wt.eventKey;if(ft){var je;if(B(Qe,function(ct,Ze){ct&&ct.props&&!ct.props.disabled&&ft===X(ct,Te,Ze)&&(je=!0)}),je)return ft}return ft=null,wt.defaultActiveFirst&&B(Qe,function(ct,Ze){!ft&&ct&&!ct.props.disabled&&(ft=X(ct,Te,Ze))}),ft}function tt(wt){if(wt){var lt=this.instanceArray.indexOf(wt);lt!==-1?this.instanceArray[lt]=wt:this.instanceArray.push(wt)}}var Ve=function(wt){Object(P.a)(ft,wt);var lt=Object(S.a)(ft);function ft(Qe){var Te;return Object(Z.a)(this,ft),Te=lt.call(this,Qe),Te.onKeyDown=function(je,ct){var Ze=je.keyCode,Tt;if(Te.getFlatInstanceArray().forEach(function(st){st&&st.props.active&&st.onKeyDown&&(Tt=st.onKeyDown(je))}),Tt)return 1;var Ot=null;return(Ze===d.a.UP||Ze===d.a.DOWN)&&(Ot=Te.step(Ze===d.a.UP?-1:1)),Ot?(je.preventDefault(),Pe(Te.props.store,Ie(Te.props),Ot.props.eventKey),typeof ct=="function"&&ct(Ot),1):void 0},Te.onItemHover=function(je){var ct=je.key,Ze=je.hover;Pe(Te.props.store,Ie(Te.props),Ze?ct:null)},Te.onDeselect=function(je){Te.props.onDeselect(je)},Te.onSelect=function(je){Te.props.onSelect(je)},Te.onClick=function(je){Te.props.onClick(je)},Te.onOpenChange=function(je){Te.props.onOpenChange(je)},Te.onDestroy=function(je){Te.props.onDestroy(je)},Te.getFlatInstanceArray=function(){return Te.instanceArray},Te.step=function(je){var ct=Te.getFlatInstanceArray(),Ze=Te.props.store.getState().activeKey[Ie(Te.props)],Tt=ct.length;if(!Tt)return null;je<0&&(ct=ct.concat().reverse());var Ot=-1;if(ct.every(function(Wt,Qt){return Wt&&Wt.props.eventKey===Ze?(Ot=Qt,!1):!0}),!Te.props.defaultActiveFirst&&Ot!==-1&&rt(ct.slice(Ot,Tt-1)))return;var st=(Ot+1)%Tt,gt=st;do{var kt=ct[gt];if(!kt||kt.props.disabled)gt=(gt+1)%Tt;else return kt}while(gt!==st);return null},Te.renderCommonMenuItem=function(je,ct,Ze){var Tt=Te.props.store.getState(),Ot=Object(w.a)(Te),st=Ot.props,gt=X(je,st.eventKey,ct),kt=je.props;if(!kt||typeof je.type=="string")return je;var Wt=gt===Tt.activeKey,Qt=Object(ae.a)(Object(ae.a)({mode:kt.mode||st.mode,level:st.level,inlineIndent:st.inlineIndent,renderMenuItem:Te.renderMenuItem,rootPrefixCls:st.prefixCls,index:ct,parentMenu:st.parentMenu,manualRef:kt.disabled?void 0:Object(o.a)(je.ref,tt.bind(Object(w.a)(Te))),eventKey:gt,active:!kt.disabled&&Wt,multiple:st.multiple,onClick:function(fe){(kt.onClick||G)(fe),Te.onClick(fe)},onItemHover:Te.onItemHover,motion:st.motion,subMenuOpenDelay:st.subMenuOpenDelay,subMenuCloseDelay:st.subMenuCloseDelay,forceSubMenuRender:st.forceSubMenuRender,onOpenChange:Te.onOpenChange,onDeselect:Te.onDeselect,onSelect:Te.onSelect,builtinPlacements:st.builtinPlacements,itemIcon:kt.itemIcon||Te.props.itemIcon,expandIcon:kt.expandIcon||Te.props.expandIcon},Ze),{},{direction:st.direction});return(st.mode==="inline"||ye())&&(Qt.triggerSubMenuAction="click"),C.cloneElement(je,Qt)},Te.renderMenuItem=function(je,ct,Ze){if(!je)return null;var Tt=Te.props.store.getState(),Ot={openKeys:Tt.openKeys,selectedKeys:Tt.selectedKeys,triggerSubMenuAction:Te.props.triggerSubMenuAction,subMenuKey:Ze};return Te.renderCommonMenuItem(je,ct,Ot)},Qe.store.setState({activeKey:Object(ae.a)(Object(ae.a)({},Qe.store.getState().activeKey),{},Object(h.a)({},Qe.eventKey,Xe(Qe,Qe.activeKey)))}),Te.instanceArray=[],Te}return Object(U.a)(ft,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(Te){return this.props.visible||Te.visible||this.props.className!==Te.className||!s()(this.props.style,Te.style)}},{key:"componentDidUpdate",value:function(Te){var je=this.props,ct="activeKey"in je?je.activeKey:je.store.getState().activeKey[Ie(je)],Ze=Xe(je,ct);if(Ze!==ct)Pe(je.store,Ie(je),Ze);else if("activeKey"in Te){var Tt=Xe(Te,Te.activeKey);Ze!==Tt&&Pe(je.store,Ie(je),Ze)}}},{key:"render",value:function(){var Te=this,je=Object(p.a)({},this.props);this.instanceArray=[];var ct=i()(je.prefixCls,je.className,"".concat(je.prefixCls,"-").concat(je.mode)),Ze={className:ct,role:je.role||"menu"};je.id&&(Ze.id=je.id),je.focusable&&(Ze.tabIndex=0,Ze.onKeyDown=this.onKeyDown);var Tt=je.prefixCls,Ot=je.eventKey,st=je.visible,gt=je.level,kt=je.mode,Wt=je.overflowedIndicator,Qt=je.theme;return ie.forEach(function(we){return delete je[we]}),delete je.onClick,C.createElement(Re,Object.assign({},je,{prefixCls:Tt,mode:kt,tag:"ul",level:gt,theme:Qt,visible:st,overflowedIndicator:Wt},Ze),C.Children.map(je.children,function(we,fe){return Te.renderMenuItem(we,fe,Ot||"0-menu-")}))}}]),ft}(C.Component);Ve.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:G};var Ke=Object(T.b)()(Ve),Ne=Ke,De=z("Kwbf");function _e(wt,lt,ft){var Qe=wt.prefixCls,Te=wt.motion,je=wt.defaultMotions,ct=je===void 0?{}:je,Ze=wt.openAnimation,Tt=wt.openTransitionName,Ot=lt.switchingModeFromInline;if(Te)return Te;if(Object(n.a)(Ze)==="object"&&Ze)Object(De.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof Ze=="string")return{motionName:"".concat(Qe,"-open-").concat(Ze)};if(Tt)return{motionName:Tt};var st=ct[ft];return st||(Ot?null:ct.other)}var he=function(wt){Object(P.a)(ft,wt);var lt=Object(S.a)(ft);function ft(Qe){var Te;Object(Z.a)(this,ft),Te=lt.call(this,Qe),Te.inlineOpenKeys=[],Te.onSelect=function(Ze){var Tt=Object(w.a)(Te),Ot=Tt.props;if(Ot.selectable){var st=Te.store.getState(),gt=st.selectedKeys,kt=Ze.key;Ot.multiple?gt=gt.concat([kt]):gt=[kt],"selectedKeys"in Ot||Te.store.setState({selectedKeys:gt}),Ot.onSelect(Object(ae.a)(Object(ae.a)({},Ze),{},{selectedKeys:gt}))}},Te.onClick=function(Ze){var Tt=Te.getRealMenuMode(),Ot=Object(w.a)(Te),st=Ot.store,gt=Ot.props.onOpenChange;Tt!=="inline"&&!("openKeys"in Te.props)&&(st.setState({openKeys:[]}),gt([])),Te.props.onClick(Ze)},Te.onKeyDown=function(Ze,Tt){Te.innerMenu.getWrappedInstance().onKeyDown(Ze,Tt)},Te.onOpenChange=function(Ze){var Tt=Object(w.a)(Te),Ot=Tt.props,st=Te.store.getState().openKeys.concat(),gt=!1,kt=function(Qt){var we=!1;if(Qt.open)we=st.indexOf(Qt.key)===-1,we&&st.push(Qt.key);else{var fe=st.indexOf(Qt.key);we=fe!==-1,we&&st.splice(fe,1)}gt=gt||we};Array.isArray(Ze)?Ze.forEach(kt):kt(Ze),gt&&("openKeys"in Te.props||Te.store.setState({openKeys:st}),Ot.onOpenChange(st))},Te.onDeselect=function(Ze){var Tt=Object(w.a)(Te),Ot=Tt.props;if(Ot.selectable){var st=Te.store.getState().selectedKeys.concat(),gt=Ze.key,kt=st.indexOf(gt);kt!==-1&&st.splice(kt,1),"selectedKeys"in Ot||Te.store.setState({selectedKeys:st}),Ot.onDeselect(Object(ae.a)(Object(ae.a)({},Ze),{},{selectedKeys:st}))}},Te.onMouseEnter=function(Ze){Te.restoreModeVerticalFromInline();var Tt=Te.props.onMouseEnter;Tt&&Tt(Ze)},Te.onTransitionEnd=function(Ze){var Tt=Ze.propertyName==="width"&&Ze.target===Ze.currentTarget,Ot=Ze.target.className,st=Object.prototype.toString.call(Ot)==="[object SVGAnimatedString]"?Ot.animVal:Ot,gt=Ze.propertyName==="font-size"&&st.indexOf("anticon")>=0;(Tt||gt)&&Te.restoreModeVerticalFromInline()},Te.setInnerMenu=function(Ze){Te.innerMenu=Ze},Te.isRootMenu=!0;var je=Qe.defaultSelectedKeys,ct=Qe.defaultOpenKeys;return"selectedKeys"in Qe&&(je=Qe.selectedKeys||[]),"openKeys"in Qe&&(ct=Qe.openKeys||[]),Te.store=Object(T.c)({selectedKeys:je,openKeys:ct,activeKey:{"0-menu-":Xe(Qe,Qe.activeKey)}}),Te.state={switchingModeFromInline:!1},Te}return Object(U.a)(ft,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(Te){this.updateOpentKeysWhenSwitchMode(Te),this.updateMiniStore();var je=this.props,ct=je.siderCollapsed,Ze=je.inlineCollapsed,Tt=je.onOpenChange;(!Te.inlineCollapsed&&Ze||!Te.siderCollapsed&&ct)&&Tt([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(Te){var je=this.props,ct=this.store,Ze=this.inlineOpenKeys,Tt=ct.getState(),Ot={};Te.mode==="inline"&&je.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in je||((je.inlineCollapsed&&!Te.inlineCollapsed||je.siderCollapsed&&!Te.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=Tt.openKeys.concat(),Ot.openKeys=[]),(!je.inlineCollapsed&&Te.inlineCollapsed||!je.siderCollapsed&&Te.siderCollapsed)&&(Ot.openKeys=Ze,this.inlineOpenKeys=[])),Object.keys(Ot).length&&ct.setState(Ot)}},{key:"updateMenuDisplay",value:function(){var Te=this.props.collapsedWidth,je=this.store,ct=this.prevOpenKeys,Ze=this.getInlineCollapsed()&&(Te===0||Te==="0"||Te==="0px");Ze?(this.prevOpenKeys=je.getState().openKeys.concat(),this.store.setState({openKeys:[]})):ct&&(this.store.setState({openKeys:ct}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var Te=this.props.mode,je=this.state.switchingModeFromInline,ct=this.getInlineCollapsed();return je&&ct?"inline":ct?"vertical":Te}},{key:"getInlineCollapsed",value:function(){var Te=this.props,je=Te.inlineCollapsed,ct=Te.siderCollapsed;return ct!==void 0?ct:je}},{key:"restoreModeVerticalFromInline",value:function(){var Te=this.state.switchingModeFromInline;Te&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var Te=Object(ae.a)({},Object(l.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),je=this.getRealMenuMode();return Te.className+=" ".concat(Te.prefixCls,"-root"),Te.direction==="rtl"&&(Te.className+=" ".concat(Te.prefixCls,"-rtl")),Te=Object(ae.a)(Object(ae.a)({},Te),{},{mode:je,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:_e(this.props,this.state,je)}),delete Te.openAnimation,delete Te.openTransitionName,C.createElement(T.a,{store:this.store},C.createElement(Ne,Object.assign({},Te,{ref:this.setInnerMenu}),this.props.children))}}]),ft}(C.Component);he.defaultProps={selectable:!0,onClick:G,onSelect:G,onOpenChange:G,onDeselect:G,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:C.createElement("span",null,"\xB7\xB7\xB7")};var ve=he,Ee=function(wt){Object(P.a)(ft,wt);var lt=Object(S.a)(ft);function ft(){var Qe;return Object(Z.a)(this,ft),Qe=lt.apply(this,arguments),Qe.onKeyDown=function(Te){var je=Te.keyCode;return je===d.a.ENTER?(Qe.onClick(Te),!0):void 0},Qe.onMouseLeave=function(Te){var je=Qe.props,ct=je.eventKey,Ze=je.onItemHover,Tt=je.onMouseLeave;Ze({key:ct,hover:!1}),Tt({key:ct,domEvent:Te})},Qe.onMouseEnter=function(Te){var je=Qe.props,ct=je.eventKey,Ze=je.onItemHover,Tt=je.onMouseEnter;Ze({key:ct,hover:!0}),Tt({key:ct,domEvent:Te})},Qe.onClick=function(Te){var je=Qe.props,ct=je.eventKey,Ze=je.multiple,Tt=je.onClick,Ot=je.onSelect,st=je.onDeselect,gt=je.isSelected,kt={key:ct,keyPath:[ct],item:Object(w.a)(Qe),domEvent:Te};Tt(kt),Ze?gt?st(kt):Ot(kt):gt||Ot(kt)},Qe.saveNode=function(Te){Qe.node=Te},Qe}return Object(U.a)(ft,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var Te=this.props;Te.onDestroy&&Te.onDestroy(Te.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var Te,je=Object(ae.a)({},this.props),ct=i()(this.getPrefixCls(),je.className,(Te={},Object(h.a)(Te,this.getActiveClassName(),!je.disabled&&je.active),Object(h.a)(Te,this.getSelectedClassName(),je.isSelected),Object(h.a)(Te,this.getDisabledClassName(),je.disabled),Te)),Ze=Object(ae.a)(Object(ae.a)({},je.attribute),{},{title:typeof je.title=="string"?je.title:void 0,className:ct,role:je.role||"menuitem","aria-disabled":je.disabled});je.role==="option"?Ze=Object(ae.a)(Object(ae.a)({},Ze),{},{role:"option","aria-selected":je.isSelected}):(je.role===null||je.role==="none")&&(Ze.role="none");var Tt={onClick:je.disabled?null:this.onClick,onMouseLeave:je.disabled?null:this.onMouseLeave,onMouseEnter:je.disabled?null:this.onMouseEnter},Ot=Object(ae.a)({},je.style);je.mode==="inline"&&(je.direction==="rtl"?Ot.paddingRight=je.inlineIndent*je.level:Ot.paddingLeft=je.inlineIndent*je.level),ie.forEach(function(gt){return delete je[gt]}),delete je.direction;var st=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(st=C.createElement(this.props.itemIcon,this.props)),C.createElement("li",Object.assign({},Object(l.default)(je,["onClick","onMouseEnter","onMouseLeave","onSelect"]),Ze,Tt,{style:Ot,ref:this.saveNode}),je.children,st)}}]),ft}(C.Component);Ee.isMenuItem=!0,Ee.defaultProps={onSelect:G,onMouseEnter:G,onMouseLeave:G,manualRef:G};var be=Object(T.b)(function(wt,lt){var ft=wt.activeKey,Qe=wt.selectedKeys,Te=lt.eventKey,je=lt.subMenuKey;return{active:ft[je]===Te,isSelected:Qe.indexOf(Te)!==-1}})(Ee),Ge=be,qe=function(wt){Object(P.a)(ft,wt);var lt=Object(S.a)(ft);function ft(){var Qe;return Object(Z.a)(this,ft),Qe=lt.apply(this,arguments),Qe.renderInnerMenuItem=function(Te){var je=Qe.props,ct=je.renderMenuItem,Ze=je.index;return ct(Te,Ze,Qe.props.subMenuKey)},Qe}return Object(U.a)(ft,[{key:"render",value:function(){var Te=Object(p.a)({},this.props),je=Te.className,ct=je===void 0?"":je,Ze=Te.rootPrefixCls,Tt="".concat(Ze,"-item-group-title"),Ot="".concat(Ze,"-item-group-list"),st=Te.title,gt=Te.children;return ie.forEach(function(kt){return delete Te[kt]}),delete Te.onClick,delete Te.direction,C.createElement("li",Object.assign({},Te,{className:"".concat(ct," ").concat(Ze,"-item-group")}),C.createElement("div",{className:Tt,title:typeof st=="string"?st:void 0},st),C.createElement("ul",{className:Ot},C.Children.map(gt,this.renderInnerMenuItem)))}}]),ft}(C.Component);qe.isMenuItemGroup=!0,qe.defaultProps={disabled:!0};var pt=qe,Pt=function(lt){var ft=lt.className,Qe=lt.rootPrefixCls,Te=lt.style;return C.createElement("li",{className:"".concat(ft," ").concat(Qe,"-item-divider"),style:Te})};Pt.defaultProps={disabled:!0,className:"",style:{}};var Rt=Pt,Mt=We.e=ve},"3tLw":function($e,We,z){$e.exports=z.p+"static/a.39070d50.svg"},"4xil":function($e,We,z){$e.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($e,We,z){"use strict";z.d(We,"a",function(){return t});var ae=z("Ty5D"),Z=z("dI71"),U=z("q1tI"),w=z.n(U),P=z("YS25"),S=z("17x9"),C=z.n(S),T=z("wx14"),l=z("zLVn"),p=z("9R94"),h=function(E){Object(Z.a)(a,E);function a(){for(var O,A=arguments.length,D=new Array(A),I=0;I=0||A.relatedTarget.className.indexOf("".concat(K,"-next"))>=0))return;E.setState({goInputText:""}),F(E.getValidValue())},E.go=function(A){var D=E.state.goInputText;if(D==="")return;(A.keyCode===c.ENTER||A.type==="click")&&(E.setState({goInputText:""}),E.props.quickGo(E.getValidValue()))},E}return Object(P.a)(m,[{key:"getValidValue",value:function(){var a=this.state,x=a.goInputText,O=a.current;return!x||isNaN(x)?O:Number(x)}},{key:"getPageSizeOptions",value:function(){var a=this.props,x=a.pageSize,O=a.pageSizeOptions;return O.some(function(A){return A.toString()===x.toString()})?O:O.concat([x.toString()]).sort(function(A,D){var I=isNaN(Number(A))?0:Number(A),F=isNaN(Number(D))?0:Number(D);return I-F})}},{key:"render",value:function(){var a=this,x=this.props,O=x.pageSize,A=x.locale,D=x.rootPrefixCls,I=x.changeSize,F=x.quickGo,K=x.goButton,ne=x.selectComponentClass,j=x.buildOptionText,G=x.selectPrefixCls,X=x.disabled,J=this.state.goInputText,B="".concat(D,"-options"),Q=ne,ie=null,oe=null,xe=null;if(!I&&!F)return null;var ye=this.getPageSizeOptions();if(I&&Q){var Ae=ye.map(function(pe,Oe){return l.a.createElement(Q.Option,{key:Oe,value:pe.toString()},(j||a.buildOptionText)(pe))});ie=l.a.createElement(Q,{disabled:X,prefixCls:G,showSearch:!1,className:"".concat(B,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(O||ye[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Oe){return Oe.parentNode}},Ae)}return F&&(K&&(xe=typeof K=="boolean"?l.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:X,className:"".concat(B,"-quick-jumper-button")},A.jump_to_confirm):l.a.createElement("span",{onClick:this.go,onKeyUp:this.go},K)),oe=l.a.createElement("div",{className:"".concat(B,"-quick-jumper")},A.jump_to,l.a.createElement("input",{disabled:X,type:"text",value:J,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),A.page,xe)),l.a.createElement("li",{className:"".concat(B)},ie,oe)}}]),m}(l.a.Component);s.defaultProps={pageSizeOptions:["10","20","50","100"]};var f=s,i=z("N2Kk");function n(){}function t(b){return typeof b=="number"&&isFinite(b)&&Math.floor(b)===b}function u(b,v,m){return m}function y(b,v,m){var E=typeof b=="undefined"?v.pageSize:b;return Math.floor((m.total-1)/E)+1}var g=function(b){Object(S.a)(m,b);var v=Object(C.a)(m);function m(E){var a;Object(w.a)(this,m),a=v.call(this,E),a.getJumpPrevPage=function(){return Math.max(1,a.state.current-(a.props.showLessItems?3:5))},a.getJumpNextPage=function(){return Math.min(y(void 0,a.state,a.props),a.state.current+(a.props.showLessItems?3:5))},a.getItemIcon=function(I,F){var K=a.props.prefixCls,ne=I||l.a.createElement("button",{type:"button","aria-label":F,className:"".concat(K,"-item-link")});return typeof I=="function"&&(ne=l.a.createElement(I,Object(U.a)({},a.props))),ne},a.savePaginationNode=function(I){a.paginationNode=I},a.isValid=function(I){return t(I)&&I!==a.state.current},a.shouldDisplayQuickJumper=function(){var I=a.props,F=I.showQuickJumper,K=I.pageSize,ne=I.total;return ne<=K?!1:F},a.handleKeyDown=function(I){(I.keyCode===c.ARROW_UP||I.keyCode===c.ARROW_DOWN)&&I.preventDefault()},a.handleKeyUp=function(I){var F=a.getValidValue(I),K=a.state.currentInputValue;F!==K&&a.setState({currentInputValue:F}),I.keyCode===c.ENTER?a.handleChange(F):I.keyCode===c.ARROW_UP?a.handleChange(F-1):I.keyCode===c.ARROW_DOWN&&a.handleChange(F+1)},a.changePageSize=function(I){var F=a.state.current,K=y(I,a.state,a.props);F=F>K?K:F,K===0&&(F=a.state.current),typeof I=="number"&&("pageSize"in a.props||a.setState({pageSize:I}),"current"in a.props||a.setState({current:F,currentInputValue:F})),a.props.onShowSizeChange(F,I),"onChange"in a.props&&a.props.onChange&&a.props.onChange(F,I)},a.handleChange=function(I){var F=a.props.disabled,K=I;if(a.isValid(K)&&!F){var ne=y(void 0,a.state,a.props);K>ne?K=ne:K<1&&(K=1),"current"in a.props||a.setState({current:K,currentInputValue:K});var j=a.state.pageSize;return a.props.onChange(K,j),K}return a.state.current},a.prev=function(){a.hasPrev()&&a.handleChange(a.state.current-1)},a.next=function(){a.hasNext()&&a.handleChange(a.state.current+1)},a.jumpPrev=function(){a.handleChange(a.getJumpPrevPage())},a.jumpNext=function(){a.handleChange(a.getJumpNextPage())},a.hasPrev=function(){return a.state.current>1},a.hasNext=function(){return a.state.current2?K-2:0),j=2;j=O?D=O:D=Number(x),D}},{key:"getShowSizeChanger",value:function(){var a=this.props,x=a.showSizeChanger,O=a.total,A=a.totalBoundaryShowSizeChanger;return typeof x!="undefined"?x:O>A}},{key:"renderPrev",value:function(a){var x=this.props,O=x.prevIcon,A=x.itemRender,D=A(a,"prev",this.getItemIcon(O,"prev page")),I=!this.hasPrev();return Object(T.isValidElement)(D)?Object(T.cloneElement)(D,{disabled:I}):D}},{key:"renderNext",value:function(a){var x=this.props,O=x.nextIcon,A=x.itemRender,D=A(a,"next",this.getItemIcon(O,"next page")),I=!this.hasNext();return Object(T.isValidElement)(D)?Object(T.cloneElement)(D,{disabled:I}):D}},{key:"render",value:function(){var a=this,x=this.props,O=x.prefixCls,A=x.className,D=x.style,I=x.disabled,F=x.hideOnSinglePage,K=x.total,ne=x.locale,j=x.showQuickJumper,G=x.showLessItems,X=x.showTitle,J=x.showTotal,B=x.simple,Q=x.itemRender,ie=x.showPrevNextJumpers,oe=x.jumpPrevIcon,xe=x.jumpNextIcon,ye=x.selectComponentClass,Ae=x.selectPrefixCls,pe=x.pageSizeOptions,Oe=this.state,Fe=Oe.current,Me=Oe.pageSize,Ce=Oe.currentInputValue;if(F===!0&&K<=Me)return null;var Le=y(void 0,this.state,this.props),de=[],ue=null,ke=null,Ue=null,Ye=null,ee=null,M=j&&j.goButton,N=G?1:2,$=Fe-1>0?Fe-1:0,V=Fe+1=N*2&&Fe!==1+2&&(de[0]=Object(T.cloneElement)(de[0],{className:"".concat(O,"-item-after-jump-prev")}),de.unshift(ue)),Le-Fe>=N*2&&Fe!==Le-2&&(de[de.length-1]=Object(T.cloneElement)(de[de.length-1],{className:"".concat(O,"-item-before-jump-next")}),de.push(ke)),Xe!==1&&de.unshift(Ue),tt!==Le&&de.push(Ye)}var Ne=null;J&&(Ne=l.a.createElement("li",{className:"".concat(O,"-total-text")},J(K,[K===0?0:(Fe-1)*Me+1,Fe*Me>K?K:Fe*Me])));var De=!this.hasPrev()||!Le,_e=!this.hasNext()||!Le;return l.a.createElement("ul",Object(ae.a)({className:h()(O,A,Object(Z.a)({},"".concat(O,"-disabled"),I)),style:D,unselectable:"unselectable",ref:this.savePaginationNode},Y),Ne,l.a.createElement("li",{title:X?ne.prev_page:null,onClick:this.prev,tabIndex:De?null:0,onKeyPress:this.runIfEnterPrev,className:h()("".concat(O,"-prev"),Object(Z.a)({},"".concat(O,"-disabled"),De)),"aria-disabled":De},this.renderPrev($)),de,l.a.createElement("li",{title:X?ne.next_page:null,onClick:this.next,tabIndex:_e?null:0,onKeyPress:this.runIfEnterNext,className:h()("".concat(O,"-next"),Object(Z.a)({},"".concat(O,"-disabled"),_e)),"aria-disabled":_e},this.renderNext(V)),l.a.createElement(f,{disabled:I,locale:ne,rootPrefixCls:O,selectComponentClass:ye,selectPrefixCls:Ae,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Fe,pageSize:Me,pageSizeOptions:pe,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:M}))}}],[{key:"getDerivedStateFromProps",value:function(a,x){var O={};if("current"in a&&(O.current=a.current,a.current!==x.current&&(O.currentInputValue=O.current)),"pageSize"in a&&a.pageSize!==x.pageSize){var A=x.current,D=y(a.pageSize,x,a);A=A>D?D:A,"current"in a||(O.current=A,O.currentInputValue=A),O.pageSize=a.pageSize}return O}}]),m}(l.a.Component);g.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:n,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:n,locale:i.a,style:{},itemRender:u,totalBoundaryShowSizeChanger:50};var _=g},"6RRn":function($e,We,z){"use strict";var ae=z("wCXF"),Z=z("n6Qo");z.d(We,"b",function(){return Z.a});var U=z("IBYe"),w=z("6eGT"),P=z("hW8S");z.d(We,"a",function(){return P.a}),We.c=ae.b},"6eGT":function($e,We,z){"use strict";function ae(Z){return null}We.a=ae},"7+5b":function($e,We,z){$e.exports=z.p+"static/v.e7f297d6.svg"},"7ahc":function($e,We,z){"use strict";z.d(We,"a",function(){return y});var ae=z("k1fw"),Z=z("0Owb"),U=z("+L6B"),w=z("2/Rp"),P=z("y8nQ"),S=z("Vl3Y"),C=z("tJVT"),T=z("OaEy"),l=z("2fM7"),p=z("q1tI"),h=z.n(p),d=z("VrN/"),o=z.n(d),c=z("p77/"),s=z.n(c),f=z("c5Ni"),i=z.n(f),n=l.a.Option,t={labelCol:{span:4},wrapperCol:{span:20}},u={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};We.b=function(g){var _=g.callback,b=g.onCancel,v=Object(p.useState)("python"),m=Object(C.a)(v,2),E=m[0],a=m[1];function x(A){a(u[A][1])}function O(A){_(A)}return h.a.createElement(S.a,Object(Z.a)({},t,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:O}),h.a.createElement(S.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},h.a.createElement(l.a,{onChange:x},Object.keys(u).map(function(A){return h.a.createElement(n,{key:A,value:A},u[A][0])}))),h.a.createElement(S.a.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},h.a.createElement(y,{mode:E})),h.a.createElement("div",{className:"flex-container flex-end"},h.a.createElement(w.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),h.a.createElement(w.a,{type:"ghost",onClick:b},"\u53D6\u6D88")))};function y(g){var _=g.value,b=g.onChange,v=g.mode,m=g.options,E=m===void 0?{}:m,a=Object(p.useRef)(),x=Object(p.useState)(),O=Object(C.a)(x,2),A=O[0],D=O[1];return Object(p.useEffect)(function(){if(A){function I(F){var K=F.getValue();b&&b(K)}return A.on("change",I),function(){A.off("change",I)}}},[A,b]),Object(p.useEffect)(function(){A&&A.setOption("mode",v)},[A,v]),Object(p.useEffect)(function(){A&&((_!==A.getValue()||_==="")&&setTimeout(function(){A.setValue(_||" ")},300))},[A,_]),Object(p.useEffect)(function(){if(a.current&&!A){var I=o.a.fromTextArea(a.current,Object(ae.a)({mode:v,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},E));D(I)}},[a.current,A]),h.a.createElement("div",{className:"my-codemirror-container"},h.a.createElement("textarea",{ref:a}))}},"7ixt":function($e,We,z){"use strict";z.d(We,"a",function(){return U});var ae={adjustX:1,adjustY:1},Z=[0,0],U={left:{points:["cr","cl"],overflow:ae,offset:[-4,0],targetOffset:Z},right:{points:["cl","cr"],overflow:ae,offset:[4,0],targetOffset:Z},top:{points:["bc","tc"],overflow:ae,offset:[0,-4],targetOffset:Z},bottom:{points:["tc","bc"],overflow:ae,offset:[0,4],targetOffset:Z},topLeft:{points:["bl","tl"],overflow:ae,offset:[0,-4],targetOffset:Z},leftTop:{points:["tr","tl"],overflow:ae,offset:[-4,0],targetOffset:Z},topRight:{points:["br","tr"],overflow:ae,offset:[0,-4],targetOffset:Z},rightTop:{points:["tl","tr"],overflow:ae,offset:[4,0],targetOffset:Z},bottomRight:{points:["tr","br"],overflow:ae,offset:[0,4],targetOffset:Z},rightBottom:{points:["bl","br"],overflow:ae,offset:[4,0],targetOffset:Z},bottomLeft:{points:["tl","bl"],overflow:ae,offset:[0,4],targetOffset:Z},leftBottom:{points:["br","bl"],overflow:ae,offset:[-4,0],targetOffset:Z}},w=U},"7qur":function($e,We,z){"use strict";z.d(We,"m",function(){return Z}),z.d(We,"s",function(){return U}),z.d(We,"h",function(){return w}),z.d(We,"o",function(){return P}),z.d(We,"n",function(){return S}),z.d(We,"l",function(){return C}),z.d(We,"b",function(){return T}),z.d(We,"q",function(){return l}),z.d(We,"t",function(){return p}),z.d(We,"v",function(){return h}),z.d(We,"w",function(){return d}),z.d(We,"u",function(){return o}),z.d(We,"p",function(){return c}),z.d(We,"f",function(){return s}),z.d(We,"a",function(){return f}),z.d(We,"j",function(){return i}),z.d(We,"k",function(){return n}),z.d(We,"d",function(){return t}),z.d(We,"g",function(){return u}),z.d(We,"c",function(){return y}),z.d(We,"e",function(){return g}),z.d(We,"i",function(){return _}),z.d(We,"r",function(){return b});var ae=z("ErOA");function Z(v){return Object(ae.c)("mypractices/".concat(v,".json"),{hidePopLogin:!0})}function U(v,m){return Object(ae.f)("mypractices/".concat(v,"/code_submit.json"),m)}function w(v,m){return Object(ae.c)("mypractices/".concat(v,"/code_debug.json"),m)}function P(v,m){return Object(ae.c)("mypractices/".concat(v,"/submit_records.json"),m)}function S(v){return Object(ae.c)("mypractices/record_detail.json",{id:v})}function C(v,m){return Object(ae.c)("mypractices/".concat(v,"/result.json"),{mode:m})}function T(v,m){return Object(ae.f)("mypractices/".concat(v,"/add_notes.json"),m)}function l(v,m){return Object(ae.f)("mypractices/".concat(v,"/restore_initial_code.json"),m)}function p(v,m){return Object(ae.f)("mypractices/".concat(v,"/sync_code.json"),m)}function h(v,m){return Object(ae.f)("mypractices/".concat(v,"/update_code.json"),m)}function d(v){return Object(ae.f)("mypractices/".concat(v,"/initial_codes.json"))}function o(v,m){return Object(ae.f)("discusses/".concat(v,"/plus.json"),m)}function c(v){return Object(ae.c)("practices/practices_list.json",v)}function s(v,m){return Object(ae.c)("practices/".concat(v,"/question_solution_articles"),m)}function f(v,m){return Object(ae.f)("practices/".concat(v,"/question_solution_articles"),m)}function i(v,m){return Object(ae.g)("practices/".concat(v,"/question_solution_articles/").concat(m==null?void 0:m.active),m)}function n(v,m){return Object(ae.c)("practices/".concat(v,"/question_solution_articles/").concat(m==null?void 0:m.active,"/edit"),m)}function t(v,m){return Object(ae.c)("practices/".concat(v,"/question_solution_articles/").concat(m==null?void 0:m.active),m)}function u(v,m){return Object(ae.f)("practices/".concat(v,"/question_solution_articles/").concat(m==null?void 0:m.active,"/set_authority_or_excellent"),m)}function y(v,m){return Object(ae.f)("practices/".concat(v,"/question_solution_articles/").concat(m==null?void 0:m.active,"/praise_or_treads"),m)}function g(v,m){return Object(ae.f)("practices/".concat(v,"/question_solution_articles/").concat(m==null?void 0:m.active,"/hide"))}function _(v,m){return Object(ae.b)("practices/".concat(v,"/question_solution_articles/").concat(m==null?void 0:m.active),m)}function b(v,m){return Object(ae.f)("mypractices/".concat(v,"/update_practice_time_sum"),m)}},"815F":function($e,We,z){"use strict";z.d(We,"e",function(){return C}),z.d(We,"c",function(){return l}),z.d(We,"d",function(){return p}),z.d(We,"a",function(){return d}),z.d(We,"f",function(){return o}),z.d(We,"b",function(){return c});var ae=z("KQm4"),Z=z("VTBJ"),U=z("Ff2n"),w=z("Zm9Q"),P=z("Kwbf"),S=z("OZM5");function C(s,f){return s!=null?s:f}function T(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],f=new Map;function i(n){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(n||[]).forEach(function(u){var y=u.key,g=u.children;Object(P.a)(y!=null,"Tree node must have a certain key: [".concat(t).concat(y,"]"));var _=String(y);Object(P.a)(!f.has(_)||y===null||y===void 0,"Same 'key' exist in the Tree: ".concat(_)),f.set(_,!0),i(g,"".concat(t).concat(_," > "))})}i(s)}function l(s){function f(i){var n=Object(w.a)(i);return n.map(function(t){if(!Object(S.i)(t))return Object(P.a)(!t,"Tree/TreeNode can only accept TreeNode as children."),null;var u=t.key,y=t.props,g=y.children,_=Object(U.a)(y,["children"]),b=Object(Z.a)({key:u},_),v=f(g);return v.length&&(b.children=v),b}).filter(function(t){return t})}return f(s)}function p(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=new Set(f===!0?[]:f),n=[];function t(u){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return u.map(function(g,_){var b=Object(S.h)(y?y.pos:"0",_),v=C(g.key,b),m=Object(Z.a)(Object(Z.a)({},g),{},{parent:y,pos:b,children:null,data:g,isStart:[].concat(Object(ae.a)(y?y.isStart:[]),[_===0]),isEnd:[].concat(Object(ae.a)(y?y.isEnd:[]),[_===u.length-1])});return n.push(m),f===!0||i.has(v)?m.children=t(g.children||[],m):m.children=[],m})}return t(s),n}function h(s,f,i){var n;i?typeof i=="string"?n=function(y){return y[i]}:typeof i=="function"&&(n=function(y){return i(y)}):n=function(y,g){return C(y.key,g)};function t(u,y,g){var _=u?u.children:s,b=u?Object(S.h)(g.pos,y):"0";if(u){var v=n(u,b),m={node:u,index:y,pos:b,key:v,parentPos:g.node?g.pos:null,level:g.level+1};f(m)}_&&_.forEach(function(E,a){t(E,a,{node:u,pos:b,level:g?g.level+1:-1})})}t(null)}function d(s){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=f.initWrapper,n=f.processEntity,t=f.onProcessFinished,u=arguments.length>2?arguments[2]:void 0,y={},g={},_={posEntities:y,keyEntities:g};return i&&(_=i(_)||_),h(s,function(b){var v=b.node,m=b.index,E=b.pos,a=b.key,x=b.parentPos,O=b.level,A={node:v,index:m,key:a,pos:E,level:O},D=C(a,E);y[E]=A,g[D]=A,A.parent=y[x],A.parent&&(A.parent.children=A.parent.children||[],A.parent.children.push(A)),n&&n(A,_)},u),t&&t(_),_}function o(s,f){var i=f.expandedKeys,n=f.selectedKeys,t=f.loadedKeys,u=f.loadingKeys,y=f.checkedKeys,g=f.halfCheckedKeys,_=f.dragOverNodeKey,b=f.dropPosition,v=f.keyEntities,m=v[s],E={eventKey:s,expanded:i.indexOf(s)!==-1,selected:n.indexOf(s)!==-1,loaded:t.indexOf(s)!==-1,loading:u.indexOf(s)!==-1,checked:y.indexOf(s)!==-1,halfChecked:g.indexOf(s)!==-1,pos:String(m?m.pos:""),dragOver:_===s&&b===0,dragOverGapTop:_===s&&b===-1,dragOverGapBottom:_===s&&b===1};return E}function c(s){var f=s.data,i=s.expanded,n=s.selected,t=s.checked,u=s.loaded,y=s.loading,g=s.halfChecked,_=s.dragOver,b=s.dragOverGapTop,v=s.dragOverGapBottom,m=s.pos,E=s.active,a=Object(Z.a)(Object(Z.a)({},f),{},{expanded:i,selected:n,checked:t,loaded:u,loading:y,halfChecked:g,dragOver:_,dragOverGapTop:b,dragOverGapBottom:v,pos:m,active:E});return"props"in a||Object.defineProperty(a,"props",{get:function(){return Object(P.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),s}}),a}},"8EBN":function($e,We,z){(function(ae){ae(z("VrN/"))})(function(ae){"use strict";ae.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var Z=0;Z-1&&w.substring(C+1,w.length);if(T)return ae.findModeByExtension(T)},ae.findModeByName=function(w){w=w.toLowerCase();for(var P=0;P=Q.length?ie.slice(Q.length):ie}).join(`
`)}var p=[],h=[""],d=new C.a.Renderer,o=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function c(){p.length=0,h=[""]}var s={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function f(X,J,B,Q){if(J>=X.length||X[J].level<=B)return J;var ie=X[J];Q.push("- "+ie.text+""),J++;var oe=[];return J=f(X,J,ie.level,oe),oe.length>0&&(Q.push("
"),oe.forEach(function(xe){Q.push(xe)}),Q.push("
")),Q.push(" "),J=f(X,J,B,Q),J}function i(){return f(p,0,0,h),h.push("
"),h.join("")}var n={heading:function(J){var B=o.exec(J);if(B)return{type:"heading",raw:B[0],depth:B[1].length,text:B[2]}},fences:function(J){var B=this.rules.block.fences.exec(J);if(B){var Q=B[0],ie=l(Q,B[3]||""),oe=B[2]?B[2].trim():B[2];if(["latex","katex","math"].indexOf(oe)>=0){var xe=y(),ye=ie;ie=xe,g[xe]={type:"block",expression:ye}}return{type:"code",raw:Q,lang:oe,text:ie}}}},t=/(?:\${2})([^\n`]+?)(?:\${2})/gi,u=0,y=function(){return"__special_katext_id_".concat(u++,"__")},g={};function _(){return g}function b(){u=0,g={}}function v(X){return X=X.replace(t,function(J,B){var Q=y();return g[Q]={type:"inline",expression:B},Q}),X}var m=d.listitem;d.listitem=function(X){return m(v(X))};var E=d.paragraph;d.paragraph=function(X){return E(v(X))};var a=d.tablecell;d.tablecell=function(X,J){return a(v(X),J)},d.code=function(X,J,B){var Q=(J||"").match(/\S*/)[0];return Q?["latex","katex","math"].indexOf(Q)>=0?"".concat(X,"
"):'
').concat(B?X:Object(T.escape)(X,!0),`
`):''+(B?X:Object(T.escape)(X,!0))+"
"},d.heading=function(X,J,B){var Q=this.options.headerPrefix+B.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return p.push({anchor:Q,level:J,text:X}),"'+X+""},C.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),C.a.use({tokenizer:n,renderer:d});var x=C.a,O=z("SJMd"),A=z("ulZh"),D=z.n(A),I=z("m3rI"),F=z("Oy/b"),K=z("p5ED"),ne=/]*>/g;function j(X){var J=document.createElement("div");return J.innerHTML=X,J.childNodes.length===0?"":J.childNodes[0].nodeValue}var G=We.a=function(X){var J,B=X.value,Q=B===void 0?"":B,ie=X.className,oe=X.showTextOnly,xe=X.showLines,ye=X.style,Ae=ye===void 0?{}:ye,pe=X.stylesPrev,Oe=pe===void 0?{}:pe,Fe=(J=String(Q))===null||J===void 0?void 0:J.replace(/|<\/script>/gi,"").replace(/on\w+="[^"]*"/gi,""),Me=Object(U.useState)(""),Ce=Object(Z.a)(Me,2),Le=Ce[0],de=Ce[1],ue=Object(U.useMemo)(function(){try{var ee=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,M=/\"\/api\/attachments\/|\"\/attachments\/download\//g,N=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;Fe=Fe.replace(ee,"("+I.a.API_SERVER+"/api/attachments/").replace(M,'"'+I.a.API_SERVER+"/api/attachments/").replace(N,'"'+I.a.API_SERVER+"/files/uploads/").replace(/\r\n/g,`
`),Fe=Fe.replace(new RegExp("(?[TOC]
",i()),c()),$=$.replace(/(__special_katext_id_\d+__)/g,function(me,Re){var rt=V[Re],Pe=rt.type,Ie=rt.expression;return Object(F.renderToString)(j(Ie)||"",{displayMode:Pe==="block",throwOnError:!1,output:"html"})}),$=$.replace(/▁/g,"\u2581\u2581\u2581"),b(),oe){var Y=document.createElement("div");return Y.innerHTML=$,Y.innerText}return setTimeout(function(){return Ye()},500),$},[Fe]),ke=Object(U.useRef)();s.WebkitLineClamp=xe,xe&&(Ae=Object(ae.a)(Object(ae.a)({},Ae),s));function Ue(ee){var M=ee.target;if(M.tagName.toUpperCase()==="A"){var N=M.getAttribute("href");if(N.indexOf("office")>-1)ee.preventDefault(),de(N);else if(N.startsWith("#")){ee.preventDefault();var $=document.getElementById(N.replace("#",""));$&&$.scrollIntoView(!0)}}}var Ye=function(){var M,N=(M=ke.current)===null||M===void 0?void 0:M.querySelectorAll("video");N==null||N.forEach(function($){if($.oncontextmenu=function(){return!1},$.src.indexOf(".m3u8")>-1&&!$.canPlayType("application/vnd.apple.mpegurl")){if(D.a.isSupported()){var V=new D.a;V.loadSource($.src),V.attachMedia($)}}})};return Object(U.useEffect)(function(){if(ke.current&&ue&&(ue.match(ne)&&window.PR.prettyPrint()),ke.current)return ke.current.addEventListener("click",Ue),function(){ke.current.removeEventListener("click",Ue),b(),c()}},[ue,ke.current,Ue]),w.a.createElement(w.a.Fragment,null,w.a.createElement("div",{ref:ke,style:Object(ae.a)({},Ae),className:"".concat(ie||""," markdown-body "),dangerouslySetInnerHTML:{__html:ue}}),w.a.createElement(K.a,{close:!0,data:Le,type:Le!=null&&Le.length?"office":"",style:Object(ae.a)({},Oe),onClose:function(){return de("")}}))}},"9VGf":function($e,We,z){"use strict";z.d(We,"a",function(){return U});var ae=z("q1tI"),Z=z.n(ae);function U(w,P){var S=Object(ae.useRef)();Object(ae.useEffect)(function(){S.current=w}),Object(ae.useEffect)(function(){function C(){S.current()}if(P!==null){var T=setInterval(C,P);return function(){return clearInterval(T)}}},[P])}},AMnG:function($e,We,z){"use strict";var ae=z("miYZ"),Z=z("tsqr"),U=z("tJVT"),w=z("q1tI"),P=z.n(w),S=z("nWbc"),C=z.n(S),T=z("Ot1p");We.a=function(l){var p=l.id,h=l.activeDiscussIndex,d=l.onReplyDiscuss,o=Object(w.useState)(""),c=Object(U.a)(o,2),s=c[0],f=c[1];function i(t){f(t)}function n(){if(!s){Z.b.info("\u56DE\u590D\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A!");return}d(p,s),f("")}return P.a.createElement("div",{key:p,className:"discuss-item-editor",style:{display:h===p?"block":"none",width:"100%"}},P.a.createElement(T.a,{miniToolbar:!0,startInit:h===p,defaultValue:s,id:p,noStorage:!0,watch:!1,height:155,placeholder:"\u6211\u8981\u56DE\u590D",showResizeBar:!0,onChange:i}),P.a.createElement("a",{onClick:n,className:"btn-send"},"\u53D1\u9001"))}},Aky1:function($e,We,z){"use strict";z.d(We,"a",function(){return l});var ae=z("ErOA"),Z=z("ppsT"),U=z.n(Z),w="",P,S="";function C(p){T(p)}function T(p){P=new U.a.Vod({timeout:6e4,partSize:1048576,parallel:5,retryCount:3,retryDuration:2,region:"ap-southeast-1",userId:1829848226361863,enableUploadProgress:!1,addFileSuccess:function(d){console.log("addFileSuccess: "+d.file.name),p.addFileSuccess&&p.addFileSuccess(d),P.startUpload()},onUploadstarted:function(d){var o=d.file.name;if(d.videoId){var f="/api/users/".concat(w,"/video_auths.json");Object(ae.a)(f,{method:"put",body:{video_id:d.videoId,title:o,file_name:o,virtual_classroom_id:S}}).then(function(i){if(i.status==-1){p.onUploadError&&p.onUploadError(d);return}var n=i.data,t=n.UploadAuth,u=n.UploadAddress,y=n.VideoId;P.setUploadAuthAndAddress(d,t,u)}).catch(function(i){P.deleteFile(P._curIndex),P.nextUpload(),console.log(i)})}else{var c="/api/users/".concat(w,"/video_auths.json"),s="";Object(ae.a)(c,{method:"Post",body:{title:s+o,file_name:s+o,virtual_classroom_id:S}}).then(function(i){if(i){var n=i.data,t=n.UploadAuth,u=n.UploadAddress,y=n.VideoId;P.setUploadAuthAndAddress(d,t,u,y)}}).catch(function(i){P.deleteFile(P._curIndex),P.nextUpload(),console.log(i)}),console.log("\u6587\u4EF6\u5F00\u59CB\u4E0A\u4F20...")}},onUploadSucceed:function(d){p.onUploadSucceed&&p.onUploadSucceed(d),console.log("\u6587\u4EF6\u4E0A\u4F20\u6210\u529F!")},onUploadFailed:function(d,o,c){p.onUploadFailed&&p.onUploadFailed(d),console.log("\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25!")},onUploadCanceled:function(d,o,c){console.log("\u6587\u4EF6\u4E0A\u4F20\u5DF2\u6682\u505C!")},onUploadProgress:function(d,o,c){p.onUploadProgress&&p.onUploadProgress(d,o,c);var s=Math.ceil(c*100);console.log("\u6587\u4EF6\u4E0A\u4F20\u4E2D...")},onUploadTokenExpired:function(d){console.log("\u6587\u4EF6\u4E0A\u4F20\u8D85\u65F6!");var o="/api/users/".concat(w,"/video_auths.json");Object(ae.a)(o,{method:"put",body:{video_id:d.videoId}}).then(function(c){var s=c.data,f=s.UploadAuth;P.resumeUploadWithAuth(f)}).catch(function(c){console.log(c)})},onUploadEnd:function(d){p.onUploadEnd&&p.onUploadEnd(d),console.log("onUploadEnd: uploaded all the files")}}),p.gotUploader&&p.gotUploader(P)}function l(p,h,d){p&&(w=p),h&&(S=h),C(d)}},BU3w:function($e,We,z){"use strict";z.d(We,"a",function(){return S});var ae=z("MNnm"),Z="rc-util-key";function U(C){if(C.attachTo)return C.attachTo;var T=document.querySelector("head");return T||document.body}function w(C){var T,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(ae.a)())return null;var p=document.createElement("style");if((T=l.csp)===null||T===void 0?void 0:T.nonce){var h;p.nonce=(h=l.csp)===null||h===void 0?void 0:h.nonce}p.innerHTML=C;var d=U(l),o=d.firstChild;return l.prepend&&d.prepend?d.prepend(p):l.prepend&&o?d.insertBefore(p,o):d.appendChild(p),p}var P=new Map;function S(C,T){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},p=U(l);if(!P.has(p)){var h=w("",l),d=h.parentNode;P.set(p,d),d.removeChild(h)}var o=Array.from(P.get(p).children).find(function(n){return n.tagName==="STYLE"&&n[Z]===T});if(o){var c,s;if(((c=l.csp)===null||c===void 0?void 0:c.nonce)&&o.nonce!==((s=l.csp)===null||s===void 0?void 0:s.nonce)){var f;o.nonce=(f=l.csp)===null||f===void 0?void 0:f.nonce}return o.innerHTML!==C&&(o.innerHTML=C),o}var i=w(C,l);return i[Z]=T,i}},Bd2K:function($e,We,z){(function(ae){ae(z("VrN/"),z("osHv"))})(function(ae){ae.defineOption("autoCloseTags",!1,function(l,p,h){if(h!=ae.Init&&h&&l.removeKeyMap("autoCloseTags"),!p)return;var d={name:"autoCloseTags"};(typeof p!="object"||p.whenClosing!==!1)&&(d["'/'"]=function(o){return S(o)}),(typeof p!="object"||p.whenOpening!==!1)&&(d["'>'"]=function(o){return w(o)}),l.addKeyMap(d)});var Z=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],U=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function w(l){if(l.getOption("disableInput"))return ae.Pass;for(var p=l.listSelections(),h=[],d=l.getOption("autoCloseTags"),o=0;oc.ch&&(t=t.slice(0,t.length-s.end+c.ch));var _=t.toLowerCase();if(!t||s.type=="string"&&(s.end!=c.ch||!/[\"\']/.test(s.string.charAt(s.string.length-1))||s.string.length==1)||s.type=="tag"&&n.close||s.string.indexOf("/")==c.ch-s.start-1||y&&C(y,_)>-1||T(l,f.mode.xmlCurrentContext&&f.mode.xmlCurrentContext(i)||[],t,c,!0))return ae.Pass;var b=typeof d=="object"&&d.emptyTags;if(b&&C(b,t)>-1){h[o]={text:"/>",newPos:ae.Pos(c.line,c.ch+2)};continue}var v=g&&C(g,_)>-1;h[o]={indent:v,text:">"+(v?`
`:"")+""+t+">",newPos:v?ae.Pos(c.line+1,0):ae.Pos(c.line,c.ch+1)}}for(var m=typeof d=="object"&&d.dontIndentOnAutoClose,o=p.length-1;o>=0;o--){var E=h[o];l.replaceRange(E.text,p[o].head,p[o].anchor,"+insert");var a=l.listSelections().slice(0);a[o]={head:E.newPos,anchor:E.newPos},l.setSelections(a),!m&&E.indent&&(l.indentLine(E.newPos.line,null,!0),l.indentLine(E.newPos.line+1,null,!0))}}function P(l,p){for(var h=l.listSelections(),d=[],o=p?"/":"",c=l.getOption("autoCloseTags"),s=typeof c=="object"&&c.dontIndentOnSlash,f=0;f"&&(y+=">"),d[f]=y}if(l.replaceSelections(d),h=l.listSelections(),!s)for(var f=0;f=0&&p[i]==h;i--)++f;d=s.to;for(var i=1;i0){for(var p=0;p1&&arguments[1]!==void 0?arguments[1]:"",p=[],h=0;h=0;p--){var h=U().key(p);l(w(h),h)}}function C(l){return U().removeItem(l)}function T(){return U().clear()}},DlQD:function($e,We,z){(function(ae,Z){$e.exports=Z()})(this,function(){"use strict";function ae(Ne,De){for(var _e=0;_eNe.length)&&(De=Ne.length);for(var _e=0,he=new Array(De);_e=Ne.length?{done:!0}:{done:!1,value:Ne[he++]}}}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 _e=Ne[Symbol.iterator](),_e.next.bind(_e)}function S(Ne,De){return De={exports:{}},Ne(De,De.exports),De.exports}var C=S(function(Ne){function De(){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 _e(he){Ne.exports.defaults=he}Ne.exports={defaults:De(),getDefaults:De,changeDefaults:_e}}),T=C.defaults,l=C.getDefaults,p=C.changeDefaults,h=/[&<>"']/,d=/[&<>"']/g,o=/[<>"']|&(?!#?\w+;)/,c=/[<>"']|&(?!#?\w+;)/g,s={"&":"&","<":"<",">":">",'"':""","'":"'"},f=function(De){return s[De]};function i(Ne,De){if(De){if(h.test(Ne))return Ne.replace(d,f)}else if(o.test(Ne))return Ne.replace(c,f);return Ne}var n=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function t(Ne){return Ne.replace(n,function(De,_e){return _e=_e.toLowerCase(),_e==="colon"?":":_e.charAt(0)==="#"?_e.charAt(1)==="x"?String.fromCharCode(parseInt(_e.substring(2),16)):String.fromCharCode(+_e.substring(1)):""})}var u=/(^|[^\[])\^/g;function y(Ne,De){Ne=Ne.source||Ne,De=De||"";var _e={replace:function(ve,Ee){return Ee=Ee.source||Ee,Ee=Ee.replace(u,"$1"),Ne=Ne.replace(ve,Ee),_e},getRegex:function(){return new RegExp(Ne,De)}};return _e}var g=/[^\w:]/g,_=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function b(Ne,De,_e){if(Ne){var he;try{he=decodeURIComponent(t(_e)).replace(g,"").toLowerCase()}catch(ve){return null}if(he.indexOf("javascript:")===0||he.indexOf("vbscript:")===0||he.indexOf("data:")===0)return null}De&&!_.test(_e)&&(_e=x(De,_e));try{_e=encodeURI(_e).replace(/%25/g,"%")}catch(ve){return null}return _e}var v={},m=/^[^:]+:\/*[^/]*$/,E=/^([^:]+:)[\s\S]*$/,a=/^([^:]+:\/*[^/]*)[\s\S]*$/;function x(Ne,De){v[" "+Ne]||(m.test(Ne)?v[" "+Ne]=Ne+"/":v[" "+Ne]=I(Ne,"/",!0)),Ne=v[" "+Ne];var _e=Ne.indexOf(":")===-1;return De.substring(0,2)==="//"?_e?De:Ne.replace(E,"$1")+De:De.charAt(0)==="/"?_e?De:Ne.replace(a,"$1")+De:Ne+De}var O={exec:function(){}};function A(Ne){for(var De=1,_e,he;De=0&&Ge[pt]==="\\";)qe=!qe;return qe?"|":" |"}),he=_e.split(/ \|/),ve=0;if(he.length>De)he.splice(De);else for(;he.length=he.length?ve.slice(he.length):ve}).join(`
`)}var oe=function(){function Ne(_e){this.options=_e||j}var De=Ne.prototype;return De.space=function(he){var ve=this.rules.block.newline.exec(he);if(ve)return ve[0].length>1?{type:"space",raw:ve[0]}:{raw:`
`}},De.code=function(he,ve){var Ee=this.rules.block.code.exec(he);if(Ee){var be=ve[ve.length-1];if(be&&be.type==="paragraph")return{raw:Ee[0],text:Ee[0].trimRight()};var Ge=Ee[0].replace(/^ {4}/gm,"");return{type:"code",raw:Ee[0],codeBlockStyle:"indented",text:this.options.pedantic?Ge:G(Ge,`
`)}}},De.fences=function(he){var ve=this.rules.block.fences.exec(he);if(ve){var Ee=ve[0],be=ie(Ee,ve[3]||"");return{type:"code",raw:Ee,lang:ve[2]?ve[2].trim():ve[2],text:be}}},De.heading=function(he){var ve=this.rules.block.heading.exec(he);if(ve)return{type:"heading",raw:ve[0],depth:ve[1].length,text:ve[2]}},De.nptable=function(he){var ve=this.rules.block.nptable.exec(he);if(ve){var Ee={type:"table",header:X(ve[1].replace(/^ *| *\| *$/g,"")),align:ve[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:ve[3]?ve[3].replace(/\n$/,"").split(`
`):[],raw:ve[0]};if(Ee.header.length===Ee.align.length){var be=Ee.align.length,Ge;for(Ge=0;Ge ?/gm,"");return{type:"blockquote",raw:ve[0],text:Ee}}},De.list=function(he){var ve=this.rules.block.list.exec(he);if(ve){for(var Ee=ve[0],be=ve[2],Ge=be.length>1,qe=be[be.length-1]===")",pt={type:"list",raw:Ee,ordered:Ge,start:Ge?+be.slice(0,-1):"",loose:!1,items:[]},Pt=ve[0].match(this.rules.block.item),Rt=!1,Mt,wt,lt,ft,Qe,Te,je,ct=Pt.length,Ze=0;Ze1||this.options.smartLists&<!==be)&&(ft=Pt.slice(Ze+1).join(`
`),pt.raw=pt.raw.substring(0,pt.raw.length-ft.length),Ze=ct-1)),Qe=Rt||/\n\n(?!\s*$)/.test(Mt),Ze!==ct-1&&(Rt=Mt.charAt(Mt.length-1)===`
`,Qe||(Qe=Rt)),Qe&&(pt.loose=!0),Te=/^\[[ xX]\] /.test(Mt),je=void 0,Te&&(je=Mt[1]!==" ",Mt=Mt.replace(/^\[[ xX]\] +/,"")),pt.items.push({type:"list_item",raw:Ee,task:Te,checked:je,loose:Qe,text:Mt});return pt}},De.html=function(he){var ve=this.rules.block.html.exec(he);if(ve)return{type:this.options.sanitize?"paragraph":"html",raw:ve[0],pre:!this.options.sanitizer&&(ve[1]==="pre"||ve[1]==="script"||ve[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(ve[0]):J(ve[0]):ve[0]}},De.def=function(he){var ve=this.rules.block.def.exec(he);if(ve){ve[3]&&(ve[3]=ve[3].substring(1,ve[3].length-1));var Ee=ve[1].toLowerCase().replace(/\s+/g," ");return{tag:Ee,raw:ve[0],href:ve[2],title:ve[3]}}},De.table=function(he){var ve=this.rules.block.table.exec(he);if(ve){var Ee={type:"table",header:X(ve[1].replace(/^ *| *\| *$/g,"")),align:ve[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:ve[3]?ve[3].replace(/\n$/,"").split(`
`):[]};if(Ee.header.length===Ee.align.length){Ee.raw=ve[0];var be=Ee.align.length,Ge;for(Ge=0;Ge/i.test(be[0])&&(ve=!1),!Ee&&/^<(pre|code|kbd|script)(\s|>)/i.test(be[0])?Ee=!0:Ee&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(be[0])&&(Ee=!1),{type:this.options.sanitize?"text":"html",raw:be[0],inLink:ve,inRawBlock:Ee,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(be[0]):J(be[0]):be[0]}},De.link=function(he){var ve=this.rules.inline.link.exec(he);if(ve){var Ee=B(ve[2],"()");if(Ee>-1){var be=ve[0].indexOf("!")===0?5:4,Ge=be+ve[1].length+Ee;ve[2]=ve[2].substring(0,Ee),ve[0]=ve[0].substring(0,Ge).trim(),ve[3]=""}var qe=ve[2],pt="";if(this.options.pedantic){var Pt=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(qe);Pt?(qe=Pt[1],pt=Pt[3]):pt=""}else pt=ve[3]?ve[3].slice(1,-1):"";qe=qe.trim().replace(/^<([\s\S]*)>$/,"$1");var Rt=Q(ve,{href:qe&&qe.replace(this.rules.inline._escapes,"$1"),title:pt&&pt.replace(this.rules.inline._escapes,"$1")},ve[0]);return Rt}},De.reflink=function(he,ve){var Ee;if((Ee=this.rules.inline.reflink.exec(he))||(Ee=this.rules.inline.nolink.exec(he))){var be=(Ee[2]||Ee[1]).replace(/\s+/g," ");if(be=ve[be.toLowerCase()],!be||!be.href){var Ge=Ee[0].charAt(0);return{type:"text",raw:Ge,text:Ge}}var qe=Q(Ee,be,Ee[0]);return qe}},De.strong=function(he,ve,Ee){Ee===void 0&&(Ee="");var be=this.rules.inline.strong.start.exec(he);if(be&&(!be[1]||be[1]&&(Ee===""||this.rules.inline.punctuation.exec(Ee)))){ve=ve.slice(-1*he.length);var Ge=be[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;Ge.lastIndex=0;for(var qe;(be=Ge.exec(ve))!=null;)if(qe=this.rules.inline.strong.middle.exec(ve.slice(0,be.index+3)),qe)return{type:"strong",raw:he.slice(0,qe[0].length),text:he.slice(2,qe[0].length-2)}}},De.em=function(he,ve,Ee){Ee===void 0&&(Ee="");var be=this.rules.inline.em.start.exec(he);if(be&&(!be[1]||be[1]&&(Ee===""||this.rules.inline.punctuation.exec(Ee)))){ve=ve.slice(-1*he.length);var Ge=be[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;Ge.lastIndex=0;for(var qe;(be=Ge.exec(ve))!=null;)if(qe=this.rules.inline.em.middle.exec(ve.slice(0,be.index+2)),qe)return{type:"em",raw:he.slice(0,qe[0].length),text:he.slice(1,qe[0].length-1)}}},De.codespan=function(he){var ve=this.rules.inline.code.exec(he);if(ve){var Ee=ve[2].replace(/\n/g," "),be=/[^ ]/.test(Ee),Ge=Ee.startsWith(" ")&&Ee.endsWith(" ");return be&&Ge&&(Ee=Ee.substring(1,Ee.length-1)),Ee=J(Ee,!0),{type:"codespan",raw:ve[0],text:Ee}}},De.br=function(he){var ve=this.rules.inline.br.exec(he);if(ve)return{type:"br",raw:ve[0]}},De.del=function(he){var ve=this.rules.inline.del.exec(he);if(ve)return{type:"del",raw:ve[0],text:ve[1]}},De.autolink=function(he,ve){var Ee=this.rules.inline.autolink.exec(he);if(Ee){var be,Ge;return Ee[2]==="@"?(be=J(this.options.mangle?ve(Ee[1]):Ee[1]),Ge="mailto:"+be):(be=J(Ee[1]),Ge=be),{type:"link",raw:Ee[0],text:be,href:Ge,tokens:[{type:"text",raw:be,text:be}]}}},De.url=function(he,ve){var Ee;if(Ee=this.rules.inline.url.exec(he)){var be,Ge;if(Ee[2]==="@")be=J(this.options.mangle?ve(Ee[0]):Ee[0]),Ge="mailto:"+be;else{var qe;do qe=Ee[0],Ee[0]=this.rules.inline._backpedal.exec(Ee[0])[0];while(qe!==Ee[0]);be=J(Ee[0]),Ee[1]==="www."?Ge="http://"+be:Ge=be}return{type:"link",raw:Ee[0],text:be,href:Ge,tokens:[{type:"text",raw:be,text:be}]}}},De.inlineText=function(he,ve,Ee){var be=this.rules.inline.text.exec(he);if(be){var Ge;return ve?Ge=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(be[0]):J(be[0]):be[0]:Ge=J(this.options.smartypants?Ee(be[0]):be[0]),{type:"text",raw:be[0],text:Ge}}},Ne}(),xe=ne.noopTest,ye=ne.edit,Ae=ne.merge,pe={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*|\\n*|\\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:xe,table:xe,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};pe._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,pe._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,pe.def=ye(pe.def).replace("label",pe._label).replace("title",pe._title).getRegex(),pe.bullet=/(?:[*+-]|\d{1,9}[.)])/,pe.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,pe.item=ye(pe.item,"gm").replace(/bull/g,pe.bullet).getRegex(),pe.list=ye(pe.list).replace(/bull/g,pe.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+pe.def.source+")").getRegex(),pe._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",pe._comment=//,pe.html=ye(pe.html,"i").replace("comment",pe._comment).replace("tag",pe._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),pe.paragraph=ye(pe._paragraph).replace("hr",pe.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",pe._tag).getRegex(),pe.blockquote=ye(pe.blockquote).replace("paragraph",pe.paragraph).getRegex(),pe.normal=Ae({},pe),pe.gfm=Ae({},pe.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*|$)"}),pe.gfm.nptable=ye(pe.gfm.nptable).replace("hr",pe.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",pe._tag).getRegex(),pe.gfm.table=ye(pe.gfm.table).replace("hr",pe.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",pe._tag).getRegex(),pe.pedantic=Ae({},pe.normal,{html:ye(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?\\1> *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",pe._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:xe,paragraph:ye(pe.normal._paragraph).replace("hr",pe.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",pe.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var Oe={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:xe,tag:"^comment|^[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\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:xe,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~",Oe.punctuation=ye(Oe.punctuation).replace(/punctuation/g,Oe._punctuation).getRegex(),Oe._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",Oe._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",Oe.em.start=ye(Oe.em.start).replace(/punctuation/g,Oe._punctuation).getRegex(),Oe.em.middle=ye(Oe.em.middle).replace(/punctuation/g,Oe._punctuation).replace(/overlapSkip/g,Oe._overlapSkip).getRegex(),Oe.em.endAst=ye(Oe.em.endAst,"g").replace(/punctuation/g,Oe._punctuation).getRegex(),Oe.em.endUnd=ye(Oe.em.endUnd,"g").replace(/punctuation/g,Oe._punctuation).getRegex(),Oe.strong.start=ye(Oe.strong.start).replace(/punctuation/g,Oe._punctuation).getRegex(),Oe.strong.middle=ye(Oe.strong.middle).replace(/punctuation/g,Oe._punctuation).replace(/blockSkip/g,Oe._blockSkip).getRegex(),Oe.strong.endAst=ye(Oe.strong.endAst,"g").replace(/punctuation/g,Oe._punctuation).getRegex(),Oe.strong.endUnd=ye(Oe.strong.endUnd,"g").replace(/punctuation/g,Oe._punctuation).getRegex(),Oe.blockSkip=ye(Oe._blockSkip,"g").getRegex(),Oe.overlapSkip=ye(Oe._overlapSkip,"g").getRegex(),Oe._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Oe._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Oe._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])?)+(?![-_])/,Oe.autolink=ye(Oe.autolink).replace("scheme",Oe._scheme).replace("email",Oe._email).getRegex(),Oe._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Oe.tag=ye(Oe.tag).replace("comment",pe._comment).replace("attribute",Oe._attribute).getRegex(),Oe._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Oe._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,Oe._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Oe.link=ye(Oe.link).replace("label",Oe._label).replace("href",Oe._href).replace("title",Oe._title).getRegex(),Oe.reflink=ye(Oe.reflink).replace("label",Oe._label).getRegex(),Oe.reflinkSearch=ye(Oe.reflinkSearch,"g").replace("reflink",Oe.reflink).replace("nolink",Oe.nolink).getRegex(),Oe.normal=Ae({},Oe),Oe.pedantic=Ae({},Oe.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:ye(/^!?\[(label)\]\((.*?)\)/).replace("label",Oe._label).getRegex(),reflink:ye(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Oe._label).getRegex()}),Oe.gfm=Ae({},Oe.normal,{escape:ye(Oe.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]*?(?:(?=[\\.5&&(he="x"+he.toString(16)),De+=""+he+";";return De}var ke=function(){function Ne(_e){this.tokens=[],this.tokens.links=Object.create(null),this.options=_e||Me,this.options.tokenizer=this.options.tokenizer||new oe,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var he={block:Ce.normal,inline:Le.normal};this.options.pedantic?(he.block=Ce.pedantic,he.inline=Le.pedantic):this.options.gfm&&(he.block=Ce.gfm,this.options.breaks?he.inline=Le.breaks:he.inline=Le.gfm),this.tokenizer.rules=he}Ne.lex=function(he,ve){var Ee=new Ne(ve);return Ee.lex(he)};var De=Ne.prototype;return De.lex=function(he){return he=he.replace(/\r\n|\r/g,`
`).replace(/\t/g," "),this.blockTokens(he,this.tokens,!0),this.inline(this.tokens),this.tokens},De.blockTokens=function(he,ve,Ee){ve===void 0&&(ve=[]),Ee===void 0&&(Ee=!0),he=he.replace(/^ +$/gm,"");for(var be,Ge,qe,pt;he;){if(be=this.tokenizer.space(he)){he=he.substring(be.raw.length),be.type&&ve.push(be);continue}if(be=this.tokenizer.code(he,ve)){he=he.substring(be.raw.length),be.type?ve.push(be):(pt=ve[ve.length-1],pt.raw+=`
`+be.raw,pt.text+=`
`+be.text);continue}if(be=this.tokenizer.fences(he)){he=he.substring(be.raw.length),ve.push(be);continue}if(be=this.tokenizer.heading(he)){he=he.substring(be.raw.length),ve.push(be);continue}if(be=this.tokenizer.nptable(he)){he=he.substring(be.raw.length),ve.push(be);continue}if(be=this.tokenizer.hr(he)){he=he.substring(be.raw.length),ve.push(be);continue}if(be=this.tokenizer.blockquote(he)){he=he.substring(be.raw.length),be.tokens=this.blockTokens(be.text,[],Ee),ve.push(be);continue}if(be=this.tokenizer.list(he)){for(he=he.substring(be.raw.length),qe=be.items.length,Ge=0;Ge0)for(;(Pt=this.tokenizer.rules.inline.reflinkSearch.exec(pt))!=null;)Rt.includes(Pt[0].slice(Pt[0].lastIndexOf("[")+1,-1))&&(pt=pt.slice(0,Pt.index)+"["+"a".repeat(Pt[0].length-2)+"]"+pt.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(Pt=this.tokenizer.rules.inline.blockSkip.exec(pt))!=null;)pt=pt.slice(0,Pt.index)+"["+"a".repeat(Pt[0].length-2)+"]"+pt.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;he;){if(qe=this.tokenizer.escape(he)){he=he.substring(qe.raw.length),ve.push(qe);continue}if(qe=this.tokenizer.tag(he,Ee,be)){he=he.substring(qe.raw.length),Ee=qe.inLink,be=qe.inRawBlock,ve.push(qe);continue}if(qe=this.tokenizer.link(he)){he=he.substring(qe.raw.length),qe.type==="link"&&(qe.tokens=this.inlineTokens(qe.text,[],!0,be)),ve.push(qe);continue}if(qe=this.tokenizer.reflink(he,this.tokens.links)){he=he.substring(qe.raw.length),qe.type==="link"&&(qe.tokens=this.inlineTokens(qe.text,[],!0,be)),ve.push(qe);continue}if(qe=this.tokenizer.strong(he,pt,Ge)){he=he.substring(qe.raw.length),qe.tokens=this.inlineTokens(qe.text,[],Ee,be),ve.push(qe);continue}if(qe=this.tokenizer.em(he,pt,Ge)){he=he.substring(qe.raw.length),qe.tokens=this.inlineTokens(qe.text,[],Ee,be),ve.push(qe);continue}if(qe=this.tokenizer.codespan(he)){he=he.substring(qe.raw.length),ve.push(qe);continue}if(qe=this.tokenizer.br(he)){he=he.substring(qe.raw.length),ve.push(qe);continue}if(qe=this.tokenizer.del(he)){he=he.substring(qe.raw.length),qe.tokens=this.inlineTokens(qe.text,[],Ee,be),ve.push(qe);continue}if(qe=this.tokenizer.autolink(he,ue)){he=he.substring(qe.raw.length),ve.push(qe);continue}if(!Ee&&(qe=this.tokenizer.url(he,ue))){he=he.substring(qe.raw.length),ve.push(qe);continue}if(qe=this.tokenizer.inlineText(he,be,de)){he=he.substring(qe.raw.length),Ge=qe.raw.slice(-1),ve.push(qe);continue}if(he){var Mt="Infinite loop on byte: "+he.charCodeAt(0);if(this.options.silent){console.error(Mt);break}else throw new Error(Mt)}}return ve},Z(Ne,null,[{key:"rules",get:function(){return{block:Ce,inline:Le}}}]),Ne}(),Ue=C.defaults,Ye=ne.cleanUrl,ee=ne.escape,M=function(){function Ne(_e){this.options=_e||Ue}var De=Ne.prototype;return De.code=function(he,ve,Ee){var be=(ve||"").match(/\S*/)[0];if(this.options.highlight){var Ge=this.options.highlight(he,be);Ge!=null&&Ge!==he&&(Ee=!0,he=Ge)}return be?''+(Ee?he:ee(he,!0))+`
`:""+(Ee?he:ee(he,!0))+`
`},De.blockquote=function(he){return`
`+he+`
`},De.html=function(he){return he},De.heading=function(he,ve,Ee,be){return this.options.headerIds?"
`:""+he+"
`},De.hr=function(){return this.options.xhtml?`
`:`
`},De.list=function(he,ve,Ee){var be=ve?"ol":"ul",Ge=ve&&Ee!==1?' start="'+Ee+'"':"";return"<"+be+Ge+`>
`+he+""+be+`>
`},De.listitem=function(he){return""+he+`
`},De.checkbox=function(he){return" "},De.paragraph=function(he){return""+he+`
`},De.table=function(he,ve){return ve&&(ve=""+ve+""),`
`},De.tablerow=function(he){return`
`+he+`
`},De.tablecell=function(he,ve){var Ee=ve.header?"th":"td",be=ve.align?"<"+Ee+' align="'+ve.align+'">':"<"+Ee+">";return be+he+""+Ee+`>
`},De.strong=function(he){return""+he+""},De.em=function(he){return""+he+""},De.codespan=function(he){return""+he+""},De.br=function(){return this.options.xhtml?"
":"
"},De.del=function(he){return""+he+""},De.link=function(he,ve,Ee){if(he=Ye(this.options.sanitize,this.options.baseUrl,he),he===null)return Ee;var be='"+Ee+"",be},De.image=function(he,ve,Ee){if(he=Ye(this.options.sanitize,this.options.baseUrl,he),he===null)return Ee;var be='
":">",be},De.text=function(he){return he},Ne}(),N=function(){function Ne(){}var De=Ne.prototype;return De.strong=function(he){return he},De.em=function(he){return he},De.codespan=function(he){return he},De.del=function(he){return he},De.html=function(he){return he},De.text=function(he){return he},De.link=function(he,ve,Ee){return""+Ee},De.image=function(he,ve,Ee){return""+Ee},De.br=function(){return""},Ne}(),$=function(){function Ne(){this.seen={}}var De=Ne.prototype;return De.slug=function(he){var ve=he.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(ve)){var Ee=ve;do this.seen[Ee]++,ve=Ee+"-"+this.seen[Ee];while(this.seen.hasOwnProperty(ve))}return this.seen[ve]=0,ve},Ne}(),V=C.defaults,Y=ne.unescape,me=function(){function Ne(_e){this.options=_e||V,this.options.renderer=this.options.renderer||new M,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new N,this.slugger=new $}Ne.parse=function(he,ve){var Ee=new Ne(ve);return Ee.parse(he)};var De=Ne.prototype;return De.parse=function(he,ve){ve===void 0&&(ve=!0);var Ee="",be,Ge,qe,pt,Pt,Rt,Mt,wt,lt,ft,Qe,Te,je,ct,Ze,Tt,Ot,st,gt=he.length;for(be=0;be0&&Ze.tokens[0].type==="text"?(Ze.tokens[0].text=st+" "+Ze.tokens[0].text,Ze.tokens[0].tokens&&Ze.tokens[0].tokens.length>0&&Ze.tokens[0].tokens[0].type==="text"&&(Ze.tokens[0].tokens[0].text=st+" "+Ze.tokens[0].tokens[0].text)):Ze.tokens.unshift({type:"text",text:st}):ct+=st),ct+=this.parse(Ze.tokens,je),lt+=this.renderer.listitem(ct,Ot,Tt);Ee+=this.renderer.list(lt,Qe,Te);continue}case"html":{Ee+=this.renderer.html(ft.text);continue}case"paragraph":{Ee+=this.renderer.paragraph(this.parseInline(ft.tokens));continue}case"text":{for(lt=ft.tokens?this.parseInline(ft.tokens):ft.text;be+1An error occurred:"+Pe(qe.message+"",!0)+"
";throw qe}}Ve.options=Ve.setOptions=function(Ne){return Re(Ve.defaults,Ne),Xe(Ve.defaults),Ve},Ve.getDefaults=Ie,Ve.defaults=tt,Ve.use=function(Ne){var De=Re({},Ne);if(Ne.renderer&&function(){var he=Ve.defaults.renderer||new M,ve=function(Ge){var qe=he[Ge];he[Ge]=function(){for(var pt=arguments.length,Pt=new Array(pt),Rt=0;Rt=0;o--){if(!U(d[o]))continue;var c=d[o].split("="),s=unescape(c[0]),f=unescape(c[1]);h(f,s)}}function C(h,d){if(!h)return;w.cookie=escape(h)+"="+escape(d)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/"}function T(h){if(!h||!p(h))return;w.cookie=escape(h)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/"}function l(){S(function(h,d){T(d)})}function p(h){return new RegExp("(?:^|;\\s*)"+escape(h).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(w.cookie)}},E2g8:function($e,We,z){(function(ae,Z){/*!
* @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(U,w){$e.exports=w()})(this,function(){"use strict";function U(M){var N=typeof M;return M!==null&&(N==="object"||N==="function")}function w(M){return typeof M=="function"}var P=void 0;Array.isArray?P=Array.isArray:P=function(M){return Object.prototype.toString.call(M)==="[object Array]"};var S=P,C=0,T=void 0,l=void 0,p=function(N,$){_[C]=N,_[C+1]=$,C+=2,C===2&&(l?l(b):m())};function h(M){l=M}function d(M){p=M}var o=typeof window!="undefined"?window:void 0,c=o||{},s=c.MutationObserver||c.WebKitMutationObserver,f=typeof self=="undefined"&&typeof ae!="undefined"&&{}.toString.call(ae)==="[object process]",i=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function n(){return function(){return ae.nextTick(b)}}function t(){return typeof T!="undefined"?function(){T(b)}:g()}function u(){var M=0,N=new s(b),$=document.createTextNode("");return N.observe($,{characterData:!0}),function(){$.data=M=++M%2}}function y(){var M=new MessageChannel;return M.port1.onmessage=b,function(){return M.port2.postMessage(0)}}function g(){var M=setTimeout;return function(){return M(b,1)}}var _=new Array(1e3);function b(){for(var M=0;M`,triples:"",explode:"[]{}"},U=ae.Pos;ae.defineOption("autoCloseBrackets",!1,function(s,f,i){i&&i!=ae.Init&&(s.removeKeyMap(P),s.state.closeBrackets=null),f&&(S(w(f,"pairs")),s.state.closeBrackets=f,s.addKeyMap(P))});function w(s,f){return f=="pairs"&&typeof s=="string"?s:typeof s=="object"&&s[f]!=null?s[f]:Z[f]}var P={Backspace:l,Enter:p};function S(s){for(var f=0;f=0;t--){var y=n[t].head;s.replaceRange("",U(y.line,y.ch-1),U(y.line,y.ch+1),"+delete")}}function p(s){var f=T(s),i=f&&w(f,"explode");if(!i||s.getOption("disableInput"))return ae.Pass;for(var n=s.listSelections(),t=0;t0;return{anchor:new U(s.anchor.line,s.anchor.ch+(f?-1:1)),head:new U(s.head.line,s.head.ch+(f?1:-1))}}function d(s,f){var i=T(s);if(!i||s.getOption("disableInput"))return ae.Pass;var n=w(i,"pairs"),t=n.indexOf(f);if(t==-1)return ae.Pass;for(var u=w(i,"closeBefore"),y=w(i,"triples"),g=n.charAt(t+1)==f,_=s.listSelections(),b=t%2==0,v,m=0;m<_.length;m++){var E=_[m],a=E.head,x,O=s.getRange(a,U(a.line,a.ch+1));if(b&&!E.empty())x="surround";else if((g||!b)&&O==f)g&&c(s,a)?x="both":y.indexOf(f)>=0&&s.getRange(a,U(a.line,a.ch+3))==f+f+f?x="skipThree":x="skip";else if(g&&a.ch>1&&y.indexOf(f)>=0&&s.getRange(U(a.line,a.ch-2),a)==f+f){if(a.ch>2&&/\bstring/.test(s.getTokenTypeAt(U(a.line,a.ch-2))))return ae.Pass;x="addFour"}else if(g){var A=a.ch==0?" ":s.getRange(U(a.line,a.ch-1),a);if(!ae.isWordChar(O)&&A!=f&&!ae.isWordChar(A))x="both";else return ae.Pass}else if(b&&(O.length===0||/\s/.test(O)||u.indexOf(O)>-1))x="both";else return ae.Pass;if(!v)v=x;else if(v!=x)return ae.Pass}var D=t%2?n.charAt(t-1):f,I=t%2?f:n.charAt(t+1);s.operation(function(){if(v=="skip")s.execCommand("goCharRight");else if(v=="skipThree")for(var F=0;F<3;F++)s.execCommand("goCharRight");else if(v=="surround"){for(var K=s.getSelections(),F=0;F ").concat(q);if(we.ENABLE_CALLBACK&&we.emitter.emit("log","error",te),!we.ENABLE_ERROR)return;console.error?console.error(te):console.warn?console.warn(te):console.log(te)}},{key:"i",value:function(W,q){(!W||we.FORCE_GLOBAL_TAG)&&(W=we.GLOBAL_TAG);var te="[".concat(W,"] > ").concat(q);if(we.ENABLE_CALLBACK&&we.emitter.emit("log","info",te),!we.ENABLE_INFO)return;console.info?console.info(te):console.log(te)}},{key:"w",value:function(W,q){(!W||we.FORCE_GLOBAL_TAG)&&(W=we.GLOBAL_TAG);var te="[".concat(W,"] > ").concat(q);if(we.ENABLE_CALLBACK&&we.emitter.emit("log","warn",te),!we.ENABLE_WARN)return;console.warn?console.warn(te):console.log(te)}},{key:"d",value:function(W,q){(!W||we.FORCE_GLOBAL_TAG)&&(W=we.GLOBAL_TAG);var te="[".concat(W,"] > ").concat(q);if(we.ENABLE_CALLBACK&&we.emitter.emit("log","debug",te),!we.ENABLE_DEBUG)return;console.debug?console.debug(te):console.log(te)}},{key:"v",value:function(W,q){(!W||we.FORCE_GLOBAL_TAG)&&(W=we.GLOBAL_TAG);var te="[".concat(W,"] > ").concat(q);if(we.ENABLE_CALLBACK&&we.emitter.emit("log","verbose",te),!we.ENABLE_VERBOSE)return;console.log(te)}}]),we}();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 S.a;var T=C,l=function(){function we(){Object(ae.a)(this,we),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(Z.a)(we,[{key:"reset",value:function(){this._firstCheckpoint=this._lastCheckpoint=0,this._totalBytes=this._intervalBytes=0,this._lastSecondBytes=0}},{key:"addBytes",value:function(W){this._firstCheckpoint===0?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=W,this._totalBytes+=W):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=W,this._totalBytes+=W):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=W,this._totalBytes+=W,this._lastCheckpoint=this._now())}},{key:"currentKBps",get:function(){this.addBytes(0);var W=(this._now()-this._lastCheckpoint)/1e3;return W==0&&(W=1),this._intervalBytes/W/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 W=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/W/1024}}]),we}(),p=l,h=z("yKVA"),d=z("879j"),o=function(){function we(fe){Object(ae.a)(this,we),this._message=fe}return Object(Z.a)(we,[{key:"name",get:function(){return"RuntimeException"}},{key:"message",get:function(){return this._message}},{key:"toString",value:function(){return this.name+": "+this.message}}]),we}(),c=function(we){Object(h.a)(W,we);var fe=Object(d.a)(W);function W(q){return Object(ae.a)(this,W),fe.call(this,q)}return Object(Z.a)(W,[{key:"name",get:function(){return"IllegalStateException"}}]),W}(o),s=function(we){Object(h.a)(W,we);var fe=Object(d.a)(W);function W(q){return Object(ae.a)(this,W),fe.call(this,q)}return Object(Z.a)(W,[{key:"name",get:function(){return"InvalidArgumentException"}}]),W}(o),f=function(we){Object(h.a)(W,we);var fe=Object(d.a)(W);function W(q){return Object(ae.a)(this,W),fe.call(this,q)}return Object(Z.a)(W,[{key:"name",get:function(){return"NotImplementedException"}}]),W}(o),i={kIdle:0,kConnecting:1,kBuffering:2,kError:3,kComplete:4},n={OK:"OK",EXCEPTION:"Exception",HTTP_STATUS_CODE_INVALID:"HttpStatusCodeInvalid",CONNECTING_TIMEOUT:"ConnectingTimeout",EARLY_EOF:"EarlyEof",UNRECOVERABLE_EARLY_EOF:"UnrecoverableEarlyEof"},t=function(){function we(fe){Object(ae.a)(this,we),this._type=fe||"undefined",this._status=i.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}return Object(Z.a)(we,[{key:"destroy",value:function(){this._status=i.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}},{key:"isWorking",value:function(){return this._status===i.kConnecting||this._status===i.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(W){this._onContentLengthKnown=W}},{key:"onURLRedirect",get:function(){return this._onURLRedirect},set:function(W){this._onURLRedirect=W}},{key:"onDataArrival",get:function(){return this._onDataArrival},set:function(W){this._onDataArrival=W}},{key:"onError",get:function(){return this._onError},set:function(W){this._onError=W}},{key:"onComplete",get:function(){return this._onComplete},set:function(W){this._onComplete=W}},{key:"open",value:function(W,q){throw new f("Unimplemented abstract function!")}},{key:"abort",value:function(){throw new f("Unimplemented abstract function!")}}]),we}(),u=z("oZsa");function y(we,fe){for(;!Object.prototype.hasOwnProperty.call(we,fe)&&!(we=Object(u.a)(we),we===null););return we}function g(we,fe,W){return typeof Reflect!="undefined"&&Reflect.get?g=Reflect.get:g=function(te,se,Se){var He=y(te,se);if(!He)return;var Je=Object.getOwnPropertyDescriptor(He,se);return Je.get?Je.get.call(Se):Je.value},g(we,fe,W||we)}var _={};function b(){var we=self.navigator.userAgent.toLowerCase(),fe=/(edge)\/([\w.]+)/.exec(we)||/(opr)[\/]([\w.]+)/.exec(we)||/(chrome)[ \/]([\w.]+)/.exec(we)||/(iemobile)[\/]([\w.]+)/.exec(we)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(we)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(we)||/(webkit)[ \/]([\w.]+)/.exec(we)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(we)||/(msie) ([\w.]+)/.exec(we)||we.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(we)||we.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(we)||[],W=/(ipad)/.exec(we)||/(ipod)/.exec(we)||/(windows phone)/.exec(we)||/(iphone)/.exec(we)||/(kindle)/.exec(we)||/(android)/.exec(we)||/(windows)/.exec(we)||/(mac)/.exec(we)||/(linux)/.exec(we)||/(cros)/.exec(we)||[],q={browser:fe[5]||fe[3]||fe[1]||"",version:fe[2]||fe[4]||"0",majorVersion:fe[4]||fe[2]||"0",platform:W[0]||""},te={};if(q.browser){te[q.browser]=!0;var se=q.majorVersion.split(".");te.version={major:parseInt(q.majorVersion,10),string:q.version},se.length>1&&(te.version.minor=parseInt(se[1],10)),se.length>2&&(te.version.build=parseInt(se[2],10))}if(q.platform&&(te[q.platform]=!0),(te.chrome||te.opr||te.safari)&&(te.webkit=!0),te.rv||te.iemobile){te.rv&&delete te.rv;var Se="msie";q.browser=Se,te[Se]=!0}if(te.edge){delete te.edge;var He="msedge";q.browser=He,te[He]=!0}if(te.opr){var Je="opera";q.browser=Je,te[Je]=!0}if(te.safari&&te.android){var xt="android";q.browser=xt,te[xt]=!0}te.name=q.browser,te.platform=q.platform;for(var Ct in _)_.hasOwnProperty(Ct)&&delete _[Ct];Object.assign(_,te)}b();var v=_,m=function(we){Object(h.a)(W,we);var fe=Object(d.a)(W);function W(q,te){var se;return Object(ae.a)(this,W),se=fe.call(this,"fetch-stream-loader"),se.TAG="FetchStreamLoader",se._seekHandler=q,se._config=te,se._needStash=!0,se._requestAbort=!1,se._contentLength=null,se._receivedLength=0,se}return Object(Z.a)(W,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),g(Object(u.a)(W.prototype),"destroy",this).call(this)}},{key:"open",value:function(te,se){var Se=this;this._dataSource=te,this._range=se;var He=te.url;this._config.reuseRedirectedURL&&te.redirectedURL!=null&&(He=te.redirectedURL);var Je=this._seekHandler.getConfig(He,se),xt=new self.Headers;if(typeof Je.headers=="object"){var Ct=Je.headers;for(var it in Ct)Ct.hasOwnProperty(it)&&xt.append(it,Ct[it])}var St={method:"GET",headers:xt,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(var Xt in this._config.headers)xt.append(Xt,this._config.headers[Xt]);te.cors===!1&&(St.mode="same-origin"),te.withCredentials&&(St.credentials="include"),te.referrerPolicy&&(St.referrerPolicy=te.referrerPolicy),this._status=i.kConnecting,self.fetch(Je.url,St).then(function(bt){if(Se._requestAbort){Se._requestAbort=!1,Se._status=i.kIdle;return}if(bt.ok&&bt.status>=200&&bt.status<=299){if(bt.url!==Je.url&&Se._onURLRedirect){var ht=Se._seekHandler.removeURLParameters(bt.url);Se._onURLRedirect(ht)}var Jt=bt.headers.get("Content-Length");return Jt!=null&&(Se._contentLength=parseInt(Jt),Se._contentLength!==0&&(Se._onContentLengthKnown&&Se._onContentLengthKnown(Se._contentLength))),Se._pump.call(Se,bt.body.getReader())}else if(Se._status=i.kError,Se._onError)Se._onError(n.HTTP_STATUS_CODE_INVALID,{code:bt.status,msg:bt.statusText});else throw new o("FetchStreamLoader: Http code invalid, "+bt.status+" "+bt.statusText)}).catch(function(bt){if(Se._status=i.kError,Se._onError)Se._onError(n.EXCEPTION,{code:-1,msg:bt.message});else throw bt})}},{key:"abort",value:function(){this._requestAbort=!0}},{key:"_pump",value:function(te){var se=this;return te.read().then(function(Se){if(Se.done)if(se._contentLength!==null&&se._receivedLength=15048,se=v.msedge?te:!0;return self.fetch&&self.ReadableStream&&se}catch(Se){return!1}}}]),W}(t),E=m,a=function(we){Object(h.a)(W,we);var fe=Object(d.a)(W);function W(q,te){var se;return Object(ae.a)(this,W),se=fe.call(this,"xhr-moz-chunked-loader"),se.TAG="MozChunkedLoader",se._seekHandler=q,se._config=te,se._needStash=!0,se._xhr=null,se._requestAbort=!1,se._contentLength=null,se._receivedLength=0,se}return Object(Z.a)(W,[{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),g(Object(u.a)(W.prototype),"destroy",this).call(this)}},{key:"open",value:function(te,se){this._dataSource=te,this._range=se;var Se=te.url;this._config.reuseRedirectedURL&&te.redirectedURL!=null&&(Se=te.redirectedURL);var He=this._seekHandler.getConfig(Se,se);this._requestURL=He.url;var Je=this._xhr=new XMLHttpRequest;if(Je.open("GET",He.url,!0),Je.responseType="moz-chunked-arraybuffer",Je.onreadystatechange=this._onReadyStateChange.bind(this),Je.onprogress=this._onProgress.bind(this),Je.onloadend=this._onLoadEnd.bind(this),Je.onerror=this._onXhrError.bind(this),te.withCredentials&&(Je.withCredentials=!0),typeof He.headers=="object"){var xt=He.headers;for(var Ct in xt)xt.hasOwnProperty(Ct)&&Je.setRequestHeader(Ct,xt[Ct])}if(typeof this._config.headers=="object"){var it=this._config.headers;for(var St in it)it.hasOwnProperty(St)&&Je.setRequestHeader(St,it[St])}this._status=i.kConnecting,Je.send()}},{key:"abort",value:function(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this._status=i.kComplete}},{key:"_onReadyStateChange",value:function(te){var se=te.target;if(se.readyState===2){if(se.responseURL!=null&&se.responseURL!==this._requestURL&&this._onURLRedirect){var Se=this._seekHandler.removeURLParameters(se.responseURL);this._onURLRedirect(Se)}if(se.status!==0&&(se.status<200||se.status>299))if(this._status=i.kError,this._onError)this._onError(n.HTTP_STATUS_CODE_INVALID,{code:se.status,msg:se.statusText});else throw new o("MozChunkedLoader: Http code invalid, "+se.status+" "+se.statusText);else this._status=i.kBuffering}}},{key:"_onProgress",value:function(te){if(this._status===i.kError)return;this._contentLength===null&&(te.total!==null&&te.total!==0&&(this._contentLength=te.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)));var se=te.target.response,Se=this._range.from+this._receivedLength;this._receivedLength+=se.byteLength,this._onDataArrival&&this._onDataArrival(se,Se,this._receivedLength)}},{key:"_onLoadEnd",value:function(te){if(this._requestAbort===!0){this._requestAbort=!1;return}else if(this._status===i.kError)return;this._status=i.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)}},{key:"_onXhrError",value:function(te){this._status=i.kError;var se=0,Se=null;if(this._contentLength&&te.loaded=200&&se.status<=299){if(this._status=i.kBuffering,se.responseURL!=null){var Se=this._seekHandler.removeURLParameters(se.responseURL);se.responseURL!==this._currentRequestURL&&Se!==this._currentRedirectedURL&&(this._currentRedirectedURL=Se,this._onURLRedirect&&this._onURLRedirect(Se))}var He=se.getResponseHeader("Content-Length");if(He!=null&&this._contentLength==null){var Je=parseInt(He);Je>0&&(this._contentLength=Je,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength))}}else if(this._status=i.kError,this._onError)this._onError(n.HTTP_STATUS_CODE_INVALID,{code:se.status,msg:se.statusText});else throw new o("MSStreamLoader: Http code invalid, "+se.status+" "+se.statusText);else if(se.readyState===3&&(se.status>=200&&se.status<=299)){this._status=i.kBuffering;var xt=se.response;this._reader.readAsArrayBuffer(xt)}}},{key:"_xhrOnError",value:function(te){this._status=i.kError;var se=n.EXCEPTION,Se={code:-1,msg:te.constructor.name+" "+te.type};if(this._onError)this._onError(se,Se);else throw new o(Se.msg)}},{key:"_msrOnProgress",value:function(te){var se=te.target,Se=se.result;if(Se==null){this._doReconnectIfNeeded();return}var He=Se.slice(this._lastTimeBufferSize);this._lastTimeBufferSize=Se.byteLength;var Je=this._totalRange.from+this._receivedLength;this._receivedLength+=He.byteLength,this._onDataArrival&&this._onDataArrival(He,Je,this._receivedLength),Se.byteLength>=this._bufferLimit&&(T.v(this.TAG,"MSStream buffer exceeded max size near ".concat(Je+He.byteLength,", reconnecting...")),this._doReconnectIfNeeded())}},{key:"_doReconnectIfNeeded",value:function(){if(this._contentLength==null||this._receivedLength=this._contentLength&&(Se=this._range.from+this._contentLength-1)),this._currentRequestRange={from:se,to:Se},this._internalOpen(this._dataSource,this._currentRequestRange)}},{key:"_internalOpen",value:function(te,se){this._lastTimeLoaded=0;var Se=te.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?Se=this._currentRedirectedURL:te.redirectedURL!=null&&(Se=te.redirectedURL));var He=this._seekHandler.getConfig(Se,se);this._currentRequestURL=He.url;var Je=this._xhr=new XMLHttpRequest;if(Je.open("GET",He.url,!0),Je.responseType="arraybuffer",Je.onreadystatechange=this._onReadyStateChange.bind(this),Je.onprogress=this._onProgress.bind(this),Je.onload=this._onLoad.bind(this),Je.onerror=this._onXhrError.bind(this),te.withCredentials&&(Je.withCredentials=!0),typeof He.headers=="object"){var xt=He.headers;for(var Ct in xt)xt.hasOwnProperty(Ct)&&Je.setRequestHeader(Ct,xt[Ct])}if(typeof this._config.headers=="object"){var it=this._config.headers;for(var St in it)it.hasOwnProperty(St)&&Je.setRequestHeader(St,it[St])}Je.send()}},{key:"abort",value:function(){this._requestAbort=!0,this._internalAbort(),this._status=i.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(te){var se=te.target;if(se.readyState===2){if(se.responseURL!=null){var Se=this._seekHandler.removeURLParameters(se.responseURL);se.responseURL!==this._currentRequestURL&&Se!==this._currentRedirectedURL&&(this._currentRedirectedURL=Se,this._onURLRedirect&&this._onURLRedirect(Se))}if(se.status>=200&&se.status<=299){if(this._waitForTotalLength)return;this._status=i.kBuffering}else if(this._status=i.kError,this._onError)this._onError(n.HTTP_STATUS_CODE_INVALID,{code:se.status,msg:se.statusText});else throw new o("RangeLoader: Http code invalid, "+se.status+" "+se.statusText)}}},{key:"_onProgress",value:function(te){if(this._status===i.kError)return;if(this._contentLength===null){var se=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,se=!0;var Se=te.total;this._internalAbort(),Se!=null&Se!==0&&(this._totalLength=Se)}if(this._range.to===-1?this._contentLength=this._totalLength-this._range.from:this._contentLength=this._range.to-this._range.from+1,se){this._openSubRange();return}this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}var He=te.loaded-this._lastTimeLoaded;this._lastTimeLoaded=te.loaded,this._speedSampler.addBytes(He)}},{key:"_normalizeSpeed",value:function(te){var se=this._chunkSizeKBList,Se=se.length-1,He=0,Je=0,xt=Se;if(te=se[He]&&te=3&&(se=this._speedSampler.currentKBps)),se!==0){var Se=this._normalizeSpeed(se);this._currentSpeedNormalized!==Se&&(this._currentSpeedNormalized=Se,this._currentChunkSizeKB=Se)}var He=te.target.response,Je=this._range.from+this._receivedLength;this._receivedLength+=He.byteLength;var xt=!1;this._contentLength!=null&&this._receivedLength0&&this._receivedLength0)for(var He=te.split("&"),Je=0;Je0;xt[0]!==this._startName&&xt[0]!==this._endName&&(Ct&&(Se+="&"),Se+=He[Je])}return Se.length===0?q:q+"?"+Se}}]),we}(),X=G,J=function(){function we(fe,W,q){Object(ae.a)(this,we),this.TAG="IOController",this._config=W,this._extraData=q,this._stashInitialSize=1024*384,W.stashInitialSize!=null&&W.stashInitialSize>0&&(this._stashInitialSize=W.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,W.enableStashBuffer===!1&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=fe,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(fe.url),this._refTotalLength=fe.filesize?fe.filesize:null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new p,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(Z.a)(we,[{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(W){this._extraData=W}},{key:"onDataArrival",get:function(){return this._onDataArrival},set:function(W){this._onDataArrival=W}},{key:"onSeeked",get:function(){return this._onSeeked},set:function(W){this._onSeeked=W}},{key:"onError",get:function(){return this._onError},set:function(W){this._onError=W}},{key:"onComplete",get:function(){return this._onComplete},set:function(W){this._onComplete=W}},{key:"onRedirect",get:function(){return this._onRedirect},set:function(W){this._onRedirect=W}},{key:"onRecoveredEarlyEof",get:function(){return this._onRecoveredEarlyEof},set:function(W){this._onRecoveredEarlyEof=W}},{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===I?this._loader.currentSpeed:this._speedSampler.lastSecondKBps}},{key:"loaderType",get:function(){return this._loader.type}},{key:"_selectSeekHandler",value:function(){var W=this._config;if(W.seekType==="range")this._seekHandler=new j(this._config.rangeLoadZeroStart);else if(W.seekType==="param"){var q=W.seekParamStart||"bstart",te=W.seekParamEnd||"bend";this._seekHandler=new X(q,te)}else if(W.seekType==="custom"){if(typeof W.customSeekHandler!="function")throw new s("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new W.customSeekHandler}else throw new s("Invalid seekType in config: ".concat(W.seekType))}},{key:"_selectLoader",value:function(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=K;else if(E.isSupported())this._loaderClass=E;else if(x.isSupported())this._loaderClass=x;else if(I.isSupported())this._loaderClass=I;else throw new o("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(W){this._currentRange={from:0,to:-1},W&&(this._currentRange.from=W),this._speedSampler.reset(),W||(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 W=this._resumeFrom;this._resumeFrom=0,this._internalSeek(W,!0)}}},{key:"seek",value:function(W){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(W,!0)}},{key:"_internalSeek",value:function(W,q){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(q),this._loader.destroy(),this._loader=null;var te={from:W,to:-1};this._currentRange={from:te.from,to:-1},this._speedSampler.reset(),this._stashSize=this._stashInitialSize,this._createLoader(),this._loader.open(this._dataSource,te),this._onSeeked&&this._onSeeked()}},{key:"updateUrl",value:function(W){if(!W||typeof W!="string"||W.length===0)throw new s("Url must be a non-empty string!");this._dataSource.url=W}},{key:"_expandBuffer",value:function(W){for(var q=this._stashSize;q+1024*1024*10){var se=new Uint8Array(this._stashBuffer,0,this._stashUsed),Se=new Uint8Array(te,0,q);Se.set(se,0)}this._stashBuffer=te,this._bufferSize=q}},{key:"_normalizeSpeed",value:function(W){var q=this._speedNormalizeList,te=q.length-1,se=0,Se=0,He=te;if(W=q[se]&&W=512&&W<=1024?q=Math.floor(W*1.5):q=W*2,q>8192&&(q=8192);var te=q*1024+1024*1024*1;this._bufferSize0){var ht=this._stashBuffer.slice(0,this._stashUsed),Jt=this._dispatchChunks(ht,this._stashByteStart);if(Jt0){var Nt=new Uint8Array(ht,Jt);bt.set(Nt,0),this._stashUsed=Nt.byteLength,this._stashByteStart+=Jt}}else this._stashUsed=0,this._stashByteStart+=Jt;this._stashUsed+W.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+W.byteLength),bt=new Uint8Array(this._stashBuffer,0,this._bufferSize)),bt.set(new Uint8Array(W),this._stashUsed),this._stashUsed+=W.byteLength}else{var mt=this._dispatchChunks(W,q);if(mtthis._bufferSize&&(this._expandBuffer(cn),bt=new Uint8Array(this._stashBuffer,0,this._bufferSize)),bt.set(new Uint8Array(W,mt),0),this._stashUsed+=cn,this._stashByteStart=q+mt}}}else if(this._stashUsed===0){var He=this._dispatchChunks(W,q);if(Hethis._bufferSize&&this._expandBuffer(Je);var xt=new Uint8Array(this._stashBuffer,0,this._bufferSize);xt.set(new Uint8Array(W,He),0),this._stashUsed+=Je,this._stashByteStart=q+He}}else{this._stashUsed+W.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+W.byteLength);var Ct=new Uint8Array(this._stashBuffer,0,this._bufferSize);Ct.set(new Uint8Array(W),this._stashUsed),this._stashUsed+=W.byteLength;var it=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(it0){var St=new Uint8Array(this._stashBuffer,it);Ct.set(St,0)}this._stashUsed-=it,this._stashByteStart+=it}}},{key:"_flushStashBuffer",value:function(W){if(this._stashUsed>0){var q=this._stashBuffer.slice(0,this._stashUsed),te=this._dispatchChunks(q,this._stashByteStart),se=q.byteLength-te;if(te0){var Se=new Uint8Array(this._stashBuffer,0,this._bufferSize),He=new Uint8Array(q,te);Se.set(He,0),this._stashUsed=He.byteLength,this._stashByteStart+=te}return 0}return this._stashUsed=0,this._stashByteStart=0,se}return 0}},{key:"_onLoaderComplete",value:function(W,q){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}},{key:"_onLoaderError",value:function(W,q){T.e(this.TAG,"Loader error, code = ".concat(q.code,", msg = ").concat(q.msg)),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,W=n.UNRECOVERABLE_EARLY_EOF);switch(W){case n.EARLY_EOF:{if(!this._config.isLive&&this._totalLength){var te=this._currentRange.to+1;te0){var q=we.getConfig();W.emit("change",q)}}},{key:"registerListener",value:function(W){we.emitter.addListener("change",W)}},{key:"removeListener",value:function(W){we.emitter.removeListener("change",W)}},{key:"addLogListener",value:function(W){T.emitter.addListener("log",W),T.emitter.listenerCount("log")>0&&(T.ENABLE_CALLBACK=!0,we._notifyChange())}},{key:"removeLogListener",value:function(W){T.emitter.removeListener("log",W),T.emitter.listenerCount("log")===0&&(T.ENABLE_CALLBACK=!1,we._notifyChange())}}]),we}();pe.emitter=new S.a;var Oe=pe,Fe=function(){function we(){Object(ae.a)(this,we),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(Z.a)(we,[{key:"isComplete",value:function(){var W=this.hasAudio===!1||this.hasAudio===!0&&this.audioCodec!=null&&this.audioSampleRate!=null&&this.audioChannelCount!=null,q=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&&W&&q}},{key:"isSeekable",value:function(){return this.hasKeyframesIndex===!0}},{key:"getNearestKeyframe",value:function(W){if(this.keyframesIndex==null)return null;var q=this.keyframesIndex,te=this._search(q.times,W);return{index:te,milliseconds:q.times[te],fileposition:q.filepositions[te]}}},{key:"_search",value:function(W,q){var te=0,se=W.length-1,Se=0,He=0,Je=se;for(q=W[Se]&&q=128){fe.push(String.fromCharCode(se&65535)),q+=2;continue}}}else if(W[q]<240){if(Ce(W,q,2)){var Se=(W[q]&15)<<12|(W[q+1]&63)<<6|W[q+2]&63;if(Se>=2048&&(Se&63488)!==55296){fe.push(String.fromCharCode(Se&65535)),q+=3;continue}}}else if(W[q]<248&&Ce(W,q,3)){var He=(W[q]&7)<<18|(W[q+1]&63)<<12|(W[q+2]&63)<<6|W[q+3]&63;if(He>65536&&He<1114112){He-=65536,fe.push(String.fromCharCode(He>>>10|55296)),fe.push(String.fromCharCode(He&1023|56320)),q+=4;continue}}}fe.push(String.fromCharCode(65533)),++q}return fe.join("")}var de=Le,ue=function(){var we=new ArrayBuffer(2);return new DataView(we).setInt16(0,256,!0),new Int16Array(we)[0]===256}(),ke=function(){function we(){Object(ae.a)(this,we)}return Object(Z.a)(we,null,[{key:"parseScriptData",value:function(W,q,te){var se={};try{var Se=we.parseValue(W,q,te),He=we.parseValue(W,q+Se.size,te-Se.size);se[Se.data]=He.data}catch(Je){T.e("AMF",Je.toString())}return se}},{key:"parseObject",value:function(W,q,te){if(te<3)throw new c("Data not enough when parse ScriptDataObject");var se=we.parseString(W,q,te),Se=we.parseValue(W,q+se.size,te-se.size),He=Se.objectEnd;return{data:{name:se.data,value:Se.data},size:se.size+Se.size,objectEnd:He}}},{key:"parseVariable",value:function(W,q,te){return we.parseObject(W,q,te)}},{key:"parseString",value:function(W,q,te){if(te<2)throw new c("Data not enough when parse String");var se=new DataView(W,q,te),Se=se.getUint16(0,!ue),He;return Se>0?He=de(new Uint8Array(W,q+2,Se)):He="",{data:He,size:2+Se}}},{key:"parseLongString",value:function(W,q,te){if(te<4)throw new c("Data not enough when parse LongString");var se=new DataView(W,q,te),Se=se.getUint32(0,!ue),He;return Se>0?He=de(new Uint8Array(W,q+4,Se)):He="",{data:He,size:4+Se}}},{key:"parseDate",value:function(W,q,te){if(te<10)throw new c("Data size invalid when parse Date");var se=new DataView(W,q,te),Se=se.getFloat64(0,!ue),He=se.getInt16(8,!ue);return Se+=He*60*1e3,{data:new Date(Se),size:8+2}}},{key:"parseValue",value:function(W,q,te){if(te<1)throw new c("Data not enough when parse Value");var se=new DataView(W,q,te),Se=1,He=se.getUint8(0),Je,xt=!1;try{switch(He){case 0:Je=se.getFloat64(1,!ue),Se+=8;break;case 1:{var Ct=se.getUint8(1);Je=!!Ct,Se+=1;break}case 2:{var it=we.parseString(W,q+1,te-1);Je=it.data,Se+=it.size;break}case 3:{Je={};var St=0;for((se.getUint32(te-4,!ue)&16777215)===9&&(St=3);Se32)throw new s("ExpGolomb: readBits() bits exceeded max 32bits!");if(W<=this._current_word_bits_left){var q=this._current_word>>>32-W;return this._current_word<<=W,this._current_word_bits_left-=W,q}var te=this._current_word_bits_left?this._current_word:0;te=te>>>32-this._current_word_bits_left;var se=W-this._current_word_bits_left;this._fillCurrentWord();var Se=Math.min(se,this._current_word_bits_left),He=this._current_word>>>32-Se;return this._current_word<<=Se,this._current_word_bits_left-=Se,te=te<>>W)!==0)return this._current_word<<=W,this._current_word_bits_left-=W,W;return this._fillCurrentWord(),W+this._skipLeadingZero()}},{key:"readUEG",value:function(){var W=this._skipLeadingZero();return this.readBits(W+1)-1}},{key:"readSEG",value:function(){var W=this.readUEG();return W&1?W+1>>>1:-1*(W>>>1)}}]),we}(),ee=Ye,M=function(){function we(){Object(ae.a)(this,we)}return Object(Z.a)(we,null,[{key:"_ebsp2rbsp",value:function(W){for(var q=W,te=q.byteLength,se=new Uint8Array(te),Se=0,He=0;He=2&&(q[He]===3&&q[He-1]===0&&q[He-2]===0))continue;se[Se]=q[He],Se++}return new Uint8Array(se.buffer,0,Se)}},{key:"parseSPS",value:function(W){var q=we._ebsp2rbsp(W),te=new ee(q);te.readByte();var se=te.readByte();te.readByte();var Se=te.readByte();te.readUEG();var He=we.getProfileString(se),Je=we.getLevelString(Se),xt=1,Ct=420,it=[0,420,422,444],St=8;if((se===100||se===110||se===122||se===244||se===44||se===83||se===86||se===118||se===128||se===138||se===144)&&(xt=te.readUEG(),xt===3&&te.readBits(1),xt<=3&&(Ct=it[xt]),St=te.readUEG()+8,te.readUEG(),te.readBits(1),te.readBool()))for(var Xt=xt!==3?8:12,bt=0;bt0&&qn<16?(Yt=Wr[qn-1],Vt=_r[qn-1]):qn===255&&(Yt=te.readByte()<<8|te.readByte(),Vt=te.readByte()<<8|te.readByte())}if(te.readBool()&&te.readBool(),te.readBool()&&(te.readBits(4),te.readBool()&&te.readBits(24)),te.readBool()&&(te.readUEG(),te.readUEG()),te.readBool()){var Rr=te.readBits(32),Tr=te.readBits(32);sr=te.readBool(),nr=Tr,jn=Rr*2,En=nr/jn}}var Vr=1;(Yt!==1||Vt!==1)&&(Vr=Yt/Vt);var Ur=0,xi=0;if(xt===0)Ur=1,xi=2-sn;else{var kr=xt===3?1:2,Oi=xt===1?2:1;Ur=kr,xi=Oi*(2-sn)}var ri=(cn+1)*16,Xr=(2-sn)*((bn+1)*16);ri-=(dn+Nn)*Ur,Xr-=(Kt+et)*xi;var di=Math.ceil(ri*Vr);return te.destroy(),te=null,{profile_string:He,level_string:Je,bit_depth:St,ref_frames:mt,chroma_format:Ct,chroma_format_string:we.getChromaFormatString(Ct),frame_rate:{fixed:sr,fps:En,fps_den:jn,fps_num:nr},sar_ratio:{width:Yt,height:Vt},codec_size:{width:ri,height:Xr},present_size:{width:di,height:Xr}}}},{key:"_skipScalingList",value:function(W,q){for(var te=8,se=8,Se=0,He=0;He>>8&255|(we&255)<<8}function me(we){return(we&4278190080)>>>24|(we&16711680)>>>8|(we&65280)<<8|(we&255)<<24}function Re(we,fe){return we[fe]<<24|we[fe+1]<<16|we[fe+2]<<8|we[fe+3]}var rt=function(){function we(fe,W){Object(ae.a)(this,we),this.TAG="FLVDemuxer",this._config=W,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=fe.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=fe.hasAudioTrack,this._hasVideo=fe.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new Me,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 q=new ArrayBuffer(2);return new DataView(q).setInt16(0,256,!0),new Int16Array(q)[0]===256}()}return Object(Z.a)(we,[{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(W){return W.onDataArrival=this.parseChunks.bind(this),this}},{key:"onTrackMetadata",get:function(){return this._onTrackMetadata},set:function(W){this._onTrackMetadata=W}},{key:"onMediaInfo",get:function(){return this._onMediaInfo},set:function(W){this._onMediaInfo=W}},{key:"onMetaDataArrived",get:function(){return this._onMetaDataArrived},set:function(W){this._onMetaDataArrived=W}},{key:"onScriptDataArrived",get:function(){return this._onScriptDataArrived},set:function(W){this._onScriptDataArrived=W}},{key:"onError",get:function(){return this._onError},set:function(W){this._onError=W}},{key:"onDataAvailable",get:function(){return this._onDataAvailable},set:function(W){this._onDataAvailable=W}},{key:"timestampBase",get:function(){return this._timestampBase},set:function(W){this._timestampBase=W}},{key:"overridedDuration",get:function(){return this._duration},set:function(W){this._durationOverrided=!0,this._duration=W,this._mediaInfo.duration=W}},{key:"overridedHasAudio",set:function(W){this._hasAudioFlagOverrided=!0,this._hasAudio=W,this._mediaInfo.hasAudio=W}},{key:"overridedHasVideo",set:function(W){this._hasVideoFlagOverrided=!0,this._hasVideo=W,this._mediaInfo.hasVideo=W}},{key:"resetMediaInfo",value:function(){this._mediaInfo=new Me}},{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(W,q){if(!this._onError||!this._onMediaInfo||!this._onTrackMetadata||!this._onDataAvailable)throw new c("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");var te=0,se=this._littleEndian;if(q===0)if(W.byteLength>13){var Se=we.probe(W);te=Se.dataOffset}else return 0;if(this._firstParse){this._firstParse=!1,q+te!==this._dataOffset&&T.w(this.TAG,"First time parsing but chunk byteStart invalid!");var He=new DataView(W,te),Je=He.getUint32(0,!se);Je!==0&&T.w(this.TAG,"PrevTagSize0 !== 0 !!!"),te+=4}for(;teW.byteLength)break;var Ct=xt.getUint8(0),it=xt.getUint32(0,!se)&16777215;if(te+11+it+4>W.byteLength)break;if(Ct!==8&&Ct!==9&&Ct!==18){T.w(this.TAG,"Unsupported tag type ".concat(Ct,", skipped")),te+=11+it+4;continue}var St=xt.getUint8(4),Xt=xt.getUint8(5),bt=xt.getUint8(6),ht=xt.getUint8(7),Jt=bt|Xt<<8|St<<16|ht<<24,Nt=xt.getUint32(7,!se)&16777215;Nt!==0&&T.w(this.TAG,"Meet tag which has StreamID != 0!");var mt=te+11;switch(Ct){case 8:this._parseAudioData(W,mt,it,Jt);break;case 9:this._parseVideoData(W,mt,it,Jt,q+te);break;case 18:this._parseScriptData(W,mt,it);break}var cn=xt.getUint32(11+it,!se);cn!==11+it&&T.w(this.TAG,"Invalid PrevTagSize ".concat(cn)),te+=11+it+4}return this._isInitialMetadataDispatched()&&(this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack)),te}},{key:"_parseScriptData",value:function(W,q,te){var se=Ue.parseScriptData(W,q,te);if(se.hasOwnProperty("onMetaData")){if(se.onMetaData==null||typeof se.onMetaData!="object"){T.w(this.TAG,"Invalid onMetaData structure!");return}this._metadata&&T.w(this.TAG,"Found another onMetaData tag!"),this._metadata=se;var Se=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},Se)),typeof Se.hasAudio=="boolean"&&(this._hasAudioFlagOverrided===!1&&(this._hasAudio=Se.hasAudio,this._mediaInfo.hasAudio=this._hasAudio)),typeof Se.hasVideo=="boolean"&&(this._hasVideoFlagOverrided===!1&&(this._hasVideo=Se.hasVideo,this._mediaInfo.hasVideo=this._hasVideo)),typeof Se.audiodatarate=="number"&&(this._mediaInfo.audioDataRate=Se.audiodatarate),typeof Se.videodatarate=="number"&&(this._mediaInfo.videoDataRate=Se.videodatarate),typeof Se.width=="number"&&(this._mediaInfo.width=Se.width),typeof Se.height=="number"&&(this._mediaInfo.height=Se.height),typeof Se.duration=="number"){if(!this._durationOverrided){var He=Math.floor(Se.duration*this._timescale);this._duration=He,this._mediaInfo.duration=He}}else this._mediaInfo.duration=0;if(typeof Se.framerate=="number"){var Je=Math.floor(Se.framerate*1e3);if(Je>0){var xt=Je/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=xt,this._referenceFrameRate.fps_num=Je,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=xt}}if(typeof Se.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;var Ct=Se.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(Ct),Se.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=Se,T.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(se).length>0&&(this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},se)))}},{key:"_parseKeyframesIndex",value:function(W){for(var q=[],te=[],se=1;se>>4;if(xt!==2&&xt!==10){this._onError(V.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+xt);return}var Ct=0,it=(Je&12)>>>2;if(it>=0&&it<=4)Ct=this._flvSoundRateTable[it];else{this._onError(V.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+it);return}var St=(Je&2)>>>1,Xt=Je&1,bt=this._audioMetadata,ht=this._audioTrack;if(bt||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),bt=this._audioMetadata={},bt.type="audio",bt.id=ht.id,bt.timescale=this._timescale,bt.duration=this._duration,bt.audioSampleRate=Ct,bt.channelCount=Xt===0?1:2),xt===10){var Jt=this._parseAACAudioData(W,q+1,te-1);if(Jt==null)return;if(Jt.packetType===0){bt.config&&T.w(this.TAG,"Found another AudioSpecificConfig!");var Nt=Jt.data;bt.audioSampleRate=Nt.samplingRate,bt.channelCount=Nt.channelCount,bt.codec=Nt.codec,bt.originalCodec=Nt.originalCodec,bt.config=Nt.config,bt.refSampleDuration=1024/bt.audioSampleRate*bt.timescale,T.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",bt);var mt=this._mediaInfo;mt.audioCodec=bt.originalCodec,mt.audioSampleRate=bt.audioSampleRate,mt.audioChannelCount=bt.channelCount,mt.hasVideo?mt.videoCodec!=null&&(mt.mimeType='video/x-flv; codecs="'+mt.videoCodec+","+mt.audioCodec+'"'):mt.mimeType='video/x-flv; codecs="'+mt.audioCodec+'"',mt.isComplete()&&this._onMediaInfo(mt)}else if(Jt.packetType===1){var cn=this._timestampBase+se,bn={unit:Jt.data,length:Jt.data.byteLength,dts:cn,pts:cn};ht.samples.push(bn),ht.length+=Jt.data.length}else T.e(this.TAG,"Flv: Unsupported AAC data type ".concat(Jt.packetType))}else if(xt===2){if(!bt.codec){var sn=this._parseMP3AudioData(W,q+1,te-1,!0);if(sn==null)return;bt.audioSampleRate=sn.samplingRate,bt.channelCount=sn.channelCount,bt.codec=sn.codec,bt.originalCodec=sn.originalCodec,bt.refSampleDuration=1152/bt.audioSampleRate*bt.timescale,T.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",bt);var dn=this._mediaInfo;dn.audioCodec=bt.codec,dn.audioSampleRate=bt.audioSampleRate,dn.audioChannelCount=bt.channelCount,dn.audioDataRate=sn.bitRate,dn.hasVideo?dn.videoCodec!=null&&(dn.mimeType='video/x-flv; codecs="'+dn.videoCodec+","+dn.audioCodec+'"'):dn.mimeType='video/x-flv; codecs="'+dn.audioCodec+'"',dn.isComplete()&&this._onMediaInfo(dn)}var Nn=this._parseMP3AudioData(W,q+1,te-1,!1);if(Nn==null)return;var Kt=this._timestampBase+se,et={unit:Nn,length:Nn.byteLength,dts:Kt,pts:Kt};ht.samples.push(et),ht.length+=Nn.length}}},{key:"_parseAACAudioData",value:function(W,q,te){if(te<=1){T.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}var se={},Se=new Uint8Array(W,q,te);return se.packetType=Se[0],Se[0]===0?se.data=this._parseAACAudioSpecificConfig(W,q+1,te-1):se.data=Se.subarray(1),se}},{key:"_parseAACAudioSpecificConfig",value:function(W,q,te){var se=new Uint8Array(W,q,te),Se=null,He=0,Je=0,xt=null,Ct=0,it=null;if(He=Je=se[0]>>>3,Ct=(se[0]&7)<<1|se[1]>>>7,Ct<0||Ct>=this._mpegSamplingRates.length){this._onError(V.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}var St=this._mpegSamplingRates[Ct],Xt=(se[1]&120)>>>3;if(Xt<0||Xt>=8){this._onError(V.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}He===5&&(it=(se[1]&7)<<1|se[2]>>>7,xt=(se[2]&124)>>>2);var bt=self.navigator.userAgent.toLowerCase();return bt.indexOf("firefox")!==-1?Ct>=6?(He=5,Se=new Array(4),it=Ct-3):(He=2,Se=new Array(2),it=Ct):bt.indexOf("android")!==-1?(He=2,Se=new Array(2),it=Ct):(He=5,it=Ct,Se=new Array(4),Ct>=6?it=Ct-3:Xt===1&&(He=2,Se=new Array(2),it=Ct)),Se[0]=He<<3,Se[0]|=(Ct&15)>>>1,Se[1]=(Ct&15)<<7,Se[1]|=(Xt&15)<<3,He===5&&(Se[1]|=(it&15)>>>1,Se[2]=(it&1)<<7,Se[2]|=2<<2,Se[3]=0),{config:Se,samplingRate:St,channelCount:Xt,codec:"mp4a.40."+He,originalCodec:"mp4a.40."+Je}}},{key:"_parseMP3AudioData",value:function(W,q,te,se){if(te<4){T.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}var Se=this._littleEndian,He=new Uint8Array(W,q,te),Je=null;if(se){if(He[0]!==255)return;var xt=He[1]>>>3&3,Ct=(He[1]&6)>>1,it=(He[2]&240)>>>4,St=(He[2]&12)>>>2,Xt=He[3]>>>6&3,bt=Xt!==3?2:1,ht=0,Jt=0,Nt=34,mt="mp3";switch(xt){case 0:ht=this._mpegAudioV25SampleRateTable[St];break;case 2:ht=this._mpegAudioV20SampleRateTable[St];break;case 3:ht=this._mpegAudioV10SampleRateTable[St];break}switch(Ct){case 1:Nt=34,it>>4,xt=He&15;if(xt!==7){this._onError(V.CODEC_UNSUPPORTED,"Flv: Unsupported codec in video frame: ".concat(xt));return}this._parseAVCVideoPacket(W,q+1,te-1,se,Se,Je)}},{key:"_parseAVCVideoPacket",value:function(W,q,te,se,Se,He){if(te<4){T.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}var Je=this._littleEndian,xt=new DataView(W,q,te),Ct=xt.getUint8(0),it=xt.getUint32(0,!Je)&16777215,St=it<<8>>8;if(Ct===0)this._parseAVCDecoderConfigurationRecord(W,q+4,te-4);else if(Ct===1)this._parseAVCVideoData(W,q+4,te-4,se,Se,He,St);else if(!(Ct===2)){this._onError(V.FORMAT_ERROR,"Flv: Invalid video packet type ".concat(Ct));return}}},{key:"_parseAVCDecoderConfigurationRecord",value:function(W,q,te){if(te<7){T.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");return}var se=this._videoMetadata,Se=this._videoTrack,He=this._littleEndian,Je=new DataView(W,q,te);se?typeof se.avcc!="undefined"&&T.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(this._hasVideo===!1&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),se=this._videoMetadata={},se.type="video",se.id=Se.id,se.timescale=this._timescale,se.duration=this._duration);var xt=Je.getUint8(0),Ct=Je.getUint8(1),it=Je.getUint8(2),St=Je.getUint8(3);if(xt!==1||Ct===0){this._onError(V.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(Je.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(V.FORMAT_ERROR,"Flv: Strange NaluLengthSizeMinusOne: ".concat(this._naluLengthSize-1));return}var Xt=Je.getUint8(5)&31;if(Xt===0){this._onError(V.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else Xt>1&&T.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ".concat(Xt));for(var bt=6,ht=0;ht1&&T.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ".concat(Ut));bt++;for(var Yt=0;Yt=te){T.w(this.TAG,"Malformed Nalu near timestamp ".concat(ht,", offset = ").concat(Xt,", dataSize = ").concat(te));break}var Nt=Ct.getUint32(Xt,!xt);if(bt===3&&(Nt>>>=8),Nt>te-bt){T.w(this.TAG,"Malformed Nalus near timestamp ".concat(ht,", NaluSize > DataSize!"));return}var mt=Ct.getUint8(Xt+bt)&31;mt===5&&(Jt=!0);var cn=new Uint8Array(W,q+Xt,bt+Nt),bn={type:mt,data:cn};it.push(bn),St+=cn.byteLength,Xt+=bt+Nt}if(it.length){var sn=this._videoTrack,dn={units:it,length:St,isKeyframe:Jt,dts:ht,cts:Je,pts:ht+Je};Jt&&(dn.fileposition=Se),sn.samples.push(dn),sn.length+=St}}}],[{key:"probe",value:function(W){var q=new Uint8Array(W),te={match:!1};if(q[0]!==70||q[1]!==76||q[2]!==86||q[3]!==1)return te;var se=(q[4]&4)>>>2!==0,Se=(q[4]&1)!==0,He=Re(q,5);return He<9?te:{match:!0,consumed:He,dataOffset:He,hasAudioTrack:se,hasVideoTrack:Se}}}]),we}(),Pe=rt,Ie=function(){function we(){Object(ae.a)(this,we)}return Object(Z.a)(we,null,[{key:"init",value:function(){we.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 W in we.types)we.types.hasOwnProperty(W)&&(we.types[W]=[W.charCodeAt(0),W.charCodeAt(1),W.charCodeAt(2),W.charCodeAt(3)]);var q=we.constants={};q.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),q.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),q.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),q.STSC=q.STCO=q.STTS,q.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),q.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]),q.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]),q.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),q.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),q.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}},{key:"box",value:function(W){for(var q=8,te=null,se=Array.prototype.slice.call(arguments,1),Se=se.length,He=0;He>>24&255,te[1]=q>>>16&255,te[2]=q>>>8&255,te[3]=q&255,te.set(W,4);for(var Je=8,xt=0;xt>>24&255,W>>>16&255,W>>>8&255,W&255,q>>>24&255,q>>>16&255,q>>>8&255,q&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(W){return we.box(we.types.trak,we.tkhd(W),we.mdia(W))}},{key:"tkhd",value:function(W){var q=W.id,te=W.duration,se=W.presentWidth,Se=W.presentHeight;return we.box(we.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,q>>>24&255,q>>>16&255,q>>>8&255,q&255,0,0,0,0,te>>>24&255,te>>>16&255,te>>>8&255,te&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,se>>>8&255,se&255,0,0,Se>>>8&255,Se&255,0,0]))}},{key:"mdia",value:function(W){return we.box(we.types.mdia,we.mdhd(W),we.hdlr(W),we.minf(W))}},{key:"mdhd",value:function(W){var q=W.timescale,te=W.duration;return we.box(we.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,q>>>24&255,q>>>16&255,q>>>8&255,q&255,te>>>24&255,te>>>16&255,te>>>8&255,te&255,85,196,0,0]))}},{key:"hdlr",value:function(W){var q=null;return W.type==="audio"?q=we.constants.HDLR_AUDIO:q=we.constants.HDLR_VIDEO,we.box(we.types.hdlr,q)}},{key:"minf",value:function(W){var q=null;return W.type==="audio"?q=we.box(we.types.smhd,we.constants.SMHD):q=we.box(we.types.vmhd,we.constants.VMHD),we.box(we.types.minf,q,we.dinf(),we.stbl(W))}},{key:"dinf",value:function(){var W=we.box(we.types.dinf,we.box(we.types.dref,we.constants.DREF));return W}},{key:"stbl",value:function(W){var q=we.box(we.types.stbl,we.stsd(W),we.box(we.types.stts,we.constants.STTS),we.box(we.types.stsc,we.constants.STSC),we.box(we.types.stsz,we.constants.STSZ),we.box(we.types.stco,we.constants.STCO));return q}},{key:"stsd",value:function(W){return W.type==="audio"?W.codec==="mp3"?we.box(we.types.stsd,we.constants.STSD_PREFIX,we.mp3(W)):we.box(we.types.stsd,we.constants.STSD_PREFIX,we.mp4a(W)):we.box(we.types.stsd,we.constants.STSD_PREFIX,we.avc1(W))}},{key:"mp3",value:function(W){var q=W.channelCount,te=W.audioSampleRate,se=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,q,0,16,0,0,0,0,te>>>8&255,te&255,0,0]);return we.box(we.types[".mp3"],se)}},{key:"mp4a",value:function(W){var q=W.channelCount,te=W.audioSampleRate,se=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,q,0,16,0,0,0,0,te>>>8&255,te&255,0,0]);return we.box(we.types.mp4a,se,we.esds(W))}},{key:"esds",value:function(W){var q=W.config||[],te=q.length,se=new Uint8Array([0,0,0,0,3,23+te,0,1,0,4,15+te,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([te]).concat(q).concat([6,1,2]));return we.box(we.types.esds,se)}},{key:"avc1",value:function(W){var q=W.avcc,te=W.codecWidth,se=W.codecHeight,Se=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,te>>>8&255,te&255,se>>>8&255,se&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 we.box(we.types.avc1,Se,we.box(we.types.avcC,q))}},{key:"mvex",value:function(W){return we.box(we.types.mvex,we.trex(W))}},{key:"trex",value:function(W){var q=W.id,te=new Uint8Array([0,0,0,0,q>>>24&255,q>>>16&255,q>>>8&255,q&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return we.box(we.types.trex,te)}},{key:"moof",value:function(W,q){return we.box(we.types.moof,we.mfhd(W.sequenceNumber),we.traf(W,q))}},{key:"mfhd",value:function(W){var q=new Uint8Array([0,0,0,0,W>>>24&255,W>>>16&255,W>>>8&255,W&255]);return we.box(we.types.mfhd,q)}},{key:"traf",value:function(W,q){var te=W.id,se=we.box(we.types.tfhd,new Uint8Array([0,0,0,0,te>>>24&255,te>>>16&255,te>>>8&255,te&255])),Se=we.box(we.types.tfdt,new Uint8Array([0,0,0,0,q>>>24&255,q>>>16&255,q>>>8&255,q&255])),He=we.sdtp(W),Je=we.trun(W,He.byteLength+16+16+8+16+8+8);return we.box(we.types.traf,se,Se,Je,He)}},{key:"sdtp",value:function(W){for(var q=W.samples||[],te=q.length,se=new Uint8Array(4+te),Se=0;Se>>24&255,se>>>16&255,se>>>8&255,se&255,q>>>24&255,q>>>16&255,q>>>8&255,q&255],0);for(var Je=0;Je>>24&255,xt>>>16&255,xt>>>8&255,xt&255,Ct>>>24&255,Ct>>>16&255,Ct>>>8&255,Ct&255,it.isLeading<<2|it.dependsOn,it.isDependedOn<<6|it.hasRedundancy<<4|it.isNonSync,0,0,St>>>24&255,St>>>16&255,St>>>8&255,St&255],12+16*Je)}return we.box(we.types.trun,He)}},{key:"mdat",value:function(W){return we.box(we.types.mdat,W)}}]),we}();Ie.init();var Xe=Ie,tt=function(){function we(){Object(ae.a)(this,we)}return Object(Z.a)(we,null,[{key:"getSilentFrame",value:function(W,q){if(W==="mp4a.40.2"){if(q===1)return new Uint8Array([0,200,0,128,35,128]);if(q===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(q===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(q===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(q===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(q===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(q===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(q===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(q===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}}]),we}(),Ve=tt,Ke=function we(fe,W,q,te,se){Object(ae.a)(this,we),this.dts=fe,this.pts=W,this.duration=q,this.originalDts=te,this.isSyncPoint=se,this.fileposition=null},Ne=function(){function we(){Object(ae.a)(this,we),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(Z.a)(we,[{key:"appendSyncPoint",value:function(W){W.isSyncPoint=!0,this.syncPoints.push(W)}}]),we}(),De=function(){function we(){Object(ae.a)(this,we),this._list=[]}return Object(Z.a)(we,[{key:"clear",value:function(){this._list=[]}},{key:"appendArray",value:function(W){var q=this._list;if(W.length===0)return;q.length>0&&W[0].originalDts=q[Se].dts&&Wq[se].lastSample.originalDts&&W=q[se].lastSample.originalDts&&(se===q.length-1||se0&&(Se=this._searchNearestSegmentBefore(te.originalBeginDts)+1),this._lastAppendLocation=Se,this._list.splice(Se,0,te)}},{key:"getLastSegmentBefore",value:function(W){var q=this._searchNearestSegmentBefore(W);return q>=0?this._list[q]:null}},{key:"getLastSampleBefore",value:function(W){var q=this.getLastSegmentBefore(W);return q!=null?q.lastSample:null}},{key:"getLastSyncPointBefore",value:function(W){for(var q=this._searchNearestSegmentBefore(W),te=this._list[q].syncPoints;te.length===0&&q>0;)q--,te=this._list[q].syncPoints;return te.length>0?te[te.length-1]:null}}]),we}(),he=function(){function we(fe){Object(ae.a)(this,we),this.TAG="MP4Remuxer",this._config=fe,this._isLive=fe.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 _e("audio"),this._videoSegmentInfoList=new _e("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!!(v.chrome&&(v.version.major<50||v.version.major===50&&v.version.build<2661)),this._fillSilentAfterSeek=v.msedge||v.msie,this._mp3UseMpegAudio=!v.firefox,this._fillAudioTimestampGap=this._config.fixAudioTimestampGap}return Object(Z.a)(we,[{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(W){return W.onDataAvailable=this.remux.bind(this),W.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this}},{key:"onInitSegment",get:function(){return this._onInitSegment},set:function(W){this._onInitSegment=W}},{key:"onMediaSegment",get:function(){return this._onMediaSegment},set:function(W){this._onMediaSegment=W}},{key:"insertDiscontinuity",value:function(){this._audioNextDts=this._videoNextDts=void 0}},{key:"seek",value:function(W){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()}},{key:"remux",value:function(W,q){if(!this._onMediaSegment)throw new c("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(W,q),this._remuxVideo(q),this._remuxAudio(W)}},{key:"_onTrackMetadataReceived",value:function(W,q){var te=null,se="mp4",Se=q.codec;if(W==="audio")this._audioMeta=q,q.codec==="mp3"&&this._mp3UseMpegAudio?(se="mpeg",Se="",te=new Uint8Array):te=Xe.generateInitSegment(q);else if(W==="video")this._videoMeta=q,te=Xe.generateInitSegment(q);else return;if(!this._onInitSegment)throw new c("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(W,{type:W,data:te.buffer,codec:Se,container:"".concat(W,"/").concat(se),mediaDuration:q.duration})}},{key:"_calculateDtsBase",value:function(W,q){if(this._dtsBaseInited)return;W.samples&&W.samples.length&&(this._audioDtsBase=W.samples[0].dts),q.samples&&q.samples.length&&(this._videoDtsBase=q.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0}},{key:"flushStashedSamples",value:function(){var W=this._videoStashedLastSample,q=this._audioStashedLastSample,te={type:"video",id:1,sequenceNumber:0,samples:[],length:0};W!=null&&(te.samples.push(W),te.length=W.length);var se={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};q!=null&&(se.samples.push(q),se.length=q.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(te,!0),this._remuxAudio(se,!0)}},{key:"_remuxAudio",value:function(W,q){if(this._audioMeta==null)return;var te=W,se=te.samples,Se=void 0,He=-1,Je=-1,xt=-1,Ct=this._audioMeta.refSampleDuration,it=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,St=this._dtsBaseInited&&this._audioNextDts===void 0,Xt=!1;if(!se||se.length===0)return;if(se.length===1&&!q)return;var bt=0,ht=null,Jt=0;it?(bt=0,Jt=te.length):(bt=8,Jt=8+te.length);var Nt=null;if(se.length>1&&(Nt=se.pop(),Jt-=Nt.length),this._audioStashedLastSample!=null){var mt=this._audioStashedLastSample;this._audioStashedLastSample=null,se.unshift(mt),Jt+=mt.length}Nt!=null&&(this._audioStashedLastSample=Nt);var cn=se[0].dts-this._dtsBase;if(this._audioNextDts)Se=cn-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())Se=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&(this._audioMeta.originalCodec!=="mp3"&&(Xt=!0));else{var bn=this._audioSegmentInfoList.getLastSampleBefore(cn);if(bn!=null){var sn=cn-(bn.originalDts+bn.duration);sn<=3&&(sn=0);var dn=bn.dts+bn.duration+sn;Se=cn-dn}else Se=0}if(Xt){var Nn=cn-Se,Kt=this._videoSegmentInfoList.getLastSegmentBefore(cn);if(Kt!=null&&Kt.beginDts=1?qn=Vt[Vt.length-1].duration:qn=Math.floor(Ct);var Rr=!1,Tr=null;if(qn>Ct*1.5&&this._audioMeta.codec!=="mp3"&&this._fillAudioTimestampGap&&!v.safari){Rr=!0;var Vr=Math.abs(qn-Ct),Ur=Math.ceil(Vr/Ct),xi=cr+Ct;T.w(this.TAG,`Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync.
`+"dts: ".concat(cr+qn," ms, expected: ").concat(cr+Math.round(Ct)," ms, ")+"delta: ".concat(Math.round(Vr)," ms, generate: ").concat(Ur," frames"));var kr=Ve.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);kr==null&&(T.w(this.TAG,"Unable to generate silent frame for "+"".concat(this._audioMeta.originalCodec," with ").concat(this._audioMeta.channelCount," channels, repeat last frame")),kr=nr),Tr=[];for(var Oi=0;Oi0){var Xr=Tr[Tr.length-1];Xr.duration=ri-Xr.dts}var di={dts:ri,pts:ri,cts:0,unit:kr,size:kr.byteLength,duration:0,originalDts:jn,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};Tr.push(di),Jt+=di.size,xi+=Ct}var Si=Tr[Tr.length-1];Si.duration=cr+qn-Si.dts,qn=Math.round(Ct)}Vt.push({dts:cr,pts:cr,cts:0,unit:sr.unit,size:sr.unit.byteLength,duration:qn,originalDts:jn,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),Rr&&Vt.push.apply(Vt,Tr)}it?ht=new Uint8Array(Jt):(ht=new Uint8Array(Jt),ht[0]=Jt>>>24&255,ht[1]=Jt>>>16&255,ht[2]=Jt>>>8&255,ht[3]=Jt&255,ht.set(Xe.types.mdat,4));for(var si=0;si1&&(bt=se.pop(),Xt-=bt.length),this._videoStashedLastSample!=null){var ht=this._videoStashedLastSample;this._videoStashedLastSample=null,se.unshift(ht),Xt+=ht.length}bt!=null&&(this._videoStashedLastSample=bt);var Jt=se[0].dts-this._dtsBase;if(this._videoNextDts)Se=Jt-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())Se=0;else{var Nt=this._videoSegmentInfoList.getLastSampleBefore(Jt);if(Nt!=null){var mt=Jt-(Nt.originalDts+Nt.duration);mt<=3&&(mt=0);var cn=Nt.dts+Nt.duration+mt;Se=Jt-cn}else Se=0}for(var bn=new Ne,sn=[],dn=0;dn=1?En=sn[sn.length-1].duration:En=Math.floor(this._videoMeta.refSampleDuration);if(et){var jn=new Ke(Ut,Vt,En,Nn.dts,!0);jn.fileposition=Nn.fileposition,bn.appendSyncPoint(jn)}sn.push({dts:Ut,pts:Vt,cts:Yt,units:Nn.units,size:Nn.length,isKeyframe:et,duration:En,originalDts:Kt,flags:{isLeading:0,dependsOn:et?2:1,isDependedOn:et?1:0,hasRedundancy:0,isNonSync:et?0:1}})}St=new Uint8Array(Xt),St[0]=Xt>>>24&255,St[1]=Xt>>>16&255,St[2]=Xt>>>8&255,St[3]=Xt&255,St.set(Xe.types.mdat,4);for(var cr=0;cr0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,Se=this._demuxer.parseChunks(W,q);else if((se=Pe.probe(W)).match){this._demuxer=new Pe(se,this._config),this._remuxer||(this._remuxer=new ve(this._config));var He=this._mediaDataSource;He.duration!=null&&!isNaN(He.duration)&&(this._demuxer.overridedDuration=He.duration),typeof He.hasAudio=="boolean"&&(this._demuxer.overridedHasAudio=He.hasAudio),typeof He.hasVideo=="boolean"&&(this._demuxer.overridedHasVideo=He.hasVideo),this._demuxer.timestampBase=He.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),Se=this._demuxer.parseChunks(W,q)}else se=null,T.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(function(){te._internalAbort()}),this._emitter.emit(be.DEMUX_ERROR,V.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),Se=0;return Se}},{key:"_onMediaInfo",value:function(W){var q=this;this._mediaInfo==null&&(this._mediaInfo=Object.assign({},W),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,Me.prototype));var te=Object.assign({},W);Object.setPrototypeOf(te,Me.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=te,this._reportSegmentMediaInfo(this._currentSegmentIndex),this._pendingSeekTime!=null&&Promise.resolve().then(function(){var se=q._pendingSeekTime;q._pendingSeekTime=null,q.seek(se)})}},{key:"_onMetaDataArrived",value:function(W){this._emitter.emit(be.METADATA_ARRIVED,W)}},{key:"_onScriptDataArrived",value:function(W){this._emitter.emit(be.SCRIPTDATA_ARRIVED,W)}},{key:"_onIOSeeked",value:function(){this._remuxer.insertDiscontinuity()}},{key:"_onIOComplete",value:function(W){var q=W,te=q+1;te0&&te[0].originalDts===se&&(se=te[0].pts),this._emitter.emit(be.RECOMMEND_SEEKPOINT,se)}}},{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(W){var q=this._mediaInfo.segments[W],te=Object.assign({},q);te.duration=this._mediaInfo.duration,te.segmentCount=this._mediaInfo.segmentCount,delete te.segments,delete te.keyframesIndex,this._emitter.emit(be.MEDIA_INFO,te)}},{key:"_reportStatisticsInfo",value:function(){var W={};W.url=this._ioctl.currentURL,W.hasRedirect=this._ioctl.hasRedirect,W.hasRedirect&&(W.redirectedURL=this._ioctl.currentRedirectedURL),W.speed=this._ioctl.currentSpeed,W.loaderType=this._ioctl.loaderType,W.currentSegmentIndex=this._currentSegmentIndex,W.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(be.STATISTICS_INFO,W)}}]),we}(),qe=Ge,pt=function(fe){var W="TransmuxingWorker",q=null,te=Jt.bind(this);w.install(),fe.addEventListener("message",function(Nt){switch(Nt.data.cmd){case"init":q=new qe(Nt.data.param[0],Nt.data.param[1]),q.on(be.IO_ERROR,Xt.bind(this)),q.on(be.DEMUX_ERROR,bt.bind(this)),q.on(be.INIT_SEGMENT,se.bind(this)),q.on(be.MEDIA_SEGMENT,Se.bind(this)),q.on(be.LOADING_COMPLETE,He.bind(this)),q.on(be.RECOVERED_EARLY_EOF,Je.bind(this)),q.on(be.MEDIA_INFO,xt.bind(this)),q.on(be.METADATA_ARRIVED,Ct.bind(this)),q.on(be.SCRIPTDATA_ARRIVED,it.bind(this)),q.on(be.STATISTICS_INFO,St.bind(this)),q.on(be.RECOMMEND_SEEKPOINT,ht.bind(this));break;case"destroy":q&&(q.destroy(),q=null),fe.postMessage({msg:"destroyed"});break;case"start":q.start();break;case"stop":q.stop();break;case"seek":q.seek(Nt.data.param);break;case"pause":q.pause();break;case"resume":q.resume();break;case"logging_config":{var mt=Nt.data.param;Oe.applyConfig(mt),mt.enableCallback===!0?Oe.addLogListener(te):Oe.removeLogListener(te);break}}});function se(Nt,mt){var cn={msg:be.INIT_SEGMENT,data:{type:Nt,data:mt}};fe.postMessage(cn,[mt.data])}function Se(Nt,mt){var cn={msg:be.MEDIA_SEGMENT,data:{type:Nt,data:mt}};fe.postMessage(cn,[mt.data])}function He(){var Nt={msg:be.LOADING_COMPLETE};fe.postMessage(Nt)}function Je(){var Nt={msg:be.RECOVERED_EARLY_EOF};fe.postMessage(Nt)}function xt(Nt){var mt={msg:be.MEDIA_INFO,data:Nt};fe.postMessage(mt)}function Ct(Nt){var mt={msg:be.METADATA_ARRIVED,data:Nt};fe.postMessage(mt)}function it(Nt){var mt={msg:be.SCRIPTDATA_ARRIVED,data:Nt};fe.postMessage(mt)}function St(Nt){var mt={msg:be.STATISTICS_INFO,data:Nt};fe.postMessage(mt)}function Xt(Nt,mt){fe.postMessage({msg:be.IO_ERROR,data:{type:Nt,info:mt}})}function bt(Nt,mt){fe.postMessage({msg:be.DEMUX_ERROR,data:{type:Nt,info:mt}})}function ht(Nt){fe.postMessage({msg:be.RECOMMEND_SEEKPOINT,data:Nt})}function Jt(Nt,mt){fe.postMessage({msg:"logcat_callback",data:{type:Nt,logcat:mt}})}},Pt=pt,Rt=function(){function we(fe,W){if(Object(ae.a)(this,we),this.TAG="Transmuxer",this._emitter=new S.a,W.enableWorker&&typeof Worker!="undefined")try{var q=z("0r65");this._worker=q(Pt),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[fe,W]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},Oe.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:Oe.getConfig()})}catch(se){T.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new qe(fe,W)}else this._controller=new qe(fe,W);if(this._controller){var te=this._controller;te.on(be.IO_ERROR,this._onIOError.bind(this)),te.on(be.DEMUX_ERROR,this._onDemuxError.bind(this)),te.on(be.INIT_SEGMENT,this._onInitSegment.bind(this)),te.on(be.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),te.on(be.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),te.on(be.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),te.on(be.MEDIA_INFO,this._onMediaInfo.bind(this)),te.on(be.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),te.on(be.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),te.on(be.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),te.on(be.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}return Object(Z.a)(we,[{key:"destroy",value:function(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),Oe.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(W,q){this._emitter.addListener(W,q)}},{key:"off",value:function(W,q){this._emitter.removeListener(W,q)}},{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(W){this._worker?this._worker.postMessage({cmd:"seek",param:W}):this._controller.seek(W)}},{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(W,q){var te=this;Promise.resolve().then(function(){te._emitter.emit(be.INIT_SEGMENT,W,q)})}},{key:"_onMediaSegment",value:function(W,q){var te=this;Promise.resolve().then(function(){te._emitter.emit(be.MEDIA_SEGMENT,W,q)})}},{key:"_onLoadingComplete",value:function(){var W=this;Promise.resolve().then(function(){W._emitter.emit(be.LOADING_COMPLETE)})}},{key:"_onRecoveredEarlyEof",value:function(){var W=this;Promise.resolve().then(function(){W._emitter.emit(be.RECOVERED_EARLY_EOF)})}},{key:"_onMediaInfo",value:function(W){var q=this;Promise.resolve().then(function(){q._emitter.emit(be.MEDIA_INFO,W)})}},{key:"_onMetaDataArrived",value:function(W){var q=this;Promise.resolve().then(function(){q._emitter.emit(be.METADATA_ARRIVED,W)})}},{key:"_onScriptDataArrived",value:function(W){var q=this;Promise.resolve().then(function(){q._emitter.emit(be.SCRIPTDATA_ARRIVED,W)})}},{key:"_onStatisticsInfo",value:function(W){var q=this;Promise.resolve().then(function(){q._emitter.emit(be.STATISTICS_INFO,W)})}},{key:"_onIOError",value:function(W,q){var te=this;Promise.resolve().then(function(){te._emitter.emit(be.IO_ERROR,W,q)})}},{key:"_onDemuxError",value:function(W,q){var te=this;Promise.resolve().then(function(){te._emitter.emit(be.DEMUX_ERROR,W,q)})}},{key:"_onRecommendSeekpoint",value:function(W){var q=this;Promise.resolve().then(function(){q._emitter.emit(be.RECOMMEND_SEEKPOINT,W)})}},{key:"_onLoggingConfigChanged",value:function(W){this._worker&&this._worker.postMessage({cmd:"logging_config",param:W})}},{key:"_onWorkerMessage",value:function(W){var q=W.data,te=q.data;if(q.msg==="destroyed"||this._workerDestroying){this._workerDestroying=!1,this._worker.terminate(),this._worker=null;return}switch(q.msg){case be.INIT_SEGMENT:case be.MEDIA_SEGMENT:this._emitter.emit(q.msg,te.type,te.data);break;case be.LOADING_COMPLETE:case be.RECOVERED_EARLY_EOF:this._emitter.emit(q.msg);break;case be.MEDIA_INFO:Object.setPrototypeOf(te,Me.prototype),this._emitter.emit(q.msg,te);break;case be.METADATA_ARRIVED:case be.SCRIPTDATA_ARRIVED:case be.STATISTICS_INFO:this._emitter.emit(q.msg,te);break;case be.IO_ERROR:case be.DEMUX_ERROR:this._emitter.emit(q.msg,te.type,te.info);break;case be.RECOMMEND_SEEKPOINT:this._emitter.emit(q.msg,te);break;case"logcat_callback":T.emitter.emit("log",te.type,te.logcat);break;default:break}}}]),we}(),Mt=Rt,wt={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"},lt=wt,ft=function(){function we(fe){Object(ae.a)(this,we),this.TAG="MSEController",this._config=fe,this._emitter=new S.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 De}return Object(Z.a)(we,[{key:"destroy",value:function(){(this._mediaElement||this._mediaSource)&&this.detachMediaElement(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(W,q){this._emitter.addListener(W,q)}},{key:"off",value:function(W,q){this._emitter.removeListener(W,q)}},{key:"attachMediaElement",value:function(W){if(this._mediaSource)throw new c("MediaSource has been attached to an HTMLMediaElement!");var q=this._mediaSource=new window.MediaSource;q.addEventListener("sourceopen",this.e.onSourceOpen),q.addEventListener("sourceended",this.e.onSourceEnded),q.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=W,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),W.src=this._mediaSourceObjectURL}},{key:"detachMediaElement",value:function(){if(this._mediaSource){var W=this._mediaSource;for(var q in this._sourceBuffers){var te=this._pendingSegments[q];te.splice(0,te.length),this._pendingSegments[q]=null,this._pendingRemoveRanges[q]=null,this._lastInitSegments[q]=null;var se=this._sourceBuffers[q];if(se){if(W.readyState!=="closed"){try{W.removeSourceBuffer(se)}catch(Se){T.e(this.TAG,Se.message)}se.removeEventListener("error",this.e.onSourceBufferError),se.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[q]=null,this._sourceBuffers[q]=null}}if(W.readyState==="open")try{W.endOfStream()}catch(Se){T.e(this.TAG,Se.message)}W.removeEventListener("sourceopen",this.e.onSourceOpen),W.removeEventListener("sourceended",this.e.onSourceEnded),W.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(W,q){if(!this._mediaSource||this._mediaSource.readyState!=="open"){this._pendingSourceBufferInit.push(W),this._pendingSegments[W.type].push(W);return}var te=W,se="".concat(te.container);te.codec&&te.codec.length>0&&(se+=";codecs=".concat(te.codec));var Se=!1;if(T.v(this.TAG,"Received Initialization Segment, mimeType: "+se),this._lastInitSegments[te.type]=te,se!==this._mimeTypes[te.type]){if(this._mimeTypes[te.type])T.v(this.TAG,"Notice: ".concat(te.type," mimeType changed, origin: ").concat(this._mimeTypes[te.type],", target: ").concat(se));else{Se=!0;try{var He=this._sourceBuffers[te.type]=this._mediaSource.addSourceBuffer(se);He.addEventListener("error",this.e.onSourceBufferError),He.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(Je){T.e(this.TAG,Je.message),this._emitter.emit(lt.ERROR,{code:Je.code,msg:Je.message});return}}this._mimeTypes[te.type]=se}q||this._pendingSegments[te.type].push(te),Se||this._sourceBuffers[te.type]&&!this._sourceBuffers[te.type].updating&&this._doAppendSegments(),v.safari&&te.container==="audio/mpeg"&&te.mediaDuration>0&&(this._requireSetMediaDuration=!0,this._pendingMediaDuration=te.mediaDuration/1e3,this._updateMediaSourceDuration())}},{key:"appendMediaSegment",value:function(W){var q=W;this._pendingSegments[q.type].push(q),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();var te=this._sourceBuffers[q.type];te&&!te.updating&&!this._hasPendingRemoveRanges()&&this._doAppendSegments()}},{key:"seek",value:function(W){for(var q in this._sourceBuffers){if(!this._sourceBuffers[q])continue;var te=this._sourceBuffers[q];if(this._mediaSource.readyState==="open")try{te.abort()}catch(Ct){T.e(this.TAG,Ct.message)}this._idrList.clear();var se=this._pendingSegments[q];if(se.splice(0,se.length),this._mediaSource.readyState==="closed")continue;for(var Se=0;Se=1&&W-se.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1}},{key:"_doCleanupSourceBuffer",value:function(){var W=this._mediaElement.currentTime;for(var q in this._sourceBuffers){var te=this._sourceBuffers[q];if(te){for(var se=te.buffered,Se=!1,He=0;He=this._config.autoCleanupMaxBackwardDuration){Se=!0;var Ct=W-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[q].push({start:Je,end:Ct})}}else xt0&&(isNaN(q)||te>q)&&(T.v(this.TAG,"Update MediaSource duration from ".concat(q," to ").concat(te)),this._mediaSource.duration=te),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}},{key:"_doRemoveRanges",value:function(){for(var W in this._pendingRemoveRanges){if(!this._sourceBuffers[W]||this._sourceBuffers[W].updating)continue;for(var q=this._sourceBuffers[W],te=this._pendingRemoveRanges[W];te.length&&!q.updating;){var se=te.shift();q.remove(se.start,se.end)}}}},{key:"_doAppendSegments",value:function(){var W=this._pendingSegments;for(var q in W){if(!this._sourceBuffers[q]||this._sourceBuffers[q].updating)continue;if(W[q].length>0){var te=W[q].shift();if(te.timestampOffset){var se=this._sourceBuffers[q].timestampOffset,Se=te.timestampOffset/1e3,He=Math.abs(se-Se);He>.1&&(T.v(this.TAG,"Update MPEG audio timestampOffset from ".concat(se," to ").concat(Se)),this._sourceBuffers[q].timestampOffset=Se),delete te.timestampOffset}if(!te.data||te.data.byteLength===0)continue;try{this._sourceBuffers[q].appendBuffer(te.data),this._isBufferFull=!1,q==="video"&&te.hasOwnProperty("info")&&this._idrList.appendArray(te.info.syncPoints)}catch(Je){this._pendingSegments[q].unshift(te),Je.code===22?(this._isBufferFull||this._emitter.emit(lt.BUFFER_FULL),this._isBufferFull=!0):(T.e(this.TAG,Je.message),this._emitter.emit(lt.ERROR,{code:Je.code,msg:Je.message}))}}}}},{key:"_onSourceOpen",value:function(){if(T.v(this.TAG,"MediaSource onSourceOpen"),this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._pendingSourceBufferInit.length>0)for(var W=this._pendingSourceBufferInit;W.length;){var q=W.shift();this.appendInitSegment(q,!0)}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(lt.SOURCE_OPEN)}},{key:"_onSourceEnded",value:function(){T.v(this.TAG,"MediaSource onSourceEnded")}},{key:"_onSourceClose",value:function(){T.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 W=this._pendingSegments;return W.video.length>0||W.audio.length>0}},{key:"_hasPendingRemoveRanges",value:function(){var W=this._pendingRemoveRanges;return W.video.length>0||W.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(lt.UPDATE_END)}},{key:"_onSourceBufferError",value:function(W){T.e(this.TAG,"SourceBuffer Error: ".concat(W))}}]),we}(),Qe=ft,Te={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},je={NETWORK_EXCEPTION:n.EXCEPTION,NETWORK_STATUS_CODE_INVALID:n.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:n.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:n.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:V.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:V.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:V.CODEC_UNSUPPORTED},ct=function(){function we(fe,W){if(Object(ae.a)(this,we),this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new S.a,this._config=ie(),typeof W=="object"&&Object.assign(this._config,W),fe.type.toLowerCase()!=="flv")throw new s("FlvPlayer requires an flv MediaDataSource input!");fe.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=fe,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 q=v.chrome&&(v.version.major<50||v.version.major===50&&v.version.build<2661);this._alwaysSeekKeyframe=!!(q||v.msedge||v.msie),this._alwaysSeekKeyframe&&(this._config.accurateSeek=!1)}return Object(Z.a)(we,[{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(W,q){var te=this;W===Ae.MEDIA_INFO?this._mediaInfo!=null&&Promise.resolve().then(function(){te._emitter.emit(Ae.MEDIA_INFO,te.mediaInfo)}):W===Ae.STATISTICS_INFO&&(this._statisticsInfo!=null&&Promise.resolve().then(function(){te._emitter.emit(Ae.STATISTICS_INFO,te.statisticsInfo)})),this._emitter.addListener(W,q)}},{key:"off",value:function(W,q){this._emitter.removeListener(W,q)}},{key:"attachMediaElement",value:function(W){var q=this;if(this._mediaElement=W,W.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),W.addEventListener("seeking",this.e.onvSeeking),W.addEventListener("canplay",this.e.onvCanPlay),W.addEventListener("stalled",this.e.onvStalled),W.addEventListener("progress",this.e.onvProgress),this._msectl=new Qe(this._config),this._msectl.on(lt.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on(lt.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on(lt.SOURCE_OPEN,function(){q._mseSourceOpened=!0,q._hasPendingLoad&&(q._hasPendingLoad=!1,q.load())}),this._msectl.on(lt.ERROR,function(te){q._emitter.emit(Ae.ERROR,Te.MEDIA_ERROR,je.MEDIA_MSE_ERROR,te)}),this._msectl.attachMediaElement(W),this._pendingSeekTime!=null)try{W.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(te){}}},{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 W=this;if(!this._mediaElement)throw new c("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new c("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 Mt(this._mediaDataSource,this._config),this._transmuxer.on(be.INIT_SEGMENT,function(q,te){W._msectl.appendInitSegment(te)}),this._transmuxer.on(be.MEDIA_SEGMENT,function(q,te){if(W._msectl.appendMediaSegment(te),W._config.lazyLoad&&!W._config.isLive){var se=W._mediaElement.currentTime;te.info.endDts>=(se+W._config.lazyLoadMaxDuration)*1e3&&(W._progressChecker==null&&(T.v(W.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),W._suspendTransmuxer()))}}),this._transmuxer.on(be.LOADING_COMPLETE,function(){W._msectl.endOfStream(),W._emitter.emit(Ae.LOADING_COMPLETE)}),this._transmuxer.on(be.RECOVERED_EARLY_EOF,function(){W._emitter.emit(Ae.RECOVERED_EARLY_EOF)}),this._transmuxer.on(be.IO_ERROR,function(q,te){W._emitter.emit(Ae.ERROR,Te.NETWORK_ERROR,q,te)}),this._transmuxer.on(be.DEMUX_ERROR,function(q,te){W._emitter.emit(Ae.ERROR,Te.MEDIA_ERROR,q,{code:-1,msg:te})}),this._transmuxer.on(be.MEDIA_INFO,function(q){W._mediaInfo=q,W._emitter.emit(Ae.MEDIA_INFO,Object.assign({},q))}),this._transmuxer.on(be.METADATA_ARRIVED,function(q){W._emitter.emit(Ae.METADATA_ARRIVED,q)}),this._transmuxer.on(be.SCRIPTDATA_ARRIVED,function(q){W._emitter.emit(Ae.SCRIPTDATA_ARRIVED,q)}),this._transmuxer.on(be.STATISTICS_INFO,function(q){W._statisticsInfo=W._fillStatisticsInfo(q),W._emitter.emit(Ae.STATISTICS_INFO,Object.assign({},W._statisticsInfo))}),this._transmuxer.on(be.RECOMMEND_SEEKPOINT,function(q){W._mediaElement&&!W._config.accurateSeek&&(W._requestSetTime=!0,W._mediaElement.currentTime=q/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(W){this._mediaElement.volume=W}},{key:"muted",get:function(){return this._mediaElement.muted},set:function(W){this._mediaElement.muted=W}},{key:"currentTime",get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(W){this._mediaElement?this._internalSeek(W):this._pendingSeekTime=W}},{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(W){if(W.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return W;var q=!0,te=0,se=0;if(this._mediaElement.getVideoPlaybackQuality){var Se=this._mediaElement.getVideoPlaybackQuality();te=Se.totalVideoFrames,se=Se.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(te=this._mediaElement.webkitDecodedFrameCount,se=this._mediaElement.webkitDroppedFrameCount):q=!1;return q&&(W.decodedFrames=te,W.droppedFrames=se),W}},{key:"_onmseUpdateEnd",value:function(){if(!this._config.lazyLoad||this._config.isLive)return;for(var W=this._mediaElement.buffered,q=this._mediaElement.currentTime,te=0,se=0,Se=0;Se=q+this._config.lazyLoadMaxDuration&&this._progressChecker==null&&(T.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}},{key:"_onmseBufferFull",value:function(){T.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 W=this._mediaElement.currentTime,q=this._mediaElement.buffered,te=!1,se=0;se=Se&&W=He-this._config.lazyLoadRecoverDuration&&(te=!0);break}}te&&(window.clearInterval(this._progressChecker),this._progressChecker=null,te&&(T.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))}},{key:"_isTimepointBuffered",value:function(W){for(var q=this._mediaElement.buffered,te=0;te=se&&W0){var Se=this._mediaElement.buffered.start(0);(Se<1&&W0&&q.currentTime0){var se=te.start(0);if(se<1&&q0&&(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(W){this._mediaElement.volume=W}},{key:"muted",get:function(){return this._mediaElement.muted},set:function(W){this._mediaElement.muted=W}},{key:"currentTime",get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(W){this._mediaElement?this._mediaElement.currentTime=W:this._pendingSeekTime=W}},{key:"mediaInfo",get:function(){var W=this._mediaElement instanceof HTMLAudioElement?"audio/":"video/",q={mimeType:W+this._mediaDataSource.type};return this._mediaElement&&(q.duration=Math.floor(this._mediaElement.duration*1e3),this._mediaElement instanceof HTMLVideoElement&&(q.width=this._mediaElement.videoWidth,q.height=this._mediaElement.videoHeight)),q}},{key:"statisticsInfo",get:function(){var W={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return W;var q=!0,te=0,se=0;if(this._mediaElement.getVideoPlaybackQuality){var Se=this._mediaElement.getVideoPlaybackQuality();te=Se.totalVideoFrames,se=Se.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(te=this._mediaElement.webkitDecodedFrameCount,se=this._mediaElement.webkitDroppedFrameCount):q=!1;return q&&(W.decodedFrames=te,W.droppedFrames=se),W}},{key:"_onvLoadedMetadata",value:function(W){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(Ae.MEDIA_INFO,this.mediaInfo)}},{key:"_reportStatisticsInfo",value:function(){this._emitter.emit(Ae.STATISTICS_INFO,this.statisticsInfo)}}]),we}(),Ot=Tt;w.install();function st(we,fe){var W=we;if(W==null||typeof W!="object")throw new s("MediaDataSource must be an javascript object!");if(!W.hasOwnProperty("type"))throw new s("MediaDataSource must has type field to indicate video file type!");switch(W.type){case"flv":return new Ze(W,fe);default:return new Ot(W,fe)}}function gt(){return xe.supportMSEH264Playback()}function kt(){return xe.getFeatureList()}var Wt={};Wt.createPlayer=st,Wt.isSupported=gt,Wt.getFeatureList=kt,Wt.BaseLoader=t,Wt.LoaderStatus=i,Wt.LoaderErrors=n,Wt.Events=Ae,Wt.ErrorTypes=Te,Wt.ErrorDetails=je,Wt.FlvPlayer=Ze,Wt.NativePlayer=Ot,Wt.LoggingControl=Oe,Object.defineProperty(Wt,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var Qt=We.a=Wt},GgEA:function($e,We,z){},Gytx:function($e,We){$e.exports=function(ae,Z,U,w){var P=U?U.call(w,ae,Z):void 0;if(P!==void 0)return!!P;if(ae===Z)return!0;if(typeof ae!="object"||!ae||typeof Z!="object"||!Z)return!1;var S=Object.keys(ae),C=Object.keys(Z);if(S.length!==C.length)return!1;for(var T=Object.prototype.hasOwnProperty.bind(Z),l=0;l>>6)+l(128|I&63):l(224|I>>>12&15)+l(128|I>>>6&63)+l(128|I&63)}else{var I=65536+(D.charCodeAt(0)-55296)*1024+(D.charCodeAt(1)-56320);return l(240|I>>>18&7)+l(128|I>>>12&63)+l(128|I>>>6&63)+l(128|I&63)}},h=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,d=function(D){return D.replace(h,p)},o=function(D){var I=[0,2,1][D.length%3],F=D.charCodeAt(0)<<16|(D.length>1?D.charCodeAt(1):0)<<8|(D.length>2?D.charCodeAt(2):0),K=[C.charAt(F>>>18),C.charAt(F>>>12&63),I>=2?"=":C.charAt(F>>>6&63),I>=1?"=":C.charAt(F&63)];return K.join("")},c=w.btoa&&typeof w.btoa=="function"?function(D){return w.btoa(D)}:function(D){if(D.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return D.replace(/[\s\S]{1,3}/g,o)},s=function(D){return c(d(String(D)))},f=function(D){return D.replace(/[+\/]/g,function(I){return I=="+"?"-":"_"}).replace(/=/g,"")},i=function(D,I){return I?f(s(D)):s(D)},n=function(D){return i(D,!0)},t;w.Uint8Array&&(t=function(D,I){for(var F="",K=0,ne=D.length;K>>18)+C.charAt(J>>>12&63)+(typeof G!="undefined"?C.charAt(J>>>6&63):"=")+(typeof X!="undefined"?C.charAt(J&63):"=")}return I?f(F):F});var u=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,y=function(D){switch(D.length){case 4:var I=(7&D.charCodeAt(0))<<18|(63&D.charCodeAt(1))<<12|(63&D.charCodeAt(2))<<6|63&D.charCodeAt(3),F=I-65536;return l((F>>>10)+55296)+l((F&1023)+56320);case 3:return l((15&D.charCodeAt(0))<<12|(63&D.charCodeAt(1))<<6|63&D.charCodeAt(2));default:return l((31&D.charCodeAt(0))<<6|63&D.charCodeAt(1))}},g=function(D){return D.replace(u,y)},_=function(D){var I=D.length,F=I%4,K=(I>0?T[D.charAt(0)]<<18:0)|(I>1?T[D.charAt(1)]<<12:0)|(I>2?T[D.charAt(2)]<<6:0)|(I>3?T[D.charAt(3)]:0),ne=[l(K>>>16),l(K>>>8&255),l(K&255)];return ne.length-=[0,0,2,1][F],ne.join("")},b=w.atob&&typeof w.atob=="function"?function(D){return w.atob(D)}:function(D){return D.replace(/\S{1,4}/g,_)},v=function(D){return b(String(D).replace(/[^A-Za-z0-9\+\/]/g,""))},m=function(D){return g(b(D))},E=function(D){return String(D).replace(/[-_]/g,function(I){return I=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},a=function(D){return m(E(D))},x;w.Uint8Array&&(x=function(D){return Uint8Array.from(v(E(D)),function(I){return I.charCodeAt(0)})});var O=function(){var D=w.Base64;return w.Base64=P,D};if(w.Base64={VERSION:S,atob:v,btoa:c,fromBase64:a,toBase64:i,utob:d,encode:i,encodeURI:n,btou:g,decode:a,noConflict:O,fromUint8Array:t,toUint8Array:x},typeof Object.defineProperty=="function"){var A=function(D){return{value:D,enumerable:!1,writable:!0,configurable:!0}};w.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",A(function(){return a(this)})),Object.defineProperty(String.prototype,"toBase64",A(function(D){return i(this,D)})),Object.defineProperty(String.prototype,"toBase64URI",A(function(){return i(this,!0)}))}}return w.Meteor&&(Base64=w.Base64),$e.exports?$e.exports.Base64=w.Base64:!(Z=[],U=function(){return w.Base64}.apply(We,Z),U!==void 0&&($e.exports=U)),{Base64:w.Base64}})}).call(this,z("IyRk"))},JOrW:function($e,We,z){$e.exports=z.p+"static/gf.09d89ab3.svg"},LdHM:function($e,We,z){"use strict";z.d(We,"b",function(){return u}),z.d(We,"a",function(){return g});var ae=z("1OyB"),Z=z("vuIU"),U=z("Ji7U"),w=z("LK+K"),P=z("q1tI"),S=z("rePB"),C=z("Ff2n"),T=z("ODXe"),l=z("4IlW"),p=z("bX4T"),h=z("YrtM"),d=z("TSYQ"),o=z.n(d),c=z("+nKL"),s=z("8OUc"),f=function(X,J){var B=X.prefixCls,Q=X.id,ie=X.flattenOptions,oe=X.childrenAsData,xe=X.values,ye=X.searchValue,Ae=X.multiple,pe=X.defaultActiveFirstOption,Oe=X.height,Fe=X.itemHeight,Me=X.notFoundContent,Ce=X.open,Le=X.menuItemSelectedIcon,de=X.virtual,ue=X.onSelect,ke=X.onToggleOpen,Ue=X.onActiveValue,Ye=X.onScroll,ee=X.onMouseEnter,M="".concat(B,"-item"),N=Object(h.a)(function(){return ie},[Ce,ie],function(Ke,Ne){return Ne[0]&&Ke[1]!==Ne[1]}),$=P.useRef(null),V=function(Ne){Ne.preventDefault()},Y=function(Ne){$.current&&$.current.scrollTo({index:Ne})},me=function(Ne){for(var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,_e=N.length,he=0;he<_e;he+=1){var ve=(Ne+he*De+_e)%_e,Ee=N[ve],be=Ee.group,Ge=Ee.data;if(!be&&!Ge.disabled)return ve}return-1},Re=P.useState(function(){return me(0)}),rt=Object(T.a)(Re,2),Pe=rt[0],Ie=rt[1],Xe=function(Ne){Ie(Ne);var De=N[Ne];if(!De){Ue(null,-1);return}Ue(De.data.value,Ne)};P.useEffect(function(){Xe(pe!==!1?me(0):-1)},[N.length,ye]),P.useEffect(function(){var Ke=setTimeout(function(){if(!Ae&&Ce&&xe.size===1){var Ne=Array.from(xe)[0],De=N.findIndex(function(_e){var he=_e.data;return he.value===Ne});Xe(De),Y(De)}});return function(){return clearTimeout(Ke)}},[Ce]);var tt=function(Ne){Ne!==void 0&&ue(Ne,{selected:!xe.has(Ne)}),Ae||ke(!1)};if(P.useImperativeHandle(J,function(){return{onKeyDown:function(Ne){var De=Ne.which;switch(De){case l.a.UP:case l.a.DOWN:{var _e=0;if(De===l.a.UP?_e=-1:De===l.a.DOWN&&(_e=1),_e!==0){var he=me(Pe+_e,_e);Y(he),Xe(he)}break}case l.a.ENTER:{var ve=N[Pe];ve&&!ve.data.disabled?tt(ve.data.value):tt(void 0),Ce&&Ne.preventDefault();break}case l.a.ESC:ke(!1)}},onKeyUp:function(){},scrollTo:function(Ne){Y(Ne)}}}),N.length===0)return P.createElement("div",{role:"listbox",id:"".concat(Q,"_list"),className:"".concat(M,"-empty"),onMouseDown:V},Me);function Ve(Ke){var Ne=N[Ke];if(!Ne)return null;var De=Ne.data||{},_e=De.value,he=De.label,ve=De.children,Ee=Object(p.a)(De,!0),be=oe?ve:he;return Ne?P.createElement("div",Object.assign({"aria-label":typeof be=="string"?be:null},Ee,{key:Ke,role:"option",id:"".concat(Q,"_list_").concat(Ke),"aria-selected":xe.has(_e)}),_e):null}return P.createElement(P.Fragment,null,P.createElement("div",{role:"listbox",id:"".concat(Q,"_list"),style:{height:0,width:0,overflow:"hidden"}},Ve(Pe-1),Ve(Pe),Ve(Pe+1)),P.createElement(c.a,{itemKey:"key",ref:$,data:N,height:Oe,itemHeight:Fe,fullHeight:!1,onMouseDown:V,onScroll:Ye,virtual:de,onMouseEnter:ee},function(Ke,Ne){var De,_e=Ke.group,he=Ke.groupOption,ve=Ke.data,Ee=ve.label,be=ve.key;if(_e)return P.createElement("div",{className:o()(M,"".concat(M,"-group"))},Ee!==void 0?Ee:be);var Ge=ve.disabled,qe=ve.value,pt=ve.title,Pt=ve.children,Rt=ve.style,Mt=ve.className,wt=Object(C.a)(ve,["disabled","value","title","children","style","className"]),lt=xe.has(qe),ft="".concat(M,"-option"),Qe=o()(M,ft,Mt,(De={},Object(S.a)(De,"".concat(ft,"-grouped"),he),Object(S.a)(De,"".concat(ft,"-active"),Pe===Ne&&!Ge),Object(S.a)(De,"".concat(ft,"-disabled"),Ge),Object(S.a)(De,"".concat(ft,"-selected"),lt),De)),Te=oe?Pt:Ee,je=!Le||typeof Le=="function"||lt;return P.createElement("div",Object.assign({},wt,{"aria-selected":lt,className:Qe,title:pt,onMouseMove:function(){if(Pe===Ne||Ge)return;Xe(Ne)},onClick:function(){Ge||tt(qe)},style:Rt}),P.createElement("div",{className:"".concat(ft,"-content")},Te||qe),P.isValidElement(Le)||lt,je&&P.createElement(s.a,{className:"".concat(M,"-option-state"),customizeIcon:Le,customizeIconProps:{isSelected:lt}},lt?"\u2713":null))}))},i=P.forwardRef(f);i.displayName="OptionList";var n=i,t=function(){return null};t.isSelectOption=!0;var u=t,y=function(){return null};y.isSelectOptGroup=!0;var g=y,_=z("VTBJ"),b=z("Zm9Q");function v(G){var X=G.key,J=G.props,B=J.children,Q=J.value,ie=Object(C.a)(J,["children","value"]);return Object(_.a)({key:X,value:Q!==void 0?Q:X,children:B},ie)}function m(G){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Object(b.a)(G).map(function(J,B){if(!P.isValidElement(J)||!J.type)return null;var Q=J.type.isSelectOptGroup,ie=J.key,oe=J.props,xe=oe.children,ye=Object(C.a)(oe,["children"]);return X||!Q?v(J):Object(_.a)(Object(_.a)({key:"__RC_SELECT_GRP__".concat(ie===null?B:ie,"__"),label:ie},ye),{},{options:m(xe)})}).filter(function(J){return J})}var E=z("2Qr1"),a=z("qNPg"),x=z("U8pU"),O=z("Kwbf"),A=z("WKfj");function D(G){var X=G.mode,J=G.options,B=G.children,Q=G.backfill,ie=G.allowClear,oe=G.placeholder,xe=G.getInputElement,ye=G.showSearch,Ae=G.onSearch,pe=G.defaultOpen,Oe=G.autoFocus,Fe=G.labelInValue,Me=G.value,Ce=G.inputValue,Le=G.optionLabelProp,de=X==="multiple"||X==="tags",ue=ye!==void 0?ye:de||X==="combobox",ke=J||m(B);if(Object(O.a)(X!=="tags"||ke.every(function(M){return!M.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),X==="tags"||X==="combobox"){var Ue=ke.some(function(M){return M.options?M.options.some(function(N){return typeof("value"in N?N.value:N.key)=="number"}):typeof("value"in M?M.value:M.key)=="number"});Object(O.a)(!Ue,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(O.a)(X!=="combobox"||!Le,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(O.a)(X==="combobox"||!Q,"`backfill` only works with `combobox` mode."),Object(O.a)(X==="combobox"||!xe,"`getInputElement` only work with `combobox` mode."),Object(O.b)(X!=="combobox"||!xe||!ie||!oe,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Ae&&!ue&&X!=="combobox"&&X!=="tags"&&Object(O.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(O.b)(!pe||Oe,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Me!=null){var Ye=Object(A.d)(Me);Object(O.a)(!Fe||Ye.every(function(M){return Object(x.a)(M)==="object"&&("key"in M||"value"in M)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(O.a)(!de||Array.isArray(Me),"`value` should be array when `mode` is `multiple` or `tags`")}if(B){var ee=null;Object(b.a)(B).some(function(M){if(!P.isValidElement(M)||!M.type)return!1;var N=M.type;if(N.isSelectOption)return!1;if(N.isSelectOptGroup){var $=Object(b.a)(M.props.children).every(function(V){return!P.isValidElement(V)||!M.type||V.type.isSelectOption?!0:(ee=V.type,!1)});return!$}return ee=N,!0}),ee&&Object(O.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(ee.displayName||ee.name||ee,"`.")),Object(O.a)(Ce===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var I=D,F=Object(a.a)({prefixCls:"rc-select",components:{optionList:n},convertChildrenToData:m,flattenOptions:E.d,getLabeledValue:E.e,filterOptions:E.b,isValueDisabled:E.g,findValueOption:E.c,warningProps:I,fillOptionsWithMissingValue:E.a}),K=function(G){Object(U.a)(J,G);var X=Object(w.a)(J);function J(){var B;return Object(ae.a)(this,J),B=X.apply(this,arguments),B.selectRef=P.createRef(),B.focus=function(){B.selectRef.current.focus()},B.blur=function(){B.selectRef.current.blur()},B}return Object(Z.a)(J,[{key:"render",value:function(){return P.createElement(F,Object.assign({ref:this.selectRef},this.props))}}]),J}(P.Component);K.Option=u,K.OptGroup=g;var ne=K,j=We.c=ne},M8RZ:function($e,We,z){"use strict";z.d(We,"a",function(){return l});var ae=z("fWQN"),Z=z("mtLc"),U=z("yKVA"),w=z("879j"),P=z("q1tI"),S=z.n(P),C=z("i8i4"),T=z.n(C),l=function(p){Object(U.a)(d,p);var h=Object(w.a)(d);function d(o){var c;Object(ae.a)(this,d),c=h.call(this,o);var s=window.document;return c.node=s.createElement("div"),s.body.appendChild(c.node),c}return Object(Z.a)(d,[{key:"render",value:function(){var c=this.props.children;return Object(C.createPortal)(c,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),d}(S.a.Component)},MFOe:function($e,We,z){(function(ae){var Z=S(),U=C(),w=T(),P=typeof window!="undefined"?window:ae;$e.exports={assign:Z,create:U,trim:w,bind:l,slice:p,each:h,map:d,pluck:o,isList:c,isFunction:s,isObject:f,Global:P};function S(){return Object.assign?Object.assign:function(n,t,u,y){for(var g=1;g=0;f-=1){var i=T.get(f)||new Set;i.forEach(function(n){var t=n.parent,u=n.node;if(p(u)||!n.parent||s.has(n.parent.key))return;if(p(n.parent.node)){s.add(t.key);return}var y=!0,g=!1;(t.children||[]).filter(function(_){return!p(_.node)}).forEach(function(_){var b=_.key,v=h.has(b);y&&!v&&(y=!1),!g&&(v||d.has(b))&&(g=!0)}),y&&h.add(t.key),g&&d.add(t.key),s.add(t.key)})}return{checkedKeys:Array.from(h),halfCheckedKeys:Array.from(Z(d,h))}}function P(C,T,l,p,h){for(var d=new Set(C),o=new Set(T),c=0;c<=p;c+=1){var s=l.get(c)||new Set;s.forEach(function(t){var u=t.key,y=t.node,g=t.children,_=g===void 0?[]:g;!d.has(u)&&!o.has(u)&&!h(y)&&_.filter(function(b){return!h(b.node)}).forEach(function(b){d.delete(b.key)})})}o=new Set;for(var f=new Set,i=p;i>=0;i-=1){var n=l.get(i)||new Set;n.forEach(function(t){var u=t.parent,y=t.node;if(h(y)||!t.parent||f.has(t.parent.key))return;if(h(t.parent.node)){f.add(u.key);return}var g=!0,_=!1;(u.children||[]).filter(function(b){return!h(b.node)}).forEach(function(b){var v=b.key,m=d.has(v);g&&!m&&(g=!1),!_&&(m||o.has(v))&&(_=!0)}),g||d.delete(u.key),_&&o.add(u.key),f.add(u.key)})}return{checkedKeys:Array.from(d),halfCheckedKeys:Array.from(Z(o,d))}}function S(C,T,l,p){var h=[],d;p?d=p:d=U;var o=new Set(C.filter(function(i){var n=!!l[i];return n||h.push(i),n})),c=new Map,s=0;Object.keys(l).forEach(function(i){var n=l[i],t=n.level,u=c.get(t);u||(u=new Set,c.set(t,u)),u.add(n),s=Math.max(s,t)}),Object(ae.a)(!h.length,"Tree missing follow keys: ".concat(h.slice(0,100).map(function(i){return"'".concat(i,"'")}).join(", ")));var f;return T===!0?f=w(o,c,s,d):f=P(o,T.halfCheckedKeys,c,s,d),f}},OLES:function($e,We,z){"use strict";var ae=z("U8pU"),Z=z("VTBJ"),U=z("Ff2n"),w=z("q1tI"),P=z("uciX"),S=z("7ixt"),C=function(o){var c=o.overlay,s=o.prefixCls,f=o.id,i=o.overlayInnerStyle;return w.createElement("div",{className:"".concat(s,"-inner"),id:f,role:"tooltip",style:i},typeof c=="function"?c():c)},T=C,l=function(o,c){var s=o.overlayClassName,f=o.trigger,i=f===void 0?["hover"]:f,n=o.mouseEnterDelay,t=n===void 0?0:n,u=o.mouseLeaveDelay,y=u===void 0?.1:u,g=o.overlayStyle,_=o.prefixCls,b=_===void 0?"rc-tooltip":_,v=o.children,m=o.onVisibleChange,E=o.afterVisibleChange,a=o.transitionName,x=o.animation,O=o.placement,A=O===void 0?"right":O,D=o.align,I=D===void 0?{}:D,F=o.destroyTooltipOnHide,K=F===void 0?!1:F,ne=o.defaultVisible,j=o.getTooltipContainer,G=o.overlayInnerStyle,X=Object(U.a)(o,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),J=Object(w.useRef)(null);Object(w.useImperativeHandle)(c,function(){return J.current});var B=Object(Z.a)({},X);"visible"in o&&(B.popupVisible=o.visible);var Q=function(){var Ae=o.arrowContent,pe=Ae===void 0?null:Ae,Oe=o.overlay,Fe=o.id;return[w.createElement("div",{className:"".concat(b,"-arrow"),key:"arrow"},pe),w.createElement(T,{key:"content",prefixCls:b,id:Fe,overlay:Oe,overlayInnerStyle:G})]},ie=!1,oe=!1;if(typeof K=="boolean")ie=K;else if(K&&Object(ae.a)(K)==="object"){var xe=K.keepParent;ie=xe===!0,oe=xe===!1}return w.createElement(P.a,Object.assign({popupClassName:s,prefixCls:b,popup:Q,action:i,builtinPlacements:S.a,popupPlacement:A,ref:J,popupAlign:I,getPopupContainer:j,onPopupVisibleChange:m,afterPopupVisibleChange:E,popupTransitionName:a,popupAnimation:x,defaultPopupVisible:ne,destroyPopupOnHide:ie,autoDestroy:oe,mouseLeaveDelay:y,popupStyle:g,mouseEnterDelay:t},B),v)},p=Object(w.forwardRef)(l),h=We.a=p},OZM5:function($e,We,z){"use strict";z.d(We,"b",function(){return p}),z.d(We,"a",function(){return h}),z.d(We,"k",function(){return d}),z.d(We,"h",function(){return o}),z.d(We,"i",function(){return c}),z.d(We,"g",function(){return s}),z.d(We,"c",function(){return f}),z.d(We,"d",function(){return i}),z.d(We,"j",function(){return u}),z.d(We,"e",function(){return y}),z.d(We,"f",function(){return g});var ae=z("KQm4"),Z=z("U8pU"),U=z("Ff2n"),w=z("q1tI"),P=z.n(w),S=z("Kwbf"),C=z("WaYH"),T=.25,l=2;function p(_,b){var v=_.slice(),m=v.indexOf(b);return m>=0&&v.splice(m,1),v}function h(_,b){var v=_.slice();return v.indexOf(b)===-1&&v.push(b),v}function d(_){return _.split("-")}function o(_,b){return"".concat(_,"-").concat(b)}function c(_){return _&&_.type&&_.type.isTreeNode}function s(_,b){var v=[_],m=b[_];function E(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];a.forEach(function(x){var O=x.key,A=x.children;v.push(O),E(A)})}return E(m.children),v}function f(_,b){var v=_.clientY,m=b.selectHandle.getBoundingClientRect(),E=m.top,a=m.bottom,x=m.height,O=Math.max(x*T,l);return v<=E+O?-1:v>=a-O?1:0}function i(_,b){if(!_)return;var v=b.multiple;return v?_.slice():_.length?[_[0]]:_}var n=function(b){return b};function t(_,b){if(!_)return[];var v=b||{},m=v.processProps,E=m===void 0?n:m,a=Array.isArray(_)?_:[_];return a.map(function(x){var O=x.children,A=Object(U.a)(x,["children"]),D=t(O,b);return P.a.createElement(C.a,Object.assign({},E(A)),D)})}function u(_){if(!_)return null;var b;if(Array.isArray(_))b={checkedKeys:_,halfCheckedKeys:void 0};else if(Object(Z.a)(_)==="object")b={checkedKeys:_.checked||void 0,halfCheckedKeys:_.halfChecked||void 0};else return Object(S.a)(!1,"`checkedKeys` is not an array or an object"),null;return b}function y(_,b){var v=new Set;function m(E){if(v.has(E))return;var a=b[E];if(!a)return;v.add(E);var x=a.parent,O=a.node;if(O.disabled)return;x&&m(x.key)}return(_||[]).forEach(function(E){m(E)}),Object(ae.a)(v)}function g(_){var b={};return Object.keys(_).forEach(function(v){(v.startsWith("data-")||v.startsWith("aria-"))&&(b[v]=_[v])}),b}},"OkW/":function($e,We,z){},Ot1p:function($e,We,z){"use strict";var ae=z("2qtc"),Z=z("kLXV"),U=z("rAM+"),w=z("miYZ"),P=z("tsqr"),S=z("tJVT"),C=z("jrin"),T=z("q1tI"),l=z.n(T),p=z("VrN/"),h=z.n(p),d=z("bdgK"),o=z("p77/"),c=z("Bd2K"),s=z("ELLl"),f=z("19Vz"),i=z("lZu9"),n=z("+NIl"),t=z("kSUc"),u=z("9Bee"),y=function(_e){var he=_e.value,ve=he===void 0?"":he,Ee=_e.className,be=_e.showTextOnly,Ge=_e.showLines,qe=_e.style,pt=qe===void 0?{}:qe,Pt=Object(T.useMemo)(function(){return""},[ve]);return l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{dangerouslySetInnerHTML:{__html:Pt}}))},g=z("0Owb"),_=z("dejd"),b=z("C+DQ"),v=[{title:"\u7C97\u4F53",icon:"icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"icon-sum",actionName:"inline-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"icon-formula",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"icon-picture",actionName:"upload-image"},{title:"\u8868\u683C",icon:"icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"icon-eraser",actionName:"eraser"}];function m(_e){var he=_e.onActionCallback,ve=_e.title,Ee=_e.icon,be=_e.actionName,Ge=_e.className,qe=Ge===void 0?"":Ge,pt=_e.children;function Pt(){he(be)}return l.a.createElement("a",{title:ve,className:qe,onClick:Pt},l.a.createElement("i",{className:"md-iconfont ".concat(Ee)}),pt)}var E=function(_e){var he=_e.watch,ve=_e.showNullButton,Ee=_e.onActionCallback,be=_e.fullScreen,Ge=_e.insertTemp,qe=_e.hidetoolBar,pt=[].concat(v,[{title:"".concat(he?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(he?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return l.a.createElement("ul",{className:"markdown-toolbar-container"},!qe&&pt.map(function(Pt,Rt){return l.a.createElement("li",{key:Rt},Pt.actionName?l.a.createElement(m,Object(g.a)({},Pt,{onActionCallback:Ee})):l.a.createElement("span",{className:"v-line"}))}),ve?l.a.createElement("li",null,l.a.createElement(m,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Ee},l.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Ge&&l.a.createElement("li",null,l.a.createElement(m,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(Ge),onActionCallback:Ee},l.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),l.a.createElement("li",{className:"btn-full-screen"},l.a.createElement(m,{icon:"".concat(be?"icon-shrink":"icon-enlarge"),title:be?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Ee})))},a=z("M8RZ"),x=z("+L6B"),O=z("2/Rp"),A=z("y8nQ"),D=z("Vl3Y"),I=z("5NDa"),F=z("5rEg"),K={labelCol:{span:4},wrapperCol:{span:20}},ne=function(_e){var he=_e.callback,ve=_e.onCancel;function Ee(be){he(be)}return l.a.createElement(D.a,Object(g.a)({},K,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Ee}),l.a.createElement(D.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},l.a.createElement(F.a,null)),l.a.createElement(D.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},l.a.createElement(F.a,null)),l.a.createElement("div",{className:"flex-container flex-end"},l.a.createElement(O.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),l.a.createElement(O.a,{type:"ghost",onClick:ve},"\u53D6\u6D88")))},j=z("7ahc"),G=z("HmJG"),X=z("BjJ7"),J=D.a.useForm,B={width:280,marginRight:10},Q={labelCol:{span:5},wrapperCol:{span:19}},ie=function(_e){var he=_e.callback,ve=_e.onCancel,Ee=J(),be=Object(S.a)(Ee,1),Ge=be[0];function qe(Rt){he(Rt)}function pt(Rt,Mt){Ge.setFieldsValue({src:"/api/attachments/".concat(Rt.id),type:Mt.type})}function Pt(Rt){var Mt=Rt.target.files[0];xe(Mt,pt)}return l.a.createElement(D.a,Object(g.a)({form:Ge},Q,{className:"upload-image-panel",onFinish:qe}),l.a.createElement(D.a.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},l.a.createElement("div",{className:"flex-container"},l.a.createElement(D.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},l.a.createElement(F.a,{style:B})),l.a.createElement(oe,{onFileChange:Pt}))),l.a.createElement(D.a.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u63CF\u8FF0"}]},l.a.createElement(F.a,{style:{width:264}})),l.a.createElement(D.a.Item,{style:{textAlign:"right"}},l.a.createElement(O.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),l.a.createElement(O.a,{type:"ghost",onClick:ve},"\u53D6\u6D88")))};function oe(_e){var he=_e.onFileChange;return l.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",l.a.createElement("input",{type:"file",onChange:he}))}function xe(_e,he){if(!_e)throw new String("\u6CA1\u6709\u6587\u4EF6");var ve=new FormData;ve.append("editormd-image-file",_e),ve.append("file_param_name","editormd-image-file"),ve.append("byxhr","true");var Ee=new window.XMLHttpRequest;Ee.withCredentials=!0,Ee.addEventListener("load",function(be){he(JSON.parse(be.target.responseText),_e)},!1),Ee.addEventListener("error",function(be){console.error(be)},!1),Ee.open("POST","".concat(X.a,"/api/attachments.json")),Ee.send(ve)}var ye=z("giR+"),Ae=z("fyUT"),pe=z("7Kak"),Oe=z("9yH6"),Fe=Oe.a.Group,Me={margin:"0 8px"},Ce=function(_e){var he=_e.callback,ve=_e.onCancel;function Ee(be){he(be)}return l.a.createElement(D.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Ee},l.a.createElement("div",{className:"flex-container"},l.a.createElement("span",{style:Me},"\u5355\u5143\u683C\u6570\uFF1A"),l.a.createElement("span",{style:Me},"\u884C\u6570"),l.a.createElement(D.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},l.a.createElement(Ae.a,null)),l.a.createElement("span",{style:Me},"\u5217\u6570"),l.a.createElement(D.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},l.a.createElement(Ae.a,null))),l.a.createElement("div",{className:"flex-container",style:{marginTop:12}},l.a.createElement("span",{style:Me},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),l.a.createElement(D.a.Item,{name:"align"},l.a.createElement(Fe,null,l.a.createElement(Oe.a,{value:"default"},l.a.createElement("i",{className:"fa fa-align-justify"})),l.a.createElement(Oe.a,{value:"left"},l.a.createElement("i",{className:"fa fa-align-left"})),l.a.createElement(Oe.a,{value:"center"},l.a.createElement("i",{className:"fa fa-align-center"})),l.a.createElement(Oe.a,{value:"right"},l.a.createElement("i",{className:"fa fa-align-right"}))))),l.a.createElement("div",{className:"flex-container flex-end"},l.a.createElement(O.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),l.a.createElement(O.a,{type:"ghost",onClick:ve},"\u53D6\u6D88")))},Le=z("m3rI"),de=z("wMS7"),ue=z.n(de),ke="link",Ue="upload-image",Ye="code-block",ee="add-table",M="------------",N={default:M,left:":".concat(M),center:":".concat(M,":"),right:"".concat(M,":")},$=z("9VGf"),V,Y;function me(){}var Re=0,rt=1e4,Pe="\u2581",Ie=`
**\u6A21\u677F\u6807\u9898**
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`;function Xe(_e){return/^\d+$/.test(_e)?"".concat(_e,"px"):_e}var tt=navigator.platform.toUpperCase().indexOf("MAC")>=0,Ve=tt?"Cmd":"Ctrl",Ke=(V={},Object(C.a)(V,Ve+"-B","bold"),Object(C.a)(V,Ve+"-I","italic"),V),Ne=(Y={},Object(C.a)(Y,ke,"\u6DFB\u52A0\u94FE\u63A5"),Object(C.a)(Y,Ye,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(C.a)(Y,Ue,"\u6DFB\u52A0\u56FE\u7247"),Object(C.a)(Y,ee,"\u6DFB\u52A0\u8868\u683C"),Y),De=We.a=function(_e){var he=_e.defaultValue,ve=he===void 0?"":he,Ee=_e.onChange,be=_e.width,Ge=be===void 0?"100%":be,qe=_e.height,pt=qe===void 0?400:qe,Pt=_e.miniToolbar,Rt=Pt===void 0?!1:Pt,Mt=_e.isFocus,wt=Mt===void 0?!1:Mt,lt=_e.watch,ft=_e.insertTemp,Qe=_e.mode,Te=Qe===void 0?"markdown":Qe,je=_e.id,ct=je===void 0?"markdown-editor-id":je,Ze=_e.showResizeBar,Tt=Ze===void 0?!1:Ze,Ot=_e.noStorage,st=Ot===void 0?!1:Ot,gt=_e.showNullButton,kt=gt===void 0?!1:gt,Wt=_e.hidetoolBar,Qt=Wt===void 0?!1:Wt,we=_e.fullScreen,fe=we===void 0?!1:we,W=_e.onBlur,q=_e.onCMBeforeChange,te=_e.onFullScreen,se=_e.className,Se=se===void 0?"":se,He=_e.disablePaste,Je=He===void 0?!1:He,xt=_e.placeholder,Ct=xt===void 0?"":xt,it=_e.values,St=it===void 0?"":it,Xt=Object(T.useState)(null),bt=Object(S.a)(Xt,2),ht=bt[0],Jt=bt[1],Nt=Object(T.useState)(ve),mt=Object(S.a)(Nt,2),cn=mt[0],bn=mt[1],sn=Object(T.useState)(lt),dn=Object(S.a)(sn,2),Nn=dn[0],Kt=dn[1],et=Object(T.useState)(fe),Ut=Object(S.a)(et,2),Yt=Ut[0],Vt=Ut[1],En=Object(T.useState)(""),sr=Object(S.a)(En,2),nr=sr[0],jn=sr[1],cr=Object(T.useState)(0),qn=Object(S.a)(cr,2),Wr=qn[0],_r=qn[1],Rr=Object(T.useState)(pt),Tr=Object(S.a)(Rr,2),Vr=Tr[0],Ur=Tr[1],xi=Object(T.useState)(!1),kr=Object(S.a)(xi,2),Oi=kr[0],ri=kr[1],Xr=Object(T.useRef)(),di=Object(T.useRef)(),Si=Object(T.useRef)(),si=Object(T.useRef)();Object(T.useEffect)(function(){bn(St),ht==null||ht.setValue(St)},[St]),Object(T.useEffect)(function(){te==null||te(Yt)},[Yt]),Object(T.useEffect)(function(){if(Xr.current){var ln=h.a.fromTextArea(Xr.current,{mode:Te,lineNumbers:!Rt,lineWrapping:!0,value:ve,autoCloseTags:!0,autoCloseBrackets:!0});wt&&ln.focus();function Tn(On,rr){if(Je){rr.preventDefault();return}var ar=rr.clipboardData;if(ar){var pr=ar.types.toString(),Er=ar.items,Cr=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];if(pr==="Files"||ar.types.indexOf("Files")>-1){if(rr.preventDefault(),Te=="stex")return;try{var xr,pi=Er[1];((xr=Er[0])===null||xr===void 0?void 0:xr.kind)==="file"&&(pi=Er[0]);var Or=pi.getAsFile(),Ai=Or.name.split(".").pop();xe(Or,function(Dr){if(Dr.id){var mi,vi,Yi;(Or==null||((mi=Or.type)===null||mi===void 0)?void 0:mi.indexOf("image"))>-1?ln.replaceSelection(".concat(Dr.content_type,")")):(Or==null||((vi=Or.type)===null||vi===void 0)?void 0:vi.indexOf("video"))>-1?ln.replaceSelection('')):(Or==null||((Yi=Or.type)===null||Yi===void 0)?void 0:Yi.indexOf("pdf"))>-1?ln.replaceSelection('').concat(Or.name,"")):Cr.includes(Ai)?ln.replaceSelection('').concat(Or.name,"")):ln.replaceSelection("[".concat(Or.name,"](").concat(Le.a.API_SERVER,"/api/attachments/").concat(Dr.id,"?type=").concat(Dr.content_type,")"))}else(Dr==null?void 0:Dr.status)===401&&(document.location.href="/user/login")})}catch(Dr){P.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return ln.on("paste",Tn),Jt(ln),function(){ln.off("paste",Tn)}}},[]);var fi=Object(T.useCallback)(function(){if(di.current)try{}catch(ln){console.log(ln,"---- to set md editor body height")}},[Vr,di,Yt]);Object(T.useEffect)(function(){function ln(){var On=new d.default(function(rr){var ar=Object(U.a)(rr),pr;try{for(ar.s();!(pr=ar.n()).done;){var Er=pr.value;(Er.target.offsetHeight>0||Er.target.offsetWidth>0)&&(fi(),ht.setSize("100%","100%"),ht.refresh())}}catch(Cr){ar.e(Cr)}finally{ar.f()}});return On.observe(Xr.current.parentElement),On}if(ht){var Tn=ln();return function(){Tn.unobserve(Xr.current.parentElement)}}},[ht,fi]),Object(T.useEffect)(function(){if(ht){for(var ln=[],Tn=function(){var Er=rr[On];ar=Object(S.a)(Er,2);var Cr=ar[0],xr=ar[1],pi=Object(C.a)({},Cr,function(){gr(xr)});ln.push(pi),ht.addKeyMap(pi)},On=0,rr=Object.entries(Ke);On0){var ln=new Date().getTime(),Tn=window.sessionStorage.getItem(ct);ln>=Wr+rt&&(!Tn||Tn!==cn)&&(window.sessionStorage.setItem(ct,cn),ri(!0))}},rt),Object(T.useEffect)(function(){Kt(lt)},[ht,lt]),Object(T.useEffect)(function(){ht&&(wt&&ht.focus())},[ht,wt]),Object(T.useEffect)(function(){if(Nn&&ht){var ln=ht.getScrollerElement();function Tn(On){var rr=On.target;if(si.current){var ar=rr.scrollTop/rr.scrollHeight;si.current.scrollTop=si.current.scrollHeight*ar}}return ln.addEventListener("scroll",Tn),function(){ln.removeEventListener("scroll",Tn)}}},[ht,Nn]),Object(T.useEffect)(function(){if(ht&&q){function ln(Tn,On){q(Tn,On)}return ht.on("beforeChange",ln),function(){ht.off("beforeChange",ln)}}},[ht,q]),Object(T.useEffect)(function(){if(ht&&W){function ln(){W(ht.getValue())}return ht.on("blur",ln),function(){ht.off("blur",ln)}}},[ht,W]),Object(T.useEffect)(function(){if(ht){function ln(Tn){var On=ue.a.sanitize(Tn.getValue());bn(On),_r(new Date().getTime()),Tn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Ee&&Ee(On)}return ht.on("change",ln),function(){ht.off("change",ln)}}},[ht,Ee]),Object(T.useEffect)(function(){ht&&(ve==null?(ht.setValue(""),bn("")):ve!==ht.getValue()&&(ht.setValue(ve),bn(ve),ht.setCursor(ht.lineCount(),0)))},[ht,ve]);var gr=Object(T.useCallback)(function(ln){var Tn=ht.getCursor(),On=ht.getSelection(),rr=On.split(`
`);switch(ln){case"bold":return ht.replaceSelection("**"+On+"**"),On===""&&ht.setCursor(Tn.line,Tn.ch+2),ht.focus();case"italic":return ht.replaceSelection("*"+On+"*"),On===""&&ht.setCursor(Tn.line,Tn.ch+1),ht.focus();case"code":return ht.replaceSelection("`"+On+"`"),On===""&&ht.setCursor(Tn.line,Tn.ch+1),ht.focus();case"inline-latex":return ht.replaceSelection("`$$"+On+"$$`"),On===""&&ht.setCursor(Tn.line,Tn.ch+3),ht.focus();case"latex":return ht.replaceSelection("```latex\n"+On+"\n```"),ht.setCursor(Tn.line+1,On.length+1),ht.focus();case"line-break":return ht.replaceSelection(`
`),ht.focus();case"list-ul":return On===""?ht.replaceSelection("- "+On):ht.replaceSelection(rr.map(function(ar){return ar===""?"":"- ".concat(ar)}).join(`
`)),ht.focus();case"list-ol":return On===""?ht.replaceSelection("1. "+On):ht.replaceSelection(rr.map(function(ar,pr){return ar===""?"":"".concat(pr+1,". ").concat(ar)}).join(`
`)),ht.focus();case"add-null-ch":return On===""&&ht.setCursor(Tn.line,Tn.ch+1),ht.replaceSelection(Pe),ht.focus();case"inster-template-1":return On===""&&ht.setCursor(Tn.line,Tn.ch),ht.replaceSelection(Ie),ht.focus();case"eraser":return ht.setValue(""),ht.focus();case"trigger-watch":return Kt(!Nn),ht.focus();case"trigger-full-screen":return Vt(!Yt),ht.focus();case ke:jn(ke);return;case Ye:jn(Ye);return;case Ue:jn(Ue);return;case ee:jn(ee);return;default:throw new Error}},[ht,Nn,Yt]),dr=Object(T.useCallback)(function(ln){jn("");switch(nr){case ke:var Tn=ln.title,On=ln.link;return ht.replaceSelection("[".concat(Tn,"](").concat(On,")")),ht.focus();case Ye:var rr=ln.language,ar=ln.content;return ht.replaceSelection(["```"+rr,ar,"```"].join(`
`)),ht.focus();case Ue:var pr=ln.src,Er=ln.alt;return ht.replaceSelection(".concat(pr,' "').concat(Er,'" )')),ht.focus();case ee:for(var Cr=ln.row,xr=ln.col,pi=ln.align,Or=`
`,Ai=0;Ai300&&(Cr=300);var xr=pt+Cr+"px";Ur(xr)}}return ln.addEventListener("mousedown",rr),document.addEventListener("mousemove",pr),document.addEventListener("mouseup",ar),function(){ln.removeEventListener("mousedown",rr),document.removeEventListener("mousemove",pr),document.removeEventListener("mouseup",ar)}}},[ht,Si]),Object(T.useEffect)(function(){Ur(pt)},[pt]);var Ni=Xe(Ge),wi=Xe(Vr),ua={width:Ni,height:wi},ca=Object(T.useMemo)(function(){if(Wr){var ln=new Date(Wr),Tn=ln.getHours(),On=ln.getMinutes(),rr=ln.getSeconds();return Tn=Tn<10?"0"+Tn:Tn,On=On<10?"0"+On:On,rr=rr<10?"0"+rr:rr,"".concat(Tn,":").concat(On,":").concat(rr)}return 0},[Wr]);function hi(){window.sessionStorage.removeItem(ct),ri(!1),_r(0)}function Zi(){ri(!1),_r(0),ht.setValue(window.sessionStorage.getItem(ct))}return l.a.createElement(T.Fragment,null,l.a.createElement("div",{className:"markdown-editor-wrapper",ref:di},l.a.createElement("div",{className:"markdown-editor-container ".concat(Se," ").concat(Nn?"on-preview":""," ").concat(Rt?"mini":""," ").concat(Yt?"full-screen":""),style:ua},l.a.createElement(E,{insertTemp:ft,watch:Nn,fullScreen:Yt,showNullButton:kt,onActionCallback:gr,hidetoolBar:Qt}),l.a.createElement("div",{className:"markdown-editor-body"},l.a.createElement("div",{className:"codemirror-container"},l.a.createElement("textarea",{ref:Xr,placeholder:Ct})),Nn?l.a.createElement("div",{ref:si,className:"preview-container"},Te==="stex"&&l.a.createElement(y,{value:cn}),Te!=="stex"&&l.a.createElement(u.a,{value:cn})):null))),Tt?l.a.createElement("a",{ref:Si,className:"editor-resize"}):null,l.a.createElement(a.a,null,Ne[nr]?l.a.createElement(Z.a,{centered:!0,title:Ne[nr],visible:!0,onCancel:li,footer:null},ii):null))}},P5Jw:function($e,We,z){"use strict";var ae=z("rHrb"),Z=ae.CopyToClipboard;Z.CopyToClipboard=Z,$e.exports=Z},PD8m:function($e,We){$e.exports={name:"memoryStorage",read:ae,write:Z,each:U,remove:w,clearAll:P};var z={};function ae(S){return z[S]}function Z(S,C){z[S]=C}function U(S){for(var C in z)z.hasOwnProperty(C)&&S(z[C],C)}function w(S){delete z[S]}function P(S){z={}}},RELg:function($e,We,z){var ae=z("MFOe"),Z=ae.Global;$e.exports={name:"oldIE-userDataStorage",write:C,read:T,each:l,remove:p,clearAll:h};var U="storejs",w=Z.document,P=c(),S=(Z.navigator?Z.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function C(s,f){if(S)return;var i=o(s);P(function(n){n.setAttribute(i,f),n.save(U)})}function T(s){if(S)return;var f=o(s),i=null;return P(function(n){i=n.getAttribute(f)}),i}function l(s){P(function(f){for(var i=f.XMLDocument.documentElement.attributes,n=i.length-1;n>=0;n--){var t=i[n];s(f.getAttribute(t.name),t.name)}})}function p(s){var f=o(s);P(function(i){i.removeAttribute(f),i.save(U)})}function h(){P(function(s){var f=s.XMLDocument.documentElement.attributes;s.load(U);for(var i=f.length-1;i>=0;i--)s.removeAttribute(f[i].name);s.save(U)})}var d=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function o(s){return s.replace(/^\d/,"___$&").replace(d,"___")}function c(){if(!w||!w.documentElement||!w.documentElement.addBehavior)return null;var s="script",f,i,n;try{i=new ActiveXObject("htmlfile"),i.open(),i.write("<"+s+">document.w=window"+s+'>'),i.close(),f=i.w.frames[0].document,n=f.createElement("div")}catch(t){n=w.createElement("div"),f=w.body}return function(t){var u=[].slice.call(arguments,0);u.unshift(n),f.appendChild(n),n.addBehavior("#default#userData"),n.load(U),t.apply(this,u),f.removeChild(n);return}}},RpDr:function($e,We,z){"use strict";z.d(We,"a",function(){return _}),z.d(We,"c",function(){return m});var ae=z("+L6B"),Z=z("2/Rp"),U=z("tJVT"),w=z("k1fw"),P=z("jrin"),S=z("5NDa"),C=z("5rEg"),T=z("q1tI"),l=z.n(T),p=z("8Skl"),h=z("y3Kf"),d=z("bdLU"),o=z("J66h"),c=z.n(o),s=z("++UQ"),f=z.n(s),i=z("IxHN"),n=z("9Bee"),t=z("1vsH"),u,y=C.a.TextArea,g={visible:!1,tabIndex:"0"},_=(u={},Object(P.a)(u,d.a.NOMATCH,"\u6D4B\u8BD5\u7528\u4F8B\u7ED3\u679C\u4E0D\u5339\u914D"),Object(P.a)(u,d.a.OK,"\u8C03\u8BD5\u901A\u8FC7"),Object(P.a)(u,2,"\u8C03\u8BD5\u8D85\u65F6"),Object(P.a)(u,3,"\u8C03\u8BD5pod\u5931\u8D25"),Object(P.a)(u,4,"\u7F16\u8BD1\u5931\u8D25"),Object(P.a)(u,5,"\u6267\u884C\u5931\u8D25"),u),b;(function(a){a[a.SET_VISIBLE=0]="SET_VISIBLE",a[a.SET_TABINDEX=1]="SET_TABINDEX"})(b||(b={}));function v(a,x){switch(x.type){case b.SET_VISIBLE:return Object(w.a)(Object(w.a)({},a),{},{visible:x.payload});case b.SET_TABINDEX:return Object(w.a)(Object(w.a)({},a),{},{tabIndex:x.payload});default:throw new Error}}function m(a){var x=a.status,O=a.error_msg,A=a.output,D=a.input,I=a.expected_output,F=a.is_file,K=a.input_file_url,ne=a.output_file_url,j=a.expected_output_file_url,G=null,X={minHeight:150,marginBottom:10,paddingLeft:24,background:"#070f19",color:"#fff"};switch(x){case d.a.NOMATCH:G=l.a.createElement(l.a.Fragment,null,l.a.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u5165\uFF1A"),!F&&l.a.createElement(n.a,{value:D,style:X}),F&&l.a.createElement("div",{style:X},l.a.createElement("a",{onClick:function(){return Object(t.x)(K,D)}},D)),l.a.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u51FA\uFF1A"),!F&&l.a.createElement(n.a,{value:A&&o.Base64.decode(A)||"",style:X}),F&&l.a.createElement("div",{style:X},l.a.createElement("a",{onClick:function(){return Object(t.x)(ne,A)}},A)),l.a.createElement("p",{className:"c-red"},"\u9884\u671F\u8F93\u51FA\uFF1A"),!F&&l.a.createElement(n.a,{value:I&&o.Base64.decode(I)||"",style:X}),F&&l.a.createElement("div",{style:X},l.a.createElement("a",{onClick:function(){return Object(t.x)(j,I)}},I)));break;case d.a.EXECUTEFAILURE:G=l.a.createElement(l.a.Fragment,null,l.a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A"),!F&&l.a.createElement(n.a,{value:D,style:X}),F&&l.a.createElement("div",{style:X},l.a.createElement("a",{onClick:function(){return Object(t.x)(K,D)}},D)),l.a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),l.a.createElement("pre",{className:"error"},o.Base64.decode(O)));break;case d.a.COMPILEFAILURE:G=l.a.createElement(l.a.Fragment,null,l.a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A"),!F&&l.a.createElement(n.a,{value:D,style:X}),F&&l.a.createElement("div",{style:X},l.a.createElement("a",{onClick:function(){return Object(t.x)(K,D)}},D)),l.a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),l.a.createElement("pre",{className:"error"},o.Base64.decode(O)));break;case d.a.PODFAILURE:G=l.a.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case d.a.TIMEOUT:G=l.a.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return l.a.createElement(l.a.Fragment,null," ",G," ")}function E(a){var x=a.status,O=a.error_msg,A=a.execute_time,D=a.output,I=a.input,F=a.expected_output,K=a.is_file,ne=a.input_file_url,j=a.output_file_url,G=a.expected_output_file_url,X=null;switch(x){case d.a.OK:X=l.a.createElement(l.a.Fragment,null,l.a.createElement("p",null,"\u6267\u884C\u7528\u65F6\uFF1A",A),l.a.createElement("p",null,"\u6267\u884C\u7ED3\u679C\uFF1A"),l.a.createElement("pre",null,o.Base64.decode(D)));break;case d.a.NOMATCH:X=l.a.createElement(l.a.Fragment,null,l.a.createElement("p",null,"\u8F93\u5165\uFF1A",l.a.createElement("pre",null,I)),l.a.createElement("p",null,"\u8F93\u51FA\uFF1A",D&&o.Base64.decode(D)),l.a.createElement("p",null,"\u9884\u671F\u8F93\u51FA\uFF1A",F&&o.Base64.decode(F)));break;case d.a.EXECUTEFAILURE:X=l.a.createElement(l.a.Fragment,null,l.a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",l.a.createElement("pre",null,I)),l.a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),l.a.createElement("pre",{className:"error"},o.Base64.decode(O)));break;case d.a.COMPILEFAILURE:X=l.a.createElement(l.a.Fragment,null,l.a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",l.a.createElement("pre",null,I)),l.a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),l.a.createElement("pre",{className:"error"},o.Base64.decode(O)));break;case d.a.PODFAILURE:X=l.a.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case d.a.TIMEOUT:X=l.a.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return l.a.createElement(l.a.Fragment,null," ",X," ")}We.b=function(a){var x=a.id,O=a.input,A=a.debuging,D=a.submitting,I=a.executingMessage,F=a.debugResult,K=a.onChangeInput,ne=a.onDebugCode,j=a.onSubmitCode,G=Object(T.useReducer)(v,g),X=Object(U.a)(G,2),J=X[0],B=X[1],Q=J.visible,ie=J.tabIndex;Object(T.useEffect)(function(){B({type:b.SET_VISIBLE,payload:!1})},[x]);function oe(pe){var Oe=pe.target.id;B({type:b.SET_TABINDEX,payload:Oe})}function xe(){B({type:b.SET_VISIBLE,payload:!Q})}var ye=Object(T.useMemo)(function(){if(F){var pe=F.status;return l.a.createElement(l.a.Fragment,null,E(F))}return null},[F]);function Ae(){B({type:b.SET_VISIBLE,payload:!0}),B({type:b.SET_TABINDEX,payload:"1"}),ne()}return l.a.createElement("div",{className:"test-case-panel"},l.a.createElement("div",{className:"test-case-panel-body ".concat(Q?"active":"")},l.a.createElement("ul",{className:"s-navs"},l.a.createElement("li",null,l.a.createElement("a",{className:ie==="0"?"active":"",id:"0",onClick:oe},"\u81EA\u5B9A\u4E49\u6D4B\u8BD5\u7528\u4F8B")),l.a.createElement("li",null,l.a.createElement("a",{className:ie==="1"?"active":"",id:"1",onClick:oe},"\u4EE3\u7801\u6267\u884C\u7ED3\u679C"))),l.a.createElement("div",{className:"tab-panel-body ".concat(ie==="0"?"":"hide")},l.a.createElement(y,{placeholder:"\u8BF7\u586B\u5199\u6D4B\u8BD5\u7528\u4F8B\u7684\u8F93\u5165\u503C\uFF0C\u70B9\u51FB\u201C\u8C03\u8BD5\u4EE3\u7801\u201D",value:O,onChange:K})),l.a.createElement("div",{className:"tab-panel-body ".concat(ie==="1"?"":"hide")},A?l.a.createElement(i.a,{message:I}):F?l.a.createElement("section",{style:{height:200}}," ",ye," "):l.a.createElement("p",{className:"tip"},"\u8BF7\u586B\u5199\u6D4B\u8BD5\u7528\u4F8B\u7684\u8F93\u5165\u503C\uFF0C\u70B9\u51FB\u201C\u8C03\u8BD5\u4EE3\u7801\u201D"))),l.a.createElement("a",{className:"btn-collapse ".concat(Q?"up":""),onClick:xe},Q?l.a.createElement(p.a,null):l.a.createElement(h.a,null)),l.a.createElement("footer",{className:"footer"},l.a.createElement("span",{style:{visibility:"hidden"}},"\u63A7\u5236\u53F0"),l.a.createElement("div",{className:"flex-container"},l.a.createElement(Z.a,{id:"oj-prev",className:"btn-blue",type:"ghost"},"\u4E0A\u4E00\u9898"),l.a.createElement(Z.a,{id:"oj-next",className:"btn-blue",type:"ghost"},"\u4E0B\u4E00\u9898"),l.a.createElement(Z.a,{className:"btn-green",type:"ghost",loading:A,onClick:Ae},"\u8C03\u8BD5\u4EE3\u7801"),l.a.createElement(Z.a,{type:"primary",loading:D,disabled:D,onClick:function(){B({type:b.SET_VISIBLE,payload:!1}),j()}},"\u8BC4\u6D4B\u5E76\u63D0\u4EA4"))))}},"S/kP":function($e,We,z){$e.exports=z.p+"static/time.a3dc82f3.svg"},"SA+Z":function($e,We,z){var ae=z("wTVA"),Z=z("EbDI"),U=z("ZhPi"),w=z("wkBT");function P(S){return ae(S)||Z(S)||U(S)||w()}$e.exports=P,$e.exports.__esModule=!0,$e.exports.default=$e.exports},SJMd:function($e,We){/**
* @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 z,ae,Z,U=!1,w,P;window.PR_SHOULD_USE_CONTINUATION=!0;var S,C;(function(){var T=window,l=["break,continue,do,else,for,if,return,while"],p=[l,"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=[p,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],d=[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"],o=[h,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],c=[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"],s="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"],i="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",n=[l,"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"],t=[l,"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"],u=[l,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],y=[d,c,o,f,i,n,t,u],g=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,_="str",b="kwd",v="com",m="typ",E="lit",a="pun",x="pln",O="tag",A="dec",D="src",I="atn",F="atv",K="nocode",ne="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function j(ue){for(var ke=0,Ue=!1,Ye=!1,ee=0,M=ue.length;ee122||(he<65||_e>90||Xe.push([Math.max(65,_e)|32,Math.min(he,90)|32]),he<97||_e>122||Xe.push([Math.max(97,_e)&~32,Math.min(he,122)&~32]))}}Xe.sort(function(Ge,qe){return Ge[0]-qe[0]||qe[1]-Ge[1]});for(var ve=[],Ee=[],Ke=0;Kebe[0]&&(be[1]+1>be[0]&&Ve.push("-"),Ve.push(Y(be[1])))}return Ve.push("]"),Ve.join("")}function Re(Pe){for(var Ie=Pe.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")),Xe=Ie.length,tt=[],Ve=0,Ke=0;Ve=2&&_e==="["?Ie[Ve]=me(Ne):_e!=="\\"&&(Ie[Ve]=Ne.replace(/[a-zA-Z]/g,function(Ee){var be=Ee.charCodeAt(0);return"["+String.fromCharCode(be&~32,be|32)+"]"}))}return Ie.join("")}for(var rt=[],ee=0,M=ue.length;ee=0;)Ue[rt.charAt(Pe)]=Re;var Ie=Re[1],Xe=""+Ie;V.hasOwnProperty(Xe)||($.push(Ie),V[Xe]=null)}$.push(/[\0-\uffff]/),Ye=j($)})();var ee=ke.length,M=function(N){for(var $=N.sourceCode,V=N.basePos,Y=N.sourceNode,me=[V,x],Re=0,rt=$.match(Ye)||[],Pe={},Ie=0,Xe=rt.length;Ie=5&&Ve.substring(0,5)==="lang-",Ne&&!(Ke&&typeof Ke[1]=="string")&&(Ne=!1,Ve=D),Ne||(Pe[tt]=Ve)}var he=Re;if(Re+=tt.length,!Ne)me.push(V+he,Ve);else{var ve=Ke[1],Ee=tt.indexOf(ve),be=Ee+ve.length;Ke[2]&&(be=tt.length-Ke[2].length,Ee=be-ve.length);var Ge=Ve.substring(5);X(Y,V+he,tt.substring(0,Ee),M,me),X(Y,V+he+Ee,ve,Oe(Ge,ve),me),X(Y,V+he+be,tt.substring(be),M,me)}}N.decorations=me};return M}function ie(ue){var ke=[],Ue=[];ue.tripleQuotedStrings?ke.push([_,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):ue.multiLineStrings?ke.push([_,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):ke.push([_,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),ue.verbatimStrings&&Ue.push([_,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var Ye=ue.hashComments;Ye&&(ue.cStyleComments?(Ye>1?ke.push([v,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):ke.push([v,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),Ue.push([_,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):ke.push([v,/^#[^\r\n]*/,null,"#"])),ue.cStyleComments&&(Ue.push([v,/^\/\/[^\r\n]*/,null]),Ue.push([v,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var ee=ue.regexLiterals;if(ee){var M=ee>1?"":`
\r`,N=M?".":"[\\S\\s]",$="/(?=[^/*"+M+"])(?:[^/\\x5B\\x5C"+M+"]|\\x5C"+N+"|\\x5B(?:[^\\x5C\\x5D"+M+"]|\\x5C"+N+")*(?:\\x5D|$))+/";Ue.push(["lang-regex",RegExp("^"+ne+"("+$+")")])}var V=ue.types;V&&Ue.push([m,V]);var Y=(""+ue.keywords).replace(/^ | $/g,"");Y.length&&Ue.push([b,new RegExp("^(?:"+Y.replace(/[\s,]+/g,"|")+")\\b"),null]),ke.push([x,/^\s+/,null,` \r
\xA0`]);var me="^.[^\\s\\w.$@'\"`/\\\\]*";return ue.regexLiterals&&(me+="(?!s*/)"),Ue.push([E,/^@[a-z_$][a-z_$@0-9]*/i,null],[m,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[x,/^[a-z_$][a-z_$@0-9]*/i,null],[E,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[x,/^\\[\s\S]?/,null],[a,new RegExp(me),null]),Q(ke,Ue)}var oe=ie({keywords:y,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function xe(ue,ke,Ue){for(var Ye=/(?:^|\s)nocode(?:\s|$)/,ee=/\r\n?|\n/,M=ue.ownerDocument,N=M.createElement("li");ue.firstChild;)N.appendChild(ue.firstChild);var $=[N];function V(Ie){var Xe=Ie.nodeType;if(Xe==1&&!Ye.test(Ie.className))if(Ie.nodeName==="br")Y(Ie),Ie.parentNode&&Ie.parentNode.removeChild(Ie);else for(var tt=Ie.firstChild;tt;tt=tt.nextSibling)V(tt);else if((Xe==3||Xe==4)&&Ue){var Ve=Ie.nodeValue,Ke=Ve.match(ee);if(Ke){var Ne=Ve.substring(0,Ke.index);Ie.nodeValue=Ne;var De=Ve.substring(Ke.index+Ke[0].length);if(De){var _e=Ie.parentNode;_e.insertBefore(M.createTextNode(De),Ie.nextSibling)}Y(Ie),Ne||Ie.parentNode.removeChild(Ie)}}}function Y(Ie){for(;!Ie.nextSibling;)if(Ie=Ie.parentNode,!Ie)return;function Xe(Ke,Ne){var De=Ne?Ke.cloneNode(!1):Ke,_e=Ke.parentNode;if(_e){var he=Xe(_e,1),ve=Ke.nextSibling;he.appendChild(De);for(var Ee=ve;Ee;Ee=ve)ve=Ee.nextSibling,he.appendChild(Ee)}return De}for(var tt=Xe(Ie.nextSibling,0),Ve;(Ve=tt.parentNode)&&Ve.nodeType===1;)tt=Ve;$.push(tt)}for(var me=0;me<$.length;++me)V($[me]);ke===(ke|0)&&$[0].setAttribute("value",ke);var Re=M.createElement("ol");Re.className="linenums";for(var rt=Math.max(0,ke-1|0)||0,me=0,Pe=$.length;me=_e&&(V+=2),M>=he&&(Re+=2)}}finally{Ve&&(Ve.style.display=Ke)}}var Ae={};function pe(ue,ke){for(var Ue=ke.length;--Ue>=0;){var Ye=ke[Ue];Ae.hasOwnProperty(Ye)?T.console&&console.warn("cannot override language handler %s",Ye):Ae[Ye]=ue}}function Oe(ue,ke){return ue&&Ae.hasOwnProperty(ue)||(ue=/^\s*]*(?:>|$)/],[v,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[a,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^"),o.close(),d=o.F;s--;)delete d.prototype[l[s]];return d()};P.exports=Object.create||function(o,c){var s;return o!==null?(h.prototype=C(o),s=new h,h.prototype=null,s[p]=o):s=d(),c===void 0?s:T(s,c)}},{"./_an-object":61,"./_dom-create":70,"./_enum-bug-keys":71,"./_html":79,"./_object-dps":99,"./_shared-key":116}],98:[function(w,P,S){var C=w("./_an-object"),T=w("./_ie8-dom-define"),l=w("./_to-primitive"),p=Object.defineProperty;S.f=w("./_descriptors")?Object.defineProperty:function(h,d,o){if(C(h),d=l(d,!0),C(o),T)try{return p(h,d,o)}catch(c){}if("get"in o||"set"in o)throw TypeError("Accessors not supported!");return"value"in o&&(h[d]=o.value),h}},{"./_an-object":61,"./_descriptors":69,"./_ie8-dom-define":80,"./_to-primitive":126}],99:[function(w,P,S){var C=w("./_object-dp"),T=w("./_an-object"),l=w("./_object-keys");P.exports=w("./_descriptors")?Object.defineProperties:function(p,h){T(p);for(var d,o=l(h),c=o.length,s=0;c>s;)C.f(p,d=o[s++],h[d]);return p}},{"./_an-object":61,"./_descriptors":69,"./_object-dp":98,"./_object-keys":106}],100:[function(w,P,S){var C=w("./_object-pie"),T=w("./_property-desc"),l=w("./_to-iobject"),p=w("./_to-primitive"),h=w("./_has"),d=w("./_ie8-dom-define"),o=Object.getOwnPropertyDescriptor;S.f=w("./_descriptors")?o:function(c,s){if(c=l(c),s=p(s,!0),d)try{return o(c,s)}catch(f){}if(h(c,s))return T(!C.f.call(c,s),c[s])}},{"./_descriptors":69,"./_has":77,"./_ie8-dom-define":80,"./_object-pie":107,"./_property-desc":111,"./_to-iobject":123,"./_to-primitive":126}],101:[function(w,P,S){var C=w("./_to-iobject"),T=w("./_object-gopn").f,l={}.toString,p=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],h=function(d){try{return T(d)}catch(o){return p.slice()}};P.exports.f=function(d){return p&&l.call(d)=="[object Window]"?h(d):T(C(d))}},{"./_object-gopn":102,"./_to-iobject":123}],102:[function(w,P,S){var C=w("./_object-keys-internal"),T=w("./_enum-bug-keys").concat("length","prototype");S.f=Object.getOwnPropertyNames||function(l){return C(l,T)}},{"./_enum-bug-keys":71,"./_object-keys-internal":105}],103:[function(w,P,S){S.f=Object.getOwnPropertySymbols},{}],104:[function(w,P,S){var C=w("./_has"),T=w("./_to-object"),l=w("./_shared-key")("IE_PROTO"),p=Object.prototype;P.exports=Object.getPrototypeOf||function(h){return h=T(h),C(h,l)?h[l]:typeof h.constructor=="function"&&h instanceof h.constructor?h.constructor.prototype:h instanceof Object?p:null}},{"./_has":77,"./_shared-key":116,"./_to-object":125}],105:[function(w,P,S){var C=w("./_has"),T=w("./_to-iobject"),l=w("./_array-includes")(!1),p=w("./_shared-key")("IE_PROTO");P.exports=function(h,d){var o,c=T(h),s=0,f=[];for(o in c)o!=p&&C(c,o)&&f.push(o);for(;d.length>s;)C(c,o=d[s++])&&(~l(f,o)||f.push(o));return f}},{"./_array-includes":62,"./_has":77,"./_shared-key":116,"./_to-iobject":123}],106:[function(w,P,S){var C=w("./_object-keys-internal"),T=w("./_enum-bug-keys");P.exports=Object.keys||function(l){return C(l,T)}},{"./_enum-bug-keys":71,"./_object-keys-internal":105}],107:[function(w,P,S){S.f={}.propertyIsEnumerable},{}],108:[function(w,P,S){var C=w("./_export"),T=w("./_core"),l=w("./_fails");P.exports=function(p,h){var d=(T.Object||{})[p]||Object[p],o={};o[p]=h(d),C(C.S+C.F*l(function(){d(1)}),"Object",o)}},{"./_core":65,"./_export":73,"./_fails":74}],109:[function(w,P,S){P.exports=function(C){try{return{e:!1,v:C()}}catch(T){return{e:!0,v:T}}}},{}],110:[function(w,P,S){var C=w("./_an-object"),T=w("./_is-object"),l=w("./_new-promise-capability");P.exports=function(p,h){if(C(p),T(h)&&h.constructor===p)return h;var d=l.f(p);return(0,d.resolve)(h),d.promise}},{"./_an-object":61,"./_is-object":85,"./_new-promise-capability":95}],111:[function(w,P,S){P.exports=function(C,T){return{enumerable:!(1&C),configurable:!(2&C),writable:!(4&C),value:T}}},{}],112:[function(w,P,S){var C=w("./_hide");P.exports=function(T,l,p){for(var h in l)p&&T[h]?T[h]=l[h]:C(T,h,l[h]);return T}},{"./_hide":78}],113:[function(w,P,S){P.exports=w("./_hide")},{"./_hide":78}],114:[function(w,P,S){"use strict";var C=w("./_global"),T=w("./_core"),l=w("./_object-dp"),p=w("./_descriptors"),h=w("./_wks")("species");P.exports=function(d){var o=typeof T[d]=="function"?T[d]:C[d];p&&o&&!o[h]&&l.f(o,h,{configurable:!0,get:function(){return this}})}},{"./_core":65,"./_descriptors":69,"./_global":76,"./_object-dp":98,"./_wks":131}],115:[function(w,P,S){var C=w("./_object-dp").f,T=w("./_has"),l=w("./_wks")("toStringTag");P.exports=function(p,h,d){p&&!T(p=d?p:p.prototype,l)&&C(p,l,{configurable:!0,value:h})}},{"./_has":77,"./_object-dp":98,"./_wks":131}],116:[function(w,P,S){var C=w("./_shared")("keys"),T=w("./_uid");P.exports=function(l){return C[l]||(C[l]=T(l))}},{"./_shared":117,"./_uid":127}],117:[function(w,P,S){var C=w("./_core"),T=w("./_global"),l=T["__core-js_shared__"]||(T["__core-js_shared__"]={});(P.exports=function(p,h){return l[p]||(l[p]=h!==void 0?h:{})})("versions",[]).push({version:C.version,mode:w("./_library")?"pure":"global",copyright:"\u6F0F 2018 Denis Pushkarev (zloirock.ru)"})},{"./_core":65,"./_global":76,"./_library":92}],118:[function(w,P,S){var C=w("./_an-object"),T=w("./_a-function"),l=w("./_wks")("species");P.exports=function(p,h){var d,o=C(p).constructor;return o===void 0||(d=C(o)[l])==null?h:T(d)}},{"./_a-function":58,"./_an-object":61,"./_wks":131}],119:[function(w,P,S){var C=w("./_to-integer"),T=w("./_defined");P.exports=function(l){return function(p,h){var d,o,c=String(T(p)),s=C(h),f=c.length;return s<0||s>=f?l?"":void 0:(d=c.charCodeAt(s),d<55296||d>56319||s+1===f||(o=c.charCodeAt(s+1))<56320||o>57343?l?c.charAt(s):d:l?c.slice(s,s+2):o-56320+(d-55296<<10)+65536)}}},{"./_defined":68,"./_to-integer":122}],120:[function(w,P,S){var C,T,l,p=w("./_ctx"),h=w("./_invoke"),d=w("./_html"),o=w("./_dom-create"),c=w("./_global"),s=c.process,f=c.setImmediate,i=c.clearImmediate,n=c.MessageChannel,t=c.Dispatch,u=0,y={},g=function(){var b=+this;if(y.hasOwnProperty(b)){var v=y[b];delete y[b],v()}},_=function(b){g.call(b.data)};f&&i||(f=function(b){for(var v=[],m=1;arguments.length>m;)v.push(arguments[m++]);return y[++u]=function(){h(typeof b=="function"?b:Function(b),v)},C(u),u},i=function(b){delete y[b]},w("./_cof")(s)=="process"?C=function(b){s.nextTick(p(g,b,1))}:t&&t.now?C=function(b){t.now(p(g,b,1))}:n?(T=new n,l=T.port2,T.port1.onmessage=_,C=p(l.postMessage,l,1)):c.addEventListener&&typeof postMessage=="function"&&!c.importScripts?(C=function(b){c.postMessage(b+"","*")},c.addEventListener("message",_,!1)):C="onreadystatechange"in o("script")?function(b){d.appendChild(o("script")).onreadystatechange=function(){d.removeChild(this),g.call(b)}}:function(b){setTimeout(p(g,b,1),0)}),P.exports={set:f,clear:i}},{"./_cof":64,"./_ctx":67,"./_dom-create":70,"./_global":76,"./_html":79,"./_invoke":81}],121:[function(w,P,S){var C=w("./_to-integer"),T=Math.max,l=Math.min;P.exports=function(p,h){return p=C(p),p<0?T(p+h,0):l(p,h)}},{"./_to-integer":122}],122:[function(w,P,S){var C=Math.ceil,T=Math.floor;P.exports=function(l){return isNaN(l=+l)?0:(l>0?T:C)(l)}},{}],123:[function(w,P,S){var C=w("./_iobject"),T=w("./_defined");P.exports=function(l){return C(T(l))}},{"./_defined":68,"./_iobject":82}],124:[function(w,P,S){var C=w("./_to-integer"),T=Math.min;P.exports=function(l){return l>0?T(C(l),9007199254740991):0}},{"./_to-integer":122}],125:[function(w,P,S){var C=w("./_defined");P.exports=function(T){return Object(C(T))}},{"./_defined":68}],126:[function(w,P,S){var C=w("./_is-object");P.exports=function(T,l){if(!C(T))return T;var p,h;if(l&&typeof(p=T.toString)=="function"&&!C(h=p.call(T)))return h;if(typeof(p=T.valueOf)=="function"&&!C(h=p.call(T)))return h;if(!l&&typeof(p=T.toString)=="function"&&!C(h=p.call(T)))return h;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":85}],127:[function(w,P,S){var C=0,T=Math.random();P.exports=function(l){return"Symbol(".concat(l===void 0?"":l,")_",(++C+T).toString(36))}},{}],128:[function(w,P,S){var C=w("./_global"),T=C.navigator;P.exports=T&&T.userAgent||""},{"./_global":76}],129:[function(w,P,S){var C=w("./_global"),T=w("./_core"),l=w("./_library"),p=w("./_wks-ext"),h=w("./_object-dp").f;P.exports=function(d){var o=T.Symbol||(T.Symbol=l?{}:C.Symbol||{});d.charAt(0)=="_"||d in o||h(o,d,{value:p.f(d)})}},{"./_core":65,"./_global":76,"./_library":92,"./_object-dp":98,"./_wks-ext":130}],130:[function(w,P,S){S.f=w("./_wks")},{"./_wks":131}],131:[function(w,P,S){var C=w("./_shared")("wks"),T=w("./_uid"),l=w("./_global").Symbol,p=typeof l=="function";(P.exports=function(h){return C[h]||(C[h]=p&&l[h]||(p?l:T)("Symbol."+h))}).store=C},{"./_global":76,"./_shared":117,"./_uid":127}],132:[function(w,P,S){var C=w("./_classof"),T=w("./_wks")("iterator"),l=w("./_iterators");P.exports=w("./_core").getIteratorMethod=function(p){if(p!=null)return p[T]||p["@@iterator"]||l[C(p)]}},{"./_classof":63,"./_core":65,"./_iterators":91,"./_wks":131}],133:[function(w,P,S){"use strict";var C=w("./_ctx"),T=w("./_export"),l=w("./_to-object"),p=w("./_iter-call"),h=w("./_is-array-iter"),d=w("./_to-length"),o=w("./_create-property"),c=w("./core.get-iterator-method");T(T.S+T.F*!w("./_iter-detect")(function(s){Array.from(s)}),"Array",{from:function(s){var f,i,n,t,u=l(s),y=typeof this=="function"?this:Array,g=arguments.length,_=g>1?arguments[1]:void 0,b=_!==void 0,v=0,m=c(u);if(b&&(_=C(_,g>2?arguments[2]:void 0,2)),m==null||y==Array&&h(m))for(f=d(u.length),i=new y(f);f>v;v++)o(i,v,b?_(u[v],v):u[v]);else for(t=m.call(u),i=new y;!(n=t.next()).done;v++)o(i,v,b?p(t,_,[n.value,v],!0):n.value);return i.length=v,i}})},{"./_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(w,P,S){"use strict";var C=w("./_add-to-unscopables"),T=w("./_iter-step"),l=w("./_iterators"),p=w("./_to-iobject");P.exports=w("./_iter-define")(Array,"Array",function(h,d){this._t=p(h),this._i=0,this._k=d},function(){var h=this._t,d=this._k,o=this._i++;return!h||o>=h.length?(this._t=void 0,T(1)):d=="keys"?T(0,o):d=="values"?T(0,h[o]):T(0,[o,h[o]])},"values"),l.Arguments=l.Array,C("keys"),C("values"),C("entries")},{"./_add-to-unscopables":59,"./_iter-define":88,"./_iter-step":90,"./_iterators":91,"./_to-iobject":123}],135:[function(w,P,S){"use strict";var C=w("./_is-object"),T=w("./_object-gpo"),l=w("./_wks")("hasInstance"),p=Function.prototype;l in p||w("./_object-dp").f(p,l,{value:function(h){if(typeof this!="function"||!C(h))return!1;if(!C(this.prototype))return h instanceof this;for(;h=T(h);)if(this.prototype===h)return!0;return!1}})},{"./_is-object":85,"./_object-dp":98,"./_object-gpo":104,"./_wks":131}],136:[function(w,P,S){var C=w("./_export");C(C.S+C.F,"Object",{assign:w("./_object-assign")})},{"./_export":73,"./_object-assign":96}],137:[function(w,P,S){var C=w("./_export");C(C.S,"Object",{create:w("./_object-create")})},{"./_export":73,"./_object-create":97}],138:[function(w,P,S){var C=w("./_export");C(C.S+C.F*!w("./_descriptors"),"Object",{defineProperty:w("./_object-dp").f})},{"./_descriptors":69,"./_export":73,"./_object-dp":98}],139:[function(w,P,S){w("./_object-sap")("getOwnPropertyNames",function(){return w("./_object-gopn-ext").f})},{"./_object-gopn-ext":101,"./_object-sap":108}],140:[function(w,P,S){var C=w("./_to-object"),T=w("./_object-gpo");w("./_object-sap")("getPrototypeOf",function(){return function(l){return T(C(l))}})},{"./_object-gpo":104,"./_object-sap":108,"./_to-object":125}],141:[function(w,P,S){var C=w("./_to-object"),T=w("./_object-keys");w("./_object-sap")("keys",function(){return function(l){return T(C(l))}})},{"./_object-keys":106,"./_object-sap":108,"./_to-object":125}],142:[function(w,P,S){arguments[4][36][0].apply(S,arguments)},{dup:36}],143:[function(w,P,S){"use strict";var C,T,l,p,h=w("./_library"),d=w("./_global"),o=w("./_ctx"),c=w("./_classof"),s=w("./_export"),f=w("./_is-object"),i=w("./_a-function"),n=w("./_an-instance"),t=w("./_for-of"),u=w("./_species-constructor"),y=w("./_task").set,g=w("./_microtask")(),_=w("./_new-promise-capability"),b=w("./_perform"),v=w("./_user-agent"),m=w("./_promise-resolve"),E=d.TypeError,a=d.process,x=a&&a.versions,O=x&&x.v8||"",A=d.Promise,D=c(a)=="process",I=function(){},F=T=_.f,K=!!function(){try{var ie=A.resolve(1),oe=(ie.constructor={})[w("./_wks")("species")]=function(xe){xe(I,I)};return(D||typeof PromiseRejectionEvent=="function")&&ie.then(I)instanceof oe&&O.indexOf("6.6")!==0&&v.indexOf("Chrome/66")===-1}catch(xe){}}(),ne=function(ie){var oe;return!(!f(ie)||typeof(oe=ie.then)!="function")&&oe},j=function(ie,oe){if(!ie._n){ie._n=!0;var xe=ie._c;g(function(){for(var ye=ie._v,Ae=ie._s==1,pe=0;xe.length>pe;)!function(Oe){var Fe,Me,Ce,Le=Ae?Oe.ok:Oe.fail,de=Oe.resolve,ue=Oe.reject,ke=Oe.domain;try{Le?(Ae||(ie._h==2&&J(ie),ie._h=1),Le===!0?Fe=ye:(ke&&ke.enter(),Fe=Le(ye),ke&&(ke.exit(),Ce=!0)),Fe===Oe.promise?ue(E("Promise-chain cycle")):(Me=ne(Fe))?Me.call(Fe,de,ue):de(Fe)):ue(ye)}catch(Ue){ke&&!Ce&&ke.exit(),ue(Ue)}}(xe[pe++]);ie._c=[],ie._n=!1,oe&&!ie._h&&G(ie)})}},G=function(ie){y.call(d,function(){var oe,xe,ye,Ae=ie._v,pe=X(ie);if(pe&&(oe=b(function(){D?a.emit("unhandledRejection",Ae,ie):(xe=d.onunhandledrejection)?xe({promise:ie,reason:Ae}):(ye=d.console)&&ye.error&&ye.error("Unhandled promise rejection",Ae)}),ie._h=D||X(ie)?2:1),ie._a=void 0,pe&&oe.e)throw oe.v})},X=function(ie){return ie._h!==1&&(ie._a||ie._c).length===0},J=function(ie){y.call(d,function(){var oe;D?a.emit("rejectionHandled",ie):(oe=d.onrejectionhandled)&&oe({promise:ie,reason:ie._v})})},B=function(ie){var oe=this;oe._d||(oe._d=!0,oe=oe._w||oe,oe._v=ie,oe._s=2,oe._a||(oe._a=oe._c.slice()),j(oe,!0))},Q=function(ie){var oe,xe=this;if(!xe._d){xe._d=!0,xe=xe._w||xe;try{if(xe===ie)throw E("Promise can't be resolved itself");(oe=ne(ie))?g(function(){var ye={_w:xe,_d:!1};try{oe.call(ie,o(Q,ye,1),o(B,ye,1))}catch(Ae){B.call(ye,Ae)}}):(xe._v=ie,xe._s=1,j(xe,!1))}catch(ye){B.call({_w:xe,_d:!1},ye)}}};K||(A=function(ie){n(this,A,"Promise","_h"),i(ie),C.call(this);try{ie(o(Q,this,1),o(B,this,1))}catch(oe){B.call(this,oe)}},C=function(ie){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},C.prototype=w("./_redefine-all")(A.prototype,{then:function(ie,oe){var xe=F(u(this,A));return xe.ok=typeof ie!="function"||ie,xe.fail=typeof oe=="function"&&oe,xe.domain=D?a.domain:void 0,this._c.push(xe),this._a&&this._a.push(xe),this._s&&j(this,!1),xe.promise},catch:function(ie){return this.then(void 0,ie)}}),l=function(){var ie=new C;this.promise=ie,this.resolve=o(Q,ie,1),this.reject=o(B,ie,1)},_.f=F=function(ie){return ie===A||ie===p?new l(ie):T(ie)}),s(s.G+s.W+s.F*!K,{Promise:A}),w("./_set-to-string-tag")(A,"Promise"),w("./_set-species")("Promise"),p=w("./_core").Promise,s(s.S+s.F*!K,"Promise",{reject:function(ie){var oe=F(this);return(0,oe.reject)(ie),oe.promise}}),s(s.S+s.F*(h||!K),"Promise",{resolve:function(ie){return m(h&&this===p?A:this,ie)}}),s(s.S+s.F*!(K&&w("./_iter-detect")(function(ie){A.all(ie).catch(I)})),"Promise",{all:function(ie){var oe=this,xe=F(oe),ye=xe.resolve,Ae=xe.reject,pe=b(function(){var Oe=[],Fe=0,Me=1;t(ie,!1,function(Ce){var Le=Fe++,de=!1;Oe.push(void 0),Me++,oe.resolve(Ce).then(function(ue){de||(de=!0,Oe[Le]=ue,--Me||ye(Oe))},Ae)}),--Me||ye(Oe)});return pe.e&&Ae(pe.v),xe.promise},race:function(ie){var oe=this,xe=F(oe),ye=xe.reject,Ae=b(function(){t(ie,!1,function(pe){oe.resolve(pe).then(xe.resolve,ye)})});return Ae.e&&ye(Ae.v),xe.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(w,P,S){var C=w("./_export"),T=w("./_to-absolute-index"),l=String.fromCharCode,p=String.fromCodePoint;C(C.S+C.F*(!!p&&p.length!=1),"String",{fromCodePoint:function(h){for(var d,o=[],c=arguments.length,s=0;c>s;){if(d=+arguments[s++],T(d,1114111)!==d)throw RangeError(d+" is not a valid code point");o.push(d<65536?l(d):l(55296+((d-=65536)>>10),d%1024+56320))}return o.join("")}})},{"./_export":73,"./_to-absolute-index":121}],145:[function(w,P,S){"use strict";var C=w("./_string-at")(!0);w("./_iter-define")(String,"String",function(T){this._t=String(T),this._i=0},function(){var T,l=this._t,p=this._i;return p>=l.length?{value:void 0,done:!0}:(T=C(l,p),this._i+=T.length,{value:T,done:!1})})},{"./_iter-define":88,"./_string-at":119}],146:[function(w,P,S){"use strict";var C=w("./_global"),T=w("./_has"),l=w("./_descriptors"),p=w("./_export"),h=w("./_redefine"),d=w("./_meta").KEY,o=w("./_fails"),c=w("./_shared"),s=w("./_set-to-string-tag"),f=w("./_uid"),i=w("./_wks"),n=w("./_wks-ext"),t=w("./_wks-define"),u=w("./_enum-keys"),y=w("./_is-array"),g=w("./_an-object"),_=w("./_is-object"),b=w("./_to-iobject"),v=w("./_to-primitive"),m=w("./_property-desc"),E=w("./_object-create"),a=w("./_object-gopn-ext"),x=w("./_object-gopd"),O=w("./_object-dp"),A=w("./_object-keys"),D=x.f,I=O.f,F=a.f,K=C.Symbol,ne=C.JSON,j=ne&&ne.stringify,G=i("_hidden"),X=i("toPrimitive"),J={}.propertyIsEnumerable,B=c("symbol-registry"),Q=c("symbols"),ie=c("op-symbols"),oe=Object.prototype,xe=typeof K=="function",ye=C.QObject,Ae=!ye||!ye.prototype||!ye.prototype.findChild,pe=l&&o(function(){return E(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a!=7})?function($,V,Y){var me=D(oe,V);me&&delete oe[V],I($,V,Y),me&&$!==oe&&I(oe,V,me)}:I,Oe=function($){var V=Q[$]=E(K.prototype);return V._k=$,V},Fe=xe&&typeof K.iterator=="symbol"?function($){return typeof $=="symbol"}:function($){return $ instanceof K},Me=function($,V,Y){return $===oe&&Me(ie,V,Y),g($),V=v(V,!0),g(Y),T(Q,V)?(Y.enumerable?(T($,G)&&$[G][V]&&($[G][V]=!1),Y=E(Y,{enumerable:m(0,!1)})):(T($,G)||I($,G,m(1,{})),$[G][V]=!0),pe($,V,Y)):I($,V,Y)},Ce=function($,V){g($);for(var Y,me=u(V=b(V)),Re=0,rt=me.length;rt>Re;)Me($,Y=me[Re++],V[Y]);return $},Le=function($,V){return V===void 0?E($):Ce(E($),V)},de=function($){var V=J.call(this,$=v($,!0));return!(this===oe&&T(Q,$)&&!T(ie,$))&&(!(V||!T(this,$)||!T(Q,$)||T(this,G)&&this[G][$])||V)},ue=function($,V){if($=b($),V=v(V,!0),$!==oe||!T(Q,V)||T(ie,V)){var Y=D($,V);return!Y||!T(Q,V)||T($,G)&&$[G][V]||(Y.enumerable=!0),Y}},ke=function($){for(var V,Y=F(b($)),me=[],Re=0;Y.length>Re;)T(Q,V=Y[Re++])||V==G||V==d||me.push(V);return me},Ue=function($){for(var V,Y=$===oe,me=F(Y?ie:b($)),Re=[],rt=0;me.length>rt;)!T(Q,V=me[rt++])||Y&&!T(oe,V)||Re.push(Q[V]);return Re};xe||(K=function(){if(this instanceof K)throw TypeError("Symbol is not a constructor!");var $=f(arguments.length>0?arguments[0]:void 0),V=function(Y){this===oe&&V.call(ie,Y),T(this,G)&&T(this[G],$)&&(this[G][$]=!1),pe(this,$,m(1,Y))};return l&&Ae&&pe(oe,$,{configurable:!0,set:V}),Oe($)},h(K.prototype,"toString",function(){return this._k}),x.f=ue,O.f=Me,w("./_object-gopn").f=a.f=ke,w("./_object-pie").f=de,w("./_object-gops").f=Ue,l&&!w("./_library")&&h(oe,"propertyIsEnumerable",de,!0),n.f=function($){return Oe(i($))}),p(p.G+p.W+p.F*!xe,{Symbol:K});for(var Ye="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ee=0;Ye.length>ee;)i(Ye[ee++]);for(var M=A(i.store),N=0;M.length>N;)t(M[N++]);p(p.S+p.F*!xe,"Symbol",{for:function($){return T(B,$+="")?B[$]:B[$]=K($)},keyFor:function($){if(!Fe($))throw TypeError($+" is not a symbol!");for(var V in B)if(B[V]===$)return V},useSetter:function(){Ae=!0},useSimple:function(){Ae=!1}}),p(p.S+p.F*!xe,"Object",{create:Le,defineProperty:Me,defineProperties:Ce,getOwnPropertyDescriptor:ue,getOwnPropertyNames:ke,getOwnPropertySymbols:Ue}),ne&&p(p.S+p.F*(!xe||o(function(){var $=K();return j([$])!="[null]"||j({a:$})!="{}"||j(Object($))!="{}"})),"JSON",{stringify:function($){for(var V,Y,me=[$],Re=1;arguments.length>Re;)me.push(arguments[Re++]);if(Y=V=me[1],(_(V)||$!==void 0)&&!Fe($))return y(V)||(V=function(rt,Pe){if(typeof Y=="function"&&(Pe=Y.call(this,rt,Pe)),!Fe(Pe))return Pe}),me[1]=V,j.apply(ne,me)}}),K.prototype[X]||w("./_hide")(K.prototype,X,K.prototype.valueOf),s(K,"Symbol"),s(Math,"Math",!0),s(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(w,P,S){"use strict";var C=w("./_export"),T=w("./_core"),l=w("./_global"),p=w("./_species-constructor"),h=w("./_promise-resolve");C(C.P+C.R,"Promise",{finally:function(d){var o=p(this,T.Promise||l.Promise),c=typeof d=="function";return this.then(c?function(s){return h(o,d()).then(function(){return s})}:d,c?function(s){return h(o,d()).then(function(){throw s})}:d)}})},{"./_core":65,"./_export":73,"./_global":76,"./_promise-resolve":110,"./_species-constructor":118}],148:[function(w,P,S){"use strict";var C=w("./_export"),T=w("./_new-promise-capability"),l=w("./_perform");C(C.S,"Promise",{try:function(p){var h=T.f(this),d=l(p);return(d.e?h.reject:h.resolve)(d.v),h.promise}})},{"./_export":73,"./_new-promise-capability":95,"./_perform":109}],149:[function(w,P,S){w("./_wks-define")("asyncIterator")},{"./_wks-define":129}],150:[function(w,P,S){w("./_wks-define")("observable")},{"./_wks-define":129}],151:[function(w,P,S){w("./es6.array.iterator");for(var C=w("./_global"),T=w("./_hide"),l=w("./_iterators"),p=w("./_wks")("toStringTag"),h="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),d=0;d0?"-":"+")+p(100*Math.floor(Math.abs(D)/60)+Math.abs(D)%60,4),S:["th","st","nd","rd"][b%10>3?0:(b%100-b%10!=10)*b%10],W:I,N:F};return t.replace(s,function(ne){return ne in K?K[ne]:ne.slice(1,ne.length-1)})}}();c.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"},c.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 U=="function"&&U.amd?U(function(){return c}):(S===void 0?"undefined":(0,T.default)(S))==="object"?P.exports=c:l.dateFormat=c}(void 0)},{"babel-runtime/helpers/typeof":32}],155:[function(w,P,S){(function(C){function T(){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 l(o){var c=this.useColors;if(o[0]=(c?"%c":"")+this.namespace+(c?" %c":" ")+o[0]+(c?"%c ":" ")+"+"+S.humanize(this.diff),c){var s="color: "+this.color;o.splice(1,0,s,"color: inherit");var f=0,i=0;o[0].replace(/%[a-zA-Z%]/g,function(n){n!=="%%"&&(f++,n==="%c"&&(i=f))}),o.splice(i,0,s)}}function p(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function h(o){try{o==null?S.storage.removeItem("debug"):S.storage.debug=o}catch(c){}}function d(){var o;try{o=S.storage.debug}catch(c){}return!o&&C!==void 0&&"env"in C&&(o=C.env.DEBUG),o}S=P.exports=w("./debug"),S.log=p,S.formatArgs=l,S.save=h,S.load=d,S.useColors=T,S.storage=typeof chrome!="undefined"&&chrome.storage!==void 0?chrome.storage.local:function(){try{return window.localStorage}catch(o){}}(),S.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],S.formatters.j=function(o){try{return JSON.stringify(o)}catch(c){return"[UnexpectedJSONParseError]: "+c.message}},S.enable(d())}).call(this,w("_process"))},{"./debug":156,_process:173}],156:[function(w,P,S){function C(c){var s,f=0;for(s in c)f=(f<<5)-f+c.charCodeAt(s),f|=0;return S.colors[Math.abs(f)%S.colors.length]}function T(c){function s(){if(s.enabled){var f=s,i=+new Date,n=i-(o||i);f.diff=n,f.prev=o,f.curr=i,o=i;for(var t=new Array(arguments.length),u=0;u]/;P.exports=C},{}],158:[function(w,P,S){function C(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function T(d){return typeof d=="function"}function l(d){return typeof d=="number"}function p(d){return typeof d=="object"&&d!==null}function h(d){return d===void 0}P.exports=C,C.EventEmitter=C,C.prototype._events=void 0,C.prototype._maxListeners=void 0,C.defaultMaxListeners=10,C.prototype.setMaxListeners=function(d){if(!l(d)||d<0||isNaN(d))throw TypeError("n must be a positive number");return this._maxListeners=d,this},C.prototype.emit=function(d){var o,c,s,f,i,n;if(this._events||(this._events={}),d==="error"&&(!this._events.error||p(this._events.error)&&!this._events.error.length)){if((o=arguments[1])instanceof Error)throw o;var t=new Error('Uncaught, unspecified "error" event. ('+o+")");throw t.context=o,t}if(c=this._events[d],h(c))return!1;if(T(c))switch(arguments.length){case 1:c.call(this);break;case 2:c.call(this,arguments[1]);break;case 3:c.call(this,arguments[1],arguments[2]);break;default:f=Array.prototype.slice.call(arguments,1),c.apply(this,f)}else if(p(c))for(f=Array.prototype.slice.call(arguments,1),n=c.slice(),s=n.length,i=0;i0&&this._events[d].length>c&&(this._events[d].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[d].length),typeof console.trace=="function"&&console.trace()),this},C.prototype.on=C.prototype.addListener,C.prototype.once=function(d,o){function c(){this.removeListener(d,c),s||(s=!0,o.apply(this,arguments))}if(!T(o))throw TypeError("listener must be a function");var s=!1;return c.listener=o,this.on(d,c),this},C.prototype.removeListener=function(d,o){var c,s,f,i;if(!T(o))throw TypeError("listener must be a function");if(!this._events||!this._events[d])return this;if(c=this._events[d],f=c.length,s=-1,c===o||T(c.listener)&&c.listener===o)delete this._events[d],this._events.removeListener&&this.emit("removeListener",d,o);else if(p(c)){for(i=f;i-- >0;)if(c[i]===o||c[i].listener&&c[i].listener===o){s=i;break}if(s<0)return this;c.length===1?(c.length=0,delete this._events[d]):c.splice(s,1),this._events.removeListener&&this.emit("removeListener",d,o)}return this},C.prototype.removeAllListeners=function(d){var o,c;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[d]&&delete this._events[d],this;if(arguments.length===0){for(o in this._events)o!=="removeListener"&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events={},this}if(c=this._events[d],T(c))this.removeListener(d,c);else if(c)for(;c.length;)this.removeListener(d,c[c.length-1]);return delete this._events[d],this},C.prototype.listeners=function(d){return this._events&&this._events[d]?T(this._events[d])?[this._events[d]]:this._events[d].slice():[]},C.prototype.listenerCount=function(d){if(this._events){var o=this._events[d];if(T(o))return 1;if(o)return o.length}return 0},C.listenerCount=function(d,o){return d.listenerCount(o)}},{}],159:[function(w,P,S){var C=w("http"),T=P.exports;for(var l in C)C.hasOwnProperty(l)&&(T[l]=C[l]);T.request=function(p,h){return p||(p={}),p.scheme="https",p.protocol="https:",C.request.call(this,p,h)}},{http:196}],160:[function(w,P,S){"use strict";var C=w("util"),T=w("ms");P.exports=function(l){if(typeof l=="number")return l;var p=T(l);if(p===void 0){var h=new Error(C.format("humanize-ms(%j) result undefined",l));console.warn(h.stack)}return p}},{ms:169,util:207}],161:[function(w,P,S){S.read=function(C,T,l,p,h){var d,o,c=8*h-p-1,s=(1<>1,i=-7,n=l?h-1:0,t=l?-1:1,u=C[T+n];for(n+=t,d=u&(1<<-i)-1,u>>=-i,i+=c;i>0;d=256*d+C[T+n],n+=t,i-=8);for(o=d&(1<<-i)-1,d>>=-i,i+=p;i>0;o=256*o+C[T+n],n+=t,i-=8);if(d===0)d=1-f;else{if(d===s)return o?NaN:1/0*(u?-1:1);o+=Math.pow(2,p),d-=f}return(u?-1:1)*o*Math.pow(2,d-p)},S.write=function(C,T,l,p,h,d){var o,c,s,f=8*d-h-1,i=(1<>1,t=h===23?Math.pow(2,-24)-Math.pow(2,-77):0,u=p?0:d-1,y=p?1:-1,g=T<0||T===0&&1/T<0?1:0;for(T=Math.abs(T),isNaN(T)||T===1/0?(c=isNaN(T)?1:0,o=i):(o=Math.floor(Math.log(T)/Math.LN2),T*(s=Math.pow(2,-o))<1&&(o--,s*=2),T+=o+n>=1?t/s:t*Math.pow(2,1-n),T*s>=2&&(o++,s/=2),o+n>=i?(c=0,o=i):o+n>=1?(c=(T*s-1)*Math.pow(2,h),o+=n):(c=T*Math.pow(2,n-1)*Math.pow(2,h),o=0));h>=8;C[l+u]=255&c,u+=y,c/=256,h-=8);for(o=o<0;C[l+u]=255&o,u+=y,o/=256,f-=8);C[l+u-y]|=128*g}},{}],162:[function(w,P,S){typeof Object.create=="function"?P.exports=function(C,T){C.super_=T,C.prototype=Object.create(T.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}})}:P.exports=function(C,T){C.super_=T;var l=function(){};l.prototype=T.prototype,C.prototype=new l,C.prototype.constructor=C}},{}],163:[function(w,P,S){function C(l){return!!l.constructor&&typeof l.constructor.isBuffer=="function"&&l.constructor.isBuffer(l)}function T(l){return typeof l.readFloatLE=="function"&&typeof l.slice=="function"&&C(l.slice(0,0))}P.exports=function(l){return l!=null&&(C(l)||T(l)||!!l._isBuffer)}},{}],164:[function(w,P,S){!function(C){function T(h){return p.call(h).replace(/^[^{]*{\s*/,"").replace(/\s*}[^}]*$/,"")}function l(h){return typeof h=="function"&&(/^class(\s|\{\}$)/.test(p.call(h))||/^.*classCallCheck\(/.test(T(h)))}var p=Function.prototype.toString;S!==void 0?(P!==void 0&&P.exports&&(S=P.exports=l),S.isClass=l):typeof U=="function"&&U.amd?U([],function(){return l}):C.isClass=l}(this)},{}],165:[function(w,P,S){"use strict";function C(d){var o=d.slice(2);return o=o[0].toLowerCase()+o.slice(1)}var T=w("core-util-is"),l=w("isstream"),p=w("is-class");Object.keys(T).map(function(d){S[C(d)]=T[d]}),S.stream=l,S.readableStream=l.isReadable,S.writableStream=l.isWritable,S.duplexStream=l.isDuplex,S.class=p,S.finite=function(d){return Number.isFinite(d)},S.NaN=function(d){return Number.isNaN(d)},S.generator=function(d){return d&&typeof d.next=="function"&&typeof d.throw=="function"},S.generatorFunction=function(d){return d&&d.constructor&&d.constructor.name==="GeneratorFunction"},S.asyncFunction=function(d){return d&&d.constructor&&d.constructor.name==="AsyncFunction"},S.promise=function(d){return d&&typeof d.then=="function"};var h=Math.pow(2,31);S.int=function(d){return T.isNumber(d)&&d%1==0},S.int32=function(d){return S.int(d)&&d=-h},S.long=function(d){return S.int(d)&&(d>=h||d<-h)},S.Long=function(d){return S.object(d)&&S.number(d.high)&&S.number(d.low)},S.double=function(d){return T.isNumber(d)&&!isNaN(d)&&d%1!=0},S.date=function(d){return d instanceof Date},S.regExp=function(d){return d instanceof RegExp},S.regexp=S.regExp,S.error=function(d){return d instanceof Error},S.array=function(d){return Array.isArray(d)}},{"core-util-is":153,"is-class":164,isstream:167}],166:[function(w,P,S){var C={}.toString;P.exports=Array.isArray||function(T){return C.call(T)=="[object Array]"}},{}],167:[function(w,P,S){function C(d){return d instanceof h.Stream}function T(d){return C(d)&&typeof d._read=="function"&&typeof d._readableState=="object"}function l(d){return C(d)&&typeof d._write=="function"&&typeof d._writableState=="object"}function p(d){return T(d)&&l(d)}var h=w("stream");P.exports=C,P.exports.isReadable=T,P.exports.isWritable=l,P.exports.isDuplex=p},{stream:195}],168:[function(w,P,S){"use strict";function C(l,p,h){if(!l)throw new TypeError("argument dest is required");if(!p)throw new TypeError("argument src is required");return h===void 0&&(h=!0),Object.getOwnPropertyNames(p).forEach(function(d){if(h||!T.call(l,d)){var o=Object.getOwnPropertyDescriptor(p,d);Object.defineProperty(l,d,o)}}),l}P.exports=C;var T=Object.prototype.hasOwnProperty},{}],169:[function(w,P,S){function C(f){if(f=String(f),!(f.length>100)){var i=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(f);if(i){var n=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return n*s;case"days":case"day":case"d":return n*c;case"hours":case"hour":case"hrs":case"hr":case"h":return n*o;case"minutes":case"minute":case"mins":case"min":case"m":return n*d;case"seconds":case"second":case"secs":case"sec":case"s":return n*h;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function T(f){return f>=c?Math.round(f/c)+"d":f>=o?Math.round(f/o)+"h":f>=d?Math.round(f/d)+"m":f>=h?Math.round(f/h)+"s":f+"ms"}function l(f){return p(f,c,"day")||p(f,o,"hour")||p(f,d,"minute")||p(f,h,"second")||f+" ms"}function p(f,i,n){if(!(f0)return C(f);if(n==="number"&&isNaN(f)===!1)return i.long?l(f):T(f);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(f))}},{}],170:[function(w,P,S){(function(C){function T(d,o){for(var c=0,s=d.length-1;s>=0;s--){var f=d[s];f==="."?d.splice(s,1):f===".."?(d.splice(s,1),c++):c&&(d.splice(s,1),c--)}if(o)for(;c--;c)d.unshift("..");return d}function l(d){typeof d!="string"&&(d+="");var o,c=0,s=-1,f=!0;for(o=d.length-1;o>=0;--o)if(d.charCodeAt(o)===47){if(!f){c=o+1;break}}else s===-1&&(f=!1,s=o+1);return s===-1?"":d.slice(c,s)}function p(d,o){if(d.filter)return d.filter(o);for(var c=[],s=0;s=-1&&!o;c--){var s=c>=0?arguments[c]:C.cwd();if(typeof s!="string")throw new TypeError("Arguments to path.resolve must be strings");s&&(d=s+"/"+d,o=s.charAt(0)==="/")}return d=T(p(d.split("/"),function(f){return!!f}),!o).join("/"),(o?"/":"")+d||"."},S.normalize=function(d){var o=S.isAbsolute(d),c=h(d,-1)==="/";return d=T(p(d.split("/"),function(s){return!!s}),!o).join("/"),d||o||(d="."),d&&c&&(d+="/"),(o?"/":"")+d},S.isAbsolute=function(d){return d.charAt(0)==="/"},S.join=function(){var d=Array.prototype.slice.call(arguments,0);return S.normalize(p(d,function(o,c){if(typeof o!="string")throw new TypeError("Arguments to path.join must be strings");return o}).join("/"))},S.relative=function(d,o){function c(y){for(var g=0;g=0&&y[_]==="";_--);return g>_?[]:y.slice(g,_-g+1)}d=S.resolve(d).substr(1),o=S.resolve(o).substr(1);for(var s=c(d.split("/")),f=c(o.split("/")),i=Math.min(s.length,f.length),n=i,t=0;t=1;--i)if((o=d.charCodeAt(i))===47){if(!f){s=i;break}}else f=!1;return s===-1?c?"/":".":c&&s===1?"/":d.slice(0,s)},S.basename=function(d,o){var c=l(d);return o&&c.substr(-1*o.length)===o&&(c=c.substr(0,c.length-o.length)),c},S.extname=function(d){typeof d!="string"&&(d+="");for(var o=-1,c=0,s=-1,f=!0,i=0,n=d.length-1;n>=0;--n){var t=d.charCodeAt(n);if(t!==47)s===-1&&(f=!1,s=n+1),t===46?o===-1?o=n:i!==1&&(i=1):o!==-1&&(i=-1);else if(!f){c=n+1;break}}return o===-1||s===-1||i===0||i===1&&o===s-1&&o===c+1?"":d.slice(o,s)};var h="ab".substr(-1)==="b"?function(d,o,c){return d.substr(o,c)}:function(d,o,c){return o<0&&(o=d.length+o),d.substr(o,c)}}).call(this,w("_process"))},{_process:173}],171:[function(w,P,S){(function(C){(function(){"use strict";function T(O){return O=String(O),O.charAt(0).toUpperCase()+O.slice(1)}function l(O,A,D){var I={"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 A&&D&&/^Win/i.test(O)&&!/^Windows Phone /i.test(O)&&(I=I[/[\d.]+$/.exec(O)])&&(O="Windows "+I),O=String(O),A&&D&&(O=O.replace(RegExp(A,"i"),D)),O=h(O.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 p(O,A){var D=-1,I=O?O.length:0;if(typeof I=="number"&&I>-1&&I<=b)for(;++D3&&"WebKit"||/\bOpera\b/.test(Ue)&&(/\bOPR\b/.test(O)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(O)&&!/^(?:Trident|EdgeHTML)$/.test(ke)&&"WebKit"||!ke&&/\bMSIE\b/i.test(O)&&(M=="Mac OS"?"Tasman":"Trident")||ke=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(Ue)&&"NetFront")&&(ke=[j]),Ue=="IE"&&(j=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(O)||0)[1])?(Ue+=" Mobile",M="Windows Phone "+(/\+$/.test(j)?j:j+".x"),Ce.unshift("desktop mode")):/\bWPDesktop\b/i.test(O)?(Ue="IE Mobile",M="Windows Phone 8.x",Ce.unshift("desktop mode"),ue||(ue=(/\brv:([\d.]+)/.exec(O)||0)[1])):Ue!="IE"&&ke=="Trident"&&(j=/\brv:([\d.]+)/.exec(O))&&(Ue&&Ce.push("identifying as "+Ue+(ue?" "+ue:"")),Ue="IE",ue=j[1]),de){if(c(I,"global"))if(oe&&(j=oe.lang.System,Me=j.getProperty("os.arch"),M=M||j.getProperty("os.name")+" "+j.getProperty("os.version")),xe){try{ue=I.require("ringo/engine").version.join("."),Ue="RingoJS"}catch($){(j=I.system)&&j.global.system==I.system&&(Ue="Narwhal",M||(M=j[0].os||null))}Ue||(Ue="Rhino")}else typeof I.process=="object"&&!I.process.browser&&(j=I.process)&&(typeof j.versions=="object"&&(typeof j.versions.electron=="string"?(Ce.push("Node "+j.versions.node),Ue="Electron",ue=j.versions.electron):typeof j.versions.nw=="string"&&(Ce.push("Chromium "+ue,"Node "+j.versions.node),Ue="NW.js",ue=j.versions.nw)),Ue||(Ue="Node.js",Me=j.arch,M=j.platform,ue=/[\d.]+/.exec(j.version),ue=ue?ue[0]:null));else o(j=I.runtime)==J?(Ue="Adobe AIR",M=j.flash.system.Capabilities.os):o(j=I.phantom)==ie?(Ue="PhantomJS",ue=(j=j.version||null)&&j.major+"."+j.minor+"."+j.patch):typeof pe.documentMode=="number"&&(j=/\bTrident\/(\d+)/i.exec(O))?(ue=[ue,pe.documentMode],(j=+j[1]+4)!=ue[1]&&(Ce.push("IE "+ue[1]+" mode"),ke&&(ke[1]=""),ue[1]=j),ue=Ue=="IE"?String(ue[1].toFixed(1)):ue[0]):typeof pe.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(Ue)&&(Ce.push("masking as "+Ue+" "+ue),Ue="IE",ue="11.0",ke=["Trident"],M="Windows");M=M&&h(M)}if(ue&&(j=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(ue)||/(?:alpha|beta)(?: ?\d)?/i.exec(O+";"+(de&&K.appMinorVersion))||/\bMinefield\b/i.test(O)&&"a")&&(Le=/b/i.test(j)?"beta":"alpha",ue=ue.replace(RegExp(j+"\\+?$"),"")+(Le=="beta"?Ae:ye)+(/\d+\+?/.exec(j)||"")),Ue=="Fennec"||Ue=="Firefox"&&/\b(?:Android|Firefox OS)\b/.test(M))Ue="Firefox Mobile";else if(Ue=="Maxthon"&&ue)ue=ue.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(Ye))Ye=="Xbox 360"&&(M=null),Ye=="Xbox 360"&&/\bIEMobile\b/.test(O)&&Ce.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(Ue)&&(!Ue||Ye||/Browser|Mobi/.test(Ue))||M!="Windows CE"&&!/Mobi/i.test(O))if(Ue=="IE"&&de)try{I.external===null&&Ce.unshift("platform preview")}catch($){Ce.unshift("embedded")}else(/\bBlackBerry\b/.test(Ye)||/\bBB10\b/.test(O))&&(j=(RegExp(Ye.replace(/ +/g," *")+"/([.\\d]+)","i").exec(O)||0)[1]||ue)?(j=[j,/BB10/.test(O)],M=(j[1]?(Ye=null,ee="BlackBerry"):"Device Software")+" "+j[0],ue=null):this!=d&&Ye!="Wii"&&(de&&Oe||/Opera/.test(Ue)&&/\b(?:MSIE|Firefox)\b/i.test(O)||Ue=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(M)||Ue=="IE"&&(M&&!/^Win/.test(M)&&ue>5.5||/\bWindows XP\b/.test(M)&&ue>8||ue==8&&!/\bTrident\b/.test(O)))&&!v.test(j=n.call(d,O.replace(v,"")+";"))&&j.name&&(j="ing as "+j.name+((j=j.version)?" "+j:""),v.test(Ue)?(/\bIE\b/.test(j)&&M=="Mac OS"&&(M=null),j="identify"+j):(j="mask"+j,Ue=Fe?h(Fe.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(j)&&(M=null),de||(ue=null)),ke=["Presto"],Ce.push(j));else Ue+=" Mobile";(j=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(O)||0)[1])&&(j=[parseFloat(j.replace(/\.(\d)$/,".0$1")),j],Ue=="Safari"&&j[1].slice(-1)=="+"?(Ue="WebKit Nightly",Le="alpha",ue=j[1].slice(0,-1)):ue!=j[1]&&ue!=(j[2]=(/\bSafari\/([\d.]+\+?)/i.exec(O)||0)[1])||(ue=null),j[1]=(/\bChrome\/([\d.]+)/i.exec(O)||0)[1],j[0]==537.36&&j[2]==537.36&&parseFloat(j[1])>=28&&ke=="WebKit"&&(ke=["Blink"]),de&&(X||j[1])?(ke&&(ke[1]="like Chrome"),j=j[1]||(j=j[0],j<530?1:j<532?2:j<532.05?3:j<533?4:j<534.03?5:j<534.07?6:j<534.1?7:j<534.13?8:j<534.16?9:j<534.24?10:j<534.3?11:j<535.01?12:j<535.02?"13+":j<535.07?15:j<535.11?16:j<535.19?17:j<536.05?18:j<536.1?19:j<537.01?20:j<537.11?"21+":j<537.13?23:j<537.18?24:j<537.24?25:j<537.36?26:ke!="Blink"?"27":"28")):(ke&&(ke[1]="like Safari"),j=j[0],j=j<400?1:j<500?2:j<526?3:j<533?4:j<534?"4+":j<535?5:j<537?6:j<538?7:j<601?8:"8"),ke&&(ke[1]+=" "+(j+=typeof j=="number"?".x":/[.+]/.test(j)?"":"+")),Ue=="Safari"&&(!ue||parseInt(ue)>45)&&(ue=j)),Ue=="Opera"&&(j=/\bzbov|zvav$/.exec(M))?(Ue+=" ",Ce.unshift("desktop mode"),j=="zvav"?(Ue+="Mini",ue=null):Ue+="Mobile",M=M.replace(RegExp(" *"+j+"$"),"")):Ue=="Safari"&&/\bChrome\b/.exec(ke&&ke[1])&&(Ce.unshift("desktop mode"),Ue="Chrome Mobile",ue=null,/\bOS X\b/.test(M)?(ee="Apple",M="iOS 4.3+"):M=null),ue&&ue.indexOf(j=/[\d.]+$/.exec(M))==0&&O.indexOf("/"+j+"-")>-1&&(M=i(M.replace(j,""))),ke&&!/\b(?:Avant|Nook)\b/.test(Ue)&&(/Browser|Lunascape|Maxthon/.test(Ue)||Ue!="Safari"&&/^iOS/.test(M)&&/\bSafari\b/.test(ke[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(Ue)&&ke[1])&&(j=ke[ke.length-1])&&Ce.push(j),Ce.length&&(Ce=["("+Ce.join("; ")+")"]),ee&&Ye&&Ye.indexOf(ee)<0&&Ce.push("on "+ee),Ye&&Ce.push((/^on /.test(Ce[Ce.length-1])?"":"on ")+Ye),M&&(j=/ ([\d.+]+)$/.exec(M),G=j&&M.charAt(M.length-j[0].length-1)=="/",M={architecture:32,family:j&&!G?M.replace(j[0],""):M,version:j?j[1]:null,toString:function(){var $=this.version;return this.family+($&&!G?" "+$:"")+(this.architecture==64?" 64-bit":"")}}),(j=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(Me))&&!/\bi686\b/i.test(Me)?(M&&(M.architecture=64,M.family=M.family.replace(RegExp(" *"+j),"")),Ue&&(/\bWOW64\b/i.test(O)||de&&/\w(?:86|32)$/.test(K.cpuClass||K.platform)&&!/\bWin64; x64\b/i.test(O))&&Ce.unshift("32-bit")):M&&/^OS X/.test(M.family)&&Ue=="Chrome"&&parseFloat(ue)>=39&&(M.architecture=64),O||(O=null);var N={};return N.description=O,N.layout=ke&&ke[0],N.manufacturer=ee,N.name=Ue,N.prerelease=Le,N.product=Ye,N.ua=O,N.version=Ue&&ue,N.os=M||{architecture:null,family:null,version:null,toString:function(){return"null"}},N.parse=n,N.toString=D,N.version&&Ce.unshift(ue),N.name&&Ce.unshift(Ue),M&&Ue&&(M!=String(M).split(" ")[0]||M!=Ue.split(" ")[0]&&!Ye)&&Ce.push(Ye?"("+M+")":"on "+M),Ce.length&&(N.description=Ce.join(" ")),N}var t={function:!0,object:!0},u=t[typeof window]&&window||this,y=t[typeof S]&&S,g=t[typeof P]&&P&&!P.nodeType&&P,_=y&&g&&typeof C=="object"&&C;!_||_.global!==_&&_.window!==_&&_.self!==_||(u=_);var b=Math.pow(2,53)-1,v=/\bOpera/,m=Object.prototype,E=m.hasOwnProperty,a=m.toString,x=n();typeof U=="function"&&typeof U.amd=="object"&&U.amd?(u.platform=x,U(function(){return x})):y&&g?d(x,function(O,A){y[A]=O}):u.platform=x}).call(this)}).call(this,typeof ae!="undefined"?ae:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],172:[function(w,P,S){(function(C){"use strict";function T(l,p,h,d){if(typeof l!="function")throw new TypeError('"callback" argument must be a function');var o,c,s=arguments.length;switch(s){case 0:case 1:return C.nextTick(l);case 2:return C.nextTick(function(){l.call(null,p)});case 3:return C.nextTick(function(){l.call(null,p,h)});case 4:return C.nextTick(function(){l.call(null,p,h,d)});default:for(o=new Array(s-1),c=0;c1)for(var b=1;b1&&(xe=oe[0]+"@",Q=oe[1]),Q=Q.replace(j,"."),xe+p(Q.split("."),ie).join(".")}function d(Q){for(var ie,oe,xe=[],ye=0,Ae=Q.length;ye=55296&&ie<=56319&&ye65535&&(ie-=65536,oe+=B(ie>>>10&1023|55296),ie=56320|1023&ie),oe+=B(ie)}).join("")}function c(Q){return Q-48<10?Q-22:Q-65<26?Q-65:Q-97<26?Q-97:E}function s(Q,ie){return Q+22+75*(Q<26)-((ie!=0)<<5)}function f(Q,ie,oe){var xe=0;for(Q=oe?J(Q/A):Q>>1,Q+=J(Q/ie);Q>X*x>>1;xe+=E)Q=J(Q/X);return J(xe+(X+1)*Q/(Q+O))}function i(Q){var ie,oe,xe,ye,Ae,pe,Oe,Fe,Me,Ce,Le=[],de=Q.length,ue=0,ke=I,Ue=D;for(oe=Q.lastIndexOf(F),oe<0&&(oe=0),xe=0;xe=128&&l("not-basic"),Le.push(Q.charCodeAt(xe));for(ye=oe>0?oe+1:0;ye=de&&l("invalid-input"),Fe=c(Q.charCodeAt(ye++)),(Fe>=E||Fe>J((m-ue)/pe))&&l("overflow"),ue+=Fe*pe,Me=Oe<=Ue?a:Oe>=Ue+x?x:Oe-Ue,!(FeJ(m/Ce)&&l("overflow"),pe*=Ce;ie=Le.length+1,Ue=f(ue-Ae,ie,Ae==0),J(ue/ie)>m-ke&&l("overflow"),ke+=J(ue/ie),ue%=ie,Le.splice(ue++,0,ke)}return o(Le)}function n(Q){var ie,oe,xe,ye,Ae,pe,Oe,Fe,Me,Ce,Le,de,ue,ke,Ue,Ye=[];for(Q=d(Q),de=Q.length,ie=I,oe=0,Ae=D,pe=0;pe=ie&&LeJ((m-oe)/ue)&&l("overflow"),oe+=(Oe-ie)*ue,ie=Oe,pe=0;pem&&l("overflow"),Le==ie){for(Fe=oe,Me=E;Ce=Me<=Ae?a:Me>=Ae+x?x:Me-Ae,!(Fe= 0x80 (not a basic code point)","invalid-input":"Invalid input"},X=E-a,J=Math.floor,B=String.fromCharCode;if(b={version:"1.4.1",ucs2:{decode:d,encode:o},decode:i,encode:n,toASCII:u,toUnicode:t},typeof U=="function"&&typeof U.amd=="object"&&U.amd)U("punycode",function(){return b});else if(y&&g)if(P.exports==y)g.exports=b;else for(v in b)b.hasOwnProperty(v)&&(y[v]=b[v]);else T.punycode=b}(this)}).call(this,typeof ae!="undefined"?ae:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],175:[function(w,P,S){"use strict";function C(l,p){return Object.prototype.hasOwnProperty.call(l,p)}P.exports=function(l,p,h,d){p=p||"&",h=h||"=";var o={};if(typeof l!="string"||l.length===0)return o;var c=/\+/g;l=l.split(p);var s=1e3;d&&typeof d.maxKeys=="number"&&(s=d.maxKeys);var f=l.length;s>0&&f>s&&(f=s);for(var i=0;i=0?(n=g.substr(0,_),t=g.substr(_+1)):(n=g,t=""),u=decodeURIComponent(n),y=decodeURIComponent(t),C(o,u)?T(o[u])?o[u].push(y):o[u]=[o[u],y]:o[u]=y}return o};var T=Array.isArray||function(l){return Object.prototype.toString.call(l)==="[object Array]"}},{}],176:[function(w,P,S){"use strict";function C(h,d){if(h.map)return h.map(d);for(var o=[],c=0;c0?(typeof ue=="string"||ee.objectMode||(0,G.default)(ue)===oe.prototype||(ue=l(ue)),Ue?ee.endEmitted?de.emit("error",new Error("stream.unshift() after end event")):s(de,ee,ue,!0):ee.ended?de.emit("error",new Error("stream.push() after EOF")):(ee.reading=!1,ee.decoder&&!ke?(ue=ee.decoder.write(ue),ee.objectMode||ue.length!==0?s(de,ee,ue,!1):_(de,ee)):s(de,ee,ue,!1))):Ue||(ee.reading=!1)}return i(ee)}function s(de,ue,ke,Ue){ue.flowing&&ue.length===0&&!ue.sync?(de.emit("data",ke),de.read(0)):(ue.length+=ue.objectMode?1:ke.length,Ue?ue.buffer.unshift(ke):ue.buffer.push(ke),ue.needReadable&&y(de)),_(de,ue)}function f(de,ue){var ke;return p(ue)||typeof ue=="string"||ue===void 0||de.objectMode||(ke=new TypeError("Invalid non-string/buffer chunk")),ke}function i(de){return!de.ended&&(de.needReadable||de.length=Le?de=Le:(de--,de|=de>>>1,de|=de>>>2,de|=de>>>4,de|=de>>>8,de|=de>>>16,de++),de}function t(de,ue){return de<=0||ue.length===0&&ue.ended?0:ue.objectMode?1:de!==de?ue.flowing&&ue.length?ue.buffer.head.data.length:ue.length:(de>ue.highWaterMark&&(ue.highWaterMark=n(de)),de<=ue.length?de:ue.ended?ue.length:(ue.needReadable=!0,0))}function u(de,ue){if(!ue.ended){if(ue.decoder){var ke=ue.decoder.end();ke&&ke.length&&(ue.buffer.push(ke),ue.length+=ue.objectMode?1:ke.length)}ue.ended=!0,y(de)}}function y(de){var ue=de._readableState;ue.needReadable=!1,ue.emittedReadable||(pe("emitReadable",ue.flowing),ue.emittedReadable=!0,ue.sync?X.nextTick(g,de):g(de))}function g(de){pe("emit readable"),de.emit("readable"),x(de)}function _(de,ue){ue.readingMore||(ue.readingMore=!0,X.nextTick(b,de,ue))}function b(de,ue){for(var ke=ue.length;!ue.reading&&!ue.flowing&&!ue.ended&&ue.length=ue.length?(ke=ue.decoder?ue.buffer.join(""):ue.buffer.length===1?ue.buffer.head.data:ue.buffer.concat(ue.length),ue.buffer.clear()):ke=A(de,ue.buffer,ue.decoder),ke}function A(de,ue,ke){var Ue;return deee.length?ee.length:de;if(M===ee.length?Ye+=ee:Ye+=ee.slice(0,de),(de-=M)===0){M===ee.length?(++Ue,ke.next?ue.head=ke.next:ue.head=ue.tail=null):(ue.head=ke,ke.data=ee.slice(M));break}++Ue}return ue.length-=Ue,Ye}function I(de,ue){var ke=oe.allocUnsafe(de),Ue=ue.head,Ye=1;for(Ue.data.copy(ke),de-=Ue.data.length;Ue=Ue.next;){var ee=Ue.data,M=de>ee.length?ee.length:de;if(ee.copy(ke,ke.length-de,0,M),(de-=M)===0){M===ee.length?(++Ye,Ue.next?ue.head=Ue.next:ue.head=ue.tail=null):(ue.head=Ue,Ue.data=ee.slice(M));break}++Ye}return ue.length-=Ye,ke}function F(de){var ue=de._readableState;if(ue.length>0)throw new Error('"endReadable()" called on non-empty stream');ue.endEmitted||(ue.ended=!0,X.nextTick(K,ue,de))}function K(de,ue){de.endEmitted||de.length!==0||(de.endEmitted=!0,ue.readable=!1,ue.emit("end"))}function ne(de,ue){for(var ke=0,Ue=de.length;ke=ue.highWaterMark||ue.ended))return pe("read: emitReadable",ue.length,ue.ended),ue.length===0&&ue.ended?F(this):y(this),null;if((de=t(de,ue))===0&&ue.ended)return ue.length===0&&F(this),null;var Ue=ue.needReadable;pe("need readable",Ue),(ue.length===0||ue.length-de0?O(de,ue):null,Ye===null?(ue.needReadable=!0,de=0):ue.length-=de,ue.length===0&&(ue.ended||(ue.needReadable=!0),ke!==de&&ue.ended&&F(this)),Ye!==null&&this.emit("data",Ye),Ye},o.prototype._read=function(de){this.emit("error",new Error("_read() is not implemented"))},o.prototype.pipe=function(de,ue){function ke(tt,Ve){pe("onunpipe"),tt===Y&&Ve&&Ve.hasUnpiped===!1&&(Ve.hasUnpiped=!0,Ye())}function Ue(){pe("onend"),de.end()}function Ye(){pe("cleanup"),de.removeListener("close",N),de.removeListener("finish",$),de.removeListener("drain",Pe),de.removeListener("error",M),de.removeListener("unpipe",ke),Y.removeListener("end",Ue),Y.removeListener("end",V),Y.removeListener("data",ee),Ie=!0,!me.awaitDrain||de._writableState&&!de._writableState.needDrain||Pe()}function ee(tt){pe("ondata"),Xe=!1,de.write(tt)!==!1||Xe||((me.pipesCount===1&&me.pipes===de||me.pipesCount>1&&ne(me.pipes,de)!==-1)&&!Ie&&(pe("false write response, pause",Y._readableState.awaitDrain),Y._readableState.awaitDrain++,Xe=!0),Y.pause())}function M(tt){pe("onerror",tt),V(),de.removeListener("error",M),Q(de,"error")===0&&de.emit("error",tt)}function N(){de.removeListener("finish",$),V()}function $(){pe("onfinish"),de.removeListener("close",N),V()}function V(){pe("unpipe"),Y.unpipe(de)}var Y=this,me=this._readableState;switch(me.pipesCount){case 0:me.pipes=de;break;case 1:me.pipes=[me.pipes,de];break;default:me.pipes.push(de)}me.pipesCount+=1,pe("pipe count=%d opts=%j",me.pipesCount,ue);var Re=(!ue||ue.end!==!1)&&de!==C.stdout&&de!==C.stderr,rt=Re?Ue:V;me.endEmitted?X.nextTick(rt):Y.once("end",rt),de.on("unpipe",ke);var Pe=v(Y);de.on("drain",Pe);var Ie=!1,Xe=!1;return Y.on("data",ee),h(de,"error",M),de.once("close",N),de.once("finish",$),de.emit("pipe",Y),me.flowing||(pe("pipe resume"),Y.resume()),de},o.prototype.unpipe=function(de){var ue=this._readableState,ke={hasUnpiped:!1};if(ue.pipesCount===0)return this;if(ue.pipesCount===1)return de&&de!==ue.pipes?this:(de||(de=ue.pipes),ue.pipes=null,ue.pipesCount=0,ue.flowing=!1,de&&de.emit("unpipe",this,ke),this);if(!de){var Ue=ue.pipes,Ye=ue.pipesCount;ue.pipes=null,ue.pipesCount=0,ue.flowing=!1;for(var ee=0;ee-1?J.default:B.nextTick;s.WritableState=c;var oe=w("core-util-is");oe.inherits=w("inherits");var xe={deprecate:w("util-deprecate")},ye=w("./internal/streams/stream"),Ae=w("safe-buffer").Buffer,pe=T.Uint8Array||function(){},Oe=w("./internal/streams/destroy");oe.inherits(s,ye),c.prototype.getBuffer=function(){for(var Me=this.bufferedRequest,Ce=[];Me;)Ce.push(Me),Me=Me.next;return Ce},function(){try{Object.defineProperty(c.prototype,"buffer",{get:xe.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(Me){}}();var Fe;typeof G.default=="function"&&ne.default&&typeof Function.prototype[ne.default]=="function"?(Fe=Function.prototype[ne.default],(0,F.default)(s,ne.default,{value:function(Me){return!!Fe.call(this,Me)||this===s&&Me&&Me._writableState instanceof c}})):Fe=function(Me){return Me instanceof this},s.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},s.prototype.write=function(Me,Ce,Le){var de=this._writableState,ue=!1,ke=!de.objectMode&&d(Me);return ke&&!Ae.isBuffer(Me)&&(Me=h(Me)),typeof Ce=="function"&&(Le=Ce,Ce=null),ke?Ce="buffer":Ce||(Ce=de.defaultEncoding),typeof Le!="function"&&(Le=o),de.ended?f(this,Le):(ke||i(this,de,Me,Le))&&(de.pendingcb++,ue=t(this,de,ke,Me,Ce,Le)),ue},s.prototype.cork=function(){this._writableState.corked++},s.prototype.uncork=function(){var Me=this._writableState;Me.corked&&(Me.corked--,Me.writing||Me.corked||Me.finished||Me.bufferProcessing||!Me.bufferedRequest||m(this,Me))},s.prototype.setDefaultEncoding=function(Me){if(typeof Me=="string"&&(Me=Me.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Me+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+Me);return this._writableState.defaultEncoding=Me,this},Object.defineProperty(s.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),s.prototype._write=function(Me,Ce,Le){Le(new Error("_write() is not implemented"))},s.prototype._writev=null,s.prototype.end=function(Me,Ce,Le){var de=this._writableState;typeof Me=="function"?(Le=Me,Me=null,Ce=null):typeof Ce=="function"&&(Le=Ce,Ce=null),Me!=null&&this.write(Me,Ce),de.corked&&(de.corked=1,this.uncork()),de.ending||de.finished||A(this,de,Le)},Object.defineProperty(s.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(Me){this._writableState&&(this._writableState.destroyed=Me)}}),s.prototype.destroy=Oe.destroy,s.prototype._undestroy=Oe.undestroy,s.prototype._destroy=function(Me,Ce){this.end(),Ce(Me)}}).call(this,w("_process"),typeof ae!="undefined"?ae:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":179,"./internal/streams/destroy":185,"./internal/streams/stream":186,_process:173,"babel-runtime/core-js/object/define-property":20,"babel-runtime/core-js/set-immediate":25,"babel-runtime/core-js/symbol":27,"babel-runtime/core-js/symbol/has-instance":28,"core-util-is":153,inherits:162,"process-nextick-args":172,"safe-buffer":193,"util-deprecate":205}],184:[function(w,P,S){"use strict";function C(h,d){if(!(h instanceof d))throw new TypeError("Cannot call a class as a function")}function T(h,d,o){h.copy(d,o)}var l=w("safe-buffer").Buffer,p=w("util");P.exports=function(){function h(){C(this,h),this.head=null,this.tail=null,this.length=0}return h.prototype.push=function(d){var o={data:d,next:null};this.length>0?this.tail.next=o:this.head=o,this.tail=o,++this.length},h.prototype.unshift=function(d){var o={data:d,next:this.head};this.length===0&&(this.tail=o),this.head=o,++this.length},h.prototype.shift=function(){if(this.length!==0){var d=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,d}},h.prototype.clear=function(){this.head=this.tail=null,this.length=0},h.prototype.join=function(d){if(this.length===0)return"";for(var o=this.head,c=""+o.data;o=o.next;)c+=d+o.data;return c},h.prototype.concat=function(d){if(this.length===0)return l.alloc(0);if(this.length===1)return this.head.data;for(var o=l.allocUnsafe(d>>>0),c=this.head,s=0;c;)T(c.data,o,s),s+=c.data.length,c=c.next;return o},h}(),p&&p.inspect&&p.inspect.custom&&(P.exports.prototype[p.inspect.custom]=function(){var h=p.inspect({length:this.length});return this.constructor.name+" "+h})},{"safe-buffer":193,util:36}],185:[function(w,P,S){"use strict";function C(h,d){var o=this,c=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return c||s?(d?d(h):!h||this._writableState&&this._writableState.errorEmitted||p.nextTick(l,this,h),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(h||null,function(f){!d&&f?(p.nextTick(l,o,f),o._writableState&&(o._writableState.errorEmitted=!0)):d&&d(f)}),this)}function T(){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 l(h,d){h.emit("error",d)}var p=w("process-nextick-args");P.exports={destroy:C,undestroy:T}},{"process-nextick-args":172}],186:[function(w,P,S){"use strict";P.exports=w("events").EventEmitter},{events:158}],187:[function(w,P,S){P.exports=w("./readable").PassThrough},{"./readable":188}],188:[function(w,P,S){S=P.exports=w("./lib/_stream_readable.js"),S.Stream=S,S.Readable=S,S.Writable=w("./lib/_stream_writable.js"),S.Duplex=w("./lib/_stream_duplex.js"),S.Transform=w("./lib/_stream_transform.js"),S.PassThrough=w("./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(w,P,S){P.exports=w("./readable").Transform},{"./readable":188}],190:[function(w,P,S){P.exports=w("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":183}],191:[function(w,P,S){var C=function(){return this}()||Function("return this")(),T=C.regeneratorRuntime&&Object.getOwnPropertyNames(C).indexOf("regeneratorRuntime")>=0,l=T&&C.regeneratorRuntime;if(C.regeneratorRuntime=void 0,P.exports=w("./runtime"),T)C.regeneratorRuntime=l;else try{delete C.regeneratorRuntime}catch(p){C.regeneratorRuntime=void 0}},{"./runtime":192}],192:[function(w,P,S){!function(C){"use strict";function T(J,B,Q,ie){var oe=B&&B.prototype instanceof p?B:p,xe=Object.create(oe.prototype),ye=new t(ie||[]);return xe._invoke=s(J,Q,ye),xe}function l(J,B,Q){try{return{type:"normal",arg:J.call(B,Q)}}catch(ie){return{type:"throw",arg:ie}}}function p(){}function h(){}function d(){}function o(J){["next","throw","return"].forEach(function(B){J[B]=function(Q){return this._invoke(B,Q)}})}function c(J){function B(oe,xe,ye,Ae){var pe=l(J[oe],J,xe);if(pe.type!=="throw"){var Oe=pe.arg,Fe=Oe.value;return Fe&&typeof Fe=="object"&&b.call(Fe,"__await")?Promise.resolve(Fe.__await).then(function(Me){B("next",Me,ye,Ae)},function(Me){B("throw",Me,ye,Ae)}):Promise.resolve(Fe).then(function(Me){Oe.value=Me,ye(Oe)},Ae)}Ae(pe.arg)}function Q(oe,xe){function ye(){return new Promise(function(Ae,pe){B(oe,xe,Ae,pe)})}return ie=ie?ie.then(ye,ye):ye()}var ie;this._invoke=Q}function s(J,B,Q){var ie=A;return function(oe,xe){if(ie===I)throw new Error("Generator is already running");if(ie===F){if(oe==="throw")throw xe;return y()}for(Q.method=oe,Q.arg=xe;;){var ye=Q.delegate;if(ye){var Ae=f(ye,Q);if(Ae){if(Ae===K)continue;return Ae}}if(Q.method==="next")Q.sent=Q._sent=Q.arg;else if(Q.method==="throw"){if(ie===A)throw ie=F,Q.arg;Q.dispatchException(Q.arg)}else Q.method==="return"&&Q.abrupt("return",Q.arg);ie=I;var pe=l(J,B,Q);if(pe.type==="normal"){if(ie=Q.done?F:D,pe.arg===K)continue;return{value:pe.arg,done:Q.done}}pe.type==="throw"&&(ie=F,Q.method="throw",Q.arg=pe.arg)}}}function f(J,B){var Q=J.iterator[B.method];if(Q===g){if(B.delegate=null,B.method==="throw"){if(J.iterator.return&&(B.method="return",B.arg=g,f(J,B),B.method==="throw"))return K;B.method="throw",B.arg=new TypeError("The iterator does not provide a 'throw' method")}return K}var ie=l(Q,J.iterator,B.arg);if(ie.type==="throw")return B.method="throw",B.arg=ie.arg,B.delegate=null,K;var oe=ie.arg;return oe?oe.done?(B[J.resultName]=oe.value,B.next=J.nextLoc,B.method!=="return"&&(B.method="next",B.arg=g),B.delegate=null,K):oe:(B.method="throw",B.arg=new TypeError("iterator result is not an object"),B.delegate=null,K)}function i(J){var B={tryLoc:J[0]};1 in J&&(B.catchLoc=J[1]),2 in J&&(B.finallyLoc=J[2],B.afterLoc=J[3]),this.tryEntries.push(B)}function n(J){var B=J.completion||{};B.type="normal",delete B.arg,J.completion=B}function t(J){this.tryEntries=[{tryLoc:"root"}],J.forEach(i,this),this.reset(!0)}function u(J){if(J){var B=J[m];if(B)return B.call(J);if(typeof J.next=="function")return J;if(!isNaN(J.length)){var Q=-1,ie=function oe(){for(;++Q=0;--ie){var oe=this.tryEntries[ie],xe=oe.completion;if(oe.tryLoc==="root")return B("end");if(oe.tryLoc<=this.prev){var ye=b.call(oe,"catchLoc"),Ae=b.call(oe,"finallyLoc");if(ye&&Ae){if(this.prev=0;--Q){var ie=this.tryEntries[Q];if(ie.tryLoc<=this.prev&&b.call(ie,"finallyLoc")&&this.prev=0;--B){var Q=this.tryEntries[B];if(Q.finallyLoc===J)return this.complete(Q.completion,Q.afterLoc),n(Q),K}},catch:function(J){for(var B=this.tryEntries.length-1;B>=0;--B){var Q=this.tryEntries[B];if(Q.tryLoc===J){var ie=Q.completion;if(ie.type==="throw"){var oe=ie.arg;n(Q)}return oe}}throw new Error("illegal catch attempt")},delegateYield:function(J,B,Q){return this.delegate={iterator:u(J),resultName:B,nextLoc:Q},this.method==="next"&&(this.arg=g),K}}}(function(){return this}()||Function("return this")())},{}],193:[function(w,P,S){function C(h,d){for(var o in h)d[o]=h[o]}function T(h,d,o){return p(h,d,o)}var l=w("buffer"),p=l.Buffer;p.from&&p.alloc&&p.allocUnsafe&&p.allocUnsafeSlow?P.exports=l:(C(l,S),S.Buffer=T),C(p,T),T.from=function(h,d,o){if(typeof h=="number")throw new TypeError("Argument must not be a number");return p(h,d,o)},T.alloc=function(h,d,o){if(typeof h!="number")throw new TypeError("Argument must be a number");var c=p(h);return d!==void 0?typeof o=="string"?c.fill(d,o):c.fill(d):c.fill(0),c},T.allocUnsafe=function(h){if(typeof h!="number")throw new TypeError("Argument must be a number");return p(h)},T.allocUnsafeSlow=function(h){if(typeof h!="number")throw new TypeError("Argument must be a number");return l.SlowBuffer(h)}},{buffer:38}],194:[function(w,P,S){(function(C){"use strict";function T(y){return y&&y.__esModule?y:{default:y}}var l=w("babel-runtime/core-js/string/from-code-point"),p=T(l),h=w("babel-runtime/core-js/json/stringify"),d=T(h),o=w("babel-runtime/helpers/typeof"),c=T(o),s=w("babel-runtime/core-js/object/define-property"),f=T(s),i=w("babel-runtime/core-js/object/keys"),n=T(i),t=w("babel-runtime/core-js/object/create"),u=T(t);!function(y){function g(V,Y){if(!(this instanceof g))return new g(V,Y);var me=this;b(me),me.q=me.c="",me.bufferCheckPosition=y.MAX_BUFFER_LENGTH,me.opt=Y||{},me.opt.lowercase=me.opt.lowercase||me.opt.lowercasetags,me.looseCase=me.opt.lowercase?"toLowerCase":"toUpperCase",me.tags=[],me.closed=me.closedRoot=me.sawRoot=!1,me.tag=me.error=null,me.strict=!!V,me.noscript=!(!V&&!me.opt.noscript),me.state=N.BEGIN,me.strictEntities=me.opt.strictEntities,me.ENTITIES=me.strictEntities?(0,u.default)(y.XML_ENTITIES):(0,u.default)(y.ENTITIES),me.attribList=[],me.opt.xmlns&&(me.ns=(0,u.default)(ke)),me.trackPosition=me.opt.position!==!1,me.trackPosition&&(me.position=me.line=me.column=0),I(me,"onready")}function _(V){for(var Y=Math.max(y.MAX_BUFFER_LENGTH,10),me=0,Re=0,rt=Oe.length;Re